/* AeroGyan Connect — one stylesheet on the AeroGyan family tokens (AeroGyan-Go docs/design-family-2026.md).
   Own accent: a warm rose for action, focus and key data, with the family indigo as the second colour. The flag of
   India appears only inside the "Made in India" badge (css/ag-india.css, js/ag-india.js — the AeroGyan kit v2). No inline styles anywhere
   (CSP style-src 'self'); JS sets sizes only through the CSSOM. Phone first: the document scrolls (the browser bar
   can hide), a bottom tab bar under 1000 px, rails from 1000 / 1280 px. */
:root {
  --ag-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --ag-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ag-radius-sm: 8px; --ag-radius: 12px; --ag-radius-lg: 16px; --ag-radius-xl: 24px;
  --ag-ease: cubic-bezier(.2, .8, .2, 1);
  /* light (default) */
  --ag-accent: #be185d; --ag-accent-2: #4f46e5; --ag-accent-contrast: #ffffff; --ag-accent-hover: #9d174d;
  --ag-accent-ink: #be185d; --ag-accent2-ink: #4338ca; --ag-accent-soft: rgba(190, 24, 93, .08); --ag-accent-soft-2: rgba(190, 24, 93, .16);
  --ag-bg: #f7f8fb; --ag-surface: #ffffff; --ag-raised: #ffffff; --ag-sunken: #f1f3f7;
  --ag-line: rgba(15, 23, 42, .08); --ag-line-2: rgba(15, 23, 42, .16);
  --ag-text: #0f172a; --ag-muted: #5b6478; --ag-hover: rgba(15, 23, 42, .045); --ag-press: rgba(15, 23, 42, .08); --ag-glass: rgba(255, 255, 255, .86);
  --ag-ok: #15803d; --ag-warn: #b45309; --ag-err: #dc2626; --ag-info: #1d6fe0;
  --ag-ok-soft: rgba(21, 128, 61, .1); --ag-warn-soft: rgba(180, 83, 9, .1); --ag-err-soft: rgba(220, 38, 38, .08);
  --ag-shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --ag-shadow-2: 0 8px 24px -6px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
  --skel: #e9ecf2; --skel-hi: #f6f7fa;
  --top-h: 56px; --tab-h: 60px; --rail-w: 244px; --side-w: 320px; --main-w: 640px;
  font-family: var(--ag-font); font-size: 15px; line-height: 1.5; color-scheme: light;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
:root[data-theme="dark"] {
  --ag-accent: #f472b6; --ag-accent-2: #818cf8; --ag-accent-contrast: #2a0a17; --ag-accent-hover: #f9a8d4;
  --ag-accent-ink: #f9a8d4; --ag-accent2-ink: #a5b4fc; --ag-accent-soft: rgba(244, 114, 182, .13); --ag-accent-soft-2: rgba(244, 114, 182, .22);
  --ag-bg: #0b0f17; --ag-surface: #121826; --ag-raised: #182033; --ag-sunken: #0e131d;
  --ag-line: rgba(255, 255, 255, .08); --ag-line-2: rgba(255, 255, 255, .15);
  --ag-text: #e8ecf4; --ag-muted: #98a2b8; --ag-hover: rgba(255, 255, 255, .055); --ag-press: rgba(255, 255, 255, .09); --ag-glass: rgba(18, 24, 38, .84);
  --ag-ok: #4ade80; --ag-warn: #fbbf24; --ag-err: #f87171; --ag-info: #60a5fa;
  --ag-ok-soft: rgba(74, 222, 128, .12); --ag-warn-soft: rgba(251, 191, 36, .12); --ag-err-soft: rgba(248, 113, 113, .12);
  --ag-shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .2);
  --ag-shadow-2: 0 12px 32px -8px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3);
  --skel: #1a2233; --skel-hi: #222c40;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ag-bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--ag-bg); color: var(--ag-text); overflow-x: hidden; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
:lang(hi) { line-height: 1.62; }
a { color: var(--ag-accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .6em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ag-accent-ink); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i .f { fill: currentColor; stroke: none; }
.muted { color: var(--ag-muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center-text { text-align: center; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ag-surface); padding: 8px 12px; border-radius: 8px; box-shadow: var(--ag-shadow-2); }
.skip:focus { top: 8px; }
.boot { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; min-height: 100vh; color: var(--ag-muted); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 6px; padding: 0 12px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right));
  background: var(--ag-surface); border-bottom: 1px solid var(--ag-line); }
