/* Studio Floor, in the Bside November design system (Claude design system artifact
   "Bside November", Nov 2026): dark ground by default, Daylight when the device is light.
   One accent (Side B blue) per screen: the task to start with. Signals (orange, teal) are
   dots and small marks only. Charts are greyscale. Borders, not shadows. Pills for actions. */

:root {
  --ground: #0f0f10; --surface: #151616; --line: #292b2e; --line-strong: #34373c;
  --ink: #e4ecf6; --ink-muted: #bcc5d2; --ink-subtle: #979faa;
  --accent: #47b3ff; --accent-edge: #47b3ff; --accent-text: #47b3ff; --on-accent: #0f0f10;
  --signal-warn: #ff8833; --signal-info: #47d1c6;
  /* greyscale chart tones, strongest to faintest */
  --t1: #e4ecf6; --t2: #979faa; --t3: #5d636b; --t4: #3e4248; --t5: #292b2e;
  --font-display: "Archivo", system-ui, sans-serif; --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --border-hairline: 1px; --border-feature: 2px; --content-max: 1200px;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #edf1f7; --surface: #ffffff; --line: #c8d0da; --line-strong: #aab3c0;
    --ink: #131415; --ink-muted: #34373c; --ink-subtle: #53585f;
    --accent-edge: #131415; --accent-text: #006ebd;
    --signal-warn: #b84d00; --signal-info: #1f7a73;
    --t1: #131415; --t2: #53585f; --t3: #8a929c; --t4: #b6bec9; --t5: #dbe1e8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.bs-root { background: var(--ground); color: var(--ink); font-family: var(--font-sans);
           font-size: 17px; line-height: 1.5; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-edge); outline-offset: 3px; }

/* --- chrome --- */
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
       padding: calc(10px + env(safe-area-inset-top)) var(--space-5) 10px; background: var(--ground);
       border-bottom: var(--border-hairline) solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px;
            font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 20px; letter-spacing: .02em; }
.ring { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; }
.ring .ring-dot { fill: var(--accent); stroke: none; }
button.link { background: none; border: 0; color: var(--ink-subtle); min-height: 44px; padding: 0 4px; cursor: pointer;
              font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { max-width: var(--content-max); margin: 0 auto;
        padding: var(--space-5) var(--space-5) calc(var(--space-7) + env(safe-area-inset-bottom)); }

/* --- type --- */
.bs-display { font-family: var(--font-display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; line-height: .95; margin: 0; }
.headline { font-size: clamp(44px, 8vw, 88px); margin: var(--space-2) 0 var(--space-3); }
.bs-heading { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 30px; line-height: 1.1; margin: var(--space-2) 0; }
.title { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 22px; line-height: 1.2; margin: 0 0 var(--space-3); }
.bs-eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em;
              text-transform: uppercase; color: var(--ink-subtle); margin: 0; }
.bs-eyebrow--accent { color: var(--accent-text); }
.bs-lead { font-size: 20px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.caption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-subtle); margin: var(--space-3) 0 0; }
.error { color: var(--signal-warn); font-family: var(--font-mono); font-size: 15px; }
.bs-after { color: var(--accent-text); font-weight: 500; }

/* --- layout --- */
.head { margin-bottom: var(--space-5); }
.block { margin-top: var(--space-6); }
.grid3, .grid2 { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.center { max-width: 560px; margin: 14vh auto 0; display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }

/* --- pills --- */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); -webkit-overflow-scrolling: touch; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
        border: var(--border-hairline) solid var(--line-strong); color: var(--ink-muted); text-decoration: none;
        font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.chip.on { border-color: var(--ink); color: var(--ink); }
.bs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
          border-radius: var(--radius-pill); font-family: var(--font-sans); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; }
.bs-btn--primary { background: var(--accent); color: var(--on-accent); border: var(--border-feature) solid var(--accent-edge); }
.bs-btn--ghost { background: transparent; color: var(--ink); border: var(--border-hairline) solid var(--ink); font-weight: 600; }

/* --- cards --- */
.bs-card { background: var(--surface); border: var(--border-hairline) solid var(--line); border-radius: var(--radius-lg);
           padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.bs-card--sideb { border: var(--border-feature) solid var(--accent-edge); }

/* --- stat strip --- */
.bs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-5);
            border-top: var(--border-hairline) solid var(--line); border-bottom: var(--border-hairline) solid var(--line);
            padding: var(--space-5) 0; margin-top: var(--space-5); }
.bs-stat { display: flex; flex-direction: column; gap: var(--space-1); }
.bs-stat__label { font-family: var(--font-mono); font-size: 13px; color: var(--ink-subtle); }
.bs-stat .num { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 56px; line-height: 1;
                font-variant-numeric: tabular-nums; }

/* --- needs you --- */
.bs-needs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: var(--border-hairline) solid var(--line);
            border-radius: var(--radius-md); }
.bs-need { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4);
           padding: 14px 16px; border-bottom: var(--border-hairline) solid var(--line); font-size: 15px; }
