/* Kin console — design system (unit 1.18b).
   Thesis: "an employee of the future" — a roster of agents that work for you, whose authority is a
   legible, verified fact. Cool-institutional palette; the two accents ENCODE the authority axes
   (verdigris = verified / work-assignment, brass = management). The signature is the repeated
   IBM-Plex-Mono authority credential. Spend boldness there; keep everything else quiet.
   Fonts are self-hosted (/fonts) — no CDN, no runtime egress. */

/* ── vendored faces (latin, normal) ─────────────────────────────────────────── */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ── tokens ──────────────────────────────────────────────────────────────────── */
:root {
  --ink: #1B2733;        /* cool near-black — primary text (never pure black) */
  --paper: #F7F8FA;      /* cool off-white surface (not cream) */
  --surface: #FFFFFF;    /* card */
  --slate: #5B6B7A;      /* secondary text */
  --line: #E4E8EC;       /* hairline */
  --verdigris: #2F7D6E;  /* verified / work-assignment axis */
  --verdigris-soft: #E6F0ED;
  --brass: #B07D3A;      /* management axis + the brand rule */
  --brass-soft: #F3EBDD;
  --sky: #9DB8CC;        /* the lighter-blue brand eyebrow (on ink) */
  --danger: #B0413A;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rail: 232px;
  --maxw: 1080px;
  --r: 10px;             /* radius */
  --s1: 6px; --s2: 12px; --s3: 20px; --s4: 32px; --s5: 52px;
}

/* ── reset / base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body); color: var(--ink); background: var(--paper);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── app shell ───────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }

.rail {
  border-right: 1px solid var(--line); background: var(--surface);
  padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: var(--s4);
  position: sticky; top: 0; height: 100vh;
}
/* the KIN brand lockup — ink plate so the white wordmark reads; brass rule; sky eyebrow */
.lockup { display: flex; flex-direction: column; gap: 5px; background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 14px 16px 13px; }
.lockup .eyebrow { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sky); }
.lockup .word { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.06em;
  line-height: 1; color: #fff; display: flex; align-items: baseline; gap: 8px; }
.lockup .word .op { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass); align-self: center; }
.lockup .rule { height: 2px; width: 38px; background: var(--brass); border-radius: 2px; margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--slate); margin: var(--s3) 0 var(--s1) 8px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer;
  background: none; border: 0; width: 100%; text-align: left; transition: background 120ms ease;
}
.nav-item:hover { background: var(--paper); }
.nav-item.active { background: var(--verdigris-soft); color: #205c50; }
.nav-item .mark { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); flex: none; }
.nav-item.active .mark { background: var(--verdigris); }
.nav-item.reserved { color: #9AA7B2; cursor: not-allowed; }
.nav-item.reserved .mark { background: transparent; border: 1.5px dashed #C3CCD4; }
.nav-item.reserved .soon { margin-left: auto; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: #AAB4BD; }

.rail-foot { margin-top: auto; }

/* ── main ────────────────────────────────────────────────────────────────────── */
.main { padding: var(--s5) var(--s5) var(--s4); max-width: var(--maxw); width: 100%; }
.page-head { margin-bottom: var(--s4); }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 6px;
  letter-spacing: -0.01em; }
.page-head p { color: var(--slate); margin: 0; max-width: 56ch; }

/* signed-in viewer strip (top of main) */
.viewer {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: var(--s4);
}
.viewer .who { display: flex; flex-direction: column; gap: 2px; }
.viewer .who .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate); }
.viewer .who .name { font-family: var(--display); font-weight: 500; font-size: 16px; }
.logout { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
  font-size: 13px; color: var(--slate); cursor: pointer; }
.logout:hover { border-color: var(--slate); color: var(--ink); }

