/* Agency workspace: older components (forms, cards, tags, timeline, wizard, tests…). Built on the one system:
   values in future.css, legacy names aliased in canvas.css. */

/* Fonts and tokens: future.css (values) + canvas.css (legacy names aliased to --fx-*). */
:root { --side-w: 248px; }

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 56px 100%, var(--bg); }
::selection { background: rgba(201, 100, 66, 0.18); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(31, 30, 29, 0.12); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(31, 30, 29, 0.22); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: 0; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
h4 { font-size: 12px; line-height: 1.4; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hidden { display: none !important; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bad { color: var(--bad); }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 13px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > input { flex: 1; min-width: 0; }
.gap-top { margin-top: 16px; }
.eyebrow { font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); margin-bottom: 8px; }
.lede { color: var(--ink-2); margin-top: 6px; max-width: 64ch; }

/* ── icons ── */
.ico { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ── controls ──
   Base element styles are zero-specificity (:where), so every component class wins without !important.
   The look = future.css .fx-btn: pill, 38 high (30 .sm / 46 .lg), 14px 500, hairline ring; .primary = the black fx primary. */
:where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(button, .btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--fx-h); padding: 0 16px;
  border: 0; border-radius: var(--fx-r-pill); cursor: pointer; white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; transition: background var(--fx-fast) var(--fx-ease), color var(--fx-fast), box-shadow var(--fx-fast), transform var(--fx-fast) var(--fx-ease), opacity var(--fx-fast);
  background: var(--fx-card); color: var(--fx-ink); box-shadow: var(--fx-shadow-hair);
}
:where(button, .btn):hover { box-shadow: var(--fx-shadow-lift); text-decoration: none; }
:where(button, .btn):active { transform: translateY(1px); }
:where(button):disabled { opacity: .45; cursor: default; transform: none; }
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, li:focus-visible, summary:focus-visible { outline: 2px solid rgba(201, 100, 66, 0.45); outline-offset: 2px; }
:where(.primary) { background: var(--fx-ink); color: #fff; box-shadow: var(--fx-shadow-ink); }
:where(.primary):hover { background: var(--fx-ink-hover); box-shadow: var(--fx-shadow-ink); }
:where(.secondary) { background: var(--fx-card); }
:where(.ghost) { background: transparent; box-shadow: none; color: var(--ink-2); }
:where(.ghost):hover { background: var(--primary-soft); color: var(--ink); box-shadow: none; }
:where(.danger) { background: var(--fx-card); color: var(--bad); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fx-bad) 35%, transparent); }
:where(.danger):hover:not(:disabled) { background: var(--bad-soft); }
:where(.sm) { height: var(--fx-h-sm); padding: 0 12px; font-size: 13px; }
:where(.lg) { height: var(--fx-h-lg); padding: 0 22px; font-size: 15px; }
.block { width: 100%; }
:where(.link) { background: none; box-shadow: none; height: auto; padding: 0; color: var(--fx-cobalt-deep); font-weight: 500; }
:where(.link):hover { text-decoration: underline; background: none; box-shadow: none; }
:where(.icon-btn) { width: var(--fx-h-sm); height: var(--fx-h-sm); padding: 0; background: transparent; box-shadow: none; color: var(--ink-3); border-radius: var(--fx-r-pill); }
:where(.icon-btn):hover { background: var(--primary-soft); color: var(--ink); box-shadow: none; }
.danger-hover:hover { background: var(--bad-soft); color: var(--bad); }

:where(input, textarea, select) {
  width: 100%; border: 0; border-radius: var(--fx-r-inner); padding: 9px 14px; background: var(--fx-card); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--fx-line-2); outline: none; transition: box-shadow var(--fx-fast), background var(--fx-fast);
}
:where(input, select) { height: var(--fx-h); }
:where(input, textarea, select):hover { box-shadow: inset 0 0 0 1px var(--fx-line-3); }
:where(input, textarea, select):focus { box-shadow: inset 0 0 0 1px var(--fx-cobalt), 0 0 0 3px rgba(201, 100, 66, 0.12); }
:where(input, textarea)::placeholder { color: var(--ink-4); }
:where(input[readonly]) { color: var(--ink-2); }
:where(textarea) { resize: vertical; min-height: 84px; line-height: 1.55; }
:where(textarea.tall) { min-height: 150px; }
:where(select) { appearance: none; padding-right: 32px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
select option, select optgroup { background: var(--surface); }
:where(input[type="checkbox"]) { width: 16px; height: 16px; accent-color: var(--primary); box-shadow: none; margin: 0; }
:where(input[type="color"].swatch) { width: 44px; height: var(--fx-h); padding: 4px; cursor: pointer; flex: none; }
:where(input.hex) { width: 110px; flex: none; }
:where(label) { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 14px 0 0; }
:where(label) > :where(input, textarea, select, .row, .logo-drop) { margin-top: 6px; }
:where(label) small { font-weight: 400; }
:where(label.check) { display: inline-flex; gap: 8px; align-items: center; margin: 0; white-space: nowrap; color: var(--ink-2); cursor: pointer; }
.req { color: var(--teal); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ── chips + tags ── */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--raised); color: var(--ink-2); white-space: nowrap; }
.tag .ico { width: 12px; height: 12px; }
.tone-teal { background: var(--teal-soft); color: var(--teal); }
.tone-lime { background: var(--primary-soft); color: var(--primary); }
.tone-good { background: var(--good-soft); color: var(--ink-2); }
.tone-warn { background: var(--warn-soft); color: var(--ink-2); }
.tone-bad { background: var(--raised); color: var(--ink-2); }
.tone-muted { background: var(--raised); color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--raised); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--raised); color: var(--ink-3); }
.count-pill.on { background: var(--primary); color: var(--primary-ink); }
.count-pill.bad { background: var(--bad); color: #fff; }

/* ── notices / toasts ── */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--fx-line-2); font-size: 13px; margin-top: 12px; }
.notice .ico { color: var(--warn); margin-top: 2px; }
.notice.good { background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--fx-line-2); }
.notice.good .ico { color: var(--good); }
.notice.bad { background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx-bad) 30%, transparent); color: var(--bad); }
.notice a { margin-left: 4px; }
.toasts { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; max-width: 380px; padding: 10px 14px; border-radius: var(--fx-r-inner); background: var(--primary); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--fx-shadow-card); opacity: 0; transform: translateY(8px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast .ico { color: var(--fx-live); }
.toast.bad { background: var(--bad); }
.toast.bad .ico { color: #fff; }

/* ── logo mark ── */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none !important; }
.mark { position: relative; width: 24px; height: 24px; flex: none; display: inline-block; border-radius: 7px; background: var(--primary); box-shadow: var(--fx-shadow-hair); }
.mark i { position: absolute; left: 6px; height: 3px; border-radius: 2px; background: #fff; }
.mark i:first-child { top: 8px; width: 12px; }
.mark i:last-child { top: 13px; width: 7px; opacity: .55; }

/* ── auth ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) 1fr; }
.auth-switch { margin-top: 18px; color: var(--ink-3); font-size: 13px; }

/* ── shell ── */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--line); padding: 18px 14px 14px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; text-decoration: none; transition: background 120ms, color 120ms; }
.nav a .ico { color: var(--ink-3); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.on .ico { color: var(--teal); }
.nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: 12px; font-weight: 700; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); }
.avatar.sm { width: 30px; height: 30px; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; border-radius: 14px; background: var(--primary); color: #fff; }

.meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.meter-top b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--teal); transition: width 400ms var(--ease); }
.bar.warn i { background: var(--warn); }
.bar.full i { background: var(--bad); }
.bar.good i { background: var(--primary); }

