:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --paper-deep: #ebe8df;
  --ink: #111514;
  --muted: #626a67;
  --line: #c7cbc7;
  --line-strong: #929995;
  --cyan: #16d6d1;
  --cyan-dark: #087f7c;
  --cyan-soft: #d9fbf9;
  --white: #fffefa;
  --green: #177448;
  --green-soft: #e2f4e9;
  --amber: #9b5a00;
  --amber-soft: #fff0d0;
  --red: #a5262c;
  --red-soft: #fde5e6;
  --blue: #26589f;
  --blue-soft: #e7effd;
  --shadow: 0 18px 45px rgb(17 21 20 / 9%);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgb(17 21 20 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(17 21 20 / 3%) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

button,
textarea,
input {
  font: inherit;
}

button,
a,
input,
textarea,
summary {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--cyan-dark);
}

a {
  color: var(--ink);
  text-decoration-color: var(--cyan-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--cyan);
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgb(245 243 237 / 93%);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
}

.planned-notice {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 0.84rem;
  text-align: center;
}

.planned-notice strong {
  white-space: nowrap;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}

.site-header nav a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.language-picker select {
  min-width: 90px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-picker select:hover {
  background: var(--cyan-soft);
}

.chapa-link img,
.principles-brand img {
  display: block;
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  min-height: 540px;
  padding: 86px 0 66px;
}

.product-intro {
  margin: 0 0 24px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.product-intro h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: .98;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: rgb(255 255 255 / 20%);
}

.intro-grid article {
  padding: 22px;
  background: var(--ink);
}

.intro-grid h3 { margin: 0 0 10px; color: var(--cyan); }
.intro-grid p { margin: 0; color: #dfe6e2; line-height: 1.65; }
.learn-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.learn-links a { color: #fff; font-weight: 800; text-underline-offset: 5px; }
.input-help-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
.input-help-row a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: var(--cyan-dark);
  text-underline-offset: 4px;
}

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

.eyebrow,
.section-number {
  margin: 0 0 12px;
  color: var(--cyan-dark);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 7rem);
  font-weight: 880;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: #343b39;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.privacy-pill {
  display: inline-flex;
  margin: 28px 0 0;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  perspective: 900px;
}

.citation-sheet {
  position: absolute;
  inset: 34px 0 0 28px;
  min-height: 275px;
  padding: 42px 34px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 13px 13px 0 var(--ink);
  transform: rotate(2.5deg);
}

.citation-sheet--back {
  inset: 10px 24px 25px 0;
  background: var(--cyan);
  box-shadow: none;
  transform: rotate(-5deg);
}

.citation-sheet__tag {
  display: inline-block;
  margin-bottom: 30px;
  padding: 4px 7px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.citation-sheet__line {
  display: block;
  width: 72%;
  height: 9px;
  margin: 15px 0;
  border-radius: 10px;
  background: var(--ink);
}

.citation-sheet__line--long {
  width: 100%;
}

.citation-sheet__line--short {
  width: 54%;
}

.citation-sheet__stamp {
  position: absolute;
  right: 27px;
  bottom: 24px;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 3px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
  transform: rotate(-11deg);
}

.scan-line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 54%;
  width: 2px;
  background: linear-gradient(transparent, var(--cyan-dark), transparent);
  box-shadow: 0 0 18px var(--cyan);
  animation: scan 4s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateX(-95px); opacity: 0.3; }
  50% { transform: translateX(90px); opacity: 1; }
}

.app-message {
  position: sticky;
  z-index: 10;
  top: 86px;
  margin: 0 0 18px;
  padding: 14px 17px;
  border: 1px solid var(--line-strong);
  border-left-width: 6px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.app-message--success { border-left-color: var(--green); }
.app-message--error { border-left-color: var(--red); }
.app-message--info { border-left-color: var(--blue); }

.workspace-panel {
  margin-bottom: 34px;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 254 250 / 96%);
  box-shadow: var(--shadow);
}

