  /* DH Sovereign Technologies brand: black, white/silver and jade green */
  :root {
    color-scheme: dark;
    --ink: #0B0B0C;
    --panel: #121615;
    --line: #232B29;
    --line-soft: #1A2120;
    --fg: #EEF2F1;
    --silver: #D9DDDC;
    --jade: #1AA88A;
    --jade-hover: #15927A;
    --glow: #4FF5CF;
    --navy: #EEF2F1;            /* headings */
    --navy-700: #1B2422;        /* toast */
    --teal: #1AA88A;
    --teal-50: rgba(26, 168, 138, .12);
    --bg: #0B0B0C;
    --surface: #121615;
    --field: #0F1312;
    --border: #232B29;
    --text: #EEF2F1;
    --muted: #A3B0AC;
    --pos: #3DDBB4;
    --pos-bg: rgba(26, 168, 138, .16);
    --zero: #F2C14E;
    --zero-bg: rgba(242, 193, 78, .14);
    --neg: #FF7A6E;
    --neg-bg: rgba(255, 122, 110, .14);
    --income: #1AA88A;
    --expense: #D9DDDC;
    --savings: #4FF5CF;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    --display: "Playfair Display", Georgia, serif;
    --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --input-border: #2E3936;
    --th-bg: #0F1312;
    --err-text: #FFB3AB;
    --ok-text: #9FF0D9;
    --accent-text: #4FF5CF;
    --hover-lift: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(26, 168, 138, .35);
  }
  /* Light theme: used when the device is in light mode (default) or when chosen manually */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      color-scheme: light;
      --ink: #FFFFFF; --panel: #FFFFFF; --line: #DCE3E1; --line-soft: #EBF0EE;
      --fg: #0B0B0C; --silver: #4F5B58; --glow: #0F7A64;
      --navy: #0B0B0C; --navy-700: #0B0B0C;
      --teal-50: rgba(26, 168, 138, .10);
      --bg: #F5F7F6; --surface: #FFFFFF; --field: #FFFFFF; --border: #DCE3E1;
      --text: #0B0B0C; --muted: #4F5B58;
      --pos: #0F7A64; --pos-bg: rgba(26, 168, 138, .12);
      --zero: #8A5A00; --zero-bg: #FDF3DC;
      --neg: #B42318; --neg-bg: #FDECEB;
      --expense: #8D9996; --savings: #0F7A64;
      --shadow: 0 1px 2px rgba(16, 32, 28, .06), 0 4px 16px rgba(16, 32, 28, .06);
      --input-border: #B9C6C2; --th-bg: #F2F6F5;
      --err-text: #7A1A12; --ok-text: #0B5545; --accent-text: #0F7A64;
      --hover-lift: 0 10px 26px rgba(16, 32, 28, .12), 0 0 0 1px rgba(26, 168, 138, .45);
    }
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --ink: #FFFFFF; --panel: #FFFFFF; --line: #DCE3E1; --line-soft: #EBF0EE;
    --fg: #0B0B0C; --silver: #4F5B58; --glow: #0F7A64;
    --navy: #0B0B0C; --navy-700: #0B0B0C;
    --teal-50: rgba(26, 168, 138, .10);
    --bg: #F5F7F6; --surface: #FFFFFF; --field: #FFFFFF; --border: #DCE3E1;
    --text: #0B0B0C; --muted: #4F5B58;
    --pos: #0F7A64; --pos-bg: rgba(26, 168, 138, .12);
    --zero: #8A5A00; --zero-bg: #FDF3DC;
    --neg: #B42318; --neg-bg: #FDECEB;
    --expense: #8D9996; --savings: #0F7A64;
    --shadow: 0 1px 2px rgba(16, 32, 28, .06), 0 4px 16px rgba(16, 32, 28, .06);
    --input-border: #B9C6C2; --th-bg: #F2F6F5;
    --err-text: #7A1A12; --ok-text: #0B5545; --accent-text: #0F7A64;
    --hover-lift: 0 10px 26px rgba(16, 32, 28, .12), 0 0 0 1px rgba(26, 168, 138, .45);
  }
  :root[data-theme="dark"] { color-scheme: dark; }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--body);
    background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--teal); }
  h1, h2, h3 { line-height: 1.25; margin: 0; }
  h1, h2, legend, .modal-head h2 { font-family: var(--display); font-weight: 800; letter-spacing: .01em; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
  .narrow { max-width: 760px; }
  .hidden { display: none !important; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* Header */
  .topbar { background: var(--ink); color: var(--fg); border-bottom: 1px solid var(--line); }
  .topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .03em; color: var(--fg); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
  .brand .logo { height: 34px; width: auto; display: block; }
  .brand .tag { font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--muted); letter-spacing: 0; }
  .topnav { display: flex; gap: 4px; flex-wrap: wrap; }
  .topnav button, .topnav a {
    background: transparent; color: var(--muted); border: 0; padding: 8px 12px; border-radius: 8px;
    font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
  }
  .topnav button:hover, .topnav a:hover { background: rgba(255,255,255,.06); color: var(--fg); }
  .topnav button[aria-current="page"] { background: var(--teal-50); color: var(--accent-text); font-weight: 600; }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: 15px; border-radius: 10px; padding: 11px 18px;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; min-height: 44px;
  }
  .btn-primary { background: var(--jade); color: #0B0B0C; border-color: var(--jade); }
  .btn-primary:hover { background: var(--jade-hover); }
  .btn-secondary { background: transparent; color: var(--fg); border-color: var(--jade); }
  .btn-secondary:hover { background: var(--teal-50); }
  .btn-danger { background: transparent; color: var(--neg); border-color: var(--neg); }
  .btn-danger:hover { background: var(--neg-bg); }
  .btn-ghost { background: transparent; color: var(--muted); }
  .btn-sm { padding: 6px 12px; min-height: 34px; font-size: 14px; }
  .btn[disabled] { opacity: .6; cursor: not-allowed; }
  :focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

  /* Cards */
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
  .card + .card { margin-top: 16px; }
  .card h2 { font-size: 18px; color: var(--navy); }
  .card .sub { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }

  /* Landing */
  .hero { padding: 48px 0 24px; }
  .hero h1 { font-size: clamp(32px, 6vw, 52px); color: var(--fg); line-height: 1.08; }
  .eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--jade); display: block; margin-bottom: 14px; }
  .hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 12px 0 24px; }
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 28px 0 40px; }
  .feature { background: var(--surface); border-top: 2px solid var(--jade); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
  .feature h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
  .feature p { margin: 0; color: var(--muted); font-size: 14px; }
  .privacy-note { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-50); border-radius: 12px; padding: 14px 16px; color: var(--fg); font-size: 14px; border: 1px solid rgba(26,168,138,.35); }

  /* Form */
  .form-layout { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px 0 48px; }
  @media (min-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .summary-panel { position: sticky; top: 16px; } }
  fieldset { border: 0; padding: 0; margin: 0; }
  legend { font-size: 18px; font-weight: 700; color: var(--navy); padding: 0; }
  .section-desc { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
  .grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px 16px; }
  @media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
  .field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
  .req { color: var(--neg); margin-left: 2px; }
  .help { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
  input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="search"], select, textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--field);
    border: 1px solid var(--input-border); border-radius: 10px; padding: 10px 12px; min-height: 44px;
  }
  textarea { min-height: 96px; resize: vertical; }
  input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(26,168,138,.25); }
  .money { position: relative; }
  .money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
  .money input { padding-left: 26px; }
  .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--neg); }
  .error-text { color: var(--neg); font-size: 13px; margin-top: 4px; font-weight: 500; }
  .month-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
  .form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
  .legend-note { font-size: 13px; color: var(--muted); }

  /* Summary panel */
  .sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .sum-row:last-of-type { border-bottom: 0; }
  .sum-row strong { font-variant-numeric: tabular-nums; }
  .balance-box { margin-top: 12px; border-radius: 12px; padding: 14px; }
  .balance-box .label { font-size: 13px; font-weight: 600; }
  .balance-box .value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

  /* State colors */
  .state-pos { background: var(--pos-bg); color: var(--pos); }
  .state-zero { background: var(--zero-bg); color: var(--zero); }
  .state-neg { background: var(--neg-bg); color: var(--neg); }
  .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
  .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .badge-muted { background: var(--line-soft); color: var(--muted); }
  .badge-muted::before { display: none; }
  .badge-warn { background: var(--zero-bg); color: var(--zero); }
  .badge-crit { background: var(--neg-bg); color: var(--neg); }

  /* Alerts */
  .alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 16px; border: 1px solid; }
  .alert-error { background: var(--neg-bg); color: var(--err-text); border-color: rgba(255,122,110,.4); }
  .alert-success { background: var(--pos-bg); color: var(--ok-text); border-color: rgba(26,168,138,.45); }
  .alert-info { background: var(--teal-50); color: var(--fg); border-color: rgba(26,168,138,.35); }

  /* Modal */
  .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; z-index: 50; }
  .modal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
  .modal.wide { max-width: 860px; }
  .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
  .modal-head h2 { font-size: 18px; color: var(--navy); }
  .modal-body { padding: 20px; }
  .modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--border); }
  .icon-btn { background: transparent; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
  .icon-btn:hover { background: var(--line-soft); }

  /* Toast */
  .toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy-700); color: #EEF2F1; border: 1px solid var(--jade); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 60; max-width: calc(100% - 32px); font-size: 15px; }
  .toast.error { border-color: var(--neg); color: var(--err-text); }

  /* Dashboard */
  .page { padding: 24px 0 48px; }
  .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .page-head h1 { font-size: 24px; color: var(--navy); }
  .page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
  .filters { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
  @media (min-width: 760px) { .filters { grid-template-columns: 2fr 1.2fr 1.2fr auto; } }
  .check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; min-height: 44px; }
  .check input { width: 18px; height: 18px; accent-color: var(--teal); }
  .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
  @media (min-width: 900px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
  .kpi { background: var(--surface); border-top: 2px solid var(--jade); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
  .kpi .k-label { font-size: 13px; color: var(--muted); font-weight: 600; }
  .kpi .k-value { font-size: clamp(18px, 3vw, 24px); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
  .kpi .k-sub { font-size: 12px; color: var(--muted); }
  .grid-charts { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 900px) { .grid-charts { grid-template-columns: 1fr 1fr; } }

  .chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
  .chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
  .trend-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
  .trend-row[style] { background: var(--teal-50) !important; }
  .trend-row:last-child { border-bottom: 0; }
  .trend-month { font-size: 13px; font-weight: 600; color: var(--muted); }
  .bars { display: grid; gap: 3px; }
  .bar-line { display: grid; grid-template-columns: 1fr 92px; gap: 8px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
  .bar-track { background: var(--line-soft); height: 10px; border-radius: 5px; overflow: hidden; }
  .bar-fill { height: 100%; border-radius: 5px; }
  .fill-income { background: var(--income); }
  .fill-expense { background: var(--expense); }
  .fill-savings { background: var(--savings); }
  .bar-val { text-align: right; color: var(--text); }
  .cat-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 120px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
  .cat-row .bar-track { height: 12px; }
  .cat-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
  .cat-val small { color: var(--muted); }

  .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
  table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--th-bg); font-family: var(--mono); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
  table.data th button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; text-transform: inherit; letter-spacing: inherit; }
  table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
  table.data tr:last-child td { border-bottom: 0; }
  table.data tbody tr.clickable { cursor: pointer; }
  table.data tbody tr.clickable:hover { background: var(--teal-50); }
  .num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .empty { text-align: center; color: var(--muted); padding: 32px 16px; }
  .toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 700px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
  .detail-block h3 { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; color: var(--jade) !important; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
  .kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
  .kv span:first-child { color: var(--muted); }
  .kv span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
  .note-box { background: var(--field); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; }
  .flags { display: flex; gap: 6px; flex-wrap: wrap; }
  .loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 16px; color: var(--muted); }
  .spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
  footer.site { color: var(--muted); font-size: 13px; padding: 28px 16px 36px; text-align: center; border-top: 1px solid var(--line); margin-top: 24px; }
  .powered { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); text-decoration: none; }
  .powered img { height: 26px; width: auto; }
  .powered strong { color: var(--fg); font-family: var(--display); font-weight: 800; letter-spacing: .04em; }

  /* Auth screens */
  .auth-wrap { max-width: 440px; margin: 48px auto; padding: 0 16px; }
  .auth-wrap .card h1 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
  .stack { display: grid; gap: 14px; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .admin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
  .admin-row:last-child { border-bottom: 0; }
  .muted { color: var(--muted); font-size: 13px; }
  .auth-wrap .logo-lg { display: block; height: 64px; width: auto; margin: 0 auto 18px; }
  @media (max-width: 520px) { .brand .tag { display: none; } }

  /* ---------- Interactive layer ---------- */
  body, .card, .kpi, .feature, .topbar, input, select, textarea, .btn { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .15s ease; }
  .btn:active:not([disabled]) { transform: scale(.97); }
  .btn-primary:hover:not([disabled]) { box-shadow: 0 6px 18px rgba(26, 168, 138, .35); }
  .feature, .kpi, .grid-charts .card { will-change: transform; }
  .feature:hover, .kpi:hover, .grid-charts .card:hover { transform: translateY(-3px); box-shadow: var(--hover-lift); }
  .kpi.is-link { cursor: pointer; }
  .kpi.is-link .k-sub::after { content: " · view →"; color: var(--accent-text); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
  .hero > *, .feature, .kpi, .page-head, .grid-charts .card, .form-layout .card, #view-success .card { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .features .feature:nth-child(2), .kpis .kpi:nth-child(2) { animation-delay: .06s; }
  .features .feature:nth-child(3), .kpis .kpi:nth-child(3) { animation-delay: .12s; }
  .features .feature:nth-child(4), .kpis .kpi:nth-child(4) { animation-delay: .18s; }
  .kpis .kpi:nth-child(5) { animation-delay: .24s; }
  .hero > :nth-child(2) { animation-delay: .05s; } .hero > :nth-child(3) { animation-delay: .1s; } .hero > :nth-child(4) { animation-delay: .15s; }
  .bar-fill { transform-origin: left center; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; }
  .balance-box.bump { animation: pop .35s ease; }
  .modal { animation: rise .25s ease both; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--jade); }
  .money input:not(:placeholder-shown) { border-color: rgba(26, 168, 138, .55); }

  /* Theme switch */
  .theme-switch { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; }
  .theme-switch:hover { color: var(--fg); border-color: var(--jade); }
  .theme-switch svg { width: 16px; height: 16px; }
  .top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

  /* Form progress + allocation */
  legend .check-done { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 10px; border-radius: 50%; background: var(--jade); color: #0B0B0C; font: 700 13px/1 var(--body); vertical-align: middle; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
  fieldset.done legend .check-done { transform: scale(1); }
  .progress-wrap { margin: 4px 0 14px; }
  .progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
  .progress-track { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
  .progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--jade), var(--glow)); border-radius: 99px; transition: width .4s ease; }
  .alloc { margin-top: 14px; }
  .alloc-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line-soft); }
  .alloc-bar span { height: 100%; transition: width .45s cubic-bezier(.2,.7,.2,1); width: 0; }
  .alloc-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
  .alloc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
  .zero-fill { font-size: 13px; }
  .mini-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--hover-lift); cursor: pointer; font-size: 14px; }
  .mini-bar strong { font-size: 18px; font-variant-numeric: tabular-nums; }
  @media (max-width: 899px) { body.form-active .mini-bar { display: flex; } body.form-active footer.site { padding-bottom: 90px; } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
