/* YuviForms operator app: premium layer on top of the shared app.css (which /admin also uses and is not changed).
   Theme: :root[data-theme=light|dark|system] (set by theme-boot.js before paint). Motion: honours
   prefers-reduced-motion and the operator's own "कम animation" switch (data-motion=reduce). No inline styles. */

:root {
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-up: 0 2px 4px rgba(15, 23, 42, .08), 0 12px 28px rgba(15, 23, 42, .10);
  --grad: linear-gradient(135deg, #1e3a8a 0%, #3b5bdb 55%, #c2410c 130%);
  --surface-2: #eef2fb; --ring: rgba(37, 99, 235, .35);
  --good: #15803d; --warn: #b45309; --bad: #b91c1c;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 140ms; --t-med: 260ms;
}
/* Dark tokens: used for "dark", and for "system" when the device is dark. */
:root[data-theme="dark"] {
  --bg: #0b1220; --card: #111a2e; --ink: #e5e7eb; --muted: #a3acb9; --line: #2a3550;
  --brand: #93c5fd; --brand-ink: #0b1220; --accent: #fdba74;
  --ok-bg: #12301e; --ok-ink: #a7f3c0; --wait-bg: #3a2610; --wait-ink: #fed7aa; --no-bg: #1c2438; --no-ink: #cbd5e1;
  --err: #fca5a5; --err-bg: #3a1414; --focus: #93c5fd;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
  --shadow-up: 0 2px 4px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .35);
  --grad: linear-gradient(135deg, #1e3a8a 0%, #2b4bb8 60%, #9a3412 140%);
  --surface-2: #17213a; --ring: rgba(147, 197, 253, .35);
  --good: #4ade80; --warn: #fbbf24; --bad: #f87171;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f8fb; --card: #ffffff; --ink: #0f172a; --muted: #4b5563; --line: #d6dce5;
  --brand: #1e3a8a; --brand-ink: #ffffff; --accent: #c2410c;
  --ok-bg: #e6f4ea; --ok-ink: #14532d; --wait-bg: #fff4e0; --wait-ink: #7c2d12; --no-bg: #eef0f3; --no-ink: #374151;
  --err: #b91c1c; --err-bg: #fdecec; --focus: #2563eb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
    --shadow-up: 0 2px 4px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .35);
    --grad: linear-gradient(135deg, #1e3a8a 0%, #2b4bb8 60%, #9a3412 140%);
    --surface-2: #17213a; --ring: rgba(147, 197, 253, .35);
    --good: #4ade80; --warn: #fbbf24; --bad: #f87171;
  }
}

/* the sticky header must never cover a focused/scrolled-to box */
html:has(body.op) { scroll-padding-top: 84px; }
body.op { background: var(--bg); transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease); }

/* ---------- header ---------- */
body.op .top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 1.1rem; box-shadow: var(--shadow); }
.who { gap: 10px; }
.who-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who-name { font-weight: 700; color: var(--ink); margin: 0; }
.who-mail { font-size: .82rem; }
.plan-chip { background: var(--ok-bg); color: var(--ok-ink); }
.plan-chip.warn { background: var(--wait-bg); color: var(--wait-ink); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); }
.i-bell { width: 18px; height: 18px; display: block; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 0 0-5.5-6.84V3a1.5 1.5 0 0 0-3 0v1.16A7 7 0 0 0 5 11v5l-2 2v1h18v-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 0 0-5.5-6.84V3a1.5 1.5 0 0 0-3 0v1.16A7 7 0 0 0 5 11v5l-2 2v1h18v-1Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dot { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); border: 2px solid var(--card); }

/* avatar: initials or photo (photo is an <img> child) */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 999px; overflow: hidden; background: var(--grad); color: #fff; font-weight: 700; user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 34px; height: 34px; font-size: .9rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.3rem; box-shadow: var(--shadow); }
.avatar.xl { width: 96px; height: 96px; font-size: 2rem; box-shadow: var(--shadow); }

/* ---------- notifications ---------- */
.notif-panel { position: fixed; z-index: 40; top: 68px; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 12px 14px; animation: pop var(--t-med) var(--ease); }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notif-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface-2); font-size: .93rem; }
.notif-list li.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.notif-list li.bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.notif-list .btn { margin-top: 6px; }
.small { font-size: .88rem; }