/* ── the SIGNATURE: authority credential (mono, axis-coded) ──────────────────── */
.cred {
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--paper);
  display: grid; gap: 4px; min-width: 240px;
}
.cred .row { display: flex; gap: 8px; }
.cred .k { color: var(--slate); width: 92px; flex: none; }
.cred .v { color: var(--ink); }
.cred .verified { color: var(--verdigris); font-weight: 500; }
.axes { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 5px; border: 1px solid transparent;
}
.chip.work { background: var(--verdigris-soft); color: #205c50; border-color: #BFDdd5; }
.chip.manage { background: var(--brass-soft); color: #7d5621; border-color: #E3D2B3; }
.chip.scope { background: var(--brass-soft); color: #7d5621; border-color: #E3D2B3; }
.chip.none { background: transparent; color: #AAB4BD; border-color: var(--line); }

/* ── 1.18c: client own-org identity banner (prominent — separation is felt) ──── */
.org-banner { display: flex; flex-direction: column; gap: 3px; margin-bottom: var(--s3);
  padding: var(--s3); border-left: 3px solid var(--verdigris); background: var(--verdigris-soft);
  border-radius: 0 var(--r) var(--r) 0; }
.org-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #2f7d6e; }
.org-name { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink);
  letter-spacing: -0.01em; }

/* ── 1.18c: operator surface — distinct framing (brass accent vs client verdigris) ── */
.shell.operator .rail { border-right-color: #E0D6C2; }
.shell.operator .nav-item.active { background: var(--brass-soft); color: #7d5621; }
.shell.operator .nav-item.active .mark { background: var(--brass); }
.viewer.operator { border-left: 3px solid var(--brass); }
.viewer.operator .eyebrow { color: #7d5621; }
.login-brand { display: flex; justify-content: center; margin-bottom: var(--s2); }

/* ── 1.18c: fleet grouping (operator cross-org views) ────────────────────────── */
.fleet-org { margin-bottom: var(--s4); }
.fleet-org-name { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--slate);
  margin: 0 0 var(--s2); padding-bottom: 6px; border-bottom: 1px solid var(--line);
  letter-spacing: 0.01em; }

/* ── roster: a staff directory of agents that work for you ───────────────────── */
.roster { display: flex; flex-direction: column; gap: var(--s2); }
.emp {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3); transition: border-color 140ms ease;
}
.emp:hover { border-color: #CFD8DF; }
.emp .id { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s2); }
.sigil {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--verdigris) 0%, #1f5f54 100%);
  color: #fff; font-family: var(--display); font-weight: 600; font-size: 16px;
  display: grid; place-items: center;
}
.emp .name { font-family: var(--display); font-weight: 500; font-size: 17px; }
.emp .sub { color: var(--slate); font-size: 13px; }
.facts { display: grid; gap: 7px; margin-top: 4px; }
.fact { display: flex; gap: 10px; font-size: 13.5px; }
.fact .label { color: var(--slate); width: 96px; flex: none; }
.fact .val.empty { color: #9AA7B2; font-style: italic; }
.fact .val .answers { color: var(--ink); font-weight: 500; }

/* ── consumption table ───────────────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; }
table.usage { width: 100%; border-collapse: collapse; font-size: 14px; }
table.usage th, table.usage td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.usage th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate); font-weight: 500; background: var(--paper); }
table.usage td.num { font-family: var(--mono); text-align: right; }
table.usage tr:last-child td { border-bottom: 0; }
.model-tag { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.requesters { display: flex; flex-direction: column; gap: 3px; }
.requesters .r { font-size: 12.5px; }
.requesters .r .cnt { font-family: var(--mono); color: var(--slate); }
.withheld { font-family: var(--mono); font-size: 11.5px; color: #9AA7B2; display: inline-flex;
  align-items: center; gap: 6px; }
.withheld::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C3CCD4; }

/* ── login ───────────────────────────────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--s4); }
.login-card { width: 100%; max-width: 408px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: var(--s5) var(--s4); text-align: center; }
.login .brand { font-size: 24px; margin-bottom: var(--s2); }
.login h1 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: var(--s3) 0 var(--s1); }
.login p { color: var(--slate); margin: 0 auto var(--s4); max-width: 34ch; }
.gbtn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 500;
  color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color 120ms ease;
}
.gbtn:hover { border-color: var(--slate); }
.gmark { width: 17px; height: 17px; flex: none; }
.notice { margin-top: var(--s3); padding: 11px 14px; border-radius: 9px; font-size: 13px;
  background: var(--brass-soft); color: #7d5621; border: 1px solid #E3D2B3; text-align: left; }

/* ── states ──────────────────────────────────────────────────────────────────── */
.empty { padding: var(--s5) var(--s3); text-align: center; color: var(--slate); }
.empty .big { font-family: var(--display); font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.loading { padding: var(--s5); color: var(--slate); font-family: var(--mono); font-size: 13px; }
.foot-note { margin-top: var(--s3); color: var(--slate); font-size: 12.5px; }

/* ── responsive: collapse the rail to a top bar on mobile ────────────────────── */
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: var(--s2); padding: var(--s2) var(--s3); }
  .rail .brand small, .nav-group { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .rail-foot { margin: 0; }
  .main { padding: var(--s3); }
  .emp { grid-template-columns: 1fr; gap: var(--s2); }
  .cred { min-width: 0; }
}

/* ── 1.19b hardening cockpit ───────────────────────────────────────────────── */
.open-agent { margin-left:auto; align-self:flex-start; font:500 13px var(--body); color:var(--verdigris);
  background:var(--verdigris-soft); border:1px solid transparent; border-radius:8px; padding:4px 10px; cursor:pointer; }
.open-agent:hover { border-color:var(--verdigris); }

.cockpit-head { display:flex; align-items:center; gap:var(--s3); margin-bottom:var(--s3); }
.cockpit-head h1 { margin:2px 0 0; font:600 26px var(--display); }
.back { font:500 13px var(--body); color:var(--slate); background:none; border:1px solid var(--line);
  border-radius:8px; padding:6px 12px; cursor:pointer; }
.back:hover { color:var(--ink); border-color:var(--slate); }

.panels { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--s3); }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:var(--s3); display:flex; flex-direction:column; gap:var(--s2); }
.panel.watch { grid-column:1 / -1; }
.panel h2 { margin:0; font:600 15px var(--display); }
.panel .hint { margin:0; font-size:13px; color:var(--slate); }
.panel .hint.muted { color:#90a0ad; }

.ta, .in { width:100%; box-sizing:border-box; font:14px var(--body); color:var(--ink);
  background:var(--paper); border:1px solid var(--line); border-radius:8px; padding:8px 10px; }
.ta.mono { font-family:var(--mono); font-size:12px; }
.row { display:flex; gap:var(--s1); align-items:center; flex-wrap:wrap; }
.btn { font:500 13px var(--body); color:#fff; background:var(--verdigris); border:1px solid transparent;
  border-radius:8px; padding:7px 14px; cursor:pointer; }
.btn:hover { filter:brightness(1.05); }
.btn:disabled { opacity:.45; cursor:default; }
.btn.ghost { color:var(--ink); background:none; border-color:var(--line); }
.btn.danger { background:var(--danger); }
.link { background:none; border:none; color:var(--verdigris); cursor:pointer; padding:0; font:500 13px var(--body); }

.refusal { font-size:13px; color:var(--danger); background:#fbeceb; border:1px solid #f0cfcd;
  border-radius:8px; padding:7px 10px; }
.note { font-size:13px; color:var(--verdigris); }
.result, .ask, .proposal, .opened { background:var(--paper); border:1px solid var(--line);
  border-radius:8px; padding:var(--s2); display:flex; flex-direction:column; gap:6px; font-size:13px; }
.result .k, .slot .k { color:var(--slate); display:inline-block; min-width:84px; }
.ask .q { font-weight:500; }
.proposal { margin-top:var(--s1); }

.feed { max-height:240px; overflow:auto; border:1px solid var(--line); border-radius:8px;
  background:var(--paper); padding:var(--s1); font-family:var(--mono); font-size:12px; }
.ev { display:flex; gap:var(--s2); padding:2px 4px; }
.ev .ts { color:#90a0ad; white-space:nowrap; }
.ev .act { color:var(--ink); }
.artifact { display:flex; gap:var(--s2); align-items:baseline; }
.opened .content { white-space:pre-wrap; font-family:var(--mono); font-size:12px; background:var(--surface);
  border:1px solid var(--line); border-radius:8px; padding:var(--s2); max-height:300px; overflow:auto; margin:0; }

/* ── EX-3 capacity bar — one calm, legible figure. Tokens consumed vs allocated; no dollars, no
   dials. Verdigris (the verified/work axis) on a soft track; restrained, in the console idiom. ── */
.capacity { display:flex; flex-direction:column; gap:8px; margin-top:2px; }
.capacity-track { height:10px; border-radius:999px; background:var(--verdigris-soft);
  border:1px solid var(--line); overflow:hidden; }
.capacity-fill { height:100%; background:var(--verdigris); border-radius:999px;
  transition:width .3s ease; }
.capacity-label { display:flex; align-items:baseline; gap:8px; }
.capacity-label strong { font:600 22px var(--display); color:var(--ink); font-variant-numeric:tabular-nums; }

@media (max-width:760px) { .panels { grid-template-columns:1fr; } }

/* ── EX-1a: the conversation-centric command surface ───────────────────────────
   reading-1 (locked): the conversation IS the command channel; structured objects surface as
   time-ordered cards; the fleet view is a living glance over the EX-1b four-state. Calm/functional,
   built only from the existing design tokens (drivers-now, glass-later). ── */

/* the EX-1b four-state, as a single legible pill. idle/working are quiet; the two "attention"
   states (needs-you / reported-back) stand out because they demand the founder's eyes. */
.state-pill { display:inline-flex; align-items:center; gap:6px; font:500 12px var(--body);
  padding:3px 10px; border-radius:999px; border:1px solid var(--line); white-space:nowrap; }
.state-pill .dot { width:7px; height:7px; border-radius:50%; background:var(--slate); flex:none; }
.state-pill.idle { color:var(--slate); background:var(--paper); }
.state-pill.working { color:#205c50; background:var(--verdigris-soft); border-color:#BFDdd5; }
.state-pill.working .dot { background:var(--verdigris); }
.state-pill.attention { font-weight:600; }
.state-pill.stuck { color:#7d5621; background:var(--brass-soft); border-color:#E3D2B3; }
.state-pill.stuck .dot { background:var(--brass); }
.state-pill.reporting { color:#205c50; background:var(--verdigris-soft); border-color:#9fcabd; }
.state-pill.reporting .dot { background:var(--verdigris); }

/* fleet glance: the whole employee card is now the click target into the conversation; an
   attention state gets a brass edge so it reads across the fleet at a glance. */
.emp { cursor:pointer; }
.emp:focus-visible { outline:2px solid var(--verdigris); outline-offset:2px; }
.emp.attention { border-left:3px solid var(--brass); }
.emp .id .state-pill { margin-left:auto; align-self:flex-start; }

/* ── the conversation surface ── */
.conv { display:flex; flex-direction:column; gap:var(--s3); }
.conv-head { display:flex; align-items:center; gap:var(--s2); flex-wrap:wrap; }
.conv-head .conv-id { display:flex; flex-direction:column; gap:1px; }
.conv-head .eyebrow { font-family:var(--mono); font-size:10px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--slate); }
.conv-head h1 { margin:0; font:600 24px var(--display); letter-spacing:-0.01em; }
/* the EX-3 capacity bar, restyled thin: status in the header, never an event in the stream */
.conv-cap { display:flex; align-items:center; gap:8px; margin-left:auto; }
.conv-cap .cap-track { width:120px; height:7px; border-radius:999px; background:var(--verdigris-soft);
  border:1px solid var(--line); overflow:hidden; }
.conv-cap .cap-fill { height:100%; background:var(--verdigris); border-radius:999px; transition:width .3s ease; }
.conv-cap .cap-pct { font:500 12px var(--mono); color:var(--slate); font-variant-numeric:tabular-nums; }

.stream-wrap { display:flex; flex-direction:column; gap:var(--s2);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:var(--s3); }
.stream { display:flex; flex-direction:column; gap:var(--s2); min-height:240px; max-height:56vh;
  overflow:auto; padding-right:4px; }
.stream-empty { margin:auto; color:var(--slate); font-size:14px; text-align:center; padding:var(--s4); }

/* stream cards — chat-shaped. "mine" (the founder) right-aligned ink; "agent" left paper; an "event"
   is a quiet centered transition line; "ask" + "deliverable" carry the structured objects. */
.card { border:1px solid var(--line); border-radius:10px; padding:var(--s2) var(--s2);
  font-size:13.5px; max-width:80%; }
.card .card-from { font:500 11px var(--mono); letter-spacing:0.04em; text-transform:uppercase;
  color:var(--slate); margin-bottom:4px; }
.card .card-from.attention { color:var(--brass); }
.card .card-body { display:flex; flex-direction:column; gap:3px; white-space:pre-wrap; }
.card .card-body .k, .card .k { color:var(--slate); display:inline-block; min-width:78px; }
.card.mine { align-self:flex-end; background:var(--ink); border-color:var(--ink); color:#fff; }
.card.mine .card-from { color:var(--sky); }
.card.agent { align-self:flex-start; background:var(--paper); }
.card.event { align-self:center; max-width:none; border:0; background:none; padding:2px 0;
  color:var(--slate); font-size:12.5px; display:flex; align-items:center; gap:7px; }
.card.event .ev-dot { width:5px; height:5px; border-radius:50%; background:#C3CCD4; }
.card.ask { align-self:stretch; max-width:none; background:var(--brass-soft); border-color:#E3D2B3;
  display:flex; flex-direction:column; gap:7px; }
.card.ask .q { font-weight:500; color:var(--ink); }
.card.deliverable { align-self:flex-start; background:var(--surface);
  display:flex; flex-direction:column; gap:3px; }

/* the composer pinned under the stream */
.composer { display:flex; flex-direction:column; gap:var(--s1); border-top:1px solid var(--line);
  padding-top:var(--s2); }
/* EX-1d task-attach: the attached-file chip (ephemeral input for the next send). */
.attach-chip { display:inline-flex; align-items:center; gap:8px; align-self:flex-start;
  font:500 12px var(--mono); color:#205c50; background:var(--verdigris-soft);
  border:1px solid #BFDdd5; border-radius:var(--r); padding:4px 8px; }
.attach-chip .attach-name { overflow:hidden; text-overflow:ellipsis; max-width:280px; white-space:nowrap; }

/* ── EX-1c: the conversation is complete (the Advanced-actions drawer #47 is DELETED) ──
   the three drawer panels are now chat-native: SOP proposals are stream cards, SOP authoring + go-live
   are composer modes, and the stream is filterable. Built only from the existing tokens. ── */

/* stream filter — collection views over the SAME objects; a lens, not a side panel. */
.stream-filter { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line);
  padding-bottom:var(--s1); }
.filter-tab { font:500 12px var(--body); color:var(--slate); background:none; border:1px solid var(--line);
  border-radius:999px; padding:4px 12px; cursor:pointer; }
.filter-tab:hover { color:var(--ink); border-color:var(--slate); }
.filter-tab.active { color:#205c50; background:var(--verdigris-soft); border-color:#BFDdd5; }

/* an in-stream notice — the honest record of a composer command-channel act (SOP added, go-live
   requested OR refused). A refusal reads as a real wall answer, never a silent fail. Centered like an
   event, but carries a tone. */
.card.notice { align-self:center; max-width:none; border:0; background:none; padding:2px 0;
  font-size:12.5px; display:flex; align-items:center; gap:7px; }
.card.notice .ev-dot { width:5px; height:5px; border-radius:50%; flex:none; }
.card.notice.ok { color:#205c50; }
.card.notice.ok .ev-dot { background:var(--verdigris); }
.card.notice.refusal { color:var(--danger); }
.card.notice.refusal .ev-dot { background:var(--danger); }

/* SOP-proposal card — card-as-summary (slot · source · value preview); disposal is in the opened view. */
.card.proposal-card { align-self:flex-start; background:var(--brass-soft); border-color:#E3D2B3;
  display:flex; flex-direction:column; gap:4px; }
.card.proposal-card .prop-summary { display:flex; gap:8px; align-items:baseline; font-size:12.5px; }
.card.proposal-card .prop-source { font:500 10px var(--mono); letter-spacing:0.04em; text-transform:uppercase;
  color:#7d5621; flex:none; }
.card.proposal-card .prop-preview { color:var(--slate); font-family:var(--mono); font-size:11.5px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* the honest Onboarder-hat refusal where proposal cards would be — calm, not alarming (a quiet
   surface/line idiom, not the red of a failed action). The wall is real; we name it, don't hide it. */
.card.proposal-card.refused { background:var(--surface); border-color:var(--line); }
.card.proposal-card.refused .prop-refused { color:var(--slate); font-size:12.5px; line-height:1.45; }

/* the composer mode switch — Task / Author SOP / Go live (all command-channel acts the founder drives). */
.composer-modes { display:flex; gap:6px; }
.mode-tab { font:500 12px var(--body); color:var(--slate); background:none; border:1px solid var(--line);
  border-radius:8px; padding:4px 12px; cursor:pointer; }
.mode-tab:hover { color:var(--ink); border-color:var(--slate); }
.mode-tab.active { color:#fff; background:var(--ink); border-color:var(--ink); }

@media (max-width:760px) {
  .card { max-width:92%; }
  .conv-cap { margin-left:0; }
}