.main { min-width: 0; outline: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 36px 40px 64px; }
.page.wide { max-width: 1320px; }
.page.narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── cards ── */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--fx-shadow-card); padding: 20px; }
.card + .card { margin-top: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.soft { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.card.soft > .ico { width: 20px; height: 20px; color: var(--teal); margin-bottom: 10px; }
.card.soft h3 { margin-bottom: 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 > .card + .card { margin-top: 0; }
.grid3.tight { gap: 0 12px; }

.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 6px; }
.empty > .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); margin-bottom: 8px; }
.empty h3 { font-size: 15px; }
.empty p { color: var(--ink-3); max-width: 46ch; }
.empty-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.empty.slim { padding: 28px 20px; }

.skel { height: 64px; border-radius: 12px; margin-bottom: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel.short { width: 60%; }
.skel.title { height: 38px; width: 40%; margin-bottom: 24px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── home ── */
.inbox .card-head h2 { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0; }
.stack { display: flex; height: 8px; border-radius: 8px; overflow: hidden; gap: 2px; margin-bottom: 14px; background: var(--raised); }
.stack i { flex-basis: 0; min-width: 0; }
.g-setup { background: var(--fx-stalled); } .g-wait { background: var(--violet); } .g-active { background: var(--teal); } .g-review { background: var(--warn); } .g-done { background: var(--good); }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pipe li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.pipe li:hover { background: var(--surface-2); color: var(--ink); }
.pipe li i { width: 8px; height: 8px; border-radius: 3px; }
.pipe li b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; }
.feed p { font-size: 13px; color: var(--ink-2); }
.feed.big { gap: 0; }
.feed.big li { padding: 12px 0; border-top: 1px solid var(--line); }
.feed.big li:first-child { border-top: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--ink-4); }
.k-invited, .k-opened, .k-welcomed { background: var(--violet); }
.k-options_ready, .k-message { background: var(--teal); }
.k-picked { background: var(--primary); }
.k-package { background: var(--warn); }
.k-reviewed { background: var(--good); }
.k-build_failed { background: var(--bad); }

/* ── clients table ── */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar h2 { margin-right: auto; }
.toolbar select { width: auto; min-width: 150px; }
.toolbar > .muted { margin-left: auto; }
.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search-wrap .ico { position: absolute; left: 11px; top: 11px; color: var(--ink-4); }
.search-wrap input { padding-left: 34px; }
.thead, .rows li { display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(150px, 1.2fr) 150px 120px 110px minmax(110px, .9fr) 76px; gap: 14px; align-items: center; padding: 0 18px; }
.thead { height: 38px; font-size: 12px; font-weight: 600; color: var(--ink-4); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); background: var(--side); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { min-height: 62px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 120ms; }
.rows li:last-child { border-bottom: 0; }
.rows li:hover { background: var(--surface-2); }
.c-client { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-client > div { display: grid; min-width: 0; }
.c-client b { font-weight: 500; }
.c-client small { font-size: 12px; }
.c-project { display: flex; gap: 8px; align-items: center; min-width: 0; color: var(--ink-2); }
.c-stage { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.c-ready { display: grid; gap: 4px; }
.c-ready small { font-size: 12px; }
.c-last { font-size: 13px; }
.ready-segs { display: flex; gap: 3px; }
.ready-segs i { width: 18px; height: 5px; border-radius: 3px; background: var(--raised); }
.ready-segs i.req { background: color-mix(in srgb, var(--fx-bad) 30%, transparent); }
.ready-segs i.on { background: var(--teal); }
.pick { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.pick b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--primary); color: var(--primary-ink); font-size: 12px; flex: none; }

/* ── decision log table ── */
table.log { width: 100%; border-collapse: collapse; font-size: 13px; }
table.log th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-4); text-transform: none; letter-spacing: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--side); }
table.log td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
table.log tr:last-child td { border-bottom: 0; }
table.log td b { color: var(--ink); font-weight: 500; }
.card:not(.flush) table.log th, .card:not(.flush) table.log td { padding-left: 0; }
blockquote { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--line-3); color: var(--ink-3); font-style: italic; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 28px; padding: 0 10px; font-size: 13px; background: transparent; box-shadow: none; color: var(--ink-3); border-radius: 7px; }
.seg button small { color: var(--ink-4); font-size: 12px; }
.seg button.on { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ── client workspace ── */
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.crumb:hover { color: var(--ink); text-decoration: none; }
.tabs { display: flex; gap: 2px; margin: 22px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--teal); }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; min-width: 760px; }
.timeline li { flex: 1; position: relative; display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--ink-4); text-align: center; }
.timeline li::before { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--raised); }
.timeline li:first-child::before { display: none; }
.timeline li i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-3); }
.timeline li.done { color: var(--ink-3); }
.timeline li.done::before, .timeline li.on::before { background: var(--teal-2); }
.timeline li.done i { background: var(--teal-2); box-shadow: none; }
.timeline li.on { color: var(--ink); font-weight: 600; }
.timeline li.on i { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline li.changes i { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }

.card.next { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: linear-gradient(120deg, rgba(24, 19, 17, 0.025), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px rgba(24, 19, 17, 0.07), var(--fx-shadow-card); }
.card.next.soft { background: var(--surface); box-shadow: var(--fx-shadow-card); }
.card.next h2 { font-family: var(--display); font-weight: 400; font-size: 18px; margin-bottom: 2px; letter-spacing: 0; }
.next .eyebrow { margin-bottom: 4px; }
.flags, .plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flags li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 13px; }
.flags li .ico { color: var(--bad); margin-top: 2px; }
.flags li.done { opacity: .55; }
.plain li { color: var(--ink-2); }
dl.facts { display: grid; grid-template-columns: 90px 1fr; gap: 9px 12px; margin: 0; font-size: 13px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); word-break: break-word; }

