/* Sahayak, on the Rosh 27 design system: Rosh Glass for whatever floats, Geist for type, one tint for
   action and selection, and status colours that always come with a glyph and a word.
   Every font and icon ships with the app (web/fonts): the node has no internet, and the phone keeps
   working away from it. Devanagari comes from the phone's own Noto, Kohinoor or Nirmala fonts. */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Material Symbols Rounded, cut down to the icons Sahayak uses (scripts/build_icon_font.py). Write the icon's name. */
@font-face {
  font-family: "Sahayak Symbols"; font-style: normal; font-weight: 300 700; font-display: block;
  src: url(fonts/symbols.woff2) format("woff2");
}

/* ---------------------------------------------------------------- tokens: light */
:root {
  color-scheme: light;
  --font: "Geist", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Devanagari", "Kohinoor Devanagari", monospace;
  --icons: "Sahayak Symbols";

  /* surfaces */
  --page: #F4F3F0;            /* bg.secondary: the grouped canvas every screen sits on */
  --card: #FFFFFF;            /* bg.tertiary: cards and list sections */
  --elev: #FFFFFF;            /* bg.elevated */
  --inverse: #0B0B0C;
  --on-inverse: #F5F5F7;
  /* labels */
  --label: #0B0B0C;
  --label-2: rgba(11, 11, 12, .66);
  --label-3: rgba(11, 11, 12, .46);
  --label-4: rgba(11, 11, 12, .26);
  /* fills and lines */
  --fill: rgba(11, 11, 12, .14);
  --fill-2: rgba(11, 11, 12, .08);
  --fill-3: rgba(11, 11, 12, .05);
  --fill-4: rgba(11, 11, 12, .03);
  --sep: rgba(11, 11, 12, .12);
  --sep-strong: rgba(11, 11, 12, .22);
  --press: rgba(11, 11, 12, .08);
  --seg-thumb: #FFFFFF;
  /* Rosh Glass */
  --glass: rgba(255, 255, 255, .58);       /* Fog: bars */
  --glass-2: rgba(250, 249, 247, .82);     /* Marine: sheets, toasts */
  --edge: rgba(255, 255, 255, .7);
  --rim: rgba(255, 255, 255, .95);
  --scrim: rgba(10, 10, 12, .32);
  --hero-glass: rgba(255, 255, 255, .62);
  --hero-ink: #0B0B0C;
  --hero-ink-2: rgba(11, 11, 12, .72);
  --hero-metal: linear-gradient(170deg, #D6C2A0 0%, #A98D5F 38%, #7E5D45 72%, #B89C70 100%);
  --hero-pill: rgba(11, 11, 12, .06);
  --silk: radial-gradient(160% 120% at 105% 110%, rgba(0,0,0,0) 0 36%, rgba(255,255,255,.7) 37%, rgba(0,0,0,0) 39.5%),
    radial-gradient(150% 110% at 115% 125%, #9BA5AD 0 30%, rgba(155,165,173,0) 30.6%),
    radial-gradient(130% 120% at 100% 130%, #C9C3CF 0 44%, rgba(201,195,207,0) 44.6%),
    radial-gradient(90% 80% at 20% 10%, #F4EADC 0%, rgba(244,234,220,0) 60%),
    linear-gradient(135deg, #C9AE84 0%, #E2D2BE 30%, #F1E7DA 50%, #D6C9C4 70%, #B8BEC6 100%);
  /* tint: Bay Blue. It never collides with the red, amber and green of a verdict. */
  --tint: #1F5FD6;
  --tint-fill: #1F5FD6;
  --tint-ink: #0056AA;
  --tint-soft: rgba(31, 95, 214, .11);
  --tint-ring: rgba(31, 95, 214, .35);
  --on-tint: #FFFFFF;
  /* status: vivid for glyphs and fills, ink for text on a soft fill (6:1 or better) */
  --alarm: #C8102E;   --alarm-ink: #A60035;   --alarm-soft: rgba(200, 16, 46, .09);   --alarm-ring: rgba(200, 16, 46, .28);
  --caution: #9A6200; --caution-ink: #774F00; --caution-soft: rgba(224, 161, 0, .14); --caution-ring: rgba(154, 98, 0, .30);
  --go: #1B7A45;      --go-ink: #006B27;      --go-soft: rgba(32, 161, 85, .11);      --go-ring: rgba(27, 122, 69, .28);
  --info: #1F5FD6;    --info-ink: #0056AA;    --info-soft: rgba(31, 95, 214, .10);    --info-ring: rgba(31, 95, 214, .28);
  --violet: #7A3BD1;  --violet-ink: #6D26B8;  --violet-soft: rgba(122, 59, 209, .10);
  --on-status: #FFFFFF;
  /* elevation */
  --e1: 0 1px 2px rgba(28, 20, 12, .06), 0 0 0 1px rgba(28, 20, 12, .04);
  --e2: 0 2px 6px rgba(28, 20, 12, .06), 0 6px 16px rgba(28, 20, 12, .07);
  --e3: 0 2px 6px rgba(28, 20, 12, .06), 0 10px 28px rgba(28, 20, 12, .12);
  --e4: 0 4px 12px rgba(28, 20, 12, .08), 0 20px 48px rgba(28, 20, 12, .16);
  /* motion */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --spring-snap: linear(0, .3 10%, .8 25%, 1.04 42%, 1);
  --spring-bounce: linear(0, .3 10%, .8 25%, 1.06 42%, .99 62%, 1);
  /* tracking (zeroed for Devanagari below: negative tracking breaks the headline bar) */
  --trk-hero: -.035em; --trk-t1: -.022em; --trk-t2: -.018em; --trk-t3: -.012em; --trk-body: -.004em;
}

/* ---------------------------------------------------------------- tokens: dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #101010; --card: #1C1C20; --elev: #26262B; --inverse: #F5F5F7; --on-inverse: #0B0B0C;
    --label: #F5F5F7; --label-2: rgba(245, 245, 247, .70); --label-3: rgba(245, 245, 247, .46); --label-4: rgba(245, 245, 247, .26);
    --fill: rgba(245, 245, 247, .24); --fill-2: rgba(245, 245, 247, .15); --fill-3: rgba(245, 245, 247, .09); --fill-4: rgba(245, 245, 247, .06);
    --sep: rgba(245, 245, 247, .14); --sep-strong: rgba(245, 245, 247, .26); --press: rgba(255, 255, 255, .12); --seg-thumb: rgba(245, 245, 247, .22);
    --glass: rgba(44, 44, 50, .55); --glass-2: rgba(32, 32, 37, .86); --edge: rgba(255, 255, 255, .16); --rim: rgba(255, 255, 255, .24);
    --scrim: rgba(0, 0, 0, .55);
    --hero-glass: rgba(28, 26, 34, .46); --hero-ink: #FFFFFF; --hero-ink-2: rgba(255, 255, 255, .84);
    --hero-metal: linear-gradient(170deg, #FAFBF6 0%, #E2D2BE 32%, #A98D5F 64%, #FAFBF6 100%);
    --hero-pill: rgba(255, 255, 255, .14);
    --silk: radial-gradient(160% 120% at 105% 110%, rgba(0,0,0,0) 0 36%, rgba(250,251,246,.5) 37%, rgba(0,0,0,0) 39.5%),
      radial-gradient(150% 110% at 115% 125%, #25202F 0 30%, rgba(37,32,47,0) 30.6%),
      radial-gradient(130% 120% at 100% 130%, #4F5069 0 44%, rgba(79,80,105,0) 44.6%),
      radial-gradient(120% 140% at -10% 120%, rgba(0,0,0,0) 0 52%, rgba(226,210,190,.55) 53%, rgba(0,0,0,0) 56%),
      radial-gradient(90% 80% at 20% 10%, #E2D2BE 0%, rgba(226,210,190,0) 60%),
      linear-gradient(135deg, #7E5D45 0%, #A98D5F 22%, #D0BCA5 40%, #927A72 58%, #5E5767 76%, #536576 90%, #9BA5AD 100%);
    --tint: #6FA8FF; --tint-fill: #2F6EE8; --tint-ink: #91C1FF; --tint-soft: rgba(111, 168, 255, .16); --tint-ring: rgba(111, 168, 255, .45);
    --alarm: #FF5C72;   --alarm-ink: #FF9EA6;   --alarm-soft: rgba(255, 92, 114, .15);   --alarm-ring: rgba(255, 92, 114, .38);
    --caution: #FFB547; --caution-ink: #F5AE33; --caution-soft: rgba(255, 181, 71, .14); --caution-ring: rgba(255, 181, 71, .36);
    --go: #4FD68A;      --go-ink: #64DB7C;      --go-soft: rgba(79, 214, 138, .13);      --go-ring: rgba(79, 214, 138, .34);
    --info: #6FA8FF;    --info-ink: #91C1FF;    --info-soft: rgba(111, 168, 255, .15);   --info-ring: rgba(111, 168, 255, .36);
    --violet: #B993FF;  --violet-ink: #C9ACFF;  --violet-soft: rgba(185, 147, 255, .15);
    --on-status: #0B0B0C;
    --e1: 0 0 0 1px rgba(255, 255, 255, .06); --e2: 0 6px 16px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .06);
    --e3: 0 10px 28px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); --e4: 0 20px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101010; --card: #1C1C20; --elev: #26262B; --inverse: #F5F5F7; --on-inverse: #0B0B0C;
  --label: #F5F5F7; --label-2: rgba(245, 245, 247, .70); --label-3: rgba(245, 245, 247, .46); --label-4: rgba(245, 245, 247, .26);
  --fill: rgba(245, 245, 247, .24); --fill-2: rgba(245, 245, 247, .15); --fill-3: rgba(245, 245, 247, .09); --fill-4: rgba(245, 245, 247, .06);
  --sep: rgba(245, 245, 247, .14); --sep-strong: rgba(245, 245, 247, .26); --press: rgba(255, 255, 255, .12); --seg-thumb: rgba(245, 245, 247, .22);
  --glass: rgba(44, 44, 50, .55); --glass-2: rgba(32, 32, 37, .86); --edge: rgba(255, 255, 255, .16); --rim: rgba(255, 255, 255, .24);
  --scrim: rgba(0, 0, 0, .55);
  --hero-glass: rgba(28, 26, 34, .46); --hero-ink: #FFFFFF; --hero-ink-2: rgba(255, 255, 255, .84);
    --hero-metal: linear-gradient(170deg, #FAFBF6 0%, #E2D2BE 32%, #A98D5F 64%, #FAFBF6 100%);
    --hero-pill: rgba(255, 255, 255, .14);
  --silk: radial-gradient(160% 120% at 105% 110%, rgba(0,0,0,0) 0 36%, rgba(250,251,246,.5) 37%, rgba(0,0,0,0) 39.5%),
    radial-gradient(150% 110% at 115% 125%, #25202F 0 30%, rgba(37,32,47,0) 30.6%),
    radial-gradient(130% 120% at 100% 130%, #4F5069 0 44%, rgba(79,80,105,0) 44.6%),
    radial-gradient(120% 140% at -10% 120%, rgba(0,0,0,0) 0 52%, rgba(226,210,190,.55) 53%, rgba(0,0,0,0) 56%),
    radial-gradient(90% 80% at 20% 10%, #E2D2BE 0%, rgba(226,210,190,0) 60%),
    linear-gradient(135deg, #7E5D45 0%, #A98D5F 22%, #D0BCA5 40%, #927A72 58%, #5E5767 76%, #536576 90%, #9BA5AD 100%);
  --tint: #6FA8FF; --tint-fill: #2F6EE8; --tint-ink: #91C1FF; --tint-soft: rgba(111, 168, 255, .16); --tint-ring: rgba(111, 168, 255, .45);
  --alarm: #FF5C72;   --alarm-ink: #FF9EA6;   --alarm-soft: rgba(255, 92, 114, .15);   --alarm-ring: rgba(255, 92, 114, .38);
  --caution: #FFB547; --caution-ink: #F5AE33; --caution-soft: rgba(255, 181, 71, .14); --caution-ring: rgba(255, 181, 71, .36);
  --go: #4FD68A;      --go-ink: #64DB7C;      --go-soft: rgba(79, 214, 138, .13);      --go-ring: rgba(79, 214, 138, .34);
  --info: #6FA8FF;    --info-ink: #91C1FF;    --info-soft: rgba(111, 168, 255, .15);   --info-ring: rgba(111, 168, 255, .36);
  --violet: #B993FF;  --violet-ink: #C9ACFF;  --violet-soft: rgba(185, 147, 255, .15);
  --on-status: #0B0B0C;
  --e1: 0 0 0 1px rgba(255, 255, 255, .06); --e2: 0 6px 16px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .06);
  --e3: 0 10px 28px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); --e4: 0 20px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* ---------------------------------------------------------------- accessibility modes */
@media (prefers-contrast: more) {
  :root { --label-2: rgba(11, 11, 12, .82); --label-3: rgba(11, 11, 12, .62); --sep: rgba(11, 11, 12, .30);
    --sep-strong: rgba(11, 11, 12, .45); --fill: rgba(11, 11, 12, .30); --edge: rgba(11, 11, 12, .35); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --label-2: rgba(245, 245, 247, .86); --label-3: rgba(245, 245, 247, .66);
      --sep: rgba(245, 245, 247, .32); --sep-strong: rgba(245, 245, 247, .5); --fill: rgba(245, 245, 247, .40); --edge: rgba(255, 255, 255, .45); }
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #F8F7F5; --glass-2: #FFFFFF; --hero-glass: #FFFFFF; --rim: transparent; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: #1C1C20; --glass-2: #202025; --hero-glass: #1C1C20; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .15s !important; transition-property: opacity, background-color, color !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  font: 400 1.125rem/1.5 var(--font); letter-spacing: var(--trk-body);
  color: var(--label); background: var(--page);
  overflow-wrap: anywhere;  /* long URLs and numbers in messages must never widen the page */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  font-synthesis-weight: none;
}
:lang(hi) { --trk-hero: 0; --trk-t1: 0; --trk-t2: 0; --trk-t3: 0; --trk-body: 0; }
:lang(en) { --trk-hero: -.035em; --trk-t1: -.022em; --trk-t2: -.018em; --trk-t3: -.012em; --trk-body: -.004em; }
body:lang(hi) { line-height: 1.6; }
[hidden] { display: none !important; }
::selection { background: var(--tint-soft); }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
@media (prefers-contrast: more) { :focus-visible { outline-width: 3px; } }
button, a, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--tint); }
h1, h2, h3, h4, h5 { text-wrap: balance; }
p { text-wrap: pretty; }

/* icons: write the icon's name inside, e.g. <span class="ms">call</span> */
.ms {
  font-family: var(--icons); font-weight: normal; font-style: normal; font-size: 1.375rem; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr;
  display: inline-block; flex: none; width: 1em; height: 1em; overflow: hidden; text-align: center;
  font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
  font-variation-settings: "FILL" 0, "wght" 400;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400; }

/* ---------------------------------------------------------------- top bar: floating Fog glass */
.topbar {
  position: sticky; top: 0; z-index: 20; pointer-events: none;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 10px;
  background: linear-gradient(var(--page) 40%, rgba(0, 0, 0, 0));
}
.topbar-inner {
  pointer-events: auto; position: relative;
  max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  height: 60px; padding: 0 8px 0 6px; border-radius: 30px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--edge), 0 0 0 1px var(--fill-4), var(--e3);
}
.topbar-inner > * { min-width: 0; }
.brand {
  flex: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px 0 0;
  border: 0; border-radius: 24px; background: none; color: inherit; text-align: left; text-decoration: none;
}
.brand-mark {
  position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  overflow: hidden; color: #FFFFFF;
  background: radial-gradient(90% 80% at 20% 10%, #E2D2BE 0%, rgba(226,210,190,0) 60%),
    linear-gradient(135deg, #7E5D45 0%, #A98D5F 30%, #927A72 60%, #4F5069 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 10px rgba(37, 32, 47, .25);
}
.brand-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 45%); }
.brand-mark .ms { position: relative; z-index: 1; font-size: 26px; font-variation-settings: "FILL" 1, "wght" 500; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.1875rem; font-weight: 700; letter-spacing: var(--trk-t3); }
.brand-text small { margin-top: 3px; font: 500 .625rem/1 var(--mono); letter-spacing: .14em; color: var(--label-2); }
.node-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px;
  border-radius: 17px; background: var(--fill-3); color: var(--label-2);
  font-size: .8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
.node-pill .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--go); animation: pulse 2.4s var(--ease) infinite; }
.node-pill.phone .dot { background: var(--info); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(32, 161, 85, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(32, 161, 85, 0); } }
.icon-btn, .lang-toggle, .sound-toggle {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px;
  background: var(--fill-3); color: var(--label); font-size: .9375rem; font-weight: 650; line-height: 1;
  transition: transform .35s var(--spring-snap), background .15s;
}
.icon-btn:active, .lang-toggle:active, .sound-toggle:active { transform: scale(.94); background: var(--press); }
.sound-toggle .off { display: none; }
.sound-toggle[aria-pressed="false"] { color: var(--label-2); }
.sound-toggle[aria-pressed="false"] .on { display: none; }
.sound-toggle[aria-pressed="false"] .off { display: inline-block; }
@media (max-width: 400px) { .brand-text small { display: none; } }
@media (max-width: 370px) { .brand-text { display: none; } }

