/* Solea v5 · the tokens and the global primitives (v5 (13 Oct), approved: "everything that has the old purple should be
   restyled into the new vibe" · "go for this vibe" = the Alerts and Reports desk windows). Linked after office.css and
   before chat.css, pages.css and charts.css, so every page (full screen or in the office's drawer) takes the office's
   colours: warm white cards with 1px hairlines on a warm grey floor by day, graphite at night; graphite for what is
   chosen or primary (a light pill with dark ink at night); green and red only for money; amber for "for you"; each
   agent's own colour only on its marks. No lavender, periwinkle or violet, no "AI" gradients, no navy.
   Kept on purpose: the chart's pattern violet (--pat: Lazar's role colours for Nova's drawings, support green,
   resistance red, patterns violet) and Nova's indigo #5562F0 as Nova's small mark only (--k-nova).
   Every text colour here is WCAG AA on the surfaces it sits on, light and dark (4.5:1 text, 3:1 field borders,
   selected states and focus rings); the numbers are in the comments. */

/* ---- the tokens, by day (the office's #office values are the source: office.css) ---- */
:root {
  --bg: #F0EEEA;            /* the floor under the cards (the office's hover/floor tone) */
  --panel: #FFFFFF;         /* a card */
  --panel2: #F6F5F2;        /* the soft surface on a card: a list column, a chip, your message (the office's --of-soft) */
  --ink: #1C1D21;           /* graphite: 16.8:1 on white */
  --muted: #686B72;         /* 5.3:1 on white, 4.9 on --panel2, 4.6 on --bg */
  --line: #E4E1DB;          /* the hairline */
  --line2: #CFCBC4;         /* a stronger hairline */
  --line3: #ADAAA4;         /* a pointed-at outline: 1.8:1 against the hairline it replaces, so a hover shows */
  --field-line: #85888E;    /* a field's border: 3.6:1 on white, 3.3 on --panel2, 3.1 on --bg */
  --accent: #1C1D21; --accent-ink: #FFFFFF;                  /* chosen / primary: graphite, white ink 16.8:1 */
  --accent-hover: #3A3C42;                                   /* white on it 11:1 */
  --accent-soft: rgba(28, 29, 33, .06);                      /* a neutral wash; graphite on it 14.9:1 */
  --focus: #1C1D21;                                          /* the keyboard ring: 14.5:1 on --bg */
  --user: #F6F5F2; --user-ink: #1C1D21;                      /* your message: the desk windows' light grey pill, 15.4:1 */
  --good: #127650; --bad: #B83543; --up: #127650; --down: #B83543;   /* money (the office's green and red a shade deeper):
                                         5.6 / 5.8:1 on white, 4.9 / 5.0 on --bg and on their 10% tint
                                         mixed into the card (pills) */
  --up-soft: rgba(18, 118, 80, .22); --down-soft: rgba(184, 53, 67, .22);
  --warn-bg: #FFF7ED; --warn-ink: #9A3412; --warn-line: #FED7AA;          /* amber "for you": 6.9:1 */
  --code: #F6F5F2;
  --shadow: 0 1px 2px rgba(28, 29, 33, .04), 0 6px 18px rgba(28, 29, 33, .06);
  --hover: rgba(28, 29, 33, .045);
  --series-1: #5A5F6B;      /* the backtest's trades on a chart: slate (was periwinkle) */
  --series-2: #E3A93B;      /* the paper bot's: amber */
  --ov-1: #14A37F; --ov-2: #D98E04; --ov-3: #D9468C; --ov-4: #4D9B1A;
  --mark: #4A4C52;          /* an agent's note on a chart: graphite, 8.6:1 */
  --ai: #1C1D21;            /* what was the "AI" gradient: one flat graphite (send, AI buttons, bars) */
  --ai-soft: #F6F5F2;       /* ... and its wash: the soft surface */
  --ai-line: #E4E1DB;       /* ... and its border: the hairline */
  /* each agent's own colour (the desk light, the arm band, the name tag on the floor: office3d.js / office.js) for dots,
     bars and lines; its text twin (-ink: mixed toward the graphite like the floor's tags) wherever it colours words */
  --k-agent: #3E9FE0; --k-research: #E8894A; --k-news: #D45FA8; --k-voice: #D9468C; --k-journal: #E07A3A;
  --k-alerts: #D9465B; --k-reports: #C9A24A; --k-nova: #5562F0;
  --k-agent-ink: #306890;    /* 6.0:1 on white, 5.2 on --bg, 5.1 on its 16% tint */
  --k-research-ink: #925C39; /* 5.5, 4.8, 4.8 */
  --k-news-ink: #87436F;     /* 6.9, 5.9, 5.7 */
  --k-voice-ink: #8A355F;    /* 7.6, 6.6, 6.2 */
  --k-journal-ink: #8E5330;  /* 6.1, 5.3, 5.2 */
  --k-alerts-ink: #8A3543;   /* 7.9, 6.8, 6.3 */
  --k-reports-ink: #7B6638;  /* 5.5, 4.8, 4.9 */
  --k-nova-ink: #4A56E2;     /* Nova's indigo a shade deeper for words on any surface: 5.6, 4.9 (soft), 4.9 (floor). On the white
                                card the approved #5562F0 itself reads 4.8:1 (chat.css's Nova label), on the soft grey 4.4 */
  --pat: #8B6CF0;            /* kept (Lazar's choice): a chart pattern Nova drew is violet */
  --radius: 14px;
  color-scheme: light;
}