@supports (backdrop-filter: blur(12px)) { .topbar { background: var(--ag-glass); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); } }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; padding: 4px 6px 4px 0; border-radius: var(--ag-radius-sm); flex: none; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; display: block; }
.brand .b-name { font-weight: 750; font-size: 1.06rem; letter-spacing: -.015em; white-space: nowrap; }
.brand .b-name small { display: block; font-size: .7rem; font-weight: 500; color: var(--ag-muted); letter-spacing: 0; margin-top: -2px; }
.top-search { flex: 1; max-width: 420px; margin: 0 12px; position: relative; }
.top-search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--ag-line); background: var(--ag-sunken); padding: 0 14px 0 40px; outline: none; transition: border-color .15s, background .15s; }
.top-search input:focus { border-color: var(--ag-accent-ink); background: var(--ag-surface); box-shadow: 0 0 0 3px var(--ag-accent-soft); }
.top-search .i { position: absolute; left: 13px; top: 10px; color: var(--ag-muted); }
.top-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ibtn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 999px; color: var(--ag-text); text-decoration: none; }
.ibtn:hover { background: var(--ag-hover); text-decoration: none; }
.ibtn:active { background: var(--ag-press); }
.ibtn[aria-pressed="true"], .ibtn.on { color: var(--ag-accent-ink); background: var(--ag-accent-soft); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ag-err); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--ag-surface); }
.lang-switch { display: inline-flex; border: 1px solid var(--ag-line-2); border-radius: 999px; overflow: hidden; height: 32px; margin: 0 4px; }
.lang-switch button { border: 0; background: none; padding: 0 10px; font-size: .82rem; font-weight: 600; color: var(--ag-muted); }
.lang-switch button[aria-pressed="true"] { background: var(--ag-accent-soft); color: var(--ag-accent-ink); }
.avatar-btn { padding: 0; border: 0; background: none; border-radius: 999px; margin-left: 4px; flex: none; line-height: 0; }
.avatar-btn .av { width: 32px; height: 32px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1320px; margin: 0 auto; gap: 24px; padding: 0 0 calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px); }
.rail, .side { display: none; }
.main { min-width: 0; width: 100%; max-width: var(--main-w); margin: 0 auto; padding: 12px 12px 0; }
.main.wide { max-width: 980px; }
.main.full { max-width: none; padding: 0; }
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ag-surface); border-top: 1px solid var(--ag-line); }
@supports (backdrop-filter: blur(12px)) { .tabbar { background: var(--ag-glass); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); } }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ag-muted); font-size: .7rem; font-weight: 600; text-decoration: none; border: 0; background: none; min-height: 44px; }
.tab:hover { text-decoration: none; color: var(--ag-text); }
.tab[aria-current="page"] { color: var(--ag-accent-ink); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ag-accent); }
.tab .i { width: 22px; height: 22px; }
.tab .badge { top: 4px; right: calc(50% - 22px); }
@media (min-width: 1000px) {
  .layout { grid-template-columns: var(--rail-w) minmax(0, 1fr); padding: 0 20px 40px; }
  .rail { display: flex; flex-direction: column; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); padding: 14px 0 16px; overflow: auto; }
  .tabbar { display: none; }
  .main { padding: 18px 0 0; }
}
@media (min-width: 1280px) {
  .layout { grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--side-w); }
  .side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); padding: 18px 0 20px; overflow: auto; }
}
.layout.bare { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; max-width: none; }
.layout.bare .rail, .layout.bare .side { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--ag-radius); color: var(--ag-text); text-decoration: none; font-weight: 550; position: relative; }
.nav-item:hover { background: var(--ag-hover); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--ag-accent-soft); color: var(--ag-accent-ink); }
.nav-item .count { margin-left: auto; font-size: .75rem; font-weight: 700; background: var(--ag-err); color: #fff; border-radius: 999px; padding: 1px 7px; }
.nav-me { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--ag-radius); color: inherit; margin-bottom: 6px; }
.nav-me:hover { background: var(--ag-hover); text-decoration: none; }
.nav-me b { display: block; font-size: .95rem; }
.nav-me small { color: var(--ag-muted); }
.rail-foot { margin-top: auto; padding: 16px 12px 0; display: flex; flex-direction: column; gap: 10px; font-size: .78rem; color: var(--ag-muted); }
.rail-foot nav { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.rail-foot a { color: var(--ag-muted); }

/* ---------- Made in India: the badge with the flag of India (css/ag-india.css) — placement only here ---------- */
.rail-foot .ag-india, .auth-card .ag-india, .legal .ag-india { align-self: flex-start; }
.hero-mii { margin-top: 18px; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--ag-line-2);
  background: var(--ag-surface); color: var(--ag-text); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--ag-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ag-accent); border-color: transparent; color: var(--ag-accent-contrast); }
