    :root {
      color-scheme: light dark;
      --bg: #f5faff;
      --surface: #ffffff;
      --surface-2: #eaf5fd;
      --surface-3: #d9edf9;
      --ink: #102544;
      --muted: #52677f;
      --line: #c9deed;
      --brand: #086bd8;
      --brand-strong: #0052b8;
      --brand-soft: #e0f2fd;
      --accent: #e5188b;
      --accent-soft: #fde6f3;
      --red: #b93855;
      --red-soft: #fbe8ed;
      --shadow: 0 18px 42px rgba(16, 62, 105, .11);
      --radius: 18px;
      --radius-sm: 10px;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #0c1728;
        --surface: #13243a;
        --surface-2: #1b304a;
        --surface-3: #24425f;
        --ink: #eef7ff;
        --muted: #b3c7db;
        --line: #315171;
        --brand: #4da3ff;
        --brand-strong: #83c0ff;
        --brand-soft: #12355b;
        --accent: #ff70bd;
        --accent-soft: #49233b;
        --red: #ff91a7;
        --red-soft: #462431;
        --shadow: 0 20px 48px rgba(0, 0, 0, .28);
      }
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: "Nunito Sans", sans-serif;
      line-height: 1.48;
    }
    button, input, textarea, select { font: inherit; }
    button { color: inherit; }
    a { color: var(--brand-strong); }
    .wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
    .prototype-bar {
      background: var(--ink);
      color: var(--surface);
      font-size: .78rem;
      letter-spacing: .02em;
    }
    .prototype-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 0; }
    .prototype-bar strong { color: var(--accent); }
    .prototype-bar span:last-child { opacity: .76; }
    .nav-shell {
      position: sticky;
      top: 0;
      z-index: 10;
      background: color-mix(in srgb, var(--bg) 92%, transparent);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }
    .nav {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 68px;
      padding: 10px 0;
    }
    .nav-intro { margin-right: auto; font-size: .86rem; color: var(--muted); font-weight: 600; }
    .program-mark { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
    .program-mark img { width: 116px; height: 46px; display: block; object-fit: contain; background: transparent; }
    .program-mark span { max-width: 92px; color: var(--muted); font-size: .68rem; font-weight: 800; line-height: 1.2; }
    .nav button, .mini-tabs button {
      border: 0;
      background: transparent;
      border-radius: 999px;
      padding: 10px 14px;
      font-weight: 700;
      font-size: .86rem;
      cursor: pointer;
    }
    .nav button:hover, .mini-tabs button:hover { background: var(--surface-2); }
    .nav button[aria-selected="true"], .mini-tabs button[aria-selected="true"] {
      background: var(--ink);
      color: var(--surface);
    }
    main { padding: 34px 0 80px; }
    .view { display: none; }
    .view.active { display: block; }
    .hero {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 32px;
      align-items: stretch;
      margin-bottom: 28px;
    }
    .hero-copy {
      background: var(--brand);
      color: #fff;
      border-radius: 28px 28px 8px 28px;
      padding: clamp(32px, 5vw, 64px);
      min-height: 380px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .hero-copy::after {
      content: "1 : 1 : 1";
      position: absolute;
      right: -10px;
      bottom: -30px;
      color: rgba(255,255,255,.08);
      font: 800 clamp(68px, 10vw, 122px)/1 "Nunito Sans", sans-serif;
      letter-spacing: -.07em;
      white-space: nowrap;
    }
    .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
    .hero h1 {
      font-family: "Kalam", cursive;
      font-size: clamp(2.25rem, 4.6vw, 4rem);
      line-height: 1.02;
      letter-spacing: -.03em;
      margin: 0 0 18px;
      max-width: 13ch;
    }
    .hero-copy > p:not(.eyebrow) { max-width: 52ch; font-size: 1.06rem; margin: 0 0 25px; color: rgba(255,255,255,.9); }
    .actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
    .btn {
      border: 0;
      background: var(--brand);
      color: #fff;
      border-radius: 10px;
      min-height: 46px;
      padding: 12px 18px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-decoration: none;
    }
    .btn:hover { background: var(--brand-strong); }
    .btn:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
    .btn.light { background: #fff; color: #0052b8; }
    .btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
    .btn.orange { background: var(--accent); color: #fff; }
    .btn.small { min-height: 38px; padding: 8px 12px; font-size: .84rem; }
    .hero-panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px 28px 28px 28px;
      padding: 28px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .hero-panel h2 { margin: 0 0 8px; font-family: "Kalam", cursive; font-size: 1.65rem; }
    .hero-panel > p { color: var(--muted); margin: 0; }
    .hero-media {
      min-height: 440px;
      overflow: hidden;
      border-radius: 28px 28px 8px 28px;
      background: #fff;
      box-shadow: var(--shadow);
    }
    .hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
    .hero-copy.brand-copy { border-radius: 8px 28px 28px 28px; background: #102544; color: #fff; }
    .hero-copy.brand-copy::after { color: rgba(77, 163, 255, .12); }
    .hero-copy.brand-copy > p:not(.eyebrow) { color: #f3f8fd; }
    .hero-copy.brand-copy .eyebrow { color: #d9efff; }
    .formula { margin: 26px 0 6px; display: grid; gap: 12px; }
    .formula-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; }
    .formula-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-strong); }
    .formula-row strong { display: block; }
    .formula-row small { color: var(--muted); }
    .formula-row b { color: var(--brand-strong); font-size: 1.3rem; }
    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 42px; }
    .stat { padding: 21px 22px; background: var(--surface); border-top: 4px solid var(--brand); }
    .stat:nth-child(2) { border-top-color: var(--accent); }
    .stat:nth-child(3) { border-top-color: var(--ink); }
    .stat b { display: block; font-size: 1.8rem; letter-spacing: -.04em; }
    .stat span { color: var(--muted); font-size: .88rem; }
    .section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 20px; }
    .section-head h2, .page-head h1 { font-family: "Kalam", cursive; letter-spacing: -.02em; }
    .section-head h2 { font-size: 2.15rem; margin: 0; }
    .section-head p { margin: 0; color: var(--muted); max-width: 55ch; }
    .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .step { background: var(--surface); padding: 24px; border: 1px solid var(--line); min-height: 215px; }
    .step:first-child { border-radius: 24px 8px 8px 24px; }
    .step:last-child { border-radius: 8px 24px 24px 8px; }
    .step-num { font: 700 2.4rem/1 "Kalam", cursive; color: var(--accent); margin-bottom: 28px; }
    .step h3 { margin: 0 0 7px; }
    .step p { color: var(--muted); margin: 0; font-size: .92rem; }
    .page-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin: 8px 0 26px; }
    .page-head h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 8px; }
    .page-head p { margin: 0; color: var(--muted); max-width: 65ch; }
    .tag { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); padding: 7px 11px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
    .tag.orange { background: var(--accent-soft); color: #a20d61; }
    @media (prefers-color-scheme: dark) { .tag.orange { color: var(--accent); } }
    .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
    .layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 22px; align-items: start; }
    .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
    .card + .card { margin-top: 16px; }
    .card h2, .card h3 { margin-top: 0; }
    .card h2 { font-size: 1.25rem; margin-bottom: 18px; }
    .subtle { color: var(--muted); font-size: .9rem; }
    .field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
    .field.full { grid-column: 1 / -1; }
    label { font-size: .83rem; font-weight: 700; }
    input, textarea, select {
      width: 100%;
      min-width: 0;
      border: 1px solid var(--line);
      background: var(--bg);
      color: var(--ink);
      border-radius: 9px;
      padding: 12px 13px;
    }
    input, select { min-height: 46px; }
    textarea { min-height: 110px; resize: vertical; }
    .form-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
    .form-section h3 { font-size: 1rem; margin: 0 0 5px; }
    .form-section > p { margin: 0 0 15px; color: var(--muted); font-size: .88rem; }
    .note { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: .87rem; }
    .note strong { color: var(--ink); }
    .dignity-note { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; padding: 18px; background: var(--accent-soft); border-radius: 14px; }
    .dignity-note .bullet-check { flex-basis: 28px; width: 28px; height: 28px; background: var(--accent); color: #fff; }
    .dignity-note h2 { margin: 0 0 4px; font-size: 1.05rem; }
    .dignity-note p { margin: 0; color: var(--muted); font-size: .9rem; }
    .reset-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
    .reset-help p { margin: 0; }
    .temp-tag-step { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
    .temp-tag-step h2 { margin-bottom: 6px; }
    .temp-tag-step p { margin: 0 0 14px; color: var(--muted); }
    .valuation-guide { grid-column: 1 / -1; background: var(--brand-soft); border-radius: 14px; padding: 18px; }
    .valuation-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
    .valuation-guide-head h3 { margin: 0 0 3px; font-size: 1rem; }
    .valuation-guide-head p { margin: 0; color: var(--muted); font-size: .84rem; }
    .valuation-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .85fr); gap: 14px; align-items: end; }
    .guide-range { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 9px; background: var(--surface); padding: 10px 13px; }
    .guide-range span { color: var(--muted); font-size: .8rem; }
    .guide-range strong { color: var(--brand-strong); font-size: 1.15rem; }
    .value-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .value-picks button { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 8px 11px; font-size: .8rem; font-weight: 800; cursor: pointer; }
    .value-picks button:hover { border-color: var(--brand); color: var(--brand-strong); }
    .guide-footnote { display: block; margin-top: 11px; color: var(--muted); font-size: .78rem; }
    .checkline { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; }
    .checkline input { width: 19px; min-height: 19px; margin-top: 2px; accent-color: var(--brand); }
    .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
    .side-card { position: sticky; top: 92px; }
    .side-card ul { margin: 0; padding: 0; list-style: none; }
    .side-card li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
    .side-card li:last-child { border-bottom: 0; }
    .bullet-check { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 800; font-size: .76rem; }
    .result { display: none; margin-top: 20px; padding: 18px; background: var(--brand-soft); border-radius: 14px; }
    .result.show { display: block; }
    .result h3 { margin: 0 0 5px; }
    .account-code { font-size: 1.7rem; font-weight: 800; letter-spacing: .07em; color: var(--brand-strong); margin: 12px 0; }
    .mini-tabs { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 999px; gap: 4px; }
    .profile-card { background: var(--ink); color: var(--surface); border-radius: 22px 22px 7px 22px; padding: 26px; }
    .profile-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
    .profile-card h2 { margin: 0; font-family: "Kalam", cursive; }
    .profile-card .muted-light { opacity: .72; font-size: .86rem; }
    .balance { margin: 30px 0 8px; font-size: 4.2rem; letter-spacing: -.07em; line-height: .9; font-weight: 700; }
    .balance small { font-size: .95rem; letter-spacing: 0; opacity: .8; }
    .ledger { margin: 0; padding: 0; list-style: none; }
    .ledger li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
    .ledger li:last-child { border-bottom: 0; }
    .ledger-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; }
    .ledger strong { display: block; }
    .ledger small { color: var(--muted); }
    .ledger-date { display: block; margin-top: 3px; font-size: .77rem; color: var(--muted); font-weight: 700; }
    .amount { font-weight: 800; }
    .amount.plus { color: var(--brand-strong); }
    .amount.minus { color: var(--red); }
    .tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tool { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
    .tool h3 { margin: 0 0 6px; font-size: 1rem; }
    .tool p { margin: 0 0 16px; color: var(--muted); font-size: .86rem; }
    .counter { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
    .counter button { min-height: 42px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1.2rem; }
    .counter span { text-align: center; font-weight: 800; }
    .session-banner { display: flex; align-items: center; gap: 14px; padding: 17px; background: var(--brand-soft); border-radius: 14px; margin-bottom: 20px; }
    .session-banner.orange { background: var(--accent-soft); }
    .session-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); flex: 0 0 46px; }
    .session-banner.orange .session-mark { background: var(--accent); color: #fff; }
    .session-banner strong { display: block; }
    .session-banner small { color: var(--muted); }
    .station-panel[hidden] { display: none; }
    .workflow-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 18px 0 0; }
    .workflow-step { background: var(--surface-2); border-radius: 9px; padding: 10px 8px; text-align: center; font-size: .72rem; color: var(--muted); }
    .workflow-step strong { display: block; color: var(--ink); font-size: .78rem; margin-bottom: 2px; }
    .workflow-step.active { background: var(--brand-soft); color: var(--brand-strong); }
    .processing-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
    .processing-card h3 { margin: 0 0 4px; }
    .photo-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .photo-field { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); }
    .photo-field input { margin-top: 7px; padding: 8px; background: var(--surface); }
    .photo-preview { margin-top: 9px; aspect-ratio: 4 / 3; border-radius: 9px; background: var(--surface); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .8rem; text-align: center; }
    .photo-preview img { width: 100%; height: 100%; object-fit: cover; }
    .item-thumbs { display: flex; gap: 7px; margin-top: 8px; }
    .item-thumb { width: 54px; height: 44px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
    .item-condition { display: block; margin-top: 5px; color: var(--muted); }
    .member-impact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
    .member-impact-card { background: var(--surface-2); border-radius: 12px; padding: 16px; }
    .member-impact-card span { display: block; color: var(--muted); font-size: .8rem; }
    .member-impact-card strong { display: block; margin-top: 4px; font-size: 1.35rem; }
    .member-impact-card small { display: block; margin-top: 3px; color: var(--muted); }
    .receipt { display: none; margin-top: 18px; background: var(--surface-2); border-top: 4px solid var(--brand); border-radius: 12px; padding: 18px; }
    .receipt.show { display: block; }
    .receipt h3 { margin: 0 0 3px; }
    .receipt-meta { margin: 0 0 14px; color: var(--muted); font-size: .82rem; }
    .receipt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .receipt-line { background: var(--surface); border-radius: 9px; padding: 12px; }
    .receipt-line span { display: block; color: var(--muted); font-size: .78rem; }
    .receipt-line strong { display: block; margin-top: 2px; font-size: 1.08rem; }
    .processing-evidence { display: grid; grid-template-columns: repeat(2, 92px); gap: 8px; margin-top: 12px; }
    .processing-evidence img { width: 92px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
    .status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .process-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .label-preview { margin-top: 16px; padding: 16px; background: #fff; color: #111; border: 1px dashed #777; border-radius: 8px; text-align: center; }
    .label-preview strong { display: block; font-size: 1.1rem; letter-spacing: .08em; }
    .barcode-bars { height: 42px; max-width: 240px; margin: 8px auto 5px; background: repeating-linear-gradient(90deg,#111 0 2px,transparent 2px 4px,#111 4px 7px,transparent 7px 10px,#111 10px 11px,transparent 11px 14px); }
    .floor-note { margin-top: 16px; padding: 14px; background: var(--accent-soft); border-radius: 11px; font-size: .86rem; }
    .floor-note strong { display: block; margin-bottom: 3px; }
    .lookup { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
    .person-hit { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
    .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; flex: 0 0 44px; }
    .person-hit strong { display: block; }
    .person-hit small { color: var(--muted); }
    .person-hit .tag { margin-left: auto; }
    .scan-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }
    .scan-box .btn { min-width: 128px; }
    .item-list { margin-top: 18px; }
    .item-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .item-row strong { display: block; }
    .item-row small { color: var(--muted); }
    .item-row button { border: 0; background: transparent; color: var(--red); cursor: pointer; padding: 8px; }
    .session-total { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 18px; margin-top: 4px; }
    .session-total b { font-size: 1.35rem; }
    .report-controls { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 18px 20px; }
    .report-controls .field { width: min(290px, 100%); }
    .period-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
    .period-toggle button { border: 0; border-radius: 9px; background: transparent; color: var(--ink); padding: 9px 13px; font-weight: 800; cursor: pointer; }
    .period-toggle button[aria-selected="true"] { background: var(--brand); color: #fff; }
    .impact-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 28px; background: #102544; color: #f5faff; border-radius: 26px 26px 8px 26px; margin-bottom: 18px; }
    .impact-hero h2 { font-family: "Kalam", cursive; font-size: 2.15rem; margin: 0 0 5px; }
    .impact-hero p { margin: 0; color: #d6e4f2; }
    .impact-score { text-align: right; }
    .impact-score b { font-size: 3rem; line-height: .9; color: var(--accent); display: block; }
    .impact-score small { opacity: .76; }
    .impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .impact-card { background: var(--surface); border: 1px solid var(--line); padding: 22px; border-radius: 8px 20px 20px 20px; }
    .impact-card .metric { font-size: 2.2rem; font-weight: 800; letter-spacing: -.05em; margin: 18px 0 4px; }
    .impact-card h3 { margin: 0; font-size: .92rem; color: var(--muted); font-weight: 600; }
    .impact-card p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
    .bar-list { display: grid; gap: 14px; }
    .bar-row { display: grid; grid-template-columns: 130px 1fr 42px; gap: 12px; align-items: center; font-size: .88rem; }
    .bar-track { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
    .bar-fill { height: 100%; background: var(--brand); border-radius: inherit; }
    .story-section { margin-top: 18px; }
    .story-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 14px; }
    .story-feature { background: var(--brand-soft); border-radius: 22px 8px 22px 22px; padding: 28px; }
    .story-feature blockquote { margin: 14px 0 18px; font: 700 1.32rem/1.48 "Nunito Sans", sans-serif; max-width: 42ch; }
    .story-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; }
    .story-meta .dot { color: var(--brand-strong); }
    .thanks-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px 22px 22px 22px; padding: 24px; }
    .thanks-panel h3 { margin: 0 0 6px; }
    .thanks-panel > p { margin: 0 0 15px; }
    .thank-list { display: grid; gap: 0; }
    .thank-note { padding: 14px 0; border-top: 1px solid var(--line); }
    .thank-note p { margin: 0 0 6px; font-size: .9rem; }
    .thank-note small { color: var(--muted); }
    .queue { display: grid; gap: 12px; }
    .queue-item { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
    .queue-top { display: flex; justify-content: space-between; gap: 12px; }
    .queue-item h3 { margin: 0 0 3px; font-size: 1rem; }
    .queue-item p { color: var(--muted); font-size: .87rem; margin: 12px 0; }
    .queue-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .8rem; }
    .queue-actions { display: flex; gap: 8px; margin-top: 15px; }
    .queue-actions[hidden], .decision-settings[hidden] { display: none !important; }
    .decision-settings { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
    .decision-settings .field:last-child { grid-column: 1 / -1; }
    .decision-result { display: none; margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--brand-soft); }
    .decision-result.show { display: block; }
    .decision-result.declined { background: var(--red-soft); }
    .decision-result h4 { margin: 0 0 7px; }
    .decision-result p { margin: 6px 0; color: var(--ink); }
    .message-preview { margin-top: 12px; padding: 14px; background: var(--surface); border-radius: 10px; }
    .message-preview strong { display: block; margin-bottom: 5px; }
    .message-preview p { margin: 0; color: var(--muted); }
    .child-list { display: grid; gap: 12px; margin-top: 14px; }
    .child-entry { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface-2); }
    .child-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .child-entry-head strong { font-size: .92rem; }
    .child-entry-head button { border: 0; background: transparent; color: var(--red); font-weight: 800; cursor: pointer; padding: 6px; }
    .child-question { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
    .child-question p { margin: 0; color: var(--ink); font-weight: 700; }
    .eligibility-result { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-size: .86rem; color: var(--muted); }
    .eligibility-result.error { background: var(--red-soft); color: var(--red); }
    .faq-list { display: grid; gap: 8px; }
    .faq-list details { border-top: 1px solid var(--line); padding: 11px 0; }
    .faq-list details:first-child { border-top: 0; padding-top: 0; }
    .faq-list summary { cursor: pointer; font-weight: 800; }
    .faq-list p { color: var(--muted); font-size: .86rem; margin: 8px 0 0; }
    .risk-section { margin-top: 18px; }
    .risk-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
    .risk-account { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
    .risk-account + .risk-account { margin-top: 12px; }
    .risk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .risk-top h3 { margin: 0 0 3px; }
    .risk-signals { margin: 13px 0; padding: 0; list-style: none; }
    .risk-signals li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
    .risk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .risk-guidance { margin: 0; padding-left: 19px; }
    .risk-guidance li { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
    .risk-guidance strong { color: var(--ink); }
    .hold-preview { display: none; margin-top: 14px; padding: 14px; background: var(--red-soft); border-radius: 11px; }
    .hold-preview.show { display: block; }
    .hold-preview strong { display: block; margin-bottom: 5px; }
    .hold-preview p { margin: 0; color: var(--muted); font-size: .87rem; }
    .eligibility-warning { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: .86rem; font-weight: 700; }
    .status { font-weight: 700; font-size: .8rem; }
    .status.approved { color: var(--brand-strong); }
    .status.declined { color: var(--red); }
    .pool-box { text-align: center; }
    .pool-number { font-size: 4.8rem; font-weight: 800; letter-spacing: -.08em; line-height: 1; color: var(--brand-strong); }
    .pool-box p { color: var(--muted); }
    .winner { display: none; margin: 18px 0 0; background: var(--brand-soft); padding: 16px; border-radius: 12px; }
    .winner.show { display: block; }
    .system-map { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 16px; margin-top: 20px; }
    .system-node { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 20px; }
    .system-node.main { border: 2px solid var(--brand); }
    .system-node h3 { margin: 0 0 5px; }
    .system-node p { margin: 0; font-size: .86rem; color: var(--muted); }
    .arrow { text-align: center; font-size: 1.6rem; color: var(--brand-strong); }
    .toast {
      position: fixed;
      z-index: 50;
      right: 22px;
      bottom: 22px;
      max-width: min(360px, calc(100% - 36px));
      background: var(--ink);
      color: var(--surface);
      padding: 14px 17px;
      border-radius: 12px;
      box-shadow: var(--shadow);
      transform: translateY(140%);
      opacity: 0;
      transition: .24s ease;
      font-size: .9rem;
    }
    .toast.show { transform: translateY(0); opacity: 1; }
    .site-footer { border-top: 1px solid #b5d4eb; background: #e8f5fd; color: #102544; }
    .footer-inner { display: block; padding: 30px 0; }
    .footer-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
    .footer-identity img { width: 190px; height: 95px; object-fit: contain; background: transparent; }
    .footer-identity p { margin: 0; max-width: 38ch; color: #405a73; font-size: .86rem; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    @media (max-width: 900px) {
      .nav { display: grid; grid-template-columns: repeat(6, 1fr); }
      .nav-intro, .program-mark { display: none; }
      .nav button { padding: 9px 8px; }
      .hero, .layout { grid-template-columns: 1fr; }
      .hero-media { min-height: 390px; }
      .hero-copy { min-height: 340px; }
      .hero-panel { min-height: 310px; }
      .side-card { position: static; }
      .steps { grid-template-columns: repeat(2, 1fr); }
      .step:first-child, .step:last-child, .step { border-radius: 14px; }
      .impact-grid { grid-template-columns: 1fr 1fr; }
      .impact-card:last-child { grid-column: 1 / -1; }
      .story-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
      .wrap { width: min(100% - 24px, 1180px); }
      .prototype-bar .wrap { align-items: flex-start; }
      .prototype-bar span:last-child { display: none; }
      .nav { grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px 0; }
      .nav button { font-size: .76rem; padding: 8px 6px; }
      main { padding-top: 20px; }
      .hero { gap: 12px; }
      .hero-media { min-height: 330px; border-radius: 22px 22px 6px 22px; }
      .hero-copy { padding: 30px 24px; border-radius: 22px 22px 6px 22px; min-height: 390px; }
      .hero-copy.brand-copy { border-radius: 6px 22px 22px 22px; }
      .hero h1 { font-size: 2.55rem; }
      .hero-panel { padding: 22px; border-radius: 6px 22px 22px 22px; }
      .footer-identity { align-items: flex-start; flex-direction: column; }
      .photo-inputs, .valuation-guide-grid { grid-template-columns: 1fr; }
      .valuation-guide-head { flex-direction: column; }
      .stats, .steps, .field-grid, .tool-grid, .impact-grid, .member-impact, .receipt-grid { grid-template-columns: 1fr; }
      .impact-card:last-child { grid-column: auto; }
      .stats { gap: 8px; }
      .stat { display: grid; grid-template-columns: 80px 1fr; align-items: center; padding: 16px 18px; }
      .stat b { grid-row: 1; }
      .section-head, .page-head, .impact-hero { grid-template-columns: 1fr; align-items: start; }
      .report-controls { align-items: stretch; flex-direction: column; }
      .period-toggle { display: grid; grid-template-columns: 1fr 1fr; }
      .page-head { margin-top: 0; }
      .page-head .tag { justify-self: start; }
      .card { padding: 20px; }
      .form-actions .btn { width: 100%; }
      .lookup, .scan-box { grid-template-columns: 1fr; }
      .scan-box .btn { width: 100%; }
      .workflow-strip { grid-template-columns: 1fr 1fr; }
      .workflow-step:last-child { grid-column: 1 / -1; }
      .status-line { align-items: flex-start; flex-direction: column; }
      .process-actions .btn { width: 100%; }
      .person-hit { align-items: flex-start; }
      .person-hit .tag { margin-left: 0; }
      .item-row { grid-template-columns: 1fr auto; }
      .item-row > span { grid-column: 1; }
      .session-total { align-items: stretch; flex-direction: column; }
      .session-total .btn { width: 100%; }
      .impact-score { text-align: left; }
      .bar-row { grid-template-columns: 92px 1fr 34px; gap: 8px; }
      .queue-top { flex-direction: column; }
      .queue-actions { flex-wrap: wrap; }
      .decision-settings, .risk-grid { grid-template-columns: 1fr; }
      .decision-settings .field:last-child { grid-column: auto; }
      .child-question, .risk-top { align-items: flex-start; flex-direction: column; }
      .reset-help { align-items: flex-start; flex-direction: column; }
      .system-map { grid-template-columns: 1fr; }
      .arrow { transform: rotate(90deg); }
      .toast { right: 12px; bottom: 12px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; }
    }

/* --- KidCo production staging additions (Milestone 1) --- */
.lang-toggle { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.lang-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 6px 11px; font-weight: 800; font-size: .78rem; cursor: pointer; color: var(--ink); }
.lang-toggle button[aria-selected="true"] { background: var(--brand); color: #fff; }
.sync-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); padding: 7px 11px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sync-badge.offline { background: var(--red-soft); color: var(--red); }
.hold-notice { display: none; margin-top: 14px; padding: 14px; background: var(--red-soft); border-radius: 11px; }
.hold-notice.show { display: block; }
.hold-notice strong { display: block; margin-bottom: 5px; }
.hold-notice p { margin: 0; color: var(--muted); font-size: .87rem; }
.member-photo { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: 0 0 64px; }
.checkout-member { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.checkout-member small { color: var(--muted); display: block; }
.event-list { display: grid; gap: 10px; margin-top: 12px; }
.event-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.footer-motto { height: 95px; width: auto; max-width: 240px; object-fit: contain; background: transparent; }
.staging-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linklike { background: none; border: 0; color: var(--brand-strong); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
