/* "A · Field notes" — the look the owner picked from .superpowers/sdd/look-and-feel/mockup.html.
   Paper-toned ground, pine-green accent, serif for the drafts a parent actually reads and a
   condensed display face for panel titles. Styling only: every class, id and hook the
   templates and tests rely on is untouched.

   Two themes (owner, 2026-10-09): the light one below, and a green-charcoal dark one that
   follows the device setting unless the parent picks Light or Dark in the header switch
   (html[data-theme]). Every colour lives in these :root blocks; rules use the variables only,
   so nothing stays light in dark mode. tests/test_theme.py checks both for WCAG contrast.

   Every font rule names its fallback stack, so the page still reads in its intended
   proportions when Google Fonts is unreachable — including the /problem dead-end page,
   which is served inline by app.py with this sheet but no font link. */

:root {
  color-scheme: light;

  --bg: #f3f5f2;
  --panel: #fcfcfa;
  --ink: #141a16;
  --muted: #4a534d;
  --faint: #7c857f;
  --line: #dde2dc;
  --accent: #1d5c3e;
  --accent-ink: #164a32;
  --accent-bg: #e1ede5;
  --accent-line: #b9d3c3;
  --check-bg: #f2f7f3;
  --body-bg: #f7f9f6;
  --body-line: #e3e8e2;
  --amber-bg: #fdf0d2;
  --amber-ink: #6b4d00;
  --block: #a32020;
  --block-bg: #fbe4e4;
  --on-accent: #ffffff;
  --committed: #1d5c3e;
  --on-committed: #ffffff;
  --on-block: #ffffff;
  --field: #ffffff;
  --shadow: rgba(20, 26, 22, .08);

  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

/* Dark: when the device is dark and the parent has not chosen Light, or when they chose Dark.
   The two blocks must stay identical (tests/test_theme.py). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

      --bg: #121815;
      --panel: #1a221e;
      --ink: #e4ebe6;
      --muted: #a3b0a8;
      --faint: #7d8a82;
      --line: #2c3832;
      --accent: #6fc59a;
      --accent-ink: #a6e3c2;
      --accent-bg: #1f3a2c;
      --accent-line: #2f5a43;
      --check-bg: #18261f;
      --body-bg: #161e1a;
      --body-line: #2a352f;
      --amber-bg: #3a2f12;
      --amber-ink: #f0cf7a;
      --block: #ee7b7b;
      --block-bg: #3a1c1c;
      --on-accent: #0d1a13;
      --committed: #2f7d55;
      --on-committed: #ffffff;
      --on-block: #1a0b0b;
      --field: #0f1512;
      --shadow: rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;

    --bg: #121815;
    --panel: #1a221e;
    --ink: #e4ebe6;
    --muted: #a3b0a8;
    --faint: #7d8a82;
    --line: #2c3832;
    --accent: #6fc59a;
    --accent-ink: #a6e3c2;
    --accent-bg: #1f3a2c;
    --accent-line: #2f5a43;
    --check-bg: #18261f;
    --body-bg: #161e1a;
    --body-line: #2a352f;
    --amber-bg: #3a2f12;
    --amber-ink: #f0cf7a;
    --block: #ee7b7b;
    --block-bg: #3a1c1c;
    --on-accent: #0d1a13;
    --committed: #2f7d55;
    --on-committed: #ffffff;
    --on-block: #1a0b0b;
    --field: #0f1512;
    --shadow: rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); overflow-wrap: break-word; }

/* ---- header ------------------------------------------------------------- */

.top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
}
.who strong {
  font-family: var(--cond);
  font-size: 19px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em;
}
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
/* Auto / Light / Dark: one segmented control, the pressed choice filled. */
.themes { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.themes button {
  border: 0; border-radius: 0; padding: 5px 10px; background: var(--panel); color: var(--muted);
  font: 12px/1.2 var(--sans); cursor: pointer;
}
.themes button + button { border-left: 1px solid var(--line); }
.themes button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.signout { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.signout .member { font: 12px/1.2 var(--sans); color: var(--muted); }
.signout button {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; background: var(--panel); color: var(--muted);
  font: 12px/1.2 var(--sans); cursor: pointer;
}
.badge {
  font: 11px/1.4 var(--sans);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  background: var(--accent-bg);
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
}
/* The one badge that must never read as calm: real mail is leaving the machine. */
.badge.warn { border-color: var(--block); background: var(--block); color: var(--on-block); font-weight: 600; }

/* ---- shell: nav | panel | chat drawer ----------------------------------- */

.shell {
  display: flex; align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}
.side {
  flex: 0 0 180px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
}
.side a {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  font: 12.5px/1.4 var(--sans);
  color: var(--muted);
  text-decoration: none;
}
.side a:hover { background: var(--accent-bg); color: var(--accent-ink); }
.side a.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.main { flex: 1 1 auto; min-width: 0; padding: 14px 16px; }

h2, h3 {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}
h2 { margin: 0 0 10px; font-size: 23px; }
h3 { margin: 18px 0 8px; font-size: 17px; }
h2 small, h3 small {
  font: 12px/1.4 var(--sans);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
}

/* ---- chat drawer -------------------------------------------------------- */

.drawer {
  flex: 0 0 300px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: var(--panel);
  border-left: 1px solid var(--line);
}
.drawer.closed #history, .drawer.closed #chatform { display: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-family: var(--cond);
  font-size: 17px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em;
}
#history { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.bubble {
  font: 15px/1.5 var(--serif);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
/* The parent's own turns stay right-aligned, as they were before this pass. */
.bubble.me { background: var(--accent-bg); border-color: var(--accent-line); align-self: flex-end; }
.toolnote { font: 12px/1.4 var(--sans); color: var(--faint); }
#chatform { display: flex; flex-direction: column; gap: 6px; }

/* ---- fields and buttons ------------------------------------------------- */

textarea, input {
  width: 100%;
  padding: 6px 8px;
  background: var(--body-bg);
  border: 1px solid var(--body-line);
  border-radius: 4px;
  color: var(--ink);
}
/* The draft the parent reads and edits, in the face it will be read in. */
textarea { font: 15px/1.5 var(--serif); resize: vertical; }
input { font: 13px/1.5 var(--sans); }
textarea:focus, input:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; border-color: var(--accent); }