.bs-need:last-child { border-bottom: 0; }
.bs-need__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.bs-need__dot--warn { background: var(--signal-warn); }
.bs-need__dot--info { background: var(--signal-info); }
.bs-need__link { font-family: var(--font-mono); font-size: 13px; color: var(--ink-subtle); text-decoration: none;
                 min-height: 44px; display: inline-flex; align-items: center; }

/* --- record rings (donuts) --- */
.ringwrap { display: flex; align-items: center; gap: var(--space-5); }
@media (max-width: 420px) { .ringwrap { gap: var(--space-4); } .donut { width: 96px !important; height: 96px !important; } .key { flex-basis: 0; } }
.donut { width: 132px; height: 132px; flex: none; transform: rotate(0deg); }
.donut circle { fill: none; stroke-width: 6; }
.donut .groove { stroke: var(--line); }
.donut .seg.t1 { stroke: var(--t1); } .donut .seg.t2 { stroke: var(--t2); } .donut .seg.t3 { stroke: var(--t3); }
.donut .seg.t4 { stroke: var(--t4); } .donut .seg.t5 { stroke: var(--line-strong); }
.donut-n { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 9px; fill: var(--ink); }
.key { list-style: none; margin: 0; padding: 0; flex: 1 1 140px; display: flex; flex-direction: column; gap: 8px;
       font-family: var(--font-mono); font-size: 13px; }
.key li { display: flex; align-items: center; gap: 8px; }
.key .k { color: var(--ink-muted); flex: 1; }
.key .v { color: var(--ink); white-space: nowrap; }
.key.inline { flex: none; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
.key.inline .k { flex: none; }
.sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sw.t1 { background: var(--t1); } .sw.t2 { background: var(--t2); } .sw.t3 { background: var(--t3); }
.sw.t4 { background: var(--t4); } .sw.t5 { background: var(--line-strong); }

/* --- split bar (fan split pattern): days since touched --- */
.split { display: flex; height: 48px; border-radius: var(--radius-md); overflow: hidden; border: var(--border-hairline) solid var(--line);
         font-family: var(--font-mono); font-size: 14px; }
.split > span { display: flex; align-items: center; padding: 0 12px; min-width: 32px; white-space: nowrap; }
.seg-green { background: var(--line-strong); color: var(--ink); }
.seg-amber { background: var(--t3); color: var(--ink); }
.seg-red { background: var(--signal-warn); color: var(--on-accent); }
.seg-none { background: var(--surface); color: var(--ink-subtle); }
.sw.seg-green { background: var(--line-strong); } .sw.seg-amber { background: var(--t3); }
.sw.seg-red { background: var(--signal-warn); } .sw.seg-none { background: var(--surface); border: 1px solid var(--line-strong); }

/* --- bars: by list --- */
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-mono); font-size: 13px; }
.bars li { display: grid; grid-template-columns: minmax(96px, 140px) 1fr 28px; align-items: center; gap: 12px; }
.bars .k { color: var(--ink-muted); }
.bars .v { text-align: right; }
.track { height: 14px; background: var(--ground); border-radius: 3px; overflow: hidden; }
.fill { display: block; height: 100%; background: var(--t2); border-radius: 3px; }

/* --- passes --- */
.passes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.passes li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 72px; gap: 14px; align-items: center;
             padding: 10px 0; border-bottom: var(--border-hairline) solid var(--line); }
.passes li:last-child { border-bottom: 0; }
.passes .k { font-size: 15px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passes .v { font-family: var(--font-mono); font-size: 14px; text-align: right; white-space: nowrap; }
.pbars { display: flex; flex-direction: column; gap: 4px; }
.pb { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.pb.est { background: var(--line-strong); }
.pb.taken { background: var(--t1); }
.pb.taken.over { background: var(--signal-warn); }

/* --- task list --- */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3);
         grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
a.task { text-decoration: none; gap: 6px; min-height: 44px; height: 100%; }
a.task:active { opacity: .75; }
.row1 { display: flex; align-items: flex-start; gap: 10px; }
.row1 .name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-subtle); padding-left: 20px; }
.why { font-family: var(--font-mono); font-size: 13px; color: var(--ink); padding-left: 20px; margin: 0; }
h1 + .why, .taskname + .why { padding-left: 0; margin-bottom: var(--space-4); }
.age { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.age-green { background: var(--signal-info); }
.age-amber { background: var(--ink-subtle); }
.age-red { background: var(--signal-warn); }
.age-none { background: transparent; border: 1px solid var(--line-strong); }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend .age { margin: 0 2px 0 10px; }
.legend .age:first-child { margin-left: 0; }

/* --- task page --- */
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-subtle); text-decoration: none;
        font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3); }
.bs-rows { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 15px; }
.bs-row { display: flex; justify-content: space-between; gap: var(--space-3); padding-bottom: 10px; border-bottom: var(--border-hairline) solid var(--line); }
.bs-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bs-row > :first-child { color: var(--ink-subtle); }
.bs-row > :last-child { text-align: right; }
.bs-row .age { margin: 0 8px 0 0; vertical-align: middle; }
.desc pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; font: inherit; font-size: 15px; color: var(--ink-muted); }
.open-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); }
.weblink { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: 13px;
           color: var(--ink-subtle); }
