/* The artist dashboard.
 *
 * Only the nine variables the packs actually publish are used here:
 * --ink --muted --paper --card --rule --crimson --ochre --olive --teal.
 * An undefined var() is transparent rather than an error, so inventing a name
 * renders an invisible element that looks like empty markup. */
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--paper);color:var(--ink);
  font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;
  padding:24px 16px 64px}
main{max-width:1040px;margin:0 auto}
.wait{color:var(--muted)}
h1{font-size:22px;letter-spacing:-.01em;margin:0 0 2px}
.sub{color:var(--muted);font-size:13px;margin-bottom:22px}
a{color:var(--teal)}

/* ── the one KPI ─────────────────────────────────────────────────────── */
.one{background:var(--card);border:1px solid var(--rule);border-radius:10px;
  padding:18px 20px;margin-bottom:20px}
.one .lab{font-size:11px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--muted)}
.one .big{font-size:44px;line-height:1.05;font-weight:650;margin:6px 0 2px;
  font-variant-numeric:tabular-nums}
.one .of{color:var(--muted);font-size:15px;font-weight:400}
.one .note{color:var(--ochre);font-size:12.5px;margin-top:6px}

/* ── the four majors ─────────────────────────────────────────────────── */
.four{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;margin-bottom:22px}
.kpi{background:var(--card);border:1px solid var(--rule);border-radius:9px;
  padding:13px 15px}
.kpi .lab{font-size:11px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted)}
.kpi .n{font-size:27px;font-weight:600;margin-top:5px;
  font-variant-numeric:tabular-nums}
.kpi .n.unmeasured{font-size:15px;font-weight:500;color:var(--ochre);
  padding-top:8px;line-height:1.35}
.kpi .why{font-size:11.5px;color:var(--muted);margin-top:4px}
.kpi .bad{color:var(--crimson)}
.kpi .good{color:var(--olive)}

/* ── ownership ───────────────────────────────────────────────────────── */
.own{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
.chip{background:var(--card);border:1px solid var(--rule);border-radius:999px;
  padding:5px 13px;font-size:13px}
.chip b{font-variant-numeric:tabular-nums}
.chip.zero b{color:var(--crimson)}

/* ── the pipeline, borrowed shape: fixed stages, cards move right ────── */
h2{font-size:13px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted);margin:0 0 10px}
.lanes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;
  margin-bottom:26px}
.lane{background:var(--card);border:1px solid var(--rule);border-radius:9px;
  padding:10px;min-height:96px}
.lane h3{font-size:11px;letter-spacing:.05em;text-transform:uppercase;
  color:var(--muted);margin-bottom:8px;font-weight:600}
.lane .count{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.card{border-top:1px solid var(--rule);padding:6px 0 2px;font-size:12.5px}
.card:first-of-type{border-top:0}
.card .n{color:var(--muted);font-variant-numeric:tabular-nums}

/* ── the roster, founder view ────────────────────────────────────────── */
table{width:100%;border-collapse:collapse;font-size:13.5px}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--rule)}
th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);font-weight:600}
td.num{text-align:right;font-variant-numeric:tabular-nums}
td.zero{color:var(--crimson)}
tr.inactive td{color:var(--muted)}
.flag{color:var(--crimson);font-size:12.5px;margin-top:14px}

@media (max-width:720px){
  .lanes{grid-template-columns:repeat(2,minmax(0,1fr))}
  body{padding:16px 16px 56px}
  .one .big{font-size:36px}
}

/* ── the nine-canvas week ─────────────────────────────────────────────────
   The shell owns the grid, the lift and the ground. This owns only what goes
   INSIDE a canvas, which is the split ops/CANVAS-TEMPLATE.md asks for. */
.vista .big{font-size:34px;line-height:1.05;font-weight:650;
  font-variant-numeric:tabular-nums}
.vista .of{font-size:14px;font-weight:400;color:var(--muted)}
.vista .unmeasured{color:var(--ochre);font-size:13px;line-height:1.4}
.vista .q{color:var(--muted)}
.vista .bad{color:var(--crimson)}
.vista .good{color:var(--olive)}
.vista dl{display:grid;grid-template-columns:1fr auto;gap:2px 10px;font-size:12.5px}
.vista dt{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vista dd{text-align:right;font-variant-numeric:tabular-nums}

/* tasks */
.vista .task{border-top:1px solid var(--rule);padding:5px 0;font-size:12.5px;
  display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:start}
.vista .task:first-child{border-top:0}
.vista .task button{appearance:none;border:1px solid var(--rule);background:transparent;
  color:var(--muted);border-radius:4px;width:17px;height:17px;cursor:pointer;
  font:11px/1 monospace;padding:0;flex:none;margin-top:1px}
.vista .task button:hover{border-color:var(--teal);color:var(--teal)}
.vista .task.done{opacity:.5}
.vista .task.done .t{text-decoration:line-through}
.vista .task.blocked button{border-color:var(--crimson);color:var(--crimson);cursor:not-allowed}
.vista .task .why{color:var(--crimson);font-size:11.5px;display:block}
.vista .task .mine{color:var(--muted);font-size:11.5px}

/* A QUEUED POST, which is deliberately not a task. Same rhythm so the today
   canvas reads as one list, but the tick is replaced by the surface it is owed
   to — because a post is done when it is on X, not when somebody says so, and a
   checkbox here would be a way to mark a thread posted without posting it.
   Only names the pack publishes: an undefined var() is transparent, not an
   error, and this whole block would silently vanish. */
.vista .post{border-top:1px solid var(--rule);padding:5px 0;font-size:12.5px;
  display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:baseline}
.vista .post:first-child{border-top:0}
.vista .post .surf{font-size:10px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ochre);border:1px solid var(--rule);border-radius:3px;
  padding:1px 5px;white-space:nowrap}
.vista .post .t{font-weight:600}
.vista .post .mine{color:var(--muted);font-size:11.5px}
/* Late is the only state on this screen that shouts, and it should. */
.vista .post.late .surf{border-color:var(--crimson);color:var(--crimson)}
.vista .post.late .why{color:var(--crimson);font-size:11.5px;font-weight:600}

/* ── fitting, which the first version did not do ──────────────────────────
   Victor's screenshot showed "Mon" clipped, the KPI numbers cut off, and the
   channel and team lists rendering OUTSIDE their canvases onto the page. The
   shell deliberately sets no overflow on .canvas — it says so — so this is the
   page's job and the page had not done it.

   .canvas is already display:flex/column with min-height:0, so a .bd that is
   flex:1 with its own min-height:0 scrolls inside the box instead of spilling
   out of it. The h2 stays put above it. */
.vista .canvas > .bd{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
}
/* The top and bottom rows are shallow — about .227fr and .288fr of the frame.
   34px numerals did not fit in them, which is what clipped "Mon". These sizes
   are measured against the real rows by ops/test-week-fit.mjs, not guessed. */
.vista .big{font-size:26px;line-height:1.1}
.vista .canvas[data-space="talk"] .big{font-size:30px}
.vista [data-space="still"] .big{font-size:22px}
/* A long word in a dl must not widen the column — the shell warns that one
   unbroken string silently widens the whole composition. */
.vista dt{min-width:0;overflow-wrap:anywhere}
