:root {
  --red: #e44232;
  --red-dark: #b52b24;
  --ink: #14110f;
  --cream: #fff8e8;
  --paper: #f7efd9;
  --blue: #1d5dff;
  --mint: #1ec996;
  --yellow: #ffd84d;
  --orange: #ff9e36;
  --danger: #f2304c;
  --shadow: 8px 8px 0 var(--ink);
  --small-shadow: 4px 4px 0 var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--red);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#input,
#dashboard,
#analysis-output,
#family-message,
#limits,
#project-story,
#dashboard-anatomy,
#impact,
#why-ai,
#risk-model,
#safety-promise,
#handoff-preview {
  scroll-margin-top: 132px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 248, 232, 0.18) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 24%, rgba(20, 17, 15, 0.18) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 82%, rgba(255, 248, 232, 0.2) 0 5px, transparent 6px),
    var(--red);
}

button,
input,
select,
input[type="text"],
textarea {
  font: inherit;
}

.custom-language-row {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 220px);
  gap: 12px;
  align-items: center;
  margin: -8px 0 18px;
  font-weight: 1000;
}

.custom-language-row input {
  min-height: 48px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
}

button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid #0057d9;
  outline-offset: 4px;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.top-bar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  padding: 14px 28px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--red);
  box-shadow: var(--small-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 28px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
}

.brand-word,
.sticker-title,
.panel-heading h2,
.dashboard-empty h2,
.result-header h2 {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: 0;
}

.brand-word {
  color: var(--cream);
  font-size: clamp(1.6rem, 4vw, 3.3rem);
  text-transform: uppercase;
  text-shadow:
    2px 0 var(--ink),
    -2px 0 var(--ink),
    0 2px var(--ink),
    0 -2px var(--ink),
    4px 4px 0 var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions a,
.primary-button,
.copy-button,
.sample-button,
.photo-picker,
.photo-tray-link,
.photo-demo,
.photo-read,
.photo-clear,
.export-button {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--small-shadow);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.top-actions a {
  padding: 10px 14px;
}

.top-actions a[aria-current="page"] {
  background: var(--yellow);
}

.top-actions a:hover,
.primary-button:hover,
.copy-button:hover,
.sample-button:hover,
.photo-picker:hover,
.photo-tray-link:hover,
.photo-demo:hover,
.photo-read:hover,
.photo-clear:hover,
.export-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.app-view[hidden] {
  display: none;
}

.app-view.is-active {
  animation: viewIn 340ms ease both;
}

.home-view {
  overflow-x: clip;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 28px;
  min-height: 430px;
  padding: 54px 10px 28px;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: var(--small-shadow);
}

.sticker-title {
  max-width: 920px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(3rem, 9vw, 8.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow:
    3px 0 var(--ink),
    -3px 0 var(--ink),
    0 3px var(--ink),
    0 -3px var(--ink),
    7px 7px 0 var(--ink);
}

.hero-text {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
}

.hero-user {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 248, 232, 0.86);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.home-cta {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--small-shadow);
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.home-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary-home-cta {
  background: var(--yellow);
}

.clock-stage {
  display: flex;
  justify-content: center;
}

.hero-stack {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  min-height: 420px;
  place-items: center;
  padding: 22px 0 54px;
}

.hero-asset {
  position: absolute;
  left: -10px;
  top: 6px;
  width: min(250px, 64%);
  filter: drop-shadow(5px 5px 0 var(--ink));
  transform: rotate(-9deg);
}

.asset-ticket {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 1000;
  text-transform: uppercase;
}

.ticket-one {
  left: 10px;
  bottom: 42px;
  transform: rotate(4deg);
}

.ticket-two {
  right: 0;
  bottom: 12px;
  background: var(--mint);
  transform: rotate(-4deg);
}

.clock-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}

.signal-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.home-overview,
.notice-spectrum {
  margin: 30px 0;
  padding: 34px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.home-section-heading {
  max-width: 900px;
}

.home-section-heading h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.home-section-heading > p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

.home-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.overview-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 7px 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
}

.overview-item:nth-child(2) {
  background: #dff8ff;
}

.overview-item:nth-child(3) {
  background: #d8ffe9;
}

.overview-item img {
  grid-row: 1 / span 3;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.overview-item span {
  width: fit-content;
  padding: 4px 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.overview-item h3,
.overview-item p {
  margin: 0;
}

.overview-item h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.overview-item p {
  font-weight: 800;
  line-height: 1.4;
}

.judge-quick-path {
  display: grid;
  gap: 22px;
  margin: 30px -18px 0;
  padding: 34px max(28px, calc((100vw - 1400px) / 2 + 18px));
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: #172033;
  color: white;
}

.judge-quick-path-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.judge-quick-path-heading h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.judge-quick-path-heading > p {
  max-width: 440px;
  margin: 0;
  color: #dce4ea;
  font-weight: 800;
  line-height: 1.45;
}

.judge-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.judge-quick-links a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 3px solid white;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 white;
  font-weight: 1000;
  text-align: center;
  text-decoration: none;
}

.judge-quick-links a:hover,
.judge-quick-links a:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 white;
}

.judge-quick-links .judge-red-link {
  background: white;
  color: #7f3138;
}

.home-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  min-height: 520px;
  margin: 30px -18px 0;
  padding: 70px max(28px, calc((100vw - 1400px) / 2 + 18px));
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: var(--cream);
}

.home-band.ai-band {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  background: #dff8ff;
}

.home-band.home-safety {
  background: #d8ffe9;
}

.home-band.output-band {
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  background: var(--yellow);
}

.home-band.risk-band {
  background: #fff0b8;
}

.home-band-copy {
  max-width: 760px;
}

.home-band h2,
.home-final-cta h2,
.tool-intro h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.home-band-copy > p:not(.eyebrow),
.home-final-cta > p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
}

.home-band-copy .home-cta {
  margin-top: 24px;
}

.demo-launchers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.demo-launchers a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 1000;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.demo-launchers a:nth-child(2),
.demo-launchers a:nth-child(4) {
  background: white;
}

.demo-launchers a[aria-disabled="true"],
.sample-button:disabled {
  cursor: wait;
  opacity: 0.6;
  pointer-events: none;
}

.impact-section {
  margin: 30px 0;
  padding: 52px 28px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.impact-card {
  min-height: 230px;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #e7edf2;
}

.impact-card.after {
  border-left: 12px solid #5f816d;
  background: #dce9df;
}

.impact-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  font-weight: 1000;
  text-transform: uppercase;
}

.impact-card.after span {
  background: #a9c5b1;
}

.impact-card p {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 850;
  line-height: 1.5;
}

.home-feature-asset {
  width: min(100%, 480px);
  justify-self: center;
  filter: drop-shadow(8px 8px 0 var(--ink));
}

.visual-demo {
  position: relative;
  width: min(100%, 650px);
  justify-self: center;
  isolation: isolate;
}

.visual-demo .home-feature-asset {
  display: block;
}

.dashboard-asset {
  width: min(100%, 650px);
  transform: rotate(2deg);
}

.pipeline-asset {
  width: 100%;
  max-width: 700px;
  transform: none;
  filter: drop-shadow(6px 6px 0 var(--ink));
}

.dashboard-demo {
  overflow: hidden;
  padding: 12px;
}

.dashboard-scan {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 12%;
  width: 86%;
  height: 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 4px 0 rgba(20, 17, 15, 0.18);
  opacity: 0;
  pointer-events: none;
}

.demo-status {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  opacity: 0;
}

.status-source {
  left: 4%;
  bottom: 4%;
  background: var(--yellow);
  transform: rotate(-3deg);
}

.status-safe {
  right: 2%;
  top: 4%;
  background: var(--mint);
  transform: rotate(3deg);
}

.pipeline-demo {
  width: min(100%, 700px);
  overflow: visible;
  padding: 0;
  aspect-ratio: 700 / 360;
}