/* phones (generated previews are 390×844, scaled) */
.phone { position: relative; flex: none; overflow: hidden; border-radius: 18px; background: var(--fx-window); box-shadow: 0 0 0 1px rgba(31, 30, 29, 0.064), 0 0 0 5px var(--surface-2), 0 0 0 6px rgba(31, 30, 29, 0.05), 0 24px 50px -24px rgba(31, 30, 29, 0.14); }
.phone iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; background: #fff; }
.skel-phone { width: 240px; height: 520px; background: linear-gradient(90deg, var(--surface-2), var(--raised), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* review */
.pkg-card { padding: 0; overflow: hidden; }
.pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); list-style: none; }
summary.pkg-head { cursor: pointer; border-bottom: 0; }
summary.pkg-head::-webkit-details-marker { display: none; }
details[open] > summary.pkg-head { border-bottom: 1px solid var(--line); }
details[open] > summary.pkg-head > .ico { transform: rotate(90deg); }
.pkg-head h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 8px; letter-spacing: 0; }
.pkg { padding: 6px 22px 18px; }
.pkg-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pkg-sec:last-of-type { border-bottom: 0; }
.pkg-sec h4 { margin-bottom: 8px; }
.pkg-sec p { color: var(--ink-2); white-space: pre-line; }
.pkg-sec p.big { color: var(--ink); font-size: 15px; font-weight: 500; }
.pkg-sec blockquote { font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--ink); border-left-color: var(--teal); padding-left: 14px; letter-spacing: 0; }
.pkg-sec.warnbox, .pkg-sec.badbox { margin: 12px 0; padding: 14px 16px; border-radius: var(--fx-r-inner); border: 0; }
.pkg-sec.warnbox { background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--fx-line-2); }
.pkg-sec.warnbox h4 { color: var(--ink-2); }
.pkg-sec.badbox { background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx-bad) 30%, transparent); }
.pkg-sec.badbox h4 { color: var(--bad); }
.pkg-sec .flags { margin-top: 10px; }
.ab-mini { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.ab-mini figure, .ab figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
.ab-mini figcaption { font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
figure.chosen .phone { box-shadow: 0 0 0 2px var(--primary), 0 0 0 7px var(--primary-soft), 0 24px 50px -24px rgba(31, 30, 29, 0.14); }
.chosen-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); }
.chosen-mark .ico { width: 12px; height: 12px; }
.pkg-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--side); }
.pkg-actions textarea { min-height: 60px; }
.pkg-actions .bad { grid-column: 1 / -1; }
.pkg-btns { display: flex; gap: 8px; }
.your-note { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--side); color: var(--ink-2); font-size: 13px; }
.your-note .ico { color: var(--teal); margin-top: 2px; }
.pkg-raw { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--bg); border-radius: var(--fx-r-inner); padding: 14px; margin: 10px 0 0; box-shadow: inset 0 0 0 1px var(--line); max-height: 420px; overflow: auto; }
details.raw { margin-top: 14px; }
details summary { cursor: pointer; color: var(--ink-3); font-size: 13px; }
details summary:hover { color: var(--ink); }

/* options */
.concept-card .card-head { align-items: flex-start; }
.concept-card .card-head h2 { font-family: var(--display); font-weight: 400; font-size: 18px; margin-bottom: 6px; letter-spacing: 0; }
.ab { display: flex; gap: 36px; flex-wrap: wrap; padding: 8px 4px 4px; }
.ab figcaption { display: flex; align-items: center; gap: 8px; max-width: 100%; font-size: 14px; }
.ab-letter { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--raised); color: var(--ink); font-weight: 600; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
figure.chosen .ab-letter { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
details.edits { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
details.edits ul { margin-top: 10px; }

/* conversation */
.convo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.convo .day { justify-self: center; font-size: 12px; color: var(--ink-4); margin: 8px 0; }
.convo .day span { padding: 3px 10px; border-radius: 999px; background: var(--raised); }
.convo .bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.convo .bubble p { white-space: pre-wrap; color: var(--ink); }
.who { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 3px; }
.who b { font-weight: 600; color: var(--ink-2); }

/* knowledge pack */
.kpack { display: grid; gap: 14px; }
.kp-card { background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--fx-shadow-card); }
.kp-card.done { box-shadow: inset 0 0 0 1px rgba(201, 100, 66, 0.112), var(--fx-shadow-card); }
.kp-head { display: grid; grid-template-columns: 34px 1fr; gap: 14px; margin-bottom: 12px; }
.kp-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--ink-3); }
.kp-ico.done { background: var(--teal-soft); color: var(--teal); }
.kp-head h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; flex-wrap: wrap; }
.why { color: var(--ink-3); font-size: 13px; margin-top: 3px; max-width: 72ch; }
.need { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 2px 7px; border-radius: 5px; }
.need.required { background: var(--bad-soft); color: var(--bad); }
.kp-card.done .need.required { background: var(--teal-soft); color: var(--teal); }
.need.recommended { background: var(--warn-soft); color: var(--ink-2); }
/* status = a dot, never a coloured fill (DESIGN-2045) */
.tone-good::before, .tone-warn::before, .tone-bad::before, .need.recommended::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--fx-wait); margin-right: 6px; vertical-align: 1px; margin-right: 0; }
.tone-good::before { background: var(--fx-live); }
.tone-bad::before { background: var(--fx-bad); }
.need.optional { background: var(--raised); color: var(--ink-3); }
.kp-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.kp-foot > span.muted { margin-left: auto; }
.kp-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--teal); }
.kp-status { min-height: 18px; }
.kp-status.bad { color: var(--bad); }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.file { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 10px; border-radius: var(--fx-r-inner); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.file-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--raised); color: var(--ink-3); }
.file-name { display: grid; min-width: 0; padding-top: 1px; }
.file-name b { font-weight: 500; font-size: 13px; }
.file-name small { font-size: 12px; }
.file-acts { display: flex; gap: 4px; align-items: center; }
.file-prev pre { margin: 8px 0 2px; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: var(--ink-3); max-height: 180px; overflow: auto; }
.file-img { max-width: 100%; max-height: 220px; margin-top: 8px; border-radius: 8px; }
.confirm-box { margin-top: 12px; padding: 14px; border-radius: var(--fx-r-inner); background: var(--teal-soft); box-shadow: inset 0 0 0 1px rgba(201, 100, 66, 0.14); display: grid; gap: 10px; }
.confirm-box p { font-size: 13px; color: var(--ink-2); }