/* ---------------------------------------------------------------- layout and type */
main { max-width: 600px; margin: 0 auto; padding: 4px 16px 28px; }
.screen { animation: screen-in .48s var(--ease-enter); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.screen-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.screen-head h2, .screen-head h1 { flex: 1; margin: 0; }
.back {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px;
  color: var(--label); background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--edge), var(--e2);
  transition: transform .35s var(--spring-snap);
}
.back:active { transform: scale(.94); }
.screen h1 { font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: var(--trk-t1); margin: 0 0 8px; }
.screen h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 700; letter-spacing: var(--trk-t1); margin: 0 0 12px; }
.screen h3, .section-label {
  margin: 30px 4px 10px; font-size: 1rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--label-2);
}
.sub, .muted { color: var(--label-2); }
.sub { margin: 0 0 20px; }
.try { margin: 28px 4px 10px; font-size: .9375rem; font-weight: 600; color: var(--label-2); }
.meta { margin: 18px 4px 0; font: 500 .8125rem/1.6 var(--mono); letter-spacing: 0; color: var(--label-2); font-variant-numeric: tabular-nums; }
.overline { margin: 0; font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tint); }

/* ---------------------------------------------------------------- buttons */
/* Prominent (.primary), Tinted (.tinted), Gray (.secondary), Plain (.ghost), Destructive (.danger) */
.primary, .tinted, .secondary, .ghost, .danger {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 22px; border: 0; border-radius: 26px;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none;
  transition: transform .35s var(--spring-snap), filter .15s, background .15s, opacity .15s;
  -webkit-user-select: none; user-select: none;
}
.primary .ms, .tinted .ms, .secondary .ms, .ghost .ms, .danger .ms { font-size: 1.375rem; }
.primary { background: var(--tint-fill); color: var(--on-tint); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.tinted { background: var(--tint-soft); color: var(--tint-ink); }
.secondary { background: var(--fill-2); color: var(--label); }
.ghost { background: transparent; color: var(--tint-ink); padding-left: 12px; padding-right: 12px; }
.danger { background: var(--alarm); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.primary:hover, .danger:hover { filter: brightness(1.06); }
.tinted:hover, .secondary:hover { filter: brightness(.97); }
.primary:active, .tinted:active, .secondary:active, .danger:active { transform: scale(.97); filter: brightness(.92); }
.ghost:active { opacity: .6; }
.primary[disabled], .tinted[disabled], .secondary[disabled], .danger[disabled] {
  background: var(--fill-3); color: var(--label-3); box-shadow: none; cursor: not-allowed; filter: none; transform: none;
}
.primary.big, .danger.big, .tinted.big { width: 100%; min-height: 60px; border-radius: 30px; font-size: 1.1875rem; margin-top: 18px; }
.primary.loading .ms { display: none; }
.primary.loading::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor;
  border-top-color: transparent; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta-row > * { flex: 1 1 calc(50% - 5px); }
.cta-row > .wide { flex-basis: 100%; }

/* ---------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px;
  border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--e1); color: var(--label);
  font-size: .9375rem; font-weight: 500; line-height: 1.3; text-align: left;
  transition: transform .35s var(--spring-snap), background .15s;
}
.chip .ms { font-size: 1.25rem; color: var(--tint); }
.chip:active { transform: scale(.97); background: var(--fill-3); }

/* ---------------------------------------------------------------- fields */
.label { display: block; margin: 0 4px 8px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
textarea, input[type="text"], input[type="tel"], input[type="datetime-local"], input[type="number"], input[type="password"], select {
  display: block; width: 100%; min-height: 52px; padding: 13px 16px; border: 0; border-radius: 16px;
  background: var(--card); color: var(--label); font-size: 1.0625rem; line-height: 1.5;
  box-shadow: inset 0 0 0 1px var(--sep-strong);
  transition: box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 168px; resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--label-3); }
textarea:focus, input:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tint), 0 0 0 4px var(--tint-soft); }
textarea[readonly] { background: var(--fill-3); box-shadow: none; }
select { background-image: none; padding-right: 16px; }

