/* CONE SUPREME design system (2026-11-08 consolidation). Loaded LAST on every page: the app (app.html) and every
   public page. It is the one source of truth for colour, type, spacing, radius, elevation and the shared components.
   Older layers (site.css, styles.css, modern-public.css, product-refresh.css, landing-v3.css, app.css, modern-ui.css,
   os.css) each defined their own token names; every one of those names is mapped onto the --ds-* tokens below, so a
   change here reaches every screen. Page-specific layouts stay in their own files.
   Brand: near-black canvas, one CONE orange accent (gold is its highlight), neutral greys. Orange is for the primary
   action, the active place and focus; never for body text.
   Contrast (WCAG AA): text #f5f4f2 on #09090b ≈ 18:1; secondary #a9a6a1 ≈ 8:1; tertiary #8c8984 ≈ 5.6:1;
   accent text #ffb04a on #111113 ≈ 9:1; dark text #160b02 on the orange button ≈ 8:1. */
:root {
  /* colour */
  --ds-bg: #09090b; --ds-bg-2: #0d0d10; --ds-surface: #111113; --ds-surface-2: #17171a; --ds-surface-3: #1f1f23;
  --ds-line: rgba(255, 255, 255, .08); --ds-line-2: rgba(255, 255, 255, .14); --ds-line-3: rgba(255, 255, 255, .22);
  --ds-text: #f5f4f2; --ds-text-2: #a9a6a1; --ds-text-3: #8c8984;
  --ds-accent: #ff7a1a; --ds-accent-2: #ffb04a; --ds-accent-ink: #160b02;
  --ds-accent-soft: rgba(255, 122, 26, .12); --ds-accent-line: rgba(255, 122, 26, .45);
  --ds-grad: linear-gradient(135deg, #ff7a1a 0%, #ff9a2e 55%, #ffb04a 100%);
  --ds-good: #4fd18b; --ds-warn: #ffc45a; --ds-bad: #ff6b5e; --ds-info: #8ab4ff;
  /* type */
  --ds-font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ds-font-display: 'Space Grotesk', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --ds-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* space (4px grid), radius, elevation, motion */
  --ds-1: 4px; --ds-2: 8px; --ds-3: 12px; --ds-4: 16px; --ds-5: 20px; --ds-6: 24px; --ds-8: 32px; --ds-10: 40px; --ds-12: 48px;
  --ds-r-sm: 8px; --ds-r: 10px; --ds-r-lg: 14px; --ds-r-xl: 20px; --ds-r-pill: 999px;
  --ds-shadow-1: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .4);
  --ds-shadow-2: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 0, 0, .45);
  --ds-shadow-cta: 0 6px 18px rgba(255, 122, 26, .28);
  --ds-ring: 0 0 0 3px rgba(255, 176, 74, .45);
  --ds-ease: cubic-bezier(.2, .7, .2, 1); --ds-fast: .15s; --ds-container: 1200px; --ds-header: 64px;

  /* legacy token names → design system (one palette everywhere) */
  --bg: var(--ds-bg); --bg-2: var(--ds-bg-2); --panel: var(--ds-surface); --panel2: var(--ds-surface-2);
  --surface: var(--ds-surface); --surface-0: var(--ds-bg); --surface-1: var(--ds-surface); --surface-2: var(--ds-surface-2); --surface-3: var(--ds-surface-3);
  --line: var(--ds-line-2); --line2: var(--ds-line-3); --line-2: var(--ds-line-3); --border: var(--ds-line-2);
  --hairline: var(--ds-line); --hairline-2: var(--ds-line-2);
  --text: var(--ds-text); --text-1: var(--ds-text); --text-2: var(--ds-text-2); --text-3: var(--ds-text-3);
  --muted: var(--ds-text-2); --fine: var(--ds-text-3);
  --orange: var(--ds-accent); --orange-2: var(--ds-accent-2); --gold: var(--ds-accent-2);
  --accent: var(--ds-accent); --accent-2: var(--ds-accent-2); --accent-soft: var(--ds-accent-soft); --accent-line: var(--ds-accent-line);
  --os-accent: var(--ds-accent-2); --os-accent2: var(--ds-accent-2); --os-grad: var(--ds-grad);
  --cone-bg: var(--ds-bg); --cone-surface: var(--ds-surface); --cone-surface-raised: var(--ds-surface-2); --cone-text: var(--ds-text); --cone-muted: var(--ds-text-2);
  --cone-subtle: var(--ds-text-3); --cone-accent: var(--ds-accent-2); --cone-accent-soft: var(--ds-accent-soft);
  --cone-border: var(--ds-line-2); --cone-border-strong: var(--ds-line-3); --cone-radius: var(--ds-r-lg); --cone-shadow: var(--ds-shadow-2);
  --lp-bg: var(--ds-bg); --lp-panel: var(--ds-surface); --lp-panel2: var(--ds-surface-2); --lp-line: var(--ds-line-2); --lp-text: var(--ds-text);
  --lp-muted: var(--ds-text-2); --lp-orange: var(--ds-accent); --lp-accent: var(--ds-accent-2); --lp-green: var(--ds-good);
  --good: var(--ds-good); --warn: var(--ds-warn); --bad: var(--ds-bad); --live: var(--ds-good); --beta: var(--ds-warn); --testing: var(--ds-info);
  --focus: var(--ds-accent-2); --ring: var(--ds-accent); --chart: var(--ds-accent);
  --font-body: var(--ds-font); --font-display: var(--ds-font-display);
  --r-xs: 6px; --r-sm: var(--ds-r); --r-md: var(--ds-r-lg); --r: var(--ds-r-lg); --r-lg: var(--ds-r-xl); --r-pill: var(--ds-r-pill); --radius-card: var(--ds-r-lg);
  --shadow: var(--ds-shadow-2); --shadow-cta: var(--ds-shadow-cta); --glow: var(--ds-shadow-cta); --container: var(--ds-container);
  accent-color: var(--ds-accent);
  color-scheme: dark;
}

