@import url("/design/tokens.css");
@import url("/design/components.css");

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(42, 157, 143, 0.16), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(231, 111, 81, 0.12), transparent 48%),
    var(--off-white);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: clip;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--forest); }
a:hover { color: var(--side-a); }
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus, .skip:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 1rem;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  left: 1rem;
  top: 1rem;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand img { display: block; width: 48px; height: 48px; }
.wordmark, .brand strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}
.brand em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--sans);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
}
.nav a, .nav button.linkish {
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}

.nav a, .nav button.linkish { white-space: nowrap; }
.nav-label-short { display: none; }

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    gap: 0.5rem;
  }
  .brand em { display: none; }
  .brand { min-width: 0; gap: 0.55rem; }
  .nav {
    flex-shrink: 0;
    gap: 0.45rem;
  }
  .nav a, .nav button.linkish {
    padding: 0.35rem 0.08rem;
    font-size: 0.94rem;
  }
  .nav .nav-label-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .nav .nav-label-short { display: inline; }
  .user-chip { display: none; }
  #nav-print-btn { display: none; }
  /* Signed-in adds Account (and maybe Admin). Keep every label on one
     line by giving the nav its own row instead of overlapping the mark. */
  .site-header:has(#account-link),
  .site-header:has(#admin-link) {
    flex-wrap: wrap;
  }
  .site-header:has(#account-link) .nav,
  .site-header:has(#admin-link) .nav {
    flex: 1 0 100%;
    justify-content: flex-end;
    padding-bottom: 0.15rem;
  }
}
.user-chip {
  border: 1px solid var(--line);
  background: var(--paper-3);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

.hero, .page-narrow, .section, .breakdown, .admin {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.hero { padding: 2.4rem 0 1rem; max-width: 820px; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--forest);
  margin: 0 0 0.7rem;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h2, h3, h4 { font-weight: 700; }
h1 { font-size: clamp(2.05rem, 8vw, 3.4rem); margin: 0 0 0.8rem; }
h2 { font-size: 1.7rem; margin: 0 0 0.6rem; }
.lede { font-size: 1.15rem; color: var(--navy-soft); margin: 0 0 1.4rem; }

.composer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-2);
}
.composer textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.5;
  outline: none;
}
.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.char-count { font-family: var(--sans); color: var(--muted); font-size: 0.86rem; }
.char-count.over-cap { color: var(--danger); font-weight: 600; }

.argument-add-row { margin: 0.15rem 0 0.75rem; }
.argument-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem 0.8rem 0.45rem;
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.45);
}
.argument-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}
.argument-label {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--forest);
}
.argument-moves { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.argument-evidence-label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}
.composer textarea.argument-text { min-height: 120px; }
.composer textarea.argument-evidence {
  min-height: 72px;
  resize: vertical;
  border-top: 1px solid var(--line);
  margin-top: 0.15rem;
  padding-top: 0.35rem;
}
.citation-flag { margin: 0 0 0.85rem; }
.citation-flag p { margin: 0.15rem 0; }
.practice-question-list { margin-top: 0.2rem; }
.pro-doorway { margin: 0.85rem 0 0; }