/* ---------------------------------------------------------------- segmented controls */
.seg, .modes {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px;
  border-radius: 24px; background: var(--fill-3);
}
.seg label, .modes label { position: relative; display: block; min-width: 0; }
.seg input, .modes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span, .modes .seg-item {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 8px;
  border-radius: 21px; text-align: center; font-size: .9375rem; font-weight: 500; line-height: 1.2; color: var(--label-2);
  transition: background .25s var(--ease), color .2s, box-shadow .25s;
}
.seg input:checked + span, .modes input:checked + .seg-item { background: var(--seg-thumb); color: var(--label); font-weight: 650; box-shadow: var(--e2); }
.seg input:focus-visible + span, .modes input:focus-visible + .seg-item { outline: 2px solid var(--tint); outline-offset: 1px; }
.modes { margin: 0 0 22px; }
.modes .seg-item { flex-direction: column; gap: 4px; min-height: 68px; padding: 8px 4px; font-size: .8125rem; }
.modes .seg-item .ms { font-size: 1.625rem; }
.modes input:checked + .seg-item .ms { color: var(--tint); font-variation-settings: "FILL" 1, "wght" 500; }

/* ---------------------------------------------------------------- banners (.note) */
.note {
  display: flex; align-items: flex-start; gap: 12px; margin: 14px 0; padding: 14px 16px; border-radius: 16px;
  background: var(--info-soft); color: var(--label); font-size: .9375rem; line-height: 1.5;
}
.note::before { content: "info"; font: normal 1.375rem/1.1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--info); flex: none; }
.note.warn { background: var(--alarm-soft); font-weight: 500; }
.note.warn::before { content: "error"; color: var(--alarm); }
.note:empty { display: none; }

