/* Kusaza haiku — the stylesheet the haiku network will wear.
   Drawn from the temple's own chrome (internal/web/static/style.css):
   paper, ink and one vermilion, a book serif, normal-weight headings,
   and room around everything. Approved here, it moves into the app as
   is. No webfonts: the page loads nothing from elsewhere. */

:root {
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --sheet: #fbf8f2;
  --ink: #1c1b18;
  --ink-2: #4a463e;
  --muted: #7a7366;
  --line: #d6cdbb;
  --accent: #a8382a;
  --accent-ink: #fff8f0;
  --hover: #efe8da;
  --ok: #4f7a3b;
  --over: #a0463a;
  --wood: #e4cfa6;
  --wood-ink: #2a2016;
  --wood-note: #6e583f;
  --cord: #8f2a20;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Songti SC", serif;
  --poem: 1.42rem;
  --measure: 34rem;
  --shadow: 0 1px 0 rgba(28, 27, 24, .05), 0 10px 30px rgba(28, 27, 24, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171613; --paper-2: #201e1a; --sheet: #1d1b17;
    --ink: #ece6da; --ink-2: #c8c0b1; --muted: #8f8778; --line: #36322b;
    --accent: #c9523f; --accent-ink: #1a0f0b; --hover: #2c2924;
    --ok: #7fa465; --over: #d0705e;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171613; --paper-2: #201e1a; --sheet: #1d1b17;
  --ink: #ece6da; --ink-2: #c8c0b1; --muted: #8f8778; --line: #36322b;
  --accent: #c9523f; --accent-ink: #1a0f0b; --hover: #2c2924;
  --ok: #7fa465; --over: #d0705e;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 17px/1.55 var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-weight: normal; line-height: 1.2; margin: 0; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The page ----------------------------------------------------------- */

.kz { container: kz / inline-size; min-height: 100vh; display: flex; flex-direction: column; }
.kz-top {
  width: 100%; max-width: 68rem; margin: 0 auto; padding: 22px 24px 12px;
  display: flex; align-items: center; gap: 24px;
}
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.seal {
  writing-mode: vertical-rl; font: 15px/1 var(--mincho); letter-spacing: .08em;
  background: var(--accent); color: var(--accent-ink); padding: 6px 5px; border-radius: 3px;
}
.mark-text { display: flex; flex-direction: column; }
.mark .name { font-size: 22px; letter-spacing: .02em; }
.mark .sub { font-size: 13px; font-style: italic; color: var(--muted); }
.kz-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.kz-nav a, .kz-nav button.link {
  font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 6px 11px; border-radius: 6px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.kz-nav a:hover, .kz-nav button.link:hover { background: var(--hover); }
.kz-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.kz-nav .dot::after {
  content: ""; position: absolute; top: 7px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.kz-nav .meadow { font-style: italic; }
.kz-nav .me { padding: 3px; margin-left: 6px; }

.kz-body {
  width: 100%; max-width: 68rem; margin: 0 auto; padding: 18px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 56px; flex: 1;
}
.kz-body.single { grid-template-columns: minmax(0, 1fr); }
.kz-main { width: 100%; max-width: var(--measure); justify-self: center; }
.kz-aside { padding-top: 6px; font-size: 15px; }
.kz-aside section + section { margin-top: 34px; }
.kz-aside h2 { font-size: 15px; color: var(--muted); font-style: italic; margin-bottom: 10px; }
.kz-foot { width: 100%; max-width: 68rem; margin: 0 auto; padding: 18px 24px 28px; font-size: 14px; color: var(--muted); }
.kz-tabs { display: none; }

.page-head { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 26px; }
.page-head h1 { font-size: 28px; }
.page-head .note { font-size: 14px; color: var(--muted); font-style: italic; }

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 7px;
  background: var(--sheet); border: 1px solid var(--line); cursor: pointer; text-decoration: none; font-size: 15px;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }
.btn.wide { width: 100%; justify-content: center; padding: 10px 16px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* A person's face: a hanko seal of their initial ------------------------ */

.face {
  --tone: var(--accent);
  display: inline-grid; place-items: center; flex: none;
  width: var(--s, 22px); height: var(--s, 22px); border-radius: 4px;
  background: var(--tone); color: #fbf3e8;
  font: calc(var(--s, 22px) * .58)/1 var(--mincho); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 248, 236, .28), inset 0 0 0 3px var(--tone);
}
.face.big { --s: 68px; border-radius: 8px; }
.face.mid { --s: 34px; border-radius: 5px; }
.faces-none .face { display: none; }

/* A haiku on the page ---------------------------------------------------
   How it sits is the writer's choice (krabber's layouts): flush, stepped,
   dropped, centered, inline, counts. */

.hk { font-size: var(--poem); line-height: 1.5; margin: 0; overflow-wrap: break-word; }
/* A line too long for the column wraps under a hanging indent, as printed
   poetry does, so a continuation never reads as a fourth line. */
.hk .l { display: block; padding-left: calc(var(--in, 0em) + 1em); text-indent: -1em; }
.hk[data-layout="stepped"] .l:nth-child(2) { --in: 1.6em; }
.hk[data-layout="stepped"] .l:nth-child(3) { --in: 3.2em; }
.hk[data-layout="centered"] { text-align: center; }
.hk[data-layout="centered"] .l, .hk[data-layout="counts"] .l, .hk[data-layout="inline"] .l { padding-left: 0; text-indent: 0; }
.hk .ghost { visibility: hidden; }
.hk:not([data-layout="dropped"]) .ghost { display: none; }
.hk[data-layout="inline"] .l { display: inline; }
.hk[data-layout="inline"] .l + .l::before { content: " / "; color: var(--muted); }
.hk[data-layout="counts"] .l { display: flex; gap: 14px; }
.hk[data-layout="counts"] .l::after {
  content: attr(data-n); font: 13px/2.4 var(--serif); color: var(--muted); font-variant-numeric: tabular-nums;
}
.plain-layouts .hk .l { --in: 0em !important; text-align: left; }
.plain-layouts .hk { text-align: left; }
.plain-layouts .hk .ghost { display: none; }

/* The stream, as a book: one haiku to a breath of space. */
.stream { list-style: none; margin: 0; padding: 0; }
.entry { padding: 30px 0 26px; position: relative; }
.entry + .entry::before {
  content: ""; position: absolute; top: 0; left: 0; width: 2.2rem; height: 1px; background: var(--line);
}
.entry .hk { margin-bottom: 14px; }
.by { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.by .who { color: var(--ink-2); text-decoration: none; }
.by .who:hover { text-decoration: underline; }
.by .when { font-style: italic; text-decoration: none; color: inherit; }
.by .when:hover { text-decoration: underline; }
.top-me, .kz-nav .me { text-decoration: none; }
.acts { display: flex; gap: 22px; margin-top: 10px; font-size: 14px; }
.act {
  background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--muted);
  text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline;
}
.act:hover { color: var(--ink); }
.act .n { font-variant-numeric: tabular-nums; }
.act[aria-pressed="true"] { color: var(--accent); }
.act[aria-pressed="true"] .w::before { content: "● "; font-size: 9px; vertical-align: 2px; }

/* The way back through a feed: newer on the left, older on the right. */
.pager { display: flex; align-items: center; gap: 18px; margin: 22px 0 8px; }
.pager .grow { flex: 1; }

/* The stream, as the wall: ema tablets, the way the meadow's wall hangs
   them. Each keeps its writer's layout, smaller. */
/* Wide enough that a haiku line keeps to its row on a tablet. */
.wall { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ema {
  position: relative; padding: 34px 16px 14px; background: var(--wood); color: var(--wood-ink);
  clip-path: polygon(0 20px, 50% 0, 100% 20px, 100% 100%, 0 100%);
  box-shadow: inset 0 -3px 0 rgba(110, 76, 44, .25);
}
.ema::before { content: ""; position: absolute; left: 50%; top: 12px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--cord); }
.ema .hk { font-size: 16px; line-height: 1.45; }
.ema .hk[data-layout="stepped"] .l:nth-child(2) { --in: 1em; }
.ema .hk[data-layout="stepped"] .l:nth-child(3) { --in: 2em; }
.ema footer { margin-top: 9px; font-size: 13px; font-style: italic; color: var(--wood-note); display: flex; justify-content: space-between; gap: 8px; }
.ema footer a { text-decoration: none; }
.ema .bowed { color: var(--cord); font-style: normal; }
.kz-main.wide { max-width: 52rem; }

/* Tabs on a page (a poet's haiku). */
.seg { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 6px; }
.seg a {
  padding: 8px 14px 9px; font-size: 15px; color: var(--muted); text-decoration: none; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.seg a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* The composer: a slip of paper with three lines ------------------------- */

.slip {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px 16px; box-shadow: var(--shadow); margin: 0 0 14px;
}
.slip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.slip-head .face { --s: 24px; }
.slip-line { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--line); }
.slip-line input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 0 7px;
  font-size: 1.22rem; outline: none;
}
.slip-line input::placeholder { color: var(--muted); font-style: italic; opacity: .75; }
.slip-line:focus-within { border-bottom-color: var(--ink-2); }
.meter { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: right; }
.meter.ok { color: var(--ok); }
.meter.over { color: var(--over); }
.slip-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.slip-foot .grow { flex: 1; }
.slip-foot [data-hang] { margin-left: auto; }
.slip-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.slip-note strong { font-weight: normal; color: var(--over); }
.slip-preview { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--paper); }
.slip-preview .hk { font-size: 1.1rem; }
.slip-preview .cap { font-size: 12px; color: var(--muted); font-style: italic; margin-bottom: 4px; }

/* The layout picker: six small drawings of how three lines can sit. */
.shapes { display: flex; gap: 6px; align-items: center; }
.shapes .lbl { font-size: 13px; color: var(--muted); margin-right: 4px; font-style: italic; }
.shape {
  width: 34px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  cursor: pointer; padding: 5px 5px; display: grid; align-content: space-between;
}
.shape i { display: block; height: 2px; border-radius: 1px; background: var(--muted); }
.shape[aria-pressed="true"] { border-color: var(--accent); background: var(--sheet); }
.shape[aria-pressed="true"] i { background: var(--accent); }
.shape.flush i:nth-child(1) { width: 60%; } .shape.flush i:nth-child(2) { width: 90%; } .shape.flush i:nth-child(3) { width: 60%; }
.shape.stepped i:nth-child(1) { width: 55%; } .shape.stepped i:nth-child(2) { width: 65%; margin-left: 18%; } .shape.stepped i:nth-child(3) { width: 50%; margin-left: 40%; }
.shape.dropped i:nth-child(1) { width: 34%; } .shape.dropped i:nth-child(2) { width: 34%; margin-left: 34%; } .shape.dropped i:nth-child(3) { width: 32%; margin-left: 68%; }
.shape.centered i { margin: 0 auto; } .shape.centered i:nth-child(1) { width: 56%; } .shape.centered i:nth-child(2) { width: 86%; } .shape.centered i:nth-child(3) { width: 56%; }
.shape.inline { align-content: center; } .shape.inline i:nth-child(1) { width: 100%; } .shape.inline i:nth-child(2), .shape.inline i:nth-child(3) { display: none; }
.shape.counts i { width: 62%; position: relative; } .shape.counts i::after { content: ""; position: absolute; right: -9px; top: 0; width: 3px; height: 2px; background: inherit; }

/* One haiku on its own page: set like a hanging scroll. ----------------- */

.scroll { padding: 40px 0 26px; display: flex; flex-direction: column; align-items: center; }
.scroll .hk { font-size: 1.95rem; line-height: 1.55; max-width: 100%; }
.scroll .stamp { align-self: flex-end; margin: 18px 6% 0 0; }
.scroll .stamp .face { --s: 40px; transform: rotate(-3deg); }
.scroll-by { text-align: center; font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.scroll-by .who { color: var(--ink-2); }
.scroll + .acts { justify-content: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.answers h2 { font-size: 18px; margin: 28px 0 14px; }
.answers .entry { padding-left: 18px; border-left: 1px solid var(--line); }
.answers .entry + .entry::before { display: none; }
.answers .entry .hk { font-size: 1.2rem; }

/* A poet's page ------------------------------------------------------- */

.poet { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; margin: 4px 0 22px; }
.poet .face { grid-row: span 3; }
.poet h1 { font-size: 30px; }
.poet .handle { font-size: 15px; color: var(--muted); }
.poet .bio { grid-column: 2; font-style: italic; color: var(--ink-2); margin: 2px 0 0; }
.poet-meta { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.poet-meta .grow { flex: 1; }

/* Doors: sign in, make an account, check your email ----------------- */

.door {
  width: min(440px, 100%); margin: 34px auto 60px; background: var(--sheet); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 30px 26px; box-shadow: var(--shadow);
}
.door .kanji { font: 26px/1 var(--mincho); letter-spacing: .32em; color: var(--accent); margin: 0 0 14px; text-align: center; }
.door h1 { font-size: 28px; text-align: center; margin-bottom: 6px; }
.door .lede { text-align: center; color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper);
}
.field textarea { resize: vertical; min-height: 4.5em; }
.field .hint { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 4px; display: block; }
.door .links { text-align: center; font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.door .fine { font-size: 13px; color: var(--muted); margin: 18px 0 0; text-align: center; line-height: 1.5; }
.callout {
  font-size: 14px; color: var(--ink-2); background: var(--paper); border-left: 2px solid var(--accent);
  padding: 9px 12px; border-radius: 0 6px 6px 0; margin: 0 0 18px;
}

/* Bells: what happened to your haiku ---------------------------------- */

.bells { list-style: none; margin: 0; padding: 0; }
.bell { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bell .face { --s: 30px; }
.bell .what { font-size: 16px; }
.bell .what b { font-weight: normal; color: var(--ink); }
.bell .quote { grid-column: 2; font-style: italic; color: var(--muted); font-size: 15px; }
.bell .when { font-size: 13px; color: var(--muted); font-style: italic; }
.bell.unread .what::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 8px 2px 0; }

/* Settings ------------------------------------------------------------- */

.settings section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.settings section:first-of-type { padding-top: 0; }
.settings h2 { font-size: 20px; margin-bottom: 4px; }
.settings .say { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { padding: 6px 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); font-size: 14px; cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--sheet); }
.danger { color: var(--over); }

/* The aside on wide screens -------------------------------------------- */

.meadow-card {
  display: block; text-decoration: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #9fb3c4 0%, #c9d2d2 46%, #8a9a6a 47%, #6f8150 100%);
  color: #fff8ef; position: relative; min-height: 132px; padding: 14px 16px;
}
.meadow-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 42%, rgba(255, 246, 225, .55), transparent 28%), linear-gradient(transparent 55%, rgba(20, 18, 14, .45));
}
.meadow-card > * { position: relative; z-index: 1; }
.meadow-card .k { font-size: 13px; font-style: italic; opacity: .9; }
.meadow-card .t { font-size: 20px; margin-top: 58px; }
.meadow-card .s { font-size: 13px; opacity: .9; }

/* Narrow: a phone, or a narrow window ------------------------------------ */

@container kz (max-width: 760px) {
  .kz-top { padding: 14px 16px 8px; gap: 12px; }
  .kz-top .kz-nav { display: none; }
  .kz-top .top-me { display: inline-grid; margin-left: auto; }
  .mark .sub { display: none; }
  .kz-body { grid-template-columns: minmax(0, 1fr); padding: 8px 16px 40px; gap: 0; }
  .kz-aside { display: none; }
  .kz-foot { display: none; }
  :root { --poem: 1.3rem; }
  .hk { font-size: 1.28rem; }
  .scroll .hk { font-size: 1.55rem; }
  .scroll { padding-top: 22px; }
  .page-head h1 { font-size: 24px; }
  .slip { padding: 14px 16px 14px; border-radius: 10px; }
  .slip-foot .shapes .lbl { display: none; }
  .shape { width: 30px; }
  .wall { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ema { padding: 30px 14px 12px; }
  .door { margin-top: 12px; padding: 24px 20px 22px; box-shadow: none; }
  .poet { grid-template-columns: auto 1fr; }
  .poet .face { --s: 54px; }
  .poet h1 { font-size: 24px; }
  .kz-tabs {
    display: flex; position: sticky; bottom: 0; z-index: 5; margin-top: auto;
    background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .kz-tabs a {
    flex: 1; text-align: center; font-size: 12px; color: var(--muted); text-decoration: none;
    padding: 6px 0 4px; position: relative;
  }
  .kz-tabs a .g { display: block; font: 19px/1.1 var(--mincho); color: var(--ink-2); margin-bottom: 2px; }
  .kz-tabs a[aria-current="page"], .kz-tabs a[aria-current="page"] .g { color: var(--accent); }
  .kz-tabs a.write .g { color: var(--accent); }
  .kz-tabs a.dot::after { content: ""; position: absolute; top: 5px; left: 58%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
}
.top-me { display: none; }

/* The live pages ------------------------------------------------------------
   What the app needs beyond the approved mockups: seal tones as classes (the
   page's CSP allows no inline style), radio buttons drawn as the layout
   shapes, actions as small forms, field errors, and the quiet empty states. */

.tone-0 { --tone: #a8382a; } .tone-1 { --tone: #2f4a6d; } .tone-2 { --tone: #3f5f45; }
.tone-3 { --tone: #7a5233; } .tone-4 { --tone: #6b3f5a; } .tone-5 { --tone: #2c6066; }
.face-link, .stamp { text-decoration: none; }
.scroll .stamp { align-self: flex-end; margin: 18px 6% 0 0; }
.scroll .stamp .face { --s: 40px; transform: rotate(-3deg); }
.scroll-acts .acts { justify-content: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.answering { font-size: 14px; color: var(--muted); font-style: italic; margin: 6px 0 0; text-align: center; }

.acts form { display: contents; }
.act { font: inherit; }

.kz-nav .btn.primary { margin-left: 6px; padding: 5px 14px; color: var(--accent-ink); }
.kz-nav .btn.primary:hover { background: var(--accent); }
.top-me.btn { padding: 4px 12px; font-size: 14px; }

.meadow-card span { display: block; }

.shapes { border: 0; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; min-width: 0; }
.shapes legend.lbl { float: left; margin-right: 4px; padding: 0; }
.shape-pick { position: relative; cursor: pointer; }
.shape-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shape-pick input:checked + .shape { border-color: var(--accent); background: var(--sheet); }
.shape-pick input:checked + .shape i { background: var(--accent); }
.shape-pick input:focus-visible + .shape { outline: 2px solid var(--accent); outline-offset: 2px; }

.slip-note { margin: 10px 0 0; }
.slip-note .linkish { font: inherit; }
.layout-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.slip-preview.sample { margin: 0; }

.field .err, .err { display: block; font-size: 13px; color: var(--over); margin-top: 4px; }
.problem { color: var(--over); background: var(--paper); border-left: 2px solid var(--over); padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: 15px; margin: 0 0 16px; }
.door form + form.again { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.door .muted { font-size: 13px; }

.empty { color: var(--muted); font-style: italic; margin: 30px 0; }
.gap { height: 16px; }
.aside-note { font-size: 14px; color: var(--muted); font-style: italic; }
.bell .what a { text-decoration: none; }
.bell .what a:hover b { text-decoration: underline; }
.settings form .btn { margin-top: 2px; }

/* A thumb's reach on a phone (PLAYTEST journey 3: 44 px). The look stays
   the approved one; only the pressable area grows, by padding the controls
   and giving the same space back with negative margins. */
@container kz (max-width: 760px) {
  .acts { gap: 2px; margin-left: -12px; }
  .pager .act { margin-left: -12px; }
  .act { min-height: 44px; padding: 0 12px; align-items: center; }
  .shapes { gap: 14px; }
  .shape-pick { padding: 8px 7px; margin: -8px -7px; }
  .slip .btn.primary, .door .btn, .settings .btn, .poet-meta .btn, .pager .btn { min-height: 44px; }
  .by a { padding: 12px 0; margin: -12px 0; }
  .top-me { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
}