button {
  font: 12px/1.4 var(--sans);
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--field);
  color: var(--accent);
  cursor: pointer;
}
button:hover { background: var(--accent-bg); }
button.fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.fill:hover { background: var(--accent-ink); }
button.ghost { border-color: var(--line); color: var(--muted); }
button.ghost:hover { background: var(--body-bg); }

/* ---- items: one draft or camp proposal per card ------------------------- */

.item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.item[open] { border-color: var(--accent); }
/* A blocked draft stays marked whether it is open or shut, so this follows [open]. */
.item.blocked { border-color: var(--block); }
.item summary { cursor: pointer; font: 13px/1.45 var(--sans); }
.item summary::marker { color: var(--faint); }
.item summary strong { font-weight: 600; }
.item p { font: 15px/1.5 var(--serif); margin: 8px 0; }

dl.meta {
  display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px;
  margin: 10px 0;
  font: 12px/1.5 var(--sans);
  color: var(--muted);
}
dl.meta dt { color: var(--faint); }
dl.meta dd { margin: 0; overflow-wrap: break-word; }

/* The calendar ruling: the sentence that decides whether a message may go out. */
.check {
  border-left: 3px solid var(--accent);
  background: var(--check-bg);
  padding: 4px 8px;
}
/* Scoped to the border and the text, per the brief: the check-bg stays underneath. */
.check.block { border-left-color: var(--block); color: var(--block); font-weight: 600; }