.pipeline-signal,
.route-signal {
  position: absolute;
  z-index: 3;
  display: block;
  width: 18px;
  height: 18px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
  pointer-events: none;
}

.pipeline-signal {
  left: 12%;
  top: 48%;
}

.scroll-companion {
  --companion-y: 0px;
  position: fixed;
  z-index: 7;
  top: 17vh;
  right: 10px;
  width: clamp(76px, 7vw, 112px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, var(--companion-y), 0);
  transition: transform 120ms linear, opacity 180ms ease;
}

.scroll-companion.is-visible {
  opacity: 1;
}

.scroll-companion img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 5px 0 rgba(20, 17, 15, 0.9));
  transform-origin: 50% 82%;
}

.signal-two {
  background: var(--blue);
}

.signal-three {
  background: var(--mint);
}

.shield-asset {
  width: min(100%, 360px);
}

.output-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.output-list span {
  position: relative;
  min-height: 58px;
  padding: 12px 12px 12px 42px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

.output-list span::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 11px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  font-size: 0.78rem;
}

.home-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.risk-ladder {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.risk-ladder div {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.risk-ladder div.is-risk-active {
  z-index: 1;
  filter: saturate(1.15);
  transform: translateX(9px);
  box-shadow: 7px 7px 0 var(--ink);
}

.risk-ladder strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.25rem;
}

.risk-ladder span {
  font-weight: 900;
}

.risk-ladder [data-level="GREEN"] {
  background: #76e36f;
}

.risk-ladder [data-level="YELLOW"] {
  background: var(--yellow);
}

.risk-ladder [data-level="ORANGE"] {
  background: var(--orange);
}

.risk-ladder [data-level="RED"] {
  background: var(--danger);
  color: white;
}

.risk-asset-stage {
  position: relative;
  display: grid;
  width: min(100%, 480px);
  min-height: 390px;
  justify-self: center;
  place-items: center;
}

.risk-main-asset {
  position: absolute;
  left: 0;
  top: 24px;
  width: 65%;
  filter: drop-shadow(7px 7px 0 var(--ink));
  transform: rotate(-5deg);
}

.risk-route-asset {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: 72%;
  filter: drop-shadow(7px 7px 0 var(--ink));
  transform: rotate(5deg);
}

.risk-asset-stage span {
  position: absolute;
  right: 10px;
  top: 28px;
  padding: 8px 11px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--danger);
  color: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 1000;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.route-signal {
  left: 44%;
  top: 54%;
  width: 16px;
  height: 16px;
  background: var(--danger);
}

.route-two {
  background: var(--orange);
}

.route-three {
  background: var(--mint);
}

.home-points p {
  margin: 0;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
}

.promise-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.promise-list li {
  position: relative;
  padding: 12px 12px 12px 48px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 850;
}

.promise-list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 1000;
}

.notice-spectrum {
  background: #dff8ff;
}

.notice-spectrum-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.notice-spectrum-list span {
  display: flex;
  min-height: 70px;
  align-items: center;
  padding: 12px 15px;
  border: 3px solid var(--ink);
  border-left-width: 14px;
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  text-transform: uppercase;
}

.notice-spectrum-list span:nth-child(2) {
  border-left-color: var(--danger);
}

.notice-spectrum-list span:nth-child(3) {
  border-left-color: var(--orange);
}

.notice-spectrum-list span:nth-child(4) {
  border-left-color: var(--blue);
}

.notice-spectrum-list span:nth-child(5) {
  border-left-color: var(--mint);
}

.notice-spectrum-list span:nth-child(6) {
  border-left-color: var(--yellow);
}

.home-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 36px;
  align-items: center;
  margin: 30px 0 18px;
  padding: 70px 24px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow);
  text-align: left;
}

.home-final-cta .home-cta {
  margin-top: 26px;
  color: var(--ink);
}

.home-final-copy {
  max-width: 620px;
}

.home-final-copy > p:not(.eyebrow) {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
}

.handoff-preview {
  overflow: hidden;
  border: 3px solid var(--cream);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.handoff-preview header,
.handoff-preview footer {
  padding: 13px 15px;
  background: #dce9df;
}

.handoff-preview header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--ink);
}

.handoff-preview header span {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.handoff-preview header strong {
  align-self: center;
  color: #365946;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.handoff-preview > div {
  padding: 13px 15px;
  border-bottom: 2px solid #b9c2c8;
}

.handoff-preview small {
  display: block;
  margin-bottom: 4px;
  color: #53606c;
  font-weight: 1000;
  text-transform: uppercase;
}

.handoff-preview p {
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
}

.handoff-preview .handoff-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.handoff-preview-grid section {
  padding: 13px 15px;
}

.handoff-preview-grid section + section {
  border-left: 2px solid #b9c2c8;
}

.handoff-preview footer {
  font-size: 0.82rem;
  font-weight: 1000;
}

.site-disclosure {
  margin: 18px 0 4px;
  padding: 13px 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
}

.evals-shell {
  width: min(1560px, 100%);
}

.evals-page {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.evals-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 38px;
  align-items: center;
  min-height: 0;
  padding: 42px 20px 24px;
}

.evals-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.evals-hero > div > p:not(.eyebrow) {
  max-width: 900px;
  margin: 14px 0 0;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.5;
}

.evals-hero .evals-honesty-note {
  padding: 13px 15px;
  border-left: 5px solid var(--ink);
  background: var(--cream);
  font-size: 0.92rem;
}

.evals-hero img {
  width: 100%;
  max-width: 210px;
}

.evaluation-summary,
.evaluation-cases {
  min-width: 0;
  padding: 28px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.evaluation-summary-heading,
.evaluation-cases-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.evaluation-summary-heading h2,
.evaluation-cases-heading h2,
.evals-next-step h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

#evaluation-total {
  padding: 9px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #76e36f;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.84rem;
  font-weight: 1000;
  white-space: nowrap;
}

.evaluation-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.evaluation-summary-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 15px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: white;
}

.evaluation-summary-grid article:nth-child(2),
.evaluation-summary-grid article:nth-child(5) {
  background: #dff8ff;
}

.evaluation-summary-grid article:nth-child(3),
.evaluation-summary-grid article:nth-child(6) {
  background: #d8ffe9;
}

.evaluation-summary-grid strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 2rem;
}

.evaluation-summary-grid span {
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.evaluation-cases {
  background: white;
}

.evaluation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.evaluation-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.eval-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.pass-dot {
  background: #76e36f;
}

.expected-dot {
  background: var(--yellow);
}

.evaluation-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 3px solid var(--ink);
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
}

.evaluation-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.82rem;
}

.evaluation-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.evaluation-table th,
.evaluation-table td {
  min-width: 126px;
  padding: 13px 11px;
  border-right: 1px solid #a9a39a;
  border-bottom: 1px solid #a9a39a;
  text-align: left;
  vertical-align: top;
}

.evaluation-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #172033;
  color: white;
  font-size: 0.72rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.evaluation-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 280px;
  min-width: 280px;
  background: #fff5cc;
}

.evaluation-table tbody tr:nth-child(even) td {
  background: #f5f7f9;
}

.evaluation-table details summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  cursor: pointer;
  list-style: none;
}

.evaluation-table details summary::-webkit-details-marker {
  display: none;
}

.evaluation-table details summary span {
  color: #77511b;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1rem;
}

.evaluation-table details summary strong {
  line-height: 1.35;
}

.evaluation-table details p {
  margin: 10px 0 0 36px;
  color: #514d46;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.eval-risk,
.eval-yes,
.eval-no,
.eval-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
}

.eval-risk[data-risk="GREEN"] {
  background: #76e36f;
}

.eval-risk[data-risk="YELLOW"] {
  background: var(--yellow);
}