/* ---------- top navigation (2026-11-12: replaces the left sidebar; full width) ---------- */
body.op .wrap { max-width: 1480px; padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
.top-row { flex-wrap: nowrap; gap: clamp(8px, 1.4vw, 20px); min-height: 64px; }
.brand { flex: none; }
.topnav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.tn, .tab, .mi, .qa, .set-card, .segb, .chipb, .acct-btn, .drive-pill { font: inherit; cursor: pointer; }
.tn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; position: relative; transition: background-color var(--t-fast), color var(--t-fast); }
.tn:hover { background: var(--surface-2); color: var(--ink); }
.tn[aria-current="page"] { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.tn[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); animation: grow var(--t-med) var(--ease); }
.tn .ni { width: 18px; height: 18px; }
.who { flex: none; gap: 8px; }
.plan-chip { border: 0; cursor: pointer; min-height: 32px; font-weight: 700; }
.drive-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .82rem; font-weight: 700; }
.pill-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex: none; }
.drive-pill.on, .drive-state.on { color: var(--good); } .drive-pill.on .pill-dot, .drive-state.on .pill-dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.drive-pill.bad, .drive-state.bad { color: var(--bad); } .drive-pill.bad .pill-dot, .drive-state.bad .pill-dot { background: var(--bad); animation: pulse 1.6s ease-in-out infinite; }
.drive-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin: 4px 0 6px; }
.icon-btn .ni { width: 18px; height: 18px; }
.icon-btn:focus-visible, .acct-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); text-align: left; max-width: 260px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: var(--shadow); }
.acct-btn .who-text { min-width: 0; }
.acct-btn .who-name, .acct-btn .who-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 170px; }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; flex: none; transition: transform var(--t-fast); }
.acct-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
#theme-toggle[data-theme="dark"] .ni { transform: rotate(180deg); }
#theme-toggle .ni { transition: transform var(--t-med) var(--ease); }

