/* InboxSmith. Quiet stone-white workshop, black iron for actions, one hot colour (ember) for live work.
   Channels keep their own colours everywhere: email blue, SMS green, split violet, waits grey. */
:root {
  --bg: #f6f6f5;
  --panel: #efeeeb;
  --raised: #ffffff;
  --sunk: #e8e7e3;
  --line: #e4e1d8;
  --line-2: #d4d1c7;
  --ink: #000000;
  --ink-2: #3a3a38;
  --muted: #6b6b68;
  --faint: #959591;
  --btn: #000000;
  --btn-hover: #2b2b29;
  --on-btn: #f6f6f5;
  --ember: #ff6a2b;
  --ember-ink: #c2410c;
  --ember-soft: #ffeadf;
  --mail: #3b76ff;
  --mail-soft: #e6eeff;
  --sms: #3f7d3a;
  --sms-soft: #e7f1e4;
  --split: #8a5cf6;
  --split-soft: #f0eaff;
  --wait: #868685;
  --ok: #2e7d32;
  --ok-soft: #e6f2e6;
  --warn: #9a5b00;
  --warn-soft: #fbf0db;
  --bad: #c62828;
  --bad-soft: #fce6e4;
  --dot: rgba(0, 0, 0, .10);
  --shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-pop: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .08);
  --shadow-lift: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .12);
  --iron: #0f0f0e;
  --on-iron: #f6f6f5;
  --iron-line: rgba(246, 246, 245, .12);
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --pill: 999px;
  --sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --top: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0e; --panel: #151514; --raised: #1c1c1a; --sunk: #121211; --line: #2a2a27; --line-2: #383834;
    --ink: #f6f6f5; --ink-2: #d2d2ce; --muted: #9d9d99; --faint: #74746f; --btn: #f6f6f5; --btn-hover: #d9d9d5; --on-btn: #0f0f0e;
    --ember: #ff7a3d; --ember-ink: #ff9a66; --ember-soft: #3a1b0d; --mail: #7aa2ff; --mail-soft: #172340; --sms: #82c47a; --sms-soft: #16271a;
    --split: #b394ff; --split-soft: #261d3f; --wait: #8c8c88; --ok: #74cf7c; --ok-soft: #14291a; --warn: #e8b75c; --warn-soft: #2d2311;
    --bad: #ff8a80; --bad-soft: #3a1715; --dot: rgba(255, 255, 255, .09);
    --shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-pop: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .45);
    --shadow-lift: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .55);
    --iron: #000000; --on-iron: #f6f6f5; --iron-line: rgba(246, 246, 245, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f0e; --panel: #151514; --raised: #1c1c1a; --sunk: #121211; --line: #2a2a27; --line-2: #383834;
  --ink: #f6f6f5; --ink-2: #d2d2ce; --muted: #9d9d99; --faint: #74746f; --btn: #f6f6f5; --btn-hover: #d9d9d5; --on-btn: #0f0f0e;
  --ember: #ff7a3d; --ember-ink: #ff9a66; --ember-soft: #3a1b0d; --mail: #7aa2ff; --mail-soft: #172340; --sms: #82c47a; --sms-soft: #16271a;
  --split: #b394ff; --split-soft: #261d3f; --wait: #8c8c88; --ok: #74cf7c; --ok-soft: #14291a; --warn: #e8b75c; --warn-soft: #2d2311;
  --bad: #ff8a80; --bad-soft: #3a1715; --dot: rgba(255, 255, 255, .09);
  --shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-pop: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lift: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .55);
  --iron: #000000; --on-iron: #f6f6f5; --iron-line: rgba(246, 246, 245, .12);
  color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 21px; }
h3 { font-size: 16px; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--ember-soft); color: var(--ink); }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
ul, ol { margin: 0; padding-left: 18px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; line-height: 1.5; }
.tiny { font-size: 12px; line-height: 1.4; }
.label { font-size: 13px; color: var(--muted); font-weight: 450; }
.row { display: flex; align-items: center; gap: var(--gap, 10px); flex-wrap: wrap; min-width: 0; }
.row.nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 14px); min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.spread { justify-content: space-between; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); gap: var(--gap, 16px); }
.section { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.section > .row:first-child h2 { margin-right: 4px; }
.tablewrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); background: var(--raised); }

/* ---------- icons */
.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i.lg { width: 22px; height: 22px; stroke-width: 1.4; }

/* ---------- buttons */
.btn { --h: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px;
  border: 0; border-radius: var(--pill); background: var(--btn); color: var(--on-btn); font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }
