/* ===== design export, up to the additions banner ===== */

:root {
  /* warm paper light theme */
  --ink:        #1c1b18;
  --ink-soft:   #54524b;
  --ink-mute:   #97948a;
  --ink-faint:  #c4c1b6;
  --paper:      #f7f6f1;
  --surface:    #fdfcf9;
  --surface-2:  #f1efe8;
  --line:       #e6e3da;
  --line-soft:  #efece4;

  /* single restrained accent — muted forest green */
  --accent:       oklch(0.55 0.075 150);
  --accent-soft:  oklch(0.55 0.075 150 / 0.12);
  --accent-line:  oklch(0.55 0.075 150 / 0.35);

  /* A person at the keys: driving or teaching (the computer-tab canvas). */
  --teach:       oklch(0.55 0.075 250);
  --teach-soft:  oklch(0.55 0.075 250 / 0.12);
  --teach-line:  oklch(0.55 0.075 250 / 0.35);

  /* status — desaturated, share lightness with accent */
  --live:  oklch(0.58 0.08 150);
  --work:  oklch(0.66 0.085 75);
  --stop:  oklch(0.58 0.10 28);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r: 7px;
  --shadow: 0 1px 2px rgba(28,27,24,.03), 0 12px 32px -20px rgba(28,27,24,.18);
  --shadow-lift: 0 1px 2px rgba(28,27,24,.04), 0 26px 60px -28px rgba(28,27,24,.30);

  --ease: cubic-bezier(.4,0,.2,1);
  /* View entry is a shade snappier than everything else. */
  --ease-view: cubic-bezier(.3,.9,.2,1);
}

[data-theme="dark"] {
  --ink:        #ecebe6;
  --ink-soft:   #b6b3aa;
  --ink-mute:   #797668;
  --ink-faint:  #46443d;
  --paper:      #121210;
  --surface:    #1a1815;
  --surface-2:  #201f1b;
  --line:       #2a2823;
  --line-soft:  #221f1b;

  --accent:       oklch(0.74 0.105 150);
  --accent-soft:  oklch(0.74 0.105 150 / 0.16);
  --accent-line:  oklch(0.74 0.105 150 / 0.40);

  --teach:       oklch(0.74 0.09 250);
  --teach-soft:  oklch(0.74 0.09 250 / 0.16);
  --teach-line:  oklch(0.74 0.09 250 / 0.40);

  --live:  oklch(0.74 0.105 150);
  --work:  oklch(0.78 0.10 78);
  --stop:  oklch(0.70 0.12 28);

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -24px rgba(0,0,0,.7);
  --shadow-lift: 0 1px 2px rgba(0,0,0,.5), 0 30px 70px -30px rgba(0,0,0,.85);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--mono);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  font-feature-settings: "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
#root { height: 100%; }
::selection { background: var(--accent-soft); }