.btn.primary:hover { background: var(--ag-accent-hover); }
.btn.soft { background: var(--ag-accent-soft); border-color: transparent; color: var(--ag-accent-ink); }
.btn.soft:hover { background: var(--ag-accent-soft-2); }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--ag-hover); }
.btn.danger { background: var(--ag-err); border-color: transparent; color: #fff; }
.btn.danger.outline { background: none; color: var(--ag-err); border-color: color-mix(in srgb, var(--ag-err) 45%, transparent); }
.btn.sm { height: 34px; padding: 0 12px; font-size: .875rem; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 13px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (pointer: coarse) { .btn { height: 44px; } .btn.sm { height: 38px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label { font-weight: 600; font-size: .9rem; }
.field small { color: var(--ag-muted); font-size: .8rem; }
.field .err { color: var(--ag-err); font-size: .82rem; font-weight: 550; }
.field .okline { color: var(--ag-ok); font-size: .82rem; font-weight: 550; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, textarea.input, select.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--ag-line-2); background: var(--ag-surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea, textarea.input { resize: vertical; min-height: 88px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ag-accent-ink); box-shadow: 0 0 0 3px var(--ag-accent-soft); }
.field [aria-invalid="true"] { border-color: var(--ag-err); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ag-accent); flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--ag-sunken); border: 1px solid var(--ag-line); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 600; color: var(--ag-muted); font-size: .9rem; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ag-surface); color: var(--ag-text); box-shadow: var(--ag-shadow-1); }

/* ---------- cards, lists ---------- */
.card { background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: var(--ag-radius-lg); box-shadow: var(--ag-shadow-1); }
.card.pad { padding: 16px; }
.card + .card { margin-top: 12px; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; }
.card-head h2, .card-head h3 { font-size: 1rem; }
.section-title { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ag-muted); margin: 18px 4px 8px; }
:lang(hi) .section-title { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.list { list-style: none; margin: 0; padding: 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: inherit; }
a.li:hover { background: var(--ag-hover); text-decoration: none; }
.li + .li { border-top: 1px solid var(--ag-line); }
.li .grow { flex: 1; min-width: 0; }
.li b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li small { display: block; color: var(--ag-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head { display: flex; align-items: center; gap: 10px; margin: 4px 4px 14px; }
.page-head h1 { font-size: 1.35rem; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--ag-sunken); color: var(--ag-muted); border: 1px solid var(--ag-line); }
.pill.accent { background: var(--ag-accent-soft); color: var(--ag-accent-ink); border-color: transparent; }
.pill.ok { background: var(--ag-ok-soft); color: var(--ag-ok); border-color: transparent; }
.pill.warn { background: var(--ag-warn-soft); color: var(--ag-warn); border-color: transparent; }
.pill.err { background: var(--ag-err-soft); color: var(--ag-err); border-color: transparent; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--ag-radius); background: var(--ag-sunken); border: 1px solid var(--ag-line); font-size: .9rem; }
.note.warn { background: var(--ag-warn-soft); border-color: transparent; }
.note.err { background: var(--ag-err-soft); border-color: transparent; }
.note.info { background: var(--ag-accent-soft); border-color: transparent; }
.note .i { margin-top: 1px; }

/* ---------- avatars ---------- */
.av { width: 40px; height: 40px; border-radius: 999px; flex: none; object-fit: cover; background: var(--ag-sunken); display: inline-grid; place-items: center; overflow: hidden;
  font-weight: 700; color: #fff; font-size: .95rem; user-select: none; }
.av.s24 { width: 24px; height: 24px; font-size: .65rem; } .av.s32 { width: 32px; height: 32px; font-size: .8rem; } .av.s48 { width: 48px; height: 48px; font-size: 1.05rem; }
.av.s64 { width: 64px; height: 64px; font-size: 1.4rem; } .av.s96 { width: 96px; height: 96px; font-size: 2rem; } .av.s128 { width: 128px; height: 128px; font-size: 2.6rem; }
.av.h0 { background: linear-gradient(135deg, #be185d, #7c3aed); } .av.h1 { background: linear-gradient(135deg, #0f766e, #0369a1); } .av.h2 { background: linear-gradient(135deg, #c2410c, #b91c1c); }
.av.h3 { background: linear-gradient(135deg, #4f46e5, #0e7490); } .av.h4 { background: linear-gradient(135deg, #15803d, #0f766e); } .av.h5 { background: linear-gradient(135deg, #a16207, #c2410c); }
.name-line { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ag-text); min-width: 0; }
.name-line .vb { width: 16px; height: 16px; color: var(--ag-accent); }
a.name-line:hover { text-decoration: underline; }

/* ---------- loading, empty ---------- */
.skel { background: linear-gradient(90deg, var(--skel) 0, var(--skel-hi) 50%, var(--skel) 100%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-post { padding: 16px; }
.skel-post .row { gap: 10px; margin-bottom: 14px; }
.skel.av { width: 40px; height: 40px; border-radius: 999px; }
.skel.line { height: 12px; margin: 8px 0; }
.skel.line.w60 { width: 60%; } .skel.line.w40 { width: 40%; } .skel.line.w80 { width: 80%; }
.skel.block { height: 180px; border-radius: 12px; margin-top: 12px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 20px; color: var(--ag-muted); }
.empty svg.ill { width: 120px; height: 96px; }
.empty h2 { color: var(--ag-text); font-size: 1.1rem; }
.empty p { max-width: 42ch; }

/* ---------- toasts, dialogs, menus ---------- */
#toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
@media (min-width: 1000px) { #toasts { left: auto; right: 20px; transform: none; bottom: 20px; align-items: flex-end; } }
.toast { pointer-events: auto; background: var(--ag-text); color: var(--ag-bg); padding: 10px 16px; border-radius: 12px; box-shadow: var(--ag-shadow-2); font-weight: 550; font-size: .92rem; animation: toast-in .22s var(--ag-ease); display: flex; gap: 12px; align-items: center; }
.toast.err { background: var(--ag-err); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.toast button { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.dlg-back { position: fixed; inset: 0; z-index: 80; background: rgba(8, 12, 20, .5); display: grid; place-items: center; padding: 16px; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.dlg { width: min(100%, 480px); max-height: min(88vh, 760px); display: flex; flex-direction: column; background: var(--ag-raised); border: 1px solid var(--ag-line); border-radius: var(--ag-radius-xl); box-shadow: var(--ag-shadow-2); animation: pop .22s var(--ag-ease); }
.dlg.wide { width: min(100%, 720px); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 20px; border-bottom: 1px solid var(--ag-line); }
.dlg-head h2 { font-size: 1.08rem; flex: 1; }
.dlg-head .icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: var(--ag-hover); border-radius: 999px; }
.dlg-ic { color: var(--ag-accent-ink); display: grid; }
.dlg-body { padding: 16px 20px; overflow: auto; }
.dlg-buttons { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 16px; border-top: 1px solid var(--ag-line); }
@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) {
  .dlg-back { place-items: end stretch; padding: 0; }
  .dlg, .dlg.wide { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet .26s var(--ag-ease); }
  .dlg-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--ag-line-2); }
  .dlg-head { position: relative; padding-top: 18px; }
}
@keyframes sheet { from { transform: translateY(30px); opacity: .4; } }
.menu { position: fixed; z-index: 85; min-width: 220px; max-width: min(92vw, 320px); background: var(--ag-raised); border: 1px solid var(--ag-line); border-radius: 14px; box-shadow: var(--ag-shadow-2); padding: 6px; animation: pop .16s var(--ag-ease); }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 9px; text-align: left; color: var(--ag-text); font-weight: 550; text-decoration: none; }
.menu button:hover, .menu a:hover, .menu button:focus-visible { background: var(--ag-hover); text-decoration: none; }
.menu .danger { color: var(--ag-err); }
.menu hr { border: 0; border-top: 1px solid var(--ag-line); margin: 4px 0; }
.menu small { display: block; color: var(--ag-muted); font-weight: 450; font-size: .8rem; }

/* ---------- AeroGyan apps switcher ---------- */
.apps-pop { position: fixed; z-index: 85; width: min(94vw, 360px); background: var(--ag-raised); border: 1px solid var(--ag-line); border-radius: 18px; box-shadow: var(--ag-shadow-2); padding: 14px; animation: pop .16s var(--ag-ease); }
.apps-head b { display: block; } .apps-head small { color: var(--ag-muted); font-size: .8rem; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; color: var(--ag-text); text-align: center; text-decoration: none; }
.app-tile:hover { background: var(--ag-hover); text-decoration: none; }
.app-tile.here { background: var(--ag-accent-soft); }
.app-tile b { font-size: .8rem; } .app-tile small { font-size: .68rem; color: var(--ag-muted); line-height: 1.25; }
.app-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.apps-all { display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 600; font-size: .88rem; padding: 8px; border-radius: 10px; }

/* ---------- landing (signed out) ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 18px 28px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 15% 10%, color-mix(in srgb, var(--ag-accent) 16%, transparent), transparent 70%),
  radial-gradient(50% 50% at 95% 30%, color-mix(in srgb, var(--ag-accent-2) 14%, transparent), transparent 70%),
  linear-gradient(var(--ag-line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--ag-line) 1px, transparent 1px) 0 0 / 32px 32px; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.hero-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.1fr .9fr; gap: 48px; } .hero { padding: 72px 24px 56px; } }
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; }
:lang(hi) .hero h1 { line-height: 1.25; letter-spacing: 0; }
.hero h1 em { display: block; font-style: normal; background: linear-gradient(90deg, var(--ag-accent), var(--ag-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--ag-muted); max-width: 46ch; margin: 14px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-install { margin-top: 12px; max-width: 440px; }
.hero-install .inst-wrap[hidden] { display: none; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.auth-card { padding: 22px; }
.auth-card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.auth-card .stack { margin-top: 16px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ag-muted); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--ag-line-2); }
.btn.agid { background: linear-gradient(135deg, #6366f1, #312e81); color: #fff; border: 0; }
.btn.agid:hover { filter: brightness(1.08); }
.features { max-width: 1120px; margin: 0 auto; padding: 8px 18px 40px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { padding: 18px; }
.feature .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ag-accent-soft); color: var(--ag-accent-ink); margin-bottom: 10px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--ag-muted); font-size: .92rem; margin: 0; }
.site-foot { border-top: 1px solid var(--ag-line); padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); }
.site-foot-in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--ag-muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--ag-muted); }
.preview-stack { position: relative; display: grid; gap: 12px; }
.preview-stack .card { padding: 14px; }
.demo-post .row { gap: 10px; }
.demo-post p { margin: 10px 0 8px; }
.demo-reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-reacts span { padding: 4px 10px; border-radius: 999px; background: var(--ag-sunken); border: 1px solid var(--ag-line); font-size: .85rem; }

/* ---------- welcome / sign-up steps ---------- */
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--ag-line-2); }
.steps i.on { background: var(--ag-accent); }
.consent { max-height: 260px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: var(--ag-sunken); border: 1px solid var(--ag-line); font-size: .88rem; }
.consent h3 { font-size: .95rem; margin: 10px 0 4px; }
.consent ul { margin: 4px 0 8px; padding-left: 20px; }
.offline-bar { position: sticky; top: var(--top-h); z-index: 30; display: flex; justify-content: center; gap: 8px; align-items: center; padding: 6px 12px; font-size: .85rem; font-weight: 600; background: var(--ag-warn-soft); color: var(--ag-warn); }
.phone-search { display: none; }
@media (max-width: 699px) {
  .top-search { display: none; }
  .phone-search { display: inline-grid; }
  .topbar .lang-switch, .topbar [data-test=theme], .topbar .apps-btn, .topbar .inst-btn { display: none; }
  .brand .b-name { font-size: 1rem; }
}
@media (max-width: 380px) { .brand .b-name { display: none; } }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.menu-tile { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--ag-radius-lg); background: var(--ag-surface); border: 1px solid var(--ag-line); color: var(--ag-text); font-weight: 650; text-decoration: none; box-shadow: var(--ag-shadow-1); }
.menu-tile:hover { text-decoration: none; background: var(--ag-hover); }
.menu-tile .i { color: var(--ag-accent-ink); width: 24px; height: 24px; }
.menu-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.inst-wrap { margin: 0; width: 100%; }
.inst-wrap[hidden], .inst-btn[hidden], .inst-done[hidden], .inst-big[hidden] { display: none; }
.btn.inst-big { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; min-height: 60px; height: auto; padding: 10px 18px; text-align: left; white-space: normal; border-color: var(--ag-accent-ink); }
.inst-txt { display: grid; line-height: 1.25; }
.inst-txt b { font-size: 15.5px; }
.inst-txt small { font-size: 12.5px; color: var(--ag-muted); font-weight: 550; }
.inst-done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.inst-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ag-ok, var(--ag-accent-ink)); }
.inst-sheet ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; }
.inst-sheet p { margin: 0 0 10px; }
.inst-sheet .btn.lg { display: flex; justify-content: center; width: 100%; min-height: 44px; margin-top: 10px; text-decoration: none; }
.inst-said { color: var(--ag-accent-ink); font-weight: 600; }
.inst-said:empty { display: none; }
.inst-sheet .inst-note { margin: 14px 0 0; font-size: 13px; color: var(--ag-muted); }
.inst-dlg .dlg-head .icon-btn { width: 44px; height: 44px; }
.inst-copy-field { position: fixed; top: 0; left: 0; opacity: 0; }