.btn .i { width: 15px; height: 15px; }
.btn.ghost, .btn.quiet { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--panel); }
.btn.quiet { box-shadow: none; background: transparent; }
.btn.quiet:hover { background: var(--panel); }
.btn.small { --h: 32px; padding: 0 14px; font-size: 13px; }
.btn.tiny { --h: 26px; padding: 0 10px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--bad); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .glow { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 30%, transparent); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); cursor: pointer; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--panel); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.linkbtn:hover { color: var(--ink); text-decoration-color: currentColor; }
form { margin: 0; }

/* ---------- chips, dots, tags */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pill);
  background: var(--panel); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.chip.plain::before { display: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.ok::before { background: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.warn::before { background: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.bad::before { background: var(--bad); }
.chip.hot { background: var(--ember-soft); color: var(--ember-ink); } .chip.hot::before { background: var(--ember); animation: breathe 1.6s var(--ease) infinite; }
.chip.mail { background: var(--mail-soft); color: var(--mail); } .chip.mail::before { background: var(--mail); border-radius: 2px; }
.chip.sms { background: var(--sms-soft); color: var(--sms); } .chip.sms::before { background: var(--sms); border-radius: 2px; }
.sq { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; background: var(--faint); }
.sq.mail { background: var(--mail); } .sq.sms { background: var(--sms); } .sq.split { background: var(--split); }
.sq.delay { background: var(--wait); } .sq.ember { background: var(--ember); } .sq.ink { background: var(--ink); }
.offer-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: var(--pill);
  background: var(--warn-soft); color: var(--warn); width: fit-content; }
.heatbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ember-ink); }
.heatbadge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: var(--raised); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; transition: box-shadow .15s var(--ease); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
input[type=color] { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
input[type=file] { font-size: 13px; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.seg button, .seg a { height: 28px; padding: 0 12px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .06); }
.switch { position: relative; width: 38px; height: 22px; border-radius: var(--pill); background: var(--line-2); border: 0; cursor: pointer; flex: none;
  transition: background .2s var(--ease); padding: 0; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--ember); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }

/* ---------- cards, notices, tables */
.card { background: var(--raised); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: var(--gap, 12px); min-width: 0; }
.card.flat { background: var(--panel); box-shadow: none; }
.card.tight { padding: 14px 16px; }
.card.row { flex-direction: row; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); color: var(--ink-2); font-size: 14px; }
.notice::before { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--faint); }
.notice.ok { background: var(--ok-soft); color: var(--ok); } .notice.ok::before { background: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); } .notice.warn::before { background: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); } .notice.bad::before { background: var(--bad); }
.notice.info { background: var(--mail-soft); color: color-mix(in srgb, var(--mail) 70%, var(--ink)); } .notice.info::before { background: var(--mail); }
.notice.hallmark { background: var(--ember-soft); color: var(--ember-ink); } .notice.hallmark::before { background: var(--ember); }
.notice a { color: inherit; }
.notice a.btn:not(.ghost) { color: var(--on-btn); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t tbody tr:hover { background: color-mix(in srgb, var(--panel) 55%, transparent); }
details.more > summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--panel); font-size: 13px; }
details.more[open] > summary::before { content: '–'; }
pre.code { white-space: pre-wrap; word-break: break-word; font: 12px/1.55 var(--mono); background: var(--sunk); padding: 14px; border-radius: var(--r-sm); max-height: 420px; overflow: auto; }
blockquote { margin: 0; }

/* ---------- avatars */
.avatars { display: flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 650; letter-spacing: 0;
  color: #fff; background: hsl(var(--h, 20) 55% 42%); box-shadow: 0 0 0 2px var(--bg); flex: none; }
.avatars .avatar + .avatar { margin-left: -7px; }
.avatar.smith { background: var(--iron); color: var(--ember); }

/* ---------- menus (details-based) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; z-index: 60; top: calc(100% + 8px); min-width: 250px; padding: 6px; border-radius: var(--r); background: var(--raised);
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 1px; animation: pop .16s var(--ease); }
.menu-panel.right { right: 0; } .menu-panel.left { left: 0; }
.menu-panel .mlabel { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); }
.menu-panel a, .menu-panel button.mi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-xs); text-decoration: none;
  font-size: 14px; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--ink); }
.menu-panel a:hover, .menu-panel button.mi:hover, .menu-panel a[aria-current="true"] { background: var(--panel); }
.menu-panel .meta { margin-left: auto; font-size: 12px; color: var(--faint); }
.menu-panel hr { margin: 4px 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- toasts */
.toasts { position: fixed; z-index: 90; top: calc(var(--top) + 12px); left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--raised);
  box-shadow: var(--shadow-lift); font-size: 14px; animation: toastin .3s var(--ease); word-break: break-word; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--ink); flex: none; }