/* ----- shared atoms ----- */
.kicker {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.mute { color: var(--ink-mute); }
.soft { color: var(--ink-soft); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
  display: inline-block;
  flex-shrink: 0;
}
.dot.live { background: var(--accent); box-shadow: 0 0 0 0 var(--accent-soft); animation: ping 2.4s var(--ease) infinite; }
.dot.work { background: var(--work); }
.dot.stop { background: var(--stop); }
/* A person at the keys is blue and steady (`.dot.teach`); watching pings via `.dot.live`. */
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 var(--accent-soft); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ===== app frame ===== */
.app {
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-rows: 60px 1fr 64px;
  grid-template-areas:
    "rail topbar"
    "rail main"
    "rail ambient";
  height: 100vh;
  width: 100vw;
}

/* ----- rail ----- */
.rail {
  grid-area: rail;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 16px;
  gap: 6px;
  background: var(--surface);
}
.rail .mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  position: relative;
}
.rail .mark .glyph {
  font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
  color: var(--ink);
}
.rail .mark .pip {
  position: absolute; top: -1px; right: -3px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: ping 2.4s var(--ease) infinite;
}
.rail nav { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.rail a {
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-decoration: none;
  cursor: pointer;
  padding: 11px 0;
  width: 100%;
  display: flex; justify-content: center;
  position: relative;
  transition: color .2s var(--ease);
}
/* The active rule spans the whole label, inside its 11px padding, so
   every entry carries the same mark; only the colour animates. */
.rail a::before {
  content: "";
  position: absolute; left: -4px; top: 11px; bottom: 11px;
  width: 2px;
  background: transparent;
  transition: background .22s var(--ease);
}
.rail a:hover { color: var(--ink); }
.rail a.active { color: var(--ink); }
.rail a.active::before { background: var(--accent); }
.rail a.alert { color: var(--accent); }
.rail a.alert::after {
  content: ""; position: absolute; top: 5px; left: 50%; translate: -50% 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  writing-mode: horizontal-tb; rotate: 180deg;
}
.rail .foot {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.rail .theme-btn {
  writing-mode: vertical-rl; rotate: 180deg;
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-mute); cursor: pointer; user-select: none;
  background: none; border: none; font-family: var(--mono);
  padding: 4px 0;
}
.rail .theme-btn:hover { color: var(--ink); }

/* ----- topbar ----- */
.topbar {
  grid-area: topbar;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: var(--surface);
}
.topbar .crumbs { display: flex; align-items: baseline; gap: 22px; font-size: 12px; color: var(--ink-mute); }
.topbar .crumbs b { color: var(--ink-soft); font-weight: 500; }
.topbar .crumbs .sep { color: var(--ink-faint); }
.topbar .right { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pill:hover { border-color: var(--ink-faint); color: var(--ink); }
.pill.attn { border-color: var(--accent-line); color: var(--accent); }
.icon-btn {
  background: none; border: none; font-family: var(--mono);
  color: var(--ink-mute); font-size: 12px; cursor: pointer;
  padding: 6px 8px; border-radius: var(--r);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ----- main ----- */
main {
  grid-area: main;
  overflow-y: auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
main:has(.lg-view) { overflow: hidden; }
/* One frame for every page (desk, approvals, projects, usage, memory): the
   same top, and an 1100px column centered by padding, so the page still
   scrolls from anywhere. */
.view, .projects-grid, .usage-page {
  padding: 46px max(56px, calc((100% - 1100px) / 2 + 56px)) 64px;
  box-sizing: border-box;
}
.lg-view { flex: 1; min-height: 0; }

/* page head */
.head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 46px;
}
.head h1 {
  margin: 0; font-weight: 500; font-size: 30px; letter-spacing: -0.025em;
  color: var(--ink); line-height: 1.05;
}
.head h1 .accent { color: var(--accent); }
.head .lede {
  color: var(--ink-mute); font-size: 12.5px; max-width: 29%;   /* 380 of the design's 1320 */
  text-align: right; line-height: 1.6;
}
.caret {
  display: inline-block; width: 9px; height: 0.92em;
  vertical-align: -0.06em;
  background: var(--accent); margin-left: 5px;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== desk: three column zones ===== */
.zones {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.95fr;
  gap: 0;
}
.zone { padding: 0 34px; min-width: 0; }
.zone:first-child { padding-left: 0; }
.zone:last-child { padding-right: 0; }
.zone + .zone { border-left: 1px solid var(--line); }
/* The desk's todos, recurring and scheduled (designs/tour-and-revamp). */
.desk-sub { margin-top: 34px; }
.desk-proj { margin-bottom: 16px; }
.desk-proj-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mute); cursor: pointer; padding: 4px 0 6px; }
.desk-proj-head:hover { color: var(--ink); }
.desk-open { font-size: 10.5px; }
.desk-task { display: flex; flex-direction: column; gap: 3px; padding: 5px 0; cursor: pointer; }
.desk-task-line { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink); }
.desk-task-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-task-count { font-size: 10.5px; color: var(--ink-mute); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.desk-task-sub { font-size: 10.5px; color: var(--ink-mute); padding-left: 15px; }
.desk-task.running .todo-dot { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.desk-task.running .desk-task-count { color: var(--accent); }
.desk-task.blocked .todo-dot { background: var(--work); }
.desk-task.later .todo-dot { background: transparent; border: 1px solid var(--ink-faint); }
.zone > header, .zone > div > header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.zone > header .n, .zone > div > header .n {
  font-size: 11px; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Approvals stay narrow: a question and its plan read as one column,
   however wide the page. */
.stack.appr { max-width: 47%; }   /* 620 of the design's 1320 */

/* ----- card ----- */
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  padding: 16px 16px 14px;
  transition: transform .18s var(--ease-view), box-shadow .18s, border-color .18s;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* View entry. `both` holds the from-state through any delay so nothing
   flashes at full opacity. */
@keyframes viewin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.viewin { animation: viewin .18s var(--ease-view) both; }
.card:hover { border-color: var(--ink-faint); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px;
}
.card .src { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.card .when { font-size: 10.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.tag {
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 100px; white-space: nowrap;
}
.tag.accent { color: var(--accent); border-color: var(--accent-line); }
.card .title { font-size: 13px; color: var(--ink); line-height: 1.45; margin-bottom: 4px; text-wrap: pretty; }
.card .body { font-size: 12px; color: var(--ink-soft); line-height: 1.55; text-wrap: pretty; }

/* plan block inside a card */
.plan {
  margin: 12px 0;
  border-left: 2px solid var(--accent-line);
  background: var(--surface-2);
  border-radius: 0 5px 5px 0;
  padding: 11px 13px;
  font-size: 11.5px; color: var(--ink-soft); line-height: 1.7;
}
.plan ol { margin: 0; padding-left: 18px; }
.plan ol li { margin-bottom: 3px; }
.plan ol li::marker { color: var(--ink-mute); }
.plan .toolrow { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 10px; color: var(--ink-mute);
  border: 1px solid var(--line); background: var(--surface);
  padding: 2px 7px; border-radius: 100px;
}

/* card actions */
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 13px; align-items: center; }
.actions .grow { flex: 1; }
.btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft);
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  transition: all .18s var(--ease);
}
.btn:hover { border-color: var(--ink-faint); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { border-color: var(--line); background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: default; }

textarea.note {
  width: 100%; min-height: 0; height: 0; opacity: 0; padding: 0; margin: 0; border: 0;
  background: var(--surface-2); color: var(--ink); font-family: var(--mono);
  font-size: 11.5px; border-radius: 6px; resize: none; outline: none;
  transition: height .25s var(--ease), opacity .25s var(--ease), padding .25s var(--ease), margin .25s var(--ease);
}
textarea.note.open { height: 58px; opacity: 1; padding: 9px 11px; margin: 10px 0 2px; border: 1px solid var(--line); }
textarea.note:focus { border-color: var(--accent-line); }

/* ----- list rows (tasks / watching) ----- */
.row {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r);
  padding: 13px 15px;
  display: flex; align-items: center; gap: 13px;
  font-size: 12.5px;
  /* The canvas's card lift (designs/*, desk, approvals and project cards). */
  transition: transform .18s var(--ease-view), box-shadow .18s, border-color .18s;
}
.row { animation: pop .22s var(--ease) both; }
.row:hover { border-color: var(--ink-faint); box-shadow: var(--shadow); transform: translateY(-2px); }
.row .label { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.row .label .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.row .label .text .src { color: var(--ink-mute); }
.row .when { color: var(--ink-mute); font-size: 10.5px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.spin {
  width: 11px; height: 11px; border: 1.5px solid var(--accent-line);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { rotate: 360deg; } }

/* expandable task with event log */
.row.col { flex-direction: column; align-items: stretch; gap: 0; }
.row .row-top { display: flex; align-items: center; gap: 13px; width: 100%; }
.events {
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; color: var(--ink-soft);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s var(--ease), opacity .3s var(--ease), margin .3s var(--ease), padding .3s var(--ease);
}
.events.open { max-height: 260px; overflow-y: auto; opacity: 1; }
.ev { display: flex; gap: 10px; line-height: 1.5; }
.ev .k { color: var(--ink-mute); min-width: 64px; flex-shrink: 0; }
.ev .ok { color: var(--accent); }

/* ----- empty state ----- */
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 12px;
  font-style: italic;
}
.empty .glyph { font-style: normal; display: block; color: var(--ink-faint); font-size: 18px; margin-bottom: 8px; }

/* ===== ambient command bar ===== */
.ambient {
  grid-area: ambient;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px 0 56px;
  position: relative;
}
.ambient .prompt { color: var(--accent); font-size: 13px; user-select: none; flex-shrink: 0; }
.ambient input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--mono); font-size: 14px; padding: 0;
}
.ambient input::placeholder { color: var(--ink-mute); }
.ambient .hints { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.ambient .hint { font-size: 10.5px; color: var(--ink-mute); display: flex; align-items: center; gap: 6px; }
kbd {
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 1px 6px; border-radius: 4px; font-size: 9.5px;
  font-family: var(--mono); color: var(--ink-soft); line-height: 1.6;
}

/* floating thought bubble that folds into a card */
.floaters {
  position: absolute; left: 56px; right: 28px; bottom: 64px;
  pointer-events: none; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  padding-bottom: 14px;
}
.floater {
  pointer-events: auto; max-width: 560px;
  background: var(--surface); border: 1px solid var(--ink-faint);
  border-radius: var(--r); padding: 12px 15px;
  font-size: 12.5px; color: var(--ink); line-height: 1.55;
  box-shadow: var(--shadow-lift);
  animation: floatup .3s var(--ease) both;
}
.floater .who { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px; }
.floater.fold { animation: foldaway .45s var(--ease) forwards; }
@keyframes floatup { from { opacity: 0; transform: translateY(12px); } }
@keyframes foldaway { to { opacity: 0; transform: translateY(-8px) scaleY(.5); } }

/* ===== chat view ===== */
.chat-wrap { display: flex; flex-direction: column; gap: 22px; max-width: 57.5%; }   /* 760 of the design's 1320 */
.msg { display: flex; flex-direction: column; gap: 5px; }
.msg .who { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.msg .bubble { font-size: 13px; line-height: 1.65; color: var(--ink-soft); white-space: pre-wrap; text-wrap: pretty; }
.msg.user .who { color: var(--accent); }
.msg.user .bubble { color: var(--ink); }

/* ===== computer view ===== */
.computer { position: relative; display: grid; grid-template-columns: 264px 1fr; gap: 0; height: 100%; }
.cv-files { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cv-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.cv-head .path { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* No `.cv-entries`: the shared tree scrolls itself (`.ft-rows`), so the
   column only gives it height. */
.cv-entry {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 6px 18px; cursor: pointer; font-size: 12px; color: var(--ink-soft);
  transition: background .12s var(--ease), color .12s var(--ease);
}
.cv-entry:hover { background: var(--surface-2); color: var(--ink); }
.cv-entry.sel { background: var(--accent-soft); color: var(--ink); }
.cv-entry .nm { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.cv-entry .nm .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Rename in place: the row becomes the field. Same border as the
   new-folder input, since both name a thing in the tree. */
.cv-rename {
  flex: 1; min-width: 0; background: var(--surface); color: var(--ink);
  border: 1px solid var(--accent-line); border-radius: 5px; padding: 2px 7px;
  font-family: inherit; font-size: 12px; outline: none;
}
.cv-entry .nm .g { color: var(--ink-mute); width: 12px; flex-shrink: 0; }
.cv-entry.dir .nm { color: var(--ink); }
.cv-entry .sz { font-size: 10px; color: var(--ink-mute); flex-shrink: 0; }
.cv-entry .meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Delete shows on hover only. The first click arms it (glyph becomes
   the word), the second acts; armed, it stays visible off-hover. */
.fsdel {
  min-width: 16px; height: 16px; display: inline-flex; align-items: center;
  justify-content: center; line-height: 1; font-size: 9px; color: var(--ink-faint);
  padding: 0 3px; border-radius: 4px; cursor: pointer; opacity: 0;
  transition: opacity .12s var(--ease);
}
.cv-entry:hover .fsdel,
/* The usage ledger's "didn't work" is the same control; without this it was
   invisible there until a row was flagged. */
.usage-row:hover .fsdel,
/* The project card borrows the same control and gesture. */
.proj-card:hover .fsdel { opacity: 1; }
.fsdel:hover { background: var(--line); color: var(--stop); }
.fsdel.armed { opacity: 1; font-size: 10px; color: var(--stop); }

/* Restore: shaped like .fsdel but not the danger colour, since it is
   recoverable. Armed, it names size and time, so it must not wrap. */
.fsrestore {
  min-width: 16px; height: 16px; display: inline-flex; align-items: center;
  justify-content: center; line-height: 1; font-size: 9px; color: var(--ink-faint);
  padding: 0 3px; border-radius: 4px; cursor: pointer; opacity: 0;
  transition: opacity .12s var(--ease);
}
.cv-entry:hover .fsrestore { opacity: 1; }
.fsrestore:hover { background: var(--line); color: var(--ink); }
.fsrestore.armed { opacity: 1; font-size: 10px; color: var(--ink); white-space: nowrap; }

/* The undo bar sits under the rows, where the thing vanished, not in a
   toast that times out before it is read. */
.ft-undo {
  margin: 10px 18px 0; display: flex; align-items: center; gap: 9px;
  border: 1px dashed var(--line); border-radius: 6px; padding: 7px 10px;
  font-size: 11px; color: var(--ink-mute);
}
.ft-undo .what { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-undo button {
  flex-shrink: 0; background: none; border: none; font-family: var(--mono);
  font-size: 11px; color: var(--accent); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; padding: 0;
}
.ft-undo button:disabled { opacity: .5; cursor: default; }
.cv-read { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.cv-read-head {
  padding: 11px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0;
  font-size: 11px; color: var(--ink-mute); display: flex; justify-content: space-between;
  align-items: center; gap: 14px;
}
.cv-read-body {
  flex: 1; overflow: auto; padding: 22px 26px; margin: 0;
  font-size: 12px; line-height: 1.75; color: var(--ink-soft);
  white-space: pre-wrap; word-break: break-word;
}
.cv-read-body .ln { color: var(--ink-faint); user-select: none; margin-right: 18px; }

/* ===== settings and login: modal and overlay ===== */
/* The one overlay backdrop. A new modal reuses this rather than pasting
   another copy. */
.overlay, .bw-over, .np-over {
  position: fixed; inset: 0; z-index: 900; padding: 48px;
  display: grid; place-items: center;
  background: color-mix(in oklch, var(--paper) 55%, transparent);
  backdrop-filter: blur(6px) saturate(1.1);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
/* Settings (designs/feedback): a fixed head, a body that scrolls, a fixed foot. */
.overlay.settings-over { z-index: 950; }
.modal {
  width: min(520px, 100%); max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--ink-faint);
  border-radius: 12px; box-shadow: var(--shadow-lift);
  animation: pop .22s var(--ease) both;
}
.set-head { padding: 24px 26px 0; flex-shrink: 0; }
.set-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 26px 22px; display: flex; flex-direction: column; gap: 22px; }
.set-body section > .kicker { display: block; margin-bottom: 10px; }
.set-open {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
}
.set-open + .set-open { margin-top: 8px; }
.set-open:hover { border-color: var(--ink-faint); background: var(--surface-2); }
.set-line { min-width: 0; flex: 1; font-size: 12.5px; color: var(--ink); }
.set-two { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.set-sub { font-size: 10.5px; color: var(--ink-mute); }
.mail-state { font-size: 11px; color: var(--ink-mute); padding: 6px 20px; display: flex; gap: 10px; align-items: baseline; }
.mail-state.failed { color: oklch(0.50 0.09 70); }
.mail-state.ready { color: var(--ink-soft); }
.set-go { flex-shrink: 0; font-size: 11px; color: var(--accent); }
.set-switch input { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; }
.set-note { font-size: 11px; color: var(--ink-mute); margin-bottom: 6px; }
.set-note.bad { color: var(--stop); }
.set-conns { display: flex; flex-direction: column; }
.set-conn { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--surface-2); }
.set-conn-name { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.set-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--ink-faint); }
.set-dot.on { background: var(--accent); }
.set-nm { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-st { font-size: 10.5px; flex-shrink: 0; color: var(--ink-mute); }
.set-st.on { color: var(--accent); }
.set-btn {
  flex-shrink: 0; font-family: inherit; font-size: 10.5px; padding: 4px 11px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); text-decoration: none;
}
.set-btn:hover { border-color: var(--ink-faint); }
.set-btn.fill { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.set-btn:disabled { opacity: .45; cursor: default; }
.set-at {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface-2); display: grid; place-items: center; font-size: 10.5px; color: var(--ink-soft);
}
/* The Slack bot row (designs/inbox_design): a head line, then what it is in. */
.set-slack { flex-direction: column; align-items: stretch; gap: 10px; cursor: default; }
.set-slack.on { border-color: var(--accent-line); }
.set-slack.removed { border-color: var(--stop); }
.set-slack-head { display: flex; align-items: center; gap: 12px; }
.set-handle { font-size: 12px; color: var(--ink-mute); margin-left: 4px; }
.set-state { display: flex; align-items: center; gap: 6px; }
.set-slack.on .set-state { color: var(--accent); }
.set-slack.on .set-dot { background: var(--accent); }
.set-slack.removed .set-state { color: var(--stop); }
.set-slack.removed .set-dot { background: var(--stop); }
.set-remove:hover { color: var(--stop); }
.set-slack-more {
  display: flex; flex-direction: column; gap: 7px; padding-top: 10px; border-top: 1px solid var(--surface-2);
  font-size: 11px; color: var(--ink-soft);
}
.set-slack-more > span { display: flex; gap: 10px; align-items: baseline; }
.set-slack-more .k { width: 70px; flex-shrink: 0; color: var(--ink-mute); }
.set-chans { display: flex; gap: 5px; flex-wrap: wrap; }
.set-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-copy { flex-shrink: 0; font-size: 11px; color: var(--ink-mute); cursor: pointer; }
.set-copy.on { color: var(--accent); }
.set-name { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.set-name input {
  font-family: inherit; font-size: 12.5px; padding: 8px 11px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--ink); outline: none;
}
.set-name input:focus { border-color: var(--accent-line); }
.set-name .set-note { margin: 0; }
.set-name-go { display: flex; justify-content: flex-end; gap: 8px; }
.set-who { font-size: 12.5px; color: var(--ink-soft); }
.set-who b { font-weight: 500; color: var(--ink); }
.set-foot { border-top: 1px solid var(--line); padding: 13px 26px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; font-size: 11px; }
.set-foot .grow { flex: 1; }
.set-foot .set-btn { font-size: 11.5px; padding: 6px 14px; color: var(--ink); }
.set-signout { background: none; border: none; padding: 0; font-family: inherit; font-size: 11.5px; color: var(--stop); cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.modal h2 { margin: 0 0 4px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.modal .sub { margin: 0; color: var(--ink-mute); font-size: 12px; }
.btn.danger { color: var(--stop); border-color: transparent; }
.btn.danger:hover { border-color: var(--stop); }

/* ===== auth (`.login` is the boot splash) ===== */
.login { position: fixed; inset: 0; z-index: 1000; background: var(--paper); transition: opacity .45s var(--ease); }
.login.gone { opacity: 0; pointer-events: none; }

.auth {
  position: fixed; inset: 0; z-index: 1000; background: var(--paper);
  display: grid; grid-template-columns: 1.05fr 1fr;
  transition: opacity .45s var(--ease);
}
.auth.gone { opacity: 0; pointer-events: none; }

.auth-aside {
  border-right: 1px solid var(--line); background: var(--surface);
  padding: 56px 56px 44px; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-mark { display: flex; align-items: center; gap: 10px; }
.auth-mark .glyph { font-weight: 700; font-size: 18px; letter-spacing: -0.04em; }
.auth-mark .pip {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  translate: -6px -8px; animation: ping 2.4s var(--ease) infinite;
}
.auth-mark .word { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-left: -4px; }
.auth-pitch { max-width: 460px; }
.auth-pitch h1 {
  white-space: pre-line;
  margin: 0 0 18px; font-weight: 500; font-size: 38px; line-height: 1.08;
  letter-spacing: -0.03em; text-wrap: pretty; color: var(--ink);
}
/* The caret after the headline: a terminal's idea of a product page. */
.auth-pitch h1 .caret {
  display: inline-block; width: 10px; height: .9em; vertical-align: -0.06em;
  background: var(--accent); margin-left: 6px; animation: authblink 1.2s steps(1) infinite;
}
@keyframes authblink { 50% { opacity: 0; } }
.auth-pitch p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-soft); text-wrap: pretty; }
.auth-tags { display: flex; gap: 26px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

.auth-right { display: grid; place-items: center; padding: 48px 40px; min-width: 0; }
.auth-card { width: 100%; max-width: 348px; display: flex; flex-direction: column; gap: 22px; }
.auth-head { display: flex; flex-direction: column; gap: 6px; }
.auth-head .kicker { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }
.auth-head .title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.auth-note { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }

.auth-fields { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field .lab-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.auth-field .lab { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.auth-field input {
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: 10px 12px; font-family: var(--mono); font-size: 13px; color: var(--ink);
  outline: none; transition: border-color .2s var(--ease); width: 100%;
}
.auth-field input:focus { border-color: var(--accent-line); }
.auth-secret { position: relative; display: block; }
.auth-secret input { padding-right: 58px; }
.auth-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 4px 6px; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-mute);
}
.auth-reveal:hover, .auth-reveal:focus-visible { color: var(--ink); }
.auth-rule { font-size: 11px; color: var(--ink-mute); }
.auth-rule.met { color: var(--accent); }
.auth-forgot { font-size: 10.5px; color: var(--ink-mute); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.auth-forgot:hover { color: var(--ink); }
.auth-note.quiet { font-size: 11.5px; color: var(--ink-mute); }

.auth-actions { display: flex; flex-direction: column; gap: 11px; }
.auth-cta {
  text-align: center; font-size: 12.5px; font-family: var(--mono);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 7px; cursor: pointer; transition: all .18s var(--ease);
}
.auth-cta:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.auth-cta:disabled { opacity: .45; cursor: default; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.auth-or .rule { flex: 1; height: 1px; background: var(--line); }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 12.5px; font-family: var(--mono);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 10px 14px; border-radius: 7px; cursor: pointer; transition: all .18s var(--ease);
}
.auth-google:hover:not(:disabled) { border-color: var(--ink-faint); background: var(--surface-2); }
.auth-google:disabled { opacity: .45; cursor: default; }
.auth-google .g {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--ink-faint);
  display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--ink-soft);
}
.auth-problem { color: var(--stop); font-size: 11.5px; margin: 0; line-height: 1.6; }
.auth-switch { font-size: 11.5px; color: var(--ink-mute); text-align: center; line-height: 1.6; }
.auth-link { color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* One column under the fold: the panel goes, the card stays. */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
::-webkit-scrollbar-track { background: transparent; }

/* ===== looking glass ===== */
.lg-view { padding: 0; display: flex; flex-direction: column; height: 100%; }
.lg-ctxline { display: flex; align-items: center; gap: 14px; padding: 18px 56px 22px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.lg-ctxline .path b { color: var(--ink); font-weight: 500; }
.lg-ctxline .crumb { color: var(--ink-faint); margin: 0 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); padding: 4px 10px; border-radius: 100px; min-width: 0; max-width: 46ch; }
/* A parked item's goal can be long: one line, clipped, the whole in its title. */
.status-pill .status-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-budget { font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.lg-ctxline .grow { flex: 1; }
.lg-ctrls { display: flex; gap: 6px; }
.icon-round { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 9px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .18s var(--ease); }
.icon-round:hover { border-color: var(--ink-faint); color: var(--ink); }
.icon-round.danger { color: var(--stop); }
.icon-round.danger:hover { border-color: var(--stop); }
.back-btn { background: none; border: none; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); cursor: pointer; padding: 0; margin-right: 4px; }
.back-btn:hover { color: var(--ink); }

.projects-grid { flex: 1; overflow-y: auto; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
.proj-card { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 18px 18px 16px; cursor: pointer; transition: transform .18s var(--ease-view), box-shadow .18s, border-color .18s; }
.proj-card { animation: pop .22s var(--ease) both; }
.proj-card:hover {
  border-color: var(--ink-faint); transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(28, 27, 24, .03), 0 14px 34px -22px rgba(28, 27, 24, .2);
}
.pc-status { position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; }
.pc-status.work { background: var(--accent); animation: ping 2.4s var(--ease) infinite; }
.pc-status.attn { background: var(--work); }
.pc-status.err { background: var(--stop); }
.pc-status.ok { background: var(--ink-faint); }
.pc-name { font-size: 13.5px; color: var(--ink); margin-bottom: 6px; padding-right: 18px; line-height: 1.4; }
.pc-sess { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.5; }
.pc-dir { font-size: 11.5px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 13px; }
.pc-when { display: flex; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 11px; font-size: 10.5px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-when .grow { flex: 1; }

.lg-detail { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lg-body { flex: 1; display: grid; grid-template-columns: 1fr 300px; grid-template-rows: 1fr; min-height: 0; overflow: hidden; }
/* Expand widens the panel in place, not a modal. SessionDetail sets the
   columns inline from the divider's measured width. */
.stream-wrap { min-height: 0; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.stream { flex: 1; min-width: 0; overflow-y: auto; padding: 26px 40px 20px; }
/* Everything in the conversation lives in here, so its growth is what the
   stream follows (a ResizeObserver pins the bottom while the reader is there). */
.stream-body { display: flex; flex-direction: column; gap: 16px; }

/* The page never scrolls sideways: `anywhere` (not `break-word`) also
   shrinks the intrinsic min width; the feed clips whatever is left. */
.stream { overflow-x: hidden; }
/* "load earlier": a long session opens on its last page; the rest is above. */
.stream .load-earlier { align-self: center; }
/* A new transcript text class must be added to this list. */
.msg .bubble,
.ev-assist p,
.ev-user .said,
.ev-tool .args,
.ev-result pre,
.ev-reasoning pre,
.ev-status,
.plan-drafting {
  overflow-wrap: anywhere;
}
.ev-block { max-width: 760px; animation: pop .22s var(--ease) both; }
.ev-assist { font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.ev-assist .who { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.ev-assist p { margin: 0; }
.ev-tool { display: flex; flex-direction: column; gap: 6px; }
.ev-tool .row1 { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-soft); }
.ev-tool .arrow { color: var(--accent); font-weight: 600; }
.ev-tool .name { color: var(--ink); }
.ev-tool .kicker { margin-left: 2px; }
.ev-tool .args { margin-left: 20px; border-left: 2px solid var(--line); padding: 8px 12px; font-size: 11px; color: var(--ink-mute); white-space: pre-wrap; cursor: pointer; line-height: 1.65; }
/* One whole line: `nowrap` is the line, `display: block` is what makes
   `text-overflow` apply; a fixed height would only clip the text. */
.ev-tool .args.collapsed {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-result { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 13px 15px; }
.ev-result.error { border-left: 3px solid var(--stop); background: var(--stop-soft, var(--surface-2)); }
.ev-result .rhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ev-result .rhead .src { font-size: 11px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.ev-result .rhead .expand { font-size: 10.5px; color: var(--ink-mute); cursor: pointer; background: none; border: none; font-family: var(--mono); text-decoration: underline; text-underline-offset: 2px; }
.ev-result .rhead .expand:hover { color: var(--ink); }
.ev-result pre { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); white-space: pre-wrap; line-height: 1.6; }
/* Clipped on a line boundary: four whole lines, computed from the font
   values above so they cannot drift. The fade says there is more. */
.ev-result pre:not(.open) {
  max-height: calc(11px * 1.6 * 4);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent);
}
.ev-result .note { margin-top: 8px; font-size: 10.5px; color: var(--ink-mute); }
.ev-result.error .note { color: var(--stop); }
.ev-status { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--ink-mute); }
/* An auto-approval is a decision, not progress: no spinner, the tag
   carries it, in the status line's muted weight. */
.ev-auto .tag { text-transform: uppercase; letter-spacing: 0.04em; font-size: 9.5px; }
/* Waiting, not working: the same muted register as the auto badge. */
.ev-retry .tag { text-transform: uppercase; letter-spacing: 0.04em; font-size: 9.5px; }
/* Queued behind the one computer: information, not an alarm. */
.ev-wait .tag { text-transform: uppercase; letter-spacing: 0.04em; font-size: 9.5px; }
.ev-ask { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r); padding: 13px 15px; font-size: 12.5px; color: var(--ink); }
.ev-ask .who { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ev-ask .opts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ev-ask.settled { opacity: .55; background: transparent; }
.ev-ask.ask-flash { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .3s; }
.ev-ask .opt { font-size: 11px; border: 1px solid var(--accent-line); color: var(--accent); background: var(--surface); padding: 5px 11px; border-radius: 100px; cursor: pointer; transition: all .15s var(--ease); }
.ev-ask .opt:hover { background: var(--accent); color: var(--surface); border-color: var(--accent); }
/* The composer grows with its content; `flex-start` keeps the glyph and
   chip level with the first line rather than the middle. */
.lg-composer { position: relative; border-top: 1px solid var(--line); background: var(--surface); display: flex; align-items: flex-start; gap: 12px; padding: 12px 40px; flex-shrink: 0; }
.lg-composer .prompt { color: var(--accent); font-size: 13px; user-select: none; flex-shrink: 0; line-height: 22px; }
.lg-composer > .attach, .lg-composer > .tb-chip { margin-top: 1px; }
/* Height comes from the component's `grow` handler and is capped here.
   Not `field-sizing` as well: two things must not size one box. */
.lg-composer textarea {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--mono); font-size: 13px; line-height: 22px;
  padding: 0; margin: 0; resize: none; overflow-y: auto;
  min-height: 22px; max-height: 33vh;
  overflow-wrap: anywhere;
}
.lg-composer textarea::placeholder { color: var(--ink-mute); }
.lg-composer .attach { font-size: 10.5px; color: var(--ink-mute); border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px; cursor: pointer; flex-shrink: 0; background: var(--surface); }
.lg-composer .attach:hover { color: var(--ink); border-color: var(--ink-faint); }

.ctx-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.todo-block { padding: 16px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.todo-block .kicker { display: block; margin-bottom: 10px; }
.todo-list { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.todo-more { font-size: 11.5px; color: var(--ink-mute); cursor: pointer; }
.todo-more:hover { color: var(--ink); }
/* The session's items (designs/inbox_design, the side panel's "todo"). */
.todo-note { font-size: 11.5px; font-style: italic; color: var(--ink-mute); }
.todo-group { display: flex; flex-direction: column; gap: 3px; }
.todo-group.done { opacity: .5; }
.todo-row { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.todo-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--ink-faint); }
.todo-group.running .todo-dot { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.todo-group.blocked .todo-dot { background: var(--work); }
.todo-name { flex: 1; min-width: 0; font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-close { flex-shrink: 0; font-size: 10.5px; color: var(--ink-mute); cursor: pointer; visibility: hidden; }
.todo-row:hover .todo-close { visibility: visible; }
.todo-close:hover { color: var(--ink); }
.todo-count { flex-shrink: 0; font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); }
.todo-group.running .todo-count { color: var(--accent); }
.todo-group.blocked .todo-count, .todo-why, .todo-step.blocked { color: oklch(0.50 0.09 70); }
.todo-why.next { color: var(--ink-mute); cursor: default; }
.todo-why { margin: -2px 0 4px 15px; font-size: 10.5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-step { margin-left: 15px; font-size: 11px; line-height: 1.45; color: var(--ink-soft); }
.todo-step.done { color: var(--ink-mute); text-decoration: line-through; }
.todo-step .following-tag { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--accent); }
.ev-handback { border-left: 2px solid var(--accent-line); padding: 6px 10px; font-size: 12.5px; color: var(--ink-soft); }
.ev-procedure { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 4px; }
.ctx-tabs { display: flex; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ctx-tabs button { flex: 1; background: none; border: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-mute); padding: 13px 0 0; cursor: pointer; position: relative; transition: color .2s var(--ease); }
.ctx-tabs button.active { color: var(--ink); }
.ctx-tabs .tab-label { position: relative; display: inline-block; padding-bottom: 13px; }
.ctx-tabs button.active .tab-label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.ctx-content { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 0; animation: viewin .18s var(--ease-view) both; }
/* Holding the file tree, the column stops scrolling itself: the tree
   scrolls its own rows, as in the Files tab. */
.ctx-content.ctx-tree { overflow: hidden; display: flex; flex-direction: column; padding: 16px 0 0; }
/* `display: block` is the fix: this <label> wraps a hidden input; an
   inline box's vertical padding bleeds over the rows above. */
.dropzone { display: block; margin: 22px 18px 4px; border: 1px dashed var(--line); border-radius: var(--r); padding: 20px 12px; text-align: center; font-size: 11px; color: var(--ink-mute); font-style: italic; cursor: pointer; }
/* The Files tab's green, and it names the target folder. */
/* The session panel's zone sits in the feedback ?'s corner, so it ends above it. */
.ctx-tree .dropzone { margin-bottom: 64px; }
.dropzone.over { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
/* The folder picker, drawn as a distinct target inside the label; a
   click anywhere else takes files. */
.dropzone-folder { display: inline-block; margin-left: 6px; font-style: normal; text-decoration: underline; text-underline-offset: 2px; }
.dropzone-folder:hover { color: var(--accent); }

/* One file tree in both scopes: it fills what it is given and only its
   rows scroll. */
.ft { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ft-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; }

/* working files — the project's linked folders */
.wf-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 18px 10px;
}
.wf-link {
  font-size: 10.5px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); padding: 3px 10px; border-radius: 6px; cursor: pointer;
  font-family: var(--mono);
}
.wf-link:hover { border-color: var(--ink-faint); color: var(--ink); }
.wf-link.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); }
.wf-picker {
  margin: 0 18px 10px; border: 1px solid var(--accent-line); border-radius: var(--r);
  background: var(--surface); overflow: hidden; display: flex; flex-direction: column;
}
.wf-choice {
  display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 8px 11px;
  cursor: pointer; color: var(--ink-soft);
}
.wf-choice:hover { background: var(--surface-2); color: var(--ink); }
.wf-choice .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-choice .n { font-size: 10px; color: var(--ink-mute); flex-shrink: 0; }
.wf-none { font-size: 11px; color: var(--ink-faint); font-style: italic; padding: 8px 11px; }
/* Claims are fixed per session, so a new link is seen next session. */
.wf-note {
  font-size: 10px; color: var(--ink-mute); padding: 7px 11px;
  border-top: 1px solid var(--line-soft); background: var(--surface-2); line-height: 1.5;
}
.mem-note { margin: 0 18px 12px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; padding-bottom: 12px; border-bottom: 1px dashed var(--line-soft); }
.mem-note .k { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px; }

.app.no-ambient { grid-template-rows: 60px 1fr 0px; }
@media (max-width: 1080px) {
  .zones { grid-template-columns: 1fr; }
  .zone { padding: 0; border-left: none !important; }
  .zone + .zone { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
  .view, .projects-grid, .usage-page { padding: 32px 28px 56px; }
  .head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .head .lede { text-align: left; }
}
@media (max-width: 720px) {
  .ambient { padding-left: 20px; }
  .ambient .hints { display: none; }
  .floaters { left: 20px; right: 20px; }
}

/* ===== additions; the design export ends here ===== */

/* The login card's fields. */
.login-card .field + .field { margin-top: 14px; }
.login-card .problem { color: var(--stop); font-size: 11.5px; margin: 14px 0 0; }

/* Sent but not yet echoed by the log: present, visibly unsettled. */
.ev-assist.pending .md { opacity: .5; }

/* A reply's markdown, rendered by markdown-it. Sized to sit in the stream,
   not to read as a document: headings are emphasis, not banners. */
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md pre, .md blockquote, .md table { margin: 0 0 10px; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
.md h1, .md h2 { font-size: 14px; }
.md ul, .md ol { padding-left: 20px; }
.md li { margin: 2px 0; }
.md li > p { margin: 0; }
.md strong { color: var(--ink); font-weight: 600; }
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.md code { background: var(--surface-2); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.md pre { background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; overflow-x: auto; }
.md pre code { background: none; padding: 0; white-space: pre; overflow-wrap: normal; }
.md blockquote { border-left: 2px solid var(--line, var(--surface-2)); padding-left: 12px; color: var(--ink-mute); }
.md table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 12px; }
.md th, .md td { border: 1px solid var(--surface-2); padding: 4px 8px; text-align: left; }
.md th { color: var(--ink); font-weight: 600; }
.md hr { border: 0; border-top: 1px solid var(--surface-2); margin: 12px 0; }

/* The browser's frames in the context panel. */
.ctx-content .frame { display: block; width: 100%; }
.ctx-content .waiting { padding: 26px 18px; text-align: center; font-size: 11px; color: var(--ink-mute); font-style: italic; }

/* A failure with nowhere else to go. */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 56px 18px; padding: 11px 15px;
  border: 1px solid var(--stop); border-radius: var(--r);
  background: var(--surface); font-size: 12px; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.banner button { background: none; border: none; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); cursor: pointer; }
.banner button:hover { color: var(--ink); }

/* The user's turn in the stream, set on the right. */
.ev-user { align-self: flex-end; max-width: 620px; }
.ev-user .who { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ev-user .who.from { font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--ink-mute); }
.ev-user .said {
  background: var(--surface-2); border-radius: var(--r); padding: 10px 14px;
  font-size: 12.5px; color: var(--ink); line-height: 1.6; white-space: pre-wrap;
}
.ev-lifecycle, .ev-done, .ev-transform {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); text-align: center; padding: 4px 0;
}
/* A compaction's summary reads as prose, not as the card's caps line. */
.ev-transform pre { text-transform: none; letter-spacing: normal; text-align: left; }
.ev-reasoning { font-size: 11.5px; color: var(--ink-mute); }
.ev-reasoning .toggle { background: none; border: none; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.ev-reasoning pre { margin: 6px 0 0; white-space: pre-wrap; font-size: 11px; line-height: 1.7; }

/* An ask answered in the window: the chips plus a free-text field; the item
   card's answer box wears the same field. */
.ev-ask .answer { display: flex; gap: 8px; margin-top: 10px; }
.ev-ask .answer input, .actions input.answer {
  flex: 1; background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: 100px; padding: 5px 12px; font-family: var(--mono);
  font-size: 11px; color: var(--ink); outline: none;
}

/* The computer's file list: loading and binary states. */
.cv-entry.loading { font-style: italic; color: var(--ink-mute); }
.cv-binary { padding: 22px 26px; font-size: 12px; color: var(--ink-mute); font-style: italic; }

/* Zones scroll on their own. */
.zone .stack { max-height: calc(100vh - 300px); overflow-y: auto; padding-right: 2px; }

/* ===== tool budget: chip and panel; only the list scrolls ===== */
.tb-chip {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0; cursor: pointer; user-select: none;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r); padding: 5px 9px;
  font-family: var(--mono);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.tb-chip:hover { border-color: var(--ink-faint); }
.tb-chip.open { border-color: var(--accent-line); background: var(--accent-soft); }
.tb-chip .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.tb-chip .n { font-size: 11.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-chip .caretglyph { font-size: 8px; color: var(--ink-mute); }
.tb-pip { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--ink-faint); }
.tb-pip.on { background: var(--accent); }
.tb-pip.stop { background: var(--stop); }

.tb-scrim { position: absolute; inset: 0; bottom: 100%; z-index: 30; }
.tb-panel {
  position: absolute; left: 40px; bottom: calc(100% + 10px); z-index: 40;
  width: 400px; max-width: calc(100% - 80px);
  max-height: min(440px, calc(100vh - 200px));
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--ink-faint);
  border-radius: 12px; box-shadow: var(--shadow-lift);
  overflow: hidden;
  animation: pop .22s var(--ease) both;
}
/* `pop` is defined once, in the design section. Do not redefine it. */

.tb-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.tb-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.tb-count { font-size: 11.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-meter { height: 3px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.tb-fill { height: 100%; border-radius: 100px; background: var(--accent); transition: width .28s var(--ease), background .28s var(--ease); }
.tb-fill.work { background: var(--work); }
.tb-fill.stop { background: var(--stop); }
.tb-note { margin-top: 10px; font-size: 10.5px; color: var(--ink-mute); line-height: 1.6; }

.tb-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0; }
.tb-empty { padding: 18px; font-size: 11.5px; color: var(--ink-mute); font-style: italic; text-align: center; }
.tb-row { display: flex; align-items: center; gap: 11px; padding: 9px 18px; cursor: pointer; }
.tb-row:hover { background: var(--surface-2); }
/* Refused: dim, unclickable, and the row says why. No request. */
.tb-row.blocked { opacity: .5; cursor: default; }
.tb-row.blocked:hover { background: transparent; }
.tb-box {
  width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 9px; line-height: 1;
  color: var(--surface); border: 1px solid var(--ink-faint); background: var(--surface);
}
.tb-row.on .tb-box { border-color: var(--accent); background: var(--accent); }
.tb-name { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tb-name .nm { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-row.on .tb-name .nm { color: var(--ink); }
.tb-name .sub { font-size: 10px; color: var(--ink-mute); letter-spacing: .04em; }
.tb-n { font-size: 10.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tb-row.on .tb-n { color: var(--accent); }

.tb-foot {
  border-top: 1px solid var(--line); background: var(--surface-2);
  padding: 11px 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tb-refused { flex: 1; min-width: 0; font-size: 10px; color: var(--stop); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-reset {
  font-size: 10.5px; color: var(--ink-soft); border: 1px solid var(--line);
  background: var(--surface); padding: 4px 10px; border-radius: 100px;
  cursor: pointer; flex-shrink: 0; font-family: var(--mono);
}
.tb-reset:hover { border-color: var(--ink-faint); color: var(--ink); }
.tb-reset:disabled { opacity: .5; cursor: default; }

/* ===== browser popout: the panel notices, the popout reads ===== */
.bw-card { margin: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.bw-chrome { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.bw-where { flex: 1; min-width: 0; font-size: 10px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* In the rail the chip gives way first, so the name never collapses. */
.bw-card .bw-where { flex: 0 0 auto; }
.bw-card .comp-chip { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bw-card .bw-chrome .bw-expand { margin-left: auto; }
.bw-fps { font-size: 10px; color: var(--ink-mute); letter-spacing: .1em; text-transform: uppercase; flex-shrink: 0; }
.bw-expand, .bw-close {
  flex-shrink: 0; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-mute); font-size: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: var(--mono);
}
.bw-expand { width: 20px; height: 20px; }
.bw-close { width: 24px; height: 24px; border-radius: 50%; font-size: 10px; color: var(--ink-soft); }
.bw-expand:hover, .bw-close:hover { color: var(--ink); border-color: var(--ink-faint); }
.bw-shot { cursor: zoom-in; display: grid; place-items: center; background: var(--paper); }
.bw-shot.big { cursor: default; }
/* The screen: ONE box in the box's own shape (1280x800), fitted to the
   surface and centred; the letterbox around it is the plain background.
   The frame, every placeholder, the ring and the covers are this box,
   so a resize rescales them together and none can drift. */
.bw-screen { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.bw-shot.big { container-type: size; }
.bw-shot.big .bw-screen { width: min(100cqw, 160cqh); }
.bw-screen > .frame, .bw-screen > .bw-hatch { position: absolute; inset: 0; width: 100%; height: 100%; }
.bw-screen > .frame { display: block; }
.bw-screen.held::after, .bw-screen.paused::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--teach);
}
.bw-screen.paused::after { box-shadow: inset 0 0 0 2px var(--ink-faint); }
/* The hatch holds a sentence and sometimes a control, so it stacks. */
.bw-hatch {
  display: grid; place-items: center; align-content: center; gap: 10px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(135deg, var(--line-soft) 0 6px, var(--paper) 6px 12px);
}
.pill-flat {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); background: var(--surface);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px;
}
.bw-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 0; font-size: 10px; color: var(--ink-mute); }
.bw-link { background: none; border: none; font-family: var(--mono); font-size: 10px; color: var(--ink-mute); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.bw-link:hover { color: var(--ink); }

/* The computer pane reuses the browser pane's card, shot and overlay
   (`.bw-*`); only the machine's state and holder are new. */
.comp-off {
  margin: 0 18px; border: 1px dashed var(--line); border-radius: 7px;
  padding: 26px 14px; text-align: center; font-size: 11px;
  color: var(--ink-mute); font-style: italic; line-height: 1.6;
}
.comp-off.wakeable { cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.comp-off.wakeable:hover { border-color: var(--ink-faint); color: var(--ink-soft); }
.comp-said { display: flex; align-items: center; gap: 8px; min-width: 0; }
.comp-chip {
  flex-shrink: 0; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--ink-soft); background: var(--surface); white-space: nowrap;
}
/* The foot is 260px and holds three things; the chip must stay whole,
   so the stream's word is what truncates. */
.comp-said [data-testid="computer-status"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-state="held_by_human"] .comp-chip { border-color: var(--teach-line); color: var(--teach); background: var(--teach-soft); }
.dot.teach { background: var(--teach); }
/* The ring says whose hands are on the screen. */
/* Teach is the lighter of the two takes; hand back is a person's own. */
.comp-take.teach, .comp-take.back { background: var(--surface); border-color: var(--teach); color: var(--teach); }
.comp-take.back { background: var(--teach-soft); }
.comp-take.teach:hover, .comp-take.back:hover { background: var(--teach); border-color: var(--teach); color: var(--surface); }
.comp-take {
  flex-shrink: 0; font-family: var(--mono); font-size: 10.5px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.comp-take:hover { background: var(--accent); border-color: var(--accent); }
/* Disabled must look disabled: a control that reads live and does
   nothing is worse than one that reads not ready. */
.comp-take:disabled {
  cursor: not-allowed; opacity: .45;
  background: none; color: var(--ink-mute); border-color: var(--line);
}

/* One footer, three items: control left, reset centre, rate right. The
   3-column grid keeps the centre centred when a side item is empty. One
   fixed line: why input is not landing swaps into the control string,
   and `input_unavailable` is the computer's fault, so it warns. */
.comp-foot-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 34px; flex-shrink: 0; padding: 0 16px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
}
.comp-foot-mode { justify-self: start; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-foot-mode[data-kind="input_unavailable"] { color: var(--accent); }
.comp-foot-row .comp-reset { justify-self: center; }
.comp-foot-rate { justify-self: end; }

/* The hand-back confirm: a small card centred in the overlay. */
.comp-confirm {
  background: var(--surface); border: 1px solid var(--ink-faint); border-radius: 12px;
  padding: 18px 20px; max-width: 340px; box-shadow: var(--shadow-lift);
  font-size: 13px; color: var(--ink);
}
.comp-confirm-row { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

/* The reset control sits low and plain: it is the only control here
   that destroys anything, and the naming confirm guards it. */
.comp-reset-row {
  display: flex; justify-content: center;
  padding: 8px 16px; border-top: 1px solid var(--line-soft);
}
.comp-reset { color: var(--ink-faint); }
.comp-reset:hover { color: var(--ink-soft); }
.comp-reset:disabled { cursor: not-allowed; opacity: .55; }
/* The confirm's cost list: quiet, every line the same weight, so it
   says plainly what goes. */
.comp-reset-costs {
  margin: 12px 0 0; padding-left: 18px;
  font-size: 12px; line-height: 1.7; color: var(--ink-soft);
}

/* The buddy-prompt bubble under the picture, present only while buddy
   holds the machine. Not the relay and not a take. */
.comp-bubble { display: flex; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line-soft); }
.comp-bubble input {
  flex: 1; font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px;
  background: var(--paper); color: var(--ink);
}

/* Bounded by the window: `max-height` plus a column layout makes the
   shot give way, instead of the image overflowing the fixed overlay. */
.bw-big {
  width: min(1100px, 100%);
  max-height: calc(100vh - 96px);
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-faint); border-radius: 14px;
  background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-lift);
  animation: pop .22s var(--ease) both;
}
/* Expanded in place, not a centred modal: as a child of `.ctx-content`
   it fills the column; the card styles above still serve confirms. */
.ctx-content[data-pane="split"], .ctx-content[data-pane="full"] { overflow: hidden; padding: 0; }
.ctx-content > .bw-big {
  width: 100%; height: 100%; max-height: none;
  border: none; border-radius: 0; box-shadow: none; animation: none;
  position: relative; padding-left: 9px;
}
/* The divider: a 9px col-resize handle in the pane's left gutter, so it
   never overlaps the header. Drag math lives in SessionDetail. */
.bw-divider {
  position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  cursor: col-resize; background: var(--surface-2); border-right: 1px solid var(--line);
  display: grid; place-items: center; z-index: 3;
}
.bw-divider-grip { width: 2px; height: 26px; border-radius: 100px; background: var(--ink-faint); }
/* The buddy-prompt bubble sits over the screen at the bottom: the shot
   is the positioning context. */
.bw-big .bw-shot { position: relative; }
.bw-big .bw-screen .comp-bubble {
  position: absolute; left: 14px; right: 14px; bottom: 14px; margin: 0 auto; max-width: 440px;
  align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--ink-faint);
  border-radius: 100px; padding: 8px 14px; box-shadow: var(--shadow-lift);
}
.bw-big .bw-screen .comp-bubble input { background: transparent; border: none; outline: none; padding: 0; font-size: 12px; }
.comp-bubble .prompt { color: var(--accent); font-family: var(--mono); font-size: 12px; user-select: none; flex-shrink: 0; }
.comp-bubble .prompt.teach, .kicker.teach { color: var(--teach); }
.teach-pin { flex-shrink: 0; font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); transition: color .3s; white-space: nowrap; }
.teach-pin.on { color: var(--teach); }

/* Teaching (MS 4): the bar that replaces the header, the rail of notes
   beside the screen, and the cards over it. The computer-tab canvas. */
.teach-bar { background: var(--teach-soft); border-bottom-color: var(--teach-line); gap: 10px; }
.dot.teach.ping { animation: ping-teach 2.4s var(--ease) infinite; }
@keyframes ping-teach {
  0%   { box-shadow: 0 0 0 0 var(--teach-line); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.teach-clock { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--teach); font-variant-numeric: tabular-nums; }
.teach-count {
  font-family: var(--mono); font-size: 10.5px; color: var(--teach); cursor: pointer;
  border: 1px solid var(--teach-line); background: var(--surface); padding: 3px 9px; border-radius: 100px;
}
.teach-count.on { background: var(--teach-soft); }
.teach-bar .grow { flex: 1; }
.comp-take.quiet { background: var(--surface); border-color: var(--line); color: var(--ink-soft); }
.comp-take.quiet:hover { background: var(--surface); border-color: var(--ink-faint); color: var(--ink); }
.comp-take.back.solid { background: var(--teach); color: var(--surface); }
.comp-take.back.solid:hover { filter: brightness(0.92); }

.teach-wrap { flex: 1; min-height: 0; display: flex; position: relative; overflow: hidden; }
.teach-wrap > .bw-shot { flex: 1; min-width: 0; }
.teach-over {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px;
  background: color-mix(in oklch, var(--paper) 70%, transparent);
}
.teach-card {
  background: var(--surface); border: 1px solid var(--ink-faint); border-radius: 12px;
  padding: 16px 18px; max-width: 360px; width: 100%; box-shadow: var(--shadow-lift);
  font-size: 12.5px; color: var(--ink);
}
.teach-card.wide { max-width: 440px; }
.teach-card.inline { display: flex; align-items: center; gap: 14px; width: auto; }
.teach-card-title { font-size: 14px; display: flex; align-items: baseline; gap: 10px; }
.teach-card-title .mute { font-family: var(--mono); font-size: 10.5px; }
.teach-card-said { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.teach-card-said.teach { color: var(--teach); font-size: 10.5px; }
.teach-card textarea {
  width: 100%; margin-top: 12px; resize: vertical; font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: var(--paper); color: var(--ink);
}
.teach-card textarea:focus { outline: none; border-color: var(--teach-line); }
.teach-card .comp-confirm-row { justify-content: flex-end; }

.teach-rail {
  position: relative; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid var(--line); background: var(--surface);
}
.teach-rail-edge { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 2; }
.teach-rail-edge:hover { background: var(--teach-soft); }
.teach-rail-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.teach-rail-head .grow { flex: 1; }
.teach-rail-head .mute { font-family: var(--mono); font-size: 10.5px; }
.teach-rail-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0 10px; }
.teach-rail-empty { padding: 14px; font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); font-style: italic; }
.teach-note { padding: 9px 14px; font-size: 12px; line-height: 1.55; border-bottom: 1px solid var(--line-soft); }
.teach-note-meta { display: flex; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-mute); margin-bottom: 3px; min-width: 0; }
.teach-step { color: var(--teach); flex-shrink: 0; }
.teach-win { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teach-gap { padding: 7px 14px; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--ink-mute); }
.teach-rail-tab {
  flex-shrink: 0; width: 26px; display: grid; place-items: center; cursor: pointer;
  border-left: 1px solid var(--line); background: var(--surface);
}
.teach-rail-tab:hover { background: var(--teach-soft); }
.teach-rail-tab span {
  writing-mode: vertical-rl; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teach); white-space: nowrap;
}
/* All load-bearing: the flex child must shrink, the row must bound the
   frame's max-height, and overflow must clip the placeholder. */
.bw-big .bw-shot { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
/* One height for the header and the teach bar that replaces it, so a
   take or a hand-back never moves the screen. */
.bw-big .bw-chrome { padding: 0 16px; height: 46px; flex-shrink: 0; }
/* The take controls swap in place inside a fixed width, so the chip and
   the close do not slide as a label changes. */
.comp-take-group { display: flex; gap: 8px; justify-content: flex-end; min-width: 180px; }
.bw-big .bw-where { font-size: 11px; }

/* Files land in the store by drop or by picker: the same shelf the
   session window's panel writes to. */
.cv-add {
  font-size: 10.5px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); padding: 3px 10px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
}
.cv-add:hover { border-color: var(--ink-faint); color: var(--ink); }
.cv-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Where a drop would land: a floor under the row, since the target is
   the directory, not the row. */
.cv-entry.drop { box-shadow: inset 0 -2px 0 0 var(--accent); }
/* The row being carried: it stays put (the tree has not changed yet)
   but reads as picked up. */
.cv-entry.lifted { opacity: .45; }

/* Naming a folder that does not exist yet: a row at the top of the tree
   that leaves no trace if the name comes back empty. */
.cv-newdir { display: flex; align-items: center; gap: 9px; padding: 5px 18px; }
.cv-newdir .g { color: var(--ink-mute); width: 12px; flex-shrink: 0; }
.cv-newdir input {
  flex: 1; min-width: 0; background: var(--surface); color: var(--ink);
  border: 1px solid var(--accent-line); border-radius: 5px; padding: 3px 8px;
  font-family: inherit; font-size: 12px; outline: none;
}

/* The reader's edit mode. The store is the durable copy: saving upserts
   the file, and a session holding the project reads it next turn. */
.cv-read-head .path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-read-head .dirty { color: var(--accent); }
.cv-read-head .acts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cv-edit {
  font-size: 10.5px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); padding: 4px 11px; border-radius: 6px; cursor: pointer; font-family: var(--mono);
}
.cv-edit:hover { border-color: var(--ink-faint); color: var(--ink); }
.cv-revert {
  font-size: 10.5px; color: var(--ink-mute); cursor: pointer; background: none; border: none;
  font-family: var(--mono); text-decoration: underline; text-underline-offset: 2px; padding: 0;
}
.cv-revert:hover { color: var(--ink); }
.cv-editor {
  flex: 1; min-height: 0; resize: none; border: none; outline: none;
  background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: 12px; line-height: 1.75;
  padding: 22px 26px;
}
.cv-editbar {
  flex-shrink: 0; border-top: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* The right gutter keeps save clear of the feedback ?, fixed at the corner. */
  padding: 10px 76px 10px 22px; font-size: 10px; color: var(--ink-mute);
}
/* A save that lost to a newer file: said above the reader, not as an
   error, because nothing was lost. */
.cv-kept {
  flex-shrink: 0; border-bottom: 1px solid var(--line); background: var(--surface);
  padding: 10px 22px; font-size: 11px; color: var(--ink);
}
.cv-save {
  font-size: 11px; background: var(--ink); border: 1px solid var(--ink); color: var(--paper);
  padding: 6px 14px; border-radius: 6px; cursor: pointer; font-family: var(--mono); flex-shrink: 0;
}
.cv-save:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.cv-save:disabled { opacity: .45; cursor: default; }

/* A gated call awaiting a decision: the session is parked on this exact
   call, and the args shown are the ones that run. */
.ev-gated .call { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 8px; }
.ev-gated .call .nm { font-size: 12.5px; color: var(--ink); }
.ev-gated .call .age { font-size: 10.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.ev-gated .args {
  margin: 0; padding: 9px 12px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--accent-line);
  font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--ink-soft);
  white-space: pre-wrap; max-height: 180px; overflow: auto;
}

/* A batch of gated calls: one card, one line per call. */
.batch { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.batch > li { list-style: decimal; color: var(--ink-mute); font-size: 11.5px; }
.batch > li .nm { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 4px; }
.batch > li .args { margin: 0; }

/* usage: a top-level destination with two tabs, loaded once. */
.usage-page { width: 100%; overflow-y: auto; }
.usage-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 46px;
}
.usage-back { font-size: 11px; color: var(--ink-mute); cursor: pointer; }
.usage-back:hover { color: var(--ink); }
.usage-title {
  margin: 0; font-weight: 500; font-size: 30px;
  letter-spacing: -0.025em; line-height: 1.05;
}
.usage-title .caret {
  display: inline-block; width: 9px; height: 0.92em; vertical-align: -0.06em;
  background: var(--accent); margin-left: 5px; animation: blink 1.2s steps(1) infinite;
}

/* Meters left, billing right, divided by a rule rather than a gap. */
.usage-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.usage-left { padding-right: 40px; min-width: 0; }
.usage-billing { padding-left: 40px; min-width: 0; border-left: 1px solid var(--line); }
.usage-billing > header { margin-bottom: 22px; }

.usage-controls {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.usage-gran {
  display: inline-flex; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; background: var(--surface);
}
.usage-gran > span { font-size: 10.5px; padding: 4px 11px; cursor: pointer; color: var(--ink-soft); }
.usage-gran > span.on { color: var(--paper); background: var(--ink); }
.usage-cycle { display: inline-flex; align-items: center; gap: 7px; }
.usage-cycle .step {
  width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 5px;
  display: inline-grid; place-items: center; font-size: 10px;
  color: var(--ink-soft); cursor: pointer; background: var(--surface);
}
.usage-cycle .step:hover { border-color: var(--ink-faint); }
.usage-cycle .label {
  font-size: 11px; min-width: 96px; text-align: center; font-variant-numeric: tabular-nums;
}

.usage-card {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 9px; overflow: hidden; margin-bottom: 14px;
}
.usage-hours { padding: 18px 20px 16px; }
.usage-card-head {
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
/* The ledger's pager is the period nav's control, so it drops the
   head's letter-spacing and caps. */
.usage-card-head .usage-cycle { text-transform: none; letter-spacing: 0; }
.usage-card-head .usage-cycle .label { min-width: 72px; font-size: 10px; }
.usage-empty { padding: 14px 18px; font-size: 11.5px; }

.usage-tile-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.usage-tile-top .nm { font-size: 12.5px; color: var(--ink); }
.usage-tile-top .rate { font-size: 10.5px; margin-left: 9px; font-variant-numeric: tabular-nums; }
.usage-tile-top .figure { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.usage-tile-top .figure .soft { font-size: inherit; }
/* What the meter drew from the balance, beside what it has used. */
.usage-tile-top .figure .spend {
  margin-left: 9px; padding-left: 9px; border-left: 1px solid var(--line);
  color: var(--ink-soft);
}

/* The one bar shape, used by the hours card and by every tile. */
.usage-meter {
  height: 4px; border-radius: 100px; background: var(--surface-2); overflow: hidden;
}
.usage-meter > div {
  height: 100%; border-radius: 100px; background: var(--accent);
  transition: width .4s var(--ease-view);
}
.usage-hours .usage-meter { margin-bottom: 16px; }

@keyframes barin { from { transform: scaleY(0); } }

/* The run ledger in the invoice card's row language: one line, hairline
   separators, tabular figure, one pill. */
.usage-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--ink-soft); cursor: pointer;
}
.usage-row:hover { background: var(--surface-2); }
/* The one-field "didn't work" box, opened under its row. */
.usage-flag-box {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 0 18px 12px; border-top: 1px solid var(--line-soft);
}
.usage-flag-box textarea.note { flex: 1; }
.usage-row .nm { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage-row .when { color: var(--ink-mute); font-size: 10.5px; }
.usage-row .figure { font-variant-numeric: tabular-nums; }
.usage-row .pill {
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-line);
  border-radius: 100px; padding: 1px 7px; background: none;
}
.usage-row .pill.free { color: var(--ink-mute); border-color: var(--line); }

/* Where the money went: labour beside compute, split by width. */

/* Storage and projects; computer hours is its own card above them. */

/* The window's cost, above the plan that is one line of it. */
.usage-total { padding: 16px 18px 14px; }
.usage-total .figure.big {
  font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
/* Nothing left to spend is a state, not a warning: the gate is what
   stops anything. */
.usage-total .figure.big.spent { color: var(--stop); }
.usage-total .usage-meter { margin-top: 10px; }
/* The typed amount: whole dollars only, so the field is narrow. */
.usage-topup {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  padding: 3px 7px;
}
.usage-topup .dollar { font-size: 10.5px; color: var(--ink-mute); }
.usage-topup input {
  width: 44px; border: none; outline: none; background: none;
  font-family: var(--mono); font-size: 11px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* The sum of the lines above, set apart as a statement total is. */
.usage-row .figure.amount { color: var(--ink); min-width: 52px; text-align: right; }

.usage-plan { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.usage-plan .soft { font-size: 10.5px; }
.usage-plan .usage-tile-top { margin-bottom: 3px; }
.usage-plan .figure .soft { font-size: 10.5px; }
/* The prepaid balance in hours, the meters' unit. */
.usage-hours { display: block; font-size: 10.5px; margin-top: 3px; }
.usage-stripe {
  padding: 12px 18px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.usage-stripe .soft { font-size: 10px; }
.usage-stripe .btn { flex-shrink: 0; }
/* Three actions, stacked. On one row they read as a toolbar. */
.usage-stripe { flex-direction: column; align-items: stretch; gap: 8px; }
.usage-act { display: flex; align-items: center; gap: 8px; }
.usage-act .btn { flex: 1; justify-content: center; text-align: center; }

/* What the figure counts, said on the card: working hours and computer
   hours are close enough to misread. */
.usage-what { font-size: 10.5px; margin-top: 4px; line-height: 1.5; }
.usage-note { font-size: 10.5px; margin: 2px 0 12px; }

/* The settings row that opens usage: the whole row is the way in. */

/* ===== projects: create and rename ===== */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 46px; }
.pg-head h1 { margin: 0 0 8px; font-weight: 500; font-size: 30px; letter-spacing: -0.025em; line-height: 1.05; }
.pg-lede { color: var(--ink-mute); font-size: 12.5px; line-height: 1.6; max-width: 460px; text-wrap: pretty; }
.pg-new {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink-faint); background: var(--surface);
  color: var(--ink-soft); font-size: 15px; font-family: var(--mono);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.pg-new:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.proj-new {
  border: 1px dashed var(--line); border-radius: 12px; min-height: 128px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink-mute); font-size: 11.5px; font-style: italic;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.proj-new:hover { border-color: var(--ink-faint); color: var(--ink-soft); }

/* The rename affordance shows on hover only: a button on every card
   would read as the primary action, and opening is. */
/* The name has the first line to itself: the hover controls are invisible
   but laid out, and beside it they left it one letter. */
.pc-name { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
.pc-name > span:first-child { flex: 1 0 100%; min-width: 0; }
.pc-rename-btn {
  flex-shrink: 0; font-size: 10.5px; color: var(--ink-faint); background: none;
  border: none; font-family: var(--mono); padding: 2px 5px; border-radius: 4px;
  cursor: text; opacity: 0; transition: opacity .12s var(--ease);
}
.proj-card:hover .pc-rename-btn { opacity: 1; }
.pc-set-inbox { cursor: pointer; }
.pc-inbox {
  flex-shrink: 0; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-line); padding: 2px 7px; border-radius: 100px;
}
.pc-rename-btn:hover { color: var(--ink-soft); background: var(--surface-2); }
.pc-rename {
  width: 100%; background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: 5px; padding: 2px 7px; font-family: var(--mono);
  font-size: 13px; color: var(--ink); outline: none; margin-bottom: 6px;
}

.np {
  width: min(440px, 100%); border: 1px solid var(--ink-faint); border-radius: 12px;
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-lift);
  animation: pop .22s var(--ease) both;
}
.np-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.np-x {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-size: 9px; cursor: pointer;
  font-family: var(--mono); display: inline-flex; align-items: center; justify-content: center;
}
.np-x:hover { border-color: var(--ink-faint); color: var(--ink); }
.np-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.np-field { display: flex; flex-direction: column; gap: 9px; }
.np-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.np-field input {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 11px; font-family: var(--mono); font-size: 13px; color: var(--ink); outline: none;
}
.np-field input:focus { border-color: var(--accent-line); background: var(--surface); }
.np-pick {
  display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line);
  background: var(--surface); border-radius: 7px; padding: 12px 13px; cursor: pointer;
}
.np-pick.on { border-color: var(--accent-line); background: var(--accent-soft); }
.np-radio {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  border: 1px solid var(--ink-faint); background: var(--surface);
}
.np-pick.on .np-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.np-copy { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.np-copy .t { font-size: 12.5px; color: var(--ink); }
.np-copy .s { font-size: 11px; color: var(--ink-mute); line-height: 1.5; }
/* The directory step is a checklist, not a dropdown: a project links
   many folders, and each row carries its count. */
.np-list { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.np-none { font-size: 11px; color: var(--ink-faint); font-style: italic; }
.np-choice {
  display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); border-radius: 6px;
  padding: 7px 9px; cursor: pointer;
}
.np-choice:hover { border-color: var(--ink-faint); }
.np-choice .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-choice .n { font-size: 10px; color: var(--ink-mute); flex-shrink: 0; }
.np-box {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; display: grid;
  place-items: center; font-size: 8px; line-height: 1; color: var(--paper);
  border: 1px solid var(--ink-faint); background: var(--surface);
}
.np-choice.on .np-box { border-color: var(--accent); background: var(--accent); }
.np-foot {
  border-top: 1px solid var(--line); background: var(--surface-2); padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.np-preview { font-size: 10px; color: var(--ink-mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-acts { display: flex; gap: 8px; flex-shrink: 0; }
.np-cancel {
  font-size: 11px; color: var(--ink-soft); padding: 6px 12px; border-radius: 6px;
  cursor: pointer; border: 1px solid transparent; background: none; font-family: var(--mono);
}
.np-cancel:hover { border-color: var(--line); background: var(--surface); }
.np-go {
  font-size: 11px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 6px 14px; border-radius: 6px; cursor: pointer; font-family: var(--mono);
}
.np-go:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.np-go:disabled { opacity: .45; cursor: default; }

/* ===== plan lane: in the transcript, never docked ===== */
/* Every colour is a token, so the lane follows the theme. */

.run-btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .04em;
  border: 1px solid var(--accent); background: var(--accent); color: var(--surface);
  padding: 8px 18px; border-radius: 100px; cursor: pointer; font-family: var(--mono);
  box-shadow: 0 1px 2px rgba(28,27,24,.06), 0 8px 22px -12px var(--accent-line);
  transition: all .18s var(--ease);
}
.run-btn:hover { background: var(--ink); border-color: var(--ink); }
.run-btn .glyph { font-size: 9px; }

/* Stop is quiet and Cancel is not: only one of them is reversible. */
.stop-btn, .cancel-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-family: var(--mono);
  padding: 5px 13px; border-radius: 100px; cursor: pointer; transition: all .18s var(--ease);
}
.stop-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.stop-btn:hover { border-color: var(--ink-faint); color: var(--ink); }
.cancel-btn { border: 1px solid color-mix(in oklab, var(--stop) 40%, transparent); background: var(--surface); color: var(--stop); }
.cancel-btn:hover { background: var(--stop); border-color: var(--stop); color: var(--surface); }

/* A held run: a square, not a dot, and it does not ping. */
.square { width: 8px; height: 8px; border-radius: 1.5px; background: currentColor; flex-shrink: 0; }
.status-pill.held { color: var(--work); border-color: color-mix(in oklab, var(--work) 35%, transparent); background: color-mix(in oklab, var(--work) 12%, transparent); }

.plan-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line);
  background: var(--surface); padding: 4px 10px; border-radius: 100px;
}
.plan-chip .dir { text-transform: none; letter-spacing: 0; color: var(--ink-mute); }

/* Before a session exists the chip still renders, so the composer does
   not change shape on the first send. */
.tb-chip.idle { opacity: .5; cursor: default; }

/* The plan lane has two faces, never both at once: drafting and the
   open card. */
.plan-drafting {
  flex-shrink: 0; max-width: 760px; min-width: 0; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 9px;
  padding: 16px 20px; font-size: 12.5px; color: var(--ink-soft);
}
.link {
  flex-shrink: 0; font-size: 10.5px; color: var(--ink-soft); background: none; border: none;
  cursor: pointer; font-family: var(--mono); font-style: normal;
  text-decoration: underline; text-underline-offset: 2px;
}
.link:hover { color: var(--ink); }

.plan-card {
  flex-shrink: 0; width: 100%; max-width: 620px; min-width: 0;
  border: 1px solid var(--ink-faint); background: var(--surface);
  border-radius: 9px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(28,27,24,.03), 0 16px 40px -26px rgba(28,27,24,.22);
}
.plan-card .kicker { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.plan-card .grow { flex: 1; }

.pl-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line-soft); }
.pl-head .kicker { letter-spacing: .22em; font-weight: 500; }
.pl-head .ver {
  font-size: 10px; color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface-2);
  padding: 2px 8px; border-radius: 100px; font-variant-numeric: tabular-nums;
}
.pl-head .mute { font-size: 10.5px; color: var(--ink-mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-x {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-mute); font-size: 9px; font-family: var(--mono);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .15s var(--ease);
}
.pl-x:hover:not(:disabled) { border-color: var(--stop); color: var(--stop); }
.pl-x:disabled { opacity: .4; cursor: default; }

/* The body scrolls; the header and footer do not, so "approve and run"
   never gets pushed past the bottom of the pane. */
.pl-body {
  padding: 18px 20px; display: flex; flex-direction: column; gap: 16px;
  max-height: min(46vh, 420px); overflow-y: auto; overscroll-behavior: contain;
}
.pl-field { display: flex; flex-direction: column; gap: 7px; }
.pl-field .goal { font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.pl-field .done { font-size: 12px; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }
.pl-steps { margin: 0; padding-left: 20px; font-size: 12px; color: var(--ink-soft); line-height: 1.65; overflow-wrap: anywhere; }
.pl-inputs { display: flex; flex-direction: column; gap: 6px; }
.pl-input {
  display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink); min-width: 0;
  border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 6px 10px;
}
.pl-input .note { font-size: 10.5px; color: var(--ink-mute); flex-shrink: 0; }
.pl-missing { display: flex; flex-direction: column; gap: 6px; }
.pl-missing .q { display: flex; align-items: baseline; gap: 9px; font-size: 12px; line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere; }
.pl-missing .mark { color: var(--work); flex-shrink: 0; }

.pl-foot {
  border-top: 1px solid var(--line-soft); background: var(--surface-2); padding: 11px 14px 11px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.pl-foot input {
  flex: 1 1 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 10px; font-family: var(--mono); font-size: 12px;
  color: var(--ink); outline: none;
}
.pl-foot input:focus { border-color: var(--accent-line); }
.pl-foot .btn { flex-shrink: 0; }

/* The desk's waiting list, when the thing waiting is a plan. */
.card.approval .plan-brief {
  margin: 12px 0; border-left: 2px solid var(--accent-line); background: var(--surface-2);
  border-radius: 0 5px 5px 0; padding: 11px 13px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.7;
}
.card.approval .plan-brief .done { margin-bottom: 7px; color: var(--ink); }
.card.approval .plan-brief ol { margin: 0; padding-left: 18px; }
.card.approval .plan-brief .missing { margin-top: 9px; font-size: 10.5px; color: var(--work); }


/* Reduced motion means no animation: `animation: none`, not a zero
   duration, so a `both` from-state cannot stick and hide something. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- memory (MS 5; designs/memory/) ---------- */
.mem-page .usage-top { align-items: center; }
.mem-toast { margin-left: auto; margin-right: 16px; font-size: 11px; color: var(--ink-soft); transition: opacity .3s var(--ease); }
.mem-intro { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 26px; }
.mem-section { margin-bottom: 34px; }
.mem-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mem-head .kicker { margin: 0; }
.mem-count { font-size: 11px; color: var(--ink-mute); }
.mem-count.over { color: var(--stop); }
.mem-search { margin-left: auto; font-size: 11.5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); min-width: 160px; }
.mem-card { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); overflow: hidden; }
.mem-row { display: grid; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-soft); cursor: pointer; align-items: start; }
.mem-row:hover { background: var(--paper); }
.mem-row.mem-th { border-top: 0; cursor: default; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.mem-row.mem-th:hover { background: none; }
.mem-row .r { text-align: right; }
.mem-people { grid-template-columns: 1.15fr 1fr .7fr 2.4fr .6fr .62fr .5fr; }
/* The assigns switch and the editor's assigns card (designs/inbox_design, T 2). */
.mem-switch { position: relative; display: inline-block; width: 24px; height: 14px; border-radius: 100px; background: #d9d6cc; vertical-align: middle; transition: background .15s var(--ease); }
.mem-switch > span { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); transition: left .15s var(--ease); }
.mem-switch.on { background: var(--accent); }
.mem-switch.on > span { left: 12px; }
.mem-switch.big { width: 28px; height: 16px; flex-shrink: 0; }
.mem-switch.big > span { width: 12px; height: 12px; }
.mem-switch.big.on > span { left: 14px; }
.mem-locked { cursor: default; opacity: .7; }
.mem-assigns { grid-column: 1 / -1; order: 99; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; }
.mem-assigns.on { border-color: var(--accent-line); background: oklch(0.55 0.075 150 / 0.06); }
.mem-assigns.locked { cursor: default; }
.mem-assigns > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.mem-assigns-head { font-size: 12px; color: var(--ink); }
.mem-assigns-head .kicker { margin-right: 6px; }
.mem-assigns-note { font-size: 10.5px; line-height: 1.5; color: var(--ink-mute); }
.mem-procs { grid-template-columns: 1.6fr 1fr .6fr 1.3fr .6fr; }
.mem-procs.retired { opacity: .55; }
.mem-use { grid-template-columns: 2fr 1fr .8fr; cursor: default; }
.mem-sort { cursor: pointer; }
.mem-sub { display: block; font-size: 10.5px; color: var(--ink-mute); margin-top: 2px; }
.mem-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mem-pill { display: inline-block; font-size: 10px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-mute); }
.mem-pill.dark { color: var(--ink); border-color: var(--ink-faint); }
.mem-status { font-size: 10px; padding: 2px 8px; border-radius: 10px; }
.mem-status.active { color: var(--accent); background: var(--accent-soft); }
.mem-status.retired { color: var(--ink-mute); background: var(--line-soft); }
.mem-empty { padding: 18px 14px; font-size: 12px; color: var(--ink-mute); font-style: italic; }
.mem-edit, .mem-detail { padding: 16px; background: var(--paper); border-top: 1px solid var(--line-soft); cursor: default; }
.mem-detail { background: var(--surface); }
.mem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.mem-grid label, .mem-grid .mem-field { display: flex; flex-direction: column; gap: 5px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); }
.mem-grid .full { grid-column: 1 / -1; }
/* A segmented choice keeps its own width, as the canvas draws it. */
.mem-grid .mem-seg { align-self: flex-start; }
/* The handles: one row each, then the two add inputs (owner, 2026-09-30). */
.mem-handles { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-transform: none; letter-spacing: 0; }
.mem-handles > .mute { padding: 8px 10px; font-size: 11.5px; }
.mem-handle { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.mem-handle:first-child { border-top: 0; }
.mem-handle .v { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-handle .grow { flex: 1; }
.mem-handle .bw-link.on { color: var(--accent); text-decoration: none; }
.mem-handle .bw-link:disabled { opacity: .4; cursor: default; }
.mem-add { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mem-grid input, .mem-grid textarea, .mem-note textarea { font: inherit; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; }
.mem-grid textarea.mono { font-family: var(--mono); font-size: 11.5px; }
.mem-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-transform: none; letter-spacing: 0; }
.mem-seg button { font: inherit; font-size: 11px; padding: 4px 10px; background: var(--surface); color: var(--ink-soft); border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.mem-seg button:last-child { border-right: 0; }
.mem-seg button.on { background: var(--ink); color: var(--paper); }
.mem-inline { display: inline-flex; align-items: center; gap: 10px; }
.mem-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 11.5px; }
.mem-err { color: var(--stop); font-size: 11.5px; }
.mem-confirm { display: inline-flex; gap: 10px; align-items: center; font-size: 11.5px; color: var(--ink-soft); }
.mem-confirm.bar { display: flex; padding: 8px 0; }
.bw-link.danger { color: var(--stop); text-decoration: underline; }
.bw-link.faint { color: var(--ink-faint); margin-left: 10px; font-size: 11px; }
.mem-title, .mem-name { font-size: 18px; color: var(--ink); }
.mem-detail .mem-head { justify-content: space-between; }
.mem-meta { font-size: 11.5px; margin: 4px 0; }
.mem-intent { font-size: 13px; color: var(--ink-soft); margin: 8px 0; }
.mem-box { background: var(--paper); border-radius: 7px; padding: 10px 12px; margin: 10px 0 14px; font-size: 12.5px; }
.mem-box .kicker { display: block; margin-bottom: 4px; }
.mem-verdict.worked { color: var(--accent); }
.mem-verdict.failed { color: var(--stop); }
.mem-verdict.unknown, .mem-verdict.open { color: var(--ink-mute); }
.mem-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.mem-frames figure { margin: 0; }
.mem-frames img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.mem-frames figcaption { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.mem-warn { font-size: 11px; color: var(--work); }
.mem-meter { position: relative; width: 160px; height: 5px; background: var(--line-soft); border-radius: 3px; margin-left: auto; }
.mem-meter span {
  position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px;
  transition: width .3s var(--ease-view), background .3s;
}
.mem-meter span.amber { background: var(--work); }
.mem-meter i { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--ink-mute); }
.mem-notes { padding: 6px 16px 14px; }
.mem-note { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.mem-note:last-of-type { border-bottom: 0; }
.mem-note-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; }
.mem-note textarea { width: 100%; box-sizing: border-box; }
.mem-hint { font-style: italic; font-size: 12px; color: var(--ink-mute); margin: 0; }
.mem-conflict { font-size: 12px; color: var(--work); padding: 10px 0; }

/* The lesson in the chat (MS 4): the card while teaching, the card after
   the hand-back, and buddy processing it. The computer-tab canvas. */
.teach-live-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.teach-live-head .grow { flex: 1; }
.teach-live-notes { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-soft); }
.teach-quote { margin-top: 8px; font-style: italic; color: var(--ink-soft); }
.teach-proc { display: flex; gap: 12px; align-items: flex-start; }
.teach-proc > .prompt { color: var(--accent); font-family: var(--mono); font-size: 13px; line-height: 22px; }
.teach-proc-card { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); }
.teach-proc-row {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-soft); min-width: 0; flex-wrap: wrap;
}
.teach-proc-row .grow { flex: 1; }
.teach-proc-title { color: var(--ink); }
.teach-proc-row .mute, .teach-proc-said { font-size: 11px; }
.teach-proc-said { margin-top: 8px; color: var(--ink-soft); white-space: pre-wrap; }
.teach-chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; margin-top: 1px;
  border: 1px solid var(--teach-line); background: var(--teach-soft); color: var(--teach);
  font-family: var(--mono); font-size: 10.5px; padding: 3px 10px; border-radius: 100px;
}
.lg-composer.note { border-top-color: var(--teach-line); background: color-mix(in oklch, var(--teach) 5%, var(--surface)); }
.lg-composer.note .prompt { color: var(--teach); }

/* Feedback (designs/feedback): the ? and its panel at the bottom right,
   above every backdrop. It covers no control: whatever sits in its corner
   keeps clear of it (owner, 2026-09-29). */
.fb-dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 5000; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fb-button {
  pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  box-shadow: var(--shadow); font-family: var(--mono); font-size: 14px; line-height: 1;
  transition: background .18s, color .18s, transform .18s;
}
.fb-button:hover { transform: translateY(-1px); }
.fb-button.on { background: var(--surface); color: var(--ink); }
.fb-panel {
  pointer-events: auto; width: 320px; max-width: calc(100vw - 36px); background: var(--surface);
  border: 1px solid var(--ink-faint); border-radius: 12px; box-shadow: var(--shadow-lift); overflow: hidden;
  transform-origin: bottom right; animation: pop .2s var(--ease) both;
}
.fb-head { padding: 14px 16px 4px; display: flex; align-items: baseline; gap: 10px; }
.fb-head .grow, .fb-foot .grow { flex: 1; }
.fb-title { font-size: 13px; color: var(--ink); }
.fb-where { font-size: 10.5px; color: var(--ink-mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-body { padding: 10px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.fb-kinds { display: inline-flex; align-self: flex-start; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fb-kinds button {
  font-family: var(--mono); font-size: 10.5px; padding: 4px 11px; cursor: pointer;
  border: none; background: transparent; color: var(--ink-soft);
}
.fb-kinds button.on { background: var(--ink); color: var(--paper); }
.fb-body textarea {
  width: 100%; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; outline: none; resize: vertical;
}
.fb-body textarea:focus { border-color: var(--accent-line); }
.fb-foot {
  margin-top: 12px; border-top: 1px solid var(--line-soft); background: var(--surface-2);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
.fb-err { font-size: 10.5px; color: var(--stop); }
.fb-sent { padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.fb-thanks { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.fb-sent .mute { font-size: 11px; line-height: 1.6; }
.fb-after { display: flex; gap: 14px; margin-top: 8px; }
.fb-after .bw-link { font-size: 11px; }
.fb-after .fb-again { color: var(--accent); }

/* ---------- the inbox (T 6), as designs/inbox_design draws it ---------- */
.rail a.unread::after {
  content: ""; position: absolute; top: 5px; left: 50%; translate: -50% 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.ib { display: flex; flex-direction: column; min-height: 100%; position: relative; }
.ib-head {
  padding: 46px 56px 26px; max-width: 1320px; box-sizing: border-box; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.ib-head h1 { margin: 0; font-weight: 500; font-size: 30px; letter-spacing: -0.025em; line-height: 1.05; }
.ib-head .caret {
  display: inline-block; width: 9px; height: 0.92em; vertical-align: -0.06em; background: var(--accent);
  margin-left: 5px; animation: blink 1.2s steps(1) infinite;
}
.ib-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ib-lede { color: var(--ink-mute); font-size: 12.5px; max-width: 380px; text-align: right; line-height: 1.6; }
.ib-route { position: relative; display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--ink-mute); }
.ib-pick {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 9px; cursor: pointer;
  border: 1px solid var(--accent-line); background: var(--surface); border-radius: 100px; color: var(--ink); font-size: 11.5px;
}
.ib-pick.on { border-color: var(--accent); }
.ib-pick-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ib-caret { font-size: 9px; color: var(--ink-mute); }
.ib-scrim { position: fixed; inset: 0; z-index: 40; }
.ib-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 41; width: 280px; background: var(--surface);
  border: 1px solid var(--ink-faint); border-radius: 10px; box-shadow: var(--shadow-lift); overflow: hidden;
  animation: pop .16s var(--ease) both;
}
.ib-menu-note { padding: 11px 14px 8px; font-size: 10.5px; line-height: 1.55; color: var(--ink-mute); }
.ib-menu-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.ib-menu-row:hover { background: var(--surface-2); }
.ib-menu-name { font-size: 12px; color: var(--ink); }
.ib-radio {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box;
  border: 1px solid var(--ink-faint); display: grid; place-items: center;
}
.ib-radio > span { width: 6px; height: 6px; border-radius: 50%; }
.ib-radio.on { border-color: var(--accent); }
.ib-radio.on > span { background: var(--accent); }
.ib-empty {
  margin: 4px 20px; border: 1px dashed var(--line); border-radius: 7px; padding: 34px 22px;
  text-align: center; color: var(--ink-mute); font-size: 12px; line-height: 1.7;
}
.ib-addr { color: var(--ink); border-bottom: 1px dashed var(--ink-faint); cursor: pointer; }
.ib-copied { display: block; margin-top: 6px; font-size: 10.5px; color: var(--accent); opacity: 0; transition: opacity .3s; }
.ib-copied.on { opacity: 1; }
.ib-box {
  flex: 1 0 auto; height: max(620px, calc(100% - 140px)); margin: 0 56px 40px; max-width: 1208px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--paper);
  display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}
.ib-list { display: flex; flex-direction: column; min-height: 0; }
.ib-search { padding: 16px 20px 14px; display: flex; align-items: center; gap: 12px; }
.ib-search input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 11.5px; color: var(--ink); background: transparent;
  border: none; border-bottom: 1px solid var(--line); padding: 6px 0; outline: none;
}
.ib-search input:focus { border-color: var(--accent-line); }
.ib-rows { flex: 1; min-height: 0; overflow-y: auto; }
.ib-row {
  display: flex; gap: 11px; padding: 14px 20px 15px; border-top: 1px solid var(--line-soft); cursor: pointer;
  transition: background .15s;
}
.ib-row:hover { background: var(--surface-2); }
.ib-row.on { background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.ib-mark {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-soft); font-size: 9.5px; line-height: 1; display: grid; place-items: center;
}
.ib-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ib-row-top { display: flex; align-items: baseline; gap: 8px; }
.ib-who { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-soft); }
.ib-when { flex-shrink: 0; font-size: 10px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.ib-subject { font-size: 11.5px; line-height: 1.45; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-row.unread .ib-who, .ib-row.unread .ib-subject { color: var(--ink); font-weight: 600; }
.ib-row.draft .ib-who { color: var(--work); }
.ib-state { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.ib-state > span:first-child { width: 5px; height: 5px; border-radius: 50%; }
.ib-state.work { color: var(--work); }
.ib-state.work > span:first-child { background: var(--work); }
.ib-state.stop { color: var(--stop); }
.ib-state.stop > span:first-child { background: var(--stop); }
.ib-none { padding: 22px 14px; font-size: 11.5px; color: var(--ink-mute); font-style: italic; }
.ib-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-left: 1px solid var(--line); }
.ib-pick-one { flex: 1; display: grid; place-items: center; font-size: 11.5px; color: var(--ink-mute); font-style: italic; }
.ib-thead { padding: 26px 48px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.ib-tsubject { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }
.ib-twhere { margin-top: 5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 10.5px; color: var(--ink-mute); }
.ib-thread {
  flex: 1; min-height: 220px; overflow-y: auto; padding: 30px 48px; display: flex; flex-direction: column; gap: 22px;
  background: var(--surface);
}
.ib-fold, .ib-joined, .ib-diff { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--ink-mute); }
.ib-fold { cursor: pointer; }
.ib-fold > span:first-child, .ib-fold > span:last-child,
.ib-diff > span:first-child, .ib-diff > span:last-child { flex: 1; height: 1px; background: var(--line); }
.ib-joined { color: var(--accent); }
.ib-joined > span:first-child, .ib-joined > span:last-child { flex: 1; height: 1px; background: var(--accent-line); }
.ib-diff { color: var(--ink-soft); }
.ib-more {
  align-self: center; font-size: 10.5px; color: var(--ink-soft); border: 1px solid var(--line); background: var(--paper);
  padding: 4px 12px; border-radius: 100px; cursor: pointer;
}
.ib-line {
  display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) auto; gap: 14px; align-items: baseline;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 11px; color: var(--ink-mute);
}
.ib-line:hover { background: var(--paper); }
.ib-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-line > span:first-child { color: var(--ink); }
.ib-line > span.buddy, .ib-msg-head .buddy { color: var(--accent); }
.ib-line > span:last-child { font-size: 10px; font-variant-numeric: tabular-nums; }
.ib-line.faded, .ib-msg.faded { opacity: 0.62; }
.ib-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.ib-msg.mine { align-items: flex-end; }
.ib-msg-head { display: flex; gap: 8px; align-items: baseline; font-size: 10.5px; color: var(--ink-mute); }
.ib-msg-head > span:first-child { cursor: pointer; color: var(--ink); }
.ib-details { cursor: pointer; color: var(--ink-faint); }
.ib-hdr {
  max-width: min(78%, 620px); width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--line-soft); background: var(--surface); border-radius: 8px;
  font-size: 10.5px; line-height: 1.55; animation: pop .15s var(--ease) both;
}
.ib-hdr > span:nth-child(odd) { color: var(--ink-mute); }
.ib-hdr > span:nth-child(even) { color: var(--ink); word-break: break-word; }
.ib-rcpt { max-width: min(78%, 620px); font-size: 10.5px; line-height: 1.6; color: var(--ink-mute); cursor: pointer; white-space: pre-wrap; }
.ib-msg.mine .ib-rcpt { text-align: right; }
.ib-bubble {
  max-width: min(78%, 620px); box-sizing: border-box; border: 1px solid transparent; background: var(--paper); border-radius: 10px;
  padding: 12px 15px; font-size: 12px; line-height: 1.65; color: var(--ink); white-space: pre-wrap;
}
.ib-bubble.buddy { background: var(--accent-soft); border-color: var(--accent-line); }
.ib-quoted-toggle { display: block; margin-top: 10px; font-size: 10.5px; color: var(--ink-mute); cursor: pointer; white-space: normal; }
.ib-quoted {
  max-width: min(78%, 620px); border-left: 2px solid var(--line); padding: 6px 0 6px 12px; font-size: 11.5px;
  line-height: 1.65; color: var(--ink-soft); white-space: pre-wrap;
}
.ib-file {
  width: 100%; max-width: 360px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px;
}
.ib-file.skipped { opacity: .55; }
.ib-ext {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
}
.ib-file-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--ink); }
.ib-file-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-file-name .mute { font-size: 10px; }
.ib-link { font-size: 10.5px; color: var(--accent); cursor: pointer; padding: 0 4px; }
.ib-reply { flex-shrink: 0; padding: 12px 48px 18px; background: var(--surface); border-top: 1px solid var(--line-soft); }
.ib-reply-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 10.5px; color: var(--ink-mute); }
.ib-via { display: inline-flex; align-items: center; gap: 6px; }
.ib-via > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ib-to { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-fwd { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 200px; min-width: 160px; }
.ib-fwd input, .ib-extra input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 11px; color: var(--ink); background: transparent; border: none;
  border-bottom: 1px solid var(--line); padding: 2px 0; outline: none;
}
.ib-modes { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.ib-modes > span { font-size: 10px; padding: 2px 8px; cursor: pointer; color: var(--ink-soft); }
.ib-modes > span.on { color: var(--paper); background: var(--ink); }
.ib-extra { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 10.5px; color: var(--ink-mute); }
.ib-box-in {
  display: flex; align-items: flex-end; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow);
}
.ib-box-in.on { border-color: var(--accent-line); }
.ib-box-in textarea {
  flex: 1; min-width: 0; min-height: 22px; max-height: 160px; resize: none; field-sizing: content; border: none; outline: none;
  background: transparent; font-family: inherit; font-size: 12.5px; line-height: 1.6; color: var(--ink);
}
.ib-send {
  flex-shrink: 0; height: 26px; padding: 0 12px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 11px;
  cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink-mute);
}
.ib-send.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ib-draft { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ib-draft-body { flex: 1; padding: 30px 48px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; background: var(--surface); }
.ib-draft-body textarea {
  width: min(78%, 620px); box-sizing: border-box; font-family: inherit; font-size: 12px; line-height: 1.65; color: var(--ink);
  border: 1px solid var(--accent-line); border-radius: 10px; padding: 12px 15px; background: var(--surface); outline: none;
}
.ib-draft-go { display: flex; gap: 8px; }
.ib-naming { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: color-mix(in oklch, var(--paper) 70%, transparent); }
.ib-naming-card {
  width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lift);
}
.ib-naming-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.ib-naming-blurb { font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); }
.ib-naming-card input {
  font-family: inherit; font-size: 12.5px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); outline: none;
}
.ib-naming-card input:focus { border-color: var(--accent-line); }
.ib-naming-addr { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.ib-naming-go { display: flex; align-items: center; gap: 10px; }
.ib-naming-go .grow { flex: 1; }
.ev-card .row1 { cursor: pointer; }
.ev-card.bad .args { border-left-color: var(--stop); }
.ev-card .opts { margin-left: 20px; display: flex; gap: 10px; align-items: center; font-size: 11px; }
.ev-card .opts .bad { color: var(--stop); }
.ev-card-edit {
  flex: 1; font-family: inherit; font-size: 11.5px; line-height: 1.6; color: var(--ink); background: var(--surface);
  border: 1px solid var(--accent-line); border-radius: 8px; padding: 8px 10px; outline: none;
}
.ib-attach {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); display: grid;
  place-items: center; color: var(--ink-soft); font-size: 14px; cursor: pointer;
}
.ib-attach input { display: none; }
.ib-box-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ib-box-text textarea { width: 100%; box-sizing: border-box; }
.ib-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ib-chips > span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--paper); padding: 3px 5px 3px 9px; border-radius: 6px;
}
.ib-chips .x { color: var(--ink-mute); cursor: pointer; padding: 0 3px; }
.ev-card-subject { margin-left: 20px; font-size: 12px; font-weight: 600; color: var(--ink); }
.ev-card-after { margin-left: 20px; font-size: 10.5px; color: var(--ink-mute); }
.ev-card-files { margin-left: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.ev-card-files > span {
  font-size: 10.5px; color: var(--ink-soft); border: 1px solid var(--line); background: var(--paper);
  padding: 2px 8px; border-radius: 6px;
}
.ib-standing { font-size: 10px; color: var(--ink-mute); }
.ib-standing.can-assign-work { color: var(--accent); }
.ib-standing.unverified { color: var(--stop); }
.ib-attach-wrap { position: relative; flex-shrink: 0; }
.ib-attach-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; min-width: 220px; background: var(--surface);
  border: 1px solid var(--ink-faint); border-radius: 8px; box-shadow: var(--shadow-lift); overflow: hidden;
}
.ib-attach-menu > div, .ib-attach-menu > label {
  display: block; padding: 8px 12px; font-size: 11px; color: var(--ink); cursor: pointer; border-top: 1px solid var(--line-soft);
}
.ib-attach-menu > :first-child { border-top: none; }
.ib-attach-menu > div:hover, .ib-attach-menu > label:hover { background: var(--surface-2); }
.ib-attach-menu input { display: none; }
.ib-menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ib-menu-dir { font-size: 10px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-menu-open { border-top: 1px solid var(--line); background: var(--surface-2); padding: 9px 14px; font-size: 11px; color: var(--accent); cursor: pointer; }

/* ---------- auto (T 7), as designs/inbox_design draws it ---------- */
.auto-btn {
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 12px; letter-spacing: .04em;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 16px;
  border-radius: 100px; cursor: pointer;
}
.auto-btn.on { border-color: var(--work); }
.auto-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--work); display: inline-block; }
.auto-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--work); border: 1px solid color-mix(in oklch, var(--work) 45%, transparent);
  background: color-mix(in oklch, var(--work) 12%, transparent); padding: 4px 10px; border-radius: 100px;
}
.auto-scrim { position: fixed; inset: 0; z-index: 4000; }
.auto-warn {
  position: fixed; z-index: 4001; width: 300px; background: var(--surface); border-radius: 10px; overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--work) 60%, transparent); box-shadow: var(--shadow-lift);
  animation: pop .16s var(--ease) both;
}
.auto-warn-body { padding: 14px 16px 12px; }
.auto-warn-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); }
.auto-warn-text { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--ink-soft); }
.auto-warn-go {
  border-top: 1px solid var(--line-soft); background: var(--surface-2); padding: 10px 16px; display: flex; gap: 8px;
  justify-content: flex-end;
}
.auto-warn-go > span {
  font-size: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); padding: 5px 12px;
  border-radius: 6px; cursor: pointer;
}
.auto-warn-go > span.go { border-color: var(--work); background: var(--work); color: var(--surface); }