.ready-card { display: grid; gap: 10px; }
.ready-top { display: flex; justify-content: space-between; align-items: baseline; }
.ready-top b { font-size: 15px; }
.ready-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ready-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); }
.ready-list li.ok { color: var(--ink); }
.tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-3); }
.ready-list li.ok .tick { background: var(--teal); color: #fff; box-shadow: none; }
.tick .ico { width: 12px; height: 12px; }

/* wizard */
.wizard { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 24px; }
.stepper li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink-3); }
.stepper li.go { cursor: pointer; }
.stepper li.go:hover { background: var(--surface); color: var(--ink-2); }
.stepper li b { display: block; font-weight: 500; font-size: 13px; color: inherit; }
.stepper li small { font-size: 12px; color: var(--ink-4); }
.num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); flex: none; }
.num .ico { width: 14px; height: 14px; }
.stepper li.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.stepper li.on .num { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.stepper li.done .num { background: var(--teal-soft); color: var(--teal); box-shadow: none; }
.wiz-body { min-width: 0; }
.wiz-title { margin-bottom: 8px; }
.wiz-title h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 6px; letter-spacing: 0; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.wiz-side { display: grid; gap: 16px; position: sticky; top: 24px; }
.wiz-side > .ready-card { background: var(--surface); border-radius: var(--r-lg); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.side-card { padding: 16px 18px; border-radius: var(--r-lg); background: var(--side); box-shadow: inset 0 0 0 1px var(--line); }
.side-card > .ico { color: var(--teal); width: 18px; height: 18px; margin-bottom: 8px; }
.side-card h3 { margin-bottom: 4px; }
.preview-stage { margin-top: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--side); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }

/* invite */
.invite label:first-child { margin-top: 18px; }
.invite textarea.mono { min-height: 230px; font-size: 13px; line-height: 1.6; }
.invite-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.link-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
details.collapsible > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
details.collapsible > summary::-webkit-details-marker { display: none; }

/* settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-panel { min-width: 0; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.logo-drop { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); flex-wrap: wrap; }
.logo-prev { max-height: 40px; max-width: 160px; border-radius: 6px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; }
.team li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.team li:first-child { border-top: 0; }
.team li div { display: grid; }
.team.small li { grid-template-columns: 16px 1fr; padding: 6px 0; border: 0; color: var(--ink-2); }

/* guide */
.guide { list-style: none; margin: 0; padding: 0; }
.guide li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.guide li:first-child { border-top: 0; padding-top: 4px; }
.guide li b { font-weight: 500; }
.guide li p { color: var(--ink-3); font-size: 13px; margin: 3px 0 10px; }
.guide li.done .num { background: var(--teal); color: #fff; box-shadow: none; }
.guide li.done b { color: var(--ink-3); }

/* onboarding */
body[data-view="setup"] .side { display: none; }
body[data-view="setup"] .shell { grid-template-columns: 1fr; }

/* brand preview: the client's welcome screen, drawn light (as the client page is) */
.bp-panel { display: grid; gap: 10px; }
.bp-label { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.bp { width: 100%; max-width: 440px; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: var(--fx-shadow-float); font-size: 13px; }
.bp-chrome { display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; background: var(--fx-sunk); }
.bp-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--fx-line-3); }
.bp-chrome span { margin-left: 10px; flex: 1; height: 18px; border-radius: 5px; background: var(--fx-card); color: var(--fx-ink-3); font-size: 12px; display: flex; align-items: center; padding: 0 8px; }
.bp-page { padding: 22px 26px 18px; display: grid; gap: 16px; }
.bp-head { display: flex; align-items: center; gap: 10px; }
.bp-head b { font-weight: 600; font-size: 14px; }
.bp-logo { max-height: 28px; max-width: 120px; }
.bp-mono { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--b); color: #fff; font-weight: 700; font-size: 13px; }
.bp-hi { color: var(--fx-ink-3); font-size: 13px; }
.bp-hero h4 { text-transform: none; letter-spacing: 0; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; margin-top: 2px; letter-spacing: -0.02em; }
.bp-hero em { font-style: normal; color: var(--b); font-weight: 500; }
.bp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-steps li { display: flex; gap: 10px; align-items: center; color: var(--fx-ink-2); }
.bp-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--b) 14%, white); color: var(--b); }
.bp-cta { display: flex; align-items: center; gap: 12px; }
.bp-btn { display: inline-grid; place-items: center; height: 38px; padding: 0 22px; border-radius: var(--fx-r-inner); background: var(--b); color: #fff; font-weight: 600; }
.bp-cta small { color: var(--fx-ink-3); }
.bp-fine { font-size: 12px; color: var(--fx-ink-3); border-top: 1px solid var(--fx-line); padding-top: 12px; }
.bp-powered { font-size: 12px; color: var(--fx-ink-4); text-align: right; margin-top: -8px; }

/* ── responsive ── */
@media (max-width: 1240px) {
  .wizard { grid-template-columns: 200px minmax(0, 1fr); }
  .wiz-side { grid-column: 2; position: static; grid-template-columns: 1fr 1fr; }
  .thead, .rows li { grid-template-columns: minmax(160px, 1.3fr) minmax(130px, 1fr) 150px 110px 100px 70px; }
  .thead span:nth-child(6), .rows li .c-pick { display: none; }
}
@media (max-width: 1100px) {
  .brand-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .page { padding: 24px 20px 56px; }
  .wizard { grid-template-columns: 1fr; gap: 20px; }
  .stepper { position: static; grid-template-columns: repeat(4, 1fr); }
  .stepper li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 4px; gap: 6px; }
  .stepper li small { display: none; }
  .wiz-side { grid-column: auto; grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; gap: 16px; }
  .thead { display: none; }
  .rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "client stage" "project review" "ready last"; gap: 6px 12px; padding: 14px 16px; }
  .rows li .c-client { grid-area: client; } .rows li .c-stage { grid-area: stage; justify-content: flex-end; }
  .rows li .c-project { grid-area: project; } .rows li .c-review { grid-area: review; justify-self: end; }
  .rows li .c-ready { grid-area: ready; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 8px; } .rows li .c-last { grid-area: last; justify-self: end; }
  .auth { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .page { padding: 20px 16px 48px; }
  .page-head { margin-bottom: 18px; }
  .page-head .head-actions { width: 100%; }
  .page-head .head-actions > * { flex: 1; }
  .form-grid, .grid3, .grid3.tight { grid-template-columns: 1fr; }
  .card { padding: 16px; border-radius: 14px; }
  .card.next { grid-template-columns: 40px minmax(0, 1fr); }
  .card.next > .btn { grid-column: 1 / -1; }
  .tabs { margin: 16px -16px 16px; padding: 0 8px; }
  .pkg-head, .pkg, .pkg-actions, .your-note { padding-left: 16px; padding-right: 16px; }
  .pkg-actions { grid-template-columns: 1fr; }
  .pkg-btns > * { flex: 1; }
  .ab { gap: 14px; justify-content: space-between; }
  .ab-mini { gap: 14px; }
  .convo .bubble { max-width: 90%; }
  .toolbar { padding: 12px; }
  .search-wrap { max-width: none; min-width: 100%; }
  .toolbar select { flex: 1; }
  .toolbar > .muted { margin-left: 0; }
  .stepper b { font-size: 12px !important; }
  .wiz-nav .btn, .wiz-nav button { flex: 1; }
  .invite-actions > * { flex: 1 1 auto; }
  .link-row { grid-template-columns: 1fr; gap: 6px; }
  .bp-page { padding: 18px; }
  .bp-hero h4 { font-size: 22px; }
  .preview-stage { padding: 14px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  dl.facts { grid-template-columns: 80px 1fr; }
  table.log { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* inputs inside labels must not inherit the label's weight/size */
input, textarea, select { font: 400 14px/1.5 var(--font); }
input.mono, textarea.mono { font-family: var(--mono); font-size: 13px; }
.invite textarea.mono { font-family: var(--font); font-size: 14px; }
details.collapsible > summary { cursor: pointer; }
details.collapsible > summary h2 { color: var(--ink); }
details.collapsible > summary::after { content: 'Show'; font-size: 13px; color: var(--teal); margin-left: 12px; }
details.collapsible[open] > summary::after { content: 'Hide'; }
details.collapsible > summary > .muted { margin-left: auto; }
details.collapsible[open] > summary { margin-bottom: 4px; }
.meter + p { margin-top: 10px; }
@media (max-width: 900px) { .rows .dash { display: none; } }

/* ════════════════════════════════════════════════════════════════════
   Playground era (2026-11-14): visual first. Thumbnails, one action per
   card, details on demand.
   ════════════════════════════════════════════════════════════════════ */
.g-wait2 { background: var(--fx-wait); }
.k-idea, .k-app_ready { background: var(--teal); }
.k-proposal_sent, .k-proposal_shared { background: var(--primary); }
.k-proposal_answered { background: var(--good); }
.k-limit, .k-app_failed { background: var(--bad); }
.k-team_comment, .k-connector, .k-intake { background: var(--violet); }
.skel.thin { height: 16px; border-radius: 6px; margin-bottom: 8px; }
.spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
.spin.sm { width: 10px; height: 10px; border-width: 1.5px; color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }
details.more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 13px; font-weight: 500; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 160ms var(--ease); }
details.more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }

/* ── thumbnails ── */
.phone.thumb { background: var(--fx-window); }
.phone iframe { opacity: 0; transition: opacity 260ms ease; }
.phone.loaded iframe, .phone:not(.thumb) iframe { opacity: 1; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 7%; padding: 9% 8%; background: linear-gradient(180deg, var(--fx-window), var(--fx-sunk)); }
.ph i { display: block; border-radius: 6px; background: var(--fx-line-2); flex: none; }
.ph .ph-bar { height: 4%; width: 45%; border-radius: 99px; }
.ph .ph-hero { height: 22%; border-radius: 10px; background: var(--fx-cobalt-soft); }
.ph .ph-line { height: 2.4%; width: 80%; }
.ph .ph-line.short { width: 52%; }
.ph .ph-card { height: 12%; border-radius: 9px; background: var(--fx-sunk); }
.ph-label { position: absolute; left: 8%; right: 8%; bottom: 7%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 99px; background: rgba(31, 30, 29, 0.86); color: #fff; font-size: 12px; font-weight: 500; text-align: center; line-height: 1.2; }
@keyframes phfade { 50% { opacity: .45; } }

/* ── shell tweaks ── */
.page { padding-top: 32px; }

/* ── Do now ── */
.calm { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 28px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 560px; }

/* ── board ── */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.board.big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cc { display: flex; flex-direction: column; border-radius: var(--fx-r-card); overflow: hidden; background: var(--surface); box-shadow: var(--fx-shadow-card); cursor: pointer; transition: transform 180ms var(--ease), box-shadow 180ms; min-width: 0; }
.cc:hover { transform: translateY(-2px); box-shadow: var(--fx-shadow-float); }
.cc.hot { box-shadow: var(--fx-shadow-card); }
.cc.archived { opacity: .6; }
.cc-stage { position: relative; height: 186px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cc-stage .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; transition: transform 260ms var(--ease); }
.cc:hover .cc-stage .phone { transform: translateY(-4px); }
.cc-live, .cc-demo { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px var(--line-2); }
.cc-live { left: 10px; color: var(--teal); }
.cc-live .spin { width: 9px; height: 9px; border-width: 1.5px; }
.cc-demo { right: 10px; color: var(--ink-3); }
.cc-body { padding: 14px 16px 4px; display: grid; gap: 2px; min-width: 0; }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.cc-top b { font-size: 15px; font-weight: 600; }
.cc-top .chip { height: 22px; font-size: 12px; padding: 0 8px 0 7px; flex: none; }
.cc-project { color: var(--ink-3); font-size: 13px; }
.cc-line { color: var(--ink-2); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 16px; margin-top: auto; }
.first-run { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; padding: 34px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.first-run h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 6px; letter-spacing: 0; }

/* slim side */

/* clients filter bar */
.filterbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filterbar select { width: auto; min-width: 150px; }
.filterbar .count-el { margin-left: auto; }
.seg.icons button { width: 34px; padding: 0; }

/* ── Drop anything ── */
.page.drop { max-width: 880px; }
.page.drop.wide-drop { max-width: 1040px; }
.drop-head { text-align: center; margin: 8px 0 26px; }
.drop-head .lede { margin: 8px auto 0; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 8px; padding: 44px 28px 30px; border-radius: 26px; text-align: center; cursor: pointer; outline: none;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px rgba(201, 100, 66, 0.154), 0 30px 70px -40px rgba(31, 30, 29, 0.14); transition: box-shadow 200ms, transform 200ms var(--ease), background 200ms; }
.dropzone::before { content: ''; position: absolute; inset: 10px; border-radius: 18px; border: 1.5px dashed rgba(201, 100, 66, 0.154); pointer-events: none; transition: border-color 200ms, inset 200ms var(--ease); }
.dropzone:hover::before, .dropzone:focus-visible::before { border-color: rgba(201, 100, 66, 0.315); }
.dropzone.over { transform: scale(1.01); box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 8px rgba(201, 100, 66, 0.056), 0 30px 70px -40px rgba(31, 30, 29, 0.14); }
.dropzone.over::before { inset: 6px; border-color: var(--teal); }
.dropzone h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-top: 6px; letter-spacing: 0; }
.dz-orbit { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.dz-ico { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); box-shadow: var(--fx-shadow-card); }
.dz-ico .ico { width: 24px; height: 24px; }
.dz-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201, 100, 66, 0.126); animation: orbit 3.2s ease-out infinite; }
.dz-orbit i.o2 { animation-delay: 1.05s; } .dz-orbit i.o3 { animation-delay: 2.1s; }
@keyframes orbit { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.dz-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; max-width: 560px; }
.dz-kinds > span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 12px; color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.dz-kinds .ico { width: 16px; height: 16px; color: var(--teal); }
.dz-choose { margin-top: 8px; }
.tray { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; width: 100%; }
.dropzone.has .tray { margin-top: 14px; }
.tray .item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px 8px 8px; border-radius: var(--fx-r-inner); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; cursor: default; animation: pop 260ms var(--ease); }
.item-ico, .item-img { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); object-fit: cover; }
.item-main { display: grid; min-width: 0; }
.item-main b { font-size: 13px; font-weight: 500; }
.item-main small { font-size: 12px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.drop-extra { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; margin-top: 14px; }
.paste { min-height: 52px; height: 52px; resize: vertical; border-radius: 14px; background: var(--surface); transition: height 200ms var(--ease); }
.paste:focus { height: 140px; }
.url-wrap { position: relative; }
.url-wrap .ico { position: absolute; left: 13px; top: 18px; color: var(--ink-4); }
.url-in { height: 52px !important; padding-left: 38px; border-radius: 14px; background: var(--surface); }
.drop-status { min-height: 20px; margin-top: 10px; text-align: center; }
.drop-status.bad { color: var(--bad); }
.drop-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 6px; }
.drop-actions .lg { min-width: 180px; }
/* reading */
.reading { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 70px 20px; }
.reading h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin-top: 18px; letter-spacing: 0; }
.scan { position: relative; width: 300px; height: 210px; border-radius: 22px; background: var(--surface); box-shadow: var(--fx-shadow-float); overflow: hidden; padding: 16px; display: grid; align-content: start; gap: 8px; }
.scan-item { display: flex; align-items: center; gap: 9px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--bg); font-size: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); animation: pop 400ms var(--ease) both; animation-delay: calc(var(--i) * 120ms); }
.scan-item .ico { width: 16px; height: 16px; color: var(--teal); }
.scan-line { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(201, 100, 66, 0.154), transparent); border-bottom: 1px solid rgba(201, 100, 66, 0.42); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
/* project card */
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pc-top .crumb { margin: 0; }
.pcard { padding: 26px 28px 22px; border-radius: var(--fx-r-card); background: var(--surface); box-shadow: var(--fx-shadow-float); display: grid; gap: 4px; }
.pc-hero { --accent: var(--teal-2); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.pc-phone { padding: 12px 14px 0; border-radius: 18px; background: var(--bg); align-self: stretch; display: flex; align-items: flex-end; }
.pc-phone .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; height: 150px !important; }
.pc-id .eyebrow { margin-bottom: 0; }
.pc-title { height: auto !important; padding: 4px 0; font-family: var(--display) !important; font-size: 28px !important; font-weight: 400 !important; background: transparent; box-shadow: none; border-radius: 0; border-bottom: 1px dashed transparent; letter-spacing: 0; }
.pc-title:hover { box-shadow: none; border-bottom-color: var(--line-3); }
.pc-title:focus { box-shadow: none; border-bottom-color: var(--teal); }
.pc-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.pc-field { position: relative; margin-top: 12px; }
.pc-field.bare { margin-top: 0; }
.pc-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.pc-label .tag { text-transform: none; letter-spacing: 0; height: 19px; font-size: 12px; }
.pc-field.low input, .pc-field.low textarea { box-shadow: inset 0 0 0 1px var(--fx-line-2), 0 0 0 3px var(--fx-line-2); background: color-mix(in srgb, var(--warn) 4%, var(--bg)); }
.pc-field textarea { min-height: 0; font-size: 14px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pc-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.pc-look { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatches i { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(31, 30, 29, 0.12); }
.pc-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-sources .pc-label { margin-right: 4px; }
.src { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--ink-2); }
.src .ico { width: 12px; height: 12px; color: var(--ink-3); }
.src.on { color: var(--teal); background: var(--teal-soft); box-shadow: none; }
.pc-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
/* done */
.done-screen { display: grid; justify-items: center; text-align: center; padding: 30px 0 20px; }
.done-art { position: relative; margin-bottom: 22px; }
.done-check { position: absolute; right: -14px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 6px var(--bg), 0 10px 30px -8px rgba(24, 19, 17, 0.21); animation: pop 400ms var(--ease) 200ms both; }
.done-check .ico { width: 20px; height: 20px; }
.done-screen .lede { margin: 8px auto 0; }
.link-big { display: flex; align-items: center; gap: 8px; width: min(620px, 100%); margin-top: 24px; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(201, 100, 66, 0.21), 0 20px 50px -30px rgba(31, 30, 29, 0.14); }
.link-big .mono { flex: 1; text-align: left; font-size: 14px; color: var(--ink); }
.link-big .primary { height: 42px; padding: 0 18px; }
.done-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.done-mail { display: flex; align-items: center; gap: 8px; width: min(460px, 100%); margin-top: 18px; color: var(--ink-3); }
.done-mail input { flex: 1; }
.edit-invite { margin-top: 14px; width: min(620px, 100%); text-align: left; }
.edit-invite .slot { margin-top: 6px; }

/* ── client workspace ── */
.tabs a { height: 44px; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.phases li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13px; color: var(--ink-4); }
.phases li::before { content: ''; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--raised); }
.phases li:first-child::before { display: none; }
.phases li i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-3); color: #fff; }
.phases li i .ico { width: 14px; height: 14px; }
.phases li.done { color: var(--ink-3); }
.phases li.done::before, .phases li.on::before { background: var(--teal-2); }
.phases li.done i { background: var(--teal-2); box-shadow: none; }
.phases li.on { color: var(--ink); font-weight: 600; }
.phases li.on i { background: var(--primary); box-shadow: 0 0 0 6px var(--primary-soft); }
.phases li.alt i { background: var(--bad); box-shadow: 0 0 0 6px var(--bad-soft); }
.card.next h2 { font-size: 22px; }