.toast.ok .dot { background: var(--ok); } .toast.bad .dot { background: var(--bad); } .toast.info .dot { background: var(--mail); }
.toast.warn .dot { background: var(--warn); } .toast.hallmark .dot { background: var(--ember); }
.toast .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 18px; line-height: 1; }
.toast.out { animation: toastout .2s var(--ease) forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toastout { to { opacity: 0; transform: translateY(-6px); } }

/* ---------- shell: top bar */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 16px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .right { justify-content: flex-end; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.035em; color: var(--ink); flex: none; }
.wordmark .mark { width: 26px; height: 26px; }
.wordmark .smith { color: var(--ember-ink); }
.crumb-sep { color: var(--line-2); font-size: 18px; font-weight: 300; }
.brandbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px; border-radius: var(--pill); font-size: 14px; font-weight: 550;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); max-width: 230px; }
.brandbtn:hover { background: var(--raised); }
.brandbtn .bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blogo { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none;
  background: var(--iron); color: var(--on-iron); overflow: hidden; }
.blogo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.caret { width: 12px; height: 12px; stroke: var(--muted); fill: none; stroke-width: 1.8; flex: none; }

/* stage tabs: one segmented control, like the stages of a single piece of work */
.stages { display: flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto;
  scrollbar-width: none; max-width: 100%; }
.stages::-webkit-scrollbar { display: none; }
.stages a { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: var(--pill); text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.stages a:hover { color: var(--ink); }
.stages a[aria-current="page"] { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .06); }
.stages a.locked { color: var(--faint); }
.stages .st { width: 15px; height: 15px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.stages .done .st { background: var(--ink); box-shadow: none; color: var(--bg); }
.stages .done .st svg { width: 9px; height: 9px; }
.stages .active .st { box-shadow: inset 0 0 0 1.5px var(--ember); }
.stages .active .st::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.stages .active.hot .st::after { animation: breathe 1.4s var(--ease) infinite; }
.kl-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--pill); font-size: 13px; font-weight: 500;
  text-decoration: none; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.kl-pill .sq { border-radius: 50%; width: 7px; height: 7px; }
.mobile-only { display: none !important; }

/* ---------- document pages */
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding-block: 36px 96px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.page.narrow { max-width: 760px; }
.page-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.page-head .titles { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 72ch; }
.page-head h1 { font-size: 34px; }
.page-head .lede { font-size: 17px; line-height: 1.5; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.forgetag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.forgetag .i { width: 14px; height: 14px; color: var(--ember); }
.gatebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 12px 12px 18px;
  border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); }
.gatebar .who { font-size: 13px; color: var(--muted); }