.eval-risk[data-risk="ORANGE"] {
  background: var(--orange);
}

.eval-risk[data-risk="RED"] {
  border-color: #172033;
  background: #172033;
  color: white;
}

.eval-yes {
  background: #d8ffe9;
}

.eval-no {
  background: #e4e8eb;
}

.eval-status.pass {
  background: #76e36f;
}

.eval-status.fail {
  background: #f1b7ba;
}

.evaluation-scroll-note {
  margin: 13px 0 0;
  color: #57524c;
  font-size: 0.78rem;
  font-weight: 800;
}

.evals-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 4px solid var(--ink);
  background: #172033;
  color: white;
}

.evals-next-step p:not(.eyebrow) {
  max-width: 760px;
  margin: 13px 0 0;
  color: #dce4ea;
  font-weight: 800;
  line-height: 1.45;
}

.evals-demo-links {
  display: grid;
  gap: 10px;
}

.evals-demo-links a {
  min-width: 260px;
  padding: 12px 14px;
  border: 3px solid white;
  border-radius: 6px;
  background: white;
  color: #7f3138;
  box-shadow: 3px 3px 0 white;
  font-weight: 1000;
  text-align: center;
  text-decoration: none;
}

.tool-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  min-height: 240px;
  padding: 48px 10px 28px;
}

.tool-intro img {
  width: 180px;
  filter: drop-shadow(5px 5px 0 var(--ink));
  transform: rotate(5deg);
}

.risk-demo-button {
  min-height: 48px;
  margin-top: 18px;
  padding: 9px 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font-weight: 1000;
}

.risk-demo-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.files-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: center;
  min-height: 330px;
  padding: 48px 10px 28px;
}

.files-intro h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.files-intro p:not(.eyebrow) {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.45;
}

.files-intro > img {
  width: 230px;
  filter: drop-shadow(6px 6px 0 var(--ink));
  transform: rotate(5deg);
}

.files-privacy {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #d8ffe9;
  box-shadow: var(--small-shadow);
}

.files-privacy img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.files-privacy h2,
.files-privacy p {
  margin: 0;
}

.files-privacy h2 {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.files-privacy p {
  margin-top: 5px;
  font-weight: 800;
}

.file-workspace {
  min-height: 580px;
  padding: 22px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.file-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--ink);
}

.file-toolbar h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.file-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.file-add-button,
.file-demo-button,
.file-clear-button,
.file-open-button,
.file-delete-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--small-shadow);
  cursor: pointer;
  font-weight: 1000;
  text-decoration: none;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.file-add-button,
.file-open-button {
  background: var(--yellow);
}

.file-demo-button {
  background: var(--mint);
}

.file-clear-button,
.file-delete-button {
  background: #ffe3e6;
}

.file-add-button:hover,
.file-demo-button:hover,
.file-clear-button:hover,
.file-open-button:hover,
.file-delete-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.file-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: var(--small-shadow);
}

.files-status {
  margin: 18px 0;
  font-weight: 900;
}

.files-status[data-tone="success"] {
  color: #075d43;
}

.files-status[data-tone="error"] {
  color: #a3152b;
}

.files-empty {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 700px;
  min-height: 300px;
  margin: 50px auto;
}

.files-empty img {
  width: 150px;
  filter: drop-shadow(5px 5px 0 var(--ink));
  transform: rotate(-5deg);
}

.files-empty h3 {
  font-size: 2.4rem;
}

.files-empty p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.files-grid.is-hidden,
.files-empty.is-hidden {
  display: none;
}

.file-card {
  display: grid;
  grid-template-rows: 190px auto;
  min-width: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
}

.file-card-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}

.file-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-number {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--red);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

.file-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.file-card-name {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 1000;
}

.file-card-meta {
  margin: 0;
  color: #5d5651;
  font-size: 0.88rem;
  font-weight: 800;
}

.file-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.file-card.is-processing {
  opacity: 0.68;
}

.signal-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 14px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--small-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.signal-card.is-path-active {
  z-index: 1;
  filter: saturate(1.12);
  transform: translateY(-7px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.signal-card:nth-child(2) {
  background: #dff8ff;
}

.signal-card:nth-child(3) {
  background: #fff0b8;
}

.signal-card:nth-child(4) {
  background: #d8ffe9;
}

.signal-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.signal-card h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.signal-card p {
  margin: 6px 0 0;
  font-weight: 1000;
}

.rail-step {
  position: absolute;
  right: 10px;
  top: -12px;
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--red);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

.clock-card p {
  margin: 0 0 6px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.clock-face {
  position: relative;
  width: 58%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, var(--ink) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--ink) 48% 52%, transparent 52%),
    var(--cream);
  box-shadow: inset 0 0 0 10px var(--yellow), 5px 5px 0 var(--ink);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 7px;
  background: var(--ink);
  border-radius: 999px;
  transform-origin: bottom center;
}

.clock-hand.minute {
  height: 42%;
  transform: translateX(-50%) rotate(35deg);
}

.clock-hand.hour {
  height: 30%;
  transform: translateX(-50%) rotate(-64deg);
}

.clock-hand.second {
  width: 4px;
  height: 45%;
  background: var(--danger);
  transform: translateX(-50%) rotate(0deg);
}

.clock-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  border: 4px solid var(--ink);
  transform: translate(-50%, -50%);
}

.clock-time {
  display: inline-flex;
  min-width: 112px;
  justify-content: center;
  padding: 6px 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.privacy-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: var(--small-shadow);
  font-weight: 900;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.3fr);
  gap: 26px;
  align-items: start;
}

.workspace.has-analysis {
  grid-template-columns: minmax(250px, 0.48fr) minmax(520px, 1.52fr);
}

