/* Wanna Feedback — The Ledger.
   One request per ruled line, the tally kept in the left margin, statuses stamped.
   Mono (IBM Plex Mono) only for labels, counts and dates; everything people read is Newsreader. */
:root {
  --paper: #f3efe4;
  --sheet: #fbf9f3;
  --ink: #1e2230;
  --pencil: #5b5749;
  --rule: #d8d0bb;
  --margin: #b4372b;
  --stamp-green: #2d6a4a;
  --stamp-blue: #2b4c8c;
  --stamp-amber: #87570a;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  /* ruled paper in text fields: rule spacing = line-height, first rule on the first baseline */
  --lh: 28px;
  --pad-top: 6px;  /* < line-height − rule-at, so no rule shows above the first line */
  --rule-at: 21px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.5 var(--serif); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--stamp-blue); outline-offset: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 50; background: var(--ink); color: var(--sheet); padding: 12px 16px; font: 600 14px/1 var(--mono); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 760px; padding-bottom: 72px; }
.wrap.narrow-wide { max-width: 900px; padding-bottom: 72px; }
.wrap.narrow > h1, .wrap.narrow-wide > h1 { font-size: 46px; margin: 18px 0 8px; }
.wrap.narrow > h1:first-child, .wrap.narrow-wide > h1:first-child { margin-top: 56px; } /* no crumbs above: same air as the board's head */
p { margin: 0 0 14px; }