/* playground */
.screens { display: flex; flex-wrap: wrap; gap: 6px; }
.screens > span { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--ink-2); }
.idea { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.idea.picked { box-shadow: inset 0 0 0 1.5px rgba(24, 19, 17, 0.175); }
.idea-phone { position: relative; display: flex; justify-content: center; padding: 18px 0 0; background: var(--surface-2); border-bottom: 1px solid var(--line); height: 220px; overflow: hidden; }
.idea-phone .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.idea-ab { position: absolute; top: 10px; left: 10px; }
.idea-picked { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; }
.idea-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.idea-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.idea-tags .tag { height: 20px; font-size: 12px; }
.idea-more ol.changes { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.idea-more ol.changes li span { display: block; }
.idea-more ol.changes small { font-size: 12px; }
.idea-more .flags { margin-top: 8px; }
.num-in { width: 90px !important; flex: none !important; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--teal) calc(var(--p) * 1%), var(--raised) 0); }
.ring.warn { background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--warn) calc(var(--p) * 1%), var(--raised) 0); }
.ring.full { background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--bad) calc(var(--p) * 1%), var(--raised) 0); }
.ring b { font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1; letter-spacing: 0; }
.ring small { font-size: 12px; color: var(--ink-3); }

/* proposals */
.proposals { display: grid; gap: 16px; }
.proposals .card + .card { margin-top: 0; }
.prop-card { padding: 0; overflow: hidden; }
.prop-card.waiting { box-shadow: inset 0 0 0 1px rgba(24, 19, 17, 0.105), var(--fx-shadow-card); }
.prop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; list-style: none; }
summary.prop-head { cursor: pointer; }
summary.prop-head::-webkit-details-marker { display: none; }
details[open] > summary.prop-head > .ico { transform: rotate(90deg); }
.prop-head h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 8px; letter-spacing: 0; }
.prop-body { padding: 0 24px 20px; display: grid; gap: 16px; }
.prop-summary { font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 76ch; }
.prop-ideas { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.prop-idea { margin: 0; flex: 0 0 196px; display: grid; gap: 10px; justify-items: start; align-content: start; padding: 14px; border-radius: var(--fx-r-card); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.prop-idea .phone { justify-self: center; }
.prop-idea figcaption { display: grid; gap: 6px; width: 100%; }
.prop-idea figcaption b { font-size: 14px; }
.prop-idea figcaption p { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.reacts { display: flex; gap: 6px; }
.react { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--ink-4); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.react .ico { width: 13px; height: 13px; }
.react.on { color: var(--ink-2); background: var(--good-soft); box-shadow: none; }
.react.down.on { color: var(--bad); background: var(--bad-soft); }
.prop-flags { padding: 14px 16px; border-radius: 14px; background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx-bad) 30%, transparent); }
.prop-flags h4 { display: flex; align-items: center; gap: 6px; color: var(--bad); margin-bottom: 10px; }
.team-comments { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.team-comments li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.team-comments .react { height: 20px; padding: 0 6px; }
.answer { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--side); }
.answer-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.answer-bar button.on { box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal); }
.answer-panel { margin-top: 12px; display: grid; gap: 10px; }
.answer-fields { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; }
.answer-fields .amount.hidden + textarea { grid-column: 1 / -1; }
.answer-fields textarea { min-height: 44px; }
.empty-visual { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; }
.ev-art { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ev-arrow { color: var(--ink-4); }
.ev-doc { width: 60px; height: 76px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--teal); box-shadow: inset 0 0 0 1px var(--line-2); }
.ev-doc .ico { width: 24px; height: 24px; }