/* ---------------------------------------------------------------- list sections */
.list, .reasons, .actions, .promise {
  margin: 0; padding: 0; list-style: none; border-radius: 22px; background: var(--card); box-shadow: var(--e1); overflow: hidden;
}

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 84px); z-index: 80; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(92vw, 520px);
  padding: 12px 18px 12px 14px; border-radius: 26px;
  background: var(--glass-2); color: var(--label); font-size: .9375rem; font-weight: 500; line-height: 1.4;
  -webkit-backdrop-filter: blur(36px) saturate(190%); backdrop-filter: blur(36px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--edge), var(--e3);
  animation: toast-in .5s var(--spring-bounce);
}
.toast::before { content: "info"; font: normal 1.375rem/1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--tint); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ================================================================ HOME */
.hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 362px; padding: 14px; margin-top: 2px; border-radius: 34px; background: var(--silk);
  box-shadow: var(--e2);
}
.hero-mark {
  position: absolute; right: 20px; top: 12px; font-size: 108px; line-height: 1; width: auto; height: auto; overflow: visible;
  transform: rotate(-8deg);
  font-variation-settings: "FILL" 1, "wght" 500; pointer-events: none;
  background: var(--hero-metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 18px 34px rgba(37, 32, 47, .3)); opacity: .92;
}
.hero-glass {
  position: relative; padding: 20px 20px 18px; border-radius: 24px; background: var(--hero-glass); color: var(--hero-ink);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .4), 0 20px 50px rgba(0, 0, 0, .14);
}
.hero-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 42%); }
.hero-glass > * { position: relative; }
.hero h1 { margin: 0; font-size: 2.125rem; line-height: 1.12; font-weight: 700; letter-spacing: var(--trk-hero); }
.hero .sub { margin: 10px 0 0; color: var(--hero-ink-2); font-size: 1.0625rem; }
.tiles { display: grid; gap: 12px; margin-top: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.trust li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px 4px 8px; border-radius: 15px;
  background: var(--hero-pill); color: var(--hero-ink); font-size: .8125rem; font-weight: 600; line-height: 1.2;
}
.trust .ms { font-size: 1.125rem; font-variation-settings: "FILL" 1, "wght" 500; }
.tile-install .tile-icon { background: radial-gradient(90% 80% at 20% 10%, #E2D2BE 0%, rgba(226,210,190,0) 60%), linear-gradient(135deg, #7E5D45 0%, #A98D5F 30%, #927A72 60%, #4F5069 100%); }
.paste-btn.big { margin: 0 0 22px; }
.settings-label { margin: 8px 4px 0; font-size: .875rem; font-weight: 600; color: var(--label-2); }
.tile {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 100px; padding: 16px 14px 16px 16px;
  border: 0; border-radius: 26px; background: var(--card); box-shadow: var(--e1); color: var(--label);
  text-align: left; text-decoration: none;
  transition: transform .4s var(--spring-snap), box-shadow .2s;
}
.tile:active { transform: scale(.98); box-shadow: var(--e2); }
.tile-icon {
  position: relative; overflow: hidden; flex: none; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 20px; color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 14px rgba(28, 20, 12, .14);
}
.tile-icon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 46%); }
.tile-icon .ms { position: relative; z-index: 1; font-size: 34px; font-variation-settings: "FILL" 1, "wght" 500; }
.tile-shield .tile-icon { background: linear-gradient(160deg, #6FA8FF 0%, #1F5FD6 55%, #1A47A8 100%); }
.tile-rupee .tile-icon { background: linear-gradient(160deg, #E2C28A 0%, #A98D5F 50%, #7E5D45 100%); }
.tile-help .tile-icon { background: linear-gradient(160deg, #FF7A86 0%, #C8102E 60%, #9C0A22 100%); }
.tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tile-title { font-size: 1.3125rem; line-height: 1.25; font-weight: 650; letter-spacing: var(--trk-t3); }
.tile-sub { font-size: .9375rem; line-height: 1.4; color: var(--label-2); }
.tile .chev { color: var(--label-3); font-size: 1.5rem; }
.tile-help .tile-title { color: var(--alarm-ink); }

details.settings { margin-top: 14px; border-radius: 22px; background: var(--card); box-shadow: var(--e1); overflow: hidden; }
details.settings > summary {
  list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; cursor: pointer; font-weight: 600;
}
details.settings > summary::-webkit-details-marker { display: none; }
details.settings > summary .ms:first-child { color: var(--tint); }
details.settings > summary::after { content: "expand_more"; margin-left: auto; font: normal 1.5rem/1 var(--icons); color: var(--label-3); transition: transform .3s var(--ease); }
details.settings[open] > summary::after { transform: rotate(180deg); }
.settings-body { display: grid; gap: 10px; padding: 0 16px 16px; }
.settings-body .note { margin: 4px 0 0; }

/* ================================================================ CHECK */
#mode-text .label { margin-top: 2px; }
.mic-slot { margin-top: 12px; }
.mic-slot:empty { display: none; }
.mic {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; overflow: hidden;
  padding: 10px 20px 10px 10px; border: 0; border-radius: 34px; text-align: left;
  background: var(--tint-soft); color: var(--tint-ink); font-size: 1.0625rem; font-weight: 650; line-height: 1.3;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: background .2s, color .2s, transform .35s var(--spring-snap);
}
.mic-glyph { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 24px; background: var(--tint-fill); color: var(--on-tint); }
.mic-glyph .ms { font-size: 26px; font-variation-settings: "FILL" 1, "wght" 500; }
.mic .mic-label { flex: 1; }
.mic .mic-meter { position: absolute; left: 70px; right: 22px; bottom: 9px; height: 4px; border-radius: 2px; overflow: hidden; }
.mic .mic-bar { display: block; height: 100%; border-radius: inherit; background: var(--tint); transform: scaleX(0); transform-origin: left; transition: transform .08s linear; }
.mic.on { background: var(--alarm); color: #FFFFFF; transform: scale(1.02); }
.mic.on .mic-glyph { background: rgba(255, 255, 255, .22); color: #FFFFFF; animation: rec 1.2s var(--ease) infinite; }
.mic.on .mic-bar { background: #FFFFFF; }
.mic.off { opacity: .55; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }

details.extra { margin: 14px 0 0; }
details.extra > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  color: var(--tint-ink); font-weight: 600; cursor: pointer;
}
details.extra > summary::-webkit-details-marker { display: none; }
details.extra > summary::after { content: "expand_more"; font: normal 1.375rem/1 var(--icons); transition: transform .3s var(--ease); }
details.extra[open] > summary::after { transform: rotate(180deg); }
details.extra .label { margin-top: 8px; }

.photo-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 196px;
  padding: 24px; border-radius: 28px; cursor: pointer; text-align: center;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--tint-ring), var(--e1);
  color: var(--tint-ink); font-size: 1.125rem; font-weight: 650;
  transition: transform .35s var(--spring-snap);
}
.photo-btn:active { transform: scale(.98); }
.photo-glyph { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 38px; background: var(--tint-soft); }
.photo-glyph .ms { font-size: 40px; font-variation-settings: "FILL" 0, "wght" 400; }
#mode-image .label { margin-bottom: 12px; }

/* ================================================================ RESULT */
.verdict {
  --v: var(--label-2); --v-ink: var(--label); --v-soft: var(--fill-3); --v-ring: var(--sep);
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 20px;
  border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--v-ring), var(--e1);
}
.verdict::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--v-soft);
}
.verdict::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--v-soft), rgba(0, 0, 0, 0));
}
.verdict > * { position: relative; z-index: 1; }
.v-glyph {
  flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 34px;
  background: var(--v); color: var(--on-status); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px var(--v-ring);
}
.v-glyph .ms { font-size: 40px; font-variation-settings: "FILL" 1, "wght" 500; }
.verdict .v-label { font-size: 2.125rem; line-height: 1.08; font-weight: 750; letter-spacing: var(--trk-t1); color: var(--v-ink); }
.verdict .v-label-2 { margin-top: 4px; font-size: 1rem; font-weight: 500; color: var(--label-2); }
.verdict.scam { --v: var(--alarm); --v-ink: var(--alarm-ink); --v-soft: var(--alarm-soft); --v-ring: var(--alarm-ring); }
.verdict.suspicious { --v: var(--caution); --v-ink: var(--caution-ink); --v-soft: var(--caution-soft); --v-ring: var(--caution-ring); }
.verdict.no_signs { --v: var(--go); --v-ink: var(--go-ink); --v-soft: var(--go-soft); --v-ring: var(--go-ring); }
.verdict.unreadable { --v: var(--label-3); --v-ink: var(--label); --v-soft: var(--fill-4); --v-ring: var(--sep-strong); }
.verdict.unreadable .v-glyph { color: var(--card); }
#headline { margin: 22px 4px 0; font-size: 1.5rem; line-height: 1.3; font-weight: 700; letter-spacing: var(--trk-t2); }
#headline:focus { outline: none; }