/* ---- by night: the office's graphite (no more navy) ---- */
html.dark {
  --bg: #17181B; --panel: #1D1E22; --panel2: #232428;
  --ink: #ECEDEF;           /* 14.2:1 on --panel, 15.2 on --bg */
  --muted: #A4A7AE;         /* 6.9 on --panel, 6.4 on --panel2, 7.4 on --bg, 5.9 on #2A2B30 */
  --line: #303237; --line2: #47494F; --line3: #5E6066;   /* --line3: 2.0:1 against the hairline */
  --field-line: #76797F;    /* 3.8 on --panel, 3.6 on --panel2, 4.1 on --bg */
  --accent: #ECEDEF; --accent-ink: #1D1E22;                  /* a light pill with dark ink: 14.2:1 */
  --accent-hover: #D4D6DA;                                   /* dark ink on it 11.4:1 */
  --accent-soft: rgba(236, 237, 239, .08);                   /* ink on it 11.4:1 */
  --focus: #ECEDEF;                                          /* 15.2:1 on --bg, 13.2 on --panel2 */
  --user: #2A2B30; --user-ink: #ECEDEF;
  --good: #43C08A; --bad: #EF7B88; --up: #43C08A; --down: #EF7B88;   /* 7.3 / 6.2:1 on --panel, 6.1 / 5.4 on their 10% tint (pills) */
  --up-soft: rgba(67, 192, 138, .25); --down-soft: rgba(239, 123, 136, .25);
  --warn-bg: #2A1E10; --warn-ink: #FDBA74; --warn-line: #5A3A16;          /* 9.6:1 */
  --code: #17181B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .32);
  --hover: rgba(255, 255, 255, .05);
  --series-1: #A4A7AE; --series-2: #F5C77E;
  --ov-1: #2DD4BF; --ov-2: #F5C77E; --ov-3: #F472B6; --ov-4: #A3E635;
  --mark: #C9CBD0;
  --ai: #ECEDEF; --ai-soft: #232428; --ai-line: #303237;
  /* the same colours as by day (office.css's night block had paler ones, the violet research among them) */
  --k-agent: #3E9FE0; --k-research: #E8894A; --k-news: #D45FA8; --k-voice: #D9468C; --k-journal: #E07A3A;
  --k-alerts: #D9465B; --k-reports: #C9A24A; --k-nova: #5562F0;   /* Nova's dot on --panel 3.5:1 (a mark: 3:1) */
  --k-agent-ink: #80BDE6;    /* 8.2:1 on --panel, 6.4 on its 16% tint */
  --k-research-ink: #EAAF89; /* 8.7, 6.7 */
  --k-news-ink: #DD95C3;     /* 7.3, 6.0 */
  --k-voice-ink: #E085B2;    /* 6.5, 5.5 */
  --k-journal-ink: #E5A67F;  /* 8.0, 6.3 */
  --k-alerts-ink: #E08593;   /* 6.3, 5.4 */
  --k-reports-ink: #D6BE89;  /* 9.2, 6.9 */
  --k-nova-ink: #ECEDEF;     /* Nova's words in ink at night (indigo is 3.5:1 there, a lighter one is the old periwinkle):
                                its indigo stays on its dot and its visor line */
  --pat: #B9A6FF;            /* kept (Lazar's choice): patterns violet */
  color-scheme: dark;
}