/* presenter */
body.presenting { overflow: hidden; }
.pres { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr; background: var(--surface-2); animation: fade 200ms ease; }
@keyframes fade { from { opacity: 0; } }
.pres-top { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pres-top b { font-family: var(--display); font-weight: 400; font-size: 18px; flex: 1; letter-spacing: 0; }
.pres-body { display: grid; grid-template-columns: 48px auto minmax(0, 380px) 48px; justify-content: center; align-items: center; gap: 32px; padding: 24px; min-height: 0; }
.pres-stage { display: grid; place-items: center; }
.pres-phone { border-radius: 30px; }
.pres-notes h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin-bottom: 12px; letter-spacing: 0; }
.pres-notes p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.pres-nav { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }

/* connect */
.connect-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 28px; margin-bottom: 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.connect-hero h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 4px; letter-spacing: 0; }
.ch-art { display: flex; align-items: center; }
.ch-node { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 22px; }
.ch-node.claude { background: var(--fx-ink); color: #fff; letter-spacing: 0; }
.ch-node.blanks { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); }
.ch-wire { width: 54px; height: 2px; background: linear-gradient(90deg, var(--fx-ink-3), var(--fx-cobalt)); position: relative; }
.ch-wire::after { content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: wire 1.8s ease-in-out infinite; }
@keyframes wire { to { left: calc(100% - 8px); } }
.ch-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.ch-steps li { display: flex; align-items: center; gap: 8px; }
.ch-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: 12px; }
.keys-card .card-head h2 .ico, .setup-card .card-head h2 .ico { color: var(--teal); }
.key-once { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--primary-soft); box-shadow: inset 0 0 0 1px rgba(24, 19, 17, 0.122); }
.key-once > div:first-child { display: grid; }
.key-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.key-val { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 9px; background: var(--bg); font-family: var(--mono); font-size: 13px; color: var(--primary); word-break: break-all; box-shadow: inset 0 0 0 1px var(--line-2); }
.key-make input { max-width: 320px; }
.keys { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.keys li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.keys li div { display: grid; }
.key-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); color: var(--ink-3); }
.setup-seg { flex-wrap: wrap; }
.setup-seg button .ico { width: 16px; height: 16px; }
.code-wrap { position: relative; margin-top: 10px; }
pre.code { margin: 0; padding: 16px 18px; padding-right: 96px; border-radius: var(--fx-r-inner); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-all; max-height: 340px; overflow: auto; }
.code-copy { position: absolute; top: 10px; right: 10px; }
.cmd-file { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: var(--fx-r-inner); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cmd-file > div { display: grid; }
.key-hint { display: flex; align-items: center; gap: 8px; color: var(--ink-3); margin-bottom: 4px; }
.key-hint .ico { color: var(--primary); }
.urls { display: grid; grid-template-columns: 50px 1fr; gap: 6px 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.urls dt { color: var(--ink-4); }
.urls dd { margin: 0; min-width: 0; word-break: break-all; }
.urls code { font-family: var(--mono); color: var(--ink-2); }

/* ── responsive (playground era) ── */
@media (max-width: 900px) {
  .pres-body { grid-template-columns: auto; grid-template-rows: auto auto; gap: 16px; overflow: auto; }
  .pres-nav { position: fixed; bottom: 18px; z-index: 2; }
  .pres-nav:first-child { left: 18px; }
  .pres-nav:last-child { right: 18px; }
  .pres-notes { max-width: 480px; padding-bottom: 70px; }
}
@media (max-width: 759px) {
  .board, .board.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-stage { height: 150px; }
  .cc-stage .phone { width: 100px !important; height: 136px !important; }
  .cc-stage .phone iframe { transform: scale(.2564) !important; }
  .cc-body { padding: 10px 12px 2px; }
  .cc-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cc-top b { font-size: 14px; max-width: 100%; }
  .cc-foot { padding: 8px 12px 12px; }
  .cc-foot .muted { display: none; }
  .cc-foot .btn { width: 100%; }
  .cc-line { font-size: 12px; }
  .first-run { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .filterbar .count-el { display: none; }
  .dropzone { padding: 30px 16px 22px; border-radius: 22px; }
  .dropzone h2 { font-size: 22px; }
  .dz-kinds > span:nth-child(n+5) { display: none; }
  .drop-extra { grid-template-columns: 1fr; }
  .drop-actions { flex-direction: column; align-items: stretch; }
  .pcard { padding: 18px 16px; border-radius: var(--fx-r-card); }
  .pc-hero { grid-template-columns: 1fr; gap: 12px; }
  .pc-phone { display: none; }
  .pc-title { font-size: 22px !important; }
  .pc-who, .pc-grid, .pc-grid.three { grid-template-columns: 1fr; }
  .pc-actions .lg { width: 100%; }
  .link-big { flex-direction: column; align-items: stretch; padding: 12px; }
  .link-big .mono { text-align: center; }
  .done-actions > * { flex: 1 1 auto; }
  .phases li { font-size: 12px; }
  .phases li i { width: 22px; height: 22px; }
  .phases li::before { top: 10px; }
  .idea-phone { height: 180px; padding-top: 14px; }
  .idea-phone .phone { width: 110px !important; height: 238px !important; }
  .idea-phone .phone iframe { transform: scale(.282) !important; }
  .idea-body { padding: 10px 12px 12px; }
  .prop-head, .prop-body, .answer { padding-left: 16px; padding-right: 16px; }
  .prop-head h3 { font-size: 22px; }
  .answer-bar > * { flex: 1 1 auto; }
  .answer-fields { grid-template-columns: 1fr; }
  .connect-hero { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .key-make { flex-wrap: wrap; }
  .key-make input { max-width: none; }
  .cmd-file { flex-direction: column; align-items: flex-start; }
}
.scan { height: auto; min-height: 150px; }
@media (max-width: 759px) { .page { padding-top: 20px; } }
.src.bad { color: var(--bad); background: var(--bad-soft); box-shadow: none; }
.pc-warn { align-items: center; margin: 0 0 14px; }
.pc-warn > span { flex: 1; }
.setup-card .card-head { flex-wrap: wrap; } .setup-card .card-head h2 { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── AI tests (agency-tests.js) ── */
.test-list { display: grid; gap: 4px; }
.test-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.test-row:hover { background: var(--raised); }
.test-row p { margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.test-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.test-shot { display: block; max-width: min(100%, 360px); max-height: 420px; margin-top: 10px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); object-fit: contain; background: var(--raised); }
.test-checks { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.test-checks li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.test-steps { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.test-steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.test-steps .test-shot { margin-top: 0; max-width: 200px; max-height: 300px; }
.card label.check { white-space: normal; align-items: flex-start; margin-top: 12px; }
@media (max-width: 759px) { .test-steps li { grid-template-columns: 1fr; } .test-row { flex-direction: column; align-items: flex-start; } .test-meta { justify-items: start; } }
.test-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.test-mode { display: grid; gap: 4px; justify-content: stretch; align-items: start; height: auto; white-space: normal; min-width: 0; text-align: left; padding: 12px 14px; border-radius: var(--fx-r-inner); border: 0; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: inherit; cursor: pointer; }
.test-mode.on { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.test-journey { margin-top: var(--gap); }
@media (max-width: 759px) { .test-modes { grid-template-columns: 1fr; } }

/* ── Settings (4 tabs) + first-run setup (2 steps) + Getting started card (2026-11-20) ── */
.page-head .btn.ghost.sm { align-self: flex-start; }
.ch-node.claude { background: var(--black, #000); }
.ch-wire { background: linear-gradient(90deg, var(--black, #000), var(--teal)); }
pre.code { background: var(--fx-ink); box-shadow: none; color: #fff; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw { display: inline-flex; align-items: center; gap: 8px; height: var(--fx-h); margin: 0; padding: 0 14px 0 6px; border-radius: var(--fx-r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; margin: 0; }
.sw i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.sw:hover { background: var(--hover); }
.sw.on { box-shadow: inset 0 0 0 2px var(--black, #000); }
.sw.custom { padding-left: 4px; }
.sw.custom input[type="color"].swatch { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; margin: 0; }
.sw.custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.sw.custom input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.sw-row input.hex { height: var(--fx-h); width: 104px; margin: 0; }
.bp-sticky { position: sticky; top: 24px; }
.bp-stack { display: grid; gap: 10px; }
.bp-cap { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.bp-headprev .hp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; background: #fff; }
.hp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hp-brand > div { display: grid; min-width: 0; }
.hp-brand b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-brand small { color: var(--ink-3); font-size: 12px; }
.hp-new { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--b) 12%, white); color: var(--b); font-size: 12px; font-weight: 500; flex: none; }
.hp-new .ico { width: 13px; height: 13px; }
.hp-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 18px 18px; background: #fff; }
.hp-hero p { font-family: var(--display); font-size: 18px; line-height: 1.25; margin: 0; color: var(--ink); }
.hp-hero em { font-style: normal; color: var(--b); }
.hp-open { flex: none; display: inline-grid; place-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: #000; color: #fff; font-size: 12px; font-weight: 500; }
/* Your AI: asleep → awake */
.ch-art.small .ch-node { width: 40px; height: 40px; border-radius: var(--fx-r-inner); font-size: 18px; }
.ch-art.small .ch-wire { width: 30px; }
.connect-body { display: none; }
.connect-body.open { display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.connect-body .connect-hero { display: none; }
/* Plan & usage: one meter */
.use-bar { display: flex; height: 12px; margin: 16px 0 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.use-bar i { display: block; height: 100%; min-width: 3px; }
.use-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.use-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.use-legend li:first-child { border-top: 0; }
.use-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.use-legend a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.use-legend a:hover { text-decoration: underline; }
.brand-form { display: grid; gap: 14px; }
details.data-delete { margin-top: 18px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.data-delete summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink); padding: 0; background: none; border: 0; }
.data-delete[open] summary { margin-bottom: 8px; }
/* setup: two steps */
/* Getting started (Home card + #/guide) */
.guide-card .card-head { align-items: flex-start; }
.guide-card .card-head > div { display: grid; gap: 2px; }
.guide li.is-next .num { background: var(--black, #000); color: #fff; box-shadow: none; }
.guide li.done .num { background: var(--cobalt); }
@media (max-width: 759px) {
  .bp-sticky { position: static; }
  .hp-hero { flex-direction: column; align-items: flex-start; }
  .use-legend li { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .use-legend li .muted { display: none; }
}

/* phone: disclosure rows get a 40 px hit area */
@media (max-width: 759px) { details > summary { padding-block: 10px; } }