.qr-box { margin-top: 16px; padding: 4px 16px; border-radius: 22px; background: var(--card); box-shadow: var(--e1); }
.qr-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--sep); }
.qr-row:last-of-type { box-shadow: none; }
.qr-k { font-size: .875rem; font-weight: 500; color: var(--label-2); }
.qr-v { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.qr-amount .qr-v { font-size: 1.5rem; font-weight: 700; letter-spacing: var(--trk-t2); }
.qr-fact {
  display: flex; gap: 10px; margin: 6px -4px 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--alarm-soft); color: var(--alarm-ink); font-weight: 600; line-height: 1.45;
}
.qr-fact::before { content: "error"; font: normal 1.375rem/1.05 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--alarm); flex: none; }
.qr-row + .qr-fact { margin-top: 12px; }

.explain { margin-top: 16px; padding: 16px 18px; border-radius: 22px; background: var(--tint-soft); }
.explain-title { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 650; color: var(--tint-ink); }
.explain-title::before { content: "forum"; font: normal 1.25rem/1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; }
.explain.loading .explain-title::after {
  content: ""; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; border: 2px solid currentColor;
  border-top-color: transparent; border-right-color: transparent; animation: spin .8s linear infinite;
}
.explain p { margin: 8px 0 0; font-size: 1.0625rem; line-height: 1.55; }
.explain.loading p { color: var(--label-2); }

.reasons li, .actions li {
  position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: start; padding: 15px 16px;
}
.reasons li + li::after, .actions li + li::after { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--sep); }
.reasons li > span:first-child, .actions li > span:first-child { grid-column: 2; font-size: 1.0625rem; line-height: 1.45; }
.reasons li .en, .actions li .en { grid-column: 2; margin-top: 3px; font-size: .875rem; line-height: 1.4; color: var(--label-2); }
.reasons li::before {
  content: "info"; grid-row: 1 / span 2; grid-column: 1; font: normal 1.625rem/1.05 var(--icons);
  font-variation-settings: "FILL" 1, "wght" 400; color: var(--label-3);
}
.reasons li.hard::before { content: "error"; color: var(--alarm); }
.actions { counter-reset: step; }
.actions li::before {
  counter-increment: step; content: counter(step); grid-row: 1 / span 2; grid-column: 1;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 15px;
  background: var(--tint-fill); color: var(--on-tint); font: 700 .9375rem/1 var(--font); font-variant-numeric: tabular-nums;
}
.result-actions { margin-top: 16px; }
/* the first thing to do stands out from the rest */
.actions li:first-child { background: var(--tint-soft); }
.actions li:first-child > span:first-child { font-weight: 650; }
details.checked { margin-top: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--e1); overflow: hidden; }
details.checked > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
  font-size: .9375rem; font-weight: 600; color: var(--label-2); cursor: pointer;
}
details.checked > summary::-webkit-details-marker { display: none; }
details.checked > summary::before { content: "sms"; font: normal 1.375rem/1 var(--icons); color: var(--tint); }
details.checked > summary::after { content: "expand_more"; margin-left: auto; font: normal 1.375rem/1 var(--icons); transition: transform .3s var(--ease); }
details.checked[open] > summary::after { transform: rotate(180deg); }
details.checked p { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; font-size: .9375rem; line-height: 1.5; }
#btn-1930 { flex-basis: 100%; min-height: 60px; border-radius: 30px; font-size: 1.125rem; }
.safety {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 22px; padding: 0 16px 0 12px;
  border: 0; border-radius: 22px; background: var(--go-soft); color: var(--go-ink); font-size: .875rem; font-weight: 600;
}
.safety::before { content: "verified"; font: normal 1.25rem/1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--go); }
.safety::after { content: "expand_more"; font: normal 1.25rem/1 var(--icons); transition: transform .3s var(--ease); }
.safety[aria-expanded="true"]::after { transform: rotate(180deg); }
.safety-detail { margin-top: 10px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--e1); font-size: .875rem; color: var(--label-2); }
.safety-detail ul { margin: 6px 0 0; padding-left: 18px; }