/* ---- the page itself ---- */
body { background: var(--bg); color: var(--ink); }
::selection { background: rgba(28, 29, 33, .16); }           /* as office.css: ink on it 12.2:1 */
html.dark ::selection { background: rgba(236, 237, 239, .24); }  /* ink on it 6.9:1 */
/* scrollbars: still hidden until you point at what scrolls, then a thin graphite thumb */
*:hover { scrollbar-color: rgba(28, 29, 33, .24) transparent; }
html.dark *:hover { scrollbar-color: rgba(236, 237, 239, .24) transparent; }
/* the keyboard ring: graphite (light at night), 2 px, on anything that takes focus and has no ring of its own */
:where(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- links: ink, told apart by a soft underline that darkens on hover (no colour) ---- */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
.linkish { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 2px; }
.linkish:hover:not(:disabled) { text-decoration-color: currentColor; }
.side .switch:hover, .agentbar .crumb:hover, .ticker a:hover, .news .t2:hover { color: var(--ink); }
.hcard .hlink, .atile .open, .btile .open, .rs-open, .bp-tile.more, .nb-topic { color: var(--ink); }

/* ---- buttons: white with a hairline (graphite and white ink when primary), 8 px corners like the desk windows (the
   office's own buttons keep their own look: :where(:not(#office *)) adds no weight) ---- */
button:where(:not(#office *)) { border-radius: 8px; border-color: var(--line); background: var(--panel); color: var(--ink); }
button:where(:not(#office *)):hover:not(:disabled) { border-color: var(--line3); color: var(--ink); }
button:disabled { opacity: .5; cursor: default; }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--line); background: transparent; }
button.primary, #asend, #send, button.ai, a.btn, .chat-tab {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); filter: none; }
button.primary:hover:not(:disabled), #asend:hover:not(:disabled), #send:hover:not(:disabled), button.ai:hover:not(:disabled),
a.btn:hover, .chat-tab:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); filter: none; }
button.primary:active:not(:disabled), #asend:active:not(:disabled), #send:active:not(:disabled), button.ai:active:not(:disabled),
a.btn:active { transform: translateY(1px); }                 /* pressed */
button.primary, #asend, #send, button.ai { border-radius: 8px; font-weight: 600; }
a.btn { border: 1px solid var(--accent); border-radius: 8px; text-decoration: none; font-weight: 600; }
.chat-tab { border: 0; border-radius: 0 8px 8px 0; }
button.ai-soft { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
button.ai-soft:hover:not(:disabled) { border-color: var(--line3); }
.smark { background: var(--accent); color: var(--accent-ink); border-radius: 4px; }   /* the small "S" before an agent's words */
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button.danger:hover:not(:disabled) { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
/* ---- filled buttons keep their own words on hover (27 Oct 2026, Lazar: "the dark buttons that lose their words, fix them").
   The hover ink above (and index.html's button:hover, chat.css's buttons in a message) is stronger than these buttons' own
   word colour, so under the mouse their words took the colour of their own fill: "Connect an exchange" and its sheet's
   buttons, "Add a source", the chart tour's Next, "Open chat ›", a chat's schedule card ("Schedule it", "Start", its
   chosen days), real trading's go buttons, "Trade with real money", a setup's tag on the chart, the old dashboard's ↑ and
   the ticker page's ask button; red danger buttons turned graphite. Each keeps its colour at rest (the phone's own block,
   ph_shell.css "a tap's hover", is the same for six of them). The office's buttons keep their #office rules. */
.ex-pri:hover:not(:disabled), .ex-botbtn:hover:not(:disabled),
.lv-btn:not(.ghost):not(.danger):hover:not(:disabled) { color: var(--panel); }
.ctour-btn.pri:hover:not(:disabled), .so-pri:hover:not(:disabled), .chat-tab:hover:not(:disabled),
.cx-stag:not(.chg):not(.off):hover, .askbar button:hover:not(:disabled),
.tbar button.primary:hover:not(:disabled) { color: var(--accent-ink); }
.m-card.sc-card .sc-acts button.sc-pri:hover:not(:disabled),
.m-card.sc-card .sc-days button.on:hover:not(:disabled) { color: var(--ch-card); }
.na-chip.on .x:hover, .na-chip.on .x:focus-visible { color: inherit; opacity: 1; }
button.danger:hover:not(:disabled) { color: var(--bad); }
.lv-btn.danger:hover:not(:disabled) { color: var(--down); }
/* (28 Oct 2026, v7 precheck) "Increase my limits" (index.html rulesFix, filled; its toast, a strategy's warning, a template, the
   scripts sheet): its class twice, (0,4,0), beats the hover ink (0,2,1) but not a chat message's own button look (0,5,1), so
   inside a message, where it shows as the chat's light button, its hover keeps that one's dark words */
.rl-fix.rl-fix:hover:not(:disabled) { color: var(--accent-ink); }
/* (28 Oct 2026, v7 re-check) in the market's "This agent can't be shared" popover (index.html mktWhy, on the page's body),
   office.css's ".shx .sh-acts button" (0,2,1) gave it the popover's light outlined look, so the rule above turned its hovered
   words white on white (dark on dark in dark mode): there it is the popover's own filled button (as its .pri), words kept */
.shx .sh-acts .rl-fix, .shx .sh-acts .rl-fix:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--of-card); }
.plus { color: var(--ink); border-color: var(--line); border-radius: 6px; }
.plus:hover:not(:disabled) { border-color: var(--line3); }
.sidebtn { border-radius: 8px; }

/* ---- fields: a 3:1 border, 8 px corners; focused, a graphite ring (the inputs inside a chat box keep no border) ---- */
:where(:not(#office *)):is(input:not([type]), input[type=text], input[type=number], input[type=time], input[type=search],
  input[type=email], input[type=url], input[type=password], input[type=date], select, textarea):not([hidden]) { border-color: var(--field-line); }
:where(:not(#office *)):is(input:not([type]), input[type=text], input[type=number], input[type=time], input[type=search],
  input[type=email], input[type=url], input[type=password], input[type=date], select, textarea):not([hidden]):focus { border-color: var(--focus); }
select, input[type=text], input[type=number], input[type=time], textarea { border-radius: 8px !important; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea):focus-visible { outline: 2px solid var(--focus);
  outline-offset: -1px; }
textarea:focus { outline-color: var(--focus); }
::placeholder { color: var(--muted); opacity: 1; }         /* 5.3:1 */
/* ticks, dots and sliders */
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: var(--accent); }
.set-radio { border-radius: 10px; }
.set-radio.on { border-color: var(--accent); background: var(--panel2); }   /* chosen: a graphite border, 14.5:1 */
/* a switch: off, an outlined track (3:1) and a grey knob (5.3:1); on, a graphite track and a white knob */
.set-toggle span { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--field-line); }
.set-toggle span::after { background: var(--muted); }
.set-toggle input:checked + span { background: var(--accent); box-shadow: none; }
.set-toggle input:checked + span::after { background: var(--accent-ink); }
.set-toggle input:hover + span { box-shadow: inset 0 0 0 1px var(--ink); }
.set-toggle input:checked:hover + span { background: var(--accent-hover); box-shadow: none; }
.set-toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.set-toggle input:disabled + span { opacity: .5; }

/* ---- chips, tags and pills: small hairline rectangles (6 px), muted words; an agent's tag in its colour ---- */
.chip { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.tag, .pill { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; }
/* v5 (13 Oct): the green / red tint is mixed into the card, not over transparent: on the warm-grey floor a see-through
   10% tint left the words at 4.25 / 4.33:1; on its own card tint they're 4.9 / 5.0:1 by day, 6.1 / 5.4 at night, anywhere */
.pill.running, .tag.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 35%, transparent); background: color-mix(in srgb, var(--up) 10%, var(--panel)); }
.pill.halted, .tag.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 35%, transparent); background: color-mix(in srgb, var(--down) 10%, var(--panel)); }
.tag.agent, .ntags .tag.w { color: var(--ink); border-color: var(--line2); }
/* an agent's kind: --kc its colour (dots, bars), --kci its words (the -ink twin); Nova's words stay ink, its indigo on the dot */
.k-agent { --kci: var(--k-agent-ink); } .k-research { --kci: var(--k-research-ink); } .k-news { --kci: var(--k-news-ink); }
.k-voice { --kci: var(--k-voice-ink); } .k-journal { --kci: var(--k-journal-ink); } .k-alerts { --kci: var(--k-alerts-ink); }
.k-reports { --kci: var(--k-reports-ink); } .k-main { --kc: var(--k-nova); --kci: var(--ink); }
.tag.agent[class*="k-"] { color: var(--kci, var(--ink)); border-color: var(--line); background: transparent; }
.tag.agent[class*="k-"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%;
  background: var(--kc); vertical-align: 1px; }