/* ---------- base ---------- */
html { background: var(--ds-bg); -webkit-text-size-adjust: 100%; }
body { background: var(--ds-bg); color: var(--ds-text); font-family: var(--ds-font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--ds-font-display); color: var(--ds-text); letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--ds-accent-2); text-underline-offset: 3px; }
::selection { background: rgba(255, 122, 26, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--ds-accent-2); outline-offset: 2px; }
.fine, small.fine { color: var(--ds-text-3); }
.muted { color: var(--ds-text-2); }
code, kbd, pre { font-family: var(--ds-font-mono); }
hr { border: 0; border-top: 1px solid var(--ds-line); }
* { scrollbar-color: #2c2c31 transparent; scrollbar-width: thin; }

/* ---------- buttons: one primary, one quiet, one destructive ---------- */
.btn { border-radius: var(--ds-r); font-family: var(--ds-font); font-weight: 650; letter-spacing: .005em;
  transition: filter var(--ds-fast) var(--ds-ease), transform var(--ds-fast) var(--ds-ease), background-color var(--ds-fast), border-color var(--ds-fast), box-shadow var(--ds-fast); }
.btn:not(.ghost):not(.btn-outline):not(.btn-ghost):not(.btn-secondary):not(.danger):not(.link) {
  background: var(--ds-grad); color: var(--ds-accent-ink); border: 1px solid rgba(255, 176, 74, .55); box-shadow: var(--ds-shadow-cta); }
.btn:not(:disabled):hover { filter: brightness(1.06); }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn.ghost, .btn-outline, .btn-ghost, .btn-secondary { background: rgba(255, 255, 255, .02); color: var(--ds-text); border: 1px solid var(--ds-line-2); box-shadow: none; }
.btn.ghost:not(:disabled):hover, .btn-outline:not(:disabled):hover, .btn-ghost:not(:disabled):hover, .btn-secondary:not(:disabled):hover {
  background: rgba(255, 255, 255, .05); border-color: var(--ds-line-3); filter: none; }
.btn.danger { background: transparent; color: #ff8f84; border: 1px solid rgba(255, 107, 94, .45); box-shadow: none; }
.btn.danger:not(:disabled):hover { background: rgba(255, 107, 94, .1); filter: none; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; box-shadow: none; }
/* Keyboard focus is an outline, not a box-shadow: the buttons' own glow (box-shadow, more specific selectors) would
   replace a shadow ring, leaving no visible focus (WCAG 2.4.7). Nothing styles a button's outline, so this always shows. */
.btn:focus-visible { outline: 2px solid var(--ds-accent-2, #ffb04a); outline-offset: 2px; }

/* ---------- surfaces ---------- */
.card, .lab-workspace-card { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); box-shadow: var(--ds-shadow-1); }
.chip { border-radius: var(--ds-r-pill); border: 1px solid var(--ds-line-2); background: transparent; color: var(--ds-text-2); font-family: var(--ds-font);
  transition: color var(--ds-fast), border-color var(--ds-fast), background-color var(--ds-fast); }
.chip:hover { color: var(--ds-text); border-color: var(--ds-line-3); }
.chip.on, .chip[aria-pressed=true], .chip[aria-current=page] { color: var(--ds-text); border-color: var(--ds-accent-line); background: var(--ds-accent-soft); }
.pill { border-radius: var(--ds-r-pill); border: 1px solid var(--ds-line-2); background: rgba(255, 255, 255, .03); color: var(--ds-text-2); font-size: 12px; font-weight: 600; letter-spacing: .01em; }

/* ---------- form fields ---------- */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea {
  background-color: var(--ds-bg-2); color: var(--ds-text); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r);
  font-family: var(--ds-font); transition: border-color var(--ds-fast), box-shadow var(--ds-fast); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):hover, select:hover, textarea:hover { border-color: var(--ds-line-3); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ds-accent-line); box-shadow: var(--ds-ring); }
::placeholder { color: var(--ds-text-3); opacity: 1; }

/* ---------- public site: one header, one footer, one width ---------- */
.site-header { height: var(--ds-header); background: rgba(9, 9, 11, .82); border-bottom: 1px solid var(--ds-line);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); padding: 0 max(20px, calc((100vw - var(--ds-container)) / 2)); }
.site-header .brand { color: var(--ds-accent-2); font-family: var(--ds-font-display); font-size: 19px; letter-spacing: .06em; }
.site-header .brand img { width: 32px; height: 38px; }
.site-header .brand small { letter-spacing: .38em; color: var(--ds-text-2); }
.main-nav { gap: clamp(12px, 2vw, 28px); }
.main-nav a { color: var(--ds-text-2); font-size: 14px; font-weight: 500; position: relative; transition: color var(--ds-fast); }
.main-nav a:hover { color: var(--ds-text); }
.main-nav a[aria-current=page] { color: var(--ds-text); }
@media (min-width: 821px) {
  .main-nav .nav-mobile-only { display: none !important; }
  .main-nav a[aria-current=page]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--ds-accent); }
}
.header-actions .btn { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.menu-toggle { border-radius: var(--ds-r); border-color: var(--ds-line-2); background: var(--ds-surface); }
@media (max-width: 820px) {
  .site-header { height: 60px; }
  .main-nav { top: 60px; background: rgba(12, 12, 14, .98); border-bottom: 1px solid var(--ds-line); box-shadow: var(--ds-shadow-2); }
  .main-nav a, .main-nav .nav-mobile-only { border-bottom-color: var(--ds-line); color: var(--ds-text); font-size: 16px; }
}
.site-footer { background: var(--ds-bg); border-top: 1px solid var(--ds-line); }
.footer-grid h2 { color: var(--ds-text-3); font-size: 12px; letter-spacing: .12em; font-family: var(--ds-font); }
.footer-grid nav a, .footer-social a { color: var(--ds-text-2); font-size: 14px; }
.footer-grid nav a:hover, .footer-social a:hover { color: var(--ds-text); }
.footer-grid .brand { color: var(--ds-accent-2); font-family: var(--ds-font-display); }
.footer-bottom { border-top-color: var(--ds-line); color: var(--ds-text-3); }
.eyebrow, .kicker { color: var(--ds-accent-2); letter-spacing: .14em; }

/* ---------- app shell: sidebar, top bar, content column ---------- */
.shell { background: var(--ds-bg); }
.side { background: var(--ds-bg-2); border-right: 1px solid var(--ds-line); }
.side .brand, .topbar .brand { color: var(--ds-accent-2); }
.os-nav-group { color: var(--ds-text-3); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.os-nav a { color: var(--ds-text-2); border-radius: var(--ds-r); transition: background-color var(--ds-fast), color var(--ds-fast); }
.os-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--ds-text); }
.os-nav a .ico { color: var(--ds-text-3); background: transparent; }
.os-nav a[aria-current=page] { background: var(--ds-accent-soft); color: var(--ds-text); box-shadow: inset 2px 0 0 var(--ds-accent); }
.os-nav a[aria-current=page] .ico { color: var(--ds-accent-2); background: transparent; }
.os-nav a small { color: var(--ds-text-3); }
.os-nav a[aria-current=page] small { color: var(--ds-text-2); }
.os-nav-foot a:hover, .os-nav-foot a[aria-current=page] { background: rgba(255, 255, 255, .05); color: var(--ds-text); }
.topbar { background: rgba(9, 9, 11, .86); border-bottom: 1px solid var(--ds-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.icon-btn { border-radius: var(--ds-r); }
main.view { margin-inline: auto; max-width: var(--ds-container); }
.view-head { margin-bottom: var(--ds-6); }
.view-head h1 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.view-head p { color: var(--ds-text-2); max-width: 70ch; margin: 0; }
.view h2 { font-size: 17px; font-weight: 650; }
.view h3 { font-size: 15px; font-weight: 650; }
.project-bar { padding-inline: clamp(16px, 3vw, 36px); max-width: var(--ds-container); margin-inline: auto; }
@media (max-width: 860px) {
  .os-tabbar { background: rgba(10, 10, 12, .96); border-top: 1px solid var(--ds-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .os-tabbar a { color: var(--ds-text-3); }
  .os-tabbar a[aria-current=page] { color: var(--ds-text); background: transparent; }
  .os-tabbar a[aria-current=page] .ico { color: var(--ds-accent-2); }
}

/* ---------- toasts, dialogs, menus ---------- */
.toast { background: var(--ds-surface-2); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-lg); box-shadow: var(--ds-shadow-2); color: var(--ds-text); }
dialog { background: var(--ds-surface); color: var(--ds-text); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-xl); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.menu-pop { background: var(--ds-surface-2); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-lg); box-shadow: var(--ds-shadow-2); }

@media (prefers-reduced-motion: reduce) { .btn, .chip, .os-nav a, .main-nav a { transition: none; } }

/* ---------- small brand fixes ---------- */
.beta-tag { border-color: var(--ds-accent-line); color: var(--ds-accent-2); background: var(--ds-accent-soft); }

/* ---------- Today: first-run "Start here" ---------- */
.hm-start { padding: var(--ds-5); margin-bottom: var(--ds-4); }
.hm-start-steps { list-style: none; margin: var(--ds-3) 0 0; padding: 0; display: grid; gap: var(--ds-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.hm-start-steps a { display: flex; align-items: center; gap: var(--ds-3); min-height: 64px; padding: var(--ds-3) var(--ds-4); border: 1px solid var(--ds-line);
  border-radius: var(--ds-r-lg); background: var(--ds-bg-2); color: var(--ds-text); text-decoration: none; transition: border-color var(--ds-fast), background-color var(--ds-fast); }
.hm-start-steps a:hover, .hm-start-steps a:focus-visible { border-color: var(--ds-accent-line); background: var(--ds-surface-2); }
.hm-start-steps .grow { min-width: 0; display: grid; }
.hm-start-steps small { color: var(--ds-text-3); font-size: 13px; }
.hm-start-n { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ds-accent-soft); color: var(--ds-accent-2); }
.hm-start-steps svg:last-child { color: var(--ds-text-3); flex: none; }
.hm-start-ico { flex: 0 0 34px; height: 34px; border-radius: var(--ds-r); display: grid; place-items: center; background: var(--ds-surface-3); color: var(--ds-accent-2); }
/* One logo size in every public header, whatever older page layer loads. */
header.site-header a.brand { font-size: 19px; gap: 8px; }
header.site-header a.brand > span { font-size: inherit; line-height: 1; }
header.site-header a.brand img { width: 32px; height: 38px; }
@media (max-width: 820px) { header.site-header a.brand { font-size: 17px; } header.site-header a.brand img { width: 28px; height: 33px; } }
header.site-header a.brand img { transform: none; }
header.site-header a.brand > span { display: block; background: none; color: var(--ds-accent-2); -webkit-text-fill-color: currentColor; font-family: var(--ds-font-display); font-weight: 700; letter-spacing: .06em; }
header.site-header a.brand > span small { display: block; background: none; -webkit-text-fill-color: currentColor; color: var(--ds-text-2); font: 600 8px/1 var(--ds-font); letter-spacing: .38em; margin-top: 3px; padding-left: 0; text-align: center; }
header.site-header .header-actions .btn { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: var(--ds-r); }
@media (max-width: 820px) { header.site-header .header-actions .btn { min-height: 40px; padding: 8px 12px; } }

/* ---------- Today: morning briefing (V2) ---------- */
.hm-brief { padding: var(--ds-5); margin-bottom: var(--ds-4); }
.hm-brief-list { list-style: none; margin: var(--ds-2) 0; padding: 0; display: grid; gap: 2px; }
.hm-brief-list a { display: flex; align-items: center; gap: var(--ds-3); min-height: 44px; padding: 6px var(--ds-2); border-radius: var(--ds-r); color: var(--ds-text-2); text-decoration: none; }
.hm-brief-list a:hover, .hm-brief-list a:focus-visible { background: rgba(255, 255, 255, .04); color: var(--ds-text); }
.hm-brief-list li.hot a { color: var(--ds-text); }
.hm-brief-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--ds-line-3); }
.hm-brief-list li.hot .hm-brief-dot { background: var(--ds-accent); box-shadow: 0 0 0 3px var(--ds-accent-soft); }
.hm-brief-list svg { color: var(--ds-text-3); flex: none; }
.hm-week { margin: var(--ds-3) 0 var(--ds-1); }

/* ---------- My Space: grouped personal home (V2) ---------- */
.me-groups { gap: var(--ds-5); margin-top: var(--ds-4); }
.me-group .sec-title { margin: 0 0 var(--ds-2); }

/* ---------- Public pages: one centred content width (2026-11-09 audit) ----------
   Older pages used `.container` up to 1380px wide, so text ran edge to edge on large screens. Every public page now
   shares the header's column; legal pages get a narrower reading measure. */
main.container { width: min(var(--ds-container), calc(100% - 2 * clamp(16px, 3vw, 24px))); margin-inline: auto; }
main.container.legal { width: min(860px, calc(100% - 2 * clamp(16px, 3vw, 24px))); }
main.container.legal p, main.container.legal li { max-width: 72ch; }

/* ---------- Team board on group chats (2026-11-09) ---------- */
.team-add { display: flex; flex-wrap: wrap; gap: var(--ds-2); }
.team-add input[name=title] { flex: 1 1 220px; min-width: 0; }
.team-add select, .team-add input[type=date] { flex: 0 1 auto; min-width: 0; }
.team-cols { display: grid; gap: var(--ds-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.team-col h3 { font-size: 13px; color: var(--ds-text-3); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 var(--ds-2); }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-2); }
.team-task { display: flex; align-items: center; gap: var(--ds-2); padding: var(--ds-2) var(--ds-3); border: 1px solid var(--ds-line); border-radius: var(--ds-r); background: var(--ds-bg-2); }
.team-task .grow { min-width: 0; display: grid; overflow-wrap: anywhere; }
.team-task.mine { border-color: var(--ds-accent-line); }
.team-task[data-status=done] b { text-decoration: line-through; color: var(--ds-text-3); }
.team-task select { max-width: 110px; }

/* ---------- 2026-11-10 polish: calmer, cleaner, consolidated ----------
   Owner request: easier to use, cleaner, more modern (mascot unchanged). Targets what the screenshots showed: a cramped
   sidebar footer (the level chip wrapped "Lv / 1"), a tall mode picker above the chat box, and empty half-width space. */
:root { --ds-r-lg: 16px; }
/* Sidebar footer: level + quick icons, then you (initial, name, title) and Sign out on one line. */
.side .who { display: grid; gap: var(--ds-3); padding: var(--ds-3) var(--ds-2) var(--ds-2); border-top: 1px solid var(--ds-line); overflow: visible; }
.side .who-row { display: flex; align-items: center; gap: var(--ds-2); }
.side .who-row .xpchip { flex: 1 1 auto; min-width: 0; margin: 0; }
.xpchip, .xpchip-lv { white-space: nowrap; }
.side .xpchip-bar { flex: 1 1 auto; width: auto; min-width: 20px; }
.who-me { display: flex; align-items: center; gap: var(--ds-2); min-width: 0; }
.who-avatar { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-accent-soft); color: var(--ds-accent-2); font: 700 14px/1 var(--ds-font-display); }
.who-id { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.who-id .who-name { color: var(--ds-text); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-id .who-title { font-size: 12px; color: var(--ds-text-3); }
.side .who-out { margin: 0; flex: none; min-height: 32px; padding: 4px 10px; font-size: 12px; }
/* Search box in the sidebar: quieter, full label visible. */
.side .palette-open { border-radius: var(--ds-r); background: var(--ds-surface); border: 1px solid var(--ds-line); color: var(--ds-text-3); }
.side .palette-open:hover { border-color: var(--ds-line-2); color: var(--ds-text-2); }
/* Ask CONE: the mode picker is one slim row above the message box instead of a tall block. */
.cone-mode-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-2) var(--ds-3); padding: 6px 10px; border-radius: var(--ds-r); }
.cone-mode-picker select { width: auto; flex: 0 1 220px; min-width: 140px; }
.cone-mode-hint { flex: 1 1 160px; margin: 0; }
/* Today: an empty briefing is one calm line. */
.hm-brief-list li:only-child a { color: var(--ds-text-2); }
/* Cards that open something lift slightly on hover (pointer devices only). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-qa, .os-tile, .hm-start-steps a { transition: transform var(--ds-fast) var(--ds-ease), border-color var(--ds-fast); }
  .hm-qa:hover, .os-tile:hover, .hm-start-steps a:hover { transform: translateY(-2px); border-color: var(--ds-line-2); }
}
/* Phones: quick-action labels never overflow their tile. */
@media (max-width: 640px) { .hm-qa b { overflow-wrap: anywhere; line-height: 1.2; } }
/* Money: the first-run "Set your balance" button is a button, not a full-width bar. */
.money-hero > .btn { justify-self: start; align-self: flex-start; width: auto; padding-inline: var(--ds-5); }