/* account menu: dropdown on desktop, bottom sheet from the mobile "और" tab */
.menu { position: fixed; z-index: 45; top: 70px; right: clamp(16px, 3vw, 40px); width: min(300px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 8px; animation: pop var(--t-med) var(--ease); transform-origin: top right; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.menu-who b, .menu-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who span { font-size: .84rem; color: var(--muted); }
.avatar.md { width: 42px; height: 42px; font-size: 1rem; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font-weight: 600; }
.mi:hover, .mi:focus-visible { background: var(--surface-2); outline: none; }
.mi .ni { color: var(--muted); }
.mi.danger-ink, .mi.danger-ink .ni { color: var(--bad); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
body:not(.is-app) .menu .app-only { display: none; }
.menu.sheet { top: auto; bottom: calc(68px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; max-height: 75vh; overflow: auto; transform-origin: bottom center; animation: sheet var(--t-med) var(--ease); }

.ni { width: 20px; height: 20px; flex: none; display: inline-block; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ni-home { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3Z'/%3E%3C/svg%3E"); }
.ni-drafts { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6Zm8 1.5V8h4.5ZM9 12v2h8v-2Zm0 4v2h6v-2Z'/%3E%3C/svg%3E"); }
.ni-history { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 3a9 9 0 1 1-8.95 10h2.02A7 7 0 1 0 8 6.6L10 8.6H4V2.6l2.6 2.6A8.97 8.97 0 0 1 13 3Zm-1 5h2v4.6l3.2 1.9-1 1.7L12 13.7Z'/%3E%3C/svg%3E"); }
.ni-settings { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m19.4 13 .1-1-.1-1 2.1-1.6-2-3.5-2.5 1a7.6 7.6 0 0 0-1.7-1L15 3h-4l-.4 2.7a7.6 7.6 0 0 0-1.7 1l-2.5-1-2 3.5L6.5 11l-.1 1 .1 1-2.1 1.6 2 3.5 2.5-1a7.6 7.6 0 0 0 1.7 1L11 21h4l.4-2.7a7.6 7.6 0 0 0 1.7-1l2.5 1 2-3.5ZM13 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z'/%3E%3C/svg%3E"); }
.ni-search { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1 1 10 3Zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10Z'/%3E%3C/svg%3E"); }
.ni-plan { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h3v10Zm6.5 0V4h3v16ZM17 20v-7h3v7ZM2 22v-2h20v2Z'/%3E%3C/svg%3E"); }
.ni-help { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-1 11h2v2h-2Zm1-9a3.5 3.5 0 0 1 2 6.4c-.6.4-1 .8-1 1.6h-2c0-1.7.9-2.4 1.6-2.9A1.5 1.5 0 1 0 10.5 9.5h-2A3.5 3.5 0 0 1 12 6Z'/%3E%3C/svg%3E"); }
.ni-shield { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5Zm-1.2 13.6-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4Z'/%3E%3C/svg%3E"); }
.ni-doc { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6Zm8 1.5V8h4.5ZM8 11v2h8v-2Zm0 4v2h8v-2Z'/%3E%3C/svg%3E"); }
.ni-logout { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3h9v18h-9v-2h7V5h-7Zm-1.6 4.6L9.8 9l-2 2H15v2H7.8l2 2-1.4 1.4L4 12Z'/%3E%3C/svg%3E"); }
.ni-drive { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.7 3h8.6l6.2 10.8-4.3 7.2H5.8L1.5 13.8Zm1.2 2L4.8 12h4.5l4-7Zm6.2 0-4 7h8.2Zm-9 9 2.7 4.6 4.1-4.6Zm9.3 0-4.1 4.6h6.8L19.2 14Z'/%3E%3C/svg%3E"); }
.ni-user { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 12c4.4 0 8 2.2 8 5v3H4v-3c0-2.8 3.6-5 8-5Z'/%3E%3C/svg%3E"); }
.ni-printer { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12v5H6Zm-3 7h18a1 1 0 0 1 1 1v7h-4v5H6v-5H2v-7a1 1 0 0 1 1-1Zm5 7v4h8v-4Zm10-4.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E"); }
.ni-bell { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 0 0-5.5-6.84V3a1.5 1.5 0 0 0-3 0v1.16A7 7 0 0 0 5 11v5l-2 2v1h18v-1Z'/%3E%3C/svg%3E"); }
.ni-theme { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2v16a8 8 0 0 1 0-16Z'/%3E%3C/svg%3E"); }
.ni-menu { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v2H3Zm0 5h18v2H3Zm0 5h18v2H3Z'/%3E%3C/svg%3E"); }

.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: none; justify-content: space-around;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: .78rem; font-weight: 600; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.tab[aria-current="page"] { color: var(--brand); }
.tab[aria-current="page"] .ni { transform: translateY(-1px) scale(1.08); }
.tab .ni { transition: transform var(--t-fast) var(--ease); }

@media (max-width: 1240px) { .acct-btn .who-text { display: none; } .acct-btn { padding-right: 8px; } }
@media (max-width: 1080px) { .tn span:not(.ni) { display: none; } .tn { padding: 8px 10px; } .tn[aria-current="page"]::after { left: 8px; right: 8px; } .tn .ni { width: 20px; height: 20px; } }
@media (max-width: 899px) {
  .topnav { display: none !important; }
  .tabbar:not([hidden]) { display: flex; }
  body.op.has-tabs { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) { #search-btn { display: none; } }
@media (max-width: 640px) { .plan-chip, .drive-pill { display: none !important; } .who { gap: 6px; } .icon-btn { width: 38px; height: 38px; } }
@media (max-width: 380px) { #theme-toggle { display: none; } }

/* ---------- boot / views ---------- */
.boot { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; justify-content: center; }
.spinner { width: 22px; height: 22px; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.spinner.lg { width: 44px; height: 44px; border-width: 4px; }
.view:not([hidden]) { animation: rise var(--t-med) var(--ease); }
.card, .panel, .stat, .fcard { border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .3px; color: var(--accent); }
.btn { border-radius: 10px; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background-color var(--t-fast), border-color var(--t-fast); }
.btn:active:not([disabled]) { transform: scale(.98); }
.btn.primary { background: var(--brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, var(--shadow); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 999px; border: 2px solid currentColor; border-color: rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.google.is-busy::after { border-color: color-mix(in srgb, var(--ink) 25%, transparent); border-top-color: var(--ink); }
.link-btn { font: inherit; font-size: .9rem; font-weight: 600; background: none; border: 0; color: var(--brand); cursor: pointer; min-height: 36px; padding: 0 4px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- login ---------- */
.login { padding: 12px 0 28px; }
.login-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.login-pitch { padding: 28px; border-radius: 22px; color: #fff; background: var(--grad); box-shadow: var(--shadow-up); position: relative; overflow: hidden; }
.login-pitch::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -110px; border-radius: 999px; background: rgba(255, 255, 255, .10); }
.login-pitch .eyebrow { color: #fde7d6; }
.pitch-h { font-size: 1.75rem; font-weight: 700; line-height: 1.35; margin: 10px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: .8rem; font-weight: 700; }
.login-card { padding: 26px; }
.login-card h1 { margin-top: 0; }
.btn.google { min-height: 52px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 1.05rem; gap: 12px; box-shadow: var(--shadow); }
.btn.google:hover { box-shadow: var(--shadow-up); border-color: var(--focus); }
.g-logo { width: 22px; height: 22px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.7 1.2 9.2 3.6l6.9-6.9C35.9 2.4 30.4 0 24 0 14.6 0 6.6 5.4 2.6 13.3l8 6.2C12.5 13.6 17.8 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.7 6c4.5-4.2 6.9-10.3 6.9-17.7z'/%3E%3Cpath fill='%23FBBC05' d='M10.6 28.5c-.5-1.4-.8-2.9-.8-4.5s.3-3.1.8-4.5l-8-6.2C.9 16.6 0 20.2 0 24s.9 7.4 2.6 10.7l8-6.2z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.7-6c-2.2 1.5-5 2.3-8.2 2.3-6.2 0-11.5-4.1-13.4-9.8l-8 6.2C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 760px) {
  .login-grid { grid-template-columns: 1fr; gap: 16px; }
  .login-pitch { padding: 20px; order: 2; }
  .pitch-h { font-size: 1.3rem; }
}

/* ---------- dashboard ---------- */
.hello { display: flex; align-items: center; gap: 16px; margin: 4px 0 10px; }
.hello h1 { margin: 0; }
.hello p { margin: 0; }
.stats { gap: 14px; }
.stat { position: relative; gap: 2px; border: 1px solid var(--line); background: var(--card); font: inherit; color: var(--ink); text-align: left; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.stat-k { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: none; }
.stat .num.small-num { font-size: 1.25rem; padding: 6px 0 2px; }
button.stat { cursor: pointer; }
button.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.meter { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.meter .bar { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 600ms var(--ease); }
.meter .bar.warn { background: var(--warn); }
.meter .bar.bad { background: var(--bad); }
/* bar widths in 5% steps (no inline styles under the CSP) */
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}
.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.stat-drive.on .small-num { color: var(--good); }
.stat-drive.off .small-num { color: var(--muted); }
.stat-drive.bad .small-num { color: var(--bad); }
.quick { margin-top: 0; }
.invite { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 14px; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: linear-gradient(0deg, var(--card), color-mix(in srgb, var(--brand) 6%, var(--card))); }
.invite h2 { margin: 0 0 4px; font-size: 1.15rem; }
.invite p { margin: 0; }
.invite-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 87.3 78'%3E%3Cpath fill='%230066da' d='m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3L27.5 53H0c0 1.55.4 3.1 1.2 4.5z'/%3E%3Cpath fill='%2300ac47' d='M43.65 25 29.9 1.2c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44A9.06 9.06 0 0 0 0 53h27.5z'/%3E%3Cpath fill='%23ea4335' d='M73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5H59.8l5.85 11.5z'/%3E%3Cpath fill='%2300832d' d='M43.65 25 57.4 1.2C56.05.4 54.5 0 52.9 0H34.4c-1.6 0-3.15.45-4.5 1.2z'/%3E%3Cpath fill='%232684fc' d='M59.8 53H27.5L13.75 76.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z'/%3E%3Cpath fill='%23ffba00' d='M73.4 26.5 60.7 4.5c-.8-1.4-1.95-2.5-3.3-3.3L43.65 25 59.8 53h27.45c0-1.55-.4-3.1-1.2-4.5z'/%3E%3C/svg%3E") center / 30px no-repeat, var(--surface-2); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 18px; }
.card.sub { padding: 14px 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-h h2 { font-size: 1.05rem; margin: 0; }
.mini-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.mini-list .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mini-list .t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mini-list .t span { font-size: .82rem; color: var(--muted); }
.mini-list .ok { color: var(--good); font-weight: 700; }
.mini-list .no { color: var(--bad); font-weight: 700; }
.forms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.forms-head h2 { margin: 0; font-size: 1.2rem; }
.search { margin: 0; flex: 0 1 320px; }
.search input { width: 100%; font: inherit; min-height: 44px; padding: 8px 14px 8px 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23889'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1 1 10 3Zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10Z'/%3E%3C/svg%3E") 12px center / 18px no-repeat; color: var(--ink); }
.cards .fcard { border: 1px solid var(--line); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.cards .fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.fcard .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, var(--card)); color: var(--brand); font-weight: 700; }
.skel { border-radius: var(--radius); min-height: 132px; background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 50%, var(--card)) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } .hello .avatar.lg { width: 48px; height: 48px; } }

/* ---------- form ---------- */
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.save-state { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.save-state[data-state="off"] { display: none; }
.ss-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--muted); }
.save-state[data-state="saving"] .ss-dot { background: var(--brand); animation: pulse 1s ease-in-out infinite; }
.save-state[data-state="saved"] { color: var(--good); }
.save-state[data-state="saved"] .ss-dot { background: var(--good); }
.save-state[data-state="error"], .save-state[data-state="offline"] { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--card)); }
.save-state[data-state="error"] .ss-dot, .save-state[data-state="offline"] .ss-dot { background: var(--bad); }
.drive-box { border-radius: var(--radius); background: var(--card); }
.files.big li { padding: 10px 12px; }
.files .meta { font-size: .85rem; color: var(--muted); }
.files .tag { font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.files .tag.warn { background: var(--wait-bg); color: var(--wait-ink); }
.files .tag.bad { background: var(--err-bg); color: var(--err); }
.files .tag.ok { background: var(--ok-bg); color: var(--ok-ink); }

/* ---------- PDF busy overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(4px); animation: fade var(--t-med) var(--ease); }
.busy-card { width: min(420px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-up); padding: 24px; text-align: center; }
.busy-h { font-weight: 700; font-size: 1.15rem; margin: 12px 0; }
.steps { text-align: left; margin: 0 auto; padding-left: 22px; color: var(--muted); }
.steps li { margin: 6px 0; }
.steps li.done { color: var(--good); }
.steps li.now { color: var(--ink); font-weight: 700; }

/* ---------- result / pdf.js pages ---------- */
.actions .btn { min-width: 120px; }
.pdf-pages { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.pdf-pages canvas { width: 100%; max-width: 900px; height: auto; background: #fff; border-radius: 4px; box-shadow: var(--shadow); }

/* ---------- settings ---------- */
.panel { scroll-margin-top: 120px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.seg legend { margin-bottom: 6px; }
.seg label { margin: 0; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--card)); color: var(--brand); }
.seg input { width: 18px; height: 18px; margin: 0; }
.profile-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.profile-body { flex: 1 1 260px; min-width: 0; }
.profile-body p { margin: 2px 0; }
.file-btn { margin: 0; font-weight: 600; }
#avatar-file:focus-visible + .btn, .file-btn:focus-within { outline: 3px solid var(--focus); }


/* ---------- page heads, cards, chips (2026-11-12 redesign) ---------- */
#view-form, #view-drive-consent { max-width: 1120px; margin-left: auto; margin-right: auto; }
#view-doc, #view-help { max-width: 920px; margin-left: auto; margin-right: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.page-head h1 { margin: 2px 0 4px; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.01em; }
.crumb { margin: 0; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb .link-btn { min-height: 32px; padding: 0 2px; font-size: .88rem; }
.lead { margin: 0; color: var(--muted); max-width: 72ch; }
.h2 { font-size: 1.1rem; margin: 0 0 6px; } .h3 { font-size: 1rem; margin: 18px 0 6px; }
.view > .card, .view .card, .panel, .kpi, .set-card, .fcard, .stat { animation: cardin var(--t-med) var(--ease) both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipb { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .9rem; font-weight: 600; transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast); }
.chipb:hover { border-color: var(--brand); transform: translateY(-1px); }
.chipb[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chipb.strong { background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.empty { text-align: center; padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.empty p { margin: 4px 0; }
.empty-ico { width: 40px; height: 40px; color: var(--muted); margin-bottom: 6px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.callout p { margin: 0 0 4px; }
.callout-ico { color: var(--brand); width: 24px; height: 24px; margin-top: 2px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; }
.seg.compact { margin: 0; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.segb { min-height: 36px; padding: 2px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; }
.segb[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.status.notice .pick-list { flex-basis: 100%; margin: 4px 0; }
.status.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-top: 12px; border-radius: var(--radius-sm); background: var(--wait-bg); color: var(--wait-ink); }
.tag { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok-ink); } .tag.bad { background: var(--err-bg); color: var(--err); } .tag.warn { background: var(--wait-bg); color: var(--wait-ink); }
.skel.line { display: block; height: 14px; min-height: 0; border-radius: 6px; margin: 10px 0; }
.skel.line.short { width: 60%; }
.skel.row-skel { min-height: 56px; list-style: none; }

/* ---------- home: search first ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(18px, 2.4vw, 32px); margin: 0 0 18px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  background: radial-gradient(1200px 300px at 100% -40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, var(--card)), var(--card)); box-shadow: var(--shadow); }
.hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hero-top .avatar.lg { width: 44px; height: 44px; font-size: 1.05rem; }
.hero-hello p { margin: 0; }
.hero-h { margin: 6px 0 4px; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.hero-sub { margin: 0 0 16px; color: var(--muted); font-size: 1.02rem; }
.bigsearch { position: relative; max-width: 820px; }
.bigsearch input { width: 100%; font: inherit; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); min-height: 58px; padding: 10px 52px 10px 52px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.bigsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring), var(--shadow-up); }
.bigsearch input::-webkit-search-cancel-button { display: none; }
.bs-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 22px; height: 22px; pointer-events: none; }
.bs-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.bs-clear:hover { background: color-mix(in srgb, var(--brand) 15%, var(--surface-2)); }
.hero .chips { margin-top: 14px; }
.search-count { margin: 10px 0 0; min-height: 1.2em; font-size: .92rem; font-weight: 600; color: var(--brand); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 380px); gap: 22px; align-items: start; }
.home-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.home-side .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.home-side .stat { padding: 12px 14px; font-size: .9rem; }
.home-side .stat .num { font-size: 1.5rem; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .8rem; font-weight: 600; text-align: center; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.qa .ni { color: var(--brand); width: 22px; height: 22px; }
.qa:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.forms-head { margin: 0 0 12px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.cards .fcard { padding: 18px; }
.cards li:nth-child(2) .fcard { animation-delay: 30ms; } .cards li:nth-child(3) .fcard { animation-delay: 60ms; } .cards li:nth-child(4) .fcard { animation-delay: 90ms; } .cards li:nth-child(n+5) .fcard { animation-delay: 120ms; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr); } .home-side { position: static; } .home-side .stats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .home-side .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .quick { grid-template-columns: repeat(2, 1fr); } }

/* ---------- history ---------- */
.tbl.hist td.act { text-align: right; white-space: nowrap; }
.tbl.hist td.f { font-weight: 600; }
.tbl.hist tbody tr { transition: background-color var(--t-fast); }
.tbl.hist tbody tr:hover { background: var(--surface-2); }
.tbl .empty-cell { text-align: center; padding: 24px; color: var(--muted); }
.skel-row td { padding: 10px; }
@media (max-width: 640px) {
  .tbl.hist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.hist, .tbl.hist tbody, .tbl.hist tr, .tbl.hist td { display: block; width: 100%; }
  .tbl.hist tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tbl.hist td { border: 0; padding: 2px 0; }
  .tbl.hist td[data-l="समय"] { font-size: .85rem; color: var(--muted); }
  .tbl.hist td.act { text-align: left; padding-top: 8px; }
  .tbl.hist td.act .btn { width: 100%; }
}

/* ---------- plan & usage ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.plan-grid.two { grid-template-columns: 1.3fr 1fr; }
.kpi-k { margin: 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.kpi-v { margin: 4px 0 8px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.kpi-v.good { color: var(--good); } .kpi-v.warn { color: var(--warn); } .kpi-v.bad { color: var(--bad); }
.kpi-of { font-size: 1rem; font-weight: 600; color: var(--muted); }
.kpi .kv { margin: 0 0 8px; }
.kpi p.small { margin: 8px 0 0; }
.bars { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.bars .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.bars .bn { font-weight: 700; font-variant-numeric: tabular-nums; }
.bars .meter { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 900px) { .plan-grid, .plan-grid.two { grid-template-columns: 1fr; } }

/* ---------- settings ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.set-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.set-card .ni { grid-row: 1 / 3; width: 28px; height: 28px; margin: 0 4px; background: var(--brand); }
.set-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.sc-t { font-weight: 700; font-size: 1.02rem; }
.sc-d { font-size: .86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-grid .set-card:nth-child(2) { animation-delay: 25ms; } .set-grid .set-card:nth-child(3) { animation-delay: 50ms; } .set-grid .set-card:nth-child(4) { animation-delay: 75ms; } .set-grid .set-card:nth-child(n+5) { animation-delay: 100ms; }
#view-settings .panel { max-width: 860px; padding: 20px 22px; }
#settings-up { margin: -6px 0 12px; }
.check.switch { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; }
.check.switch:last-of-type { border-bottom: 0; }
.check.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background-color var(--t-fast); margin: 0; }
.check.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--t-fast) var(--ease); }
.check.switch input:checked { background: var(--good); }
.check.switch input:checked::after { transform: translateX(18px); }
.check.switch input:disabled { opacity: .5; }
.check.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tips { margin: 6px 0 10px; padding-left: 20px; }
.tips li { margin: 6px 0; }

/* ---------- help + documents ---------- */
.steps-4 { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0 0 18px; }
.steps-4 li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.steps-4 li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 4px; }
.steps-4 span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .steps-4 { grid-template-columns: 1fr 1fr; } }
.faq { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); padding: 0 16px; transition: box-shadow var(--t-fast); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--brand); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; }
.faq .link-btn, .doc-body .link-btn { min-height: 0; padding: 0; font-size: inherit; text-decoration: underline; }
.doc-body { padding: clamp(18px, 3vw, 32px); line-height: 1.75; }
.doc-body h2 { font-size: 1.15rem; margin: 22px 0 8px; } .doc-body h2:first-child { margin-top: 0; }
.doc-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.doc-body td, .doc-body th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc-body .meta { color: var(--muted); }
.contact { margin-top: 4px; }

/* ---------- logout dialog ---------- */
.dlg { border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(420px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow-up); }
.dlg[open] { animation: pop var(--t-med) var(--ease); }
.dlg::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); }
.dlg h2 { margin: 0 0 8px; font-size: 1.2rem; }
.row.end { justify-content: flex-end; }

/* drafts */
#drafts-for { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-links a { color: inherit; }
.foot { margin-top: 16px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: 20px; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-up); font-weight: 600; animation: rise var(--t-med) var(--ease); }
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok { background: var(--good); color: #fff; }
@media (max-width: 899px) { .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .who-text { display: none; }
  .who { margin-left: auto; width: auto; justify-content: flex-end; }
  .brand { font-size: 1.25rem; }
  .logo-mark { width: 30px; height: 30px; }
  .actions .btn { min-width: 0; }
  .notif-panel { top: 64px; right: 16px; }
}

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes grow { from { transform: scaleX(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cardin { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .spinner, .btn.is-busy::after { animation: spin 1.6s linear infinite !important; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
:root[data-motion="reduce"] .spinner, :root[data-motion="reduce"] .btn.is-busy::after { animation: spin 1.6s linear infinite !important; }
@media print { .topnav, .menu, .tabbar, .toasts, .notif-panel, .overlay { display: none !important; } }
/* small polish (2026-11-12) */
.search-count:empty { display: none; }
.chipb { text-align: left; }
#freq-list .chipb { font-size: .85rem; }
/* आय प्रमाण पत्र: परिवार कार्ड (2026-11-14, used only by js/income-family.js) */
.fsection.inc-card { border-left: 4px solid var(--brand); background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.fsection.inc-card > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.inc-remove { font-size: .85rem; }
.inc-add-wrap { margin: 0 0 12px; }
.inc-add { width: 100%; border-style: dashed; }
.inc-gone { display: none !important; }
select.inc-pick + input:not([hidden]) { margin-top: 6px; }
.inc-picked:has(input[aria-invalid="true"]) select.inc-pick { border-color: var(--err); }
.inc-count-hint { font-weight: 600; }
@media (min-width: 720px) { .inc-add { width: auto; } }
/* Speed 2026-11-22: thin bar at the top while the server is asked (body.is-loading, operator-app.js loading()) */
body.is-loading::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; background: var(--grad); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.is-loading::before { animation: none; } }