/* ================================================================ 1930 COMPLAINT */
.form-grid { display: grid; gap: 16px; }
.form-grid > label > span:first-child { display: block; margin: 0 4px 8px; font-size: .9375rem; font-weight: 600; }

/* ================================================================ "ASK THE AGENT" TICKET: a sheet */
.ticket-sheet {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: 520px; margin: 0 auto; padding: 10px 24px 24px; text-align: center; border-radius: 34px;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(36px) saturate(190%); backdrop-filter: blur(36px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--edge), var(--e4), 0 0 0 100vmax var(--scrim);
  animation: sheet-in .55s var(--spring-bounce);
}
.ticket-sheet::before { content: ""; display: block; width: 36px; height: 5px; margin: 0 auto 18px; border-radius: 3px; background: var(--label-4); }
@keyframes sheet-in { from { transform: translateY(110%); } to { transform: none; } }
.ticket-sheet p { margin: 0; font-weight: 600; }
.ticket-label { display: inline-flex; align-items: center; gap: 8px; color: var(--label-2); }
.ticket-label .ms { color: var(--tint); }
.ticket-no { margin: 8px 0 10px; font-size: 4.75rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--tint); font-variant-numeric: tabular-nums; }
.ticket-sheet .sub { margin: 0 0 18px; font-weight: 400; }
.ticket-sheet .primary { width: 100%; }

/* ================================================================ BENEFITS */
.feature-icon {
  position: relative; overflow: hidden; display: grid; place-items: center; width: 72px; height: 72px; margin: 4px 0 18px;
  border-radius: 22px; color: #FFFFFF; background: linear-gradient(160deg, #E2C28A 0%, #A98D5F 50%, #7E5D45 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 8px 18px rgba(126, 93, 69, .28);
}
.feature-icon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 46%); }
.feature-icon .ms { position: relative; z-index: 1; font-size: 40px; font-variation-settings: "FILL" 1, "wght" 500; }
.promise li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px; font-size: 1.0625rem; }
.promise li + li::after { content: ""; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--sep); }
.promise li::before { content: "check_circle"; font: normal 1.5rem/1.05 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--go); flex: none; }
.covers { margin: 22px 4px 0; font-size: .8125rem; line-height: 1.6; color: var(--label-2); }

