@font-face {
  font-family: 'Bricolage';
  src: url('/bricolage.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/body.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #fff6e9;
  --panel: #fffcf5;
  --surface: #f8ead7;
  --paper: #fff8e5;
  --ink: #1b2942;
  --muted: #4f5665;
  --border: #24324a;
  --line: #c4b6a1;
  --link: #00635c;
  --focus: #005db4;
  --accent: #ffd15c;
  --coral: #ff7977;
  --teal: #3cc8b3;
  --chip: #e1f2df;
  --chip-ink: #164d45;
  --pink: var(--link);
  --gold: #785006;
  --mint: var(--link);
  --shadow: #26364b;
  --hover: #f8e8cb;
  --display: 'Bricolage', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --scene: url('/chapter-1.svg');
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #19263a;
  --panel: #223248;
  --surface: #2a3d52;
  --paper: #24374a;
  --ink: #fff6de;
  --muted: #d2d9db;
  --border: #96b4be;
  --line: #597185;
  --link: #91ead6;
  --focus: #ffd261;
  --accent: #ffd15c;
  --coral: #ff9492;
  --chip: #264e50;
  --chip-ink: #c1f2df;
  --gold: #ffdc81;
  --shadow: #071321;
  --hover: #31465b;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    color-scheme: dark;
    --bg: #19263a;
    --panel: #223248;
    --surface: #2a3d52;
    --paper: #24374a;
    --ink: #fff6de;
    --muted: #d2d9db;
    --border: #96b4be;
    --line: #597185;
    --link: #91ead6;
    --focus: #ffd261;
    --accent: #ffd15c;
    --coral: #ff9492;
    --chip: #264e50;
    --chip-ink: #c1f2df;
    --gold: #ffdc81;
    --shadow: #071321;
    --hover: #31465b;
  }
}
[data-chapter='1'] {
  --scene: url('/chapter-1.svg');
  --chapter-color: #f8a56e;
}
[data-chapter='2'] {
  --scene: url('/chapter-2.svg');
  --chapter-color: #f68789;
}
[data-chapter='3'] {
  --scene: url('/chapter-3.svg');
  --chapter-color: #efa5ba;
}
[data-chapter='4'] {
  --scene: url('/chapter-4.svg');
  --chapter-color: #74ccda;
}
[data-chapter='5'] {
  --scene: url('/chapter-5.svg');
  --chapter-color: #e7a8b6;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-padding: 20px;
  scrollbar-color: var(--line) var(--bg);
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.wordmark,
.big,
.stat strong {
  font-family: var(--display);
  font-weight: 800;
}
h1,
h2,
h3 {
  line-height: 1.06;
}
h1 {
  font-size: clamp(2.65rem, 5vw, 4.75rem);
  letter-spacing: -0.065em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  letter-spacing: -0.05em;
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
p,
.muted,
.subtext,
.smalltext,
small {
  color: var(--muted);
}
.smalltext,
.subtext {
  font-size: 1rem;
}
small {
  font-size: 1rem;
}
a,
.textbtn {
  color: var(--link);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.secondary:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button svg,
summary svg {
  flex: none;
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 30;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 8px;
}
.skip:focus {
  top: 8px;
}
.screen,
.content {
  width: 100%;
  min-width: 0;
}
.topbar,
.audit-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - 1256px) / 2));
  background: var(--panel);
  border-bottom: 2px solid var(--border);
}
.mastbrand,
.mobile-brand,
.mast,
.audit-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.mastbrand,
.wordmark,
.audit-wordmark {
  font: 800 1.7rem/1 var(--display);
  letter-spacing: -0.065em;
}
.mastbrand img,
.monogram {
  width: 41px;
  height: 41px;
  flex: none;
}
.brandlabel,
.caption,
.tag,
.eyebrow,
.navtitle,
.art-caption {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow,
.caption,
.tag,
.navtitle {
  color: var(--muted);
}
.desktop-nav,
.toptools,
.inline,
.actions,
.chips,
.sectionhead,
.panelhead,
.home-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toptools,
.inline,
.actions,
.chips {
  flex-wrap: wrap;
}
.desktop-nav {
  gap: 4px;
}
.desktop-nav button,
.navbutton {
  min-height: 48px;
  padding: 8px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  border-radius: 14px;
}
.desktop-nav .active,
.navbutton.active {
  background: var(--chip);
  color: var(--chip-ink);
}
.toptools .quiet {
  font-weight: 700;
}
button:hover:not(:disabled),
a.primary:hover,
.navbutton:hover {
  filter: brightness(0.98);
}
.crumb,
.rail,
.mobile-nav {
  display: none;
}
main {
  width: min(100%, 1304px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) clamp(20px, 4vw, 54px) 32px;
  min-width: 0;
}
main:focus {
  outline: none;
}
.pagelead,
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.pagelead h1 {
  margin-top: 4px;
}
.pagelead .eyebrow,
.home-heading .eyebrow {
  color: var(--link);
}
.panel,
.listpage,
.verdict-card,
.onboarding .onboarding-intro,
.audit-panel {
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
}
.panel,
.listpage {
  padding: clamp(18px, 3vw, 30px);
  min-width: 0;
}
.listpage {
  margin-top: 18px;
}
.deck {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 18px;
}
.sectionhead,
.panelhead {
  justify-content: space-between;
}
.sectionhead h2,
.panelhead h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sectionhead h2 svg,
.panelhead h2 svg,
.rowicon {
  color: var(--link);
  flex: none;
}
.tag,
.caption,
.pill,
.evidence-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.primary,
.secondary,
.danger,
.smallbtn,
.iconbtn,
.quiet,
.pill,
.textbtn,
.focus-switch,
.checklabel,
details > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}
.primary,
.secondary,
.danger,
.smallbtn,
.iconbtn,
.quiet,
.focus-switch {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  padding: 10px 16px;
  line-height: 1.32;
}
.primary,
.danger {
  border: 2px solid #1b2942;
  color: #17243b;
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--shadow);
}
.primary:hover {
  background: #ffdc82;
}
.primary:active,
.secondary:active,
.moment-tile:active,
.chapter-tile:active {
  transform: translate(1px, 2px);
}
.secondary,
.smallbtn,
.iconbtn,
.quiet,
.focus-switch {
  color: var(--ink);
  background: var(--panel);
}
.secondary:hover,
.smallbtn:hover,
.quiet:hover,
.navbutton:hover,
.rowbutton:hover,
details > summary:hover {
  background: var(--hover);
}
.iconbtn {
  width: 48px;
  padding: 0;
  border-radius: 50%;
}
.danger {
  background: #ff9c91;
}
.pill,
.badge,
.evidence-badge {
  border: 1.5px solid var(--border);
  background: var(--chip);
  color: var(--chip-ink);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 700;
  padding: 5px 10px;
}
button.pill {
  padding: 8px 12px;
}
.badge,
.evidence-badge {
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: 0;
}
a.evidence-badge,
button.evidence-badge {
  min-height: 48px;
}
.evidence-badge[data-grade*='estimate' i],
.pill.warn {
  background: #ffdf98;
  color: #483b27;
}
.evidence-badge[data-grade*='unknown' i] {
  background: #ecdfef;
  color: #483954;
}
.textbtn,
.footnote button {
  justify-content: flex-start;
  text-align: left;
  padding: 8px 3px;
  font-size: 1rem;
  text-decoration: underline;
}
.actions {
  margin-top: 20px;
  gap: 12px;
}
.focus-switch {
  color: var(--ink);
}
.toggle {
  width: 31px;
  height: 18px;
  border-radius: 30px;
  padding: 3px;
  background: var(--muted);
  display: flex;
}
.toggle::after {
  content: '';
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}
.toggle.on {
  background: #117e70;
  justify-content: flex-end;
}
.rowbutton,
.info-row,
.textrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  line-height: 1.5;
}
.rowbutton:last-child,
.info-row:last-child,
.textrow:last-child {
  border-bottom: 0;
}
.rowbutton span:first-of-type,
.info-row span:first-of-type {
  flex: 1;
  min-width: 0;
}
.rowbutton b,
.rowbutton small,
.info-row b,
.info-row small {
  display: block;
}
.rowbutton small,
.info-row small {
  margin-top: 3px;
}
.rowbutton > svg:last-child {
  color: var(--link);
  flex: none;
}
.keyline,
.filter {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 16px;
}
.snapshot .gauge {
  height: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin: 13px 0;
}
.gauge i {
  display: block;
  height: 100%;
  background: var(--link);
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}
.stat strong {
  font-size: 2.8rem;
  line-height: 1;
}
.stat span,
.textrow span {
  color: var(--muted);
}
.notice,
.result,
.empty {
  padding: 14px;
  border-radius: 12px;
}
.notice {
  background: #ffdfa2;
  color: #423422;
  border: 1.5px solid #8c6940;
}
.result,
.empty {
  background: var(--surface);
}
.result {
  border-left: 4px solid var(--link);
  margin-top: 16px;
}
.result p {
  white-space: pre-line;
}
.empty p {
  margin: 6px 0;
}
.textrow,
.pager {
  justify-content: space-between;
}
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.strong {
  font-weight: 700;
  color: var(--ink);
}
.form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.field,
.form label {
  display: grid;
  gap: 6px;
  font-size: 1rem;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input[type='checkbox'],
input[type='radio'] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex: none;
  accent-color: var(--link);
  padding: 0;
}
.checklabel {
  display: flex !important;
  justify-content: flex-start;
}
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form textarea {
  min-height: 100px;
  resize: vertical;
}
.form .actions {
  margin-top: 0;
}
.wide {
  max-width: 820px;
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 20px;
  width: calc(100% - 32px);
  max-width: 570px;
  max-height: 88dvh;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 5px 6px 0 var(--shadow);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #1420379c;
}
.d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.d-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
dialog p {
  font-size: 1rem;
}
#toast {
  position: fixed;
  z-index: 15;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(540px, 92%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  box-shadow: 2px 2px 0 var(--shadow);
  pointer-events: none;
}
#toast:empty {
  display: none;
}
.toast-undo {
  pointer-events: auto;
  min-height: 48px;
  color: inherit;
  text-decoration: underline;
}
.break {
  overflow-wrap: anywhere;
}
.footnote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 1rem;
  padding: 18px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.footnote button {
  color: var(--link);
  min-height: 48px;
  font-size: 1rem;
}
.askbox {
  margin-top: 15px;
}
.grow {
  flex: 1;
}
details > summary {
  cursor: pointer;
  justify-content: flex-start;
  color: var(--link);
  font-weight: bold;
}
.sr-input,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* A single illustrated postcard holds the verdict and its primary action. */
.next-home,
.onboarding {
  --rail-width: 38%;
  max-width: 1196px;
  margin: auto;
}
.next-home .home-heading {
  align-items: center;
  margin-bottom: 18px;
}
.home-heading h1,
.home-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}
.home-heading p,
.home-heading .caption {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: none;
}
.verdict-card,
.onboarding-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.94fr);
  overflow: hidden;
  box-shadow: 5px 6px 0 var(--shadow);
}
.verdict-main,
.onboarding-intro > :first-child:not(.onboard-art) {
  padding: clamp(22px, 3.2vw, 45px);
  min-width: 0;
}
.verdict-main h1,
.verdict-main h2,
.onboarding-intro h1 {
  font-size: clamp(2.75rem, 4.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 15px 0 13px;
  max-width: 15ch;
}
.verdict-main p,
.onboarding-intro p {
  line-height: 1.5;
  max-width: 60ch;
}
.verdict-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  color: #463019;
  background: #ffdb86;
  border: 1.5px solid #49371d;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.015em;
}
[data-tone='red'] .verdict-status {
  background: #ffb4a7;
  color: #602421;
  border-color: #723c36;
}
[data-tone='green'] .verdict-status {
  background: #adedd1;
  color: #164a40;
  border-color: #176354;
}
.verdict-summary {
  color: var(--ink);
}
.verdict-main .primary {
  margin: 9px 0 0;
}
.verdict-art,
.onboard-art,
.tile-art,
.audit-art {
  background-color: var(--chapter-color, #f8a56e);
  background-image: var(--scene);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.verdict-art,
.onboard-art {
  position: relative;
  min-height: 230px;
  align-self: stretch;
  border-left: 2px solid var(--border);
  overflow: hidden;
}
.verdict-art::after,
.onboard-art::after {
  content: '';
  position: absolute;
  inset: auto -22px 0;
  height: 19px;
  pointer-events: none;
  background: repeating-radial-gradient(
    ellipse at 50% 0%,
    transparent 0 19px,
    #fff3bb83 20px 21px,
    transparent 22px 39px
  );
  opacity: 0.48;
}
.art-caption {
  position: absolute;
  bottom: 14px;
  left: 15px;
  padding: 5px 9px;
  color: #192d42;
  background: #fff3d6;
  border: 1.5px solid #213447;
  border-radius: 5px;
  box-shadow: 2px 2px 0 #203744;
  transform: rotate(-2deg);
}
.verdict-checks {
  display: grid;
  gap: 0;
  margin: 12px 0 13px;
  padding: 0;
  list-style: none;
}
.verdict-checks > li,
.verdict-checks > label,
.verdict-checks > div {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.verdict-checks label,
.verdict-checks > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
}
.verdict-checks input {
  margin: 3px 0 0;
}
.verdict-checks p {
  font-size: 1rem;
}
.verdict-checks .evidence-badge {
  margin: 3px 0;
}
.verdict-main details,
.onboarding details {
  margin-top: 10px;
}
.quick-reports {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 22px;
}
.quick-reports button,
.moment-tile,
.choice-tile,
.chapter-tile {
  min-width: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 13px 16px;
  background: var(--panel);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  line-height: 1.3;
  font-weight: 700;
  box-shadow: 2px 3px 0 var(--shadow);
}
.quick-reports button:hover,
.choice-tile:hover,
.chapter-tile:hover {
  background: var(--hover);
}
.moment-tile > svg,
.quick-reports button > svg {
  color: var(--link);
}
.onboarding-intro {
  min-height: 215px;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  background: var(--panel);
}
.onboarding-intro .eyebrow {
  color: var(--link);
}
.onboarding-intro h1 {
  max-width: 13ch;
}
.onboarding-intro + h2,
.onboarding > h2,
.quick-heading,
.next-home > h2,
.next-home > h3 {
  margin: 28px 0 9px;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  letter-spacing: -0.04em;
}
.onboarding .setup-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
}
.chapter-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.chapter-tile {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 16px;
  font: 800 clamp(1rem, 1.25vw, 1.2rem)/1.25 var(--display);
}
.chapter-tile .tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 2.28/1;
  border-bottom: 1.5px solid var(--border);
}
.chapter-tile > span:not(.tile-art),
.chapter-tile > strong,
.chapter-tile > b {
  padding: 10px 12px;
}
.choice-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.choice-grid .choice-tile {
  min-height: 60px;
}
@keyframes postcard-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes wave-drift {
  from {
    transform: translateX(-12px);
  }
  to {
    transform: translateX(12px);
  }
}
@keyframes sticker-pop {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.12) rotate(-3deg);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes stop-glow {
  0%,
  100% {
    opacity: 0;
  }
  55% {
    opacity: 0.24;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .verdict-card,
  .onboarding-intro {
    animation: postcard-enter 0.23s ease-out both;
  }
  .verdict-art::after,
  .onboard-art::after {
    animation: wave-drift 7s ease-in-out infinite alternate;
  }
  .verdict-card[data-tone='red']::after {
    content: '';
    position: absolute;
    pointer-events: none;
    inset: 0;
    z-index: -1;
    border: 5px solid #ed6a5f;
    border-radius: 18px;
    opacity: 0;
    animation: stop-glow 0.85s ease-out 2;
  }
  .verdict-checks input:checked,
  .checklabel input:checked {
    animation: sticker-pop 0.25s ease-out;
  }
  button,
  .chapter-tile .tile-art {
    transition: transform 0.16s ease;
  }
  .chapter-tile:hover .tile-art {
    transform: scale(1.025);
  }
}
@media (max-width: 860px) {
  .topbar,
  .audit-mast {
    padding: 10px 22px;
  }
  .topbar .desktop-nav {
    gap: 0;
  }
  .desktop-nav button {
    padding: 8px 9px;
  }
  .quick-reports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chapter-tiles {
    gap: 8px;
  }
  .verdict-main,
  .onboarding-intro > :first-child:not(.onboard-art) {
    padding: 23px;
  }
  .deck {
    grid-template-columns: minmax(0, 1.35fr) minmax(200px, 1fr);
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .desktop-nav,
  .toptools .slotname {
    display: none;
  }
  .topbar,
  .audit-mast {
    min-height: 62px;
    padding: 7px 17px;
    gap: 8px;
  }
  .mastbrand,
  .wordmark,
  .audit-wordmark {
    font-size: 1.4rem;
  }
  .mastbrand img,
  .monogram,
  .audit-wordmark img {
    width: 34px;
    height: 34px;
  }
  .toptools {
    gap: 6px;
  }
  .toptools .quiet {
    padding: 0;
    width: 48px;
  }
  .toptools .pill {
    padding: 7px 10px;
  }
  main {
    padding: 21px 17px 96px;
  }
  .pagelead {
    align-items: center;
    margin-bottom: 15px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 4px 9px max(4px, env(safe-area-inset-bottom));
    color: var(--ink);
    background: var(--panel);
    border-top: 2px solid var(--border);
  }
  .mobile-nav button {
    min-width: 0;
    flex: 1;
    min-height: 50px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 3px 8px;
    font-weight: 700;
    font-size: 0.76rem;
  }
  .mobile-nav button.active {
    background: var(--chip);
    color: var(--chip-ink);
  }
  .deck {
    grid-template-columns: 1fr;
  }
  .verdict-card,
  .onboarding-intro {
    grid-template-columns: minmax(0, 1fr);
    box-shadow: 3px 4px 0 var(--shadow);
  }
  .verdict-art,
  .onboard-art {
    border-left: 0;
    border-bottom: 2px solid var(--border);
    grid-row: 1;
    min-height: 0;
    height: clamp(90px, 29vw, 145px);
    background-position: 50% 51%;
  }
  .art-caption {
    bottom: 8px;
    left: 11px;
    font-size: 0.66rem;
    padding: 2px 7px;
  }
  .verdict-main,
  .onboarding-intro > :first-child:not(.onboard-art) {
    padding: 17px 18px 19px;
  }
  .verdict-main h1,
  .verdict-main h2,
  .onboarding-intro h1 {
    font-size: clamp(2rem, 8.5vw, 3.15rem);
    line-height: 1.03;
    margin: 8px 0;
    max-width: 100%;
  }
  .verdict-main .actions {
    margin-top: 10px;
  }
  .verdict-checks {
    margin: 8px 0;
  }
  .verdict-main .primary {
    width: 100%;
    margin-top: 5px;
  }
  .verdict-card:has(.verdict-checks li:nth-child(3)) .verdict-art {
    height: 65px;
  }
  .quick-reports {
    gap: 9px;
  }
  .quick-reports button,
  .moment-tile {
    padding: 9px 11px;
    font-size: 1rem;
  }
  .onboarding-intro {
    min-height: 0;
  }
  .onboarding-intro + h2,
  .onboarding > h2,
  .next-home > h2,
  .next-home > h3 {
    margin-top: 24px;
  }
  .chapter-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .chapter-tile {
    font-size: 1rem;
  }
  .chapter-tile > span:not(.tile-art),
  .chapter-tile > b,
  .chapter-tile > strong {
    padding: 8px;
  }
  .chapter-tile .tile-art {
    aspect-ratio: 1.86/1;
  }
  .home-heading {
    gap: 10px;
    align-items: center !important;
  }
  .home-heading h1,
  .home-heading h2 {
    font-size: 1.7rem;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .badge {
    font-size: 0.72rem;
  }
  .panel,
  .listpage {
    padding: 17px;
  }
  .rowbutton .badge {
    max-width: 32%;
  }
  .footnote {
    display: block;
    margin-top: 24px;
  }
  .footnote button {
    display: flex;
  }
  #toast {
    bottom: 82px;
  }
}
@media (max-width: 360px) {
  main {
    padding-right: 13px;
    padding-left: 13px;
  }
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .toptools button.pill {
    font-size: 0.75rem;
  }
  .chapter-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root[data-motion='reduced'] *,
:root[data-motion='reduced'] *::before,
:root[data-motion='reduced'] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.mastbrand {
  min-height: 48px;
  padding: 0;
}
.onboard-copy {
  align-self: center;
}
.onboard-copy .setup-step {
  color: var(--link);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  gap: 9px;
  align-items: center;
}
.onboard-copy .setup-step::before {
  content: '';
  width: 24px;
  height: 5px;
  border-radius: 4px;
  background: var(--coral);
}
.tile-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.tile-label svg {
  flex: none;
  color: var(--link);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.menu-grid .secondary {
  justify-content: flex-start;
}
.verdict-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.verdict-checks {
  width: 100%;
}
.verdict-checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.verdict-checks li label {
  flex: 1;
  align-items: center;
}
.verdict-checks li label b,
.verdict-checks li label small {
  display: block;
  line-height: 1.5;
}
.verdict-checks li label small {
  font-size: 1rem;
}
.verdict-main button.evidence-badge {
  display: inline-flex;
  vertical-align: middle;
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  padding: 0 9px;
  line-height: 1.2;
  box-shadow: none;
}
.verdict-main button.evidence-badge::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 9px 0;
  border-radius: 10px;
  border: 1px solid currentColor;
  background: #d6eee2;
}
.verdict-main button.evidence-badge {
  color: #184d42;
}
.verdict-main button.evidence-badge[data-grade='estimate']::before {
  background: #ffdf98;
}
.verdict-main button.evidence-badge[data-grade='estimate'] {
  color: #49361b;
}
.verdict-main button.evidence-badge[data-grade='unknown']::before {
  background: #eadff0;
}
.verdict-main button.evidence-badge[data-grade='unknown'] {
  color: #45334e;
}
.report-section {
  margin-top: 30px;
}
.report-section h2,
.verdict-details > summary {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  letter-spacing: -0.04em;
}
.verdict-details {
  border-top: 1.5px solid var(--line);
  padding-top: 10px;
}
.verdict-details > summary {
  min-height: 52px;
  color: var(--ink);
}
.verdict-details > summary::after {
  content: '+';
  margin-left: 8px;
  color: var(--link);
  font-size: 1.5rem;
}
.verdict-details[open] > summary::after {
  content: '−';
}
.verdict-notes {
  padding-left: 20px;
}
.verdict-notes li {
  color: var(--muted);
  font-size: 1rem;
}
.move-notice {
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  background: #ffe6a1;
  color: #1b2942;
}
.move-notice p,
.move-notice a,
.move-notice button {
  color: #24324a;
}
@media (max-width: 700px) {
  .report-section {
    margin-top: 24px;
  }
  .tile-label {
    justify-content: center;
    white-space: nowrap;
  }
  .tile-label svg {
    display: none;
  }
  .verdict-checks {
    margin: 12px 0 0;
  }
  .verdict-checks li {
    align-items: flex-start;
    gap: 4px;
  }
  .verdict-main button.evidence-badge {
    font-size: 0.72rem;
  }
}
.key-find-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  align-items: start;
  gap: 20px;
  margin: 20px 0 30px;
}
.key-find {
  min-width: 0;
  border-top: 5px solid var(--chapter-color, var(--teal));
  padding: clamp(16px, 2vw, 24px);
}
.key-find h2 {
  margin: 13px 0 4px;
  font-size: clamp(1.4rem, 2.25vw, 2rem);
}
.find-top,
.find-grade {
  display: flex;
  align-items: center;
  gap: 7px;
}
.find-top {
  justify-content: space-between;
  color: var(--muted);
  font-weight: 700;
}
.find-grade {
  padding: 3px 9px;
  border: 1.5px solid currentColor;
  border-radius: 9px;
  background: #d6eee2;
  color: #184d42;
  font-size: 0.875rem;
}
.find-grade[data-grade='reported'],
.find-grade[data-grade='estimate'] {
  background: #ffdf98;
  color: #49361b;
}
.find-frequency {
  color: var(--link);
  font-weight: 700;
}
.key-find dl {
  margin: 13px 0;
}
.key-find dl > div {
  display: grid;
  grid-template-columns: minmax(4.5em, 25%) minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 6px 0;
}
.key-find dt {
  font-weight: 700;
}
.key-find dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.find-citations {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.find-citations summary,
.find-citations a {
  min-height: 48px;
  align-content: center;
}
.find-citations summary {
  padding-block: 10px;
  color: var(--link);
}
.find-citations ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.find-citations a {
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}

/* Chapter checklists share the first card. The quick action stays above its longer lists. */
[data-guide-lead] h1 {
  max-width: 21ch;
}
[data-guide-lead] .evidence-badge {
  margin: 0 0 4px;
}
.guide-windows {
  grid-column: 1 / -1;
  padding: 6px clamp(18px, 3vw, 40px) 22px;
  border-top: 2px solid var(--border);
  background: var(--paper);
}
.guide-window h2,
.guide-upgrades h2 {
  margin: 20px 0 12px;
  font: 800 clamp(1.35rem, 2.6vw, 2rem)/1.15 var(--display);
  color: var(--ink);
}
.guide-items,
.guide-upgrades > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
  gap: 10px 20px;
}
.guide-items > li {
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}
.guide-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}
.guide-row-title strong {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.25;
}
.guide-items p,
.guide-upgrades p {
  margin: 5px 0;
}
.guide-items small,
.guide-recovery,
.upgrade-meta {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.guide-upgrades {
  margin: 24px 0;
}
.guide-upgrades > ul > li {
  border: 1.5px solid var(--border);
  background: var(--paper);
  padding: 14px 18px 8px;
  border-radius: 16px;
}
.guide-cash {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  [data-guide-lead] h1 {
    font-size: clamp(1.95rem, 7.5vw, 2.6rem);
  }
  .guide-windows {
    padding-bottom: 14px;
  }
}
.verdict-main [data-guide-context] {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--muted);
}
.verdict-main .textbtn[href='#quick-reports'] {
  margin-inline-start: 8px;
}
