/* Porch Light — styles copied verbatim from design/porch-light-ui-v1.html (the
   accepted UI contract). Tokens are pre-verified for contrast; do not alter values.
   --deadline (#F5B942) appears only on an approaching, still-actionable comment
   deadline and nowhere else (voice.md, ui-contract.md). */
:root {
  --ground: #14120E;
  --surface: #1F1B15;
  --paper: #F4EEE2;
  --paper-ink: #1A1714;
  --ink: #F7F2E7;
  --muted: #B6AB98;
  --primary: #5ED3B4;
  --link: #8FD8FF;
  --deadline: #F5B942;
  --line: #3A3226;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 48% 30%, rgba(94, 211, 180, .035), transparent 34rem), var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a, input, textarea, summary { min-height: 44px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.packet :focus-visible, .receipt-mobile :focus-visible { outline-color: #175f87; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.scroll-region {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.scroll-region::-webkit-scrollbar { width: 10px; }
.scroll-region::-webkit-scrollbar-track { background: transparent; }
.scroll-region::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid transparent; border-radius: 10px; background-clip: padding-box; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: .35rem;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
/* Centered at a comfortable max so the three-column grid fills its container and
   there is no lopsided dead half-screen on wide viewports (bug: content column
   left a dead right half at 1385px+). The mock's internal proportions are
   unchanged; only the outer bound is capped and centered. */
.shell { width: min(1240px, 100%); margin: 0 auto; padding: 0 20px 24px; }
.topbar {
  display: grid;
  grid-template-columns: 205px 1fr auto;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand-mark { width: 30px; height: 34px; border: 2px solid var(--primary); border-radius: 2px; position: relative; }
.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 4px;
  bottom: -6px;
  background: var(--ground);
  border-left: 2px solid var(--primary);
  transform: rotate(-42deg);
}
nav ul { display: flex; flex-wrap: wrap; gap: .5rem clamp(.75rem, 2.5vw, 2.3rem); list-style: none; padding: 0; margin: 0; }
nav a, nav button, .nav-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  padding: .8rem .1rem .65rem;
  border-bottom: 2px solid transparent;
}
nav button { border-top: 0; border-right: 0; border-left: 0; background: transparent; font: inherit; cursor: pointer; }
nav a[aria-current="true"], nav button[aria-current="true"] { color: var(--primary); border-color: var(--primary); }
.nav-disabled { color: var(--muted); opacity: .68; cursor: not-allowed; }
.top-actions { display: flex; align-items: center; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.toggle button { min-width: 48px; padding: .6rem .75rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { color: var(--ink); background: rgba(94,211,180,.1); }
.sample-notice {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  max-width: 100%;
  margin: 0 0 .65rem;
  padding: .32rem .65rem;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--muted);
  font-size: .9rem;
}
.notice-i { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font: 600 .75rem var(--serif); }
main {
  display: grid;
  /* Two columns: the item column (measure-driven) and the drafts rail. The item
     column has a minmax floor of 620px so the 17.2px summary lands at ~60-75 chars
     per line (the product measure), and grows with the viewport. No fixed px track
     starves it. Rows: page-head, watch-strip, then the item panel + rail. */
  grid-template-columns: minmax(620px, 1fr) 340px;
  grid-template-rows: auto auto auto auto;   /* page-head, watch-strip, item panel, packet */
  gap: 14px 32px;
}
.page-head {
  display: grid;
  grid-column: 1 / -1;      /* full width of main (was 821px inside 1200) */
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 365px);
  gap: 2rem;
  align-items: center;
  min-height: 158px;
  padding: .75rem .45rem .25rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.55rem, 4vw, 3.75rem); line-height: 1.03; letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.12; }