.input-panel,
.dashboard-panel {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.input-panel {
  position: sticky;
  top: 122px;
  padding: 22px;
}

.dashboard-panel {
  min-height: 720px;
  padding: 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.input-toggle,
.input-collapse-summary button {
  min-height: 42px;
  padding: 7px 11px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font-weight: 1000;
  text-transform: uppercase;
}

.input-panel.is-collapsed {
  padding: 16px;
}

.input-panel.is-collapsed > :not(.panel-heading):not(.input-collapse-summary) {
  display: none;
}

.input-panel.is-collapsed .panel-heading h2 {
  font-size: 1.65rem;
}

.input-collapse-summary {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 4px solid var(--ink);
}

.input-collapse-summary > div {
  display: grid;
  gap: 3px;
}

.input-collapse-summary span,
.input-collapse-summary small {
  font-weight: 900;
}

.input-collapse-summary span {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.input-collapse-summary strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.input-collapse-summary p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.input-collapse-summary button {
  width: 100%;
  background: var(--yellow);
}

.panel-heading h2,
.dashboard-empty h2,
.result-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  border: 0;
}

.category-grid legend {
  margin-bottom: 10px;
  font-weight: 1000;
}

.category-grid label {
  min-width: 0;
}

.category-grid input {
  position: absolute;
  opacity: 0;
}

.category-grid span {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 1000;
  text-align: center;
}

.category-grid input:checked + span {
  background: var(--blue);
  color: white;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 220px);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 1000;
}

select,
textarea {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

select {
  min-height: 48px;
  padding: 0 12px;
  font-weight: 800;
}

.notice-box {
  display: grid;
  gap: 10px;
  font-weight: 1000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photo-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #dff8ff;
  box-shadow: 3px 3px 0 var(--ink);
}

.photo-copy {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.photo-copy img {
  width: 72px;
  height: 62px;
  object-fit: contain;
}

.photo-copy h3,
.photo-copy p {
  margin: 0;
}

.photo-copy p {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.photo-actions,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-picker,
.photo-tray-link,
.photo-demo,
.photo-read,
.photo-clear,
.export-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  cursor: pointer;
}

.photo-tray-link {
  background: var(--cream);
  text-decoration: none;
}

.photo-read {
  background: var(--yellow);
}

.photo-demo {
  background: var(--mint);
}

.photo-clear {
  background: #ffe3e6;
}

.photo-read:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: var(--small-shadow);
}

.photo-preview {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.photo-preview.is-hidden {
  display: none;
}

.photo-preview img {
  width: 100px;
  height: 76px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
}

.photo-preview figcaption {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photo-preview strong,
.photo-preview span {
  overflow-wrap: anywhere;
}

.photo-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 900;
}

.photo-status[data-tone="success"] {
  color: #075d43;
}

.photo-status[data-tone="error"] {
  color: #a3152b;
}

textarea {
  min-height: 250px;
  resize: vertical;
  padding: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.sample-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.sample-disclosure {
  margin: 18px 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.sample-disclosure summary {
  padding: 12px;
  cursor: pointer;
  font-weight: 1000;
  text-transform: uppercase;
}

.sample-disclosure .sample-row {
  margin: 0;
  padding: 0 12px 12px;
}

.privacy-review {
  margin: 14px 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #dff8ff;
}

.privacy-review summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
}

.privacy-review summary span {
  color: #174786;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.privacy-review > p {
  margin: 0;
  padding: 0 12px 12px;
  color: #31475b;
  font-size: 0.82rem;
  font-weight: 800;
}

.privacy-review-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.privacy-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 2px solid #53748e;
  border-radius: 6px;
  background: white;
}

.privacy-review-item > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.privacy-review-item span {
  overflow-wrap: anywhere;
  color: #3f4f5e;
  font-size: 0.82rem;
  font-weight: 750;
}

.privacy-review-item button {
  min-height: 38px;
  padding: 7px 9px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--cream);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 1000;
}

.sample-button,
.copy-button,
.primary-button {
  cursor: pointer;
}

.sample-button {
  min-height: 48px;
  padding: 8px 10px;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 14px;
  align-items: center;
}

.primary-button {
  min-height: 58px;
  padding: 10px 18px;
  background: var(--yellow);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.primary-button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.status {
  margin: 0;
  font-weight: 900;
}

.dashboard-empty {
  display: grid;
  min-height: 660px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.dashboard-empty h2 {
  max-width: 640px;
}

.is-hidden {
  display: none;
}

.dashboard-content.is-hidden {
  display: none;
}

.dashboard-content[hidden] {
  display: none;
}

.analysis-progress {
  display: grid;
  gap: 22px;
  min-height: 660px;
  align-content: start;
}

.analysis-progress.is-hidden {
  display: none;
}

.analysis-progress-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: center;
}

.analysis-progress-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.analysis-progress-heading img {
  width: 125px;
  filter: drop-shadow(4px 4px 0 var(--ink));
}

.analysis-stages {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-stages li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  opacity: 0.55;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.analysis-stages li.is-active {
  background: var(--yellow);
  opacity: 1;
  transform: translateX(5px);
}

.analysis-stages li.is-complete {
  background: var(--mint);
  opacity: 1;
}

.stage-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.2rem;
}

.analysis-stages li.is-complete .stage-number {
  font-size: 0;
}

.analysis-stages li.is-complete .stage-number::after {
  content: "✓";
  font-size: 1.2rem;
}

.analysis-stages strong,
.analysis-stages p {
  margin: 0;
}

.analysis-stages strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.analysis-stages p {
  margin-top: 3px;
  font-size: 0.9rem;
  font-weight: 800;
}

.stage-state {
  min-width: 66px;
  font-size: 0.8rem;
  font-weight: 1000;
  text-align: right;
  text-transform: uppercase;
}

.analysis-progress-track {
  height: 18px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: white;
}

.analysis-progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--red);
  transition: width 420ms ease;
}

.dashboard-content {
  display: grid;
  gap: 20px;
}

.guide-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.guide-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
}

.guide-mode-toggle button {
  min-height: 40px;
  padding: 7px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--cream);
  box-shadow: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.guide-mode-toggle button[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--ink);
}

#guide-progress-label {
  margin: 0;
  font-weight: 1000;
  text-transform: uppercase;
}

.guide-summary {
  position: sticky;
  top: 118px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(105px, 0.5fr) minmax(170px, 0.9fr) minmax(220px, 1.6fr);
  gap: 0;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 5px 5px 0 var(--ink);
}

.guide-summary > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 11px 13px;
  border-right: 3px solid var(--ink);
}

.guide-summary > div:last-child {
  border-right: 0;
}

.guide-summary span {
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.guide-summary strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.3;
}

.guide-summary-risk {
  background: #76e36f;
}

.guide-summary-risk[data-guide-risk="YELLOW"] {
  background: var(--yellow);
}

.guide-summary-risk[data-guide-risk="ORANGE"] {
  background: var(--orange);
}

.guide-summary-risk[data-guide-risk="RED"] {
  background: var(--danger);
  color: white;
}

.guide-summary-risk strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.25rem;
}

.guide-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.guide-progress button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  text-align: left;
}

.guide-progress button > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