.q-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.q-progress { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--label-2); font-variant-numeric: tabular-nums; }
.q-progress .bar { display: block; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.q-progress .bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--tint); transition: width .48s var(--ease); }
#q-text { margin: 22px 0 8px; font-size: 1.875rem; line-height: 1.22; }
#q-text:focus { outline: none; }
#q-help { margin-bottom: 22px; }
.q-body { display: grid; gap: 12px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; padding: 14px 14px 14px 20px;
  border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--e1); color: var(--label);
  font-size: 1.125rem; font-weight: 600; line-height: 1.35; text-align: left;
  transition: transform .35s var(--spring-snap), box-shadow .2s, background .2s;
}
.opt:not(.toggle)::after { content: "chevron_right"; margin-left: auto; font: normal 1.5rem/1 var(--icons); color: var(--label-3); flex: none; }
.opt:active { transform: scale(.98); box-shadow: var(--e2); }
.opt.toggle { padding-left: 16px; }
.opt .tick {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  box-shadow: inset 0 0 0 2px var(--fill); transition: background .15s, box-shadow .15s;
}
.opt .tick::after { content: "check"; font: normal 1.25rem/1 var(--icons); font-variation-settings: "FILL" 0, "wght" 700; color: var(--on-tint); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .35s var(--spring-bounce); }
.opt.toggle[aria-pressed="true"] { background: var(--tint-soft); box-shadow: inset 0 0 0 2px var(--tint); }
.opt.toggle[aria-pressed="true"] .tick { background: var(--tint-fill); box-shadow: none; }
.opt.toggle[aria-pressed="true"] .tick::after { opacity: 1; transform: none; }
.age-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.age-row .age-input { min-height: 68px; text-align: center; font-size: 1.875rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 22px; }
.age-row .age-input::placeholder { font-size: 1.125rem; font-weight: 500; }
.age-row .primary { min-height: 68px; min-width: 116px; border-radius: 34px; }
.bands { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.bands .opt { justify-content: center; min-height: 56px; padding: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.bands .opt::after { display: none; }
.q-body .try { margin: 10px 4px 0; }
.q-body .cta-row { margin-top: 6px; }
.q-foot { display: flex; gap: 10px; margin-top: 26px; }
.q-foot > * { flex: 1; }
.confirm { margin-top: 16px; padding: 18px; border-radius: 24px; background: var(--caution-soft); box-shadow: inset 0 0 0 1.5px var(--caution-ring); }
.confirm p { margin: 0 0 6px; }
.confirm .heard { display: flex; gap: 8px; color: var(--label-2); font-size: .9375rem; }
.confirm .heard::before { content: "hearing"; font: normal 1.25rem/1.2 var(--icons); color: var(--caution); flex: none; }
.confirm .heard-as { font-size: 1.1875rem; }
.confirm .heard-q { font-weight: 650; }
.confirm .cta-row { margin-top: 12px; }

.nav-summary {
  position: relative; overflow: hidden; padding: 22px 20px 18px; border-radius: 28px; background: var(--card); box-shadow: var(--e1);
}
.nav-summary::before {
  content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(169, 141, 95, .28), rgba(169, 141, 95, 0));
}
.nav-summary > * { position: relative; }
.nav-summary:focus { outline: none; }
.nav-summary .big { font-size: 1.5rem; line-height: 1.3; font-weight: 700; letter-spacing: var(--trk-t2); }
.profile { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pchip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 15px; background: var(--fill-2); font-size: .8125rem; font-weight: 500; line-height: 1.3; color: var(--label-2); }
.health-callout { margin-top: 12px; padding: 18px 20px; border-radius: 26px; background: var(--go-soft); box-shadow: inset 0 0 0 1.5px var(--go-ring); }
.health-callout .hc-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--go-ink); }
.health-callout .hc-title::before { content: "health_and_safety"; font: normal 1.5rem/1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--go); }
.health-callout .hc-item { margin-top: 12px; }
.health-callout .hc-name { font-size: 1.0625rem; font-weight: 650; }
.health-callout .hc-now { margin-top: 2px; font-size: 1.25rem; font-weight: 700; color: var(--go-ink); }
.health-callout .hc-say { margin: 6px 0 0; font-size: .9375rem; color: var(--label-2); }
.group { margin-top: 30px; }
.group > h3 { display: flex; align-items: center; gap: 10px; margin: 0 4px 12px; font-size: 1.25rem; font-weight: 700; color: var(--label); letter-spacing: var(--trk-t3); }
.group .count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--fill-2); color: var(--label-2); font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
details.group > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; margin-bottom: 12px;
  border-radius: 28px; background: var(--fill-3); color: var(--label-2); font-weight: 600; cursor: pointer;
}
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::after { content: "expand_more"; margin-left: auto; font: normal 1.5rem/1 var(--icons); transition: transform .3s var(--ease); }
details.group[open] > summary::after { transform: rotate(180deg); }
.scheme { margin-bottom: 12px; padding: 18px 18px 14px; border-radius: 26px; background: var(--card); box-shadow: var(--e1); }
.scheme h4 { margin: 12px 0 2px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: var(--trk-t3); }
.scheme p { margin: 0; }
.s-now { margin-top: 4px !important; font-size: 1.125rem; line-height: 1.4; font-weight: 700; color: var(--go-ink); }
.s-check .s-now, .s-unlock .s-now, .s-have .s-now { color: var(--label); }
.s-what { margin-top: 6px !important; font-size: .9375rem; line-height: 1.5; color: var(--label-2); }
.st {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px 4px 8px; border-radius: 15px;
  font-size: .8125rem; font-weight: 650; line-height: 1.2;
}
.st::before { font: normal 1.125rem/1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; }
.st-eligible { background: var(--go-soft); color: var(--go-ink); }
.st-eligible::before { content: "check_circle"; color: var(--go); }
.st-likely { background: var(--info-soft); color: var(--info-ink); }
.st-likely::before { content: "description"; color: var(--info); }
.st-check { background: var(--caution-soft); color: var(--caution-ink); }
.st-check::before { content: "help"; color: var(--caution); }
.st-unlock { background: var(--violet-soft); color: var(--violet-ink); }
.st-unlock::before { content: "account_balance"; color: var(--violet); }
.st-have, .st-not_eligible { background: var(--fill-2); color: var(--label-2); }
.st-have::before { content: "done_all"; }
.st-not_eligible::before { content: "block"; }
.s-have, .s-not_eligible { background: transparent; box-shadow: inset 0 0 0 1px var(--sep); }
.s-not_eligible .s-what { display: none; }
.scheme details > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px;
  color: var(--tint-ink); font-weight: 600; cursor: pointer;
}
.scheme details > summary::-webkit-details-marker { display: none; }
.scheme details > summary::after { content: "expand_more"; font: normal 1.375rem/1 var(--icons); transition: transform .3s var(--ease); }
.scheme details[open] > summary::after { transform: rotate(180deg); }
.scheme h5 { margin: 18px 0 8px; font-size: .8125rem; line-height: 1.3; font-weight: 650; color: var(--label-2); }
.scheme h5:lang(en) { text-transform: uppercase; letter-spacing: .05em; }
.why { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.45; }
.why li { display: flex; align-items: flex-start; gap: 10px; }
.why .ti { flex: none; font-size: 1.25rem; line-height: 1.15; font-variation-settings: "FILL" 1, "wght" 400; }
.why .t-T .ti { color: var(--go); }
.why .t-L .ti { color: var(--info); }
.why .t-U .ti { color: var(--caution); }
.why .t-F .ti { color: var(--alarm); }
.docs { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.docs li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.docs li::before { content: "check_box_outline_blank"; font: normal 1.375rem/1.05 var(--icons); color: var(--label-3); flex: none; }
.say {
  display: flex; gap: 12px; margin: 0 0 10px; padding: 14px 16px; border-radius: 18px;
  background: var(--tint-soft); font-size: 1.0625rem; line-height: 1.5; font-weight: 600;
}
.say::before { content: "record_voice_over"; font: normal 1.375rem/1.1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--tint); flex: none; }
.scheme .chip { background: var(--fill-2); box-shadow: none; }
.s-notes { margin: 14px 0 0; padding-left: 20px; font-size: .875rem; color: var(--label-2); }
.src { margin-top: 12px !important; font-size: .75rem; line-height: 1.55; color: var(--label-2); }
.unlock { margin-top: 10px !important; padding: 12px 14px; border-radius: 16px; font-size: .9375rem; font-weight: 600; background: var(--violet-soft); color: var(--violet-ink); }
.have {
  display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 10px; padding-top: 6px;
  border-top: 1px solid var(--sep); font-size: .9375rem; color: var(--label-2); cursor: pointer;
}
.have input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--tint-fill); }