/* header */
.top { border-bottom: 2px solid var(--ink); background: var(--paper); }
/* on a phone the header (with Post) stays in thumb reach while a long board or post scrolls */
/* just posted: the banner carries the Copy link button, the one in the page waits until next time */
body:has(.flash.posted) .entry [data-copy] { display: none !important; }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.mark { font: 600 22px/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.mark small { font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--pencil); }
.team-top .mark small { text-transform: uppercase; letter-spacing: 0.12em; color: var(--stamp-green); }
.nav { display: flex; gap: 4px; margin-left: auto; font: 500 14px/1 var(--mono); }
.nav a { text-decoration: none; padding: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 6px; }
.nav a[aria-current="page"] { border-bottom-color: var(--margin); }
.nav a:hover { background: var(--sheet); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--margin); color: var(--sheet); font: 600 12px/1 var(--mono); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--margin); margin-left: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--sheet);
  font: 600 14px/1 var(--mono); text-decoration: none; cursor: pointer; border-radius: 2px; white-space: nowrap;
}
.btn:hover { background: #2c3245; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sheet); }
.btn.small { min-height: 44px; padding: 0 12px; font-size: 13px; border-width: 1.5px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.post-btn[aria-current="page"] { background: transparent; color: var(--ink); }
.menu { display: none; }
.post-dock { display: none; }
.who { display: flex; align-items: center; gap: 14px; font: 400 13px/1.3 var(--mono); color: var(--pencil); margin: 0; }
.who b { color: var(--ink); font-weight: 600; }
.team-nav { margin-left: auto; }

.sample { background: var(--sheet); border-bottom: 1px dashed var(--rule); font: italic 400 15px/1.4 var(--serif); color: var(--pencil); }
.sample .wrap { padding-top: 8px; padding-bottom: 8px; }

/* one-time messages */
.flash { border-bottom: 2px solid var(--stamp-green); background: #eaf0e8; }
.flash.err { border-bottom-color: var(--margin); background: #f6e6e1; }
.flash .wrap { display: flex; align-items: center; gap: 16px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.flash p { margin: 0; font-size: 17px; }
.flash:focus { outline: none; }
.notice { border: 1.5px solid var(--stamp-blue); background: #eef1f6; padding: 14px 18px; margin: 18px 0; }
.notice p { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 30;
  background: var(--ink); color: var(--sheet); font: 500 14px/1.3 var(--mono); padding: 12px 18px; border-radius: 2px; transition: opacity .15s, transform .15s; max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--margin); }

/* page heading */
.head { padding: 44px 0 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
h1 { font: 500 52px/1.04 var(--serif); letter-spacing: -0.02em; margin: 0; }
h1 em { font-style: italic; color: var(--margin); }
.lede { margin: 12px 0 0; max-width: 600px; color: var(--pencil); font-size: 19px; }
.totals { font: 400 13px/1.6 var(--mono); color: var(--pencil); text-align: right; }
.totals b { display: block; font: 500 40px/1 var(--mono); color: var(--ink); }

/* board layout */
.board { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; padding-bottom: 64px; }
.index h2 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--pencil); margin: 28px 0 8px; }
.index h2:first-child { margin-top: 0; }
.index ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index form { margin: 0; }
.index li button { width: 100%; text-align: left; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 44px; align-items: center; font: 400 17px/1.25 var(--serif); }
.index li button span:last-child { color: var(--pencil); font: 400 13px/1 var(--mono); }
.index li button[aria-pressed="true"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--margin); padding-left: 10px; }
.index li button:hover { background: var(--sheet); }

.search { display: flex; align-items: stretch; border: 2px solid var(--ink); background: var(--sheet); }
.search svg { width: 20px; height: 20px; margin: 13px 0 0 14px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px; font: 400 17px/1.2 var(--serif); color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--stamp-blue); outline-offset: 2px; }
.search .go { border: 0; border-left: 2px solid var(--ink); background: var(--ink); color: var(--sheet); font: 600 14px/1 var(--mono); padding: 0 18px; cursor: pointer; min-height: 44px; }
.search .go:hover { background: #2c3245; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0 0; flex-wrap: wrap; }
.tabs { margin: 0; display: flex; font: 500 14px/1 var(--mono); }
.tabs a, .tabs button { color: inherit; cursor: pointer; border-radius: 0; font: inherit; padding: 14px 16px; text-decoration: none; border: 1px solid var(--rule); margin-right: -1px; background: var(--sheet); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.tabs a:hover, .tabs button:hover { background: var(--paper); }
.tabs [aria-current="page"], .tabs [aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.tabs a:hover[aria-current="page"], .tabs button:hover[aria-pressed="true"] { background: var(--ink); }
.tabs a span, .tabs button span { color: inherit; opacity: .7; }
.sort { font: 400 14px/1 var(--mono); display: flex; align-items: center; gap: 8px; color: var(--pencil); }
select {
  font: 500 14px/1 var(--mono); color: var(--ink); background-color: var(--sheet); border: 1px solid var(--ink);
  min-height: 44px; padding: 0 34px 0 12px; border-radius: 2px; appearance: none; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e2230' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.phone-filters { display: none; }
.count { margin: 16px 0 0; font: 400 13px/1.4 var(--mono); color: var(--pencil); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.clear { font: 500 13px/1 var(--mono); color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }

/* the ledger */
.ledger { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--sheet); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ledger th { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--pencil); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.ledger td { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .tally { width: 92px; border-right: 2px solid var(--margin); text-align: center; padding: 8px 12px; }
.ledger th.tally { text-align: center; }
.ledger .c-title { width: 55%; min-width: 380px; }
.ledger .c-area, .ledger .c-status, .ledger .c-act, .ledger .c-set, .ledger .c-open { width: 1%; white-space: nowrap; }
.ledger td.c-area { font: 400 16px/1.2 var(--serif); color: var(--pencil); }
.ledger td.c-act { font: 400 13px/1 var(--mono); color: var(--pencil); text-align: right; }
.ledger th.c-act { text-align: right; }
.ledger .title a { font: 500 19px/1.25 var(--serif); text-decoration: none; }
.ledger .title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.kind { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--pencil); }
.kind.problem { color: var(--margin); }
.ledger .kind { display: block; margin-bottom: 5px; font-size: 12px; }
.ledger .meta { display: none; }
.ledger tbody tr:hover td { background: #f6f2e7; }
.ledger .vc { font: 600 18px/1 var(--mono); }

.vote {
  width: 64px; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink); cursor: pointer; border-radius: 2px; padding: 5px 0;
  font: 600 17px/1 var(--mono);
}
.vote svg { width: 14px; height: 10px; flex: none; }
.vote[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.vote:hover { background: var(--paper); }
.vote[aria-pressed="true"]:hover { background: #2c3245; }
.vote.closed { border-style: dashed; border-color: var(--rule); color: var(--pencil); cursor: not-allowed; }
.vote.closed:hover { background: transparent; }
.vote .w { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.vote .w.sm { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; display: none; }
.vote.busy { opacity: .7; }

.stamp {
  display: inline-block; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 8px 5px; border: 1.5px solid currentColor; border-radius: 2px; white-space: nowrap; transform: rotate(-1.5deg);
}
.stamp.new { color: var(--pencil); transform: none; border-style: dashed; }
.stamp.planned { color: var(--stamp-blue); }
.stamp.progress { color: var(--stamp-amber); }
.stamp.done { color: var(--stamp-green); }
.stamp.notplanned { color: var(--pencil); transform: rotate(1deg); text-decoration: line-through; text-decoration-thickness: 1px; }
.stamp.merged { color: var(--pencil); transform: none; }

.more-form { margin: 0; }
.more { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font: 400 13px/1 var(--mono); color: var(--pencil); min-height: 44px; }
.more-err { margin-top: 12px; font-size: 16px; color: var(--margin); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.empty { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--sheet); padding: 40px 32px; margin-top: 14px; }
.empty .big, .big { font: 500 26px/1.25 var(--serif); margin: 0 0 10px; }
.empty p { color: var(--pencil); }
.empty .big { color: var(--ink); }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.none { color: var(--pencil); font-style: italic; margin: 14px 0 28px; }

/* footer */
.foot { border-top: 2px solid var(--ink); font: 400 14px/1.4 var(--mono); }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; }
.foot p { margin: 0; color: var(--pencil); display: flex; align-items: center; font: italic 400 16px/1.4 var(--serif); }

/* post page */
.crumbs { padding: 20px 0 0; font: 400 14px/1 var(--mono); color: var(--pencil); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { display: inline-flex; gap: 6px; min-height: 44px; align-items: center; }
.crumbs svg { width: 14px; height: 14px; }
.entry { display: grid; grid-template-columns: 92px minmax(0, 1fr) 300px; gap: 0 40px; padding: 8px 0 24px; }
.entry .tally-col { border-right: 2px solid var(--margin); padding-right: 20px; padding-top: 8px; text-align: center; }
.vote.big { width: 72px; min-height: 92px; font-size: 22px; gap: 6px; }
.vote.big svg { width: 16px; height: 11px; }
.entry .vstate { font: 400 12px/1.35 var(--mono); color: var(--pencil); margin: 10px 0 0; }
.labels { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font: 500 13px/1 var(--mono); color: var(--pencil); }
.labels .hid, .hid { color: var(--margin); font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.entry h1 { font-size: 46px; margin: 14px 0 12px; overflow-wrap: anywhere; }
.status-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; font: 400 13px/1.3 var(--mono); color: var(--pencil); }
.byline { font: 400 13px/1.4 var(--mono); color: var(--pencil); margin: 0 0 24px; }
.body { font-size: 20px; line-height: 1.6; max-width: 680px; overflow-wrap: anywhere; }
.body p { margin: 0 0 16px; }
.actions { display: flex; gap: 12px; margin: 8px 0 28px; flex-wrap: wrap; }
.merged { font: italic 400 17px/1.5 var(--serif); color: var(--pencil); border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); padding: 12px 0; margin-bottom: 32px; }
.merged .mt { color: var(--ink); font-style: normal; }

.answer { background: var(--sheet); border: 1.5px solid var(--stamp-green); padding: 22px 24px; margin-bottom: 40px; }
.answer .from { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--stamp-green); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.answer .from span:last-child { color: var(--pencil); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.answer p { margin: 0 0 10px; font-size: 19px; }
.answer .sig { font: italic 400 17px/1 var(--serif); margin-top: 14px; color: var(--stamp-green); }

h2.sec { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--pencil); margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2.sec .stamp { font-size: 12px; }
h2.sec .incl { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0.02em; }
.comments { list-style: none; margin: 0 0 32px; padding: 0; }
.comments li { padding: 18px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.comments li:focus { outline: none; background: #f6f2e7; }
.comments .who { display: block; font: 500 13px/1.4 var(--mono); color: var(--pencil); margin-bottom: 6px; }
.comments .who b { color: var(--ink); font-weight: 600; }
.comments .from { font-family: var(--serif); font-style: italic; font-size: 15px; }
.comments p { margin: 0 0 8px; }
.comments li.team { border-left: 3px solid var(--stamp-green); padding-left: 16px; background: #eff2ea; }
.comments li.team .who b { color: var(--stamp-green); }
.comments li.is-hidden { opacity: .6; }
form.inline { display: inline; }

.entry-form { margin-left: 132px; max-width: 720px; padding-bottom: 64px; }
.manage .entry-form { margin-left: 0; }

/* fields */
.field { margin: 0 0 22px; }
.field label, .field .label { display: block; font: 600 13px/1.3 var(--mono); margin-bottom: 8px; }
.field .hint, .hint { font: italic 400 15px/1.4 var(--serif); color: var(--pencil); margin: 6px 0 0; }
.err { font: 400 16px/1.4 var(--serif); color: var(--margin); margin: 6px 0 0; }
.err::before { content: "! "; font: 700 14px/1 var(--mono); }
.form-err { border: 1.5px solid var(--margin); background: #f6e6e1; padding: 12px 14px; margin: 0 0 22px; }
[aria-invalid="true"] { border-color: var(--margin) !important; box-shadow: inset 4px 0 0 var(--margin); }
textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; font: 400 18px/1.5 var(--serif); color: var(--ink); background-color: var(--sheet);
  border: 1.5px solid var(--ink); border-radius: 2px; padding: 11px 14px; min-height: 50px;
}
textarea {
  display: block; min-height: calc(var(--lh) * 4 + var(--pad-top) + 12px); resize: vertical;
  line-height: var(--lh); padding: var(--pad-top) 14px 12px;
  background-image: linear-gradient(to bottom, transparent var(--rule-at), var(--rule) var(--rule-at), var(--rule) calc(var(--rule-at) + 1px), transparent calc(var(--rule-at) + 1px));
  background-size: 100% var(--lh); background-repeat: repeat-y; background-position: 0 var(--pad-top); background-origin: padding-box; background-attachment: local;
}
textarea::placeholder, input::placeholder { color: #8b8574; }
.counter { float: right; font-weight: 400; color: var(--pencil); }
details.as { margin: 0 0 22px; }
details.as summary { cursor: pointer; font: 400 17px/1.4 var(--serif); color: var(--pencil); min-height: 44px; display: flex; align-items: center; gap: 4px; list-style: none; }
details.as summary::-webkit-details-marker { display: none; }
details.as summary b { color: var(--ink); }
details.as summary .chg { color: var(--stamp-blue); text-decoration: underline; text-underline-offset: 3px; }
details.as summary:hover .chg { text-decoration-thickness: 2px; }
details.as[open] summary { margin-bottom: 8px; }
details.as > label { display: block; font: 600 13px/1.3 var(--mono); margin-bottom: 8px; }
.comment-form .field:last-of-type input, .comment-form details input { max-width: 380px; }

.margin-notes h2 { margin-top: 0; }
.history { list-style: none; padding: 0; margin: 0 0 28px; font: 400 16px/1.4 var(--serif); }
.history li { padding: 12px 0 12px 18px; border-bottom: 1px solid var(--rule); position: relative; }
.history li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.history li.now::before { background: var(--stamp-amber); border-color: var(--stamp-amber); }
.history .when { color: var(--pencil); display: block; font: 400 13px/1.4 var(--mono); margin-top: 2px; }
.history q { display: block; font: italic 400 16px/1.45 var(--serif); margin-top: 6px; quotes: "“" "”"; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; border-top: 1px solid var(--ink); padding-top: 14px; }
.facts dt { color: var(--pencil); font: 400 13px/1.5 var(--mono); }
.facts dd { margin: 0; font-size: 16px; }
.facts dd.vc { font: 500 14px/1.5 var(--mono); }
.hist-phone { margin-bottom: 32px; }
.full-hist summary { cursor: pointer; font: 600 13px/1 var(--mono); min-height: 44px; display: flex; align-items: center; }
.full-hist[open] summary { margin-bottom: 4px; }

/* new post form */
.form-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding: 8px 0 72px; }
.form-page h1 { font-size: 48px; margin: 10px 0 8px; }
.slip { background: var(--sheet); border: 2px solid var(--ink); padding: 32px; margin-top: 28px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.types legend { font: 600 13px/1.3 var(--mono); margin-bottom: 10px; padding: 0; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.type-opt label { display: block; border: 1.5px solid var(--rule); padding: 18px 18px 16px; cursor: pointer; min-height: 100px; background: var(--paper); height: 100%; }
.type-opt label b { display: block; font: 500 22px/1.2 var(--serif); margin-bottom: 6px; }
.type-opt label span { font: italic 400 16px/1.35 var(--serif); color: var(--pencil); }
.type-opt input:checked + label { border: 2px solid var(--ink); background: var(--sheet); box-shadow: inset 4px 0 0 var(--margin); }
.type-opt input:focus-visible + label { outline: 3px solid var(--stamp-blue); outline-offset: 2px; }
.types + .err { margin: -12px 0 22px; }
.similar { border: 1.5px dashed var(--stamp-blue); margin-top: 12px; background: #f5f6f8; }
.similar p { margin: 0; padding: 12px 14px; font: italic 400 16px/1.4 var(--serif); color: var(--stamp-blue); border-bottom: 1px solid var(--rule); }
.similar ul { list-style: none; margin: 0; padding: 0; }
.similar li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.similar li:last-child { border-bottom: 0; }
.similar a { font: 500 18px/1.3 var(--serif); text-decoration: none; }
.similar a:hover { text-decoration: underline; }
.similar .s-meta { display: block; margin-top: 6px; font: 400 13px/1 var(--mono); color: var(--pencil); }
.similar .s-closed { font: 400 13px/1 var(--mono); color: var(--pencil); }
.vote.wide { width: auto; min-height: 44px; flex-direction: row; gap: 8px; padding: 0 12px; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row2 select { width: 100%; font-size: 15px; min-height: 50px; }
.panel .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; } /* the sidebar is too narrow for two selects side by side */
.submit { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 8px; flex-wrap: wrap; }
.submit .btn { min-height: 52px; padding: 0 28px; font-size: 15px; }
.submit p { margin: 0; font: italic 400 16px/1.4 var(--serif); color: var(--pencil); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-notes { font: 400 17px/1.55 var(--serif); padding-top: 64px; }
.aside-notes h2 { margin-bottom: 12px; }
.aside-notes h2 + ul, .aside-notes h2 + p { margin-bottom: 32px; }
.aside-notes ul { margin: 0; padding-left: 18px; list-style: '— '; }
.aside-notes li { margin-bottom: 10px; }
.narrow-field { max-width: 420px; }
.thanks { border: 1.5px solid var(--stamp-green); background: var(--sheet); padding: 28px; margin-top: 24px; }
.thanks:focus { outline: none; }

/* roadmap */
.lane-switch { display: none; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--sheet); margin-bottom: 64px; }
.lane { padding: 18px 22px 24px; border-right: 1px solid var(--rule); min-width: 0; }
.lane:last-child { border-right: 0; }
.lane h2 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.lane h2 .n { font: 500 22px/1 var(--mono); }
.cards { list-style: none; margin: 0; padding: 0; }
.card { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.card > a { font: 500 19px/1.3 var(--serif); text-decoration: none; display: block; }
.card > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.c-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font: 400 12.5px/1.3 var(--mono); color: var(--pencil); }
.c-meta .kind { font-size: 12px; }
.see-all { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font: 600 13px/1 var(--mono); }

/* my activity */
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-bottom: 72px; }
.me-sec { margin-bottom: 36px; }
.me-main .empty { margin-top: 0; }
.updates, .lines { list-style: none; margin: 0; padding: 0; }
.updates li { padding: 14px 0 14px; border-bottom: 1px solid var(--rule); position: relative; }
.updates li.unread { padding-left: 16px; box-shadow: inset 3px 0 0 var(--margin); }
.updates a, .lines a { font: 500 19px/1.3 var(--serif); text-decoration: none; }
.updates a:hover, .lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.new-tag { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--margin); display: block; margin-bottom: 6px; }
.u-what { font: 400 16px/1.4 var(--serif); color: var(--pencil); margin-top: 4px; }
.u-what b { color: var(--ink); font-weight: 600; }
.u-what time { font: 400 13px/1 var(--mono); }
.updates q { display: block; font: italic 400 17px/1.45 var(--serif); margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--stamp-green); quotes: "“" "”"; }
.lines li { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.l-main { min-width: 0; }
.l-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 8px; font: 400 13px/1.2 var(--mono); color: var(--pencil); }
.me-box { background: var(--sheet); border: 1.5px solid var(--ink); padding: 20px; margin-bottom: 20px; }
.me-box p { font-size: 17px; }
.keylink { font: 400 13px/1.4 var(--mono); overflow-wrap: anywhere; background: var(--paper); padding: 10px 12px; border: 1px dashed var(--rule); }
.warn { color: var(--margin); font-style: italic; }

/* 404 / 500 / offline */
.lost { padding-top: 56px; }
.lost .code { font: 500 64px/1 var(--mono); color: var(--margin); margin: 0 0 10px; }
.lost h1 { font-size: 46px; margin-bottom: 8px; }
.lost .search { margin-top: 24px; max-width: 560px; }

/* team: inbox */
.inbox-tabs { flex-wrap: wrap; margin-bottom: 16px; }
.inbox-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.inbox-filters .search { flex: 1 1 280px; border-width: 1.5px; }
.inbox-filters .search svg { margin-top: 12px; }
.inbox-filters .search input { padding: 10px 12px; }
.inbox-table td.c-set select { min-width: 150px; }
.inbox-table .vc { display: inline-block; min-width: 40px; }

/* team: manage a post */
.manage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-bottom: 64px; }
.manage .entry { grid-template-columns: 92px minmax(0, 1fr); gap: 0 32px; }
.manage .margin-notes { grid-column: 2; margin-top: 24px; }
.panel { padding-top: 16px; }
.p-box { background: var(--sheet); border: 1.5px solid var(--ink); padding: 18px 20px; margin-bottom: 18px; }
.p-box h2.sec { margin-bottom: 14px; }
.p-box p { font-size: 16px; }
.p-box textarea { min-height: calc(var(--lh) * 3 + var(--pad-top) + 12px); }
.merge-search label { display: block; font: 600 13px/1.3 var(--mono); margin-bottom: 8px; }
.merge-search .search { border-width: 1.5px; }
.merge-search .search svg { margin-top: 12px; }
.targets { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.targets a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 44px; }
.targets a:hover { background: var(--paper); }
.t-title { display: block; font: 500 17px/1.3 var(--serif); }
.t-meta { display: block; font: 400 12.5px/1.3 var(--mono); color: var(--pencil); margin-top: 4px; }
.confirm { border: 2px solid var(--margin); background: var(--sheet); padding: 24px 28px; margin-top: 20px; }

/* team: areas */
.add-area { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding: 22px; margin: 20px 0 28px; }
.add-area .field { flex: 1 1 260px; margin: 0; }
.areas { list-style: none; margin: 0 0 32px; padding: 0; border-top: 2px solid var(--ink); background: var(--sheet); }
.area-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.area-row .rename { display: flex; gap: 8px; flex: 1 1 320px; align-items: center; }
.area-row .rename input { min-height: 44px; padding: 8px 12px; font-size: 17px; }
.area-row .a-count { font: 400 13px/1 var(--mono); color: var(--pencil); min-width: 72px; }
.area-row .err { flex-basis: 100%; }
.area-row.archived input { color: var(--pencil); }
.login { max-width: 520px; }
.preview-note { max-width: 520px; margin-top: 28px; border-top: 2px solid var(--stamp-blue); padding-top: 14px; }
.preview-note h2 { font: 600 19px/1.3 var(--serif); margin: 0 0 6px; }
.preview-note p { font-size: 16px; color: var(--pencil); }
code { font: 500 .9em/1 var(--mono); background: var(--sheet); border: 1px solid var(--rule); padding: 2px 6px; color: var(--ink); white-space: nowrap; }
.pv-tag { display: inline-block; margin-left: 6px; padding: 3px 6px; border: 1px solid var(--stamp-blue); color: var(--stamp-blue); font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.area-row .a-name { flex: 1 1 320px; min-height: 44px; display: flex; align-items: center; font-size: 17px; }

/* team: settings */
.setting { margin: 28px 0 8px; }
.setting + .setting { margin-top: 56px; }
.setting .sec { margin-bottom: 14px; }
.setting form { margin: 0; }
.setting .confirm { margin-top: 8px; }
.inbox-table, #inbox-empty { margin-bottom: 72px; }

/* phone */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .wrap.narrow > h1, .wrap.narrow-wide > h1, .lost h1 { font-size: 34px; }
  .wrap.narrow > h1:first-child, .wrap.narrow-wide > h1:first-child { margin-top: 32px; }
  .top .wrap { gap: 10px; min-height: 56px; }
  .mark { font-size: 19px; }
  .nav, .team-top .who span { display: none; }
  .post-btn { margin-left: auto; padding: 0 14px; }
  /* scrolled past the header, the Post button waits at the bottom right, where the thumb is; it steps aside while someone types */
  .dock-on .post-dock { display: inline-flex; position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 52px; padding: 0 20px; font-size: 15px; border: 2px solid var(--paper); outline: 1.5px solid var(--ink); }
  .dock-on .foot { padding-bottom: 76px; }
  body:has(:is(input:not([type=radio], [type=checkbox], [type=hidden]), textarea):focus) .post-dock { display: none; }
  .team-top .wrap { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  .team-top .team-nav { display: flex; order: 3; width: 100%; margin: 0 -14px; overflow-x: auto; }
  .team-top .who { margin-left: auto; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); font: 500 14px/1 var(--mono); cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu svg { width: 18px; height: 18px; }
  .menu nav { position: absolute; right: 0; top: 52px; background: var(--sheet); border: 2px solid var(--ink); width: 240px; z-index: 20; font: 500 15px/1 var(--mono); }
  .menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--rule); text-decoration: none; }
  .menu nav a:last-child { border-bottom: 0; }
  .head { grid-template-columns: 1fr; padding: 26px 0 16px; }
  h1 { font-size: 36px; }
  .lede { font-size: 17px; }
  .totals { display: none; }
  .board { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 40px; }
  .index { display: none; }
  .phone-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
  .phone-filters select { width: 100%; min-width: 0; }
  .search .go { padding: 0 14px; }
  .toolbar { margin-top: 12px; }
  .tabs { width: 100%; }
  .tabs a, .tabs button { flex: 1; justify-content: center; padding: 13px 4px; }
  /* seven tabs: they wrap onto rows and fill them, nothing runs off the edge */
  .inbox-tabs { flex-wrap: wrap; }
  .inbox-tabs a { flex: 1 1 auto; padding: 13px 10px; margin-bottom: -1px; }
  .sort { width: 100%; justify-content: space-between; }
  .sort select { flex: 1; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr { display: block; }
  .ledger tr { display: grid; grid-template-columns: 64px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td { border: 0; padding: 14px 12px; min-width: 0; }
  .ledger .tally { width: auto; padding: 14px 8px; }
  .ledger .vote { width: 48px; min-height: 52px; font-size: 16px; }
  .ledger td.c-area, .ledger td.c-status, .ledger td.c-act { display: none; }
  .ledger .c-title { min-width: 0; }
  .ledger .title a { font-size: 18px; overflow-wrap: anywhere; }
  .ledger .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 10px; font: 400 13px/1.2 var(--mono); color: var(--pencil); }
  .inbox-table tr { grid-template-columns: 56px minmax(0, 1fr); }
  .inbox-table td.c-set, .inbox-table td.c-open { grid-column: 2; padding-top: 0; }
  .inbox-table td.c-open { display: none; }
  .more { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
  .more-form .btn { width: 100%; }
  .empty { padding: 28px 16px; margin-left: -16px; margin-right: -16px; }
  .empty .big, .big { font-size: 22px; }
  .foot .wrap { flex-direction: column; gap: 4px; padding-bottom: 20px; }

  /* post page: vote is the primary control — a tally bar in the flow right under the title and byline, where the thumb
     finds it first; it never floats over the text */
  .post-page main > .wrap, .m-post { display: flex; flex-direction: column; }
  .entry, .entry .main-col { display: contents; }
  .entry .tally-col { order: 1; }
  .entry .main-col > :not(.labels, h1, .status-line, .byline), .entry ~ * { order: 2; }
  .entry .tally-col {
    margin: 0 0 28px; border: 0;
    padding: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
  }
  .entry .tally-col .vote.big { width: 100%; height: 52px; min-height: 0; margin: 0; flex-direction: row; gap: 12px; font-size: 20px; padding: 0 16px; border-width: 2px; border-left: 4px solid var(--margin); justify-content: flex-start; }
  .entry .tally-col .vote.big .w { margin-left: auto; font-size: 13px; }
  .entry .tally-col .vote.big:not([aria-pressed="true"]):not(.closed) { background: var(--sheet); }
  .entry .tally-col .vstate { display: none; }
  .entry .tally-col .vstate.why { display: block; grid-row: 2; grid-column: 1 / -1; margin: 0; font-size: 13px; text-align: left; }
  .entry .tally-col .share { grid-row: 1; grid-column: 2; }
  .share { height: 52px; width: 52px; margin: 0; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer; border-radius: 2px; }
  .share svg { width: 20px; height: 20px; }
  .share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .entry h1 { font-size: 32px; margin-top: 12px; }
  .body { font-size: 18px; }
  .answer { padding: 18px; }
  .entry .main-col > .body, .entry .main-col > .merged, .entry .main-col > .answer, .hist-phone { margin: 0 0 32px; }
  .hist-phone .history { margin-bottom: 0; }
  .hist-phone .full-hist .history { margin-bottom: 0; }
  .entry .main-col > .body > :last-child { margin-bottom: 0; }
  .entry #comments-h { margin-top: 0; }
  .entry .main-col > .jump { order: 0; align-self: flex-start; margin: -6px 0 6px; font: 500 14px/1 var(--mono); min-height: 44px; display: inline-flex; align-items: center; }
  .entry-form { margin-left: 0; padding-bottom: 32px; }
  .form-page { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 40px; }
  .form-page h1 { font-size: 34px; }
  .slip { padding: 18px 16px; margin: 20px -16px 0; border-left: 0; border-right: 0; }
  .types { gap: 10px; }
  .type-opt label { padding: 14px 12px; min-height: 96px; }
  .type-opt label b { font-size: 18px; }
  .type-opt label span { font-size: 15px; }
  .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .submit .btn { width: 100%; }
  .aside-notes { padding-top: 32px; }
  .similar li { grid-template-columns: minmax(0, 1fr); }
  .similar .vote { justify-self: start; }

  .lane-switch { display: flex; margin: 0 0 14px; font: 500 14px/1 var(--mono); }
  .lane-switch button { color: inherit; cursor: pointer; border-radius: 0; font: inherit; flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; text-decoration: none; border: 1px solid var(--rule); margin-right: -1px; background: var(--sheet); white-space: nowrap; }
  .lane-switch button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
  .lanes { grid-template-columns: minmax(0, 1fr); margin: 0 -16px 40px; }
  .lane { display: none; border-right: 0; padding: 14px 16px 20px; }
  .lane.on { display: block; }
  .lane h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; } /* the switch above already names the lane */

  .me-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lines li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lost { padding-top: 32px; }
  .lost .code { font-size: 48px; }

  .manage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .manage .entry { grid-template-columns: minmax(0, 1fr); }
  .manage .margin-notes { grid-column: 1; }
  .add-area { margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; }
  .area-row { padding: 12px 0; }
  .confirm { padding: 18px 16px; }
}
@media (min-width: 761px) { .phone-only { display: none !important; } }
@media (max-width: 760px) { .desk-only { display: none !important; } }
@media (min-width: 761px) and (max-width: 1100px) {
  .board { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .entry { grid-template-columns: 92px minmax(0, 1fr); }
  .entry .margin-notes { grid-column: 2; margin-top: 24px; }
  .ledger td.c-area { display: none; }
  .ledger th.c-area { display: none; }
  .ledger .c-title { min-width: 0; }
  .manage { grid-template-columns: minmax(0, 1fr); }
  .me-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .form-page { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } .stamp { transform: none; } }
/* the smallest phones: the header keeps the count and the menu icon; the words stay for screen readers */
@media (max-width: 440px) {
  .wide-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .wrap { gap: 8px; }
  .menu summary { padding: 0 11px; }
}
@media (max-width: 369px) { .mark { font-size: 17px; } .top .wrap { gap: 6px; } .xs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.me-box .hint + form { margin-top: 14px; }