/* ---------- profiles ---------- */
.prof { overflow: hidden; }
.prof-cover { height: 150px; background: linear-gradient(120deg, color-mix(in srgb, var(--ag-accent) 70%, #000 0%), var(--ag-accent-2)); background-size: cover; background-position: center; }
.prof-cover.has { background-color: var(--ag-sunken); }
@media (min-width: 700px) { .prof-cover { height: 220px; } }
.prof-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding: 0 16px; margin-top: -48px; }
.prof-av .av { width: 104px; height: 104px; font-size: 2.2rem; border: 4px solid var(--ag-surface); box-shadow: var(--ag-shadow-1); }
@media (min-width: 700px) { .prof-head { margin-top: -64px; } .prof-av .av { width: 136px; height: 136px; font-size: 2.8rem; } }
.prof-id { flex: 1; min-width: 180px; padding-bottom: 4px; }
.prof-id h1 { font-size: 1.45rem; }
.prof-id .name-line .vb { width: 20px; height: 20px; }
.prof-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 6px; }
.prof-bio { padding: 12px 16px 0; margin: 0; white-space: pre-wrap; }
.prof-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px 0; color: var(--ag-muted); font-size: .9rem; }
.prof-meta span { display: inline-flex; gap: 6px; align-items: center; }
.prof-meta .i { width: 17px; height: 17px; }
.prof-counts { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 16px 14px; font-size: .92rem; }
.prof-counts a, .link-btn { color: var(--ag-muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.prof-counts b { color: var(--ag-text); }
.prof-counts a:hover, .link-btn:hover { text-decoration: underline; }
.prof-body { margin-top: 12px; }
.tabs { display: flex; gap: 4px; padding: 0 10px; border-top: 1px solid var(--ag-line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role=tab] { position: relative; border: 0; background: none; padding: 12px 12px; font-weight: 650; color: var(--ag-muted); white-space: nowrap; }
.tabs [role=tab][aria-selected="true"] { color: var(--ag-accent-ink); }
.tabs [role=tab][aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ag-accent); }
.tabs-row { margin: 0 0 12px; overflow-x: auto; }
.wrap { white-space: normal !important; }
.li .wrap { overflow: visible; }
.person-row .btn { flex: none; }
.sugg-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .sugg-grid { grid-template-columns: 1fr 1fr; } }
.sugg { padding-bottom: 12px; }
.sugg .li small { white-space: normal; }
.sugg-actions { padding: 0 16px; gap: 8px; }

/* edit profile */
.ep-pics { position: relative; display: grid; gap: 10px; }
.ep-cover { height: 110px; border-radius: 12px; background: linear-gradient(120deg, var(--ag-accent), var(--ag-accent-2)); background-size: cover; background-position: center; }
.ep-photo { margin-top: -56px; margin-left: 14px; }
.ep-photo .av { border: 4px solid var(--ag-raised); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--ag-line-2); background: var(--ag-surface); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 550; min-height: 34px; }
.chip[aria-pressed="true"] { background: var(--ag-accent-soft); color: var(--ag-accent-ink); border-color: transparent; }
.aud-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--ag-line); background: var(--ag-sunken); color: var(--ag-muted); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 600; }
.aud-btn .i { width: 15px; height: 15px; }

/* settings */
.set-nav { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.set-nav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--ag-surface); border: 1px solid var(--ag-line); color: var(--ag-text); font-size: .85rem; font-weight: 600; }
.set-sec { padding: 6px 0 8px; scroll-margin-top: calc(var(--top-h) + 12px); }
.set-sec > h2 { font-size: 1.05rem; padding: 12px 16px 6px; }
.set-sec > p { padding: 0 16px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--ag-line); cursor: pointer; }
.set-row:first-of-type { border-top: 0; }
.set-row small { display: block; color: var(--ag-muted); font-size: .82rem; margin-top: 2px; }
.set-sec .section-title { margin: 12px 16px 4px; }
.set-sec .muted.small { padding: 0 16px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--ag-line-2); transition: background .18s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--ag-shadow-1); transition: transform .18s var(--ag-ease); }
.switch input:checked + i { background: var(--ag-accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--ag-accent-ink); outline-offset: 2px; }
.pad { padding: 12px 16px; }