.kc, .atile .kind { color: var(--kci, var(--ink)); }
.chip, .tag, .pill { line-height: 1.5; }
.atile .pillx, .set-pill, .nb-st, .jr-src { border-radius: 6px; }
.atile .pillx.hot, .atile .acct.practice { color: var(--ink); background: var(--accent-soft); }
.su-st { color: var(--ink); background: var(--accent-soft); border-radius: 6px; }
/* suggestion chips and toggles (research's quick coins, a setup's actions, the news focus, the journal's answers): outlined
   rectangles like the desk windows' suggestions; a toggle that is on, solid graphite */
.rs-pill, .su-pill, .na-chip, .jr-chips button, .jr-sure button { border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 6px; }
.rs-pill:hover, .su-pill:hover, .na-chip:hover, .jr-chips button:hover:not(:disabled), .jr-sure button:hover:not(:disabled) {
  border-color: var(--line3); background: var(--panel); color: var(--ink); }
.su-pill.acc { color: var(--ink); font-weight: 600; }
.su-pill.on { color: var(--muted); }
.na-chip { color: var(--muted); }
.na-chip.on, .na-chip.on.star, .rs-pill.on, .jr-chips button.on, .jr-sure button.on, .na-chip.on:hover, .rs-pill.on:hover {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.na-chip.on .x { color: inherit; opacity: .72; }

/* ---- an agent's colour as words (its kind, a waiting answer, "for you"): the -ink twins, AA on every surface ---- */
.jr-wait, .jr-src.jr-k, .jr-ask-link, .jr-v.mid .ic, .jr-v.wait .ic, .jr-tone.mid, .jr-askq { color: var(--k-journal-ink); }
.jr-src.k-agent { color: var(--k-agent-ink); }
.na-tag.mine, .na-you strong { color: var(--k-news-ink); }
.rs-step.now b { color: var(--k-research-ink); }
.jr-v.open .ic { color: var(--ink); }
/* amber "for you" as words (a call half right, the time left on a real trade, the practice / real label): the warning ink */
.nb-st.mid, .lv-left { color: var(--warn-ink); }
.lv-mode:not(.real) { color: var(--warn-ink); }
/* the research and news agents' faces on the pages: a line icon in a rounded square, tinted with the agent's colour
   (was a gradient into periwinkle; the desk windows draw the robots' heads) */
.rs-av { background: color-mix(in srgb, var(--k-research) 14%, var(--panel)); color: var(--k-research-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k-research) 32%, transparent); }
.na-av { background: color-mix(in srgb, var(--k-news) 14%, var(--panel)); color: var(--k-news-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k-news) 32%, transparent); }
/* a trader's Strategy flow: the "when" step's tile was violet; now the soft tile with a hairline and an ink glyph that
   chat.css gives every step in a workspace (15.4:1 / 12.9:1): this is only the fallback outside one */
