/* TradeLedger design tokens — Glacier.
   Dark is the default; light theme applies via .lt on <html>.
   Both fade from blue at the top: dark into near-black navy, light into
   silver/white. The fade and marbling are drawn by .bgwrap (see app.css). */

:root {
  /* Glacier dark (default) */
  color-scheme: dark;
  --bg: #060a14;
  --panel: rgba(12, 21, 40, .8);
  --solid: #0c1528;            /* opaque surface for overlays (modal, toast, tour) */
  --border: #31456a;
  --border2: #1f2e4b;
  --text: #e8eef8;
  --dim: #aebcd4;
  --hdr: rgba(18, 31, 58, .88);
  --pos: #7fdca4;
  --neg: #ff9a8c;
  --amb: #e8c46a;
  --accent: #8fb8ff;
  --input: rgba(5, 10, 21, .86);
  --chipsel: #1b3260;
  --calout: rgba(0, 0, 0, .36);

  /* top bar sits on the blue end of the fade in both themes */
  --topbg: linear-gradient(180deg, #1f57b6, #17489c);
  --toptext: #ffffff;
  --topdim: #dbe6f7;
  --toppill: rgba(255, 255, 255, .1);
  --topline: rgba(255, 255, 255, .3);

  /* backdrop layers */
  --base: linear-gradient(180deg, #17489c 0, #143f8a 70px, #0c234d 210px, #08142c 430px, #060a14 100%);
  --fx: radial-gradient(circle at 88% 30%, rgba(160, 188, 230, .3) 0, transparent 30%),
        radial-gradient(circle at 6% 70%, rgba(52, 104, 200, .34) 0, transparent 32%),
        radial-gradient(circle at 60% 98%, rgba(196, 208, 226, .22) 0, transparent 38%);
  --veinf: url(#veinsW);
  --veino: .15;

  /* paper slips — same in both themes */
  --paper: #f6f0e1;
  --ink: #2b2723;
  --inkmut: #8c8272;
  --stamp: #1d7a3e;
  --slipshadow: 0 5px 14px rgba(0, 0, 0, .35);

  /* sector colors — same in both themes */
  --sec-energy: #d96f52;
  --sec-fixedincome: #3f9d6d;
  --sec-equities: #c9962f;
  --sec-fx: #5b84c9;
  --sec-livestock: #9a6cc0;
  --sec-metals: #8899a6;
  --sec-grains: #7d9a3f;
  --sec-softs: #c05a8e;

  /* radii */
  --r-panel: 10px;
  --r-chip: 5px;
  --r-input: 6px;

  /* fonts */
  --f-ui: 'Archivo', sans-serif;
  --f-mono: 'Spline Sans Mono', monospace;
  --f-serif: 'Newsreader', serif;
}

html.lt {
  /* Glacier light */
  color-scheme: light;
  --bg: #eef2f7;
  --panel: rgba(255, 255, 255, .86);
  --solid: #ffffff;
  --border: #b4c2d6;
  --border2: #d3dce8;
  --text: #10233f;
  --dim: #44566f;
  --hdr: rgba(228, 235, 244, .92);
  --pos: #17663f;
  --neg: #b3261e;
  --amb: #8a6410;
  --accent: #1c4fa3;
  --input: #ffffff;
  --chipsel: #dbe7f8;
  --calout: rgba(198, 210, 226, .55);

  --topbg: linear-gradient(180deg, #0f2f6b, #2458ad);
  --toppill: rgba(255, 255, 255, .16);
  --topline: rgba(255, 255, 255, .4);

  --base: linear-gradient(180deg, #2458ad 0, #2458ad 50px, #c3d2ea 86px, #dfe5ed 220px, #f6f7f9 560px, #e9edf3 100%);
  --fx: radial-gradient(circle at 90% 34%, rgba(43, 95, 181, .42) 0, transparent 30%),
        radial-gradient(circle at 6% 74%, rgba(28, 79, 163, .36) 0, transparent 32%),
        radial-gradient(circle at 62% 98%, rgba(120, 160, 215, .55) 0, transparent 38%);
  --veinf: url(#veinsB);
  --veino: .4;
}