/* ---------- empty states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px 24px; border-radius: var(--r-lg);
  background: var(--panel); }
.empty .art { width: 220px; max-width: 70%; aspect-ratio: 2 / 1; border-radius: var(--r); overflow: hidden; margin-bottom: 6px; }
.empty h3 { font-size: 20px; letter-spacing: -0.02em; }
.empty p { color: var(--muted); max-width: 52ch; }
.empty .row { justify-content: center; }

/* ---------- dither (the forge's glow, drawn in pixels) */
canvas.dither { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.dbox { position: relative; overflow: hidden; background: var(--iron); }
.dbox > canvas.dither { position: absolute; inset: 0; }

/* ---------- the forge box: agents at work */
.forgebox { position: relative; display: grid; grid-template-columns: 76px 1fr; border-radius: var(--r); overflow: hidden; background: var(--iron); color: var(--on-iron);
  box-shadow: 0 0 0 1px var(--iron-line); min-height: 96px; }
.forgebox .glowcol { position: relative; background: #000; }
.forgebox .body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.forgebox .head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.forgebox .head .when { margin-left: auto; font-weight: 400; font-size: 12.5px; color: rgba(246, 246, 245, .5); }
.forgebox .head .spark { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: breathe 1.4s var(--ease) infinite; }
.forgebox.cold .head .spark { animation: none; box-shadow: none; background: rgba(246, 246, 245, .45); }
.forgebox.failed .head .spark { background: #ff8a80; animation: none; box-shadow: none; }
.forgebox ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: rgba(246, 246, 245, .62); }
.forgebox li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; }
.forgebox li:last-child { color: var(--on-iron); }
.forgebox time { font-variant-numeric: tabular-nums; color: rgba(246, 246, 245, .38); }
.forgebox .err { font-size: 13.5px; color: #ffb4ab; background: rgba(255, 138, 128, .1); padding: 10px 12px; border-radius: var(--r-sm); }
.forgebox.compact { grid-template-columns: 44px 1fr; min-height: 0; }
.forgebox.compact ol { display: none; }
.forgebox.compact .body { padding: 10px 14px; }

/* ---------- workspace (canvas pages): list · canvas · inspector */
.ws { display: grid; grid-template-columns: 272px minmax(0, 1fr) 340px; height: calc(100dvh - var(--top)); }
.ws.no-right { grid-template-columns: 272px minmax(0, 1fr); }
.ws-left { border-right: 1px solid var(--line); overflow-y: auto; padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 18px; background: var(--bg); }
.ws-right { border-left: 1px solid var(--line); overflow-y: auto; background: var(--bg); display: flex; flex-direction: column; }
.ws-right .ins { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.ws-right .ins:last-child { border-bottom: 0; }
.ws-center { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }
.ws-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ws-bar h1 { font-size: 20px; letter-spacing: -0.025em; }
.ws-bar .meta { font-size: 13px; color: var(--muted); display: inline-flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ws-bar .meta span { display: inline-flex; align-items: center; gap: 6px; }
.ws-bar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.canvas { position: relative; flex: 1 1 auto; overflow: auto; min-height: 0;
  background-color: var(--panel); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 20px 20px; }
.canvas.grab { cursor: grab; } .canvas.grabbing { cursor: grabbing; user-select: none; }
.zoom { position: absolute; left: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--pill);
  background: var(--raised); box-shadow: var(--shadow-pop); font-size: 12.5px; }
.zoom button { width: 30px; height: 28px; border: 0; background: none; border-radius: var(--pill); cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.zoom button:hover { background: var(--panel); }
.zoom output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.panel-title { font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; }

/* list in the left panel */
.navlist { display: flex; flex-direction: column; gap: 2px; }
.navlist a, .navlist button.nl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-2); font-size: 14px; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.navlist a:hover, .navlist button.nl:hover { background: var(--panel); color: var(--ink); }
.navlist a[aria-current="true"], .navlist button.nl[aria-current="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow); }
.navlist .n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--panel);
  color: var(--muted); font-variant-numeric: tabular-nums; }
.navlist [aria-current="true"] .n { background: var(--ink); color: var(--bg); }
.navlist .t1 { font-weight: 550; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navlist .t2 { display: block; font-size: 12.5px; color: var(--muted); }
.navlist .end { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bars { display: flex; gap: 3px; margin-top: 6px; }
.bars i { height: 4px; flex: 1; border-radius: 2px; background: var(--line-2); }
.bars i.on { background: var(--ink); } .bars i.hot { background: var(--ember); } .bars i.ok { background: var(--ok); }

/* the floating prompt bar: talk to the agents */
.promptbar { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); padding: 10px 10px 10px 14px;
  border-radius: 18px; background: var(--raised); box-shadow: var(--shadow-lift); display: flex; flex-direction: column; gap: 8px; }
.promptbar textarea { min-height: 44px; max-height: 160px; padding: 4px 2px; box-shadow: none; background: transparent; resize: none; font-size: 15px; }
.promptbar textarea:focus { box-shadow: none; }
.promptbar .foot { display: flex; align-items: center; gap: 8px; }
.promptbar .ctx { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: var(--pill); background: var(--panel); font-size: 12.5px; font-weight: 500; color: var(--ink-2); max-width: 70%; }
.promptbar .ctx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promptbar .ctx button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 3px; }
.promptbar .who { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* inspector */
.ins h3 { font-size: 17px; }
.ins .kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13.5px; margin: 0; }
.ins .kv dt { color: var(--muted); }
.ins .kv dd { margin: 0; color: var(--ink); }
.ins-empty { color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.ins-empty .art { height: 92px; border-radius: var(--r); overflow: hidden; }

/* ---------- flow map */
.flowmap { display: flex; align-items: flex-start; gap: 40px; padding: 40px 48px 200px; width: max-content; transform-origin: 0 0; transition: transform .2s var(--ease); }
.lane { width: 300px; flex: none; display: flex; flex-direction: column; align-items: stretch; }
.lane.wide { width: auto; min-width: 300px; }
.lane-head { display: flex; flex-direction: column; gap: 6px; padding: 0 2px 16px; }
.lane-head .row { --gap: 8px; }
.lane-head h2 { font-size: 17px; letter-spacing: -0.02em; }
.lane-head .order { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lane-head .counts { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.lane-head .counts span { display: inline-flex; align-items: center; gap: 5px; }
.chain { display: flex; flex-direction: column; align-items: center; }
.chain > .node, .chain > .splitnode { width: 100%; }
.link { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.node { position: relative; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px 13px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.node:hover { box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px rgba(0, 0, 0, .07); }
.node[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink), 0 6px 18px rgba(0, 0, 0, .08); }
.node .top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.node .top .kind { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.node .top .at { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--faint); }
.node .ttl { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.node .sub { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.node .subj { font-size: 12.5px; color: var(--ink-2); padding: 7px 9px; border-radius: var(--r-xs); background: var(--panel); line-height: 1.4; }
.node .subj b { font-weight: 550; color: var(--muted); }
.node .foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.node .thumbline { display: flex; gap: 10px; align-items: flex-start; }
.node .mini { width: 52px; height: 64px; border-radius: 6px; overflow: hidden; flex: none; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.node .mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.node.trigger { background: var(--iron); color: var(--on-iron); box-shadow: 0 0 0 1px var(--iron-line); }
.node.trigger .top, .node.trigger .top .kind { color: rgba(246, 246, 245, .6); }
.node.trigger .sub { color: rgba(246, 246, 245, .66); -webkit-line-clamp: 4; }
.node.trigger[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ember); }
.node.sms .bubble { font-size: 13px; line-height: 1.45; padding: 9px 11px; border-radius: 14px 14px 14px 4px; background: var(--sms-soft); color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wait { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: var(--pill); background: var(--bg); box-shadow: 0 0 0 1px var(--line-2);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; cursor: default; font-variant-numeric: tabular-nums; }
.wait .i { width: 13px; height: 13px; color: var(--muted); }
.wait.now { color: var(--muted); }
.splitnode { display: flex; flex-direction: column; align-items: center; }
.splitnode > .node { width: 100%; border-top: 3px solid var(--split); }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; position: relative; padding-top: 22px; }
.branches::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 22px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; }
.branch { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.branch > .node { width: 100%; }
.branch .blabel { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--pill); background: var(--split-soft); color: var(--split); margin-bottom: 0; }
.endcap { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: var(--pill); font-size: 12px; color: var(--faint); box-shadow: 0 0 0 1px dashed var(--line-2);
  border: 1px dashed var(--line-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.detail-src { display: none; }

/* ---------- emails workspace: queue + strip */
.autopilot { padding: 14px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.autopilot .row { flex-wrap: nowrap; align-items: flex-start; }
.autopilot b { font-size: 14px; }
.autopilot p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.strip { display: flex; align-items: center; gap: 0; padding: 36px 40px 140px; width: max-content; min-height: 100%; }
.strip > .hlink { width: 28px; height: 1px; background: var(--line-2); flex: none; }
.strip .wait { flex: none; }
.strip .node.trigger { width: 220px; flex: none; }
.strip .node.sms { width: 240px; flex: none; }
.mailcard { width: 236px; flex: none; display: flex; flex-direction: column; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
a.mailcard:hover { box-shadow: 0 0 0 1px var(--line-2), 0 14px 34px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.mailcard .shot { position: relative; height: 300px; background: var(--sunk); overflow: hidden; border-bottom: 1px solid var(--line); }
.mailcard .shot img { width: 100%; height: auto; }
.mailcard .shot .cold { position: absolute; inset: 0; display: grid; place-items: center; }
.mailcard .shot .cold .lbl { position: relative; z-index: 2; font-size: 12.5px; font-weight: 550; padding: 4px 10px; border-radius: var(--pill); background: rgba(15, 15, 14, .7); color: #f6f6f5; }
.mailcard .shot .stampmini { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 64px; color: var(--ember); background: var(--raised); border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15); transform: rotate(-12deg); }
.mailcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.mailcard .top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.mailcard .top .at { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
.mailcard b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.mailcard .foot { display: flex; gap: 6px; flex-wrap: wrap; }
.flowsteps { display: flex; flex-direction: column; gap: 0; counter-reset: fs; }
.flowsteps li { list-style: none; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.flowsteps li .b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 650; background: var(--panel); color: var(--muted); }
.flowsteps li.done .b { background: var(--ink); color: var(--bg); }
.flowsteps li.now .b { background: var(--ember); color: #fff; }
.flowsteps li p { color: var(--muted); font-size: 12.5px; }

/* ---------- review (the Anvil) */
.review-stage { flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 24px 80px;
  background-color: var(--panel); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 20px 20px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inboxrow { width: 100%; max-width: 600px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r);
  background: var(--raised); box-shadow: var(--shadow); }
.inboxrow .from { font-size: 13.5px; font-weight: 650; }
.inboxrow .subj { font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inboxrow .prev { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inboxrow .when { font-size: 12px; color: var(--faint); align-self: start; }
.device-wrap { position: relative; }
.device { position: relative; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lift); transform-origin: top left; transition: width .25s var(--ease); }
.device.phone { border-radius: 30px; padding: 10px; background: #111; }
.device.phone iframe { border-radius: 22px; }
.device iframe { display: block; width: 100%; border: 0; min-height: 600px; background: #fff; border-radius: 10px; }
.pins { position: absolute; inset: 0; }
.device.phone .pins { inset: 10px; }
.pins.armed { cursor: crosshair; background: color-mix(in srgb, var(--ember) 6%, transparent); outline: 2px dashed var(--ember); outline-offset: -2px; }
.pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50% 50% 50% 4px; border: 2px solid #fff; background: var(--ember);
  color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); padding: 0; }
.pin.resolved { background: var(--faint); }
.pin.draft { background: var(--ink); }
.comment { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px; border-radius: var(--r-sm); background: var(--raised); box-shadow: var(--shadow); }
.comment .n { width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; background: var(--ember); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.comment.resolved { opacity: .62; } .comment.resolved .n { background: var(--faint); }
.comment p { font-size: 14px; }
.comment .who { font-size: 12px; color: var(--muted); }
.hallmarked-banner { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--ember-soft); color: var(--ember-ink); }
.stamp { width: 92px; height: 92px; color: var(--ember); }
.stamp.drop { animation: stampdrop .6s var(--ease); }
@keyframes stampdrop { 0% { transform: scale(1.7) rotate(-18deg); opacity: 0; } 60% { transform: scale(.94) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }
.stampmini { width: 44px; height: 44px; color: var(--ember); }
.decide { display: flex; flex-direction: column; gap: 10px; }
.decide .hint { font-size: 12.5px; color: var(--muted); }

/* ---------- overview */
.hello { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.hello h1 { font-size: 40px; letter-spacing: -0.035em; line-height: 1.05; }
.hello p { font-size: 18px; color: var(--muted); max-width: 60ch; }
.nextcard { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--raised); box-shadow: var(--shadow); min-height: 260px; }
.nextcard .art { position: relative; min-height: 220px; }
.nextcard .art .float { position: absolute; left: 24px; top: 24px; z-index: 2; width: min(300px, calc(100% - 48px)); padding: 6px; border-radius: var(--r);
  background: color-mix(in srgb, var(--raised) 88%, transparent); box-shadow: var(--shadow-pop); }
.nextcard .art .float .mlabel { padding: 6px 8px 4px; font-size: 12px; color: var(--muted); }
.nextcard .art .float .r { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-xs); font-size: 13.5px; }
.nextcard .art .float .r.cur { background: var(--panel); font-weight: 550; }
.nextcard .art .float .r .meta { margin-left: auto; color: var(--faint); font-size: 12px; }
.nextcard .copy { padding: 30px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.nextcard .copy h2 { font-size: 26px; letter-spacing: -0.03em; }
.nextcard .copy p { color: var(--muted); font-size: 15.5px; }
.nextcard .copy .row { margin-top: 6px; }
.journeygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journeygrid a { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border-left: 1px solid var(--line); min-width: 0; min-height: 150px; }
.journeygrid a:first-child { border-left: 0; padding-left: 4px; }
.journeygrid a:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); }
.journeygrid .k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.journeygrid b { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.journeygrid .s { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.journeygrid .icon { color: var(--ink-2); margin-bottom: 8px; }
.journeygrid .done .icon { color: var(--ok); }
.journeygrid .active .icon { color: var(--ember); }
.journeygrid .locked { color: var(--faint); }
.journeygrid .locked .icon, .journeygrid .locked b { color: var(--faint); }
.feed { display: flex; flex-direction: column; }
.feed .it { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed .it:last-child { border-bottom: 0; }
.feed .it .when { font-size: 12px; color: var(--faint); white-space: nowrap; }
.feed .sys { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--ember); }
.logo-plate { min-height: 96px; display: grid; place-items: center; padding: 20px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.logo-plate.dark { background: #111; }
.logo-plate img { max-height: 70px; max-width: 80%; object-fit: contain; }
.swatchline { display: flex; gap: 6px; }
.swatchline span { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ---------- home: brands */
.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.brandcard { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.brandcard:hover { box-shadow: 0 0 0 1px var(--line-2), 0 14px 34px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.brandcard .cover { position: relative; height: 128px; }
.brandcard .cover .logo { position: absolute; left: 16px; bottom: 16px; z-index: 2; height: 44px; max-width: 60%; padding: 8px 12px; border-radius: var(--r-sm); background: #fff;
  display: flex; align-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.brandcard .cover .logo.dark { background: #111; }
.brandcard .cover .logo img { max-height: 28px; width: auto; }
.brandcard .cover .logo span { color: #000; font-weight: 700; letter-spacing: -0.02em; }
.brandcard .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.brandcard .meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* ---------- brand kit */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.swatch { border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); overflow: hidden; }
.swatch .chipcolor { height: 64px; box-shadow: inset 0 -1px 0 var(--line); }
.swatch .meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.swatch .meta b { font-weight: 550; }
.typecard { padding: 20px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.typecard .sample { font-size: 34px; line-height: 1.15; overflow-wrap: anywhere; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); gap: 10px; }
.photos figure { margin: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--panel); }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photos figcaption { font-size: 11.5px; color: var(--muted); padding: 6px 8px; }
.fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .claim { font-weight: 550; }
.fact blockquote { margin-top: 6px; font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line-2); }
.fact.rejected .claim { text-decoration: line-through; color: var(--muted); }
.voiceline { font-size: 18px; letter-spacing: -0.015em; line-height: 1.4; padding-left: 12px; border-left: 2px solid var(--ember); }

/* ---------- audit */
.headline-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--iron); color: var(--on-iron); display: grid; grid-template-columns: minmax(0, 1fr) 220px; }
.headline-card .copy { padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.headline-card .copy .label { color: rgba(246, 246, 245, .55); }
.headline-card h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.headline-card p { color: rgba(246, 246, 245, .74); }
.headline-card .art { position: relative; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { padding: 18px 18px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.figure:first-child { border-left: 0; padding-left: 4px; }
.figure .v { font-size: 30px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fix { display: grid; grid-template-columns: 36px minmax(0, 1fr) 180px; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fix:last-child { border-bottom: 0; }
.fix .rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; }
.fix h3 { font-size: 17px; }
.fix p { font-size: 14px; }
.fix .value { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.fix .value b { font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.coverage { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.coverage > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--raised); box-shadow: var(--shadow); font-size: 14px; }

/* ---------- forge bench (smiths) */
.emailgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.emailcard { display: flex; flex-direction: column; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; }
a.emailcard:hover { box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px rgba(0, 0, 0, .08); }
.emailcard .thumb { position: relative; height: 220px; overflow: hidden; background: var(--sunk); border-bottom: 1px solid var(--line); }
.emailcard .thumb img { width: 100%; }
.emailcard .thumb .cold { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.emailcard .thumb .stampmini { position: absolute; right: 8px; bottom: 8px; background: var(--raised); border-radius: 50%; }
.emailcard .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.previews { display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 375fr); gap: 20px; align-items: start; }
.previews img { border-radius: var(--r-sm); box-shadow: var(--shadow-pop); background: #fff; }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.refs figure { margin: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--raised); box-shadow: var(--shadow); }
.refs figure.chosen { box-shadow: 0 0 0 2px var(--ember); }
.refs .im { height: 200px; overflow: hidden; background: var(--sunk); }
.refs figcaption { padding: 8px 10px; font-size: 12.5px; }
.rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.round { padding: 16px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.scores { display: flex; flex-wrap: wrap; gap: 6px; }
.scores span { font-size: 12px; padding: 3px 8px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok); font-variant-numeric: tabular-nums; }
.scores span.low { background: var(--warn-soft); color: var(--warn); }

/* ---------- auth */
.authwrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.authform { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 48px max(24px, env(safe-area-inset-left, 0px)); max-width: 460px; width: 100%; margin: 0 auto; }
.authform h1 { font-size: 34px; letter-spacing: -0.035em; }
.authform .lede { color: var(--muted); font-size: 16px; }
.btn.google { gap: 10px; }
.btn.google svg { width: 18px; height: 18px; flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.authart { position: relative; margin: 12px; border-radius: var(--r-lg); overflow: hidden; background: var(--iron); color: var(--on-iron); }
.authart .over { position: absolute; z-index: 2; left: 36px; right: 36px; bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.authart .over h2 { font-size: 40px; letter-spacing: -0.04em; line-height: 1.02; }
.authart .over p { color: rgba(246, 246, 245, .7); max-width: 40ch; }
.authart .float { position: absolute; z-index: 2; top: 36px; right: 36px; width: 260px; padding: 6px; border-radius: var(--r); background: rgba(246, 246, 245, .92);
  color: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.authart .float .mlabel { padding: 6px 8px 4px; font-size: 12px; color: #6b6b68; }
.authart .float .r { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; font-size: 13.5px; }
.authart .float .r.cur { background: #efeeeb; font-weight: 550; }
.authart .float .r .meta { margin-left: auto; color: #959591; font-size: 12px; }

/* ---------- responsive */
@media (max-width: 1260px) {
  .ws { grid-template-columns: 240px minmax(0, 1fr) 300px; }
  .stages a .lbl { display: none; }
  .stages a[aria-current="page"] .lbl { display: inline; }
}
@media (max-width: 1020px) {
  .ws, .ws.no-right { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ws-left { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; flex-direction: row; overflow-x: auto; gap: 12px; }
  .ws-left > * { flex: none; }
  .ws-left .navlist { flex-direction: row; }
  .ws-left .navlist a, .ws-left .navlist button.nl { width: auto; white-space: nowrap; }
  .ws-left .panel-title, .ws-left .hide-narrow { display: none; }
  .ws-left .autopilot { width: 300px; }
  .ws-center { min-height: 70vh; }
  .canvas { min-height: 70vh; }
  .ws-right { border-left: 0; border-top: 1px solid var(--line); }
  .journeygrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journeygrid a:nth-child(5) { border-left: 0; padding-left: 4px; }
  .journeygrid a:nth-child(n+5) { border-top: 1px solid var(--line); }
  .nextcard { grid-template-columns: 1fr; }
  .headline-card { grid-template-columns: 1fr; }
  .headline-card .art { height: 90px; order: -1; }
  .authwrap { grid-template-columns: 1fr; }
  .authart { min-height: 320px; order: -1; }
  .authart .float { display: none; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: var(--top); row-gap: 0; padding-top: 10px; }
  .topbar .center { grid-column: 1 / -1; grid-row: 2; padding: 8px 0 10px; overflow: hidden; }
  .stages { width: 100%; }
  .stages a .lbl { display: inline; }
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { padding-top: 24px; }
  .page-head h1, .hello h1 { font-size: 30px; }
  .journeygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journeygrid a { border-left: 0 !important; padding-left: 4px !important; border-top: 1px solid var(--line); min-height: 0; }
  .journeygrid a:nth-child(even) { border-left: 1px solid var(--line) !important; padding-left: 14px !important; }
  .journeygrid a:nth-child(-n+2) { border-top: 0; }
  .fix { grid-template-columns: 30px minmax(0, 1fr); }
  .fix .value { grid-column: 2; text-align: left; align-items: flex-start; }
  .figure { border-left: 0; border-top: 1px solid var(--line); padding-left: 4px; }
  .figure:first-child { border-top: 0; }
  .previews { grid-template-columns: 1fr; }
  .flowmap { padding: 24px 16px 200px; gap: 28px; }
  .lane { width: 280px; }
  .strip { padding: 24px 16px 120px; }
  .wordmark .wtxt { display: none; }
  .authart .over h2 { font-size: 30px; }
  .ins .kv { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.i.mk { stroke: none; }
.hsplit { display: flex; align-items: center; flex: none; }
.hsplit .rows { display: flex; flex-direction: column; gap: 28px; padding-left: 0; border-left: 1px solid var(--line-2); }
.hsplit .rows .r { display: flex; align-items: center; }
.hsplit .blabel { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--pill); background: var(--split-soft); color: var(--split); flex: none; }
.mailcard .shot .cold.dbox { background: #0b0b0a; }
.navlist .n svg { width: 10px; height: 10px; }
.stagewrap { position: relative; flex: 1 1 auto; min-height: 0; }
.stagewrap > .canvas { position: absolute; inset: 0; }
.stagewrap > .zoom { left: auto; right: 14px; bottom: auto; top: 14px; }
.navlist .end { white-space: nowrap; }
@media (max-width: 1020px) { .stagewrap { min-height: 72vh; } }
.navlist a > span:nth-child(2), .navlist button.nl > span:nth-child(2) { min-width: 0; }
.mailcard .shot .cold.idle { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--faint);
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 55%, transparent) 10px 11px); }
.navlist.reel a { grid-template-columns: 44px 1fr; }
.rthumb { width: 44px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--faint); }
.rthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; width: 100%; justify-content: center; }
.compare figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.compare figcaption { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.compare img { border-radius: 10px; box-shadow: var(--shadow-lift); background: #fff; }
kbd { font: 500 11.5px var(--sans); padding: 1px 6px; border-radius: 5px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 var(--line-2); }
.decide .btn.ghost[aria-disabled="true"] { opacity: .5; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .strip { flex-direction: column; width: 100%; padding: 20px 16px 120px; }
  .strip > .hlink, .hsplit .rows .r > .hlink { width: 1px; height: 22px; }
  .strip .node.trigger, .strip .node.sms, .mailcard { width: min(100%, 320px); }
  .hsplit { flex-direction: column; } .hsplit .rows { border-left: 0; } .hsplit .rows .r { flex-direction: column; }
}
details.changenote { display: block; cursor: pointer; }
details.changenote::before { display: none; }
details.changenote summary { list-style: none; } details.changenote summary::-webkit-details-marker { display: none; }
details.changenote[open] summary { margin-bottom: 6px; }
.lane.wide, .lane.wide .branches { width: max-content; min-width: 640px; }
.lane.wide .chain > .node, .lane.wide .splitnode > .node, .lane .branch .node { width: 300px; }
.lane .branch { min-width: 300px; }
.node .twin { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .lane.wide, .lane.wide .branches { min-width: 560px; } .lane .branch { min-width: 270px; }
  .lane.wide .chain > .node, .lane.wide .splitnode > .node, .lane .branch .node { width: 270px; } }