.banner {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-family: var(--sans);
}
.banner.info { background: #e7efe9; color: #234336; }
.banner.warn { background: #f4e6cf; color: #5b3d12; }
.banner.err { background: #f3d9d6; color: #6a2420; }

.limit-card {
  margin: 1rem 0 1.2rem;
  padding: 1.15rem 1.2rem 1.15rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-family: var(--sans);
}
.limit-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
}
.limit-card p {
  margin: 0 0 0.65rem;
  color: var(--muted);
}
.limit-card p:last-child { margin-bottom: 0; }
.limit-card .limit-signin { color: var(--ink); }
.limit-card button.linkish {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-family: var(--sans);
  color: var(--forest);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.limit-card button.linkish:hover { color: var(--side-a); }
.limit-card .limit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin: 0.9rem 0 0;
}
.limit-card .limit-pro { color: var(--ink); }
.limit-card .limit-pro a { font-weight: 600; }

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2.2rem 0 1rem;
}
.section { padding: 1.2rem 0 2rem; }
.page-narrow { max-width: 760px; padding: 2rem 0 4rem; }
.page-narrow p { font-size: 1.08rem; }
.how-more {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
}
.how-page-steps {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 2.1rem;
}
.how-page-steps h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.how-page-steps p { margin: 0; }
.how-example {
  margin: 2rem 0 1.2rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
}
.how-example h2 { margin: 0 0 0.45rem; font-size: 1.35rem; }
.how-example .how-example-title { margin: 0.35rem 0 0.4rem; font-size: 1.2rem; }
.how-example .btn-row { margin-top: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
#example-banner { margin: 0 0 1rem; }

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 1.4rem;
}
.kicker { font-family: var(--sans); color: var(--muted); margin: 0 0 0.4rem; }
.summary { font-size: 1.2rem; margin: 0 0 1.3rem; }

.sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.side {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.side.side-a { border-top: 6px solid var(--side-a); }
.side.side-b { border-top: 6px solid var(--side-b); }
.side.side-n { border-top: 6px solid var(--forest); }
.side h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.side h3 { font-size: 1rem; margin: 1rem 0 0.35rem; font-family: var(--sans); letter-spacing: 0.02em; }
.side ul { margin: 0; padding-left: 1.15rem; }
.side li { margin: 0.3rem 0; }
.claims { display: grid; gap: 0.7rem; margin-top: 0.6rem; }
.claim {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  cursor: pointer;
}
.claim:hover { border-color: var(--gold); background: #fff; }
.claim-text { display: block; margin-bottom: 0.45rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: #ddd6c8;
  color: #3d382f;
}
.tag.checkable { background: #d7e8dd; color: #234336; }
.tag.disputed { background: #f3e1c6; color: #5b3d12; }
.tag.value_judgment, .tag.value-judgment { background: #dfe1ef; color: #32365b; }
.tag.well_supported { background: #d7e8dd; color: #234336; }
.tag.depends_on_definition { background: #e7e0f0; color: #43345a; }

.band {
  margin: 1.3rem 0;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
}
.band.gold { border-color: #e1d0a6; background: #f8f1de; }
.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.notify-form { display: grid; gap: 0.55rem; margin-top: 0.6rem; }
.pro-chip {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}
.share-panel { margin: 0.6rem 1rem; display: grid; gap: 0.5rem; }
.share-panel input { width: 100%; }
.map-outline { margin: 1rem; }
.map-outline ol { padding-left: 1.2rem; }
.split h3 { margin-top: 0; font-size: 1.05rem; }

.session-actions, .donate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 1rem 0 2rem;
}
.donate-note {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 28rem;
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: #2c4a63;
  color: #f4efe6;
  font-family: var(--sans);
  font-size: 0.86rem;
  padding: 0.35rem 0.75rem;
}
.badge-stamp {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  font-weight: 600;
}
a.badge {
  text-decoration: none;
  color: #f4efe6;
}
a.badge:hover { color: #fff; }
.original {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: var(--paper-3);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1rem;
  color: #3b352e;
  margin: 0.65rem 0 0;
  max-width: 100%;
  box-sizing: border-box;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 22, 0.35);
  border: 0;
  display: none;
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(520px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(30, 26, 22, 0.12);
  transform: translateX(110%);
  transition: transform 0.22s ease;
  overflow: auto;
  padding: 1.3rem 1.2rem 3rem;
  z-index: 8;
}
.drawer.open { transform: translateX(0); }
.drawer h2 { font-size: 1.35rem; }
.drawer section { margin-top: 1.1rem; }
.drawer .close {
  float: right;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}
.source-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  margin: 0.55rem 0;
  background: var(--paper-3);
}
.source-box input {
  width: 100%;
  margin: 0.45rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.turnstile-slot { margin: 0.8rem 0; min-height: 66px; }

.admin .meter {
  height: 12px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.admin .meter > span { display: block; height: 100%; background: var(--forest); }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
  background: var(--paper-3);
  border-radius: 16px;
  overflow: hidden;
}
th, td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

@media (max-width: 840px) {
  .how, .sides, .split { grid-template-columns: 1fr; }
  h1 { font-size: 2.15rem; }
  .drawer { width: 100%; }
}

.privacy-mini {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}
.privacy-mini a { color: var(--forest); }
.legal h2 { margin-top: 1.8rem; font-size: 1.25rem; }
.legal h3 { margin-top: 1.1rem; font-size: 1.05rem; font-family: var(--sans); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.35rem 0; }

/* —— Screenshots in composer —— */
.shot-bar { margin-top: 0.55rem; }
.shot-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.shot-add { cursor: pointer; }
.shot-thumbs {
  display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.7rem;
}
.shot-thumb {
  position: relative; width: 72px; height: 72px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line); background: var(--paper-2);
}
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-remove {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  border: 0; border-radius: 999px; background: rgba(30,26,22,0.75); color: #fff;
  font: inherit; line-height: 1; cursor: pointer;
}
.shot-remove:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.composer.drag-shots { outline: 2px dashed var(--forest); outline-offset: 4px; }

/* —— Report v2 —— */
.summary-hero {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  margin: 0.4rem 0 1.2rem;
}
.summary-line {
  margin: 0.85rem 0 0;
  font-size: 1.15rem;
  color: #3b352e;
}
.summary-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.breakdown {
  width: min(1280px, calc(100% - 2rem));
}
.sides-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.sides-grid.sides-count-1 { grid-template-columns: 1fr; }
.sides-grid.sides-count-2 { grid-template-columns: 1fr; }
.sides-grid.sides-count-3 { grid-template-columns: 1fr; }
.sides-grid.sides-count-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .sides-grid.sides-count-2 { grid-template-columns: 1fr 1fr; }
  .sides-grid.sides-count-3 { grid-template-columns: 1fr 1fr; }
  .sides-grid.sides-count-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .sides-grid.sides-count-2 { grid-template-columns: 1fr 1fr; }
  .sides-grid.sides-count-3 { grid-template-columns: 1fr 1fr 1fr; }
  .sides-grid.sides-count-4 { grid-template-columns: 1fr 1fr; } /* 2x2 */
  .breakdown:has(.sides-count-3) {
    width: min(1400px, calc(100% - 2rem));
  }
  .breakdown:has(.sides-count-4) {
    width: min(1280px, calc(100% - 2rem));
  }
}
.side-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
}
.side-card.tone-slate { border-top: 6px solid #3d5a73; }
.side-card.tone-clay { border-top: 6px solid #8a6350; }
.side-card.tone-moss { border-top: 6px solid #3f6b57; }
.side-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.side-card h2 { font-size: 1.4rem; margin: 0 0 0.65rem; }
.side-case { margin: 0 0 0.9rem; color: #2f2a24; }
.side-block { margin-top: 0.95rem; }
.side-block h3 {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.95rem; margin: 0 0 0.45rem; font-family: var(--sans);
}
.point-cards { display: grid; gap: 0.5rem; }
.point-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  font-size: 0.98rem;
}
.claim-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.claim-card:hover, .claim-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 137, 61, 0.18);
  outline: none;
}
.claim-hint {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: #ddd6c8;
  color: #3d382f;
}
.pill.checkable { background: #d7e8dd; color: #234336; }
.pill.disputed { background: #f3e1c6; color: #5b3d12; }
.pill.value_judgment { background: #dfe1ef; color: #32365b; }
.pill.well_supported { background: #d7e8dd; color: #234336; }
.pill.depends_on_definition { background: #e7e0f0; color: #43345a; }

.common-band {
  margin: 1.35rem 0;
  background: linear-gradient(180deg, #f8f1de, #f3e9cc);
  border: 1px solid #e1d0a6;
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
}
.report-card {
  margin: 1.2rem 0;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
}
.card-head {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.55rem;
}
.card-head h2 { margin: 0.1rem 0 0; font-size: 1.35rem; }
.card-lede { margin: 0 0 0.9rem; }
.ico { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--forest); margin-top: 0.2rem; }
.chip-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.chip-tab {
  font-family: var(--sans);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  color: var(--ink);
}
.chip-tab.active, .chip-tab[aria-selected="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #f7f3ea;
}
.chip-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.plain-list { margin: 0; padding-left: 1.15rem; }
.plain-list li { margin: 0.3rem 0; }
.empty-note { color: var(--muted); font-family: var(--sans); font-size: 0.92rem; }
.original-wrap { margin: 0 0 1.15rem; max-width: 100%; }
.original-wrap summary {
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  color: var(--ink);
  line-height: 1.35;
}
.original-wrap summary .pill { flex: 0 0 auto; }
.btn:focus-visible, .claim:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .sides-grid.sides-count-2,
  .sides-grid.sides-count-3,
  .sides-grid.sides-count-4 { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(900px 420px at 0% -8%, rgba(42, 157, 143, 0.22), transparent 55%),
      radial-gradient(720px 380px at 100% 0%, rgba(231, 111, 81, 0.16), transparent 48%),
      var(--off-white);
  }
  .lede, .summary-line, .side-case, .original { color: #d9d2c6; }
  .banner.info { background: #24352c; color: #cfe6d8; }
  .banner.warn { background: #3a2e1c; color: #f0d7ad; }
  .banner.err { background: #3a2220; color: #f0c4bf; }
  .common-band { background: linear-gradient(180deg, #3a3424, #322d20); border-color: #5a4e32; }
  .point-card, .claim-card, .source-box, .modal-card input, .source-box input { background: #1c1f1d; }
  .btn.primary { background: #8FD9CE; color: #1E2A44; --lip: #1E6F66; }
  .pill { background: #3a403c; color: #ece7de; }
  .pill.checkable, .pill.well_supported { background: #2a4036; color: #cfe6d8; }
  .pill.disputed { background: #403522; color: #f0d7ad; }
  .pill.value_judgment { background: #2f3144; color: #d7daf0; }
  .pill.depends_on_definition { background: #372f42; color: #e0d4f0; }
}

.view-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}
.view-toolbar .view-toggle { margin: 0; }
@media (max-width: 640px) {
  #nav-print-btn { display: none; }
  .original-wrap summary { font-size: 0.95rem; }
  .original { padding: 0.85rem 0.9rem; }
}

.print-only { display: none; }

@media print {
  .site-header, .site-footer, .session-actions, .donate, .drawer, .drawer-backdrop, .modal, .more-menu,
  #stamp-btn, #share-btn, #report-btn, #print-btn, #demo-banner, #action-note, .no-print,
  .mm-toolbar, .mm-viewport, .mm-workspace, #view-body,
  .mm-jump-wrap, .view-toggle, .view-toolbar, .visibility-bar, .grow-entry, .original-wrap, .share-settings,
  .claim-hint, .print-report .chip-tabs, #nav-print-btn, #header-print-btn {
    display: none !important;
  }
  .print-only { display: block !important; }
  .print-report .chip-panel,
  .print-report .chip-panel[hidden] {
    display: block !important;
  }
  .print-report .chip-panel-title {
    display: block !important;
    margin: 0.9rem 0 0.35rem;
    font-size: 0.95rem;
  }
  /* Flatten interactive chrome so Windows/Chrome "Print to PDF" does not paint default gray buttons. */
  button.linkish,
  button.point-card,
  button.claim-card,
  button.linkish-card {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    cursor: default;
    color: #000;
    font: inherit;
    text-align: left;
  }
  button.linkish {
    display: contents;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    padding: 0 !important;
    margin: 0;
  }
  button.point-card,
  button.claim-card,
  button.linkish-card {
    background: #fff !important;
    border: 1px solid #ccc !important;
  }
  button.claim-card:hover,
  button.claim-card:focus-visible,
  button.point-card:hover,
  button.point-card:focus-visible,
  button.linkish-card:hover,
  button.linkish:hover {
    border-color: #ccc;
    box-shadow: none;
  }
  .pill, .plain-summary-pill, .mm-status {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #1e1a16 !important;
    border: 1px solid #444 !important;
    background: #fff !important;
  }
  body { background: #fff; color: #000; }
  .summary-hero, .side-card, .common-band, .report-card { box-shadow: none; break-inside: avoid; }
  .sides-grid.sides-count-2 { grid-template-columns: 1fr 1fr; }
  .sides-grid.sides-count-3 { grid-template-columns: 1fr 1fr 1fr; }
  .sides-grid.sides-count-4 { grid-template-columns: 1fr 1fr; }
  a { color: inherit; text-decoration: none; }
  .print-masthead {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    border-bottom: 2px solid #1e1a16;
    break-inside: avoid;
  }
  .print-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
  .print-brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .print-brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
  }
  .print-brand span {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: #444;
  }
  .print-masthead-meta {
    text-align: right;
  }
  .print-masthead-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
  }
  .print-masthead-date {
    margin: 0.15rem 0 0;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: #444;
  }
  .print-stamp-footer {
    display: block !important;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
    break-inside: avoid;
  }
  .print-stamp-grid {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: space-between;
  }
  .print-hash code {
    font-size: 0.78rem;
    word-break: break-all;
  }
  .print-stamp-footer a {
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .print-qr-wrap { flex: 0 0 auto; }
  .print-qr-wrap svg, .print-qr {
    width: 144px;
    height: 144px;
    shape-rendering: crispEdges;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-report { display: block !important; }
}

@media (min-width: 1100px) {
  .sides-count-3 .side-card { padding: 1rem 1.05rem 1.2rem; }
  .sides-count-3 .side-card h2 { font-size: 1.22rem; }
  .sides-count-3 .side-case { font-size: 0.98rem; }
  .sides-count-3 .point-card { font-size: 0.94rem; }
  .sides-count-3 .claim-text { font-size: 0.96rem; }
}

.visibility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-3);
  font-family: var(--sans);
}
.visibility-label { color: var(--ink); font-size: 0.95rem; }

/* Argument map + detail panel (mm-* class names kept) */
.view-toggle { display: flex; gap: .5rem; margin: 0 0 1rem; flex-wrap: wrap; }
.summary-hero.compact h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.mm-toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.mm-hint { margin-left: .25rem; }
.mm-viewport {
  height: 70vh;
  min-height: 420px;
  border: 1px solid #d9d0c3;
  border-radius: 18px;
  overflow: hidden;
  background: #f4efe6;
  touch-action: none;
  position: relative;
  z-index: 2;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
}
/* While panning the map, kill page text selection outside the canvas too. */
body.mm-dragging {
  -webkit-user-select: none !important;
  user-select: none !important;
  cursor: grabbing;
}
/* Detail panel / forms stay selectable when not dragging. */
.drawer,
.drawer.detail-panel,
.mm-mobile-fallback {
  -webkit-user-select: text;
  user-select: text;
}
.summary-hero.compact { position: relative; z-index: 0; }

.mm-outline-toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; }
.mm-outline-toolbar .eyebrow { margin: 0 .5rem 0 0; }
.mm-ol-root { list-style: none; padding: 0; margin: .4rem 0 0; }
.mm-ol-item { margin: .35rem 0; }
.mm-ol-details > summary { list-style: none; cursor: pointer; display: flex; gap: .4rem; align-items: flex-start; }
.mm-ol-details > summary::-webkit-details-marker { display: none; }
.mm-ol-toggle {
  display: inline-flex; width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center;
  border: 1.5px solid #2f5d4a; border-radius: 999px; color: #2f5d4a; font-weight: 700; flex: 0 0 auto; margin-top: .1rem;
}
.mm-outline-badge {
  display: inline-block; margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px;
  background: #e7dfd2; color: #3d3830; font-size: .8rem;
}
.mm-ol-details ul { margin: .25rem 0 .25rem 1.1rem; padding: 0; list-style: none; }

.mm-svg {
  /* Intrinsic width/height from SVG attrs so font-size × CSS scale == on-screen px */
  width: auto;
  height: auto;
  max-width: none;
  display: block;
  cursor: grab;
  transform-origin: 0 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.mm-svg text,
.mm-svg tspan {
  -webkit-user-select: none;
  user-select: none;
}
.mm-svg:active { cursor: grabbing; }
.mm-node { cursor: pointer; }
.mm-node:focus { outline: none; }
.mm-node:focus rect:first-of-type { filter: drop-shadow(0 0 0 3px #2f5d4a88); stroke-width: 3.5; }
.mm-mobile-fallback { display: none; margin-top: 1rem; }
.mm-outline ul { margin: .35rem 0 .35rem 1rem; }
.mm-outline-side, .mm-outline-thread { margin: .6rem 0; }
.linkish-card {
  display: block; width: 100%; text-align: left; background: #fffdf8;
  border: 1px solid #ddd4c7; border-radius: 12px; padding: .75rem .9rem; cursor: pointer;
}
.pushback-form-wrap { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid #e5ddd1; }
.pushback-form-wrap label {
  display: block; margin: .55rem 0 .25rem; color: var(--muted); font-size: .92rem;
}
.drawer input[type="text"],
.drawer input[type="url"],
.drawer input[type="email"],
.drawer input:not([type]),
.drawer textarea,
.drawer select,
.pushback-form-wrap textarea,
.pushback-form-wrap input[type="url"],
.pushback-form-wrap input[type="file"],
#source-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: .25rem 0 .7rem;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.drawer textarea,
.pushback-form-wrap textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.drawer input[type="file"]:not(.file-picker input),
.pushback-form-wrap > form > input[type="file"] {
  /* legacy fallback; prefer .file-picker */
  padding: .55rem .65rem;
  background: var(--paper-3);
}
.drawer input:focus,
.drawer textarea:focus,
.pushback-form-wrap textarea:focus,
.pushback-form-wrap input:focus,
#source-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--forest) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--forest);
}
.pushback-card { background: #f7f2ea; border-radius: 12px; padding: .75rem .9rem; margin: .6rem 0; }
.pushback-node { margin: .55rem 0; padding-left: .6rem; border-left: 3px solid #2f5d4a; }

@media (max-width: 840px) {
  .mm-viewport { display: none; }
  .mm-toolbar .mm-hint { display: none; }
  .mm-mobile-fallback { display: block; }
  .drawer.detail-panel,
  .drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: min(82vh, 720px);
    max-height: 82vh;
    transform: translateY(110%);
    border-radius: 18px 18px 0 0;
  }
  .drawer.open { transform: translateY(0); }
}

@media (min-width: 841px) {
  .mm-mobile-fallback { display: none; }
}

/* Share settings + password gate + account list */
.share-settings { display: flex; flex-direction: column; gap: 0.65rem; margin: 1rem 0; padding: 0.9rem 1rem; background: #fffdf8; border: 1px solid #d7cec0; border-radius: 14px; }
.share-mode-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.share-password-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.share-password-row input { flex: 1 1 12rem; min-width: 10rem; }
.share-password-gate { max-width: 28rem; }
.share-unlock-form { display: grid; gap: 0.6rem; margin: 1.2rem 0; }
.grow-form-wrap { margin: 1rem 0; padding: 1rem; }
.grow-form-wrap form { display: grid; gap: 0.45rem; }
.my-breakdowns-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.7rem; }
.my-breakdown-row { display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; padding: 0.75rem 0.85rem; border: 1px solid #d7cec0; border-radius: 12px; background: #fffdf8; }
.my-breakdown-row .btn-row { flex-shrink: 0; }
.share-badge { font-size: 0.75rem; }
.share-badge-private { background: #ebe4d8; }
.share-badge-password { background: #e8d9c4; }
.share-badge-secret { background: #d9e2ef; }
.share-badge-public { background: #d7e8dc; }
.danger-text { color: #7a4330; }

/* Site form controls (share, grow, password gate, pushback, drawers) */
.site-form label:not(.file-picker):not(.skip),
.share-unlock-form label,
.grow-form-wrap label:not(.file-picker) {
  display: block;
  margin: 0.55rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: var(--sans);
}
.site-input,
.site-form input[type="text"],
.site-form input[type="url"],
.site-form input[type="email"],
.site-form input[type="password"],
.site-form input:not([type]),
.site-form textarea,
.share-unlock-form input[type="password"],
.share-password-row input,
.grow-form-wrap input[type="url"],
.grow-form-wrap textarea,
.pushback-form-wrap input[type="url"],
.pushback-form-wrap textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.25rem 0 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.site-form textarea,
.grow-form-wrap textarea,
.pushback-form-wrap textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.site-input:focus,
.site-form input:focus,
.site-form textarea:focus,
.share-unlock-form input:focus,
.share-password-row input:focus,
.grow-form-wrap input:focus,
.grow-form-wrap textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--forest) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--forest);
}
.file-picker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.85rem;
  cursor: pointer;
}
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-picker-btn {
  pointer-events: none;
}
.file-picker-label { margin: 0; }
.grow-entry { margin: 1rem 0; }
.grow-form-wrap { margin-top: 0.7rem; padding: 1rem 1.05rem; border: 1px solid #d7cec0; border-radius: 14px; background: #fffdf8; }
.grow-form-wrap form { display: grid; gap: 0.15rem; }
.grow-form-wrap .btn-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.35rem; }
.share-password-row input.site-input,
.share-password-row input {
  flex: 1 1 12rem;
  min-width: 10rem;
  margin: 0;
}
.share-unlock-form { display: grid; gap: 0.35rem; margin: 1.2rem 0; }
.mm-node-new { cursor: pointer; }

/* Map workspace: outline + main */
.mm-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.mm-workspace .mm-main { min-width: 0; }
.mm-toolbar { flex-wrap: wrap; }
.mm-workspace.index-collapsed { grid-template-columns: 1fr; }
.mm-workspace.index-collapsed .mm-index-pane { display: none; }
.mm-index-pane {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid #d9d0c3;
  border-radius: 16px;
  background: #fffdf8;
  padding: 0.7rem 0.7rem 0.9rem;
}
.mm-index,
.mm-index-link,
.mm-jump,
.mm-jump select {
  font-family: var(--sans);
}
.mm-index-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.mm-index-root,
.mm-index-list { list-style: none; margin: 0; padding: 0; }
.mm-index-topic { margin: 0 0 0.45rem; }
.mm-index-section {
  margin: 0.45rem 0 0.65rem;
  padding: 0.15rem 0 0.2rem 0.5rem;
  border-left: 4px solid var(--mm-side, #5a7a68);
  border-radius: 0 8px 8px 0;
}
.mm-index-section-head {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr) auto;
  gap: 0.3rem 0.35rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.mm-index-details > summary::-webkit-details-marker { display: none; }
.mm-index-disclosure {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--mm-side, #5a7a68);
  border-bottom: 1.5px solid var(--mm-side, #5a7a68);
  transform: rotate(-45deg);
  justify-self: center;
  transition: transform 0.15s ease;
}
.mm-index-details[open] > summary .mm-index-disclosure { transform: rotate(45deg); }
.mm-index-section-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
  width: 100%;
  padding: 0.05rem 0;
  color: var(--mm-side, var(--ink));
}
.mm-index-caption {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 650;
  line-height: 1.2;
  color: var(--mm-side, var(--muted));
}
.mm-index-section-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.mm-index-count {
  font-size: 0.7rem;
  font-weight: 650;
  color: #4A4F55;
  background: #efe8dc;
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  line-height: 1.2;
}
.mm-index-item { margin: 0.12rem 0; }
.mm-index-item.depth-2 { padding-left: 0.7rem; }
.mm-index-item.depth-3 { padding-left: 1.2rem; }
.mm-index-link {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  padding: 0.18rem 0.1rem;
  border-radius: 6px;
}
.mm-index-link:hover { color: var(--forest); background: color-mix(in srgb, var(--forest) 6%, transparent); }
.mm-index-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-type {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4A4F55;
}
.mm-type-new {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1e1a16;
  background: #e8a317;
  border-radius: 999px;
  padding: 0.05rem 0.32rem;
}
.mm-dot {
  display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 999px; flex: 0 0 auto;
}
.mm-dot-new { background: #e8a317; }
.mm-dot-push { background: #c45c26; }

.mm-jump-wrap { display: none; margin: 0 0 0.75rem; }
.mm-jump { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.mm-jump-label { font-size: 0.92rem; color: var(--muted); }
.mm-jump select {
  flex: 1 1 220px; min-width: 0; padding: 0.55rem 0.7rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font: inherit;
}

.mm-search input[type="search"] {
  min-width: 180px; max-width: 260px; padding: 0.45rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: inherit;
}
.mm-search-count { font-size: 0.85rem; color: var(--muted); min-width: 4.5rem; }
.mm-toolbar .btn.active, .mm-toolbar .btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--forest) 14%, #fff);
  border-color: var(--forest);
  color: var(--forest);
}
.mm-legend {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.15rem; margin: 0 0 0.7rem;
  font-family: var(--sans); font-size: 0.95rem; color: #1e1a16;
}
.mm-legend-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.mm-legend-swatch {
  width: 1.7rem; height: 1.7rem; border-radius: 7px; border: 1.75px solid;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mm-legend-label { font-weight: 600; }
.mm-legend-holds_up .mm-legend-swatch { background: #E3F4F1; border-color: #0A6F75; }
.mm-legend-disputed .mm-legend-swatch { background: #FCE8D4; border-color: #A84800; }
.mm-legend-unsupported .mm-legend-swatch { background: #F8E2E0; border-color: #A31B2A; }
.mm-legend-not_checked .mm-legend-swatch { background: #ECECEA; border-color: #4A4F55; }

.mm-status {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.01em; border-radius: 999px; padding: 0.12rem 0.5rem 0.12rem 0.28rem;
}
.mm-status-icon { display: block; flex: 0 0 auto; }
.mm-status-holds_up { color: #0A6F75; background: #E3F4F1; }
.mm-status-disputed { color: #A84800; background: #FCE8D4; }
.mm-status-unsupported { color: #A31B2A; background: #F8E2E0; }
.mm-status-not_checked { color: #4A4F55; background: #ECECEA; }

.mm-mobile-fallback .mm-index {
  margin-top: 0.35rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d9d0c3;
  border-radius: 16px;
  background: #fffdf8;
}

.mm-node.mm-dimmed { opacity: 0.22; }
.mm-node.mm-search-match .mm-card { filter: drop-shadow(0 0 0.35rem #2f5d4a55); }
.mm-node.mm-search-current .mm-card { stroke: #2f5d4a !important; stroke-width: 3px; }
.mm-focus-btn { cursor: pointer; }

@media (max-width: 999px) {
  .mm-workspace { grid-template-columns: 1fr; }
  .mm-index-pane { display: none; }
  .mm-jump-wrap { display: block; position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 0.35rem 0 0.55rem; }
}
@media (min-width: 1000px) {
  .mm-jump-wrap { display: none; }
}

.auth-agree {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.85rem 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
}
.auth-agree input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

/* Plain-words summary: side cards + disagreement band */
.plain-summary {
  margin: 0 0 1.5rem;
  padding: 0;
  background: none;
  border: 0;
}
.plain-summary-sides {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.plain-summary-side {
  --side-accent: var(--forest);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 6px solid var(--side-accent);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.plain-summary-side.tone-slate { --side-accent: #3d5a73; }
.plain-summary-side.tone-clay { --side-accent: #8a6350; }
.plain-summary-side.tone-moss { --side-accent: #3f6b57; }
.plain-summary-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--side-accent, var(--muted));
  margin: 0 0 0.35rem;
}
.plain-summary-disagreement .plain-summary-label { color: var(--muted); }
.plain-summary-name {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.28;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.plain-summary-text {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
  max-width: 75ch;
}
/* Mobile: no round vs — a thin divider between stacked cards. */
.plain-summary-vs {
  display: block;
  height: 0;
  width: 100%;
  margin: 0.05rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  font-size: 0;
  color: transparent;
  background: none;
}
@media (min-width: 840px) {
  .plain-summary-sides {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.2rem 0.75rem;
    align-items: stretch;
  }
  .plain-summary-count-1 .plain-summary-sides { grid-template-columns: minmax(0, 1fr); }
  .plain-summary-count-3 .plain-summary-sides {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
  .plain-summary-vs {
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    width: 2.15rem;
    height: 2.15rem;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    overflow: visible;
    box-shadow: 0 1px 0 rgba(30, 26, 22, 0.04);
  }
}
.plain-summary-disagreement {
  margin-top: 1.2rem;
  padding: 1.2rem 1.35rem 1.3rem;
  background: #f3eee3;
  border: 1px solid #e4d7c0;
  border-radius: 16px;
}
.plain-summary-disagreement .plain-summary-text {
  font-size: 1.32rem;
  line-height: 1.5;
}
.plain-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
}
.plain-summary-pill {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  background: #efe6d6;
  color: #5a534a;
  border: 1px solid #e0d3bc;
}
.plain-summary-pill.pill-facts { background: #e7eee8; color: #2f4a3c; border-color: #cfdcd3; }
.plain-summary-pill.pill-values { background: #ebe7f0; color: #43345a; border-color: #d8d0e2; }
.plain-summary-pill.pill-definitions { background: #e7eaf1; color: #32365b; border-color: #d0d5e2; }
@media (prefers-color-scheme: dark) {
  .plain-summary-disagreement {
    background: #2a2c24;
    border-color: #4a4e3c;
  }
  .plain-summary-pill { background: #3a403c; color: #ece7de; border-color: #4a524c; }
  .plain-summary-pill.pill-facts { background: #2a4036; color: #cfe6d8; border-color: #3a5348; }
  .plain-summary-pill.pill-values { background: #372f42; color: #e0d4f0; border-color: #4a4156; }
  .plain-summary-pill.pill-definitions { background: #2f3144; color: #d7daf0; border-color: #3f4258; }
}
.report-kinds {
  border: 0;
  margin: 0.4rem 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.report-kinds legend {
  font-family: var(--sans);
  font-weight: 650;
  margin-bottom: 0.35rem;
}
.report-kind {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--sans);
  margin: 0.1rem 0;
}
.report-kind input { margin-top: 0.2rem; }
#report-note { width: 100%; }
@media print {
  .limit-card, #limit-card { display: none !important; }
  .plain-summary { break-inside: avoid; }
  .plain-summary-side,
  .plain-summary-disagreement {
    box-shadow: none;
    background: #fff;
    border-color: #ccc;
  }
  .plain-summary-sides {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 0.9rem 0.6rem;
  }
  .plain-summary-count-1 .plain-summary-sides { grid-template-columns: 1fr !important; }
  .plain-summary-count-3 .plain-summary-sides {
    grid-template-columns: 1fr auto 1fr auto 1fr !important;
  }
  .plain-summary-vs {
    display: grid !important;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    color: #444;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 650;
    overflow: visible;
  }
  .donate, .donate-note { display: none !important; }
}

/* ------------------------------------------------------------------
   Large-screen breakdown layout (≥1400 / 1700 / 2200, cap ~2400).
   Laptop (≤1280) and mobile are unchanged; home/composer measure stays put.
   ------------------------------------------------------------------ */

/* Keep the dock out of the 2-column grid at every width. The drawer
   stays position:fixed (overlay) until the 1700px docked-column rules. */
#mm-dock {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
#mm-dock .drawer { pointer-events: auto; }

@media (min-width: 1400px) {
  body.session-page {
    --page-gutter: clamp(1rem, 1.4vw, 2rem);
    --outline-w: 300px;
    --site-header-h: 5.75rem;
  }
  body.session-page .site-header,
  body.session-page .site-footer,
  body.session-page .breakdown,
  body.session-page .breakdown:has(.sides-count-3),
  body.session-page .breakdown:has(.sides-count-4) {
    width: min(2400px, calc(100% - 2 * var(--page-gutter)));
  }

  .mm-workspace {
    grid-template-columns: var(--outline-w) minmax(0, 1fr);
  }

  /* Slight type scale on the breakdown only. */
  main.breakdown {
    font-size: clamp(1rem, 0.94rem + 0.18vw, 1.08rem);
  }
  main.breakdown .plain-summary-side .plain-summary-text {
    font-size: clamp(1.15rem, 1.08rem + 0.15vw, 1.25rem);
  }
  main.breakdown .plain-summary-disagreement .plain-summary-text {
    font-size: clamp(1.28rem, 1.15rem + 0.22vw, 1.42rem);
  }
  main.breakdown .plain-summary-name {
    font-size: clamp(1.15rem, 1.05rem + 0.2vw, 1.35rem);
  }
  main.breakdown .summary-hero.compact h1 {
    font-size: clamp(1.5rem, 1.15rem + 0.7vw, 2.25rem);
  }
  main.breakdown .side-card h2,
  main.breakdown .card-head h2,
  main.breakdown .drawer h2 {
    font-size: clamp(1.35rem, 1.15rem + 0.3vw, 1.6rem);
  }

  /* List / report columns: 3 cols for 3 sides, otherwise 2 wider cols.
     Cap text measure so lines stay readable (~75ch). */
  .sides-grid.sides-count-2 { grid-template-columns: 1fr 1fr; }
  .sides-grid.sides-count-3 { grid-template-columns: 1fr 1fr 1fr; }
  .sides-grid.sides-count-4 { grid-template-columns: 1fr 1fr; }
  main.breakdown .side-case,
  main.breakdown .side-block p,
  main.breakdown .claim-text,
  main.breakdown .point-card,
  main.breakdown .card-lede,
  main.breakdown .plain-list,
  main.breakdown .summary-line,
  main.breakdown .common-band p,
  main.breakdown .report-card p,
  main.breakdown .drawer section p,
  main.breakdown .drawer section .plain-list {
    max-width: 75ch;
  }
}

@media (min-width: 1700px) {
  body.session-page {
    --outline-w: 320px;
    --dock-w: clamp(360px, 22vw, 460px);
    --map-h: calc(100vh - var(--site-header-h) - 1.25rem);
    --page-gutter: clamp(1.25rem, 1.6vw, 2.25rem);
  }

  .mm-workspace {
    position: relative;
    grid-template-columns: var(--outline-w) minmax(0, 1fr);
    align-items: stretch;
  }
  .mm-workspace.index-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  .mm-viewport {
    height: var(--map-h);
    min-height: 520px;
  }
  .mm-index-pane {
    max-height: var(--map-h);
    height: var(--map-h);
    top: 0.5rem;
  }

  .mm-workspace:has(#drawer.open) {
    grid-template-columns: var(--outline-w) minmax(0, 1fr) var(--dock-w);
  }
  .mm-workspace.index-collapsed:has(#drawer.open) {
    grid-template-columns: minmax(0, 1fr) var(--dock-w);
  }
  .mm-workspace:has(#drawer.open) #mm-dock {
    position: relative;
    width: auto;
    height: var(--map-h);
    min-width: 0;
    overflow: auto;
    pointer-events: auto;
  }
  .mm-workspace:has(#drawer.open) #mm-dock .drawer,
  .mm-workspace:has(#drawer.open) #mm-dock .drawer.open {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    z-index: 3;
  }
  /* No dimming overlay when the panel is docked as a column.
     List view (drawer parked on the body) still uses the overlay. */
  body.session-page:has(#mm-dock #drawer.open) .drawer-backdrop.open {
    display: none;
  }

  /* Common-ground / disagreement lists can use two columns of space. */
  main.breakdown .common-band .plain-list,
  main.breakdown .disagreement-card .plain-list {
    columns: 2;
    column-gap: 2.5rem;
    max-width: none;
  }
  main.breakdown .common-band .plain-list li,
  main.breakdown .disagreement-card .plain-list li {
    max-width: 75ch;
    break-inside: avoid;
  }
}

@media (min-width: 2200px) {
  body.session-page {
    --page-gutter: clamp(1.5rem, 1.8vw, 2.5rem);
  }
}

@media print {
  #mm-dock, .drawer, .drawer-backdrop { display: none !important; }
}

/* Stamp check page */
.verify-page .verify-form { margin: 1rem 0 1.25rem; }
.verify-form-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.verify-form-row .site-input { flex: 1 1 16rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.verify-card {
  margin: 1.25rem 0 2rem;
  padding: 1.1rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-3);
}
.verify-status { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin: 0 0 0.6rem; }
.verify-status-ok { color: #1d5a3a; }
.verify-status-miss { color: #8a3b12; }
.verify-card .btn-row { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Left-out leftovers, collapsed by default, hidden in print and side-focus mode */
.left-out-wrap {
  margin: 1.25rem 0 0.4rem;
  padding: 0.65rem 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
  background: transparent;
}
.left-out-wrap summary { cursor: pointer; color: var(--muted, #5c564e); }
.left-out-list { margin: 0.5rem 0 0; padding-left: 1.15rem; display: grid; gap: 0.45rem; }
.left-out-text { margin-right: 0.35rem; }
body.map-focus-mode .left-out-wrap,
.map-focus-mode .left-out-wrap { display: none; }

.btn-spinner {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: fv-spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes fv-spin { to { transform: rotate(360deg); } }
.btn.is-busy {
  opacity: 1;
  cursor: wait;
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
#print-btn.is-busy {
  justify-content: flex-start;
}
.btn-busy-label { line-height: 1.25; }

.more-menu { position: relative; }
.more-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 14rem;
  background: var(--paper, #fffdf8);
  border: 1px solid var(--line, #d9d1c4);
  border-radius: 12px;
  box-shadow: 0 10px 28px #0000001a;
  padding: 0.35rem;
  z-index: 20;
  display: grid;
}
.more-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.more-item:hover, .more-item:focus-visible {
  background: var(--accent-soft, #efe8dc);
  outline: none;
}

.verify-drop-section { margin: 2rem 0 1rem; }
.verify-drop-section h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.verify-drop-zone {
  margin: 0.85rem 0;
  border: 2px dashed var(--line, #cfc6b8);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  min-height: 7rem;
  cursor: pointer;
  background: var(--paper, #fffdf8);
  display: grid;
  align-content: center;
  gap: 0.2rem;
  text-align: center;
}
.verify-drop-zone.over, .verify-drop-zone:focus-visible {
  border-color: var(--forest, #2f5d4a);
  background: #e7efe9;
  outline: none;
}
.pdf-feedback .receipt-download-buttons { margin-top: 0.85rem; }
.pdf-feedback .receipt-download { margin: 0; }
.pdf-feedback .receipt-download .kicker { display: none; }

.pdf-feedback {
  margin: 0.35rem 0 1.15rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 16px;
  border: 2px solid var(--forest, #2f5d4a);
  background: #e7efe9;
  color: #17382c;
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.45;
  box-shadow: 0 8px 24px #00000014;
}
.pdf-feedback-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.16rem;
}
.pdf-feedback p { margin: 0; }
.pdf-feedback .btn-row { margin-top: 0.85rem; }
.pdf-feedback.is-error {
  border-color: #b14a3c;
  background: #f8e4e1;
  color: #6a2420;
}
.receipt-download {
  margin: 0.15rem 0 1rem;
  display: grid;
  gap: 0.35rem;
  max-width: 42rem;
}
.receipt-download .kicker { margin: 0; }
.pdf-feedback .receipt-download { margin: 0.9rem 0 0; }

.pdf-feedback.is-ready, .pdf-feedback.is-reused {
  border-color: var(--forest, #2f5d4a);
  background: #e7efe9;
  color: #17382c;
}

@media (max-width: 420px) {
  #print-btn.is-busy { width: 100%; }
  .pdf-feedback { font-size: 1.02rem; padding: 0.95rem 1rem; }
  .session-actions { margin-bottom: 0.7rem; }
}

@media print {
  @page { margin-bottom: 16mm; }
  .print-running-footer {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.25rem 0 0.15rem;
    border-top: 1px solid #bbb;
    background: #fff;
    font-family: var(--sans);
    font-size: 0.72rem;
    color: #333;
    text-align: center;
  }
  .print-stamp-footer { padding-bottom: 1.4rem; }
  .left-out-wrap, .pdf-feedback, .verify-form { display: none !important; }
}

/* —— Live writing preview (home) —— */
.live-breakdown {
  margin: 0.5rem 0 2rem;
}
.live-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  color: var(--forest);
  font-size: 0.98rem;
  margin: 0 0 1rem;
}
.live-status[data-done="true"] { color: var(--muted); }
.live-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 0 rgba(47, 93, 74, 0.5);
  animation: live-pulse 1.6s ease-out infinite;
}
.live-status[data-done="true"] .live-dot { animation: none; background: var(--gold); }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 93, 74, 0.45); }
  70% { box-shadow: 0 0 0 0.55rem rgba(47, 93, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 93, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
.live-skel {
  display: block;
  height: 0.85em;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--paper-2) 0%, #f6f1e8 50%, var(--paper-2) 100%);
  background-size: 200% 100%;
  animation: live-skel 1.4s ease-in-out infinite;
  margin: 0.45rem 0;
}
.live-skel.w-80 { width: 80%; }
.live-skel.w-60 { width: 60%; }
.live-skel.w-40 { width: 40%; }
.live-skel.title { height: 1.6em; width: 70%; }
.live-skel.para { height: 4.2em; }
@media (prefers-reduced-motion: reduce) {
  .live-skel { animation: none; background: var(--paper-2); }
}
@keyframes live-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body.live-writing .hero .lede,
body.live-writing .hero .eyebrow,
body.live-writing .how,
body.live-writing #composer,
body.live-writing .hero > h1 {
  display: none;
}
body.live-writing .hero { padding-top: 0.4rem; }
@media (max-width: 640px) {
  .live-status { font-size: 0.95rem; }
}

/* —— Polished print / PDF —— */
@media print {
  :root {
    --print-accent: #1E6F66;
    --print-ink: #1E2A44;
    --print-muted: #5a534b;
    --print-rule: #cfc6b8;
    --print-common-bg: #eef3ef;
    --print-disagree-bg: #f6f0ea;
  }
  @page {
    margin: 18mm 17mm 22mm 17mm;
  }
  @page {
    @bottom-right {
      content: counter(page);
      font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
      font-size: 8pt;
      color: #555;
    }
  }
  body {
    background: #fff !important;
    color: var(--print-ink);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
    font-size: 10.5pt;
    line-height: 1.5;
    padding-bottom: 10mm;
  }
  h1, h2, h3, .print-cover-title, .print-proof-title {
    font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
    color: var(--print-ink);
    break-after: avoid;
    page-break-after: avoid;
  }
  p, li {
    orphans: 3;
    widows: 3;
  }
  a { color: inherit; text-decoration: none; }
  a.print-receipt-link {
    color: var(--print-accent);
    text-decoration: underline;
    text-underline-offset: 0.12em;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .site-header, .site-footer, .session-actions, .donate, .drawer, .drawer-backdrop, .modal, .more-menu,
  #stamp-btn, #share-btn, #report-btn, #print-btn, #demo-banner, #action-note, .no-print,
  .mm-toolbar, .mm-viewport, .mm-workspace, #view-body, #mm-dock, .mm-index, .mm-index-mobile,
  .mm-jump-wrap, .view-toggle, .view-toolbar, .visibility-bar, .grow-entry, .original-wrap, .share-settings,
  .claim-hint, .print-report .chip-tabs, #nav-print-btn, #header-print-btn,
  .plain-summary, .left-out-wrap, .pdf-feedback, .verify-form, .live-breakdown {
    display: none !important;
  }

  .print-only { display: block !important; }

  .print-cover, .print-masthead {
    display: block !important;
    position: relative;
    min-height: 88vh;
    margin: 0;
    padding: 8mm 0 10mm;
    border: 0;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
  }
  .print-cover-inner { max-width: 150mm; }
  .print-cover-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 22mm;
  }
  .print-cover-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .print-cover-brand strong {
    display: block;
    font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.15;
    color: var(--print-accent);
  }
  .print-cover-brand span {
    display: block;
    font-size: 0.78rem;
    color: var(--print-muted);
    letter-spacing: 0.02em;
  }
  .print-cover-date {
    margin: 0 0 6mm;
    font-size: 0.88rem;
    color: var(--print-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .print-cover-title {
    margin: 0 0 8mm;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 600;
  }
  .print-cover-summary {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 130mm;
    color: #2d2823;
  }
  .print-cover-seal {
    position: absolute;
    top: 4mm;
    right: 0;
    width: 38mm;
    text-align: center;
  }
  .print-seal-mark {
    border: 1.5pt solid var(--print-accent);
    border-radius: 4px;
    padding: 3.5mm 3mm 2.5mm;
    color: var(--print-accent);
  }
  .print-seal-mark svg, .print-seal-mark .print-qr {
    width: 108px;
    height: 108px;
    margin: 0 auto;
    display: block;
    shape-rendering: crispEdges;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-seal-label {
    margin: 2.5mm 0 0;
    font-size: 7.5pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  }

  .print-report {
    display: block !important;
  }
  .print-sides {
    display: grid;
    gap: 8mm 8mm;
    margin: 0 0 10mm;
    align-items: start;
  }
  .print-sides-count-1,
  .print-sides-count-3,
  .print-sides-count-4 { grid-template-columns: 1fr; }
  .print-sides-count-2 { grid-template-columns: 1fr 1fr; }
  .print-side {
    min-width: 0;
    padding: 5mm 0 2mm;
    border-top: 2.5pt solid var(--print-accent);
    break-inside: auto;
  }
  .print-side.tone-slate { border-top-color: #2c4a63; }
  .print-side.tone-clay { border-top-color: #7a4330; }
  .print-side.tone-moss { border-top-color: #3f6b57; }
  .print-side-label {
    margin: 0 0 1.5mm;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--print-muted);
  }
  .print-side h2 {
    margin: 0 0 3mm;
    font-size: 1.25rem;
    line-height: 1.25;
  }
  .print-side-case { margin: 0 0 4mm; }
  .print-side h3 {
    margin: 4mm 0 2mm;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
    color: var(--print-muted);
    font-weight: 650;
  }
  .print-plain-list {
    margin: 0;
    padding: 0 0 0 1.1em;
  }
  .print-plain-list li { margin: 0 0 1.5mm; }

  .print-claim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    break-inside: auto;
    margin: 0 0 2mm;
  }
  .print-claim-table th,
  .print-claim-table td {
    border-bottom: 0.6pt solid var(--print-rule);
    padding: 2.2mm 2mm 2.2mm 0;
    vertical-align: top;
    text-align: left;
  }
  .print-claim-table th {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--print-muted);
    font-weight: 650;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  }
  .print-claim-table tr { break-inside: avoid; page-break-inside: avoid; }
  .print-claim-text { width: 68%; }
  .print-claim-narrower {
    margin-top: 1mm;
    font-size: 0.84em;
    color: var(--print-muted);
  }
  .print-chip {
    display: inline-block;
    padding: 0.15em 0.5em;
    border: 0.7pt solid #666;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-chip-fact { border-color: #2c4a63; color: #2c4a63; }
  .print-chip-value { border-color: #4a4e72; color: #4a4e72; }
  .print-chip-definition { border-color: #4a4e72; color: #4a4e72; }
  .print-chip-disputed { border-color: #7a4330; color: #7a4330; }
  .print-chip-supported { border-color: var(--print-accent); color: var(--print-accent); }

  .print-tinted {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 6mm 6.5mm;
    margin: 0 0 7mm;
    border-radius: 2px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-tinted h2 {
    margin: 0 0 2mm;
    font-size: 1.2rem;
  }
  .print-tinted-kicker,
  .print-tinted h3 {
    margin: 0 0 2.5mm;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--print-muted);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  }
  .print-tinted h3 { margin: 3.5mm 0 1.5mm; }
  .print-common { background: var(--print-common-bg); }
  .print-disagreement { background: var(--print-disagree-bg); }
  .print-disagree-summary { margin: 0 0 2mm; }

  .print-thread { margin: 2mm 0 8mm; }
  .print-thread h2 {
    margin: 0 0 4mm;
    font-size: 1.2rem;
  }
  .print-thread-list {
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
  }
  .print-thread-list .print-thread-list {
    padding-left: 6mm;
    margin-top: 2mm;
    border-left: 0.8pt solid var(--print-rule);
  }
  .print-thread-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 3mm;
  }
  .print-thread-author {
    margin: 0;
    font-weight: 650;
    font-size: 0.86rem;
  }
  .print-thread-text { margin: 0.4mm 0 0; }

  .print-proof, .print-stamp-footer {
    display: block !important;
    break-before: page;
    page-break-before: always;
    margin: 0;
    padding: 8mm 0 6mm;
    border: 0;
    break-inside: avoid;
  }
  .print-proof-eyebrow, .print-proof .eyebrow {
    margin: 0 0 2mm;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--print-accent);
  }
  .print-proof-title {
    margin: 0 0 8mm;
    font-size: 1.7rem;
  }
  .print-stamp-grid {
    display: flex;
    gap: 10mm;
    align-items: flex-start;
    justify-content: space-between;
  }
  .print-proof-copy { min-width: 0; flex: 1 1 auto; }
  .print-check-code {
    margin: 0 0 3mm;
    font-size: 1.05rem;
  }
  .print-receipt-line { margin: 0 0 3mm; font-size: 1rem; }
  .print-proof-when { margin: 0 0 5mm; color: var(--print-muted); font-size: 0.9rem; }
  .print-how-to-check {
    margin: 0 0 7mm;
    padding: 4.5mm 5mm;
    background: var(--print-common-bg);
    border-radius: 2px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-how-to-check p { margin: 0 0 2mm; }
  .print-how-to-check p:last-child { margin-bottom: 0; }
  .print-hash code {
    display: block;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.55;
    letter-spacing: 0.02em;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    max-width: 100%;
  }
  .print-qr-wrap { flex: 0 0 auto; }
  .print-qr-wrap svg, .print-qr {
    width: 144px;
    height: 144px;
    shape-rendering: crispEdges;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-proof-unstamped { max-width: 140mm; }

  .print-running-footer {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 2mm 0.5mm;
    border-top: 0.6pt solid #bbb;
    background: #fff;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
    font-size: 8pt;
    color: #444;
    text-align: center;
  }
  .print-running-footer-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding: 1.2mm 8mm 0;
  }
  .print-stamp-footer { padding-bottom: 2mm; }
}

@media print and (max-width: 140mm) {
  .print-sides-count-2 { grid-template-columns: 1fr; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-icon {
  width: 28px;
  height: 28px;
  background: currentColor;
}
.nav-toggle-open {
  mask: url("/icons/list-bold.svg") center / contain no-repeat;
  -webkit-mask: url("/icons/list-bold.svg") center / contain no-repeat;
}
.nav-toggle-close {
  display: none;
  mask: url("/icons/x-bold.svg") center / contain no-repeat;
  -webkit-mask: url("/icons/x-bold.svg") center / contain no-repeat;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }
.nav {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% - 0.15rem);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  margin: 0;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.nav.is-open { display: flex; }
.nav a, .nav button.linkish {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
img[src^="/illustrations/"] {
  display: block;
  width: min(100%, 280px);
  height: auto;
  animation: aw-float 4.8s ease-in-out infinite;
}
@keyframes aw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (min-width: 641px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav a, .nav button.linkish {
    width: auto;
    padding: 0 0.55rem;
    font-size: 1rem;
  }
}
@media (max-width: 640px) {
  .nav .nav-label-full {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }
  .nav .nav-label-short { display: none; }
  .nav .user-chip { display: inline-flex; }
  .site-header:has(#account-link),
  .site-header:has(#admin-link) { flex-wrap: nowrap; }
  .site-header:has(#account-link) .nav,
  .site-header:has(#admin-link) .nav {
    flex: none;
    justify-content: flex-start;
    padding: 0.4rem;
  }
}
@media (max-width: 380px) {
  .wordmark, .brand strong { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  img[src^="/illustrations/"] { animation: none; }
  .btn { transition: none; }
  .map-ghost { animation: none; }
}

.map-drafting {
  margin-top: var(--space-4);
}
.map-drafting-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.map-ghost {
  display: block;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  animation: map-ghost-in 420ms both;
}
.map-ghost-claim { width: min(100%, 220px); background: var(--navy); }
.map-ghost-support { width: 140px; background: white; border-left: 4px solid var(--teal); }
.map-ghost-objection { width: 140px; background: white; border-left: 4px solid var(--coral); }
.map-ghost-support { animation-delay: 80ms; }
.map-ghost-objection { animation-delay: 160ms; }
@keyframes map-ghost-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.progress-slot { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.progress-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 0; background: var(--paper); color: var(--navy);
  border-radius: 999px; padding: 6px 12px; font-family: var(--font-display); font-weight: 800;
  min-height: 40px;
}
.progress-chip .flame { width: 16px; height: 16px; flex: none; display: block; }
@media (max-width: 399px) {
  .progress-level-name, .progress-sep { display: none; }
}
.progress-sheet {
  position: fixed; inset: 0; z-index: 40; background: rgba(30, 42, 68, 0.35);
  display: flex; align-items: flex-end; justify-content: center;
}
.progress-card {
  width: min(560px, 100%); background: var(--paper); border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto;
}
.progress-level-bar { height: 12px; border-radius: 999px; background: rgba(30, 42, 68, 0.12); overflow: hidden; }
.progress-level-bar span { display: block; height: 100%; background: var(--teal); transform-origin: left center; }
.streak-calendar { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 16px; }
.streak-day { width: 18px; height: 18px; border-radius: 6px; background: rgba(30, 42, 68, 0.12); }
.streak-day.is-on { background: var(--coral); }
.badge-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge-tile { background: white; border-radius: 16px; padding: 10px; }
.badge-tile.is-locked { filter: grayscale(1); opacity: 0.7; }
.badge-tile img { width: 48px; height: 48px; }
.confetti-canvas { position: fixed; inset: 0 auto auto 0; z-index: 50; pointer-events: none; }
.daily-hero { padding: 24px 0 8px; }
.daily-claim { font-family: var(--font-display); font-size: 1.6rem; }
.daily-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; margin: 16px 0; }
.daily-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.daily-bar { display: block; width: 100%; height: 120px; background: var(--teal); border-radius: 10px 10px 4px 4px; transform-origin: bottom; }
.daily-bar.is-yours { background: var(--amber); }
.progress-bar { height: 12px; border-radius: 999px; background: rgba(30, 42, 68, 0.12); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--teal); }
.streak-cal { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 16px; }
.streak-cal span { width: 18px; height: 18px; border-radius: 6px; background: rgba(30, 42, 68, 0.12); }
.streak-cal span.on { background: var(--coral); }
.badge-item { background: white; border-radius: 16px; padding: 10px; }
.badge-item.locked { filter: grayscale(1); opacity: 0.72; }
.badge-item img { width: 48px; height: 48px; }
.daily-waiting { background: white; border-radius: 16px; padding: 12px; }
@media (prefers-reduced-motion: reduce) {
  .confetti-canvas { display: none; }
  .daily-bar, .progress-level-bar span { transition: none; }
}

.pwa-install,
.pwa-toast {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: 16px;
}
.pwa-install h2,
.pwa-toast p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.pwa-install p { margin: 0 0 12px; }
.pwa-toast p { margin: 0; font-size: 1rem; }
.pwa-toast .btn { margin-left: 4px; }
.map-page .pwa-install,
.map-page .pwa-toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) {
  .pwa-install,
  .pwa-toast {
    left: auto;
    right: 16px;
    width: min(360px, calc(100vw - 32px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .pwa-install,
  .pwa-toast { animation: none; transition: none; }
}

.xai-zdr-off { color: var(--ds-color-danger, #9f1239); font-weight: 700; }
