/* teototo: the desk's theme. A ginger tabby on pale mint: calm surfaces (mint ground, cream cards), umber ink,
   ginger only for emphasis (primary actions, the P&L line, the active state). Profit and loss keep an
   unmistakable green and red, always with a +/− sign beside them. Loaded after styles.css and workspace.css, so
   it re-points their tokens; components keep reading the same variables. No web fonts are fetched: the font
   stacks below use what the system has. */
:root{
  --tt-mint:#d4eeea;--tt-mint-soft:#e7f6f2;--tt-ginger:#e39a3c;--tt-ginger-deep:#c97a22;--tt-sienna:#9c4e1a;
  --tt-cream:#f8e2b6;--tt-cream-soft:#fff6e3;--tt-sage:#c9d6b0;--tt-umber:#4a2a14;
  --font-display:ui-rounded,"SF Pro Rounded","Nunito","Varela Round","Quicksand","Arial Rounded MT Bold",system-ui,sans-serif;
  --font-ui:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --font-mono:ui-monospace,"SF Mono","JetBrains Mono","Cascadia Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --ink:#4a2a14;--muted:#7a5a43;--blue:#9c4e1a;--blue-soft:#fbe9c8;--paper:#dcf1ec;--line:#e3d6bf;--white:#fffaf0;
  --surface:#fffaf0;--surface-2:#f6efe0;--teal:#1b6e3a;--amber:#8a5a00;--red:#b3261e;
  --profit:#1b6e3a;--loss:#b3261e;--profit-soft:#e3f3e6;--loss-soft:#fbe6e3;
  --accent-strong:#e39a3c;--accent-strong-hover:#d4882a;--on-accent:#3b200d;--focus:#c97a22;
  --toast-bg:#4a2a14;--toast-text:#fff6e3;--toast-border:#4a2a14;--toast-error:#8f2a20;
  --pnl-line:#d9822b;--pnl-gross:#7a5a43;--cap-line:#b3261e;
  --series-1:#1f7fae;--series-2:#e0892f;--series-3:#8b5cc0;--series-4:#c49a00;--series-5:#d0577e;--series-6:#3f6fd8;
  --heat-neg:#b3261e;--heat-mid:#efe6d4;--heat-pos:#1b6e3a;
  --shadow:0 1px 0 #4a2a1410,0 6px 18px -10px #4a2a1440;
  font-family:var(--font-ui);color:var(--ink);background:var(--paper);
  /* styles.css tints, re-hued: cool blue-greys to mint and umber-grey */
  --c-be4c9cd:#e4c9cd;--c-bfffafa:#fffafa;--c-t9db0c1:#c1ac9d;--c-bffffffde:#ffffffde;--c-bd7e2ed:#dce8e2;--c-bfaf1e4:#faf1e4;--c-bf1dfc5:#f1dfc5;--c-beaf5f1:#eaf5f1;--c-bcde4dc:#cde4dc;--c-bfaedf0:#faedf0;--c-becd6db:#ecd6db;--c-beaf0f6:#eaf6f4;--c-bd8e3ed:#dce9e2;--c-bfbf4e9:#fbf4e9;--c-befdfc8:#efdfc8;--c-t855723:#855723;--c-bfafbfd:#fafdfc;--c-bd7e1eb:#dae8e1;--c-t4b647b:#7b5f4b;--c-t67829c:#9c7d67;--c-bc7d6e4:#ccdfd6;--c-bf5f8fc:#f6fbfa;--c-bd5e0ea:#d9e6e0;--c-bc6d3df:#c9dcd2;--c-be1e7ee:#e1eeeb;--c-bedf0f4:#edf4f3;--c-t94a8bb:#bba494;--c-bedf1f5:#edf5f3;--c-b6286a8:#6aa085;--c-bd7dfe8:#d9e6e0;--c-b7398b9:#7fad96;--c-b6f8fa9:#73a58c;--c-bfaf3e8:#faf3e8;--c-bf4f7fa:#f4faf9;--c-b142b432b:#22352c2b;--c-b833e48:#833e48;--c-b142b4333:#22352c33;--c-b152b4566:#23372d66;--c-t4f6276:#765f4f;--c-bfffaf1:#fffaf1;--c-bf6f8fb:#f6fbfa;--c-b8ba8c1:#92baa6;--c-t567086:#866a56;--c-t8493a3:#a79080;--c-bfff1f3:#fff1f3;--c-bedc9ce:#edc9ce;--c-bc9d9e7:#cfe1d8;--c-be5c8cd:#e5c8cd;--c-bfaedf055:#faedf055;--c-bfffafb:#fffafb;--c-bb8848c:#b8848c;--c-t813d47:#813d47;--c-bfdf3f3:#fdf3f3;--c-befd3d6:#efd3d6;--c-bfff7ec:#fff7ec;--c-bfdecee:#fdecee;--c-bae465033:#ae465033;--c-b9fb0c2:#9fc2b0;--c-t647589:#8c7361;--c-teef3f8:#f7f2ef;--c-bf0d9b8:#f0d9b8;--c-t8a5418:#8a5418;--c-beef4fb:#f0f9f7;--c-bb9c7d6:#bbd4c8;--c-bfafcfe:#fbfdfd;--c-beef7f5:#eef7f5;--c-bf2f7f5:#f2f7f5;--c-bcfe5df:#cfe5df;--c-bf3f8fc:#f4fbfa;--c-bfbfcfd:#fbfdfd;--c-beaf2fa:#ecf8f6;--c-bf7f9fb:#f7fbfa;--c-ba5642222:#a5642222;--c-b0b1a2a59:#15201a59;--c-bfff4e2:#fff4e2;--c-bf1e6cf:#f1e6cf;--c-be7c79a:#e7c79a;--c-bf7fafd:#f8fcfb;--c-beef1f5:#eef5f4;
}
:root[data-theme=dark]{
  --ink:#f3e6cc;--muted:#a8bdb6;--blue:#f0a954;--blue-soft:#2b3b2c;--paper:#0d1f22;--line:#24413f;--white:#132b2e;
  --surface:#132b2e;--surface-2:#183538;--teal:#5cc98a;--amber:#f2c14e;--red:#ff8f86;
  --profit:#5cc98a;--loss:#ff8f86;--profit-soft:#173a2a;--loss-soft:#3d2224;
  --accent-strong:#e39a3c;--accent-strong-hover:#f0a954;--on-accent:#2a1606;--focus:#f0a954;
  --toast-bg:#183538;--toast-text:#f3e6cc;--toast-border:#2c4d4b;--toast-error:#6e2a2a;
  --pnl-line:#f0a954;--pnl-gross:#a8bdb6;--cap-line:#ff8f86;
  --series-1:#3a95c6;--series-2:#d08430;--series-3:#9472cc;--series-4:#b39015;--series-5:#d6658c;--series-6:#5f80e0;
  --heat-neg:#ff8f86;--heat-mid:#1f3a3c;--heat-pos:#5cc98a;
  --shadow:0 1px 0 #00000030,0 8px 22px -12px #00000080;
  color-scheme:dark;
  /* styles.css tints, re-hued for the teal night */
  --c-be4c9cd:#4e383b;--c-bfffafa:#301212;--c-t9db0c1:#c1b59d;--c-bffffffde:#192425de;--c-bd7e2ed:#33484a;--c-bfaf1e4:#3f3321;--c-bf1dfc5:#55452d;--c-beaf5f1:#283732;--c-bcde4dc:#384c45;--c-bfaedf0:#362025;--c-becd6db:#4b3339;--c-beaf0f6:#273738;--c-bd8e3ed:#33484a;--c-bfbf4e9:#3b301f;--c-befdfc8:#53442f;--c-t855723:#deb88d;--c-bfafbfd:#1c2829;--c-bd7e1eb:#34494b;--c-t4b647b:#c2b59b;--c-t67829c:#b5a88d;--c-bc7d6e4:#374e50;--c-bf5f8fc:#1d2e2f;--c-bd5e0ea:#34494b;--c-bc6d3df:#384f51;--c-be1e7ee:#2e4042;--c-bedf0f4:#263537;--c-t94a8bb:#bbae94;--c-bedf1f5:#263536;--c-b6286a8:#89babe;--c-bd7dfe8:#34494b;--c-b7398b9:#9cc9cd;--c-b6f8fa9:#95bcc0;--c-bfaf3e8:#3b3121;--c-bf4f7fa:#202d2f;--c-b142b432b:#1c383b2b;--c-b833e48:#ad525f;--c-b142b4333:#1c383b33;--c-b152b4566:#1d3a3d66;--c-t4f6276:#bfb49f;--c-bfffaf1:#382b15;--c-bf6f8fb:#1f2b2c;--c-b8ba8c1:#a2c9cd;--c-t567086:#bcb097;--c-t8493a3:#a39984;--c-bfff1f3:#38151a;--c-bedc9ce:#523136;--c-bc9d9e7:#364d4f;--c-be5c8cd:#4f373b;--c-bfaedf055:#36202555;--c-bfffafb:#301218;--c-bb8848c:#cba4aa;--c-t813d47:#cd949d;--c-bfdf3f3:#331a1a;--c-befd3d6:#4e3033;--c-bfff7ec:#3c2c17;--c-bfdecee:#3a1b1e;--c-bae465033:#c46d7533;--c-b9fb0c2:#a8c5c8;--c-t647589:#b4ab98;--c-teef3f8:#f6f4f0;--c-bf0d9b8:#5a482e;--c-t8a5418:#dfb98f;--c-beef4fb:#1e3436;--c-bb9c7d6:#3c5557;--c-bfafcfe:#182a2c;--c-beef7f5:#253430;--c-bf2f7f5:#262f2b;--c-bcfe5df:#384c46;--c-bf3f8fc:#1c2f31;--c-bfbfcfd:#1c2728;--c-beaf2fa:#203739;--c-bf7f9fb:#1f2b2c;--c-ba5642222:#d4833022;--c-b0b1a2a59:#11222459;--c-bfff4e2:#43341a;--c-bf1e6cf:#51462e;--c-be7c79a:#635035;--c-bf7fafd:#1a2c2e;--c-beef1f5:#253436;
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
  --ink:#f3e6cc;--muted:#a8bdb6;--blue:#f0a954;--blue-soft:#2b3b2c;--paper:#0d1f22;--line:#24413f;--white:#132b2e;
  --surface:#132b2e;--surface-2:#183538;--teal:#5cc98a;--amber:#f2c14e;--red:#ff8f86;
  --profit:#5cc98a;--loss:#ff8f86;--profit-soft:#173a2a;--loss-soft:#3d2224;
  --accent-strong:#e39a3c;--accent-strong-hover:#f0a954;--on-accent:#2a1606;--focus:#f0a954;
  --toast-bg:#183538;--toast-text:#f3e6cc;--toast-border:#2c4d4b;--toast-error:#6e2a2a;
  --pnl-line:#f0a954;--pnl-gross:#a8bdb6;--cap-line:#ff8f86;
  --series-1:#3a95c6;--series-2:#d08430;--series-3:#9472cc;--series-4:#b39015;--series-5:#d6658c;--series-6:#5f80e0;
  --heat-neg:#ff8f86;--heat-mid:#1f3a3c;--heat-pos:#5cc98a;
  --shadow:0 1px 0 #00000030,0 8px 22px -12px #00000080;
  color-scheme:dark;
  /* styles.css tints, re-hued for the teal night */
  --c-be4c9cd:#4e383b;--c-bfffafa:#301212;--c-t9db0c1:#c1b59d;--c-bffffffde:#192425de;--c-bd7e2ed:#33484a;--c-bfaf1e4:#3f3321;--c-bf1dfc5:#55452d;--c-beaf5f1:#283732;--c-bcde4dc:#384c45;--c-bfaedf0:#362025;--c-becd6db:#4b3339;--c-beaf0f6:#273738;--c-bd8e3ed:#33484a;--c-bfbf4e9:#3b301f;--c-befdfc8:#53442f;--c-t855723:#deb88d;--c-bfafbfd:#1c2829;--c-bd7e1eb:#34494b;--c-t4b647b:#c2b59b;--c-t67829c:#b5a88d;--c-bc7d6e4:#374e50;--c-bf5f8fc:#1d2e2f;--c-bd5e0ea:#34494b;--c-bc6d3df:#384f51;--c-be1e7ee:#2e4042;--c-bedf0f4:#263537;--c-t94a8bb:#bbae94;--c-bedf1f5:#263536;--c-b6286a8:#89babe;--c-bd7dfe8:#34494b;--c-b7398b9:#9cc9cd;--c-b6f8fa9:#95bcc0;--c-bfaf3e8:#3b3121;--c-bf4f7fa:#202d2f;--c-b142b432b:#1c383b2b;--c-b833e48:#ad525f;--c-b142b4333:#1c383b33;--c-b152b4566:#1d3a3d66;--c-t4f6276:#bfb49f;--c-bfffaf1:#382b15;--c-bf6f8fb:#1f2b2c;--c-b8ba8c1:#a2c9cd;--c-t567086:#bcb097;--c-t8493a3:#a39984;--c-bfff1f3:#38151a;--c-bedc9ce:#523136;--c-bc9d9e7:#364d4f;--c-be5c8cd:#4f373b;--c-bfaedf055:#36202555;--c-bfffafb:#301218;--c-bb8848c:#cba4aa;--c-t813d47:#cd949d;--c-bfdf3f3:#331a1a;--c-befd3d6:#4e3033;--c-bfff7ec:#3c2c17;--c-bfdecee:#3a1b1e;--c-bae465033:#c46d7533;--c-b9fb0c2:#a8c5c8;--c-t647589:#b4ab98;--c-teef3f8:#f6f4f0;--c-bf0d9b8:#5a482e;--c-t8a5418:#dfb98f;--c-beef4fb:#1e3436;--c-bb9c7d6:#3c5557;--c-bfafcfe:#182a2c;--c-beef7f5:#253430;--c-bf2f7f5:#262f2b;--c-bcfe5df:#384c46;--c-bf3f8fc:#1c2f31;--c-bfbfcfd:#1c2728;--c-beaf2fa:#203739;--c-bf7f9fb:#1f2b2c;--c-ba5642222:#d4833022;--c-b0b1a2a59:#11222459;--c-bfff4e2:#43341a;--c-bf1e6cf:#51462e;--c-be7c79a:#635035;--c-bf7fafd:#1a2c2e;--c-beef1f5:#253436;
}}
:root[data-theme=dark] .loading,:root[data-theme=dark] .topbar{background:var(--paper)}