.guide-progress button strong {
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.guide-progress button.is-current {
  background: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.guide-progress button.is-complete {
  background: var(--mint);
}

.guide-progress button.is-complete > span {
  font-size: 0;
}

.guide-progress button.is-complete > span::after {
  content: "✓";
  font-size: 1rem;
}

.guide-step {
  display: grid;
  gap: 18px;
  scroll-margin-top: 225px;
}

.guide-step[hidden] {
  display: none;
}

.guide-step-heading {
  padding: 16px 18px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #dff8ff;
  box-shadow: 3px 3px 0 var(--ink);
}

.guide-step[data-guide-step="1"] .guide-step-heading {
  background: #fff0b8;
}

.guide-step[data-guide-step="2"] .guide-step-heading {
  background: #d8ffe9;
}

.guide-step[data-guide-step="3"] .guide-step-heading {
  background: #ffe3e6;
}

.guide-step-heading p,
.guide-step-heading span {
  margin: 0;
  font-weight: 900;
}

.guide-step-heading p {
  margin-bottom: 5px;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.guide-step-title {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.guide-step-title:focus {
  outline: 4px solid var(--blue);
  outline-offset: 5px;
}

.understand-grid .deadline {
  grid-column: auto;
}

.verify-grid,
.action-intelligence-grid {
  align-items: stretch;
}

.action-intelligence-grid .red-flags-section {
  height: 100%;
}

.guide-navigation {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 4px solid var(--ink);
}

.guide-navigation button {
  min-height: 48px;
  padding: 8px 13px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font-weight: 1000;
  text-transform: uppercase;
}

.guide-navigation #guide-next {
  background: var(--yellow);
}

.guide-navigation button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

#guide-navigation-status {
  margin: 0;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-content[data-dashboard-mode="full"] .guide-navigation {
  display: none;
}

.dashboard-content[data-dashboard-mode="full"] .guide-step {
  padding-top: 4px;
  border-top: 4px solid var(--ink);
}

.dashboard-content[data-dashboard-mode="full"] .guide-progress button {
  opacity: 0.75;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--ink);
}

.result-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.mode-pill {
  display: inline-flex;
  width: fit-content;
  margin: 12px 0 0;
  padding: 7px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.88rem;
  font-weight: 1000;
}

.export-actions {
  margin-top: 14px;
}

.export-button {
  background: var(--cream);
  font-size: 0.88rem;
  font-weight: 1000;
}

.new-notice-button {
  background: var(--yellow);
}

.adult-view-button {
  background: var(--blue);
  color: white;
}

.deadline-planner {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(220px, 1fr) minmax(280px, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff0b8;
  box-shadow: 3px 3px 0 var(--ink);
}

.deadline-planner > div:first-child {
  display: grid;
  gap: 4px;
}

.planner-kicker {
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.deadline-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.3;
}

.deadline-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

.deadline-inputs {
  display: grid;
  grid-template-columns: 1fr 0.85fr auto;
  gap: 8px;
  align-items: end;
}

.deadline-inputs label {
  display: grid;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.deadline-inputs input,
.deadline-inputs button {
  min-width: 0;
  min-height: 42px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 900;
}

.deadline-inputs input {
  padding: 5px 7px;
}

.deadline-inputs button {
  padding: 5px 10px;
  background: var(--yellow);
  cursor: pointer;
}

.deadline-inputs button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

#calendar-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.export-button:first-child {
  background: var(--yellow);
}

.risk-badge {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "shape level"
    "reason reason";
  gap: 9px 12px;
  align-content: center;
  flex: 0 0 clamp(240px, 25vw, 280px);
  width: clamp(240px, 25vw, 280px);
  min-width: 0;
  min-height: 168px;
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--small-shadow);
  overflow: hidden;
}

.risk-eyebrow {
  grid-area: eyebrow;
  padding-bottom: 7px;
  border-bottom: 3px solid currentColor;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.risk-badge [data-field="riskLevel"] {
  grid-area: level;
  min-width: 0;
  align-self: center;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.15rem, 3.1vw, 3.15rem);
  line-height: 0.92;
  overflow-wrap: normal;
  white-space: nowrap;
}

.risk-shape {
  grid-area: shape;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  align-self: center;
  border: 4px solid currentColor;
  background: white;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 1000;
  line-height: 1;
}

.risk-badge small {
  grid-area: reason;
  display: block;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 2px solid rgba(20, 17, 15, 0.42);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.risk-badge[data-risk="GREEN"] {
  background: #76e36f;
  border-left-width: 10px;
}

.risk-badge[data-risk="GREEN"] .risk-shape {
  border-radius: 50%;
}

.risk-badge[data-risk="YELLOW"] {
  background: var(--yellow);
  border-left-width: 10px;
}

.risk-badge[data-risk="YELLOW"] .risk-shape {
  border-radius: 5px;
}

.risk-badge[data-risk="ORANGE"] {
  background: var(--orange);
  border-left-width: 10px;
}

.risk-badge[data-risk="ORANGE"] .risk-shape {
  border-radius: 50%;
  border-style: dashed;
}

.risk-badge[data-risk="RED"] {
  border-left: 10px solid #a33d46;
  border-color: #172033;
  border-left-color: #a33d46;
  background: #172033;
  color: white;
  box-shadow: none;
}

.risk-badge[data-risk="RED"] [data-field="riskLevel"] {
  color: #ffd4d6;
}

.risk-badge[data-risk="RED"] .risk-shape {
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  background: #a33d46;
  color: white;
}

.risk-badge[data-risk="RED"] small {
  border-top-color: rgba(255, 255, 255, 0.38);
}

.demo-risk-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 3px solid #172033;
  background: white;
}

.demo-risk-state {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 2px solid #172033;
}

.demo-risk-state > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid currentColor;
  font-size: 1.4rem;
  font-weight: 1000;
}

.demo-risk-state strong {
  font-size: 1.25rem;
}

.demo-risk-state p {
  margin: 3px 0 0;
  font-weight: 800;
  line-height: 1.35;
}

.demo-risk-green {
  background: #d8ffe9;
}

.demo-risk-green > span {
  border-radius: 50%;
}

.demo-risk-red {
  border-left: 6px solid #a33d46;
  background: #eef2f5;
}

.demo-risk-red > span {
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  background: #172033;
  color: white;
}

.demo-risk-arrow {
  display: grid;
  place-items: center;
  color: #a33d46;
  font-size: 2rem;
  font-weight: 1000;
}

.demo-risk-meter {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
}

.demo-risk-meter > div {
  position: relative;
  height: 18px;
  border: 3px solid #172033;
  background: linear-gradient(90deg, #76e36f 0 25%, #ffd84d 25% 50%, #ff9e36 50% 75%, #a33d46 75%);
}

.demo-risk-needle {
  position: absolute;
  top: -8px;
  right: 2%;
  width: 12px;
  height: 28px;
  border: 3px solid white;
  background: #172033;
  box-shadow: 0 0 0 2px #172033;
}

.demo-risk-meter p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 0.66rem;
  font-weight: 1000;
}

.red-serious-banner {
  padding: 18px 20px;
  border-left: 6px solid #a33d46;
  background: #172033;
  color: white;
}

.red-serious-banner[hidden],
.red-handoff-priority[hidden] {
  display: none;
}

.red-serious-banner strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.12rem;
}

.red-serious-banner p {
  margin: 0;
  color: #e8edf2;
  font-weight: 750;
  line-height: 1.45;
}

.red-handoff-priority {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 2px solid #172033;
  background: white;
  color: #172033;
}

.red-handoff-priority > header {
  padding-bottom: 16px;
  border-bottom: 1px solid #b8c1ca;
}

.red-handoff-priority > header p {
  margin: 0 0 7px;
  color: #a33d46;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.red-handoff-priority h3 {
  margin: 0 0 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  text-transform: none;
}

.red-handoff-priority header span {
  display: block;
  color: #465566;
  font-weight: 800;
  line-height: 1.45;
}

.red-priority-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.red-priority-grid article {
  padding: 18px;
  border: 1px solid #aeb8c2;
  background: #f5f7f9;
}

.red-priority-grid .red-professional {
  border-left: 5px solid #a33d46;
  background: #eef2f5;
}

.red-priority-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.red-priority-grid li {
  font-weight: 800;
  line-height: 1.4;
}

.red-handoff-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  background: #172033;
  color: white;
}

.red-handoff-summary strong {
  color: #df7b80;
}

.red-handoff-summary p {
  margin: 0;
  color: #e8edf2;
  font-weight: 750;
}

.red-handoff-summary button {
  min-height: 42px;
  padding: 8px 12px;
  border: 2px solid white;
  border-radius: 4px;
  background: white;
  color: #172033;
  cursor: pointer;
  font-weight: 1000;
}

.handoff-finder[hidden] {
  display: none;
}

.handoff-finder {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #e4efe6;
  box-shadow: 4px 4px 0 var(--ink);
}

.handoff-finder-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 2px solid #8ca393;
}

.handoff-finder-heading h3 {
  margin: 3px 0 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1.15;
  text-transform: none;
}

.handoff-finder-heading > span {
  max-width: 250px;
  color: #3e5545;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.handoff-finder-kicker {
  margin: 0;
  color: #315f43;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.handoff-finder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.handoff-finder-grid article {
  min-width: 0;
  padding: 15px;
  border: 2px solid #789181;
  border-radius: 6px;
  background: white;
}

.handoff-finder-grid .handoff-finder-professional {
  border-left: 6px solid #547a5e;
}

.handoff-finder-grid span,
.handoff-search-phrase span {
  display: block;
  margin-bottom: 6px;
  color: #315f43;
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.handoff-finder-grid p {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.handoff-finder-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 7px 14px;
  align-items: stretch;
  padding: 14px;
  border: 2px solid #789181;
  border-radius: 6px;
  background: #f7fbf8;
}

.handoff-finder-search label {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 1000;
}

.handoff-finder-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}

.handoff-location-note {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #52675a;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.handoff-search-phrase {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 3;
  align-content: center;
  min-width: 0;
  padding: 12px 14px;
  border-left: 4px solid #547a5e;
  background: #e9f3eb;
}

.handoff-search-phrase strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.4;
}

.handoff-finder-safety {
  margin: 0;
  padding: 12px 14px;
  border-left: 5px solid #315f43;
  background: white;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.45;
}

.dashboard-panel[data-risk-mode="serious"] {
  border-color: #172033;
  background: #f1f4f6;
  box-shadow: 5px 5px 0 #172033;
}

.dashboard-content[data-risk="RED"] {
  color: #172033;
}