h3 { margin: 0; font-size: 1.25rem; }
.greeting { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.4; }
.tagline { margin: .35rem 0 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; color: var(--primary); max-width: 46ch; }
.heartbeat { display: grid; gap: .2rem; padding: .4rem 0; }
.heartbeat-row { display: flex; align-items: flex-start; gap: .75rem; min-height: 34px; }
.status-shape { flex: 0 0 auto; display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--primary); font-size: .8rem; margin-top: .1rem; }
.status-shape.book { position: relative; width: 26px; height: 22px; }
.status-shape.book::before, .status-shape.book::after { content: ""; position: absolute; top: 3px; width: 10px; height: 14px; border: 1.5px solid currentColor; }
.status-shape.book::before { left: 2px; border-radius: 5px 1px 1px 2px; transform: skewY(8deg); }
.status-shape.book::after { right: 2px; border-radius: 1px 5px 2px 1px; transform: skewY(-8deg); }
.status-shape.clock { border: 2px solid var(--link); color: var(--link); border-radius: 50%; }
.status-shape.clock::before { content: ""; width: 5px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translate(1px,-1px); }
.status-shape.neutral { width: 18px; height: 18px; margin: .25rem .2rem 0; border: 1.5px solid var(--muted); border-radius: 2px; color: var(--muted); }
.heartbeat strong { display: block; font-weight: 500; }
.heartbeat small { display: block; color: var(--muted); }
.dashboard { display: contents; }
.panel { background: linear-gradient(145deg, rgba(31,27,21,.94), rgba(26,23,18,.97)); border: 1px solid var(--line); border-radius: .7rem; }
.main-panel {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;            /* was 736px — no longer forcing dead height */
}
.quiet-state {
  display: grid;
  grid-template-columns: minmax(0, 245px) minmax(0, 1fr);
  gap: 2.2rem;
  padding: 1.05rem 1.35rem .95rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.paper-stack { position: relative; min-height: 230px; display: grid; place-items: center; }
.paper-mini {
  position: relative;
  width: 228px;
  min-height: 226px;
  padding: 1.8rem 1.3rem 1.15rem;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: -10px -8px 0 rgba(244,238,226,.8), -18px -14px 0 rgba(244,238,226,.55), 0 14px 25px rgba(0,0,0,.22);
  transform: rotate(-1.4deg);
  clip-path: polygon(0 0,100% 0,100% 96%,96% 98%,90% 97%,84% 99%,78% 97%,70% 99%,63% 97%,55% 100%,46% 98%,37% 100%,30% 97%,21% 99%,13% 97%,6% 98%,0 96%);
  font-family: Georgia, serif;
  font-size: .66rem;
  line-height: 1.25;
}
.paper-mini .doc-title { text-align: center; font-weight: 700; font-size: .68rem; }
.paper-mini hr { border: 0; border-top: 1px solid var(--paper-ink); margin: .65rem 0; }
.paper-mini mark, .packet mark { background: #D6E8F5; color: inherit; padding: .08rem .15rem; }
.quiet-copy > p { margin: .75rem 0 0; max-width: 54ch; color: var(--ink); }
.quiet-copy .scale-note { color: var(--muted); font-size: .9rem; }
.changed-state { padding: 1.2rem 1.25rem 1.35rem; }
/* The changed-view title is an h2 (region label, not the page h1 — SEM-004) but
   keeps the h1 display size so the visual is unchanged. */
.changed-intro .state-title { font-size: clamp(2.55rem, 4vw, 3.75rem); line-height: 1.03; letter-spacing: -.035em; }
.changed-intro { margin-bottom: 1rem; }
.changed-intro p { margin: .45rem 0 0; color: var(--muted); }
.change-list { display: grid; gap: 1rem; }
.change-card {
  padding: .85rem 1rem .9rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: rgba(20, 18, 14, .36);
}
.change-card.calm { border-color: var(--muted); }
.change-card.calm .watch-match { border-color: var(--link); background: rgba(143, 216, 255, .04); }
.change-card h2 { margin-top: .8rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
/* The item summary is the product's main output: body text, not a display heading.
   Sans, normal weight, comfortable measure. Caption/receipt in the card sit ~13px. */
.change-summary {
  margin: .55rem 0 0;
  font-family: var(--sans);
  font-size: 1.075rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 72ch;   /* the product measure: 60-72 chars/line at 17.2px DM Sans */
  color: var(--ink);
}
.change-status { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.status-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; padding: .25rem .55rem; border: 1px solid var(--muted); border-radius: 999px; font-size: .78rem; font-weight: 600; }
.status-mark { position: relative; display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 2px; }
.status-mark.added::before, .status-mark.added::after { content: ""; position: absolute; background: currentColor; }
.status-mark.added::before { width: 8px; height: 1.5px; left: 2.5px; top: 5.75px; }
.status-mark.added::after { width: 1.5px; height: 8px; left: 5.75px; top: 2.5px; }
.status-mark.off::after { content: ""; position: absolute; width: 12px; border-top: 1.5px solid currentColor; left: 1px; top: 6px; transform: rotate(-45deg); }
.official-term { color: var(--muted); font-size: .78rem; }
.watch-match { margin: .55rem 0 0; padding: .5rem .7rem; border-left: 3px solid var(--primary); background: rgba(94, 211, 180, .06); }
.change-scale, .helpful-line { color: var(--muted); }
.change-scale { margin: .45rem 0 0; font-size: .88rem; }
.change-receipt { margin-top: .6rem; padding-top: .55rem; border-top: 1px dashed var(--muted); font: .72rem/1.5 var(--mono); }
.change-receipt a { display: inline-flex; align-items: center; margin-top: .3rem; }
.deadline-line, .neutral-deadline { display: flex; align-items: center; gap: .55rem; margin: .85rem 0 0; font-weight: 600; }
.change-card.hot .deadline-line { color: var(--deadline); }
.neutral-deadline { color: var(--muted); font-weight: 500; }
.deadline-shape { position: relative; display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; }
.deadline-shape::before { content: ""; position: absolute; width: 5px; height: 6px; left: 7px; top: 3px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.card-action { width: auto; min-width: 150px; margin-top: .6rem; padding-inline: 1.1rem; }
.next-link { display: inline-flex; align-items: center; margin-top: .55rem; }
.scaffold { margin-top: 1rem; padding: 1rem; border: 1px solid var(--primary); border-radius: .55rem; background: rgba(94, 211, 180, .035); }
.scaffold > p { margin: .4rem 0 1rem; color: var(--muted); }
.scaffold-group { padding: .9rem; border-radius: .45rem; }
.scaffold-group + .scaffold-group { margin-top: .8rem; }
.scaffold-filled { border: 1px solid var(--line); background: rgba(182, 171, 152, .045); }
.scaffold-yours { border: 1px dashed var(--primary); }
.scaffold-group h4 { margin: 0 0 .7rem; font: 600 .95rem var(--sans); }
.fact-list { display: grid; gap: .65rem; margin: 0; }
.fact-list div { display: grid; grid-template-columns: minmax(120px, .7fr) 1.5fr; gap: .75rem; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; }
.field-group + .field-group { margin-top: .75rem; }
.field-group label { display: block; margin-bottom: .3rem; font-weight: 500; }
.field-group textarea { width: 100%; min-height: 96px; resize: vertical; padding: .7rem; border: 1px solid var(--muted); border-radius: .4rem; background: #181711; color: var(--ink); }
.scaffold-note { margin: .9rem 0 0; color: var(--muted); }
.scaffold-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .8rem; }
.scaffold-actions button { width: auto; min-width: 120px; margin-top: 0; padding-inline: 1rem; }
.section-body { padding: .8rem 1.25rem; overflow-y: auto; max-height: 560px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.section-head h2 { font: 500 1.05rem var(--sans); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: .6rem;
  align-items: start;
  min-height: 44px;
  padding: .48rem 0;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}
.check-when { display: flex; gap: .65rem; padding-top: .15rem; }
.check-detail { padding-top: .15rem; }
.check-detail small { display: block; color: var(--muted); margin-top: .2rem; }
.text-link { display: inline-flex; align-items: center; padding: .15rem 0; min-height: 44px; white-space: nowrap; }
.pause-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: .8rem;
  align-items: center;
  margin-top: .55rem;
  padding: .68rem .8rem;
  border: 1px dashed #7B705F;
  border-radius: .5rem;
  color: var(--ink);
  background: rgba(182,171,152,.035);
}
.pause-symbol { width: 24px; height: 24px; border: 1.5px solid var(--muted); border-radius: 3px; }
.history-extra p { margin: .7rem 0; color: var(--muted); font-size: .8rem; }
.history-toggle { margin-top: .2rem; padding: .35rem 0; background: transparent; border: 0; color: var(--primary); cursor: pointer; }
.history-toggle::after { content: "⌄"; display: inline-block; margin-left: .6rem; }
.history-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.packet-wrap { grid-column: 1; grid-row: 4; min-width: 0; min-height: 0; }
.packet-heading { margin: 0 0 .25rem; padding: 0 .2rem; color: var(--ink); font: 500 1.05rem var(--sans); }
.source-label { margin: 0 0 .2rem; padding: 0 .2rem; color: var(--muted); font-size: .75rem; }
.packet-caption { margin: 0 0 .55rem; padding: 0 .2rem; color: var(--muted); font-size: .8rem; line-height: 1.4; max-width: 60ch; }
.packet-details { min-height: 520px; }
.packet-details summary { display: none; }
.packet {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  padding: 2rem 1.35rem 1.45rem;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: Georgia, serif;
  clip-path: polygon(0 0,100% 0,100% 97%,97% 99%,92% 98%,87% 100%,80% 98%,74% 99%,67% 97.5%,61% 100%,54% 98%,47% 99%,40% 97%,34% 100%,28% 98%,21% 99%,14% 97%,8% 99%,0 97%);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
  font-size: .74rem;
  line-height: 1.3;
}
.packet header { text-align: center; margin-bottom: .75rem; }
.packet .doc-title { font-weight: 700; }
.packet hr { border: 0; border-top: 1px solid currentColor; margin: .75rem 0; }
.packet-item { display: grid; grid-template-columns: 25px 1fr; gap: .35rem; margin: .7rem 0; }
.packet-item b { grid-column: 1; }
.packet-item div { grid-column: 2; }
.receipt, .receipt-mobile { font: .72rem/1.5 var(--mono); }
.receipt { border-top: 1px dashed #8b806f; margin-top: auto; padding-top: .75rem; }
.receipt a { color: #175f87; display: inline-flex; align-items: center; margin-top: .45rem; }
.receipt-mobile { display: none; padding: .85rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink); }
.receipt-mobile a { display: inline-flex; align-items: center; margin-top: .45rem; }
.side {
  grid-column: 2;
  grid-row: 3 / 5;          /* rail sits beside the item panel + packet */
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 14px;
  min-height: 0;
}
.side-panel { padding: 1.05rem 1.15rem; overflow-y: auto; }
.watch-strip {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(320px, 1.4fr) minmax(240px, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.05rem 1.2rem;
  /* Fluid tracks cannot overflow horizontally, so the scroll affordance is gone:
     no max-height cap, no scroll. Sizes to content. */
}
.watch-lead h2 { font-size: clamp(1.55rem, 2.2vw, 2.15rem); }
.watch-lead > p:last-child { margin: .45rem 0 0; color: var(--muted); font-size: .88rem; max-width: 45ch; }
.watch-kicker { margin: 0 0 .25rem; color: var(--primary); font: 600 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.watch-current { min-width: 0; }
.draft-panel { max-height: 430px; }
.side-panel .section-head h2 { font: 500 1.45rem/1.1 var(--serif); }
.watch-form label { display: block; margin: .6rem 0 .4rem; font-size: .9rem; font-weight: 500; }
.watch-examples { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0 0 .55rem; color: var(--muted); font-size: .82rem; }
.example-chip {
  min-height: 32px;
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(94, 211, 180, .05);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.example-chip:hover { border-color: var(--primary); }
.example-and { color: var(--muted); }
.watch-count { margin: .35rem 0 0; color: var(--muted); font-size: .74rem; }
.watch-mode { margin: .4rem 0 0; padding: .4rem .6rem; border-radius: .4rem; border: 1px solid var(--line); background: rgba(94,211,180,.05); color: var(--muted); font-size: .78rem; }
.clear-all { margin: .7rem 0 0; padding: .4rem 0; background: transparent; border: 0; color: var(--link); font-size: .78rem; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.clear-all:hover { text-decoration-thickness: 2px; }
.clear-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 0; }
.primary-button[aria-busy="true"] { opacity: .7; cursor: progress; }
/* Over-limit emphasis must NOT use --deadline amber (reserved for actionable comment
   deadlines only, voice.md). Use the ink color + weight so it reads as "attention"
   and still survives greyscale via the weight change. */
.watch-count.over { color: var(--ink); font-weight: 600; }
.watch-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: stretch; }
.watch-entry .primary-button { width: auto; min-width: 145px; margin-top: 0; padding-inline: 1rem; }
.input-wrap { position: relative; }
.input-wrap::before { content: ""; position: absolute; left: .95rem; top: 1.05rem; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.input-wrap::after { content: ""; position: absolute; left: 1.78rem; top: 2rem; width: 8px; border-top: 2px solid var(--ink); transform: rotate(45deg); transform-origin: left center; }
.watch-form input { width: 100%; min-height: 62px; padding: .75rem .8rem .75rem 2.75rem; border: 1px solid var(--link); border-radius: .45rem; background: #181711; color: var(--ink); }
.primary-button {
  width: 100%;
  min-height: 48px;
  margin-top: .7rem;
  border: 0;
  border-radius: .4rem;
  background: var(--primary);
  color: #09251e;
  font-weight: 600;
  cursor: pointer;
}
.primary-button:hover { filter: brightness(1.07); }
.helper { margin: .35rem 0 .2rem; color: var(--muted); font-size: .74rem; }
.saved-title { margin: 0 0 .45rem; font-size: .88rem; }
.watch-empty { margin: .6rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--muted); }
.watch-empty strong { display: block; margin-bottom: .25rem; color: var(--ink); }
.watch-list, .draft-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.watch-strip .watch-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.watch-item, .draft-item {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: .55rem;
  min-height: 54px;
  padding: .35rem .45rem .35rem .75rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--ink);
}
.remove-watch { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.25rem; }
.watch-strip .watch-item { width: auto; max-width: 100%; grid-template-columns: minmax(0, 1fr) 44px; background: rgba(94, 211, 180, .035); }
.privacy { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; align-items: center; margin: .7rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--primary); font-size: .78rem; }
.lock { width: 18px; height: 17px; border: 1.7px solid currentColor; border-radius: 3px; position: relative; margin-left: 4px; }
.lock::before { content: ""; position: absolute; width: 9px; height: 8px; border: 1.7px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; left: 2.6px; top: -8px; }
.draft-list { margin-top: .75rem; }
.draft-explainer { margin: .15rem 0 .75rem; color: var(--muted); font-size: .8rem; }
.draft-item { grid-template-columns: 1fr; min-height: 62px; padding: 0; }
.draft-item small { display: block; color: var(--muted); }
/* The row content (icon + title) is a full-width control that reopens the draft. */
.draft-item-open {
  display: grid; grid-template-columns: 26px 1fr; gap: .55rem; align-items: center;
  width: 100%; padding: .7rem .85rem; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.draft-item-open:hover { background: rgba(94, 211, 180, .06); }
span.draft-item-open { cursor: default; }
.doc-icon { display: inline-block; width: 18px; height: 22px; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; }
.doc-icon::before, .doc-icon::after { content: ""; position: absolute; left: 4px; width: 8px; border-top: 1px solid var(--muted); }
.doc-icon::before { top: 8px; }
.doc-icon::after { top: 13px; }
.secondary-button { width: 100%; margin-top: .75rem; background: transparent; color: var(--ink); border: 1px dashed #766c5c; border-radius: .4rem; cursor: pointer; }
.form-status { min-height: 24px; margin: .35rem 0 0; color: var(--primary); font-size: .82rem; }
.about-footer {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-top: 14px;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(31,27,21,.94), rgba(26,23,18,.97));
  border: 1px solid var(--line);
  border-radius: .7rem;
}
.about-footer h2 { font-size: 2rem; }
.about-footer h3 { margin-bottom: .45rem; }
.about-footer p { margin: .35rem 0; color: var(--muted); }
.about-footer ul { margin: .35rem 0; padding-left: 1.2rem; color: var(--muted); }
.about-footer li + li { margin-top: .45rem; }
.about-intro { grid-row: span 2; }
.about-closing { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; color: var(--primary) !important; }
.link-pending { color: var(--muted); }

/* Honest-promises footer band: on every state, above the About footer. Restrained,
   muted, existing tokens only (no new colour token; the reserved amber is never
   used here). Four short lines; the third carries the Agenda Center link. */
.site-footer {
  margin-top: 14px;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(145deg, rgba(31,27,21,.94), rgba(26,23,18,.97));
  border: 1px solid var(--line);
  border-radius: .7rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}
.site-footer p { margin: .3rem 0; color: var(--muted); }
.site-footer a { color: var(--link); }

/* Window note + Notify Me pointer inside the quiet/zero-match copy. */
.state-copy-extra { margin-top: .75rem; }
.state-copy-extra .window-note { margin: .6rem 0 0; color: var(--muted); font-size: .92rem; }
.state-copy-extra .notify-note { margin: .55rem 0 0; color: var(--ink); max-width: 54ch; }

@media (max-width: 1400px) {
  main { grid-template-columns: minmax(560px, 1fr) 320px; }
  .quiet-state { grid-template-columns: minmax(0, 225px) minmax(0, 1fr); gap: 1.6rem; }
  .paper-mini { width: 210px; }
  .side-panel { padding-inline: 1rem; }
}
/* Below ~1024px the item column's 560-620px floor + a rail no longer fit side by
   side, so collapse to a single column: item column full width, rail beneath it. */
@media (max-width: 1024px) {
  main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; }
  .page-head { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .watch-strip { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
  .main-panel { grid-column: 1; grid-row: 3; min-height: 0; }
  .packet-wrap { grid-column: 1; grid-row: 4; }
  .side { grid-column: 1; grid-row: 5; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .shell { padding-inline: .9rem; }
  .topbar { grid-template-columns: 1fr auto; padding-block: .55rem; }
  nav { grid-column: 1 / -1; grid-row: 2; }
  nav ul { min-width: 0; gap: .35rem 1rem; }
  .top-actions { grid-column: 2; grid-row: 1; }
  main { display: flex; flex-direction: column; gap: 14px; }
  .page-head, .dashboard, .main-panel, .quiet-state, .side { display: contents; }
  .greeting-block { order: 1; padding: 1rem .15rem 0; }
  .watch-strip { order: 2; grid-template-columns: 1fr; max-height: 640px; padding: 1rem; }
  .quiet-copy { order: 3; padding: 1.15rem; background: linear-gradient(145deg, rgba(31,27,21,.94), rgba(26,23,18,.97)); border: 1px solid var(--line); border-radius: .7rem; }
  .changed-state { order: 3; padding: 1rem; background: linear-gradient(145deg, rgba(31,27,21,.94), rgba(26,23,18,.97)); border: 1px solid var(--line); border-radius: .7rem; }
  .heartbeat { order: 4; padding: 1rem; background: linear-gradient(145deg, rgba(31,27,21,.94), rgba(26,23,18,.97)); border: 1px solid var(--line); border-radius: .7rem; }
  .section-body { order: 5; max-height: 560px; background: linear-gradient(145deg, rgba(31,27,21,.94), rgba(26,23,18,.97)); border: 1px solid var(--line); border-radius: .7rem; }
  .packet-wrap { order: 6; width: 100%; min-height: 0; }
  .draft-panel { order: 7; max-height: 430px; }
  .paper-stack { display: none; }
  .packet-details { min-height: 0; }
  .packet-details summary {
    display: flex;
    align-items: center;
    padding: .7rem .85rem;
    margin-bottom: .6rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    color: var(--link);
    cursor: pointer;
  }
  .packet { min-height: 0; font-size: .9rem; line-height: 1.45; padding: 1.5rem 1.15rem 2rem; }
  .packet .receipt { display: none; }
  .receipt-mobile { display: block; margin-top: .7rem; }
  .about-footer { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-row: auto; }
}
@media (max-width: 640px) {
  .watch-entry { grid-template-columns: 1fr; }
  .watch-entry .primary-button { width: 100%; }
  .change-card { padding: .85rem; }
  .fact-list div { grid-template-columns: 1fr; gap: .15rem; }
  .scaffold-group { padding: .75rem; }
  .scaffold-actions { display: grid; grid-template-columns: 1fr; gap: .65rem; }
  .scaffold-actions button, .card-action { width: 100%; }
  .check-row { grid-template-columns: 20px minmax(0, 1fr); gap: .35rem .65rem; padding: .75rem 0; }
  .check-when { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; gap: 1rem; }
  .check-row > .status-shape { grid-column: 1; grid-row: 2; }
  .check-detail { grid-column: 2; grid-row: 2; }
  .check-row > a { grid-column: 2; grid-row: 3; justify-self: start; margin-top: .15rem; }
  .pause-row { grid-template-columns: 28px 1fr; }
  .pause-row > a { grid-column: 2; justify-self: start; }
  .about-footer { grid-template-columns: 1fr; padding: 1.25rem; }
  .about-closing { grid-column: 1; }
}
@media (max-width: 375px) {
  .shell { padding-inline: .6rem; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 25px; height: 28px; }
  nav a, nav button, .nav-disabled { font-size: .82rem; }
  h1 { font-size: 2.45rem; }
  .section-body, .side-panel, .quiet-copy, .heartbeat, .watch-strip { padding-inline: .85rem; }
  .packet { padding-inline: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