/* every paper to carry, once */
.docs-all { margin-top: 30px; padding: 20px 20px 10px; border-radius: 26px; background: var(--card); box-shadow: var(--e1); }
.docs-all-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: var(--trk-t3); }
.docs-all-title::before { content: "badge"; font: normal 1.625rem/1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; color: var(--tint); }
.docs-all-sub { margin: 4px 0 6px; font-size: .9375rem; color: var(--label-2); }
.docs-all .docs li { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--sep); font-size: 1.0625rem; }
.docs-all .docs li:last-child { box-shadow: none; }
.docs-all .docs li::before { display: none; }
.docs-all .docs label { display: flex; align-items: flex-start; gap: 14px; width: 100%; cursor: pointer; }
.docs-all .docs input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--go); }
.docs-all .docs input:checked + span { color: var(--label-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.docs-all .docs li > label > span { display: flex; flex-direction: column; gap: 2px; }
.docs-all .docs small { font-size: .8125rem; color: var(--label-2); }

/* the slip looks like paper in both appearances */
.slip-sheet {
  padding: 22px 20px; border-radius: 22px; font-size: .9375rem; line-height: 1.5; color: #0B0B0C; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(11, 11, 12, .08), 0 10px 28px rgba(28, 20, 12, .12);
}
.slip-head { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: start; }
.slip-qr { width: 128px; height: 128px; image-rendering: pixelated; border-radius: 8px; }
.slip-sheet h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; color: #0B0B0C; }
.slip-sheet h3 { margin: 18px 0 8px; font-size: .9375rem; font-weight: 700; color: rgba(11, 11, 12, .7); }
.slip-sheet p { margin: 0 0 4px; }
.slip-op { font-size: .8125rem; color: rgba(11, 11, 12, .7); }
.slip-answers, .slip-schemes { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.slip-sname { font-weight: 700; }
.slip-docs .doc { display: inline-block; margin-right: 12px; }
.slip-say { font-style: italic; }
.slip-note { margin-top: 10px !important; font-size: .8125rem; }
.slip-foot { margin-top: 12px !important; font: 500 .75rem/1.5 var(--mono); color: rgba(11, 11, 12, .6); }

/* ================================================================ FOOTER */
.foot {
  max-width: 600px; margin: 0 auto; padding: 8px 24px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; text-align: center;
  font-size: .8125rem; line-height: 1.5; color: var(--label-2);
}
.foot::before { content: "lock"; font: normal 1rem/1 var(--icons); font-variation-settings: "FILL" 1, "wght" 400; }
.foot > span:first-of-type { flex-basis: 100%; }
#pack-version { font-family: var(--mono); font-size: .75rem; }

/* ================================================================ VOICEBENCH */
.vb-text {
  margin: 12px 0 16px; padding: 22px 20px; border-radius: 26px; background: var(--card); box-shadow: var(--e1);
  font-size: 1.75rem; line-height: 1.5; font-weight: 600;
}
.consent-row, .vb-agree { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 14px; padding: 0 16px; border-radius: 22px; background: var(--card); box-shadow: var(--e1); font-weight: 600; cursor: pointer; }
.consent-row input, .vb-agree input { width: 24px; height: 24px; margin: 0; accent-color: var(--tint-fill); }

#vb-hint { margin-top: 18px; }

/* ================================================================ NODE STATUS PAGE */
.node-page .node-main { max-width: 1080px; margin: 0 auto; padding: 4px 16px 40px; }
.node-main { max-width: 1080px; display: grid; gap: 14px; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); align-items: start; }
.node-panel.sticker { grid-row: span 2; }
@media (max-width: 860px) { .node-main { grid-template-columns: minmax(0, 1fr); } .node-panel.sticker { grid-row: auto; } }
.node-panel { padding: 22px; border-radius: 28px; background: var(--card); box-shadow: var(--e1); animation: none; }
.node-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.25rem; line-height: 1.3; letter-spacing: var(--trk-t3); }
.node-panel h2 .ms { color: var(--tint); font-variation-settings: "FILL" 1, "wght" 400; }
.node-panel h3 { margin: 22px 0 8px; }
.node-panel.egress, .node-panel.wide { grid-column: 1 / -1; }
.node-panel.egress h2 { font-size: 1.625rem; line-height: 1.25; }
.node-panel .overline { margin-bottom: 10px; }
.warn-text { color: var(--alarm-ink); }
.big-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.bign { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 22px; background: var(--fill-4); box-shadow: inset 0 0 0 1px var(--sep); }
.bign span { font-size: 3.5rem; line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bign small { font-size: .8125rem; line-height: 1.45; color: var(--label-2); }
.bign.zero { background: var(--go-soft); box-shadow: inset 0 0 0 1.5px var(--go-ring); }
.bign.zero span { color: var(--go-ink); }
.bign.nonzero { background: var(--caution-soft); box-shadow: inset 0 0 0 1.5px var(--caution-ring); }
.bign.nonzero span { color: var(--caution-ink); }
.fw { display: flex; gap: 10px; margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; font-weight: 600; background: var(--fill-3); }
.fw.ok { background: var(--go-soft); color: var(--go-ink); }
.fw.bad { background: var(--caution-soft); color: var(--caution-ink); }
.nd-list { margin: 0; padding-left: 20px; font: 500 .875rem/1.7 var(--mono); }
.nd-recent { margin-top: 10px; font-size: .875rem; color: var(--label-2); }
.nd-recent summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.nd-recent ul { font-family: var(--mono); font-size: .8125rem; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.nd-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.nd-table th, .nd-table td { padding: 10px 12px; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--sep); }
.nd-table th { position: sticky; top: 0; background: var(--card); color: var(--label-2); font-size: .75rem; font-weight: 650; }
.nd-table th:lang(en), .nd-table th { letter-spacing: .02em; }
.nd-table td { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nd-table td:nth-child(n+2) { white-space: nowrap; }
.nd-table td:first-child { overflow-wrap: anywhere; font-weight: 600; }
.nd-table tbody tr:hover td { background: var(--fill-4); }
.nd-table td.hash, .nd-packs td:last-child, #nd-packs td:last-child, #nd-models td:last-child { font-family: var(--mono); font-size: .8125rem; color: var(--label-2); }
.qrs { display: flex; flex-wrap: wrap; gap: 16px; }
.qrs figure { margin: 0; padding: 14px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(11, 11, 12, .08); text-align: center; }
.qrs img { display: block; width: 168px; height: 168px; image-rendering: pixelated; }
.qrs figcaption { max-width: 168px; margin-top: 8px; color: #0B0B0C; font: 600 .8125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.node-panel .note { margin: 16px 0 14px; }

/* ================================================================ TEXT SIZE (set in Voice and text size) */
/* Rosh 27's larger-text steps: everything in the content grows together, so rows reflow instead of truncating */
:root[data-text-size="large"] main, :root[data-text-size="large"] .foot, :root[data-text-size="large"] .ticket-sheet { zoom: 1.12; }
:root[data-text-size="xl"] main, :root[data-text-size="xl"] .foot, :root[data-text-size="xl"] .ticket-sheet { zoom: 1.25; }

/* ================================================================ PRINT: only what is being printed */
@media print {
  /* paper is always light, whatever the phone's appearance */
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    color-scheme: light;
    --page: #FFFFFF; --card: #FFFFFF; --label: #0B0B0C; --label-2: rgba(11, 11, 12, .7); --label-3: rgba(11, 11, 12, .5);
    --fill-2: rgba(11, 11, 12, .08); --fill-3: rgba(11, 11, 12, .05); --sep: rgba(11, 11, 12, .14); --sep-strong: rgba(11, 11, 12, .3);
    --info: #1F5FD6; --info-soft: rgba(31, 95, 214, .08); --alarm: #C8102E; --alarm-soft: rgba(200, 16, 46, .08);
    --tint: #1F5FD6; --tint-ink: #0056AA; --e1: none; --e2: none;
  }
  .topbar, .foot, .screen:not(.printing), .no-print, .toast, .ticket-sheet { display: none !important; }
  html, body { background: #FFFFFF; color: #000000; }
  main { max-width: none; padding: 0; zoom: 1 !important; }
  .screen { animation: none; }
  .printing input, .printing textarea { box-shadow: none; border: 1px solid #999999; background: #FFFFFF; color: #000000; }
  .printing .screen-head .back { display: none; }
  .slip-sheet { padding: 0; border-radius: 0; box-shadow: none; font-size: 11pt; }
  .slip-head { grid-template-columns: 34mm 1fr; }
  .slip-qr { width: 32mm; height: 32mm; }
  .node-page .node-panel:not(.printing) { display: none !important; }
  .node-page .node-panel.printing { box-shadow: none; }
}