.editform { display: grid; gap: 6px; margin: 10px 0; }
.editform button { justify-self: start; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { margin: 0; }

/* ---- pills -------------------------------------------------------------- */

.pill {
  display: inline-block;
  font: 11px/1.6 var(--sans);
  border-radius: 9px;
  padding: 1px 8px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  white-space: nowrap;
}
/* ok / sent / confirmed are the `.pill` default above and need no rule of their own. */
.pill.wait, .pill.awaiting_approval, .pill.proposed, .pill.approved { background: var(--amber-bg); color: var(--amber-ink); }
.pill.block, .pill.blocked, .pill.failed, .pill.rejected { background: var(--block-bg); color: var(--block); }
.pill.muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

/* ---- tables ------------------------------------------------------------- */

/* The only box on a panel allowed to scroll sideways, alongside the log's <pre>. Scoped to
   the table so the heading and the rest of the panel stay put while it scrolls. */
.tablewrap { overflow-x: auto; }
/* min-width is what gives .tablewrap something to scroll: without it the table squeezes to
   the panel and a phone gets one word per line instead of a table it can push sideways. */
table.data { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td {
  text-align: left; vertical-align: top;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}
table.data th {
  font: 11px/1.4 var(--sans);
  font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--faint);
}
table.data td { font: 13px/1.5 var(--sans); }
table.data small { color: var(--faint); }
/* The per-program contacts disclosure on /targets, styled from here: that template is
   being edited on another branch, so it gets no new class of its own. */
table.data details summary { cursor: pointer; font-size: 12px; color: var(--muted); }
table.data details summary::marker { color: var(--faint); }
table.data ul { margin: 4px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); }

/* ---- budget meter and catalogue ----------------------------------------- */

.meter { height: 8px; background: var(--accent-bg); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; background: var(--accent); }
.budgetform { display: flex; align-items: center; gap: 8px; }
.budgetform input { width: 120px; }
.addbyname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.addbyname input { width: 220px; }
.addbyname small { flex: 1 1 100%; color: var(--muted); }

ul.unplaced { margin: 0; padding-left: 16px; font: 13px/1.5 var(--sans); color: var(--muted); }

/* ---- camp calendar ------------------------------------------------------ */
/* A wall-calendar month grid at full page width, with the clicked camp's details below it.
   Sized about 40% above the dashboard's base text (owner, 2026-10-09) so parents can read
   it easily. Days are minmax(0, 1fr) and full camp names wrap inside their day, so a long
   name makes a day taller, never the page wider. */

.calnav { display: flex; align-items: center; gap: 14px; margin: 20px 0 12px; }
.caltitle { font: 600 31px/1.2 var(--cond); letter-spacing: .02em; min-width: 9ch; text-align: center; }
.calarrow, .caltoday {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 45px; height: 45px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  color: var(--ink); text-decoration: none; font: 22px/1 var(--sans);
}
.caltoday { font-size: 18px; margin-left: auto; }
.calarrow:hover, .caltoday:hover { border-color: var(--accent); color: var(--accent); }

