/* Existing Trade Bondhu v10.0.24 palette, unchanged. */
:root{
    --bg:#0b0d13;
    --surface:#12151d;
    --surface-2:#1a1f2c;
    --surface-3:#232a3a;
    --border:#262c3c;
    --text:#f3f5f9;
    --text-dim:#8891a5;
    --text-faint:#858da0;
    --teal:#34d399;
    --teal-strong:#10b981;
    --teal-dim:rgba(52,211,153,.14);
    --red:#f87171;
    --red-dim:rgba(248,113,113,.14);
    --amber:#fbbf24;
    --amber-dim:rgba(251,191,36,.14);
    --neutral:#5c6579;
    --neutral-dim:rgba(92,101,121,.18);
    --topbar-bg:rgba(11,13,19,.94);
    --bottomnav-bg:rgba(18,21,29,.96);
    --radius:14px;
    --radius-sm:9px;
    --sidebar-w:236px;
  }
  html[data-theme="dark"]{color-scheme:dark;}
  html[data-theme="light"]{
    color-scheme:light;
    --bg:#f5f7fb;
    --surface:#ffffff;
    --surface-2:#f0f3f8;
    --surface-3:#e4e9f1;
    --border:#d3dbe7;
    --text:#172033;
    --text-dim:#566174;
    --text-faint:#626d80;
    --teal:#087f5b;
    --teal-strong:#066b4d;
    --teal-dim:rgba(8,127,91,.11);
    --red:#c92a2a;
    --red-dim:rgba(201,42,42,.10);
    --amber:#946200;
    --amber-dim:rgba(148,98,0,.11);
    --neutral:#758096;
    --neutral-dim:rgba(117,128,150,.14);
    --topbar-bg:rgba(245,247,251,.94);
    --bottomnav-bg:rgba(255,255,255,.96);
  }
  *{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
  html,body{margin:0; padding:0; background:var(--bg); color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    font-size:15px; line-height:1.45;}
  .num{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Roboto Mono",monospace; font-variant-numeric:tabular-nums;}
  ::-webkit-scrollbar{height:7px; width:7px;}
  ::-webkit-scrollbar-thumb{background:var(--surface-3); border-radius:4px;}
  button,select,input,textarea{font-family:inherit;}
  a{color:inherit;}


/* Restored from final v10.0.24 UI polish tokens, after base theme. */
:root{
  --bg:#10131b;
  --surface:#181d28;
  --surface-2:#202736;
  --surface-3:#2c3547;
  --border:#343e50;
  --text:#f3f5fa;
  --text-dim:#b3bdcf;
  --text-faint:#a4b0c3;
  --teal:#6bdbb2;
  --teal-strong:#6bdbb2;
  --teal-dim:#203d37;
  --red:#ff949c;
  --red-dim:#422b36;
  --amber:#f2cc7a;
  --amber-dim:#3c3324;
  --neutral:#aab3c4;
  --neutral-dim:#2a3344;
  --ui-gold:#e7c477;
  --ui-gold-ink:#261d0b;
  --ui-gold-soft:#342d21;
  --ui-gold-text:#f0d294;
  --ui-focus:#f0d294;
  --ui-control-border:#78869e;
  --ui-lilac-soft:#292638;
  --topbar-bg:#181d28;
  --bottomnav-bg:#181d28;
  --ui-shadow:0 6px 22px rgba(0,0,0,.14);--radius:18px;--radius-sm:11px;
}
html[data-theme="light"]{
  --bg:#f4f6fa;
  --surface:#ffffff;
  --surface-2:#f0f3f8;
  --surface-3:#e4e9f2;
  --border:#d7dde8;
  --text:#172235;
  --text-dim:#46556d;
  --text-faint:#5a6980;
  --teal:#176448;
  --teal-strong:#176448;
  --teal-dim:#e3f2eb;
  --red:#aa2940;
  --red-dim:#fbe8ec;
  --amber:#785100;
  --amber-dim:#faf0d9;
  --neutral:#52627a;
  --neutral-dim:#e8edf4;
  --ui-gold:#e7c477;
  --ui-gold-ink:#261d0b;
  --ui-gold-soft:#f7ecd3;
  --ui-gold-text:#745016;
  --ui-focus:#805b19;
  --ui-control-border:#758297;
  --ui-lilac-soft:#eeecf7;
  --topbar-bg:#ffffff;
  --bottomnav-bg:#ffffff;
  --ui-shadow:0 4px 18px rgba(25,34,51,.04);
}