.fnode.trigger .fi { background: var(--panel2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- filters and segmented controls (the Alerts window's: outlined, the chosen one solid graphite) ---- */
:is(.agp-filters, .jr-filters, .ad-filters, .su-tabs, .bp-ranges, .rs-seg, .na-tabs, .mtabs, .tbar) button {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 6px; box-shadow: none; }
:is(.agp-filters, .jr-filters, .ad-filters, .su-tabs, .bp-ranges, .rs-seg, .na-tabs, .mtabs, .tbar) button:hover:not(:disabled) {
  border-color: var(--line3); color: var(--ink); }
:is(.agp-filters, .jr-filters, .ad-filters, .su-tabs, .bp-ranges, .rs-seg, .na-tabs, .mtabs, .tbar) button:is(.on, [aria-pressed="true"]) {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: none; }
:is(.agp-filters, .jr-filters, .ad-filters, .su-tabs, .bp-ranges, .rs-seg, .na-tabs, .mtabs, .tbar) button:is(.on, [aria-pressed="true"]):hover:not(:disabled) {
  background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
:is(.agp-filters, .jr-filters) button:is(.on, [aria-pressed="true"]) .cnt { color: inherit; opacity: .72; }   /* 9.2:1 / 6.1:1 */
/* a track with segments (time frames, zones, the real-trading choices) */
:is(.cx-tfs, .cx-zseg, .lv-seg) { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px; }
:is(.cx-tfs, .cx-zseg, .lv-seg) button { color: var(--muted); border-radius: 6px; }
:is(.cx-tfs, .cx-zseg, .lv-seg) button:hover:not(:disabled):not(.on) { color: var(--ink); background: var(--hover); }
:is(.cx-tfs, .cx-zseg, .lv-seg) button.on { background: var(--accent); color: var(--accent-ink); }
/* page tabs (Settings) */
.set-tabs a { border-radius: 8px; text-decoration: none; }
.set-tabs a:hover { background: var(--hover); }
.set-tabs a.on { background: var(--accent); color: var(--accent-ink); }

/* ---- badges: small solid graphite, "NEW" in small caps like the desk windows' ---- */
.abadge { color: var(--accent-ink); background: var(--accent); border-radius: 999px; }
.atile .new, .rs-new { color: var(--accent-ink); background: var(--accent); border-radius: 4px; padding: 1px 6px; font-size: 9.5px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dot, .ad-dot { background: var(--accent); }
/* the amber "Demo mode" label under the logo: the family's small rectangle (was a round pill), its words 6.9:1 / 9.6:1 */
.badge { border-radius: 6px; }

/* ---- progress and meters: a graphite bar on the soft track ---- */
.progress { background: var(--line); }
.progress > div { background: var(--accent); }
.meter { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.meter > div { background: var(--accent); }
.mav { background: var(--panel2); color: var(--ink); }     /* (an old avatar) */
.aresize:hover, .aresize.dragging { background: linear-gradient(90deg, transparent 3px, var(--line2) 3px, var(--line2) 5px, transparent 5px); }
.pane-grip:hover::after, .pane-grip:focus-visible::after, .pane-grip.on::after { background: var(--muted); }

/* ---- the sidebar: the office's logo tile, calm items, the page you are on a white card with a hairline ---- */
header.side { background: var(--bg); }
.side .logo, .side .logo :is(svg, img) { width: 28px; height: 28px; }   /* the Solea logo (15 Oct): Nova's visor head, no tile */
.side .mainnav a { border-radius: 8px; text-decoration: none; }
.side .mainnav a:hover { color: var(--ink); background: var(--hover); }
.side .mainnav a.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sidebtn:hover:not(:disabled) { background: var(--hover); }
#newchat.sidebtn { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
#newchat.sidebtn:hover { box-shadow: inset 0 0 0 1px var(--line2); }
#settingsbtn.on, #notifbtn.on { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
/* v5 (13 Oct): at night the card (1.07:1) and its hairline (1.4:1) barely show on the sidebar, so the page you are on gets
   a field's edge instead: 4.1:1 on --bg, 3.8 on --panel (the phone's sidebar); this also beats the phone's rule below */
html.dark .side .mainnav a.on, html.dark #settingsbtn.on, html.dark #notifbtn.on { box-shadow: inset 0 0 0 1px var(--field-line); }
.side .switch { text-decoration: none; }

/* ---- the phone's top tabs (a trading agent: Chat | Strategy): the desk windows' underlined tabs ---- */
@media (max-width: 900px) {
  .atabs { gap: 4px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .atabs button { height: auto; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 10px 12px 8px;
    color: var(--muted); font-weight: 600; }
  .atabs button:hover:not(:disabled) { color: var(--ink); border-color: transparent; border-bottom-color: var(--line2); }
  .atabs button.on, .atabs button.on:hover:not(:disabled) { color: var(--ink); border-bottom-color: var(--ink); }
  .atabs button:focus-visible { outline-offset: -2px; border-radius: 6px 6px 0 0; }
  header.side { background: var(--panel); }
  .side .mainnav a.on { box-shadow: none; background: var(--panel2); }
}