.calwrap { display: flex; flex-direction: column; gap: 20px; }
.calgrid { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.calhead, .calweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calhead span {
  padding: 8px; border-bottom: 1px solid var(--line);
  font: 600 15px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.calday { min-height: 132px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.calweek .calday:last-child { border-right: 0; }
.calweek:last-child .calday { border-bottom: 0; }
.calday.outside { background: var(--bg); }
.calday.outside .calnum { color: var(--faint); }
.calnum { display: block; font: 600 18px/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); margin-bottom: 4px; }

.ev {
  display: block; margin: 3px 0; padding: 4px 7px;
  border: 1px solid transparent; border-radius: 4px;
  font: 16px/1.3 var(--sans); text-decoration: none;
  overflow-wrap: anywhere; hyphens: auto;
}
.ev .tier { font-weight: 700; margin-right: 2px; }
.ev.committed { background: var(--committed); border-color: var(--committed); color: var(--on-committed); }
.ev.proposed { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-ink); }
.ev.catalogue { background: transparent; border-color: var(--line); color: var(--muted); }
.ev.projected { border-style: dashed; border-width: 2px; }
.ev.committed.projected { border-color: var(--accent-bg); }
.ev.on { outline: 3px solid var(--ink); outline-offset: 1px; }
a.ev:hover { filter: brightness(.96); text-decoration: underline; }

/* Phone list view, after a phone calendar's agenda: day headings, one card per camp. */
.calagenda { display: none; }
.agday { margin: 18px 0 10px; font: 600 22px/1.3 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.agday:first-child { margin-top: 4px; }
.agcard {
  position: relative; display: block; margin: 0 0 12px; padding: 16px 52px 18px 18px;
  background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--line);
  border-radius: 14px; color: var(--ink); text-decoration: none;
}
.agcard.committed { border-left-color: var(--accent); }
.agcard.proposed { border-left-color: var(--accent-line); background: var(--check-bg); }
.agcard.projected { border-style: dashed; border-left-style: solid; }
.agcard.on { outline: 3px solid var(--ink); outline-offset: 1px; }
.agtitle { display: block; font: 600 21px/1.3 var(--sans); }
.agtitle .tier { color: var(--accent-ink); }
.agwhen, .agmeta { display: block; margin-top: 6px; font: 17px/1.4 var(--sans); color: var(--muted); }
.agcard .more { position: absolute; right: 18px; bottom: 14px; font: 700 16px/1 var(--sans); letter-spacing: 2px; color: var(--muted); }

.calpanel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px;
  font-size: 18px; scroll-margin-top: 12px;  /* the #details jump lands on the panel */
}
.calpanel h3 { margin: 0 0 8px; font-size: 26px; }
.calpanel .calstatus { margin: 0 0 10px; }
.calpanel .pill { font-size: 15px; }
.calpanel dl.meta { grid-template-columns: 110px 1fr; font-size: 18px; }
.calpanel dl.meta small { font-size: 15px; }
.calpanel .tier { font-weight: 700; color: var(--accent-ink); }
.calpanel .check { margin: 10px 0 0; font-size: 17px; }
.calpanel button { font-size: 17px; padding: 8px 16px; }
.calhint { color: var(--muted); margin: 0 0 14px; }
ul.callegend { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
ul.callegend li { display: flex; align-items: center; gap: 10px; font: 16px/1.7 var(--sans); color: var(--muted); }
ul.callegend li.tiers { display: block; }
ul.callegend .ev { width: 36px; flex: 0 0 36px; margin: 0; padding: 0; height: 22px; }

/* ---- timeline ----------------------------------------------------------- */

ul.timeline { list-style: none; margin: 0; padding: 0; }
ul.timeline li {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  font: 15px/1.5 var(--serif);
}
ul.timeline .d { font: 13px/1.5 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
ul.timeline .k { font: 11px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
ul.timeline li.rule { background: var(--check-bg); }

/* ---- agent log ---------------------------------------------------------- */

.logrow { border-bottom: 1px solid var(--line); padding: 6px 0; font: 13px/1.5 var(--sans); }
.logrow summary { cursor: pointer; }
.logrow summary::marker { color: var(--faint); }
.logrow .d { font-variant-numeric: tabular-nums; color: var(--muted); }
.logrow small { color: var(--faint); }
.logrow pre {
  background: var(--body-bg);
  border: 1px solid var(--body-line);
  border-radius: 4px;
  padding: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}

/* A source URL that failed the http(s) check: shown, never clickable. */
.nolink { color: var(--muted); word-break: break-all; }

/* The dead-end page app.py serves inline: no font link there, so it reads in the
   fallback stacks. Given as a card because it is the whole page, not a panel. */
.main.problem {
  max-width: 560px;
  margin: 24px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}

/* ---- tile folders --------------------------------------------------------- */
/* Large folder tiles at the enlarged calendar's reading size (owner, 2026-10-09). */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 12px 0 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 140px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--accent);
  border-radius: 12px; color: var(--ink); text-decoration: none;
}
.tile:hover { border-color: var(--accent); box-shadow: 0 2px 8px var(--shadow); }
.tile.empty { border-top-color: var(--line); }
.tile .tname { font: 600 21px/1.3 var(--sans); }
.tile .count { font: 600 40px/1 var(--cond); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.tile.empty .count { color: var(--faint); }
.tile .badge {
  position: absolute; top: -10px; right: -10px; min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--block); color: var(--on-block); border-radius: 999px; border: 2px solid var(--panel);
  font: 700 15px/1 var(--sans);
}
.backlink { margin: 0 0 8px; font-size: 17px; }
.backlink a { text-decoration: none; }
ul.timeline .why { color: var(--block); font: 13px/1.5 var(--sans); }
/* Who did it: "Approved by Dana · Oct 12" beside a row, and the speaker above a chat bubble. */
.by { color: var(--muted); font: 13px/1.5 var(--sans); }
.speaker { color: var(--muted); font: 12px/1.2 var(--sans); align-self: flex-end; margin-top: 6px; }

/* ---- model picker ------------------------------------------------------- */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.modelcard { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
.modelcard.on { border: 2px solid var(--accent); }
.modelcard strong { font: 600 20px/1.3 var(--sans); }
.modelcard .who, .modelcard .facts { color: var(--muted); font-size: 15px; }
.modelcard .note { font: 16px/1.4 var(--serif); }
.drawer-head .model { display: block; font: 12px/1.4 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.modelnotice, .modelbanner { margin: 8px 0; padding: 8px 10px; border-left: 4px solid var(--block);
  background: var(--block-bg); color: var(--block); font: 14px/1.4 var(--sans); }

/* ---- stacked (phone / narrow window) ------------------------------------ */

@media (max-width: 900px) {
  .shell { flex-wrap: wrap; }
  /* flex-shrink too, not just the basis: both rails carry `flex: 0 0 Npx` above, and a
     stacked rail that cannot shrink would set the page's width instead of taking it. */
  .side, .drawer { flex-basis: 100%; flex-shrink: 1; }
  .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .drawer { border-left: 0; border-top: 1px solid var(--line); }
  dl.meta { grid-template-columns: 1fr; gap: 0 0; }
  dl.meta dd { margin-bottom: 6px; }
  .calpanel dl.meta { grid-template-columns: 1fr; }
}

/* A phone has too little width for full names in a seven-day grid, so it shows the
   month as a list of cards instead (owner, 2026-10-09: like a phone calendar's agenda). */
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { min-height: 116px; padding: 14px; }
  .tile .tname { font-size: 18px; }
  .tile .count { font-size: 32px; }
  .calgrid { display: none; }
  .calagenda { display: block; }
  .caltitle { font-size: 26px; }
  .calpanel h3 { font-size: 22px; }
}

/* ---- profile form and people --------------------------------------------- */

.profileform { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin: 12px 0 20px; }
.profileform label { display: flex; flex-direction: column; gap: 4px; font: 12px/1.4 var(--sans); color: var(--muted); }
.profileform .wide { grid-column: 1 / -1; }
ul.formerrors { margin: 8px 0; padding-left: 16px; font: 13px/1.5 var(--sans); color: var(--block); }
.peopleactions { display: flex; gap: 6px; }

/* ---- public homepage (owner-approved mockup "A · Quiet guide") ----------- */
/* The one page a visitor sees without signing in (templates/home.html). Variables only, and
   only pairings tests/test_theme.py already checks: accent and muted on panel/bg, on-accent on accent. */

body.home { min-height: 100vh; display: flex; flex-direction: column; }
.home-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.home-brand { font: 700 26px/1 var(--cond); letter-spacing: .04em; color: var(--accent); }
.home-signin {
  font: 600 15px/1 var(--sans); color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 8px 16px;
}
.home-signin:hover { border-color: var(--accent); }
.home-main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 48px 24px 24px; box-sizing: border-box; }
.home-hero h1 { font: 600 40px/1.2 var(--serif); color: var(--ink); margin: 0 0 16px; max-width: 22ch; }
.home-lede { font: 19px/1.55 var(--sans); color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.home-cta {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font: 600 17px/1 var(--sans); padding: 14px 24px; border-radius: 8px;
}
.home-cta:hover { box-shadow: 0 2px 8px var(--shadow); }
.home-small { font: 14px/1.4 var(--sans); color: var(--muted); margin: 10px 0 0; }
.home-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; }
.home-steps li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px;
  font: 16px/1.45 var(--sans); color: var(--ink);
}
.home-steps b { display: block; font: 600 21px/1.2 var(--cond); color: var(--accent); margin-bottom: 6px; }
.home-trust {
  margin: 32px 0 0; padding: 16px 24px; text-align: center;
  background: var(--panel); border-top: 1px solid var(--line); font: 15px/1.5 var(--sans); color: var(--muted);
}
.home-foot { padding: 14px 24px; border-top: 1px solid var(--line); font: 14px/1.5 var(--sans); color: var(--muted); }
.home-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 0; padding: 0; }
.home-foot a { color: var(--accent); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .home-top { padding: 12px 16px; }
  .home-main { padding: 32px 16px 16px; }
  .home-hero h1 { font-size: 30px; }
  .home-lede { font-size: 17px; }
  .home-cta { display: block; text-align: center; }
  .home-steps { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .home-trust { padding: 14px 16px; text-align: left; }
}