.dashboard-content[data-risk="RED"] .result-header {
  border-color: #172033;
}

.dashboard-content[data-risk="RED"] .result-header h2,
.dashboard-content[data-risk="RED"] .guide-step-title,
.dashboard-content[data-risk="RED"] .info-block h3,
.dashboard-content[data-risk="RED"] .feature-card h3,
.dashboard-content[data-risk="RED"] .checklist-section h3,
.dashboard-content[data-risk="RED"] .evidence-section h3,
.dashboard-content[data-risk="RED"] .handoff-column h3,
.dashboard-content[data-risk="RED"] .script-card h3,
.dashboard-content[data-risk="RED"] .limits-section h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.dashboard-content[data-risk="RED"] .result-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  text-transform: none;
}

.dashboard-content[data-risk="RED"] .info-block,
.dashboard-content[data-risk="RED"] .evidence-section,
.dashboard-content[data-risk="RED"] .checklist-section,
.dashboard-content[data-risk="RED"] .family-translation,
.dashboard-content[data-risk="RED"] .timeline-section,
.dashboard-content[data-risk="RED"] .limits-section,
.dashboard-content[data-risk="RED"] .feature-card,
.dashboard-content[data-risk="RED"] .script-card,
.dashboard-content[data-risk="RED"] .red-flags-section,
.dashboard-content[data-risk="RED"] .handoff-column,
.dashboard-content[data-risk="RED"] .guide-step-heading,
.dashboard-content[data-risk="RED"] .guide-summary,
.dashboard-content[data-risk="RED"] .deadline-planner,
.dashboard-content[data-risk="RED"] .guide-progress button {
  border-color: #8d99a5;
  border-radius: 4px;
  background: white;
  box-shadow: none;
}

.dashboard-content[data-risk="RED"] .guide-step-heading {
  border-left: 5px solid #a33d46;
}

.dashboard-content[data-risk="RED"] .guide-summary-risk {
  background: #172033;
  color: white;
}

.dashboard-content[data-risk="RED"] .guide-progress button.is-current,
.dashboard-content[data-risk="RED"] .guide-progress button.is-complete {
  background: #e1e7eb;
  color: #172033;
  transform: none;
}

.dashboard-content[data-risk="RED"] .guide-progress button.is-current {
  border-left: 4px solid #a33d46;
}

.dashboard-content[data-risk="RED"] .family-translation {
  background: #172033;
  color: white;
}

.dashboard-content[data-risk="RED"] .handoff-column.pro {
  border-left: 5px solid #a33d46;
  background: #eef2f5;
}

.dashboard-content[data-risk="RED"] .handoff-column.adult {
  background: #f5f7f9;
}

.dashboard-content[data-risk="RED"] .handoff-finder {
  border: 2px solid #172033;
  border-radius: 4px;
  background: white;
  box-shadow: none;
}

.dashboard-content[data-risk="RED"] .handoff-finder-heading {
  border-color: #aeb8c2;
}

.dashboard-content[data-risk="RED"] .handoff-finder-kicker,
.dashboard-content[data-risk="RED"] .handoff-finder-heading > span,
.dashboard-content[data-risk="RED"] .handoff-finder-grid span,
.dashboard-content[data-risk="RED"] .handoff-search-phrase span {
  color: #7f3138;
}

.dashboard-content[data-risk="RED"] .handoff-finder-grid article,
.dashboard-content[data-risk="RED"] .handoff-finder-search {
  border-color: #aeb8c2;
  border-radius: 3px;
  background: #f5f7f9;
}

.dashboard-content[data-risk="RED"] .handoff-finder-grid .handoff-finder-professional,
.dashboard-content[data-risk="RED"] .handoff-search-phrase,
.dashboard-content[data-risk="RED"] .handoff-finder-safety {
  border-left-color: #a33d46;
}

.dashboard-content[data-risk="RED"] .handoff-search-phrase {
  background: #eef2f5;
}