/* Type: a rounded display face for headings, a clean sans for the UI, tabular mono for figures. */
body{font-family:var(--font-ui);background:var(--paper);color:var(--ink)}
h1,h2,h3,.desk-page-heading h1,.mm-lab h3,.login h1{font-family:var(--font-display);letter-spacing:-.01em}
.desk-page-heading h1{font-weight:750}
.mm-lab td,.mm-lab .ml-num,.tt-num,.volume-history td,.farm-legs b,.farm-kpis b{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.mm-lab th,.mm-lab td small{font-family:var(--font-ui)}

/* Buttons: ginger primary with umber text (AA 6.4:1), focus ring in ginger. */
button.primary{color:var(--on-accent);font-weight:650}
.desk-content button:focus-visible,.desk-header button:focus-visible,.desk-content summary:focus-visible,.desk-content a:focus-visible,
.desk-content input:focus-visible,.desk-content select:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--focus)}
input[type=checkbox]{accent-color:var(--tt-ginger-deep)}
.desk-content .panel,.mm-lab{box-shadow:var(--shadow)}

/* Header: the mascot, the desk name and "teototo", and the cat's state vignette. */
.desk-header{background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:saturate(1.2) blur(6px)}
.desk-brand{gap:10px}
.tt-mascot{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;background:var(--tt-mint);border:2px solid var(--tt-ginger);box-shadow:0 0 0 2px var(--surface)}
.tt-names{display:flex;flex-direction:column;line-height:1.05}
.tt-names>span{font-weight:750}
.tt-wordmark{font-family:var(--font-display);font-weight:800;font-size:13px;letter-spacing:.02em;color:var(--blue);text-transform:lowercase}
.tt-cat{display:inline-flex;align-items:center;width:30px;height:24px;color:var(--muted);flex:none}
.tt-cat svg{width:30px;height:24px;overflow:visible}
.desk-nav button.active{background:var(--blue-soft);box-shadow:inset 0 -3px var(--tt-ginger);color:var(--ink)}
.desk-nav button:hover{background:var(--surface-2)}