.input-panel.is-dragging {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 5px rgb(22 214 209 / 25%), var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-heading p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.local-badge {
  padding: 8px 10px;
  border: 1px solid var(--green);
  border-radius: 5px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#input-label {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
}

textarea {
  display: block;
  width: 100%;
  min-height: 270px;
  resize: vertical;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

textarea:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 4px rgb(22 214 209 / 18%);
}

.input-actions,
.records-toolbar,
.verify-actions,
.selection-actions,
.evidence-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.input-actions {
  margin-top: 17px;
}

.button,
.export-button,
.text-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  line-height: 1.15;
  text-decoration: none;
}

.button--primary {
  margin-left: auto;
  background: var(--ink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--cyan);
}

.button--primary:hover {
  background: #27302d;
}

.button--secondary {
  background: var(--cyan-soft);
}

.button--ghost,
.button--file {
  background: transparent;
}

.button--ghost:hover,
.button--file:hover,
.button--secondary:hover {
  background: var(--paper-deep);
}

.button--file {
  display: grid;
  cursor: pointer;
  text-align: left;
}

.button--file small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.fine-print,
.network-notice {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.network-notice {
  max-width: 790px;
  padding-left: 23px;
  position: relative;
}

.network-notice::before {
  position: absolute;
  left: 0;
  content: "↗";
  color: var(--cyan-dark);
  font-weight: 900;
}

.section-heading--results {
  align-items: center;
}

.record-summary {
  display: flex;
  max-width: 430px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.summary-chip {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.78rem;
  white-space: nowrap;
}

.records-toolbar {
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-button {
  padding: 7px 0;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--cyan-dark);
  text-underline-offset: 4px;
}

.verify-actions .button--primary {
  margin-left: 0;
}

.progress {
  margin: 18px 0;
}

.progress__track,
.score-track {
  overflow: hidden;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--paper-deep);
}

.progress__track span,
.score-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan-dark);
  transition: width 180ms ease;
}

.progress__label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-state {
  margin-top: 24px;
  padding: 52px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.records {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.record-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 14px;
  background: #fff;
}

.record-card--verified { border-left-color: var(--green); }
.record-card--doubtful { border-left-color: var(--amber); }
.record-card--incorrect { border-left-color: var(--red); }
.record-card--not-checked { border-left-color: var(--line-strong); }

.record-card__header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfbf8;
}

.record-select {
  display: grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  cursor: pointer;
}

.record-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan-dark);
}

.record-index {
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.record-heading {
  min-width: 0;
}

.record-heading h3 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.06rem;
  line-height: 1.35;
}