/* ---------- feed & posts ---------- */
.composer-prompt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; }
.cp-open { flex: 1; min-width: 0; text-align: left; height: 44px; border-radius: 999px; border: 1px solid var(--ag-line); background: var(--ag-sunken); color: var(--ag-muted); padding: 0 16px; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-open:hover { background: var(--ag-hover); }
.feed-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed > .card + .card { margin-top: 0; }
.feed-note:empty { display: none; }
.feed-note { margin: 0 4px 8px; }
.sentinel { min-height: 40px; padding: 16px 0; }
.post { padding: 12px 0 4px; content-visibility: auto; contain-intrinsic-size: auto 420px; }
.post.compact { padding: 10px 0 8px; box-shadow: none; }
.post-head { display: flex; align-items: flex-start; gap: 10px; padding: 0 12px 0 14px; }
.post-who { line-height: 1.35; }
.post-who .feel { font-size: .9rem; }
.post-who .grp { font-weight: 650; color: var(--ag-text); }
.post-meta { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ag-muted); flex-wrap: wrap; }
.post-meta a { color: var(--ag-muted); }
.post-meta .aud .i { width: 14px; height: 14px; vertical-align: -2px; }
.post-meta .edited { color: var(--ag-muted); font-size: .8rem; }
.post-status { margin: 10px 14px 0; }
.post-text { padding: 10px 16px 4px; white-space: pre-wrap; font-size: 1rem; line-height: 1.55; }
.post-text:lang(hi) { font-size: 1.05rem; line-height: 1.7; }
.tr-wrap { padding: 0 16px 6px; }
.tr-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; min-height: 32px; }
.tr-btn .i { width: 16px; height: 16px; }
.post-tr { margin-top: 4px; border-left: 3px solid var(--ag-accent); background: var(--ag-sunken); border-radius: 0 8px 8px 0; padding: 6px 0 8px; }
.post-tr .post-text { padding: 2px 12px; }
.post-tr small { display: block; padding: 0 12px; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.post .more { margin: 0 16px; font-weight: 650; color: var(--ag-text); }
.post-text a.tag, .post-text a.mention, .cm-text a.tag, .cm-text a.mention { font-weight: 600; }
.post-text a.ext, .cm-text a.ext { text-decoration: underline; text-underline-offset: 2px; }
.media { display: grid; gap: 2px; margin-top: 10px; background: var(--ag-sunken); }
.media.n2 { grid-template-columns: 1fr 1fr; }
.media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.media.n3 .m:first-child { grid-row: span 2; }
.media.n4 { grid-template-columns: 1fr 1fr; }
.media .m { position: relative; padding: 0; border: 0; background: var(--ag-sunken); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; display: block; width: 100%; }
.media.n1 .m { aspect-ratio: auto; max-height: 640px; }
.media.n3 .m:first-child { aspect-ratio: auto; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.n1 img { object-fit: contain; max-height: 640px; background: var(--ag-sunken); }
.more-n { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.8rem; font-weight: 750; }
.viewer { position: fixed; inset: 0; z-index: 95; background: rgba(5, 8, 14, .94); display: grid; place-items: center; touch-action: pan-y; }
.viewer img { max-width: 96vw; max-height: 86vh; object-fit: contain; user-select: none; }
.v-close, .v-nav { position: absolute; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.v-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.v-nav.prev { left: 12px; } .v-nav.next { right: 12px; }
.v-foot { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #e5e7eb; font-size: .9rem; padding: 0 16px; }
.v-cap { margin: 4px auto 0; max-width: 60ch; }
.poll { margin: 10px 16px 4px; display: grid; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--ag-line-2); background: var(--ag-surface); text-align: left; font-weight: 600; }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--ag-accent-soft-2); z-index: 0; transition: width .4s var(--ag-ease); }
.poll-opt .pt, .poll-opt b { position: relative; z-index: 1; }
.poll-opt.mine { border-color: var(--ag-accent-ink); }
.poll-opt:disabled { cursor: default; opacity: 1; }
.poll-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.link-card { display: flex; flex-direction: column; margin: 10px 14px 4px; border: 1px solid var(--ag-line); border-radius: 14px; overflow: hidden; color: var(--ag-text); background: var(--ag-sunken); }
.link-card:hover { text-decoration: none; background: var(--ag-hover); }
.link-card img { width: 100%; aspect-ratio: 1.91; object-fit: cover; display: block; }
.lc-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.lc-text small { color: var(--ag-muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.lc-text b { font-size: .98rem; }
.lc-text span { color: var(--ag-muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card { margin: 10px 14px 4px; border-radius: 14px; overflow: hidden; border: 1px solid var(--ag-line); background: #0b0f17; }
.tv-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.tv-card.short iframe, .tv-card.short .tv-poster { aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; }
.tv-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #111827; cursor: pointer; }
.tv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-ph { position: absolute; inset: 0; background: radial-gradient(60% 80% at 30% 30%, rgba(239, 68, 68, .5), transparent), linear-gradient(135deg, #1f2937, #7c2d12); }
.tv-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #b91c1c; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.tv-play .i { width: 30px; height: 30px; margin-left: 4px; }
.tv-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; color: #e5e7eb; background: #111827; }
.tv-meta b { color: #fff; }
.tv-meta small { color: #9ca3af; }
.tv-meta a { color: #fca5a5; }
.tv-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: #fca5a5; text-transform: uppercase; letter-spacing: .04em; }
.tv-badge .i { width: 15px; height: 15px; }
.repost { margin: 10px 14px 4px; }
.repost .card { border-radius: 14px; }
.repost.gone { padding: 14px; border: 1px dashed var(--ag-line-2); border-radius: 14px; display: flex; gap: 8px; align-items: center; }
.post-counts { display: flex; align-items: center; gap: 6px; padding: 10px 16px 6px; font-size: .88rem; color: var(--ag-muted); }
.post-counts.empty { padding: 4px; }
.rx { display: inline-flex; align-items: center; gap: 6px; color: var(--ag-muted); }
.rx-stack { display: inline-flex; }
.rx-stack span { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--ag-surface); border: 2px solid var(--ag-surface); margin-left: -6px; font-size: .85rem; box-shadow: var(--ag-shadow-1); }
.rx-stack span:first-child { margin-left: 0; }
.post-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 2px; padding: 2px 8px 4px; border-top: 1px solid var(--ag-line); margin: 0 6px; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 0; background: none; border-radius: 10px; color: var(--ag-muted); font-weight: 650; font-size: .9rem; text-decoration: none; padding: 0 10px; }
.act:hover { background: var(--ag-hover); text-decoration: none; color: var(--ag-text); }
.act.on { color: var(--ag-accent-ink); }
.act .emo { font-size: 1.15rem; line-height: 1; }
.act.small { min-height: 28px; padding: 0 6px; font-size: .8rem; }
.rx-wrap { display: inline-flex; align-items: stretch; }
.rx-wrap .act:first-child { flex: 1; }
.rx-more { padding: 0 4px; }
.rx-more .i { width: 16px; height: 16px; }
.act span { white-space: nowrap; }
@media (max-width: 440px) { .post-actions .act span:not(.emo) { font-size: .82rem; } .post-actions [data-test=share] span { display: none; } .post-actions { grid-template-columns: 1.4fr 1.2fr .7fr auto; } }
.rx-picker { position: fixed; z-index: 86; display: flex; gap: 2px; padding: 6px; background: var(--ag-raised); border: 1px solid var(--ag-line); border-radius: 999px; box-shadow: var(--ag-shadow-2); animation: pop .16s var(--ag-ease); }
.rx-picker button { display: flex; flex-direction: column; align-items: center; gap: 0; border: 0; background: none; border-radius: 999px; padding: 6px 7px; min-width: 46px; transition: transform .12s; }
.rx-picker button:hover, .rx-picker button:focus-visible { transform: translateY(-4px) scale(1.12); background: var(--ag-hover); }
.rx-picker .emo { font-size: 1.6rem; line-height: 1.1; }
.rx-picker small { font-size: .62rem; color: var(--ag-muted); font-weight: 650; }
.rx-av { position: relative; display: inline-block; }
.rx-badge { position: absolute; right: -4px; bottom: -4px; font-size: .9rem; }
.why .why-main { font-size: 1rem; font-weight: 600; }
.why-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.why-table th { text-align: left; font-weight: 600; color: var(--ag-muted); padding: 6px 8px 6px 0; vertical-align: top; width: 38%; }
.why-table td { padding: 6px 0; font-family: var(--ag-font-mono); font-size: .82rem; }
.why-table tr + tr { border-top: 1px solid var(--ag-line); }
.mono { font-family: var(--ag-font-mono); }
.hist { padding: 8px 0; border-bottom: 1px solid var(--ag-line); }
.hist .post-text { padding: 4px 0; }

/* composer */
.cmp-dlg .dlg-body { padding-bottom: 8px; }
.composer .row b { display: block; }
.cmp-text { width: 100%; border: 0; outline: none; background: none; resize: none; font-size: 1.15rem; line-height: 1.5; min-height: 110px; padding: 4px 2px; }
.cmp-text:lang(hi) { font-size: 1.2rem; line-height: 1.7; }
.cmp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.cmp-photos:empty { display: none; }
.cmp-ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ag-sunken); }
.cmp-ph img { width: 100%; height: 100%; object-fit: cover; }
.cmp-ph.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .5) linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent) 0 0 / 200% 100%; animation: shimmer 1s infinite; }
.x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(15, 23, 42, .7); color: #fff; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.pill .x { position: static; width: 20px; height: 20px; margin-left: 4px; font-size: .9rem; }
.alt-btn { position: absolute; left: 4px; bottom: 4px; border: 0; border-radius: 6px; background: rgba(15, 23, 42, .7); color: #fff; font-size: .65rem; font-weight: 800; padding: 3px 6px; }
.cmp-link { position: relative; }
.cmp-link .link-card, .cmp-link .tv-card { margin: 0; }
.cmp-tools { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--ag-line); border-radius: 14px; }
.tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-weight: 650; color: var(--ag-text); min-height: 40px; }
.tool:hover { background: var(--ag-hover); }
.tool .i { color: var(--ag-accent-ink); }
.aud-btn.big { font-size: .82rem; padding: 4px 10px; margin-top: 2px; }
.feel-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.on { background: var(--ag-accent-soft); color: var(--ag-accent-ink); }
.pick-list { max-height: 50vh; overflow: auto; }
.li.pick { cursor: pointer; padding: 8px 4px; }
.li.pick input { width: 20px; height: 20px; accent-color: var(--ag-accent); }

/* comments */
.comments-card { margin-top: 12px; padding: 12px 12px 8px; }
.comments { display: flex; flex-direction: column; gap: 10px; }
.thread .replies { margin-left: 40px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cm { display: flex; gap: 8px; align-items: flex-start; }
.cm-bubble { background: var(--ag-sunken); border-radius: 16px; padding: 8px 12px; display: inline-block; max-width: 100%; }
.cm-bubble .name-line { font-size: .88rem; }
.cm-text { white-space: pre-wrap; font-size: .95rem; }
.hidden-cm .cm-bubble { opacity: .75; border: 1px dashed var(--ag-line-2); }
.cm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--ag-muted); padding: 2px 8px; }
.cm-meta .link-btn { font-size: .78rem; font-weight: 650; }
.cm-meta .rx-wrap .act { min-height: 26px; }
.replies-btn { margin: 4px 0 0 40px; font-size: .82rem; font-weight: 650; display: inline-flex; gap: 4px; align-items: center; }
.cm-compose { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); background: var(--ag-surface); padding: 10px 0 4px; margin-top: 8px; border-top: 1px solid var(--ag-line); }
@media (min-width: 1000px) { .cm-compose { bottom: 0; } }
.cm-input { min-height: 40px !important; border-radius: 20px; padding: 9px 14px; resize: none; flex: 1; }

/* ---------- search, trends, widgets ---------- */
.search-form { position: relative; }
.search-form .i { position: absolute; left: 14px; top: 13px; color: var(--ag-muted); }
.search-big { padding-left: 44px !important; height: 48px; border-radius: 14px; font-size: 1rem; }
.widget { padding-bottom: 6px; }
.widget h2 { display: flex; align-items: center; gap: 6px; font-size: .95rem; padding: 14px 16px 6px; }
.widget h2 .i { color: var(--ag-accent-ink); width: 18px; height: 18px; }
.trends { list-style: none; margin: 0; padding: 0 6px 6px; }
.trends a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ag-text); }
.trends a:hover { background: var(--ag-hover); text-decoration: none; }
.trends b { display: block; overflow-wrap: anywhere; }
.trends small { color: var(--ag-muted); font-size: .78rem; }
.tr-n { width: 22px; text-align: center; font-weight: 750; color: var(--ag-muted); font-size: .85rem; }
.tag-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ag-accent-soft); color: var(--ag-accent-ink); display: grid; place-items: center; flex: none; }
.tag-ic.big { width: 44px; height: 44px; }