.dashboard-content[data-risk="RED"] .handoff-finder-safety {
  background: #172033;
  color: white;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-block,
.evidence-section,
.checklist-section,
.family-translation,
.timeline-section,
.limits-section,
.feature-card,
.script-card,
.red-flags-section,
.handoff-column {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.info-block {
  padding: 16px;
}

.info-block.priority {
  background: #dff8ff;
}

.info-block.deadline {
  background: #fff0b8;
}

.info-block.first-step {
  grid-column: 1 / -1;
  background: #d8ffe9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 16px;
  background: white;
}

.feature-card.urgency-card {
  background: #fff0b8;
}

.feature-card.danger-card {
  background: #ffe3e6;
}

.feature-card strong {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-transform: uppercase;
}

.feature-card ul,
.script-card ul,
.red-flags {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-item {
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.question-item strong {
  margin-bottom: 8px;
  background: var(--mint);
  color: var(--ink);
}

h3 {
  margin: 0 0 10px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.info-block p,
.evidence-section p,
.checklist-section p,
.family-translation p,
.timeline-section p,
.limits-section p,
.feature-card p,
.feature-card li,
.script-card p,
.script-card li,
.red-flags-section li,
.handoff-column li {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

blockquote {
  margin: 12px 0 0;
  padding: 12px;
  border-left: 5px solid var(--ink);
  background: rgba(255, 255, 255, 0.65);
  font-weight: 900;
}

.evidence-section,
.checklist-section,
.timeline-section,
.limits-section {
  padding: 16px;
}

.checklist-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.checklist-heading h3 {
  margin: 0;
}

#checklist-progress {
  flex: none;
  padding: 6px 9px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

#checklist-progress[data-complete="true"] {
  background: var(--mint);
}

.evidence-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.evidence-heading p {
  max-width: 650px;
  margin-top: 5px;
}

.source-match-count {
  flex: none;
  padding: 7px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 1000;
}

.source-match-count[data-tone="success"] {
  background: var(--mint);
}

.source-match-count[data-tone="warning"] {
  background: var(--orange);
}

.source-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.source-document {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fffdf5;
}

.source-document-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: white;
}

.source-document-toolbar strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.source-document-toolbar button {
  min-height: 34px;
  padding: 5px 9px;
  border-color: white;
  background: var(--yellow);
  box-shadow: none;
  font-size: 0.78rem;
}

.source-text {
  max-height: 410px;
  min-height: 220px;
  overflow: auto;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.75;
}

.source-text:focus-visible {
  outline: 5px solid var(--blue);
  outline-offset: -5px;
}

.source-text mark {
  padding: 2px 1px;
  border-bottom: 3px solid var(--ink);
  background: var(--yellow);
  color: inherit;
  transition: opacity 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.source-text mark[data-match="closest"] {
  background: #ffd2a8;
  border-bottom-style: dashed;
}

.source-text mark.is-active {
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--ink);
}

.source-text mark.is-muted {
  opacity: 0.28;
}

.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-item {
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.evidence-item-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.evidence-item-header > strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-transform: uppercase;
}

.source-match-pill {
  padding: 4px 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.source-match-pill[data-match="closest"] {
  background: #ffd2a8;
}

.source-match-pill[data-match="missing"] {
  background: #ffe3e6;
}

.evidence-item q {
  display: block;
  font-weight: 1000;
}

.evidence-item p {
  margin-top: 8px;
}

.source-locate,
.source-jump {
  min-height: 38px;
  margin-top: 12px;
  padding: 6px 10px;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.source-locate.is-active,
.source-jump.is-active {
  background: var(--mint);
}

.source-jump[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.source-map-status {
  margin-top: 12px !important;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #dff8ff;
}

.source-map-status[data-tone="success"] {
  background: var(--mint);
}

.source-map-status[data-tone="warning"] {
  background: #ffd2a8;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checklist;
}

.checklist li {
  counter-increment: checklist;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.checklist li::before {
  content: counter(checklist);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.4rem;
}

.checklist li.is-complete {
  background: #d8ffe9;
}

.checklist li.is-complete::before {
  content: "OK";
  background: var(--mint);
  font-size: 1rem;
}

.checklist-item-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.checklist-control {
  display: inline-flex;
  flex: none;
  gap: 6px;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.checklist-control input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--blue);
}

.owner-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.owner-pill.adult {
  background: var(--orange);
}

.owner-pill.pro {
  background: var(--danger);
  color: white;
}

.handoff-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.handoff-column {
  padding: 16px;
}

.handoff-column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.handoff-column.teen {
  background: #d8ffe9;
}

.handoff-column.adult {
  background: #fff0b8;
}

.handoff-column.pro {
  background: #ffe3e6;
}

.family-translation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: var(--ink);
  color: var(--cream);
}

.translation-heading,
.translation-footer {
  grid-column: 1 / -1;
}

.translation-heading,
.translation-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.translation-eyebrow {
  margin: 0 0 6px !important;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.translation-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.translation-badges span {
  padding: 6px 9px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.translation-badges [data-status="translated"] {
  background: var(--mint);
  color: var(--ink);
}

.translation-badges [data-status="unavailable"] {
  background: var(--danger);
}

.translation-message {
  padding: 16px;
  border: 3px solid var(--cream);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 1.14rem;
}

.back-translation {
  padding: 13px;
  border: 3px solid var(--cream);
  border-radius: 8px;
  background: #dff8ff;
  color: var(--ink);
}

.back-translation strong {
  display: block;
  margin-bottom: 6px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-transform: uppercase;
}

.translation-footer > p {
  max-width: 700px;
  color: #d9d4c9;
  font-size: 0.86rem;
}

.copy-button {
  min-height: 48px;
  padding: 8px 14px;
}

.script-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.script-card,
.red-flags-section {
  padding: 16px;
  background: var(--paper);
}

.script-card {
  background: #dff8ff;
}

.packet-card {
  background: #d8ffe9;
}

.packet-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.packet-columns > div {
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.packet-columns strong {
  display: block;
  margin-bottom: 8px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.red-flags-section {
  background: #ffe3e6;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.timeline-item strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.verify-note {
  margin-top: 10px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
}

.adult-dialog {
  width: min(960px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 20px;
  overflow: auto;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.adult-dialog::backdrop {
  background: rgba(20, 17, 15, 0.72);
}

.adult-dialog-header,
.adult-dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.adult-dialog-header {
  padding-bottom: 16px;
  border-bottom: 4px solid var(--ink);
}

.adult-dialog-header h2 {
  margin: 8px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.dialog-close,
.adult-dialog-actions button {
  min-height: 44px;
  padding: 8px 13px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font-weight: 1000;
  text-transform: uppercase;
}

.adult-alert {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
}

.adult-alert[data-risk="GREEN"] {
  background: #76e36f;
}

.adult-alert[data-risk="ORANGE"] {
  background: var(--orange);
}

.adult-alert[data-risk="RED"] {
  background: #8f2430;
  color: white;
}

.adult-alert > span {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.8rem;
  text-align: center;
}

.adult-alert p {
  margin: 4px 0 0;
  font-weight: 800;
}

.adult-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.adult-summary-grid section {
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.adult-summary-grid .adult-first-step {
  background: #d8ffe9;
}

.adult-summary-grid p,
.adult-summary-grid li {
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
}

.adult-summary-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.adult-source-note {
  margin-top: 12px;
  padding: 13px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #dff8ff;
}

.adult-source-note p {
  margin: 4px 0 0;
  font-weight: 900;
}

.adult-dialog-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.adult-dialog-actions button:first-child {
  background: var(--yellow);
}

.adult-dialog-actions button:last-child {
  background: var(--blue);
  color: white;
}

@media (max-width: 1040px) {
  .hero-band,
  .workspace,
  .workspace.has-analysis,
  .home-band,
  .home-final-cta,
  .evals-next-step {
    grid-template-columns: 1fr;
  }

  .home-band.ai-band {
    grid-template-columns: 1fr;
  }

  .home-band.output-band {
    grid-template-columns: 1fr;
  }

  .home-overview-grid {
    grid-template-columns: 1fr;
  }

  .judge-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evaluation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .files-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-band .visual-demo {
    grid-row: 2;
  }

  .ai-band .home-band-copy {
    grid-row: 1;
  }

  .signal-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .input-panel {
    position: static;
  }

  .guide-summary {
    top: 12px;
  }

  .clock-stage {
    justify-content: start;
  }

  .clock-card {
    width: min(360px, 100%);
  }

  .home-final-copy {
    max-width: 760px;
  }
}

@media (max-width: 1050px) {
  .scroll-companion {
    display: none;
  }
}

@media (min-width: 1500px) {
  .scroll-companion {
    right: max(16px, calc((100vw - 1480px) / 2));
    width: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-companion {
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) and (min-width: 721px) {
  .top-bar {
    flex-wrap: wrap;
  }

  .top-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .top-actions a {
    padding: 8px 5px;
    font-size: 0.82rem;
    text-align: center;
  }
}

@media (min-width: 1041px) and (max-height: 1050px) {
  .input-panel {
    position: static;
  }

  .input-panel.is-collapsed {
    position: sticky;
    top: 122px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 10px;
  }

  .top-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .top-actions a {
    text-align: center;
    padding: 8px 6px;
  }

  .hero-band {
    min-height: 0;
    padding: 32px 0 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-band {
    min-height: 0;
    margin: 24px -10px 0;
    padding: 48px 20px;
  }

  .judge-quick-path {
    margin: 24px -10px 0;
    padding: 34px 20px;
  }

  .judge-quick-path-heading,
  .evaluation-summary-heading,
  .evaluation-cases-heading {
    display: grid;
  }

  .judge-quick-links,
  .evaluation-summary-grid {
    grid-template-columns: 1fr;
  }

  .evals-hero {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 18px;
    min-height: 0;
    padding: 38px 4px 22px;
  }

  .evals-hero h1 {
    font-size: 3.4rem;
  }

  .evaluation-summary,
  .evaluation-cases {
    padding: 20px 14px;
  }

  #evaluation-total {
    width: fit-content;
    white-space: normal;
  }

  .evals-next-step {
    padding: 26px 18px;
  }

  .evals-demo-links a {
    min-width: 0;
  }

  .home-overview,
  .notice-spectrum {
    margin: 24px 0;
    padding: 24px 16px;
  }

  .home-overview-grid,
  .notice-spectrum-list,
  .output-list,
  .impact-grid,
  .demo-launchers,
  .red-priority-grid,
  .handoff-finder-grid,
  .demo-risk-story {
    grid-template-columns: 1fr;
  }

  .demo-risk-arrow {
    transform: rotate(90deg);
  }

  .overview-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .overview-item img {
    width: 64px;
    height: 64px;
  }

  .risk-asset-stage {
    min-height: 310px;
  }

  .risk-ladder div {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .dashboard-asset,
  .pipeline-asset {
    width: 100%;
  }

  .home-band h2,
  .home-final-cta h2,
  .tool-intro h1 {
    font-size: 2.8rem;
  }

  .home-final-cta {
    padding: 48px 18px;
  }

  .handoff-preview .handoff-preview-grid {
    grid-template-columns: 1fr;
  }

  .handoff-preview-grid section + section {
    border-top: 2px solid #b9c2c8;
    border-left: 0;
  }

  .tool-intro {
    grid-template-columns: 1fr 110px;
    min-height: 190px;
    padding: 34px 0 22px;
  }

  .files-intro {
    grid-template-columns: 1fr 110px;
    min-height: 220px;
    padding: 34px 0 22px;
  }

  .files-intro h1 {
    font-size: 3rem;
  }

  .files-intro > img {
    width: 108px;
  }

  .files-privacy {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 14px;
  }

  .files-privacy img {
    width: 58px;
    height: 58px;
  }

  .file-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .file-toolbar-actions,
  .files-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .files-empty {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    min-height: 240px;
    margin: 30px auto;
  }

  .files-empty img {
    width: 96px;
  }

  .tool-intro img {
    width: 108px;
  }

  .hero-stack {
    width: min(100%, 360px);
    min-height: 380px;
    justify-self: center;
  }

  .hero-asset {
    left: 0;
    width: 205px;
  }

  .asset-ticket {
    font-size: 0.78rem;
  }

  .ticket-one {
    left: 4px;
  }

  .ticket-two {
    right: 4px;
  }

  .privacy-strip,
  .result-header,
  .family-translation,
  .translation-heading,
  .translation-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .privacy-strip {
    display: grid;
  }

  .guide-toolbar,
  .handoff-finder-heading,
  .translation-heading,
  .translation-footer {
    display: grid;
  }

  .handoff-finder-heading > span {
    max-width: none;
    text-align: left;
  }

  .handoff-finder-search {
    grid-template-columns: 1fr;
  }

  .handoff-finder-search label,
  .handoff-location-note,
  .handoff-search-phrase {
    grid-column: 1;
    grid-row: auto;
  }

  .guide-mode-toggle {
    width: 100%;
  }

  .guide-summary {
    position: static;
    grid-template-columns: 1fr;
  }

  .deadline-planner {
    grid-template-columns: 1fr;
  }

  .deadline-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .deadline-inputs button {
    grid-column: 1 / -1;
  }

  .guide-summary > div {
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }

  .guide-summary > div:last-child {
    border-bottom: 0;
  }

  .guide-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-navigation {
    grid-template-columns: 1fr 1fr;
  }

  #guide-navigation-status {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .guide-navigation button {
    grid-row: 2;
  }

  .category-grid,
  .signal-rail,
  .sample-row,
  .form-actions,
  .field-row,
  .custom-language-row,
  .action-grid,
  .feature-grid,
  .source-map-grid,
  .script-grid,
  .packet-columns,
  .handoff-section,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .photo-actions,
  .export-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checklist-heading,
  .adult-dialog-header,
  .adult-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .adult-summary-grid,
  .adult-alert {
    grid-template-columns: 1fr;
  }

  .red-handoff-summary {
    grid-template-columns: 1fr;
  }

  .red-handoff-summary button {
    width: 100%;
  }

  .adult-alert > span {
    text-align: left;
  }

  .adult-dialog-actions button {
    width: 100%;
  }

  .photo-preview {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .photo-preview img {
    width: 82px;
    height: 68px;
  }

  .privacy-review-item {
    grid-template-columns: 1fr;
  }

  .privacy-review-item button {
    width: 100%;
  }

  .risk-badge {
    width: 100%;
  }

  .analysis-progress-heading {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .analysis-progress-heading img {
    width: 82px;
  }

  .analysis-stages li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .stage-state {
    grid-column: 2;
    text-align: left;
  }

  .evidence-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .source-match-count {
    width: fit-content;
  }

  .source-text {
    min-height: 190px;
    max-height: 330px;
  }

  .dashboard-panel {
    min-height: 0;
  }

  .dashboard-empty {
    min-height: 520px;
  }

  .empty-asset-stack {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    width: min(100%, 300px);
    min-height: 190px;
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-companion img {
    animation: companionWalk 720ms steps(2, jump-none) infinite;
  }

  .risk-badge.risk-arrival {
    animation: riskArrival 820ms ease-out 2;
  }

  .demo-risk-arrow {
    animation: demoRiskMove 900ms ease-in-out 2;
  }

  .demo-risk-needle {
    animation: demoRiskDial 1.15s ease-out both;
  }

  .clock-card {
    animation: bob 4s ease-in-out infinite;
  }

  .home-feature-asset:not(.dashboard-asset):not(.pipeline-asset) {
    animation: assetFloat 5s ease-in-out infinite;
  }

  .home-view .reveal-item {
    opacity: 0;
    transform: translateY(24px);
  }

  .home-view .reveal-item.is-revealed {
    animation: riseIn 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) both;
  }

  .dashboard-demo.is-revealed .dashboard-scan {
    animation: dashboardScan 3.6s ease-in-out 600ms infinite;
  }

  .dashboard-demo.is-revealed .status-source {
    animation: statusPop 3.6s ease-in-out 1.35s infinite;
  }

  .dashboard-demo.is-revealed .status-safe {
    animation: statusPop 3.6s ease-in-out 2.15s infinite;
  }

  .pipeline-demo.is-revealed .pipeline-signal {
    animation: pipelineFlow 3.2s linear infinite;
  }

  .pipeline-demo.is-revealed .signal-two {
    animation-delay: 1s;
  }

  .pipeline-demo.is-revealed .signal-three {
    animation-delay: 2s;
  }

  .risk-asset-stage.is-revealed .risk-main-asset {
    animation: riskRock 3s ease-in-out infinite;
  }

  .risk-asset-stage.is-revealed .risk-route-asset {
    animation: routeLift 3s ease-in-out 300ms infinite;
  }

  .risk-asset-stage.is-revealed .route-signal {
    animation: routeFlow 2.7s ease-in-out infinite;
  }

  .risk-asset-stage.is-revealed .route-two {
    animation-delay: 850ms;
  }

  .risk-asset-stage.is-revealed .route-three {
    animation-delay: 1.7s;
  }

  .analysis-stages li.is-active .stage-number {
    animation: stagePulse 900ms ease-in-out infinite alternate;
  }
}

@keyframes riskArrival {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); }
}

@keyframes demoRiskMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes demoRiskDial {
  from { right: calc(100% - 16px); }
  to { right: 2%; }
}

@keyframes companionWalk {
  0% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(-1.5deg); }
}

@keyframes bob {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

@keyframes viewIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes assetFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes stagePulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes dashboardScan {
  0%,
  12% {
    top: 14%;
    opacity: 0;
  }
  20% {
    opacity: 0.88;
  }
  68% {
    top: 79%;
    opacity: 0.88;
  }
  78%,
  100% {
    top: 79%;
    opacity: 0;
  }
}

@keyframes statusPop {
  0%,
  22%,
  100% {
    opacity: 0;
    scale: 0.82;
  }
  32%,
  66% {
    opacity: 1;
    scale: 1;
  }
  78% {
    opacity: 0;
    scale: 0.94;
  }
}

@keyframes pipelineFlow {
  0% {
    left: 10%;
    opacity: 0;
    transform: scale(0.7);
  }
  12% {
    opacity: 1;
  }
  48% {
    left: 48%;
    opacity: 1;
    transform: scale(1.1);
  }
  88% {
    left: 86%;
    opacity: 1;
  }
  100% {
    left: 90%;
    opacity: 0;
    transform: scale(0.7);
  }
}

@keyframes riskRock {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(2deg) translateY(-7px);
  }
}

@keyframes routeLift {
  0%,
  100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(1deg) translateY(-8px);
  }
}

@keyframes routeFlow {
  0% {
    left: 40%;
    top: 54%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  55% {
    left: 61%;
    top: 65%;
    opacity: 1;
  }
  88% {
    left: 82%;
    top: 76%;
    opacity: 1;
  }
  100% {
    left: 84%;
    top: 77%;
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor: url("/assets/cursor-arrow.svg") 5 4, auto;
  }

  a,
  button,
  summary,
  label[for],
  select,
  input[type="radio"],
  input[type="checkbox"],
  input[type="file"],
  [role="button"],
  [data-run-demo],
  [data-route-link] {
    cursor: url("/assets/cursor-pointer.svg") 18 5, pointer !important;
  }

  button:disabled,
  input:disabled,
  select:disabled,
  [aria-disabled="true"] {
    cursor: not-allowed !important;
  }
}