/* In-app Labs (js/lab-shell.js): a Lab page shown inside the app at #lab/<slug>. */
.lab-shell-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 16px;
  border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 12px; background: var(--surface, rgba(255,255,255,.04)); }
.lab-shell-bar .lab-shell-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-shell-body { max-width: 100%; overflow-wrap: anywhere; }

/* One business pipeline (js/business-pipeline.js) */
.bp-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-stage { border: 1px solid var(--border); background: var(--surface); color: inherit; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.bp-stage.on { border-color: var(--ds-accent, #ff7a1a); color: var(--ds-accent, #ff7a1a); }
.bp-stage.empty { opacity: .55; }
.bp-item { border-top: 1px solid var(--border); padding-top: 8px; }
.bp-item a b { overflow-wrap: anywhere; }
.bp-timeline { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* CONE OS: the More page (#more) lists all ten destinations as large, touch-friendly tiles. */
.os-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.os-more-item { display: grid; gap: 4px; align-content: start; padding: 16px; min-height: 96px; border: 1px solid var(--border);
  border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; }
.os-more-item .ico { color: var(--ds-accent, #ff7a1a); }
.os-more-item small { color: var(--muted, #a3a3a3); font-size: .8rem; line-height: 1.3; }
.os-more-item:hover, .os-more-item:focus-visible { border-color: var(--ds-accent, #ff7a1a); }
/* Ten destinations: keep the sidebar compact so all fit without scrolling on a laptop screen. */
aside .os-nav-sec > a { padding-top: 7px; padding-bottom: 7px; }
aside .os-nav-sec > a small { display: none; }

/* Home command center (CONE OS, 2026-11-10): the Ask CONE bar and the at-a-glance numbers (real records only). */
.hm-ask { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; margin: 4px 0 16px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ds-accent, #ff7a1a) 55%, transparent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-accent, #ff7a1a) 8%, transparent); }
.hm-ask input, .hm-ask input:focus { flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: inherit; font: inherit; padding: 8px 0; outline: none; }
.hm-ask:focus-within { border-color: var(--ds-accent, #ff7a1a); outline: 2px solid var(--ds-accent-2, #ffb04a); outline-offset: 2px; } /* the border is already orange: the outline shows keyboard focus */
.hm-ask .hm-ask-ico { color: var(--ds-accent, #ff7a1a); display: inline-flex; }
.hm-ask .btn { border-radius: 12px; padding: 8px 12px; }
.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hm-stat { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; }
.hm-stat:hover, .hm-stat:focus-visible { border-color: var(--ds-accent, #ff7a1a); }
.hm-stat-ico { grid-row: span 2; color: var(--ds-accent, #ff7a1a); display: inline-flex; }
.hm-stat-label { font-size: .85rem; color: var(--muted, #a3a3a3); }
.hm-stat-value { font-size: 1.35rem; line-height: 1.2; }
.hm-stat small { grid-column: 1 / -1; color: var(--muted, #a3a3a3); font-size: .78rem; }
@media (max-width: 520px) { .hm-stats { grid-template-columns: 1fr 1fr; } .hm-stat-value { font-size: 1.15rem; } }

/* The Lab frame (js/lab-frame.js): one frame for every lab — breadcrumbs, actions, the work, and CONE beside it. */
.lab-os { display: grid; gap: 14px; }
.lab-os .lab-shell-bar { margin-bottom: 0; justify-content: space-between; }
.lab-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .9rem; min-width: 0; }
.lab-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lab-crumbs li + li::before { content: "›"; color: var(--muted, #a3a3a3); }
.lab-crumbs a { color: var(--muted, #a3a3a3); text-decoration: none; display: inline-flex; align-items: center; }
.lab-crumbs a:hover, .lab-crumbs a:focus-visible { color: var(--ds-accent, #ff7a1a); }
.lab-crumbs .lab-shell-name { color: var(--ds-accent, #ff7a1a); }
.lab-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-os-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.lab-os.cone-closed .lab-os-body { grid-template-columns: minmax(0, 1fr); }
.lab-os.cone-closed .lab-cone { display: none; }
.lab-os-main { min-width: 0; }
.lab-cone { position: sticky; top: 12px; display: grid; gap: 12px; padding: 16px; }
.lab-cone-head { display: flex; gap: 10px; align-items: center; }
.lab-cone-head small { display: block; color: var(--muted, #a3a3a3); font-size: .78rem; }
.lab-cone-ico { color: var(--ds-accent, #ff7a1a); display: inline-flex; }
.lab-cone-q { margin: 0; font-weight: 600; }
.lab-cone-sugg { display: grid; gap: 8px; }
.lab-cone-chip { text-align: left; border: 1px solid var(--border); background: var(--surface-2, rgba(255,255,255,.04)); color: inherit; font: inherit; font-size: .88rem;
  border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.lab-cone-chip:hover, .lab-cone-chip:focus-visible { border-color: var(--ds-accent, #ff7a1a); }
.lab-cone-ask { display: flex; gap: 6px; }
.lab-cone-ask input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 1100px) { .lab-os-body { grid-template-columns: minmax(0, 1fr); } .lab-cone { position: static; } }
/* The lab's own actions in the frame bar (mirrorLabActions): Save first, then exports, then the save status. */
.lab-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--border); }
.lab-tools[hidden] { display: none; }
.lab-tool-primary { border-color: var(--ds-accent, #ff7a1a); color: var(--ds-accent, #ff7a1a); }
.lab-tool-status { color: var(--muted, #a3a3a3); font-size: .8rem; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Home: Customize (show, hide and reorder sections). */
.hm-custom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hm-custom-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.hm-custom-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* Labs on phones: a compact frame (the breadcrumb already leads to Tools & Labs) and a lab heading sized for the screen. */
@media (max-width: 600px) {
  .lab-os .lab-shell-bar { padding: 8px 10px; gap: 8px; }
  .lab-bar-actions .lab-all { display: none; }
  .lab-tools { border-right: 0; padding-right: 0; flex: 0 1 auto; order: -1; } /* CONE shares the row when it fits */
  .lab-tool-status { max-width: 100%; flex-basis: 100%; }
  .lab-bar-actions .btn { padding: 6px 10px; }
  .lab-shell-body h1 { font-size: clamp(1.6rem, 7.5vw, 2.1rem); line-height: 1.15; }
  .lab-cone { padding: 14px; }
  /* Studio labs (Beat Lab, Code Lab, Video, Voice…) on phones: the work comes first. The breadcrumb already names the
     lab, so Studio's title, blurb and each lab's intro paragraph step aside; the headings stay for screen readers and
     the short notes (.fine, e.g. "AI video isn't switched on") stay visible. */
  .lab-os .studio-view-head > div > p, .lab-os .studio-view-head > .row, .lab-os .studio-tab-intro > p:not(.fine) { display: none; }
  .lab-os .studio-view-head h1, .lab-os .studio-tab-intro > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .lab-os .studio-view-head { margin: 0; min-height: 0; padding: 0; }
  .lab-os .studio-tabs { margin: 0 0 10px; padding-bottom: 6px; }
  .lab-os .studio-save-status { display: none; } /* the frame bar already shows this status */
}

/* Phone top bar (CONE OS mobile): menu, where you are, then actions. */
.topbar .top-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: inherit; text-decoration: none; min-width: 0; margin-right: auto; }
.topbar .top-title .ico { color: var(--ds-accent, #ff7a1a); display: inline-flex; }
.topbar .top-title span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .os-menu-top { margin-right: 6px; }
.topbar .brand { margin-right: auto; }

/* Tools & Labs: each group has its own accent (like the mockups' coloured lab cards), within the brand palette. */
.lab-group[data-group] .os-tool-ico { color: var(--lab-accent, var(--ds-accent, #ff7a1a)); background: color-mix(in srgb, var(--lab-accent, #ff7a1a) 14%, transparent); }
.lab-group[data-group] .os-tool { border-color: color-mix(in srgb, var(--lab-accent, #ff7a1a) 28%, var(--border)); }
.lab-group[data-group=creative] { --lab-accent: #ff8a2a; }
.lab-group[data-group=development] { --lab-accent: #4cb3ff; }
.lab-group[data-group=intelligence] { --lab-accent: #b58cff; }
.lab-group[data-group=business] { --lab-accent: #ffc23d; }
.lab-group[data-group=automation] { --lab-accent: #ff6fb1; }
.lab-group[data-group=markets] { --lab-accent: #3ddc84; }
.lab-group[data-group=collaboration] { --lab-accent: #2dd4bf; }

/* Workspace tabs: one segmented strip across Overview, Projects, Tasks & habits and Notes & library (js/app.js). */
.ws-tabs { display: flex; gap: 4px; padding: 4px; margin: 8px auto 8px; max-width: min(var(--ds-container), calc(100% - 2 * clamp(16px, 3vw, 36px))); width: fit-content; border: 1px solid var(--border); border-radius: 999px; background: var(--panel2, rgba(255,255,255,.03)); overflow-x: auto; scrollbar-width: none; }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tabs a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--muted, #a3a3a3); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; min-height: 34px; display: inline-flex; align-items: center; }
.ws-tabs a:hover { color: var(--text, #f5f5f5); }
.ws-tabs a[aria-current="page"] { background: var(--ds-accent-soft, rgba(255,122,26,.16)); color: var(--ds-accent, #ff7a1a); }
.ws-tabs a:focus-visible { outline: 2px solid var(--ds-accent, #ff7a1a); outline-offset: 1px; }
@media (max-width: 600px) { .ws-tabs { width: auto; margin-inline: 16px; } }

/* Home (owner's mockups): shortcuts under the Ask bar, and the Tools & Labs strip in each lab's colour. */
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 4px; }
.hm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel2, rgba(255,255,255,.03)); color: var(--text, #f5f5f5); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.hm-chip:hover { border-color: var(--ds-accent, #ff7a1a); color: var(--ds-accent, #ff7a1a); }
.hm-chip:focus-visible { outline: 2px solid var(--ds-accent, #ff7a1a); outline-offset: 2px; }
.hm-labs-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.hm-lab { display: grid; gap: 4px; align-content: start; padding: 12px 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 18%, transparent), transparent 70%); color: var(--text, #f5f5f5); text-decoration: none; text-align: center; justify-items: center; min-height: 104px; }
.hm-lab:hover { border-color: var(--tone); }
.hm-lab:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.hm-lab-ico { color: var(--tone); }
.hm-lab b { font-size: .92rem; }
.hm-lab small { color: var(--muted, #a3a3a3); font-size: .74rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .hm-labs-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hm-labs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .hm-chip { flex: none; } }
/* Lab colours (FEATURED_LABS tone): Home strip and the Tools & Labs page's featured tiles. */
.tone-orange { --tone: #ff8a2b; } .tone-pink { --tone: #ff5fa2; } .tone-yellow { --tone: #ffc53d; } .tone-blue { --tone: #4c9dff; }
.tone-purple { --tone: #a578ff; } .tone-teal { --tone: #2fd3c4; } .tone-magenta { --tone: #e45cf0; } .tone-green { --tone: #45d483; }
.os-tile.lab-featured[class*="tone-"] { border-color: color-mix(in srgb, var(--tone) 40%, var(--border)); background: linear-gradient(165deg, color-mix(in srgb, var(--tone) 14%, transparent), transparent 65%); }
.os-tile.lab-featured[class*="tone-"] .os-tool-ico { color: var(--tone); border-color: color-mix(in srgb, var(--tone) 50%, transparent); }
/* The CONE V2 look (the signed-in app only) lives in cone-ds-app.css, loaded right after this file by app.html, so public
   pages don't download it (homepage download budget, 2026-11-20). */