/* The time zone picker in TEAMMATE (T 8): a plain select in the row's own type. */
.set-zone { font: inherit; font-size: 11px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; max-width: 180px; }

/* The files tab's markdown (13.2), in the canvas's type: rendered by
   default, "rendered · source" beside the size. */
.cv-mode { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 10.5px; }
.cv-mode span { padding: 4px 10px; cursor: pointer; color: var(--ink-mute); }
.cv-mode span + span { border-left: 1px solid var(--line); }
.cv-mode span.on { background: var(--ink); color: var(--paper); }
.cv-md { flex: 1; overflow: auto; padding: 26px 34px 40px; color: var(--ink); }
.cv-md > * { max-width: 620px; }
.cv-md h1 { margin: 4px 0 16px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.cv-md h2 { margin: 24px 0 12px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.cv-md h3 { margin: 20px 0 10px; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.cv-md p, .cv-md li { font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }
.cv-md p { margin: 0 0 10px; }
.cv-md ul, .cv-md ol { margin: 0 0 10px; padding-left: 22px; }
.cv-md blockquote { margin: 0 0 10px; border-left: 2px solid var(--line); padding: 2px 0 2px 14px; color: var(--ink-mute); font-style: italic; }
.cv-md pre { margin: 2px 0 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 11.5px; line-height: 1.65; overflow: auto; }
.cv-md hr { border: none; height: 1px; background: var(--line); margin: 8px 0 18px; }
.cv-box {
  display: inline-grid; place-items: center; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 1px solid var(--ink-faint); border-radius: 3px; background: var(--surface); font-size: 9px; color: var(--paper);
}
.cv-box.on { border-color: var(--accent); background: var(--accent); }

/* An unknown tool's class, asked with the yes (SAFE-1): a plain select in the card's type. */
.tool-class { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--ink-mute); }
.tool-class select { font: inherit; font-size: 11px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }

/* The walkthrough (designs/tour-and-revamp): a lit hole over one part of the
   app, the rest dimmed by the hole's own shadow, and a card beside it. */
/* Under the hole: the app takes no clicks while the tour is up. */
.tour-block { position: fixed; inset: 0; z-index: 6000; }
.tour-hole {
  position: fixed; z-index: 6001; pointer-events: none;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 70%, transparent), 0 0 0 9999px rgba(28,27,24,.52);
  transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease);
}
.tour-card {
  position: fixed; z-index: 6002; width: 300px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--ink-faint); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28,27,24,.05), 0 26px 60px -28px rgba(28,27,24,.45);
  transition: left .35s var(--ease), top .35s var(--ease);
}
.tour-body { padding: 16px 18px 14px; }
.tour-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.tour-eyebrow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.tour-count { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-soft); font-variant-numeric: tabular-nums; cursor: pointer; padding: 2px 7px; border: 1px solid var(--line); border-radius: 100px; }
.tour-count:hover { border-color: var(--ink-faint); color: var(--ink); }
.tour-caret { font-size: 8px; color: var(--ink-mute); }
.tour-menu { display: flex; flex-direction: column; margin: 2px -6px 4px; animation: pop .15s var(--ease) both; }
.tour-ch { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 6px; cursor: pointer; font-size: 12px; color: var(--ink-soft); }
.tour-ch:hover, .tour-ch.on { background: var(--surface-2); }
.tour-ch.on { color: var(--ink); }
.tour-ch-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--line); }
.tour-ch.done .tour-ch-dot { background: var(--accent-line); }
.tour-ch.on .tour-ch-dot { background: var(--accent); }
.tour-ch-name { flex: 1; }
.tour-ch-n { font-size: 10px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.tour-title { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.tour-text { margin-top: 6px; font-size: 11.5px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.tour-tip { margin-top: 10px; display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 7px; background: var(--accent-soft); font-size: 11px; line-height: 1.55; color: var(--accent); }
.tour-tip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-1px); }
.tour-foot { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.tour-bar { flex: 1; min-width: 40px; height: 3px; border-radius: 100px; background: var(--ink-faint); overflow: hidden; }
.tour-bar > div { height: 100%; border-radius: 100px; background: var(--accent); transition: width .3s var(--ease); }
.tour-skip { font-size: 11px; color: var(--ink-mute); cursor: pointer; }
.tour-skip:hover { color: var(--ink); }
.tour-back, .tour-next { font: inherit; font-size: 11px; padding: 5px 11px; border-radius: 6px; cursor: pointer; }
.tour-back { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.tour-back:hover { border-color: var(--ink-faint); color: var(--ink); }
.tour-next { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 5px 13px; }
.tour-next:hover { background: var(--accent); border-color: var(--accent); }

/* A project nothing has run in yet (designs/tour-and-revamp). */
.stream-fresh { max-width: 380px; margin: 18vh auto 0; text-align: center; display: flex; flex-direction: column; gap: 11px; }
.sf-title { font-size: 13px; color: var(--ink); }
.sf-text { font-size: 12px; color: var(--ink-mute); line-height: 1.65; text-wrap: pretty; }
.bubble-sent { flex-shrink: 0; font-size: 10.5px; color: var(--accent); white-space: nowrap; }
.ib-blocked { font-size: 11.5px; color: var(--stop); margin: 0 0 8px; }

/* Cost this period (designs/tour-and-revamp): computer | labor. */
.usage-cost { margin: 26px 0; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.uc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.uc-k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.uc-total { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.uc-bar { display: flex; height: 6px; border-radius: 100px; overflow: hidden; background: var(--surface-2); margin-bottom: 14px; }
.uc-bar .compute { background: var(--work); }
.uc-bar .labour { flex: 1; background: var(--accent); }
.uc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.uc-split > div { display: flex; flex-direction: column; gap: 4px; }
.uc-name { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink); }
.uc-name .key { width: 7px; height: 7px; border-radius: 2px; }
.uc-name .key.compute { background: var(--work); }
.uc-name .key.labour { background: var(--accent); }
.uc-fig { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.uc-note { font-size: 10.5px; color: var(--ink-mute); line-height: 1.55; }
.mem-attn { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--work); }
.mem-attn > span { width: 6px; height: 6px; border-radius: 50%; background: var(--work); flex-shrink: 0; transform: translateY(-1px); }

/* The usage charts, tiles and "where it went", restored (owner, 2026-10-03). */
.usage-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.usage-bars > span {
  flex: 1; border-radius: 2px 2px 0 0; background: var(--line); min-height: 2px;
  transform-origin: bottom; animation: barin .5s var(--ease-view) both;
}
.usage-bars > span.on { background: var(--accent); }
.usage-axis {
  display: flex; justify-content: space-between;
  font-size: 9.5px; color: var(--ink-faint); margin-top: 6px;
}
.usage-row.split { cursor: default; }
.usage-row.split .when { min-width: 52px; }
.usage-split { flex: 1; display: flex; height: 6px; border-radius: 100px; overflow: hidden; background: var(--surface-2); }
.usage-split .labour { background: var(--accent); }
.usage-split .compute { background: var(--work); }
.usage-legend { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; }
.usage-legend .key { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.usage-legend .key.labour { background: var(--accent); }
.usage-legend .key.compute { background: var(--work); margin-left: 6px; }
.usage-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.usage-tile {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 9px; padding: 16px 18px 14px;
}
.usage-tile .usage-tile-top { margin-bottom: 10px; }
.usage-tile .usage-tile-top > span:first-child { font-size: 12px; }
.usage-tile .usage-tile-top .figure { font-size: 11.5px; }
