
    :root {
      --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
      --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
      --motion-fast: 140ms;
      --motion-base: 220ms;
      --motion-slow: 360ms;
      --ease-out: cubic-bezier(.22, 1, .36, 1);
      --ease-standard: cubic-bezier(.4, 0, .2, 1);
      --spring: var(--motion-base) var(--ease-out);
      --ease: var(--motion-slow) var(--ease-standard);
      /* Four radii instead of eighteen: cards, controls, chips, pills. The review asked for
         12-16 on cards and 8-10 on controls; these are the values, named once — and named in
         `:root` so both themes get them. */
      --r-card: 14px;
      --r-control: 10px;
      --r-chip: 8px;
      --r-pill: 999px;
      --r-btn: var(--r-control);
      --focus-ring: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent);
    }

    html[data-theme="light"] {
      --text: #0E1B19;
      --text-2: #424F4B;   /* 7.50:1 on --surface */
      --text-3: #626F6B;   /* 4.61:1 on --surface */
      --glass: rgba(255, 255, 255, .66);
      --glass-2: rgba(255, 255, 255, .82);
      --hair: rgba(16, 30, 28, .10);
      --hair-top: rgba(255, 255, 255, .85);
      --track: rgba(16, 30, 28, .09);
      --gold: #B7892E;
      --gold-2: #a2761f;
      --accent-ink: #241803;
      --gold-text: #87671B;   /* 4.61:1 on --surface */
      --bull: #2E8C6E;
      --neutral: #5E86A6;
      --cautious: #C98A2E;
      --bear: #C4633F;
      --surface: #EDF1EE;
      --wall-base: #EAEFEC;
      --wall: radial-gradient(70% 40% at 15% 4%, rgba(46, 140, 110, .10), transparent 60%), radial-gradient(60% 40% at 92% 16%, rgba(94, 134, 166, .10), transparent 62%), linear-gradient(170deg, #F1F5F2, #E5ECE8);
    }

    html[data-theme="dark"] {
      --text: #F2F4F2;
      --text-2: #A6B0AC;
      --text-3: #77827D;   /* 4.60:1 on --surface (dark) */
      --glass: rgba(255, 255, 255, .05);
      --glass-2: rgba(255, 255, 255, .09);
      --hair: rgba(255, 255, 255, .09);
      --hair-top: rgba(255, 255, 255, .16);
      --track: rgba(255, 255, 255, .06);
      --gold: #E0B15E;
      --gold-2: #caa049;
      --accent-ink: #231803;
      --gold-text: #E0B15E;
      --bull: #63C9A0;
      --neutral: #84AEC9;
      --cautious: #E0A85E;
      --bear: #E88C66;
      --surface: #101514;
      --wall-base: #0d1211;
      --wall: radial-gradient(72% 42% at 15% 4%, rgba(99, 201, 160, .14), transparent 60%), radial-gradient(60% 40% at 92% 16%, rgba(132, 174, 201, .12), transparent 62%), radial-gradient(70% 40% at 60% 108%, rgba(224, 177, 94, .10), transparent 60%), linear-gradient(170deg, #141b19, #0c100f);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -2px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0
    }

    body {
      font-family: var(--sans);
      color: var(--text);
      background: var(--wall-base);
      background-image: var(--wall);
      background-attachment: fixed;
      min-height: 100dvh;
      -webkit-text-size-adjust: 100%
    }

    .app {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100dvh;
      padding: 0 0 96px;
      position: relative
    }

    .pad {
      padding: 16px 16px
    }

    .screen {
      display: none;
      animation: fade var(--ease)
    }

    .screen.active {
      display: block
    }

    @keyframes fade {
      from {
        opacity: 0;
        transform: translateY(8px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    @media (prefers-reduced-motion:reduce) {
      * {
        animation: none !important;
        --spring: .001s;
        --ease: .001s
      }
    }

    .appbar {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 16px 12px;
      background: color-mix(in srgb, var(--wall-base) 45%, transparent);
      border-bottom: 1px solid var(--hair);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      backdrop-filter: blur(24px) saturate(1.4)
    }

    .brand {
      font-weight: 700;
      font-size: 20px;
      letter-spacing: -.02em;
      display: flex;
      align-items: center;
      gap: 8px
    }

    .brand .bg {
      color: var(--gold)
    }

    .appbar .sp {
      flex: 1
    }

    .report-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 2px 0 16px;
      background: transparent
    }

    .report-head .ttl {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -.015em;
      color: var(--text)
    }

    .iconbtn {
      width: 36px;
      height: 36px;
      border-radius: var(--r-card);
      display: grid;
      place-items: center;
      color: var(--text);
      background: var(--glass);
      border: 1px solid var(--hair);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      cursor: pointer;
      transition: transform var(--spring), background-color var(--spring)
    }

    .iconbtn:hover {
      background: var(--glass-2)
    }

    .iconbtn:active {
      transform: scale(.9)
    }

    .ttl {
      font-weight: 600;
      font-size: 17px
    }

    .eyebrow {
      font-size: 12px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--gold-text);
      font-weight: 600
    }

    h2.head {
      font-size: 26px;
      line-height: 1.14;
      margin: 8px 0 8px;
      font-weight: 600;
      letter-spacing: -.025em
    }

    .sub {
      font-size: 13.5px;
      line-height: 1.55;
      color: var(--text-2)
    }

    /* Every card used to float: a blur, a drop shadow and a translucent ground, stacked page
       after page until nothing sat still (ui review §3). A card is a surface now — an opaque
       ground and a hairline. Shadow and blur stay on the things that genuinely sit *over* the
       page: menus, the toast, the modal scrim and the app chrome. */
    .glass {
      background: var(--glass);
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      padding: 16px
    }

    .card {
      margin-top: 12px
    }

    .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      height: 52px;
      border-radius: var(--r-btn);
      font-family: var(--sans);
      font-weight: 600;
      font-size: 15px;
      border: none;
      cursor: pointer;
      transition: transform var(--spring), box-shadow var(--spring)
    }

    .btn:active {
      transform: scale(.97)
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--gold), var(--gold-2));
      color: var(--accent-ink);
      box-shadow: 0 8px 20px color-mix(in srgb, var(--gold) 32%, transparent)
    }

    .btn-primary:disabled {
      opacity: .55;
      cursor: default
    }

    .btn-outline {
      background: var(--glass);
      color: var(--text);
      border: 1px solid var(--hair)
    }

    .btn.sm {
      height: 44px;
      font-size: 14px
    }

    /* `.btn` is full-width by design for the primary mobile CTAs. Inside an admin toolbar,
       a row of controls (period picker, search, ledger actions) must sit side by side
       instead of each claiming its own row, so opt out of the stretch explicitly. */
    .btn.btn-inline {
      width: auto;
      flex: 0 0 auto;
      padding: 0 16px
    }

    .adm-toolbar .btn,
    .abtns .btn {
      width: auto;
      flex: 0 1 auto;
      padding: 0 16px
    }

    .adm-toolbar .field {
      flex: 1 1 190px;
      min-width: 160px;
      width: auto;
      height: 44px;
      margin-top: 0
    }

    .vpt {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 12px
    }

    .vpt .vic {
      width: 38px;
      height: 38px;
      flex: none;
      border-radius: var(--r-card);
      display: grid;
      place-items: center;
      color: var(--bull);
      background: color-mix(in srgb, var(--bull) 14%, transparent);
      border: 1px solid color-mix(in srgb, var(--bull) 22%, transparent)
    }

    .vpt b {
      font-weight: 600
    }

    .vpt span {
      color: var(--text-2)
    }

    .trust {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-top: 16px;
      padding: 12px 16px;
      border-radius: var(--r-card);
      font-size: 12.5px;
      color: var(--text-2);
      line-height: 1.4;
      background: color-mix(in srgb, var(--bull) 10%, transparent);
      border: 1px solid color-mix(in srgb, var(--bull) 20%, transparent)
    }

    .trust svg {
      flex: none;
      color: var(--bull)
    }

    /* input */
    .toggle {
      display: flex;
      background: var(--track);
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      padding: 4px;
      margin: 8px 0 16px
    }

    .toggle button {
      flex: 1;
      height: 38px;
      border: none;
      border-radius: var(--r-control);
      background: transparent;
      font-family: var(--sans);
      font-weight: 600;
      font-size: 13px;
      color: var(--text-2);
      cursor: pointer
    }

    .toggle button.on {
      background: var(--glass-2);
      color: var(--text);
      box-shadow: inset 0 1px 0 var(--hair-top)
    }

    .hrow {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px;
      border-radius: var(--r-card);
      margin-bottom: 8px;
      background: var(--glass);
      border: 1px solid var(--hair)
    }

    .hrow input.tk {
      /* Was 74px fixed while the value field took every remaining pixel, so the one input the
         reader types into first was the narrowest thing in the row. Widened on desktop, where
         the row genuinely had spare space; the media query below gives the value field its room
         back on a phone, where it did not. */
      flex: 0 1 148px;
      min-width: 96px;
      font-family: var(--mono);
      font-weight: 600;
      font-size: 13px;
      text-transform: uppercase;
      border: 1px solid var(--hair);
      background: var(--track);
      color: var(--text);
      border-radius: var(--r-control);
      height: 44px;
      padding: 0 8px
    }

    @media (max-width: 430px) {
      .hrow input.tk {
        flex: 0 1 108px
      }
    }

    .hrow input.val {
      flex: 1;
      font-size: 14px;
      border: 1px solid var(--hair);
      background: var(--track);
      color: var(--text);
      border-radius: var(--r-control);
      height: 44px;
      padding: 0 12px;
      text-align: right;
      min-width: 0;
      font-variant-numeric: tabular-nums
    }

    .hrow.cash input.tk {
      color: var(--bull)
    }

    .hrow .rm {
      width: 44px;
      height: 44px;
      flex: none;
      border: none;
      background: transparent;
      color: var(--text-3);
      font-size: 16px;
      cursor: pointer
    }

    input:focus {
      outline: 2px solid color-mix(in srgb, var(--gold) 50%, transparent);
      outline-offset: 1px
    }

    .addrow {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 46px;
      border: 1.5px dashed var(--hair);
      border-radius: var(--r-card);
      color: var(--gold-text);
      font-weight: 600;
      font-size: 13.5px;
      cursor: pointer;
      margin-top: 2px
    }

    .field {
      width: 100%;
      height: 50px;
      border-radius: var(--r-card);
      border: 1px solid var(--hair);
      background: var(--glass);
      color: var(--text);
      font-family: var(--sans);
      font-size: 15px;
      padding: 0 16px;
      margin-top: 8px
    }

    .lbl {
      font-size: 12px;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--text-3);
      font-weight: 600;
      margin: 16px 8px 4px
    }

    /* gauge */
    .gaugewrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 8px 0 2px
    }

    .gauge {
      width: 230px;
      max-width: 78%
    }

    .gscore {
      font-size: 52px;
      font-weight: 700;
      line-height: 1;
      margin-top: -56px;
      letter-spacing: -.03em
    }

    .gscore small {
      font-size: 16px;
      color: var(--text-3);
      font-weight: 500;
      font-variant-numeric: tabular-nums
    }

    .glabel {
      margin-top: 12px;
      font-weight: 600;
      font-size: 13px;
      padding: 4px 16px;
      border-radius: var(--r-pill)
    }

    .gcap {
      font-size: 12.5px;
      color: var(--text-2);
      text-align: center;
      line-height: 1.5;
      margin: 12px 8px 0
    }

    .quick-diagnosis {
      padding: 16px;
      border-color: color-mix(in srgb, var(--gold) 30%, transparent)
    }

    .quick-direction {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--text-2);
      font-size: 12.5px
    }

    .quick-facts {
      display: grid;
      gap: 8px;
      margin-top: 16px
    }

    .quick-fact {
      padding: 12px 12px;
      border-radius: var(--r-card);
      background: var(--track);
      border: 1px solid var(--hair)
    }

    .quick-fact .qf-label {
      color: var(--text-3);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .05em;
      font-weight: 600
    }

    .quick-fact .qf-value {
      color: var(--text);
      font-size: 13px;
      line-height: 1.45;
      margin-top: 4px;
      font-weight: 600
    }

    .quick-fact .qf-help {
      color: var(--text-2);
      font-size: 12.5px;
      line-height: 1.5;
      margin-top: 4px
    }

    .quick-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 32px;
      padding: 4px 12px;
      border: 1px solid var(--hair);
      border-radius: var(--r-pill);
      color: var(--text);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.35
    }

    .quick-status-icon {
      display: inline-grid;
      width: 18px;
      height: 18px;
      place-items: center;
      border-radius: 50%;
      color: currentColor;
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 800
    }

    .quick-status.strong {
      color: var(--bull);
      background: color-mix(in srgb, var(--bull) 11%, transparent);
      border-color: color-mix(in srgb, var(--bull) 28%, var(--hair))
    }

    .quick-status.fair {
      color: var(--neutral);
      background: color-mix(in srgb, var(--neutral) 11%, transparent);
      border-color: color-mix(in srgb, var(--neutral) 28%, var(--hair))
    }

    .quick-status.caution {
      color: var(--cautious);
      background: color-mix(in srgb, var(--cautious) 11%, transparent);
      border-color: color-mix(in srgb, var(--cautious) 28%, var(--hair))
    }

    .quick-status.risk,
    .quick-status.insufficient {
      color: var(--bear);
      background: color-mix(in srgb, var(--bear) 10%, transparent);
      border-color: color-mix(in srgb, var(--bear) 27%, var(--hair))
    }

    .quick-glossary {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid var(--hair)
    }

    .quick-glossary-title {
      color: var(--text);
      font-size: 12px;
      font-weight: 650
    }

    .quick-glossary dl {
      margin: 8px 0 0
    }

    .quick-glossary dt {
      color: var(--text);
      font-size: 12.5px;
      font-weight: 650
    }

    .quick-glossary dd {
      margin: 2px 0 8px;
      color: var(--text-2);
      font-size: 12.5px;
      line-height: 1.5
    }

    .quick-comprehension {
      margin-top: 12px
    }

    .quick-comprehension>summary {
      display: flex;
      min-height: 44px;
      align-items: center;
      gap: 12px;
      color: var(--text);
      font-size: 13px;
      font-weight: 650;
      cursor: pointer
    }

    .quick-comprehension-progress {
      margin-left: auto;
      color: var(--gold-text);
      font-size: 12px;
      font-variant-numeric: tabular-nums
    }

    .quick-comprehension-intro {
      margin: 4px 0 12px;
      color: var(--text-2);
      font-size: 12.5px;
      line-height: 1.5
    }

    .quick-comprehension-question {
      min-width: 0;
      margin: 0;
      padding: 12px 0;
      border: 0;
      border-top: 1px solid var(--hair)
    }

    .quick-comprehension-question legend {
      width: 100%;
      padding: 0;
      color: var(--text);
      font-size: 12.5px;
      font-weight: 650;
      line-height: 1.45
    }

    .quick-comprehension-choices {
      display: grid;
      gap: 8px;
      margin-top: 8px
    }

    .quick-comprehension-choices .btn {
      height: auto;
      min-height: 44px;
      padding: 8px 12px;
      text-align: left;
      font-size: 12px;
      line-height: 1.4
    }

    .quick-comprehension-feedback {
      min-height: 18px;
      margin-top: 8px;
      color: var(--text-2);
      font-size: 12.5px;
      line-height: 1.5
    }

    .quick-details {
      margin-top: 12px;
      border-top: 1px solid var(--hair);
      padding-top: 12px
    }

    .quick-details summary {
      cursor: pointer;
      color: var(--gold-text);
      font-size: 12px;
      font-weight: 600
    }

    .landing-actions,
    .quick-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px
    }

    .landing-actions {
      margin-top: 16px
    }

    .quick-actions {
      gap: 8px;
      margin-top: 8px
    }

    .landing-actions .btn,
    .quick-actions .btn {
      height: auto;
      min-height: 52px;
      padding: 12px 12px
    }

    @media(max-width:360px) {
      .landing-actions,
      .quick-actions {
        grid-template-columns: 1fr
      }
    }

    /* The report's default layer: one figure, what it rests on, and the episodes behind it. */
    .report-overview {
      padding: 16px 16px
    }

    .ro-head {
      display: flex;
      align-items: flex-start;
      gap: 16px
    }

    .ro-kicker {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: .02em;
      color: var(--text-2)
    }

    .ro-figure {
      font-size: 42px;
      line-height: 1.1;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--bear);
      margin-top: 2px
    }

    .ro-money {
      font-size: 14.5px;
      font-weight: 600;
      margin-top: 2px
    }

    .ro-basis {
      font-size: 13px;
      color: var(--text-2);
      line-height: 1.5;
      margin: 8px 0 0
    }

    /* Support, not the headline: the score measures resilience only. */
    .ro-score {
      flex: none;
      text-align: right;
      min-width: 92px
    }

    .ro-score-v {
      font-size: 26px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      line-height: 1
    }

    .ro-score-l,
    .ro-score-b {
      font-size: 12px;
      color: var(--text-2);
      margin-top: 2px
    }

    .stressbars {
      margin-top: 16px;
      display: grid;
      gap: 8px
    }

    .sb-row {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 12.5px
    }

    .sb-name {
      flex: none;
      width: 148px;
      color: var(--text-2);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .sb-track {
      flex: 1;
      height: 8px;
      border-radius: 4px;
      background: var(--track);
      overflow: hidden
    }

    .sb-track i {
      display: block;
      height: 100%;
      border-radius: 4px;
      background: color-mix(in srgb, var(--bear) 62%, transparent)
    }

    .sb-val {
      flex: none;
      width: 60px;
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-weight: 600
    }

    .ro-meta {
      font-size: 12.5px;
      color: var(--text-2);
      line-height: 1.5;
      margin: 16px 0 0
    }

    .ro-next {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid var(--hair)
    }

    .ro-next-q {
      font-size: 13.5px;
      font-weight: 600
    }

    @media (max-width: 430px) {
      .ro-head {
        flex-direction: column;
        gap: 12px
      }

      .ro-score {
        text-align: left
      }

      /* The bar carries the comparison; the name and the number carry the information. At
         104px the episode names ellipsised ("Căng thẳng Trung Đông 3/2026"), so the row stacks
         rather than truncating the thing the reader is being asked to recognise. */
      .sb-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "name value" "track track";
        row-gap: 4px;
        column-gap: 8px
      }

      .sb-name {
        grid-area: name;
        width: auto;
        white-space: normal
      }

      .sb-track {
        grid-area: track
      }

      .sb-val {
        grid-area: value;
        width: auto
      }
    }

    .report-disclosure {
      margin-top: 12px;
      scroll-margin-top: 72px
    }

    .report-disclosure>summary {
      min-height: 48px;
      display: flex;
      align-items: center;
      padding: 0 16px;
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      background: var(--glass);
      color: var(--text);
      font-size: 13.5px;
      font-weight: 650;
      cursor: pointer
    }

    .report-disclosure[open]>summary {
      border-color: color-mix(in srgb, var(--gold) 32%, var(--hair));
      color: var(--gold-text)
    }

    .report-disclosure>summary .rd-q {
      flex: 1;
      min-width: 0
    }

    /* The scannable tail. Secondary weight, so the question still reads as the heading. */
    .report-disclosure>summary .rd-label {
      flex: none;
      margin-left: 12px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-2)
    }

    /* Support sits under the section it supports: indented, quieter, and never carrying a
       question of its own. */
    .report-disclosure.is-support {
      margin-left: 16px;
      margin-top: 8px
    }

    .report-disclosure.is-support>summary {
      min-height: 42px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-2);
      background: transparent
    }

    @media (max-width: 430px) {
      .report-disclosure.is-support {
        margin-left: 8px
      }

      .report-disclosure>summary .rd-label {
        display: none
      }
    }

    .report-disclosure>.glass {
      margin-top: 8px
    }

    .report-disclosure>.glass>.blabel:first-child,
    .report-disclosure>#mptCard>.blabel:first-child {
      display: none
    }

    .report-table-wrap {
      width: 100%;
      overflow-x: auto;
      margin-top: 12px;
      border: 1px solid var(--hair);
      border-radius: var(--r-card)
    }

    .report-data-table {
      width: 100%;
      min-width: 520px;
      border-collapse: collapse;
      font-size: 12px
    }

    .report-data-table caption {
      padding: 12px 12px;
      text-align: left;
      color: var(--text);
      font-weight: 650;
      background: var(--track)
    }

    .report-data-table th,
    .report-data-table td {
      padding: 8px 12px;
      border-top: 1px solid var(--hair);
      text-align: left;
      vertical-align: top
    }

    .report-data-table th {
      color: var(--text-2);
      font-weight: 600
    }

    .report-data-table td:not(:first-child) {;
      font-variant-numeric: tabular-nums
    }

    .report-provenance .report-data-table {
      min-width: 0
    }

    .report-provenance .report-data-table td {
      overflow-wrap: anywhere
    }

    .report-glossary {
      display: grid;
      gap: 0;
      margin: 8px 0 0;
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      overflow: hidden
    }

    .report-glossary>div {
      padding: 12px 12px;
      background: color-mix(in srgb, var(--track) 72%, transparent)
    }

    .report-glossary>div+div {
      border-top: 1px solid var(--hair)
    }

    .report-glossary dt {
      color: var(--text);
      font-size: 12.5px;
      font-weight: 650
    }

    .report-glossary dd {
      margin: 4px 0 0;
      color: var(--text-2);
      font-size: 12.5px;
      line-height: 1.55
    }

    .report-limit-list {
      margin: 8px 0 0;
      padding-left: 16px;
      color: var(--text-2);
      font-size: 12.5px;
      line-height: 1.55
    }

    .report-limit-list li+li {
      margin-top: 8px
    }

    /* Was a four-row labelled table on every section; now a conclusion, its context and the
       step that follows. No frame of its own — the card it sits in is surface enough. */
    .report-table-fold {
      margin-top: 12px
    }

    .report-table-fold>summary {
      cursor: pointer;
      font-size: 12.5px;
      color: var(--text-2);
      padding: 8px 0
    }

    .report-narrative {
      margin: 2px 0 16px
    }

    .rn-finding {
      margin: 0;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.5
    }

    .rn-context {
      margin: 8px 0 0;
      color: var(--text-2);
      font-size: 13px;
      line-height: 1.55
    }

    .rn-action {
      margin: 8px 0 0;
      font-size: 13px;
      line-height: 1.55;
      color: var(--text-2)
    }

    .rn-action b {
      color: var(--gold-text)
    }

    @media(max-width:380px) {
      .report-narrative-row {
        grid-template-columns: 1fr;
        gap: 4px
      }
    }

    .model-details {
      margin-top: 12px;
      border-top: 1px solid var(--hair);
      padding-top: 8px
    }

    .model-details>summary {
      min-height: 44px;
      display: flex;
      align-items: center;
      color: var(--gold-text);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer
    }

    .blabel {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px
    }

    .blabel .n {
      width: 23px;
      height: 23px;
      border-radius: var(--r-chip);
      font-size: 12px;
      font-weight: 600;
      display: grid;
      place-items: center;
      flex: none;
      color: var(--gold-text);
      background: color-mix(in srgb, var(--gold) 16%, transparent);
      border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
      font-variant-numeric: tabular-nums
    }

    .blabel .t {
      font-weight: 600;
      font-size: 14px
    }

    .blabel .r {
      margin-left: auto;
      font-size: 10px;
      color: var(--text-3)
    }

    .cb {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px
    }

    .cb .cbl {
      width: 104px;
      font-size: 12.5px;
      color: var(--text-2);
      flex: none
    }

    .cb .track {
      flex: 1;
      height: 8px;
      background: var(--track);
      border-radius: var(--r-chip);
      overflow: hidden
    }

    .cb .fill {
      height: 100%;
      border-radius: var(--r-chip)
    }

    .cb .cbv {
      font-size: 12px;
      width: 30px;
      text-align: right;
      flex: none;
      font-variant-numeric: tabular-nums
    }

    .sl {
      margin-bottom: 12px
    }

    .sl .slh {
      display: flex;
      justify-content: space-between;
      font-size: 12.5px;
      margin-bottom: 4px;
      color: var(--text-2)
    }

    .sl .slh b {
      color: var(--bear);
      font-weight: 500;
      font-variant-numeric: tabular-nums
    }

    .sl .track {
      height: 9px;
      background: var(--track);
      border-radius: var(--r-chip);
      overflow: hidden
    }

    .sl .fill {
      height: 100%;
      background: var(--bear);
      border-radius: var(--r-chip)
    }

    .metrics {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      flex-wrap: wrap
    }

    .metric {
      flex: 1 1 96px;
      min-width: 96px;
      background: var(--track);
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      padding: 8px 12px;
      box-sizing: border-box;
      overflow: hidden;
    }

    .metric .ml {
      font-size: 12px;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--text-3);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Admin values are dates, ids and checksums, not the short percentages `.metric` was
       sized for. At 375px three 96px tiles ellipsised the snapshot date itself, so the
       operator could not read the one number the card exists to show. */
    .metrics-wide .metric {
      flex: 1 1 152px;
      min-width: 152px
    }

    .metrics-wide .metric .ml,
    .metrics-wide .metric .mv {
      white-space: normal;
      overflow-wrap: anywhere;
      text-overflow: clip
    }

    @media(max-width:420px) {
      .metrics-wide .metric {
        flex: 1 1 100%;
        min-width: 0
      }
    }

    .metric .mv {
      font-weight: 700;
      font-size: 14.5px;
      margin-top: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-variant-numeric: tabular-nums
    }

    .regchips {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px
    }

    .regchip {
      border-radius: var(--r-card);
      padding: 12px;
      text-align: center;
      border: 1px solid var(--hair)
    }

    .regchip .rn {
      font-size: 12px;
      letter-spacing: .04em;
      text-transform: uppercase;
      font-weight: 600
    }

    .regchip .rv {
      font-size: 14px;
      margin-top: 4px;
      font-variant-numeric: tabular-nums
    }

    .regchip.cur {
      outline: 2px solid var(--gold)
    }

    .vsrow {
      margin-bottom: 12px
    }

    .vsrow .vsh {
      display: flex;
      justify-content: space-between;
      font-size: 12.5px;
      margin-bottom: 4px;
      color: var(--text-2)
    }

    .vsrow .track {
      height: 14px;
      background: var(--track);
      border-radius: var(--r-chip);
      overflow: hidden
    }

    .vsrow .fill {
      height: 100%;
      border-radius: var(--r-chip)
    }

    .note {
      font-size: 12.5px;
      color: var(--text-3);
      line-height: 1.5;
      margin-top: 8px
    }

    .logitem {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      border-top: 1px solid var(--hair)
    }

    .logitem:first-of-type {
      border-top: none
    }

    .logitem .ld {
      font-family: var(--mono);
      color: var(--text-3);
      font-size: 12px;
      min-width: 78px
    }

    .logitem .logdot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex: none
    }

    .logitem .lt {
      flex: 1;
      font-size: 12.5px
    }

    .logitem .lt b {
      font-weight: 600
    }

    .arow {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px
    }

    .afld {
      margin-top: 12px
    }

    .afld:first-child {
      margin-top: 0
    }

    .afld label {
      display: block;
      font-size: 12px;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--text-3);
      font-weight: 600;
      margin-bottom: 2px
    }

    .aseg {
      display: flex;
      gap: 8px;
      margin-top: 2px
    }

    .aseg button {
      flex: 1;
      height: 44px;
      border-radius: var(--r-card);
      border: 1px solid var(--hair);
      background: var(--glass);
      color: var(--text-2);
      font-weight: 600;
      cursor: pointer;
      font-family: var(--sans);
      font-size: 14px
    }

    .aseg button.on.buy {
      background: var(--bull);
      color: #fff;
      border-color: transparent
    }

    .aseg button.on.sell {
      background: var(--bear);
      color: #fff;
      border-color: transparent
    }

    .abtns {
      display: flex;
      gap: 12px;
      margin-top: 16px
    }

    .amsg {
      font-size: 12px;
      margin-top: 12px
    }

    .amsg.ok {
      color: var(--bull)
    }

    .amsg.err {
      color: var(--bear)
    }

    /* Admin Panel styles (Checklist Design Standard) */
    /* The tab strip scrolls horizontally on a phone, where 2 of 5 tabs sit off-screen. The
       right-edge fade is the only cue that more tabs exist; it is masked away once the strip
       is scrolled to its end. */
    .adm-subnav {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      overflow-x: auto;
      padding-bottom: 4px;
      border-bottom: 1px solid var(--hair);
      scrollbar-width: none;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
    }

    .adm-subnav::-webkit-scrollbar {
      display: none
    }

    .adm-subnav button {
      scroll-snap-align: start
    }

    .adm-scroller {
      position: relative
    }

    .adm-scroller::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 5px;
      width: 34px;
      pointer-events: none;
      background: linear-gradient(90deg, transparent, var(--bg, var(--glass)));
      opacity: 0;
      transition: opacity var(--motion-fast) var(--ease-standard)
    }

    .adm-scroller[data-more="1"]::after {
      opacity: 1
    }
    .adm-subnav button {
      padding: 8px 16px;
      border-radius: var(--r-control);
      border: 1px solid transparent;
      background: transparent;
      color: var(--text-2);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all .18s ease;
      font-family: var(--font);
    }
    .adm-subnav button:hover {
      background: var(--glass);
      color: var(--text);
    }
    .adm-subnav button.on {
      background: color-mix(in srgb, var(--gold) 16%, transparent);
      color: var(--gold-text);
      border-color: color-mix(in srgb, var(--gold) 30%, transparent);
    }
    .adm-kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }
    .adm-kpi-card {
      padding: 16px;
      border-radius: var(--r-card);
      background: var(--glass);
      border: 1px solid var(--hair);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .adm-kpi-card .kpi-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: var(--text-3);
      font-weight: 600;
    }
    .adm-kpi-card .kpi-val {
      font-size: 22px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -.02em;
      font-variant-numeric: tabular-nums
    }
    .adm-kpi-card .kpi-sub {
      font-size: 12.5px;
      color: var(--text-2);
      margin-top: 2px;
    }
    .adm-toolbar {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }
    .adm-table-wrap {
      width: 100%;
      overflow-x: auto;
      border-radius: var(--r-card);
      border: 1px solid var(--hair);
      background: var(--glass);
    }
    .adm-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 12.5px;
    }
    .adm-table th {
      padding: 12px 16px;
      background: color-mix(in srgb, var(--card) 70%, transparent);
      color: var(--text-3);
      font-weight: 600;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .05em;
      border-bottom: 1px solid var(--hair);
      white-space: nowrap;
    }
    .adm-table td {
      padding: 12px 16px;
      border-bottom: 1px solid var(--hair);
      color: var(--text);
      vertical-align: middle;
    }
    .adm-table tr:last-child td {
      border-bottom: none;
    }
    .adm-table tr:hover td {
      background: color-mix(in srgb, var(--gold) 5%, transparent);
    }
    .adm-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 8px;
      border-radius: var(--r-chip);
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
    }
    .adm-badge.premium {
      background: color-mix(in srgb, #8b5cf6 18%, transparent);
      color: #a78bfa;
      border: 1px solid color-mix(in srgb, #8b5cf6 35%, transparent);
    }
    .adm-badge.admin {
      background: color-mix(in srgb, var(--gold) 18%, transparent);
      color: var(--gold-text);
      border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
    }
    .adm-badge.free {
      background: color-mix(in srgb, var(--text-3) 14%, transparent);
      color: var(--text-2);
      border: 1px solid var(--hair);
    }
    .adm-badge.success {
      background: color-mix(in srgb, var(--bull) 18%, transparent);
      color: var(--bull);
    }
    .adm-badge.error {
      background: color-mix(in srgb, var(--bear) 18%, transparent);
      color: var(--bear);
    }

    .leglinks {
      display: flex;
      flex-direction: column
    }

    .leglink {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      text-align: left;
      background: none;
      border: none;
      border-top: 1px solid var(--hair);
      padding: 12px 2px;
      font-family: var(--sans);
      font-size: 13.5px;
      color: var(--text);
      cursor: pointer
    }

    .leglink:first-child {
      border-top: none
    }

    .leglink::after {
      content: "›";
      color: var(--text-3);
      font-size: 17px
    }

    .legal-sec {
      font-size: 13.5px;
      line-height: 1.62;
      color: var(--text-2)
    }

    .legal-sec h4 {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin: 16px 0 4px;
      letter-spacing: -.01em
    }

    .legal-sec h4:first-child {
      margin-top: 2px
    }

    .legal-sec p {
      margin: 0 0 8px
    }

    .legal-eff {
      font-size: 12px;
      color: var(--text-3);
      letter-spacing: .02em;
      margin-bottom: 2px;
      font-variant-numeric: tabular-nums
    }

    .pill {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 16px
    }

    .pill .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex: none
    }

    .pill b {
      font-weight: 600;
      font-size: 14px
    }

    .pill div.s {
      font-size: 12.5px;
      color: var(--text-2);
      margin-top: 2px
    }

    .timeline {
      display: flex;
      height: 20px;
      border-radius: var(--r-chip);
      overflow: hidden;
      margin-top: 8px;
      gap: 2px
    }

    .timeline i {
      flex: 1;
      border-radius: 2px;
      min-width: 2px
    }

    .tlyears {
      display: flex;
      justify-content: space-between;
      font-size: 9px;
      color: var(--text-3);
      margin-top: 4px;
      font-variant-numeric: tabular-nums
    }

    .leg4 {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
      font-size: 12px;
      color: var(--text-2)
    }

    .leg4 i {
      display: inline-block;
      width: 9px;
      height: 9px;
      border-radius: 2px;
      margin-right: 4px
    }

    .paper {
      font-size: 12px;
      letter-spacing: .08em;
      color: var(--gold-text);
      background: color-mix(in srgb, var(--gold) 14%, transparent);
      border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
      padding: 4px 8px;
      border-radius: var(--r-chip);
      font-variant-numeric: tabular-nums
    }

    .profile {
      display: flex;
      gap: 16px;
      align-items: center
    }

    .avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      flex: none;
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 20px;
      color: var(--accent-ink);
      background: linear-gradient(135deg, var(--gold), var(--gold-2))
    }

    .creds {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px
    }

    .cred {
      font-size: 12px;
      color: var(--text-2);
      border: 1px solid var(--hair);
      background: var(--track);
      padding: 4px 12px;
      border-radius: var(--r-pill)
    }

    .linkedin {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 12px;
      padding: 12px 16px;
      border-radius: var(--r-card);
      text-decoration: none;
      color: var(--text);
      background: var(--track);
      border: 1px solid var(--hair)
    }

    .linkedin svg {
      color: #0A66C2;
      flex: none
    }

    .linkedin .lk {
      flex: 1;
      font-size: 13.5px;
      font-weight: 600
    }

    .linkedin .lu {
      font-size: 12px;
      color: var(--text-2)
    }

    .manifesto {
      font-size: 18px;
      line-height: 1.3;
      font-weight: 600;
      letter-spacing: -.02em;
      margin: 16px 0 8px
    }

    .whyrow {
      display: flex;
      gap: 12px;
      padding: 12px 0;
      border-top: 1px solid var(--hair);
      font-size: 13px;
      color: var(--text-2)
    }

    .whyrow:first-child {
      border: none;
      padding-top: 0
    }

    .whyrow svg {
      flex: none;
      color: var(--bull);
      margin-top: 2px
    }

    .whyrow b {
      color: var(--text);
      font-weight: 600
    }

    .seg {
      display: flex;
      background: var(--track);
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      padding: 4px
    }

    .seg button {
      flex: 1;
      height: 40px;
      border: none;
      border-radius: var(--r-control);
      background: transparent;
      font-family: var(--sans);
      font-weight: 600;
      font-size: 13px;
      color: var(--text-2);
      cursor: pointer
    }

    .seg button.on {
      background: var(--glass-2);
      color: var(--text);
      box-shadow: inset 0 1px 0 var(--hair-top)
    }

    .tabbar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 30;
      max-width: 480px;
      margin: 0 auto;
      display: flex;
      padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
      background: color-mix(in srgb, var(--glass) 25%, transparent);
      -webkit-backdrop-filter: blur(24px) saturate(1.5);
      backdrop-filter: blur(24px) saturate(1.5);
      border-top: 1px solid var(--hair);
      box-shadow: 0 -8px 24px rgba(0, 0, 0, .06)
    }

    .tabbar a {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-3);
      cursor: pointer;
      padding: 8px 0;
      border-radius: var(--r-card);
      transition: all var(--spring)
    }

    .tabbar a.on {
      color: var(--gold-text);
      font-weight: 600;
      background: color-mix(in srgb, var(--gold) 13%, transparent)
    }

    .tabbar a svg {
      width: 22px;
      height: 22px;
      transition: transform var(--spring)
    }

    .tabbar a.on svg {
      transform: scale(1.12)
    }

    .tabbar a:active {
      transform: scale(.92)
    }

    .banner {
      padding: 12px 12px;
      border-radius: var(--r-card);
      font-size: 12.5px;
      margin-top: 12px
    }

    .banner.err {
      background: color-mix(in srgb, var(--bear) 12%, transparent);
      border: 1px solid color-mix(in srgb, var(--bear) 26%, transparent);
      color: var(--bear)
    }

    .banner.warn {
      background: color-mix(in srgb, var(--cautious) 14%, transparent);
      border: 1px solid color-mix(in srgb, var(--cautious) 28%, transparent);
      color: var(--cautious)
    }

    .banner.info {
      background: color-mix(in srgb, var(--neutral) 14%, transparent);
      border: 1px solid color-mix(in srgb, var(--neutral) 28%, transparent);
      color: var(--neutral)
    }

    .spinner {
      width: 22px;
      height: 22px;
      border: 3px solid var(--track);
      border-top-color: var(--gold);
      border-radius: 50%;
      animation: spin .8s linear infinite;
      margin: 16px auto
    }

    @keyframes spin {
      to {
        transform: rotate(360deg)
      }
    }

    .center {
      text-align: center
    }

    /* ===== v2 fixes & interactions ===== */
    .fill {
      display: block
    }

    /* progress bars were inline spans -> 0 width */

    /* morphic feel */
    .vpt,
    .pill {
      transition: transform var(--spring), box-shadow var(--spring)
    }

    .vpt:hover,
    .pill:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, .08), inset 0 1px 0 var(--hair-top)
    }

    .regchip,
    .metric,
    .glass.tap {
      transition: transform var(--spring), box-shadow var(--spring)
    }

    .regchip:hover,
    .metric:hover {
      transform: translateY(-2px)
    }

    .glass.tap:active {
      transform: scale(.985)
    }

    .hlist .hrow {
      transition: opacity var(--ease), transform var(--spring)
    }

    .hlist:hover .hrow {
      opacity: .5
    }

    .hlist .hrow:hover,
    .hlist .hrow:focus-within {
      opacity: 1;
      transform: translateX(4px)
    }

    .screen.active {
      animation: screenIn var(--spring)
    }

    @keyframes screenIn {
      from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
        filter: blur(2px)
      }

      to {
        opacity: 1;
        transform: none;
        filter: blur(0)
      }
    }

    /* iOS switch */
    .switch {
      width: 48px;
      height: 29px;
      border-radius: var(--r-pill);
      background: var(--track);
      border: 1px solid var(--hair);
      position: relative;
      flex: none;
      cursor: pointer;
      transition: background var(--spring)
    }

    .switch i {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 23px;
      height: 23px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
      transition: transform var(--spring)
    }

    .switch.on {
      background: var(--bull)
    }

    .switch.on i {
      transform: translateX(19px)
    }

    /* input adornments + totals */
    .hrow {
      position: relative
    }

    .hrow .rowval {
      font-size: 12px;
      color: var(--text-3);
      white-space: nowrap;
      flex: none;
      min-width: 74px;
      text-align: right;
      font-variant-numeric: tabular-nums
    }

    .pctsuffix .val {
      padding-right: 24px
    }

    .hrow .adorn {
      position: absolute;
      right: 46px;
      font-size: 13px;
      color: var(--text-3);
      pointer-events: none;
      font-variant-numeric: tabular-nums
    }

    .totbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12.5px;
      margin: 8px 8px 0;
      color: var(--text-2)
    }

    .totbar b {
      color: var(--text);
      font-variant-numeric: tabular-nums
    }

    .totbar.over b {
      color: var(--bear)
    }

    /* Allocation Progress Bar & Quick Helpers */
    .alloc-box {
      margin: 12px 0 4px;
      padding: 12px 12px;
      border-radius: var(--r-card);
      background: var(--track);
      border: 1px solid var(--hair);
      transition: all .2s ease;
    }
    .alloc-track {
      width: 100%;
      height: 7px;
      border-radius: var(--r-pill);
      background: color-mix(in srgb, var(--track) 60%, rgba(255,255,255,0.08));
      overflow: hidden;
      margin: 8px 0;
      position: relative;
    }
    .alloc-fill {
      height: 100%;
      border-radius: var(--r-pill);
      transition: width .28s cubic-bezier(0.4, 0, 0.2, 1), background-color .28s ease;
    }
    .alloc-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: var(--text-2);
    }
    .alloc-meta b {
      font-weight: 600;
      font-variant-numeric: tabular-nums
    }
    .alloc-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 8px;
    }
    .alloc-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 8px;
      border-radius: var(--r-control);
      font-size: 12px;
      font-weight: 500;
      background: color-mix(in srgb, var(--gold) 14%, transparent);
      color: var(--gold-text);
      border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
      cursor: pointer;
      transition: all .15s ease;
      font-family: var(--font);
    }
    .alloc-pill:hover, .alloc-pill:active {
      background: color-mix(in srgb, var(--gold) 24%, transparent);
      transform: translateY(-1px);
    }

    /* custom autocomplete (matches app theme) */
    .acbox {
      position: absolute;
      z-index: 60;
      background: var(--glass-2);
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      -webkit-backdrop-filter: blur(18px);
      backdrop-filter: blur(18px);
      box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
      max-height: 260px;
      overflow: auto;
      padding: 4px;
      width: 320px;
      max-width: calc(100vw - 32px)
    }

    .acbox .aci {
      padding: 8px 12px;
      border-radius: var(--r-control);
      font-size: 13px;
      cursor: pointer;
      color: var(--text)
    }

    .acbox .aci .acsym {
      font-family: var(--mono);
      font-weight: 600
    }

    .acbox .aci .acname {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      font-size: 12.5px;
      line-height: 1.35;
      color: var(--text-2);
      margin-top: 2px;
      overflow: hidden;
      /* Two lines, not one: "Ngân hàng Thương mại Cổ phần Ngoại Thương Việt Nam" does not fit a
         320px row, and a reader who searched "ngoai thuong" needs to see the words they typed.
         `max-height` on the box still bounds the list. */
    }

    .acbox .aci.sel,
    .acbox .aci:active {
      background: color-mix(in srgb, var(--gold) 18%, transparent);
      color: var(--gold-text)
    }

    /* interactive chart */
    .chartwrap {
      position: relative
    }

    .cht {
      position: absolute;
      pointer-events: none;
      background: var(--text);
      color: var(--surface);
      font-size: 12px;
      padding: 8px 8px;
      border-radius: var(--r-control);
      transform: translate(-50%, calc(-100% - 8px));
      white-space: nowrap;
      display: none;
      z-index: 5;
      font-variant-numeric: tabular-nums
    }

    .logitem {
      display: flex;
      gap: 12px;
      padding: 12px 0;
      border-top: 1px solid var(--hair);
      font-size: 12.5px
    }

    .logitem:first-child {
      border: none
    }

    .logitem .ld {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-3);
      width: 56px;
      flex: none
    }

    .logitem .lt b {
      font-weight: 600
    }

    .logitem .lt span {
      color: var(--text-2)
    }

    .logdot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex: none;
      margin-top: 4px
    }

    /* desktop sidebar + responsive */
    .shell {
      display: block
    }

    .sidebar {
      display: none
    }

    @media(min-width:900px) {
      body {
        background-attachment: fixed
      }

      .shell {
        display: grid;
        grid-template-columns: 252px minmax(0, 1fr);
        align-items: start
      }

      .sidebar {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 16px 16px;
        border-right: 1px solid var(--hair);
        position: sticky;
        top: 0;
        height: 100dvh;
        background: color-mix(in srgb, var(--glass) 35%, transparent);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
        backdrop-filter: blur(24px) saturate(1.4)
      }

      .sidebar .sbrand {
        font-weight: 700;
        font-size: 20px;
        display: flex;
        gap: 8px;
        align-items: center;
        padding: 8px 12px 16px;
        letter-spacing: -.02em
      }

      .sidebar .sbrand .bg {
        color: var(--gold)
      }

      .snav {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 12px;
        border-radius: var(--r-card);
        color: var(--text-2);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all var(--spring)
      }

      .snav svg {
        width: 20px;
        height: 20px;
        flex: none
      }

      .snav:hover {
        background: var(--track);
        transform: translateX(3px)
      }

      .snav.on {
        background: linear-gradient(135deg, var(--gold), var(--gold-2));
        color: var(--accent-ink);
        font-weight: 600
      }

      .sidefoot {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--hair)
      }

      .sidestat {
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 12px;
        color: var(--text-2);
        padding: 2px 12px
      }

      .app {
        width: 100%;
        max-width: 1120px;
        margin: 0 auto;
        padding: 0 28px 64px
      }

      .appbar {
        padding-left: 0;
        padding-right: 0
      }

      .pad {
        padding: 24px 0
      }

      .livebar {
        padding-left: 0;
        padding-right: 0
      }

      .tabbar {
        display: none
      }

      #acctBtn {
        display: none
      }

      .report-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px
      }

      .report-cols>.card {
        margin-top: 0
      }
    }

    /* ===== Watchlists home + bảng điện (Phase B) ===== */
    .up {
      color: var(--bull)
    }

    .down {
      color: var(--bear)
    }

    .flat {
      color: var(--text-3)
    }

    .wlhead {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 2px 2px 4px
    }

    .wlhead .h {
      font-size: 21px;
      font-weight: 600;
      letter-spacing: -.02em;
      flex: 1
    }

    .addwl {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 38px;
      padding: 0 16px;
      border-radius: var(--r-card);
      background: linear-gradient(135deg, var(--gold), var(--gold-2));
      color: var(--accent-ink);
      font-weight: 600;
      font-size: 13px;
      border: none;
      cursor: pointer;
      flex: none
    }

    .addwl:active {
      transform: scale(.95)
    }

    .wl-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 16px
    }

    .wl-list>.wlcard {
      margin-top: 0
    }

    .wlcard {
      cursor: pointer;
      position: relative;
      will-change: transform;
      transition: transform var(--spring), box-shadow var(--spring), opacity var(--motion-base) var(--ease-standard)
    }

    /* will-change makes each card its own stacking context, so the next card painted over this
       card's open "Tùy chọn" menu and took its clicks. Lift the card whose menu is open. */
    .wlcard:has(.wl-more[open]) {
      z-index: 7
    }

    .wlcard.dragging {
      opacity: .68;
      transform: scale(.985) !important;
      box-shadow: 0 22px 46px rgba(0, 0, 0, .2);
      z-index: 8;
      cursor: grabbing
    }

    .draghandle {
      width: 44px;
      height: 44px;
      border: 0;
      background: transparent;
      color: var(--text-3);
      border-radius: var(--r-control);
      display: grid;
      place-items: center;
      cursor: grab;
      touch-action: none;
      flex: none;
      font-size: 18px;
      letter-spacing: -4px;
      padding-right: 4px
    }

    .draghandle:active {
      cursor: grabbing;
      background: var(--track)
    }

    .wlcard .top {
      display: flex;
      align-items: flex-start;
      gap: 12px
    }

    .wlcard .nm {
      font-weight: 600;
      font-size: 15px
    }

    .wlcard .syms {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-2);
      margin-top: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 200px
    }

    /* The figure the product exists to show, and the score beside it as support. */
    .wl-figure {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-top: 12px
    }

    .wl-figure-lab {
      font-size: 12.5px;
      color: var(--text-2)
    }

    .wl-figure-v {
      font-size: 28px;
      line-height: 1.1;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--bear)
    }

    .wl-figure-v.none {
      color: var(--text-3)
    }

    .wl-figure-sub {
      font-size: 12.5px;
      color: var(--text-2);
      margin-top: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .wl-score {
      flex: none;
      text-align: right;
      min-width: 74px
    }

    .wl-score .v {
      font-weight: 700;
      font-size: 19px;
      line-height: 1.1;
      font-variant-numeric: tabular-nums
    }

    .wl-score .b {
      font-size: 12px;
      color: var(--text-2);
      margin-top: 2px
    }

    /* Edit, export and delete, one keystroke away rather than three buttons competing with the
       action the card exists for. */
    .adm-attention {
      border-color: color-mix(in srgb, var(--bear) 38%, transparent)
    }

    .adm-attention.ok {
      border-color: var(--hair)
    }

    .adm-attention-list {
      margin: 8px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 8px
    }

    .adm-attention-list li {
      display: grid;
      gap: 2px;
      font-size: 13px;
      line-height: 1.5
    }

    .adm-attention-list li span {
      color: var(--text-2)
    }

    .adm-technical {
      margin-top: 12px
    }

    .adm-technical>summary {
      cursor: pointer;
      font-size: 12.5px;
      color: var(--text-2);
      padding: 8px 0
    }

    .alloc-lines {
      display: grid;
      gap: 4px;
      margin-top: 12px
    }

    .alloc-line {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px
    }

    .al-lab {
      color: var(--text-2)
    }

    .al-val {
      font-weight: 600;
      font-variant-numeric: tabular-nums
    }

    .wl-more {
      position: relative;
      flex: none
    }

    .wl-more>summary {
      list-style: none;
      min-height: 44px;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--hair);
      border-radius: var(--r-control);
      background: var(--track);
      color: var(--text-2);
      font-size: 12px;
      cursor: pointer
    }

    .wl-more>summary::-webkit-details-marker {
      display: none
    }

    .wl-more-menu {
      position: absolute;
      right: 0;
      z-index: 20;
      margin-top: 8px;
      padding: 8px;
      display: grid;
      gap: 4px;
      min-width: 172px;
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      background: var(--glass-2);
      box-shadow: 0 14px 34px rgba(0, 0, 0, .22)
    }

    .wl-more-menu button {
      justify-content: flex-start;
      width: 100%
    }

    .minibar {
      height: 5px;
      border-radius: 3px;
      background: var(--track);
      overflow: hidden;
      margin-top: 12px
    }

    .minibar i {
      display: block;
      height: 100%;
      border-radius: 3px;
      transition: width .8s cubic-bezier(.22, .61, .36, 1)
    }

    .watch-change {
      margin-top: 12px;
      padding: 12px 12px;
      border-radius: var(--r-control);
      border: 1px solid var(--hair);
      background: var(--track);
      color: var(--text-2);
      font-size: 12px;
      line-height: 1.45
    }

    .watch-change b {
      display: block;
      color: var(--text);
      font-size: 12.5px;
      margin-bottom: 2px
    }

    .watch-change.material_deterioration {
      border-color: color-mix(in srgb, var(--bear) 30%, var(--hair));
      background: color-mix(in srgb, var(--bear) 8%, var(--track))
    }

    .watch-change.material_improvement {
      border-color: color-mix(in srgb, var(--bull) 26%, var(--hair));
      background: color-mix(in srgb, var(--bull) 8%, var(--track))
    }

    .watch-change.stale_data,
    .watch-change.insufficient_coverage {
      border-color: color-mix(in srgb, var(--cautious) 28%, var(--hair));
      background: color-mix(in srgb, var(--cautious) 8%, var(--track))
    }

    .change-deltas {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 12px;
      margin-top: 4px;
      font-size: 12.5px;
      font-variant-numeric: tabular-nums
    }

    .wlcard .foot {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      font-size: 12.5px;
      color: var(--text-2)
    }

    .daychg {
      font-weight: 600;
      font-variant-numeric: tabular-nums
    }

    .rbadge {
      margin-left: auto;
      font-size: 12px;
      padding: 4px 8px;
      border-radius: var(--r-pill);
      font-weight: 600
    }

    .wlacts {
      display: flex;
      gap: 8px;
      margin-top: 12px
    }

    .wlacts button {
      min-height: 44px;
      padding: 0 12px;
      border-radius: var(--r-control);
      border: 1px solid var(--hair);
      background: var(--track);
      color: var(--text-2);
      cursor: pointer;
      font-size: 12px;
      display: inline-flex;
      align-items: center;
      gap: 4px
    }

    .wlacts button:active {
      transform: scale(.95)
    }

    /* The primary action of the card, and the only one a keyboard user could not reach before:
       opening the report used to depend on clicking the card itself, which is a plain div. */
    .wlacts button.wlopen {
      flex: 1;
      justify-content: center;
      font-weight: 600;
      color: var(--text);
      border-color: color-mix(in srgb, var(--gold) 42%, var(--hair));
      background: color-mix(in srgb, var(--gold) 12%, transparent)
    }

    .wlacts .del {
      color: var(--bear);
      margin-left: auto
    }

    .wlhero {
      background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent);
      border-color: color-mix(in srgb, var(--gold) 26%, transparent)
    }

    .wlhero-title {
      font-size: 22px;
      line-height: 1.22;
      font-weight: 600;
      letter-spacing: -.025em;
      margin: 8px 0 8px;
      max-width: 760px
    }

    .wlhero .sub {
      max-width: 760px
    }

    .wl-freshness {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
      padding: 8px 12px;
      border-radius: var(--r-control);
      background: color-mix(in srgb, var(--bull) 9%, transparent);
      border: 1px solid color-mix(in srgb, var(--bull) 18%, transparent);
      font-size: 12.5px;
      color: var(--text-2)
    }

    .wl-freshness i {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--bull);
      flex: none
    }

    .wl-freshness.stale {
      background: color-mix(in srgb, var(--cautious) 10%, transparent);
      border-color: color-mix(in srgb, var(--cautious) 20%, transparent)
    }

    .wl-freshness.stale i {
      background: var(--cautious)
    }

    .wlhero+.wlhead {
      margin-top: 24px
    }

    /* report charts (HTML axis labels; no scaling SVG text) */
    .histwrap {
      position: relative;
      touch-action: none;
      user-select: none
    }

    .xlabels {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--text-3);
      padding: 4px 4px 0;
      font-variant-numeric: tabular-nums
    }

    .xlabels span {
      white-space: nowrap
    }

    .mcbig {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin: 8px 0 12px
    }

    .mcbig .b {
      flex: 1;
      min-width: 130px
    }

    .mcbig .lab {
      font-size: 12px;
      color: var(--text-2)
    }

    .mcbig .v {
      font-size: 26px;
      font-weight: 700;
      letter-spacing: -.02em;
      line-height: 1.1;
      margin-top: 2px
    }

    .mcbig .v small {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-3);
      font-variant-numeric: tabular-nums
    }

    .mchint {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 12px;
      color: var(--text-2);
      margin-top: 2px
    }

    .mchint i {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      display: inline-block;
      margin-right: 4px;
      vertical-align: -1px
    }

    /* clickable metric info (report section 2) */
    .cbwrap {
      margin-bottom: 8px
    }

    .cbwrap .cb {
      margin-bottom: 0
    }

    .infodot {
      width: 16px;
      height: 16px;
      flex: none;
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      font-family: var(--sans);
      font-size: 10px;
      font-weight: 700;
      font-style: italic;
      cursor: pointer;
      color: var(--gold-text);
      background: color-mix(in srgb, var(--gold) 16%, transparent);
      border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
      line-height: 1;
      transition: background var(--spring)
    }

    .infodot:hover {
      background: color-mix(in srgb, var(--gold) 28%, transparent)
    }

    .infodot:active {
      transform: scale(.9)
    }

    .metricnote {
      font-size: 12.5px;
      line-height: 1.5;
      color: var(--text-2);
      background: var(--track);
      border: 1px solid var(--hair);
      border-radius: var(--r-control);
      padding: 8px 12px;
      margin: 8px 0 2px;
      animation: fade var(--ease)
    }

    /* report verdict (one-line summary at the top) */
    .verdict {
      padding: 16px 16px;
      margin-bottom: 12px
    }

    .verdict .vhead {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 19px;
      font-weight: 700;
      letter-spacing: -.02em;
      line-height: 1.1
    }

    .verdict .vdot {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      flex: none
    }

    .verdict .vsub {
      font-size: 13px;
      color: var(--text);
      margin-top: 8px;
      line-height: 1.5
    }

    .verdict .vsub2 {
      font-size: 12px;
      color: var(--text-2);
      margin-top: 4px;
      line-height: 1.5
    }

    /* frozen report header (sticks just below the app bar on scroll) */
    /* Report screen fades in WITHOUT a transform: a transformed ancestor would trap the sticky
     header inside it and break the freeze-on-scroll. */
    @keyframes fadeOnly {
      from {
        opacity: 0
      }

      to {
        opacity: 1
      }
    }

    .screen[data-s="report"].active {
      animation: fadeOnly var(--ease)
    }

    .report-head {
      position: sticky;
      top: 51px;
      z-index: 18;
      display: flex;
      align-items: center;
      gap: 12px;
      margin: -4px -16px 8px;
      padding: 12px 16px;
      background: color-mix(in srgb, var(--wall-base) 45%, transparent);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      backdrop-filter: blur(24px) saturate(1.4);
      border-bottom: 1px solid var(--hair)
    }

    /* About storytelling & vision cards */
    .about-quote {
      font-size: 15px;
      line-height: 1.55;
      font-weight: 600;
      color: var(--gold-text);
      border-left: 3px solid var(--gold);
      padding: 8px 0 8px 16px;
      margin: 12px 0;
      background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent);
      border-radius: 0 var(--r-control) var(--r-control) 0;
    }

    .about-card-title {
      font-size: 15.5px;
      font-weight: 700;
      letter-spacing: -.015em;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }

    .about-card-title svg {
      color: var(--gold);
      flex: none;
    }

    .about-p {
      font-size: 13.5px;
      line-height: 1.65;
      color: var(--text-2);
      margin-bottom: 12px;
    }

    .about-p:last-child {
      margin-bottom: 0;
    }

    .pillar-item {
      display: flex;
      gap: 12px;
      padding: 12px 0;
      border-top: 1px solid var(--hair);
    }

    .pillar-item:first-child {
      border-top: none;
      padding-top: 4px;
    }

    .pillar-icon {
      width: 32px;
      height: 32px;
      border-radius: var(--r-control);
      background: color-mix(in srgb, var(--bull) 14%, transparent);
      border: 1px solid color-mix(in srgb, var(--bull) 24%, transparent);
      color: var(--bull);
      display: grid;
      place-items: center;
      flex: none;
      font-size: 14px;
      font-family: var(--mono);
      font-weight: 700;
    }

    .pillar-body b {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text);
      display: block;
      margin-bottom: 4px;
    }

    .pillar-body p {
      font-size: 12px;
      line-height: 1.55;
      color: var(--text-2);
      margin: 0;
    }

    .mv-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    @media(min-width:600px) {
      .mv-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .mv-card {
      padding: 16px;
      border-radius: var(--r-card);
      background: var(--glass);
      border: 1px solid var(--hair);
    }

    .mv-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--gold-text);
      background: color-mix(in srgb, var(--gold) 15%, transparent);
      padding: 4px 8px;
      border-radius: var(--r-chip);
      margin-bottom: 8px;
    }

    /* modal sheet */
    .modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      align-items: flex-end;
      justify-content: center
    }

    .modal.on {
      display: flex;
      animation: fade var(--ease)
    }

    .modal .scrim {
      position: absolute;
      inset: 0;
      background: rgba(8, 14, 13, .44);
      -webkit-backdrop-filter: blur(3px);
      backdrop-filter: blur(3px)
    }

    .sheet {
      position: relative;
      width: 100%;
      max-width: 480px;
      max-height: 88dvh;
      overflow: auto;
      background: var(--wall-base);
      background-image: var(--wall);
      border-radius: var(--r-card) var(--r-card) 0 0;
      border: 1px solid var(--hair);
      border-bottom: none;
      padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
      animation: sheetUp var(--spring)
    }

    @keyframes sheetUp {
      from {
        transform: translateY(44px);
        opacity: .5
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    .sheet .sh {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px
    }

    .sheet .sh .t {
      font-weight: 600;
      font-size: 17px;
      flex: 1
    }

    @media(min-width:900px) {
      .modal {
        align-items: center
      }

      .sheet {
        border-radius: var(--r-card);
        border-bottom: 1px solid var(--hair);
        max-height: 84dvh
      }
    }

    /* Multi-step Onboarding Progress */
    .step-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 12px 0 16px;
      position: relative
    }

    .step-bar::before {
      content: "";
      position: absolute;
      top: 13px;
      left: 24px;
      right: 24px;
      height: 2px;
      background: var(--track);
      z-index: 0
    }

    .step-item {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px
    }

    .step-num {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--hair);
      color: var(--text-3);
      display: grid;
      place-items: center;
      font-size: 12px;
      font-weight: 600;
      transition: all var(--spring);
      font-variant-numeric: tabular-nums
    }

    .step-item.active .step-num {
      background: linear-gradient(135deg, var(--gold), var(--gold-2));
      color: var(--accent-ink);
      border-color: transparent;
      box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 45%, transparent)
    }

    .step-item.done .step-num {
      background: var(--bull);
      color: #fff;
      border-color: transparent
    }

    .step-lbl {
      font-size: 12px;
      color: var(--text-3);
      font-weight: 500
    }

    .step-item.active .step-lbl {
      color: var(--text);
      font-weight: 600
    }

    /* Landing Product Preview & FAQ */
    .landing-preview {
      border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--hair));
      background: linear-gradient(145deg, color-mix(in srgb, var(--gold) 8%, var(--glass-2)), var(--glass));
      box-shadow: 0 20px 48px rgba(0, 0, 0, .14);
      border-radius: var(--r-card);
      padding: 16px 16px;
      margin: 16px 0 16px
    }

    .preview-hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--hair);
      padding-bottom: 12px;
      margin-bottom: 12px
    }

    .preview-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 8px;
      border-radius: var(--r-pill);
      font-size: 12px;
      font-weight: 600;
      background: color-mix(in srgb, var(--bull) 15%, transparent);
      color: var(--bull);
      border: 1px solid color-mix(in srgb, var(--bull) 26%, transparent)
    }

    .faq-wrap {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin: 16px 0
    }

    .faq-item {
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      background: var(--glass);
      overflow: hidden;
      transition: background var(--spring), border-color var(--spring)
    }

    .faq-q {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      font-weight: 600;
      font-size: 13.5px;
      color: var(--text);
      cursor: pointer;
      user-select: none;
      width: 100%;
      border: 0;
      background: transparent;
      text-align: left;
      font-family: var(--sans)
    }

    .faq-q .faq-icon {
      font-size: 18px;
      color: var(--gold-text);
      transition: transform var(--spring);
      line-height: 1
    }

    .faq-item.open .faq-q .faq-icon {
      transform: rotate(45deg)
    }

    .faq-a {
      display: none;
      padding: 0 16px 12px;
      font-size: 12.5px;
      line-height: 1.58;
      color: var(--text-2)
    }

    .faq-item.open .faq-a {
      display: block;
      animation: fade var(--ease)
    }

    /* Review Summary Table */
    .review-box {
      background: var(--track);
      border: 1px solid var(--hair);
      border-radius: var(--r-card);
      padding: 12px 16px;
      margin: 12px 0
    }

    .review-row {
      display: grid;
      grid-template-columns: 1fr 100px 60px;
      align-items: center;
      gap: 12px;
      padding: 8px 2px;
      border-bottom: 1px solid var(--hair);
      font-size: 12.5px
    }

    .review-row > b {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .review-row > .sub {
      text-align: right;
      font-size: 12px;
      font-variant-numeric: tabular-nums
    }

    .review-row > span:last-child {
      text-align: right;
    }

    .review-row:last-child {
      border-bottom: none
    }

    .coverage-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 8px;
      border-radius: var(--r-control);
      font-size: 12px;
      font-weight: 600;
      background: color-mix(in srgb, var(--bull) 14%, transparent);
      color: var(--bull);
      border: 1px solid color-mix(in srgb, var(--bull) 24%, transparent)
    }

    .coverage-badge.warn {
      background: color-mix(in srgb, var(--cautious) 14%, transparent);
      color: var(--cautious);
      border-color: color-mix(in srgb, var(--cautious) 24%, transparent)
    }

    /* unified interaction + motion system */
    .seg,
    .toggle {
      position: relative;
      isolation: isolate;
      --seg-count: 2;
      --seg-index: 0;
      --seg-pad: 4px
    }

    .seg::before,
    .toggle::before {
      content: "";
      position: absolute;
      z-index: 0;
      pointer-events: none;
      top: var(--seg-pad);
      bottom: var(--seg-pad);
      left: var(--seg-pad);
      width: calc((100% - var(--seg-pad) - var(--seg-pad))/var(--seg-count));
      border-radius: var(--r-control);
      background: var(--glass-2);
      border: 1px solid var(--hair-top);
      box-shadow: 0 3px 12px rgba(0, 0, 0, .10), inset 0 1px 0 var(--hair-top);
      transform: translate3d(calc(var(--seg-index) * 100%), 0, 0);
      will-change: transform;
      transition: transform 320ms cubic-bezier(.22, 1, .36, 1), width var(--motion-base) var(--ease-out)
    }

    button,
    .addrow,
    .iconbtn,
    .addwl,
    .wlacts button,
    .tabbar a,
    .snav,
    .switch,
    .glass.tap,
    .wlcard,
    .acbox .aci {
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: transform var(--spring), background-color var(--motion-base) var(--ease-standard),
        color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard),
        box-shadow var(--motion-base) var(--ease-out), opacity var(--motion-fast) var(--ease-standard),
        filter var(--motion-fast) var(--ease-standard)
    }

    button>svg,
    .tabbar a svg,
    .snav svg {
      transition: transform var(--motion-base) var(--ease-out)
    }

    .btn {
      will-change: transform;
      transition: transform var(--spring), box-shadow var(--motion-base) var(--ease-out),
        filter var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard)
    }

    .seg button,
    .toggle button {
      position: relative;
      z-index: 1;
      will-change: transform;
      background-color: transparent;
      transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-base) var(--ease-standard),
        color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-base) var(--ease-out)
    }

    .seg button.on,
    .toggle button.on {
      background: transparent;
      box-shadow: none
    }

    .btn:not(:disabled):active,
    .iconbtn:active,
    .addwl:active,
    .wlacts button:active,
    .seg button:active,
    .toggle button:active,
    .hrow .rm:active {
      transform: translateY(0) scale(.97);
      transition-duration: var(--motion-fast)
    }

    .tabbar a:active,
    .snav:active,
    .addrow:active,
    .glass.tap:active,
    .wlcard:active {
      transform: scale(.985);
      transition-duration: var(--motion-fast)
    }

    button:active>svg,
    .tabbar a:active svg,
    .snav:active svg {
      transform: scale(.92)
    }

    button:disabled,
    .btn:disabled {
      cursor: not-allowed;
      transform: none !important;
      box-shadow: none;
      filter: saturate(.65);
      opacity: .55
    }

    button:focus-visible,
    [role="button"]:focus-visible,
    [role="tab"]:focus-visible,
    [role="switch"]:focus-visible,
    .addrow:focus-visible,
    .tabbar a:focus-visible,
    .snav:focus-visible,
    .switch:focus-visible,
    .leglink:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--gold) 42%, transparent);
      outline-offset: 3px
    }

    input,
    select {
      transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-standard)
    }

    input:focus,
    select:focus {
      outline: none;
      border-color: color-mix(in srgb, var(--gold) 55%, var(--hair));
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent)
    }

    input:focus-visible,
    select:focus-visible {
      outline: none;
      border-color: color-mix(in srgb, var(--gold) 65%, var(--hair));
      box-shadow: var(--focus-ring)
    }

    .field.input-error,
    input.input-error {
      border-color: var(--bear) !important;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--bear) 22%, transparent) !important
    }

    .field-err-msg {
      font-size: 12.5px;
      color: var(--bear);
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 4px
    }

    .btn.is-loading {
      position: relative;
      color: transparent !important;
      pointer-events: none
    }

    .btn.is-loading::after {
      content: "";
      position: absolute;
      inset: 0;
      margin: auto;
      width: 18px;
      height: 18px;
      border: 2px solid currentColor;
      border-top-color: transparent;
      border-radius: 50%;
      animation: spin .8s linear infinite
    }

    /* Skeleton Loading System */
    .skeleton {
      background: linear-gradient(90deg, color-mix(in srgb, var(--track) 80%, transparent) 25%, color-mix(in srgb, var(--glass-2) 90%, transparent) 50%, color-mix(in srgb, var(--track) 80%, transparent) 75%);
      background-size: 200% 100%;
      animation: skeletonShimmer 1.5s ease-in-out infinite;
      border-radius: var(--r-control)
    }

    @keyframes skeletonShimmer {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    .sk-text {
      height: 14px;
      margin-bottom: 8px;
      width: 80%
    }

    .sk-title {
      height: 22px;
      margin-bottom: 12px;
      width: 50%
    }

    .sk-card {
      height: 96px;
      border-radius: var(--r-card);
      margin-bottom: 12px
    }

    /* Toast Notification System */
    .toast-container {
      position: fixed;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
      width: min(92vw, 420px)
    }

    .toast {
      pointer-events: auto;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-radius: var(--r-card);
      font-size: 13.5px;
      font-weight: 500;
      line-height: 1.35;
      background: var(--glass-2);
      color: var(--text);
      border: 1px solid var(--hair);
      -webkit-backdrop-filter: blur(18px);
      backdrop-filter: blur(18px);
      box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
      animation: toastIn var(--spring);
      transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--ease-out)
    }

    .toast.toast-exit {
      opacity: 0;
      transform: translateY(-8px) scale(.96)
    }

    .toast-icon {
      flex: none;
      display: grid;
      place-items: center
    }

    .toast.toast-success {
      border-color: color-mix(in srgb, var(--bull) 40%, var(--hair))
    }

    .toast.toast-success .toast-icon {
      color: var(--bull)
    }

    .toast.toast-error {
      border-color: color-mix(in srgb, var(--bear) 45%, var(--hair))
    }

    .toast.toast-error .toast-icon {
      color: var(--bear)
    }

    .toast.toast-warn {
      border-color: color-mix(in srgb, var(--cautious) 45%, var(--hair))
    }

    .toast.toast-warn .toast-icon {
      color: var(--cautious)
    }

    .toast.toast-info {
      border-color: color-mix(in srgb, var(--neutral) 45%, var(--hair))
    }

    .toast.toast-info .toast-icon {
      color: var(--neutral)
    }

    @keyframes toastIn {
      from {
        opacity: 0;
        transform: translateY(-12px) scale(.96)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    .tabbar a.on svg {
      transform: translateY(-1px)
    }

    @media (hover:hover) and (pointer:fine) {
      .btn:not(:disabled):hover {
        transform: translateY(-2px);
        filter: brightness(1.035)
      }

      .btn-primary:not(:disabled):hover {
        box-shadow: 0 12px 28px color-mix(in srgb, var(--gold) 38%, transparent)
      }

      .btn-outline:not(:disabled):hover,
      .iconbtn:hover,
      .wlacts button:hover {
        background: var(--glass-2);
        border-color: color-mix(in srgb, var(--gold) 24%, var(--hair))
      }

      .iconbtn:hover,
      .addwl:hover {
        transform: translateY(-1px)
      }

      .seg button:not(.on):hover,
      .toggle button:not(.on):hover {
        background: color-mix(in srgb, var(--glass-2) 55%, transparent);
        color: var(--text)
      }

      .addrow:hover {
        background: color-mix(in srgb, var(--gold) 8%, transparent);
        border-color: color-mix(in srgb, var(--gold) 42%, var(--hair));
        transform: translateY(-1px)
      }

      .hrow .rm:hover {
        color: var(--bear);
        background: color-mix(in srgb, var(--bear) 10%, transparent);
        border-radius: var(--r-control)
      }

      .wlacts button:hover {
        transform: translateY(-1px)
      }

      .wlcard:hover {
        border-color: color-mix(in srgb, var(--gold) 32%, var(--hair))
      }
    }

    .screen.active {
      view-transition-name: app-screen
    }

    html[data-slide-direction] .screen.active {
      animation: none
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation: none;
      mix-blend-mode: normal
    }

    ::view-transition-group(app-screen) {
      animation-duration: 420ms;
      animation-timing-function: cubic-bezier(.22, 1, .36, 1)
    }

    html[data-slide-direction="forward"]::view-transition-old(app-screen) {
      animation: screenForwardOut 360ms cubic-bezier(.4, 0, .2, 1) both
    }

    html[data-slide-direction="forward"]::view-transition-new(app-screen) {
      animation: screenForwardIn 420ms cubic-bezier(.22, 1, .36, 1) both
    }

    html[data-slide-direction="back"]::view-transition-old(app-screen) {
      animation: screenBackOut 340ms cubic-bezier(.4, 0, .2, 1) both
    }

    html[data-slide-direction="back"]::view-transition-new(app-screen) {
      animation: screenBackIn 420ms cubic-bezier(.22, 1, .36, 1) both
    }

    @keyframes screenForwardOut {
      to {
        opacity: 0;
        transform: translate3d(-9%, 0, 0) scale(.985);
        filter: blur(2px)
      }
    }

    @keyframes screenForwardIn {
      from {
        opacity: 0;
        transform: translate3d(13%, 0, 0) scale(.985);
        filter: blur(2px)
      }
    }

    @keyframes screenBackOut {
      to {
        opacity: 0;
        transform: translate3d(9%, 0, 0) scale(.985);
        filter: blur(2px)
      }
    }

    @keyframes screenBackIn {
      from {
        opacity: 0;
        transform: translate3d(-13%, 0, 0) scale(.985);
        filter: blur(2px)
      }
    }

    .wlcard.is-opening {
      transform: translateY(-3px) scale(.985);
      opacity: .78;
      box-shadow: 0 22px 48px rgba(0, 0, 0, .18), inset 0 1px 0 var(--hair-top);
      pointer-events: none
    }

    .mpt-stage {
      will-change: transform, opacity;
      transition: transform 280ms cubic-bezier(.4, 0, .2, 1), opacity 220ms ease, filter 220ms ease
    }

    .mpt-stage.mpt-exit-left {
      opacity: 0;
      transform: translate3d(-8%, 0, 0) scale(.985);
      filter: blur(2px);
      pointer-events: none
    }

    .mpt-stage.mpt-exit-right {
      opacity: 0;
      transform: translate3d(8%, 0, 0) scale(.985);
      filter: blur(2px);
      pointer-events: none
    }

    .mpt-stage.mpt-enter-forward>* {
      animation: mptItemForward 430ms cubic-bezier(.22, 1, .36, 1) both
    }

    .mpt-stage.mpt-enter-back>* {
      animation: mptItemBack 430ms cubic-bezier(.22, 1, .36, 1) both
    }

    .mpt-stage[class*="mpt-enter-"]>*:nth-child(2) {
      animation-delay: 45ms
    }

    .mpt-stage[class*="mpt-enter-"]>*:nth-child(3) {
      animation-delay: 80ms
    }

    .mpt-stage[class*="mpt-enter-"]>*:nth-child(4) {
      animation-delay: 115ms
    }

    .mpt-stage[class*="mpt-enter-"]>*:nth-child(5) {
      animation-delay: 150ms
    }

    @keyframes mptItemForward {
      from {
        opacity: 0;
        transform: translate3d(28px, 8px, 0) scale(.985);
        filter: blur(2px)
      }

      to {
        opacity: 1;
        transform: none;
        filter: none
      }
    }

    @keyframes mptItemBack {
      from {
        opacity: 0;
        transform: translate3d(-28px, 8px, 0) scale(.985);
        filter: blur(2px)
      }

      to {
        opacity: 1;
        transform: none;
        filter: none
      }
    }

    .report-reveal>* {
      animation: reportSectionIn 480ms cubic-bezier(.22, 1, .36, 1) both
    }

    .report-reveal>*:nth-child(2) {
      animation-delay: 55ms
    }

    .report-reveal>*:nth-child(3) {
      animation-delay: 100ms
    }

    .report-reveal>*:nth-child(4) {
      animation-delay: 145ms
    }

    .report-reveal>*:nth-child(5) {
      animation-delay: 190ms
    }

    .report-reveal>*:nth-child(n+6) {
      animation-delay: 225ms
    }

    @keyframes reportSectionIn {
      from {
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(.99);
        filter: blur(2px)
      }

      to {
        opacity: 1;
        transform: none;
        filter: none
      }
    }

    .report-fill {
      transform-origin: left center;
      animation: reportBarFill 820ms cubic-bezier(.22, 1, .36, 1) both
    }

    @keyframes reportBarFill {
      from {
        transform: scaleX(0);
        opacity: .45
      }

      to {
        transform: scaleX(1);
        opacity: 1
      }
    }

    @media (prefers-reduced-motion:reduce) {
      html {
        scroll-behavior: auto
      }

      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
      }
    }