.record-format {
  color: var(--cyan-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge--verified { background: var(--green-soft); color: var(--green); }
.status-badge--doubtful { background: var(--amber-soft); color: var(--amber); }
.status-badge--incorrect { background: var(--red-soft); color: var(--red); }
.status-badge--not-checked { background: var(--paper-deep); color: var(--muted); }

.record-card__body {
  padding: 20px;
}

.metadata-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metadata-row {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metadata-row dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metadata-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.muted {
  color: var(--muted);
  font-style: italic;
}

.issue-list {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.issue {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.issue span {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-weight: 900;
}

.issue--error { background: var(--red-soft); color: var(--red); }
.issue--warning { background: var(--amber-soft); color: var(--amber); }
.issue--info { background: var(--blue-soft); color: var(--blue); }

.verification-panel {
  margin-top: 17px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.verification-reason {
  margin: 0 0 12px;
  font-weight: 700;
}

.evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 800;
}

.score-panel,
.editorial-updates,
.corrections,
.alternatives {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.score-panel__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.score-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.score-fields li {
  display: flex;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 0.72rem;
}

.editorial-updates {
  padding: 16px;
  border: 1px solid var(--red);
  border-radius: 9px;
  background: var(--red-soft);
}

.editorial-updates h4,
.corrections h4 {
  margin: 0 0 7px;
}

.editorial-updates > p {
  margin: 0 0 12px;
  font-size: 0.83rem;
}

.editorial-updates ul,
.alternatives ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-updates li,
.alternatives li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 7px;
  background: rgb(255 255 255 / 67%);
}

.editorial-updates small {
  color: var(--muted);
}

.correction-list {
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
}

.correction {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.correction input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan-dark);
}

.correction__body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.correction__body > span {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.correction__body small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alternatives summary,
.raw-record summary {
  cursor: pointer;
  font-weight: 800;
}

.raw-record {
  margin-top: 15px;
}

.raw-record pre {
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #191d1c;
  color: #e8f3ef;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.export-button {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
  text-align: center;
}

.export-button span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
}

.export-button:hover:not(:disabled) {
  background: var(--cyan-soft);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1220px, calc(100% - 32px));
  margin: 52px auto 0;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.chapa-principles {
  position: sticky;
  z-index: 30;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 11px max(16px, env(safe-area-inset-left));
  background: #111;
  color: #fff;
  box-shadow: 0 -8px 30px rgb(0 0 0 / 14%);
}

.chapa-principles p { margin: 0; font-weight: 800; }
.chapa-principles nav { display: flex; flex-wrap: wrap; gap: 12px; }
.chapa-principles a { color: inherit; }
.principles-brand { display: inline-flex; gap: 8px; align-items: center; font-weight: 900; text-decoration: none; }

.privacy-page {
  width: min(860px, calc(100% - 32px));
  margin: 70px auto;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.privacy-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.privacy-page h2 {
  margin-top: 36px;
  font-size: 1.35rem;
}

.privacy-page table {
  width: 100%;
  border-collapse: collapse;
}

.privacy-page th,
.privacy-page td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.privacy-page th {
  background: var(--paper);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 64px;
  }

  .hero-visual {
    width: min(420px, 100%);
    min-height: 310px;
    margin: 0 auto;
  }

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

  .intro-grid { grid-template-columns: 1fr; }

  .section-heading--results {
    align-items: flex-start;
  }

  .record-summary {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .site-header nav a {
    display: none;
  }

  .chapa-principles { grid-template-columns: 1fr; gap: 6px; }
  .chapa-principles p { font-size: .82rem; }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  main {
    width: min(100% - 20px, 1220px);
  }

  .hero {
    padding: 50px 4px 42px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 5rem);
  }

  .workspace-panel {
    padding: 22px 15px;
    border-radius: 13px;
  }

  .section-heading,
  .section-heading--results,
  .site-footer {
    flex-direction: column;
  }

  .local-badge {
    align-self: flex-start;
  }

  .button--primary {
    width: 100%;
    margin-left: 0;
  }

  .records-toolbar {
    align-items: stretch;
  }

  .verify-actions {
    width: 100%;
  }

  .verify-actions .button {
    flex: 1 1 auto;
  }

  .record-card__header {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: 14px;
  }

  .status-badge {
    grid-column: 3;
    justify-self: start;
  }

  .record-card__body {
    padding: 14px;
  }

  .metadata-list {
    grid-template-columns: 1fr;
  }

  .export-grid {
    grid-template-columns: 1fr 1fr;
  }

  .export-button {
    min-height: 104px;
  }

  .site-footer {
    width: min(100% - 24px, 1220px);
    align-items: flex-start;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .privacy-page {
    width: min(100% - 20px, 860px);
    margin: 28px auto;
  }

  .privacy-page table,
  .privacy-page tbody,
  .privacy-page tr,
  .privacy-page th,
  .privacy-page td {
    display: block;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .hero-visual {
    min-height: 260px;
  }

  .citation-sheet {
    inset: 28px 8px 0 18px;
    min-height: 220px;
    padding: 28px 23px;
  }

  .citation-sheet--back {
    inset: 8px 20px 23px 4px;
  }

  .export-grid {
    grid-template-columns: 1fr;
  }

  .score-panel__top,
  .input-actions,
  .selection-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .input-actions .button,
  .input-actions .button--file {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero-visual,
  .input-panel,
  .records-toolbar,
  .exports-panel,
  .site-footer,
  .record-select,
  .apply-corrections {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
  }

  .workspace-panel,
  .record-card {
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .planned-notice {
    align-items: center;
    flex-direction: column;
    gap: 0.1rem;
  }
}