/* ---------- notifications ---------- */
.note-row { align-items: flex-start; }
.note-row.unread { background: var(--ag-accent-soft); }
.note-row .note-line { white-space: normal; font-size: .93rem; line-height: 1.4; }
.note-row .note-line .muted { font-weight: 450; }
.note-av { position: relative; flex: none; }
.note-ic { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 999px; background: var(--ag-accent); color: var(--ag-accent-contrast); display: grid; place-items: center; border: 2px solid var(--ag-surface); }
.note-ic .i { width: 13px; height: 13px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ag-accent); flex: none; margin-top: 8px; }
.top-bell .badge { top: 2px; right: 0; }
@media (max-width: 999px) { .top-bell { display: none; } }

/* ---------- chat ---------- */
.main:has(.chat-view) { max-width: 1040px; }
.chat-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 1000px) { .chat-split { grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--top-h) - 36px); } .chat-list, .chat-conv { min-height: 0; } }
.chat-list, .chat-conv { background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: var(--ag-radius-lg); box-shadow: var(--ag-shadow-1); display: flex; flex-direction: column; overflow: hidden; }
.chat-list.hide, .chat-conv.hide { display: none; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 6px 16px; }
.chat-head h1 { font-size: 1.25rem; }
.chat-tabs { padding: 4px 12px 8px; }
.chat-items { overflow: auto; flex: 1; }
.conv-row { border-top: 0 !important; }
.conv-row.on { background: var(--ag-accent-soft); }
.conv-row.unread b, .conv-row.unread small { color: var(--ag-text); font-weight: 700; }
.badge-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ag-accent); color: var(--ag-accent-contrast); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.av-pair { position: relative; display: inline-block; flex: none; }
.av-pair .av { position: absolute; border: 2px solid var(--ag-surface); }
.av-pair .av:first-child { left: 0; top: 0; } .av-pair .av:last-child { right: 0; bottom: 0; }
.conv-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--ag-line); }
.conv-head small { display: block; }
.req-banner { margin: 10px; flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-height: 50vh; overscroll-behavior: contain; }
@media (max-width: 999px) { .chat-conv { min-height: calc(100dvh - var(--top-h) - var(--tab-h) - 40px); } .msgs { max-height: calc(100dvh - var(--top-h) - var(--tab-h) - 170px); } }
.day-sep { align-self: center; font-size: .75rem; color: var(--ag-muted); background: var(--ag-sunken); padding: 3px 10px; border-radius: 999px; margin: 10px 0 6px; }
.sys-line { align-self: center; font-size: .78rem; color: var(--ag-muted); margin: 4px 0; text-align: center; }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 82%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-body { display: flex; flex-direction: column; min-width: 0; }
.msg.mine .msg-body { align-items: flex-end; }
.msg-who { color: var(--ag-muted); font-size: .72rem; margin: 0 10px 2px; }
.bub { background: var(--ag-sunken); border-radius: 18px; padding: 8px 12px; overflow-wrap: anywhere; user-select: text; }
.msg.mine .bub { background: var(--ag-accent); color: var(--ag-accent-contrast); border-bottom-right-radius: 6px; }
.msg:not(.mine) .bub { border-bottom-left-radius: 6px; }
.msg.mine .bub a { color: inherit; text-decoration: underline; }
.msg.pending .bub { opacity: .65; }
.msg.failed .bub { outline: 2px solid var(--ag-err); }
.bub.del { background: none !important; color: var(--ag-muted) !important; border: 1px dashed var(--ag-line-2); font-style: italic; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.msg-text { white-space: pre-wrap; }
.msg-text:lang(hi) { font-size: 1.04rem; }
.msg-media { display: grid; grid-template-columns: repeat(2, minmax(0, 120px)); gap: 3px; margin: -2px -4px 4px; }
.msg-media .m { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: rgba(0, 0, 0, .1); }
.msg-media .m:only-child { grid-column: span 2; aspect-ratio: auto; max-width: 240px; }
.msg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-rx { align-self: flex-start; font-size: .8rem; background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: 999px; padding: 0 6px; margin-top: -6px; position: relative; }
.seen { align-self: flex-end; margin: 2px 4px; }
.typing { min-height: 22px; padding: 0 14px; }
.msg-compose { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ag-line); }
.msg-input { min-height: 42px !important; max-height: 160px; border-radius: 21px; padding: 10px 14px; resize: none; flex: 1; }
.send-btn { width: 44px; height: 44px; padding: 0; border-radius: 999px; flex: none; }
.older { align-self: center; }
.err { color: var(--ag-err); }
.top-chat .badge { top: 2px; right: 0; }
@media (max-width: 999px) { .top-chat { display: none; } }

