/* BuddyOSEngine control room. Paper canvas, ink sidebar, hairlines instead of glow; gold is reserved
   for the one action that matters on each screen. Numbers are set in mono with tabular figures. */
:root {
  --paper: #f4f1ea;
  --panel: #fffdf8;
  --panel-2: #f9f6ef;
  --line: #e2dccf;
  --line-2: #cfc7b6;
  --ink: #17140f;
  --ink-2: #4a4439;
  --ink-3: #7c7466;
  --side: #14120f;
  --side-2: #1f1c17;
  --side-line: #2e2a23;
  --side-text: #ece6da;
  --side-dim: #9c9383;
  --gold: #e99a12;
  --gold-ink: #1a1206;
  --gold-soft: #fbecd0;
  --live: #1d7f49;
  --live-soft: #dff1e6;
  --wait: #a86608;
  --wait-soft: #fbefd9;
  --bad: #b8392a;
  --bad-soft: #f9e1dc;
  --info: #2457a6;
  --r: 6px;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font: 14px/1.5 var(--ui); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; border-right: 1px solid var(--side-line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd27a, var(--gold) 55%, #8a5300); box-shadow: 0 0 0 3px #2a2419; }
.brand b { font: 700 16px/1 var(--display); letter-spacing: -0.01em; }
.brand small { font: 500 9.5px/1 var(--mono); color: var(--gold); border: 1px solid #4a3a1a; padding: 3px 5px; border-radius: 3px; letter-spacing: 0.08em; }
.ws { margin: 0 12px 10px; padding: 9px 10px; border: 1px solid var(--side-line); border-radius: var(--r); background: var(--side-2); display: flex; align-items: center; gap: 9px; }
.ws .avatar { width: 26px; height: 26px; border-radius: 50%; background: #3a3328; display: grid; place-items: center; font-weight: 600; font-size: 12px; overflow: hidden; flex: none; }
.ws .avatar img { width: 100%; height: 100%; object-fit: cover; }
.ws .who { min-width: 0; }
.ws .who b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws .who span { display: block; font-size: 11.5px; color: var(--side-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-label { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--side-dim); padding: 16px 20px 8px; display: flex; justify-content: space-between; align-items: center; }
.nav-label button { background: none; border: 0; color: var(--gold); cursor: pointer; font: 600 16px/1 var(--ui); padding: 0 2px; }
.nav a, .site-link { display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin: 1px 8px; border-radius: 5px; text-decoration: none; color: var(--side-text); font-size: 13.5px; }
.nav a:hover, .site-link:hover { background: var(--side-2); }
.nav a.on, .site-link.on { background: #2a251d; box-shadow: inset 2px 0 0 var(--gold); }
.nav svg { width: 16px; height: 16px; flex: none; opacity: 0.85; }
.site-link { font-size: 13px; }
.site-link .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-link .host { font: 11px var(--mono); color: var(--side-dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #6b6253; }
.dot.live { background: #3ccf7f; box-shadow: 0 0 0 3px rgba(60, 207, 127, 0.15); }
.dot.wait { background: var(--gold); }
.dot.bad { background: #ef6a55; }
.side-foot { margin-top: auto; padding: 14px 20px 18px; border-top: 1px solid var(--side-line); font-size: 12px; color: var(--side-dim); display: grid; gap: 6px; }
.side-foot a { color: var(--side-dim); text-decoration: none; }
.side-foot a:hover { color: var(--side-text); }

.main { min-width: 0; display: flex; flex-direction: column; }
.crumbs { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--ink-3); position: sticky; top: 0; z-index: 5; }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs .sp { flex: 1; }
.page { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }

/* ---------- type ---------- */
h1 { font: 700 30px/1.1 var(--display); letter-spacing: -0.02em; }
h2 { font: 700 21px/1.2 var(--display); letter-spacing: -0.015em; }
h3 { font: 600 15px/1.3 var(--ui); }
.eyebrow, .k { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- layout helpers ---------- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cols-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.cols-3 { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card > h3 + p, .card > h3 + .faint { margin-top: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px; }
.notice { border: 1px solid var(--line-2); background: var(--panel-2); border-left: 3px solid var(--info); padding: 12px 14px; border-radius: var(--r); color: var(--ink-2); }
.notice.bad { border-left-color: var(--bad); background: var(--bad-soft); color: #6e1d13; }
.notice.warn { border-left-color: var(--gold); background: var(--gold-soft); color: #5a3a05; }
.notice.good { border-left-color: var(--live); background: var(--live-soft); color: #0f4a29; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 48px 24px; text-align: center; background: var(--panel); }
.empty h2, .empty h3 { margin-bottom: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold, .btn-primary { background: var(--gold); border-color: #c98208; color: var(--gold-ink); font-weight: 600; }
.btn-gold:hover, .btn-primary:hover { background: #f2a92a; border-color: #b87506; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--line); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.chip { height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--panel); cursor: pointer; font-size: 12.5px; }
.chip:hover { border-color: var(--ink-3); }

/* ---------- status ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 11px; font: 500 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: lowercase; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill.active, .pill.live, .pill.ok, .pill.succeeded { background: var(--live-soft); border-color: #b9dfc8; color: var(--live); }
.pill.pending, .pill.provisioning, .pill.draft, .pill.requested, .pill.in_progress, .pill.wait { background: var(--wait-soft); border-color: #efd29e; color: var(--wait); }
.pill.failed, .pill.suspended, .pill.bad, .pill.action_required, .pill.blocked { background: var(--bad-soft); border-color: #efbdb4; color: var(--bad); }

/* The pipeline rail: where a site is, end to end. */
.rail { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 18px; overflow: hidden; }
.rail .step { padding: 12px 14px; border-right: 1px solid var(--line); position: relative; min-width: 0; }
.rail .step:last-child { border-right: 0; }
.rail .step .k { display: flex; align-items: center; gap: 6px; }
.rail .step .v { margin-top: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .step .s { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .step.ok { box-shadow: inset 0 3px 0 var(--live); }
.rail .step.wait { box-shadow: inset 0 3px 0 var(--gold); }
.rail .step.bad { box-shadow: inset 0 3px 0 var(--bad); }
.rail .step.off { box-shadow: inset 0 3px 0 var(--line-2); }
@media (max-width: 1100px) { .rail { grid-template-columns: repeat(3, 1fr); } .rail .step:nth-child(3) { border-right: 0; } .rail .step:nth-child(-n + 3) { border-bottom: 1px solid var(--line); } }

/* ---------- site header + tabs ---------- */
.site-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.site-head .addr { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.site-head .addr a { font: 12.5px var(--mono); color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.site-head .addr a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; padding: 10px 12px; font-size: 13px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* ---------- stats + charts ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; margin-bottom: 14px; }
.stats > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stat { font: 600 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 8px; }
.stat small { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.chart { width: 100%; height: 180px; display: block; }
.chart .bar-v { fill: var(--ink); }
.chart .bar-b { fill: var(--line-2); }
.chart .axis { stroke: var(--line); }
.chart text { font: 10px var(--mono); fill: var(--ink-3); }
.spark { width: 100%; height: 44px; display: block; }
.bars { display: grid; gap: 7px; }
.bars .b { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 13px; position: relative; padding: 4px 8px; border-radius: 4px; overflow: hidden; }
.bars .b i { position: absolute; inset: 0 auto 0 0; background: var(--gold-soft); z-index: 0; border-radius: 4px; }
.bars .b span { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .b .num { color: var(--ink-2); }
.ticks { display: flex; gap: 2px; align-items: flex-end; height: 26px; }
.ticks i { flex: 1; min-width: 2px; height: 100%; border-radius: 1px; background: var(--live); opacity: 0.85; }
.ticks i.bad { background: var(--bad); }
.ticks i.none { background: var(--line); }
.meter { height: 6px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--ink); }
.meter.warn i { background: var(--gold); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfaf4; }
.card > table th:first-child, .card > table td:first-child { padding-left: 18px; }
.dns td { font: 12.5px var(--mono); word-break: break-all; }
.copy { cursor: pointer; border-bottom: 1px dotted var(--ink-3); }
.copy:hover { background: var(--gold-soft); }

/* ---------- forms ---------- */
input, select, textarea { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 5px; background: #fff; font-size: 13.5px; }
textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(233, 154, 18, 0.18); }
input[type='checkbox'], input[type='radio'] { width: auto; height: auto; }
.f { display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '+'; float: right; color: var(--ink-3); font-family: var(--mono); }
details.card[open] > summary::after { content: '–'; }

/* ---------- site cards ---------- */
.site-card { cursor: pointer; padding: 0; overflow: hidden; transition: border-color 0.15s; }
.site-card:hover { border-color: var(--ink-3); }
.site-card .thumb { height: 170px; background: var(--panel-2); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.site-card .thumb iframe { width: 400%; height: 400%; transform: scale(0.25); transform-origin: 0 0; border: 0; pointer-events: none; }
.site-card .thumb .files-thumb { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px var(--mono); color: var(--ink-3); }
.site-card .meta { padding: 12px 14px; display: grid; gap: 6px; }
.site-card .meta h3 { font-size: 14.5px; }

/* ---------- editor workspace ---------- */
.workspace { display: grid; grid-template-columns: minmax(380px, 1fr) 1.15fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .workspace { grid-template-columns: 1fr; } }
.preview { position: sticky; top: 70px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.preview .bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.preview .dots { display: flex; gap: 5px; }
.preview .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.preview iframe { width: 100%; height: calc(100vh - 150px); min-height: 520px; border: 0; display: block; background: #fff; }
.section-editor { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; background: var(--panel); }
.section-editor .type { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.item-editor { border-left: 2px solid var(--line); padding-left: 12px; display: grid; gap: 8px; }

/* ---------- file manager ---------- */
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 28px; text-align: center; background: var(--panel); transition: background 0.15s, border-color 0.15s; }
.drop.over { background: var(--gold-soft); border-color: var(--gold); }
.drop h3 { margin-bottom: 4px; }
.tree td:first-child { font: 12.5px var(--mono); }

/* ---------- dialogs ---------- */
dialog { border: 1px solid var(--line-2); border-radius: 8px; padding: 24px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--panel); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 18, 15, 0.25); margin: auto; }
dialog::backdrop { background: rgba(20, 18, 15, 0.45); }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.recipe-grid label { border: 1px solid var(--line); border-radius: 5px; padding: 9px 10px; cursor: pointer; display: grid; gap: 2px; font-size: 13px; }
.recipe-grid label:has(input:checked) { border-color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--ink); }
.recipe-grid input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 720px) { .mode-pick { grid-template-columns: 1fr; } }
.f.check { display: flex; align-items: center; gap: 8px; }
.f.check input { width: auto; }
.mode-pick label { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; display: grid; gap: 4px; }
.mode-pick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--panel-2); }
.mode-pick input { position: absolute; opacity: 0; pointer-events: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; }
.photo-grid button { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--panel-2); cursor: pointer; padding: 0; text-align: left; }
.photo-grid img { width: 100%; height: 110px; object-fit: cover; display: block; }
.photo-grid .cap { display: block; padding: 5px 7px; font-size: 11px; color: var(--ink-3); }

/* ---------- misc ---------- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 13px; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); max-width: min(560px, calc(100vw - 32px)); }
.spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--panel-2), #efe9dd, var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- operator layer ---------- */
.bell { position: relative; background: none; border: 1px solid var(--line); border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bell svg { width: 16px; height: 16px; }
.bell .count { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--gold, #e99a12); color: #16130f; font: 600 10px/17px var(--mono); padding: 0 4px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--panel, #fff); border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(0,0,0,.08); z-index: 50; display: flex; flex-direction: column; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer .items { overflow: auto; flex: 1; }
.ntf { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.ntf:hover { background: var(--panel-2); }
.ntf.unread { box-shadow: inset 3px 0 0 var(--gold, #e99a12); }
.ntf b { display: block; font-size: 14px; }
.ntf p { margin: 4px 0 0; white-space: pre-line; }
.thread { display: grid; gap: 10px; }
.msg { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--panel, #fff); white-space: pre-wrap; }
.msg.staff { border-color: var(--ink); }
.msg.buddy { background: var(--panel-2); }
.msg .who { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; color: var(--ink-3); }
.answer { border: 1px solid var(--line); border-left: 3px solid var(--gold, #e99a12); border-radius: var(--r); padding: 14px 16px; margin-top: 14px; white-space: pre-wrap; background: var(--panel, #fff); }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 13px; }
.subnav a.on { background: var(--ink); color: var(--paper, #fff); border-color: var(--ink); }
.secret { font: 500 13px var(--mono); background: var(--panel-2); border: 1px dashed var(--ink); padding: 10px 12px; border-radius: 8px; word-break: break-all; }
.toggle { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.toggle:first-of-type { border-top: 0; }
.toggle input { margin-top: 3px; }
.toggle b { display: block; }
.score { font: 700 44px/1 var(--display, inherit); }
textarea.mono { font-family: var(--mono); font-size: 13px; min-height: 140px; }
