/* llmtactics.com: the look of the "How I use LLMs" slides. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #d8dee6;
  --soft: #e2e8f0;
  --q0: #1d4ed8; --t0: #e3ebfc;
  --q1: #b03a0b; --t1: #fce9dd;
  --q2: #0f6b64; --t2: #ddf1ee;
  --q3: #7e22ce; --t3: #efe3fa;
  --ok: #0f6b64;
  --danger: #b91c1c;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 56px);
color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--q0); }
:focus-visible { outline: 3px solid var(--q0); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--ink); }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font: 700 clamp(34px, 5vw, 50px)/1.05 var(--head); letter-spacing: -0.02em; }
h2 { font: 600 24px/1.2 var(--head); letter-spacing: -0.01em; }
h3 { font-size: 18px; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { padding: 0 var(--gutter); }
.narrow .lede, .narrow p, .narrow ul { max-width: 80ch; }
.block { margin-top: 40px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.label { font: 600 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.eyebrow.clay { color: #7c2d12; }
.lede { font-size: 18px; color: var(--muted); max-width: 680px; margin-top: 10px; }
.row { display: flex; gap: 16px; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { align-items: flex-end; }
.wrapline { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ok { color: var(--ok); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.error { color: var(--danger); font-weight: 600; }

/* ---------- header and footer ---------- */
.top { padding: 20px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font: 700 22px var(--head); text-decoration: none; color: var(--ink); }
.brand span { color: var(--q1); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a[aria-current] { background: var(--ink); color: #fff; }
.nav a.clay[aria-current] { background: var(--q1); }

.nav .me { padding-left: 6px; font-weight: 600; margin-left: 8px; }

.foot { margin: 72px var(--gutter) 0; padding: 28px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- buttons, chips, tabs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; background: none; color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn.dark { background: var(--ink); color: #fff; }

.btn.clay { background: var(--q1); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.outline { border-color: var(--ink); background: #fff; }

.btn.danger { border-color: var(--danger); color: var(--danger); background: #fff; }
.btn:hover { filter: brightness(1.1); color: inherit; }
.btn.dark:hover, .btn.clay:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
.chip.q0 { color: var(--q0); } .chip.q1 { color: var(--q1); } .chip.q2 { color: var(--q2); } .chip.q3 { color: var(--q3); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.q0[aria-current] { background: var(--q0); border-color: var(--q0); }
.chip.q1[aria-current] { background: var(--q1); border-color: var(--q1); }
.chip.q2[aria-current] { background: var(--q2); border-color: var(--q2); }
.chip.q3[aria-current] { background: var(--q3); border-color: var(--q3); }

.tab { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: 18px; border: 2px solid var(--line); background: #fff; text-decoration: none; }
.tab strong { font: 700 22px var(--head); }
.tab span { color: var(--muted); font-size: 15px; }
.tab.q0[aria-current] { background: var(--q0); border-color: var(--q0); color: #fff; }
.tab.q1[aria-current] { background: var(--q1); border-color: var(--q1); color: #fff; }
.tab[aria-current] span, .tab[aria-current]:hover { color: #fff; }

/* ---------- cards and panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.link { text-decoration: none; color: var(--text); }
.card.link strong { font: 600 22px var(--head); color: var(--ink); }
.card.link:hover { border-color: var(--ink); }

.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.cards.plain { list-style: none; padding: 0; margin: 18px 0 0; }

.card .btn { align-self: flex-start; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.icon.q0 { background: var(--t0); color: var(--q0); } .icon.q1 { background: var(--t1); color: var(--q1); }
.eyebrow.q0, .eyebrow.q1, .eyebrow.q2 { margin: 0; }
.eyebrow.q0 { color: var(--q0); } .eyebrow.q1 { color: var(--q1); } .eyebrow.q2 { color: var(--q2); }

.empty { background: #fff; border: 1px dashed #94a3b8; border-radius: var(--radius); padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty .btn { margin-top: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }

/* ---------- home: slides ---------- */
.deck-page { height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.deck-page main { flex: 1; min-height: 0; }
/* No smooth scrolling here: a page that opens on a later slide (#map, say) must
appear there at once. Moving between slides is animated by site.js. */
.deck { height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; overflow-y: auto; padding: 40px var(--gutter) 120px; display: flex; flex-wrap: wrap; align-items: safe center; align-content: safe center; gap: 48px 64px; }

.slide .lede { font-size: clamp(18px, 1.6vw, 24px); margin: 0; max-width: 760px; }

.slide .eyebrow { margin: 0; }
.eyebrow.q3 { color: var(--q3); }

.figure.q0 { color: var(--q0); } .figure.q1 { color: var(--q1); } .figure.q2 { color: var(--q2); } .figure.q3 { color: var(--q3); }

.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--q1); }

/* ---------- home ---------- */
.card .figure { font: 700 40px/1 var(--head); color: var(--ink); }

.n.q0 { color: var(--q0); } .n.q1 { color: var(--q1); } .n.q2 { color: var(--q2); } .n.q3 { color: var(--q3); }

.warn { background: #fff7ed; border: 1.5px solid var(--q1); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.warn h2 { font-size: 20px; color: #7c2d12; }
.warn p { color: #431407; font-size: 15px; }
.warn a { color: #7c2d12; font-weight: 600; }

label { font-weight: 600; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input:not([type]) { min-height: 48px; width: 100%; max-width: 420px; padding: 0 14px; border: 1.5px solid #94a3b8; border-radius: 12px; background: #fff; color: var(--ink); font: 16px var(--sans); }
.prompt { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #f8fafc; border-radius: 14px; padding: 14px 14px 14px 20px; }
.prompt code { flex: 1; min-width: 0; color: #f8fafc; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.prompt.dim { opacity: 0.55; }
.copy { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.copy.copied { background: #5ecfc2; }

.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; margin-top: 28px; border-radius: 16px; background: var(--t1); color: #431407; }
.tally strong { font: 700 28px var(--head); color: #7c2d12; }
.tally span { flex: 1 1 260px; }
.join { flex-direction: row; flex-wrap: wrap; gap: 32px; border: 2px solid var(--q1); }
.join > div:first-child { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.join ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.join li code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; }
.note { flex: 1 1 280px; min-width: 0; background: #fff7ed; border-radius: 16px; padding: 20px; color: #431407; }
.note .label { color: #7c2d12; margin-bottom: 8px; }
.note ul { margin: 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.owner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 20px 24px; border-radius: 16px; border: 1px dashed #94a3b8; }
.owner > p { flex: 1 1 260px; }

.owner input { max-width: 240px; min-height: 44px; }

/* ---------- radar ---------- */
.radar { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; }

.qt { width: 50%; height: 50%; }
.qt.q0 { left: 0; top: 0; background: var(--t0); } .qt.q1 { left: 50%; top: 0; background: var(--t1); }
.qt.q2 { left: 0; top: 50%; background: var(--t2); } .qt.q3 { left: 50%; top: 50%; background: var(--t3); }
.ring { border-radius: 50%; border: 1px solid rgba(15, 23, 42, 0.18); background: rgba(255, 255, 255, 0.4); }
.ring.r1 { inset: 9.375%; } .ring.r2 { inset: 20.3%; } .ring.r3 { inset: 32.8%; }

.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.hollow { border: 2px solid var(--muted); }
.dot.mine { background: var(--q0); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); } .dot.other { width: 12px; height: 12px; background: #94a3b8; }
.detail { gap: 14px; }
.detail .big { font-size: 18px; }
.badge { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.q0 { background: var(--t0); color: var(--q0); } .badge.q1 { background: var(--t1); color: var(--q1); }
.badge.q2 { background: var(--t2); color: var(--q2); } .badge.q3 { background: var(--t3); color: var(--q3); }
.detail h2 { font-size: 30px; }
.trend { flex: 1; min-width: 160px; }

.detail.q0 { --c: var(--q0); --tint: #c7d6f7; } .detail.q1 { --c: var(--q1); --tint: #f6cdb4; }
.detail.q2 { --c: var(--q2); --tint: #a7d8d1; } .detail.q3 { --c: var(--q3); --tint: #dcc3f3; }

.detail dl { margin: 6px 0 0; display: grid; gap: 12px; }
.detail dt { font: 600 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.detail dd { margin: 2px 0 0; }

.tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid #cbd5e1; color: #334155; white-space: nowrap; }

.tag.common { background: var(--soft); border-color: var(--soft); }

@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }

a.out { text-decoration-color: #94a3b8; }
a.out span[aria-hidden] { color: var(--muted); font-weight: 500; }
details.more { margin-top: 16px; display: flex; flex-direction: column; align-items: center; }
details.more > summary { list-style: none; margin: 0 auto; width: max-content; display: flex; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { display: none; }

/* contribute: one prompt, then wait */
.focus { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 40px; text-align: center; }
.focus .lede { margin: 0; max-width: 600px; }

.prompt.big { padding: 22px 18px 22px 26px; border-radius: 18px; }
.prompt.big code { font-size: 17px; }
.prompt.big .copy { min-height: 48px; padding: 0 20px; font-size: 15px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 15px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--q2); box-shadow: 0 0 0 5px var(--t2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px var(--t2); } }
.waiting.done .pulse { animation: none; background: var(--q0); box-shadow: 0 0 0 5px var(--t0); }

.what { width: 100%; text-align: left; padding: 4px 20px; gap: 0; }
.what summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--ink); }
.what p { margin: 4px 0 16px; font-size: 15px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.banner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--t0); color: #1e3a8a; }
.eyebrow.q3 { color: var(--q3); margin: 0 0 6px; }

.card-title { font: 600 22px var(--head); }
.block > .card-title, .card .card-title + .muted { margin-top: 4px; }

.bars { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 120px; gap: 14px; align-items: center; }
.bars li > span:first-child { min-width: 0; }
.bars li > span:first-child .muted { display: block; }

.s0 { background: var(--q0); } .s1 { background: var(--q1); } .s2 { background: var(--q2); } .s3 { background: var(--q3); } .s4 { background: #94a3b8; }
.legend { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }

.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--soft); }
.history li:last-child { border-bottom: 0; }

@media (max-width: 640px) {
.card { padding: 20px; }

.bars li { grid-template-columns: 1fr 90px; }
.bars li > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }

}
/* Short or narrow screens: slides start at the top and scroll inside themselves. */
@media (max-width: 760px), (max-height: 640px) {
.slide, .slide.column { align-items: flex-start; align-content: flex-start; justify-content: flex-start; padding-top: 16px; }
.slide-visual { flex-basis: 100%; max-width: 420px; }
.big-bars li { grid-template-columns: 1fr 64px; }
.big-bars li .meter { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.slide { outline: none; }

.plain-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.slide .banner { margin: 0; }

.tool-pop { width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 48px); overflow-y: auto; border: 0; border-radius: 24px; padding: 24px 26px; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28); }
.tool-pop:popover-open { display: flex; flex-direction: column; gap: 14px; }
.tool-pop::backdrop { background: rgba(15, 23, 42, 0.28); }
.tool-pop h3 { margin: 0; font: 700 30px/1.1 var(--head); color: var(--ink); }
.tool-pop p { margin: 0; font-size: 17px; }
.tool-pop .row.wrapline { align-items: baseline; gap: 10px; }

.tool-pop .plain-list { margin-top: 4px; }
.tool-pop .btn { align-self: flex-start; }

/* Compact slide header: eyebrow, short title, one line. */
.slide-head { display: flex; flex-direction: column; gap: 6px; }
.slide-head h1 { margin: 0; font: 700 clamp(28px, 3vw, 44px)/1.05 var(--head); letter-spacing: -0.02em; color: var(--ink); }
.slide-head p { margin: 0; }
.slide.top { justify-content: flex-start; gap: 28px; }

.slide-head h2 { margin: 0; font: 700 clamp(28px, 3vw, 44px)/1.05 var(--head); letter-spacing: -0.02em; color: var(--ink); }

/* Development environments: a compact row per setup, tools as overlapping circles. */
.k-harness { --kind: var(--q0); } .k-editor { --kind: var(--q1); } .k-multiplexer { --kind: var(--q3); }
.k-review { --kind: var(--q2); } .k-connector { --kind: #334155; } .k-chat, .k-other { --kind: #64748b; }

.contribute-bare { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 48px; }

/* ---------- optional name and password, password gate ---------- */
.details-form { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 12px 16px; width: 100%; text-align: left; }
.details-form .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; max-width: 340px; }
.details-form label { font-weight: 600; color: var(--ink); font-size: 14px; }
.details-form input { max-width: none; }
.details-form [data-details-status] { flex-basis: 100%; text-align: center; min-height: 1.4em; }
.details-form.company .btn { flex: 0 0 auto; }
.slide .details-form { justify-content: flex-start; }
.slide .details-form [data-details-status] { text-align: left; }

.cards.one { grid-template-columns: minmax(0, 720px); }

/* ---------- admin ---------- */
.admin { display: flex; flex-direction: column; gap: 18px; padding-bottom: 60px; }
.admin .card { display: block; }
.admin .card > * + * { margin-top: 10px; }
.nav-form { display: inline-flex; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--soft); }
.table th { font: 600 12px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tag.st-pending { background: var(--t0); border-color: var(--t0); color: #1e3a8a; }
.tag.st-flagged { background: #fef3c7; border-color: #fde68a; color: #78350f; }
.tag.st-accepted { background: #d1fae5; border-color: #a7f3d0; color: #064e3b; }
.tag.st-rejected { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.code { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #e2e8f0; font: 13px/1.5 var(--mono); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }

.world { width: 100%; max-height: calc(100svh - 250px); min-height: 180px; flex: 0 1 auto; }
.world path { fill: #dfe5ee; stroke: #f5f6f8; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.world path.on { fill: var(--q0); }
.world path.on:hover { fill: var(--ink); }

/* The contribute page keeps its heading and the two tabs in the same place
whichever tab is open: content hangs from the top, not centred on its height. */
.contribute-bare { justify-content: flex-start; padding-top: clamp(48px, 16svh, 180px); }
.contribute-bare h1 { min-height: 1.15em; }
.contribute-bare > .lede { min-height: 4.8em; }

/* What the site is, at the top of the contribute pages. */
.about { margin: 0 auto; max-width: 760px; padding: 14px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--muted); text-align: center; }
.about b { color: var(--ink); }
.about a { font-weight: 600; white-space: nowrap; }
.contribute-bare { padding-top: clamp(32px, 9svh, 110px); }
.contribute-bare .about { margin-bottom: 10px; }

.map-tip { position: fixed; z-index: 30; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3); }
.map-tip[hidden] { display: none; }
.map-tip span { font-size: 12px; color: #cbd5e1; }
/* The environments header: title on the left, the legend of kinds on the right. */
.slide-head.row { width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; text-align: left; }
.slide-head.row > div:first-child { flex: 1 1 520px; }

/* Every slide after the first starts with the same header, in the same place:
a small label, the title, and one line under it. */
.slide-head { flex: none; align-self: stretch; text-align: left; }
.slide-head > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.slide-head .eyebrow { margin: 0; }
.slide-head .sub { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; color: var(--muted); max-width: 760px; }

/* A page that is not a deck (contribute, privacy, a password gate) has the
same frame as a slide: the header top left, cards under it, and its one
action as a dark pill at the bottom where the slide navigation sits. */
.frame { min-height: 100svh; padding: 40px var(--gutter) 120px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 760px), (max-height: 640px) { .frame { padding-top: 16px; } }
.frame > .error, .frame > p { margin: 0; }
.page-action { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10; min-height: 60px; padding: 0 32px; font-size: 19px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25); white-space: nowrap; }
.cards.fit { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.frame .card-title, .slide .card-title { font: 600 20px/1.2 var(--head); }
.frame .details-form { justify-content: flex-start; gap: 16px 20px; }
.frame .details-form .field { flex: 1 1 280px; max-width: none; }
.frame .details-form [data-details-status] { text-align: left; }
.frame .plain-list { color: inherit; }

.copy { border-radius: 999px; }

.frame .details-form [data-details-status]:empty { display: none; }
#unlock-form .field { max-width: 420px; }

/* A habit's details: its area, then its status on a line of its own, whatever their lengths. */
.row.top { align-items: flex-start; }

/* Short or narrow screens: a column slide still gives its content the full width. */
@media (max-width: 760px), (max-height: 640px) { .slide.column { align-items: stretch; } }

/* A page's editor's code, shown once to the browser that was given it. */
.banner.code-banner { background: #fef3c7; color: #78350f; text-align: left; }
.code-banner code { font: 500 17px var(--mono); color: #451a03; margin-left: 6px; user-select: all; }
.code-banner .btn { flex: none; }
.frame .banner { margin: 0; }

.frame .card .details-form { align-items: flex-end; }
.frame .card form .btn { align-self: flex-start; }
#code-form .field { max-width: 420px; }

/* An invitation: what to do, and what does and does not leave the computer. */
.invite { display: flex; flex-wrap: wrap; gap: 20px; }
.invite > .card:first-child { flex: 3 1 520px; gap: 20px; }
.invite > .card:last-child { flex: 2 1 380px; gap: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 16px/36px var(--head); text-align: center; }
.steps li > span { display: flex; flex-direction: column; gap: 2px; }
.steps strong { font-size: 17px; color: var(--ink); }
.invite .label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.invite .label.sent { color: var(--q2); } .invite .label.never { color: var(--danger); }
.invite .plain-list { gap: 4px; }
.invite .banner { display: block; padding: 14px 16px; font-size: 15px; line-height: 1.5; }

.tail { display: block; font-variant-numeric: tabular-nums; }