/* The cat vignettes: line art only, never over numbers; still under reduced motion. */
.tt-vignette{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;vertical-align:middle}
.tt-vignette svg{width:34px;height:26px;overflow:visible;flex:none}
.tt-vignette .tt-ink{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tt-vignette .tt-fur{fill:var(--tt-ginger);fill-opacity:.28;stroke:var(--tt-ginger-deep);stroke-width:1.6;stroke-linejoin:round}
.tt-vignette[data-cat=watching]{color:var(--blue)}
.tt-vignette[data-cat=alert]{color:var(--amber)}
@keyframes tt-z{0%{opacity:0;transform:translate(0,0)}40%{opacity:1}100%{opacity:0;transform:translate(3px,-6px)}}
@keyframes tt-tail{0%,100%{transform:rotate(0)}50%{transform:rotate(-12deg)}}
@keyframes tt-ear{0%,92%,100%{transform:rotate(0)}96%{transform:rotate(-8deg)}}
.tt-vignette .tt-z{animation:tt-z 2.8s ease-in-out infinite;transform-box:fill-box}
.tt-vignette .tt-z+.tt-z{animation-delay:1.4s}
.tt-vignette .tt-tail{animation:tt-tail 3.2s ease-in-out infinite;transform-origin:4px 20px;transform-box:view-box}
.tt-vignette .tt-ears{animation:tt-ear 2.4s ease-in-out infinite;transform-origin:17px 9px;transform-box:view-box}
@media (prefers-reduced-motion:reduce){.tt-vignette *{animation:none!important}}

/* Profit and loss: colour plus a sign or arrow, never colour alone. */
.tt-pos,.mm-lab .pos{color:var(--profit)}
.tt-neg,.mm-lab .neg,.neg{color:var(--loss)}
.tt-pos::before{content:"▲ ";font-size:.75em}
.tt-neg::before{content:"▼ ";font-size:.75em}

/* The MM switch reads the accent tokens; LIVE keeps its red "real money" cue. */
.mm-switch button[aria-pressed="true"]{background:var(--accent-strong);color:var(--on-accent)}
.mm-switch button[data-mm-mode="live"][aria-pressed="true"]{background:#b3261e;color:#fff}

@media (max-width:720px){
  .tt-mascot{width:32px;height:32px}
  .tt-names>span{font-size:14px}
  .desk-brand small{display:none}
}