.msg.mine .msg-rx { align-self: flex-end; }
.bub.media-only { background: none !important; padding: 0; }
.bub.media-only .msg-media { margin: 0; }
.layout.no-side { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.layout.no-side .side { display: none; }
@media (max-width: 999px) { .layout.no-side { grid-template-columns: minmax(0, 1fr); } }

/* ---------- stories ---------- */
.stories { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; width: 70px; flex: none; color: var(--ag-text); }
.story-tile small { font-size: .74rem; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-av { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; }
.st-av.ring { background: conic-gradient(var(--ag-accent), var(--ag-accent-2), var(--ag-accent)); padding: 3px; }
.st-av.ring .av { border: 2px solid var(--ag-bg); width: 58px; height: 58px; }
.story-tile.seen .st-av.ring { background: var(--ag-line-2); }
.st-plus { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--ag-accent); color: var(--ag-accent-contrast); display: grid; place-items: center; border: 2px solid var(--ag-bg); }
.st-plus .i { width: 14px; height: 14px; }
.st-new { width: 56px; height: 56px; border-radius: 999px; border: 2px dashed var(--ag-line-2); display: grid; place-items: center; color: var(--ag-accent-ink); }
.story-viewer { position: fixed; inset: 0; z-index: 95; background: rgba(5, 8, 14, .96); display: grid; place-items: center; }
.sv-card { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); max-height: 100dvh; background: #111; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 640px) { .sv-card { border-radius: 0; width: 100vw; height: 100dvh; } }
.sv-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sv-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars i { display: block; height: 100%; background: #fff; width: 0; }
.sv-head { position: absolute; top: 18px; left: 10px; right: 10px; display: flex; align-items: center; gap: 10px; color: #fff; z-index: 3; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.sv-head small { display: block; opacity: .8; }
.sv-head .ibtn { color: #fff; }
.sv-stage { flex: 1; display: grid; place-items: center; min-height: 0; }
.sv-stage img { width: 100%; height: 100%; object-fit: contain; }
.sv-text { width: 100%; height: 100%; display: grid; place-items: center; padding: 32px; color: #fff; font-size: 1.6rem; font-weight: 750; text-align: center; white-space: pre-wrap; line-height: 1.35; }
.sv-text:lang(hi) { font-size: 1.75rem; line-height: 1.55; }
.sv-tap { position: absolute; top: 70px; bottom: 80px; width: 30%; border: 0; background: none; z-index: 2; }
.sv-tap.prev { left: 0; } .sv-tap.next { right: 0; }
.sv-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); z-index: 3; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); }
.sv-foot .input { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); border-radius: 999px; }
.sv-foot .ibtn { color: #fff; }
.sv-foot .btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }
.story-viewer .v-close { z-index: 4; }
.bg-rose { background: linear-gradient(160deg, #db2777, #7c3aed); } .bg-indigo { background: linear-gradient(160deg, #4f46e5, #0e7490); }
.bg-teal { background: linear-gradient(160deg, #0f766e, #155e75); } .bg-sunset { background: linear-gradient(160deg, #ea580c, #be185d); }
.bg-night { background: linear-gradient(160deg, #111827, #312e81); } .bg-leaf { background: linear-gradient(160deg, #15803d, #0f766e); }
.sm-preview { aspect-ratio: 9 / 16; max-height: 52vh; margin: 0 auto; width: 100%; max-width: 300px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--ag-sunken); }
.sm-preview img { width: 100%; height: 100%; object-fit: cover; }
.sm-text { width: 100%; height: 100%; border: 0; background: none; color: #fff; font-size: 1.35rem; font-weight: 750; text-align: center; padding: 24px; resize: none; outline: none; display: grid; }
.sm-text::placeholder { color: rgba(255, 255, 255, .75); }
.sm-bgs { display: flex; gap: 8px; justify-content: center; }
.sm-bg { width: 34px; height: 34px; border-radius: 999px; border: 2px solid transparent; }
.sm-bg[aria-pressed="true"] { border-color: var(--ag-text); box-shadow: 0 0 0 2px var(--ag-bg) inset; }

/* ---------- groups, pages, events ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.group-tile { overflow: hidden; color: var(--ag-text); display: flex; flex-direction: column; }
.group-tile:hover { text-decoration: none; box-shadow: var(--ag-shadow-2); transform: translateY(-1px); }
.gt-cover { height: 84px; background: linear-gradient(120deg, var(--ag-accent), var(--ag-accent-2)); background-size: cover; background-position: center; }
.gt-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.gt-body small { color: var(--ag-muted); display: flex; align-items: center; gap: 4px; }
.gt-body .i { width: 14px; height: 14px; }
.grp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; }
.grp-head h1 { font-size: 1.4rem; flex-basis: 100%; }
.grp-head .muted { display: inline-flex; align-items: center; gap: 4px; }
.grp-head .muted .i { width: 15px; height: 15px; }
.grp-head .prof-actions { margin-left: auto; }
.li.req small { white-space: normal; }
.ev-tile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: var(--ag-text); }
.ev-tile:hover { text-decoration: none; background: var(--ag-hover); }
.ev-tile small { display: block; color: var(--ag-muted); font-size: .82rem; }
.date-badge { width: 52px; flex: none; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--ag-line); background: var(--ag-surface); }
.date-badge small { display: block; background: var(--ag-accent); color: var(--ag-accent-contrast); font-size: .7rem; font-weight: 750; text-transform: uppercase; padding: 2px 0; }
.date-badge b { display: block; font-size: 1.3rem; padding: 2px 0 4px; }
.ev-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px 4px; }
.ev-head h1 { font-size: 1.35rem; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px; color: var(--ag-muted); font-size: .9rem; }
.ev-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta .i { width: 17px; height: 17px; }
.ev-actions { padding: 4px 16px 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- reports, legal forms, moderation ---------- */
.rep-cats { display: grid; gap: 4px; }
@media (min-width: 640px) { .rep-cats { grid-template-columns: 1fr 1fr; } }
.rep-cat { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--ag-line); }
.rep-cat:has(input:checked) { border-color: var(--ag-accent-ink); background: var(--ag-accent-soft); }
.timeline { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.legal h2 { margin: 18px 0 6px; font-size: 1.1rem; }
.legal h3 { margin: 12px 0 4px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 4px 0; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.adm-stat { padding: 10px 12px; }
.adm-stat b { display: block; font-size: 1.4rem; }
.adm-stat small { color: var(--ag-muted); }
.adm-stat.err b { color: var(--ag-err); }
.adm-row { width: 100%; border: 0; background: none; text-align: left; border-top: 1px solid var(--ag-line); }
.adm-row:first-child { border-top: 0; }
.adm-row:hover { background: var(--ag-hover); }
.adm-row.overdue { background: var(--ag-err-soft); }
.pri { width: 28px; text-align: center; font-weight: 900; color: var(--ag-muted); }
.pri.p3, .pri.p2 { color: var(--ag-err); } .pri.p1 { color: var(--ag-warn); }
.adm-media { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-media img { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; filter: blur(14px); transition: filter .2s; }
.adm-ev { padding: 0; border: 0; background: none; border-radius: 10px; cursor: zoom-in; overflow: hidden; }
.adm-ev.show img { filter: none; }
.adm-ev.show { cursor: zoom-out; }
.adm-actions .btn { white-space: nowrap; }

/* ---------- Settings: AI use, your data, delete ---------- */
.meter { height: 8px; border-radius: 99px; background: var(--ag-sunken); overflow: hidden; border: 1px solid var(--ag-line); }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ag-accent), var(--ag-accent-2)); border-radius: inherit; }
#set-delete { border-color: var(--ag-err-soft); }
#set-delete h2 { color: var(--ag-err); }
.act-list .li time { white-space: nowrap; }
.set-sec .ext { padding: 0 16px 12px; }
.set-sec .ext .muted.small, .set-sec .ext > p { padding: 0; }
.set-sec .ext .section-title { margin: 12px 0 4px; }
.set-sec .ext .li { padding-left: 0; padding-right: 0; }

/* ---------- the app files (core/install.js: the Install sheet's second choice, the /download page) ---------- */
.inst-steps code, .inst-sum code { font-size: .92em; background: var(--ag-hover); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.inst-alt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ag-line); }
.inst-or { margin: 0 0 8px !important; color: var(--ag-muted); font-size: .88em; font-weight: 600; }
.inst-native { display: flex; flex-wrap: wrap; gap: 8px; }
.inst-native[hidden] { display: none; }
/* a long file label ("Linux app (.deb — Ubuntu, Debian) 93.5 MB") wraps instead of pushing the phone page sideways */
.inst-native .inst-file { max-width: 100%; white-space: normal; text-align: left; height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; gap: 8px; }
.inst-file small, .inst-meta { color: var(--ag-muted); font-weight: 500; font-size: .84em; }
.btn.primary .inst-meta, .btn.primary .inst-txt small { color: inherit; opacity: .8; }
.btn.block { width: 100%; justify-content: center; }
.inst-all { margin: 12px 0 0 !important; font-size: .92em; }
.inst-sum { font-size: .74em; color: var(--ag-muted); overflow-wrap: anywhere; margin: 10px 0 0 !important; }
[aria-busy="true"].inst-big, [aria-busy="true"].inst-btn { opacity: .7; cursor: progress; }
