:root {
  --navy: #073b4c;
  --navy-deep: #052d3a;
  --teal: #0095a8;
  --teal-dark: #00798a;
  --teal-soft: #e7f6f7;
  --lime: #79b82a;
  --lime-soft: #f1f8e7;
  --ink: #16292f;
  --muted: #617278;
  --subtle: #839196;
  --canvas: #f3f7f7;
  --surface: #ffffff;
  --line: #dbe5e6;
  --line-strong: #c7d4d6;
  --success: #19724e;
  --success-soft: #e9f6ef;
  --warning: #9a6200;
  --warning-soft: #fff5db;
  --danger: #aa3434;
  --danger-soft: #fcecec;
  --shadow-sm: 0 1px 2px rgba(7, 59, 76, .04), 0 4px 14px rgba(7, 59, 76, .04);
  --shadow-lg: 0 22px 60px rgba(7, 47, 61, .14);
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
h2 { font-size: 1.35rem; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.35; }

:focus-visible {
  outline: 3px solid rgba(0, 149, 168, .3);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { display: block; width: 146px; height: auto; }
.brand-divider { width: 1px; height: 28px; background: var(--line-strong); }
.brand-product { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.account-menu { display: flex; align-items: center; gap: 14px; }
.account-menu form { margin: 0; }
.language-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9px; background: #eef4f4; }
.language-switch a { min-width: 68px; min-height: 28px; display: grid; place-items: center; padding: 4px 10px; border-radius: 6px; color: var(--muted); font-size: .65rem; font-weight: 800; text-decoration: none; }
.language-switch a:hover { color: var(--navy); }
.language-switch a.active { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 4px rgba(7, 59, 76, .14); }
.account-copy { display: grid; text-align: right; line-height: 1.2; }
.account-copy span { color: var(--subtle); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.account-copy strong { margin-top: 3px; font-size: .82rem; color: var(--ink); }

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 52px 0 80px;
}
.upload-only {
  position: relative;
  isolation: isolate;
  width: min(100%, 1040px);
  min-height: calc(100vh - 204px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.upload-heading { position: relative; z-index: 1; margin-bottom: 25px; text-align: center; }
.upload-heading > span { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--teal-dark); font-size: .68rem; font-weight: 850; letter-spacing: .16em; }
.upload-heading > span::before, .upload-heading > span::after { content: ""; width: 14px; height: 1px; background: var(--teal); opacity: .55; }
.upload-only h1 { margin: 0; font-size: clamp(2.15rem, 4vw, 2.8rem); }
.home-utilities { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -13px 2px 12px; }
.past-reviews-link { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-dark); font-size: .71rem; font-weight: 750; text-decoration: none; }
.past-reviews-link span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--teal-soft); font-size: .72rem; }
.past-reviews-link:hover { color: var(--navy); }
.home-language { background: rgba(238,244,244,.9); }
.brand-shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.brand-shapes span { position: absolute; display: block; border: 1px solid rgba(0,149,168,.17); border-radius: 15px; transform: rotate(45deg); animation: shape-float 7s ease-in-out infinite; }
.brand-shapes span:nth-child(1) { width: 72px; height: 72px; left: -126px; top: 26%; }
.brand-shapes span:nth-child(2) { width: 38px; height: 38px; right: -88px; top: 17%; border-color: rgba(121,184,42,.25); animation-delay: -2.2s; }
.brand-shapes span:nth-child(3) { width: 96px; height: 96px; right: -155px; bottom: 18%; border-color: rgba(7,59,76,.1); animation-delay: -4.1s; }
@keyframes shape-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.app-footer { border-top: 1px solid var(--line); background: #edf3f3; color: var(--muted); }
.app-footer > div {
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .78rem;
}
.app-footer strong { color: var(--navy); }

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.page-heading { width: min(100%, 820px); margin: 0 auto 26px; }
.page-heading h1 { margin-bottom: 14px; max-width: 760px; }
.page-heading > div:first-child > p:last-child {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #cfe6d7;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.trust-chip span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel-heading, .section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.panel-heading { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .section-heading h2 { margin: 3px 0 0; }
.step-label, .format-note {
  color: var(--teal-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.format-note { color: var(--subtle); letter-spacing: 0; font-weight: 600; }

.process-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 26px;
  padding: 0;
  overflow: hidden;
  background: #edf3f3;
  border: 1px solid var(--line);
  border-radius: 12px;
  list-style: none;
}
.process-strip li {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
}
.process-strip li + li::before { content: ""; position: absolute; left: 0; height: 36px; width: 1px; background: var(--line-strong); }
.process-strip li > span {
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}
.process-strip li > div { display: grid; line-height: 1.25; }
.process-strip strong { font-size: .82rem; }
.process-strip small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.process-strip li.active { background: var(--surface); }
.process-strip li.active > span { border-color: var(--teal); background: var(--teal); color: #fff; }
.process-strip li.complete > span { border-color: var(--success); background: var(--success); color: #fff; }

.dashboard-grid { width: min(100%, 820px); margin: 0 auto; }
.upload-panel { padding: 24px; }
.upload-only .upload-panel { position: relative; overflow: hidden; border-color: #cbdfe1; background: linear-gradient(160deg, #fff 0%, #fbfefe 100%); box-shadow: 0 18px 50px rgba(7,59,76,.1), 0 2px 5px rgba(7,59,76,.04); }
.upload-only .upload-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--teal), #31bac4 62%, var(--lime)); }
.upload-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.new-review-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: #f7fafa; font-size: .68rem; font-weight: 750; }
.new-review-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,149,168,.1); }
.file-counter { color: var(--subtle); font-size: .7rem; font-weight: 700; transition: color .2s ease; }
.review-form.has-files .file-counter { color: var(--success); }
.intake-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 18px; }
.intake-column { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.source-column { display: grid; align-content: start; gap: 14px; }
.reference-column { display: grid; align-content: start; gap: 14px; background: linear-gradient(150deg, #f8fcfc 0%, #fff 75%); }
.intake-label { display: flex; align-items: center; gap: 11px; min-height: 38px; }
.intake-number { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-dark); font-size: .72rem; font-weight: 850; }
.intake-label > div { display: grid; min-width: 0; line-height: 1.25; }
.intake-label strong { color: var(--navy); font-size: .8rem; }
.intake-label small { margin-top: 3px; color: var(--subtle); font-size: .66rem; }
.reference-select-wrap { display: grid; gap: 6px; }
.reference-select-wrap label { color: var(--muted); font-size: .67rem; font-weight: 750; letter-spacing: .02em; }
.reference-select-wrap select { min-height: 48px; padding-right: 38px; border-color: #bad8dc; background-color: #fff; color: var(--navy); font-size: .78rem; font-weight: 750; }
.reference-set[hidden] { display: none; }
.reference-set { display: grid; gap: 12px; }
.reference-set-status { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #cae4d6; border-radius: 10px; background: var(--success-soft); }
.reference-set-status > span { flex: 0 0 26px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; font-size: .72rem; font-weight: 900; }
.reference-set-status > div { display: grid; min-width: 0; line-height: 1.25; }
.reference-set-status strong { color: var(--success); font-size: .74rem; }
.reference-set-status small { margin-top: 3px; overflow: hidden; color: #627c70; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.reference-set-status.has-error { border-color: #edcaca; background: var(--danger-soft); }
.reference-set-status.has-error > span { background: var(--danger); }
.reference-set-status.has-error strong { color: var(--danger); }
.reference-files { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.reference-files li { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.reference-check { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: var(--success-soft); color: var(--success); font-size: .66rem; font-weight: 900; }
.reference-files li > div { display: grid; min-width: 0; line-height: 1.25; }
.reference-files strong { color: var(--ink); font-size: .7rem; }
.reference-files small { margin-top: 3px; overflow: hidden; color: var(--subtle); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.reference-files .is-missing { border-color: #edcaca; background: #fffafa; }
.reference-files .is-missing .reference-check { background: var(--danger-soft); color: var(--danger); }
.guide-panel { padding: 28px; background: var(--navy); border-color: var(--navy); color: #d8e6e9; box-shadow: 0 14px 34px rgba(7, 59, 76, .12); }
.guide-panel h2 { margin: 14px 0 26px; color: #fff; }
.guide-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; color: #fff; font-family: Georgia, serif; font-weight: 700; }
.guide-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.guide-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.guide-list li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 149, 168, .22); color: #7de3ed; font-size: .7rem; font-weight: 800; }
.guide-list strong { display: block; color: #fff; font-size: .84rem; }
.guide-list p { margin: 4px 0 0; color: #b9ccd1; font-size: .75rem; line-height: 1.5; }
.mode-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.13); }
.mode-note > span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(121,184,42,.15); }
.mode-note > div { display: grid; }
.mode-note strong { color: #fff; font-size: .76rem; }
.mode-note small { color: #a9c0c5; font-size: .66rem; }

.review-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { color: var(--ink); font-size: .82rem; font-weight: 700; }
.field label span { color: var(--subtle); font-weight: 500; }
.field > small { color: var(--muted); font-size: .72rem; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 149, 168, .12); }
textarea { min-height: 88px; resize: vertical; }

.drop-zone {
  position: relative;
  min-height: 142px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  overflow: hidden;
  border: 1.5px dashed #a9c2c6;
  border-radius: 12px;
  background: #f8fbfb;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--teal); background: var(--teal-soft); }
.drop-zone.has-files { border-style: solid; border-color: #add8c0; background: var(--success-soft); }
.drop-zone input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-mark { flex: 0 0 50px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); }
.drop-zone.has-files .upload-mark { background: #d5ecdf; color: var(--success); }
.drop-copy { flex: 1; display: grid; min-width: 0; }
.drop-copy strong { color: var(--ink); font-size: .9rem; }
.drop-copy small { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.drop-zone .button { flex: 0 0 auto; }
.drop-zone-primary { min-height: 240px; flex-direction: column; justify-content: center; text-align: center; }
.drop-zone-primary .drop-copy { flex: 0; }
.drop-zone-primary {
  position: relative;
  border-width: 1.5px;
  border-color: #9ec9ce;
  background-color: #f8fcfc;
  background-image: linear-gradient(rgba(0,149,168,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,149,168,.035) 1px, transparent 1px);
  background-size: 24px 24px;
}
.drop-zone-primary:hover, .drop-zone-primary.is-dragging { border-color: var(--teal); background-color: #eefafb; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0,149,168,.08), 0 10px 28px rgba(0,149,168,.08); }
.drop-zone-primary.has-files { border-color: #7bc49b; background-color: #f0fbf5; background-image: linear-gradient(rgba(25,114,78,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(25,114,78,.03) 1px, transparent 1px); }
.drop-zone-primary .upload-mark { position: relative; width: 62px; height: 62px; flex-basis: 62px; border: 1px solid #c9ecef; border-radius: 18px; background: #e8f8f9; color: var(--teal-dark); box-shadow: 0 8px 20px rgba(0,149,168,.1); }
.drop-zone-primary .upload-mark::after { content: ""; position: absolute; inset: -8px; z-index: -1; border: 1px solid rgba(0,149,168,.12); border-radius: 23px; animation: upload-pulse 2.5s ease-out infinite; }
.review-form.has-files .upload-mark { border-color: #bfe5cf; background: var(--success-soft); color: var(--success); box-shadow: 0 8px 20px rgba(25,114,78,.1); }
.review-form.has-files .upload-mark svg { display: none; }
.review-form.has-files .upload-mark::before { content: "✓"; font-size: 1.45rem; font-weight: 900; }
.review-form.has-files .upload-mark::after { border-color: rgba(25,114,78,.15); }
@keyframes upload-pulse { 0% { opacity: .8; scale: .88; } 70%, 100% { opacity: 0; scale: 1.2; } }
.drop-corner { position: absolute; width: 18px; height: 18px; opacity: .5; transition: opacity .2s ease, border-color .2s ease; }
.corner-one { top: 12px; left: 12px; border-top: 2px solid var(--teal); border-left: 2px solid var(--teal); border-radius: 5px 0 0; }
.corner-two { top: 12px; right: 12px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); border-radius: 0 5px 0 0; }
.corner-three { bottom: 12px; left: 12px; border-bottom: 2px solid var(--teal); border-left: 2px solid var(--teal); border-radius: 0 0 0 5px; }
.corner-four { right: 12px; bottom: 12px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); border-radius: 0 0 5px; }
.drop-zone-primary:hover .drop-corner, .drop-zone-primary.has-files .drop-corner { opacity: 1; }
.drop-zone-primary.has-files .drop-corner { border-color: var(--success); }
.selected-files { display: none; gap: 6px; }
.selected-files.has-files { display: grid; }
.file-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; background: #f5f9f7; border-radius: 7px; color: var(--success); font-size: .72rem; }
.file-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip span { flex: 0 0 auto; color: var(--muted); }
.file-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 13px; border: 1px solid #cce5d7; border-radius: 9px; background: var(--success-soft); color: var(--success); font-size: .72rem; }
.file-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary span { flex: 0 0 auto; color: #5d796b; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 750;
  font-size: .82rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-primary { background: var(--teal-dark); color: #fff; box-shadow: 0 5px 14px rgba(0,121,138,.16); }
.button-primary:hover { background: #006c7b; box-shadow: 0 7px 18px rgba(0,121,138,.22); }
.button-secondary { border-color: #b9dadd; background: var(--teal-soft); color: var(--teal-dark); }
.button-secondary:hover { border-color: var(--teal); background: #daf1f3; }
.button-quiet { border-color: var(--line); background: #fff; color: var(--navy); box-shadow: none; }
.button-quiet:hover { border-color: var(--line-strong); background: #f7fafa; }
.button-small { min-height: 34px; padding: 7px 12px; font-size: .72rem; }
.button-large { min-height: 50px; padding: 13px 20px; font-size: .88rem; }
.action-button { width: 100%; justify-content: space-between; padding-left: 20px; }
.upload-only .action-button { min-height: 54px; padding: 14px 16px 14px 20px; border-radius: 11px; background: linear-gradient(100deg, var(--teal-dark), #00a2b2); box-shadow: 0 9px 22px rgba(0,121,138,.2); }
.upload-only .action-button:not(:disabled):hover { background: linear-gradient(100deg, #006d7c, #008fa0); box-shadow: 0 12px 28px rgba(0,121,138,.28); }
.upload-only .action-button:disabled { background: linear-gradient(100deg, #9fbfc3, #aac9cc); box-shadow: none; }
.button-arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.15); font-size: 1rem; transition: translate .18s ease, background .18s ease; }
.upload-only .action-button:not(:disabled):hover .button-arrow { translate: 3px 0; background: rgba(255,255,255,.22); }
.full-width { width: 100%; }
.is-loading { position: relative; color: transparent !important; }
.button.is-loading { cursor: wait; }
.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.batch-processing {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-color: #c5dfe2;
  background: linear-gradient(155deg, #fff 0%, #f4fbfb 100%);
  box-shadow: 0 18px 50px rgba(7,59,76,.1), 0 2px 5px rgba(7,59,76,.04);
}
.batch-processing[hidden] { display: none; }
.batch-processing::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--teal), #31bac4 62%, var(--lime)); }
.is-processing-batch .upload-panel { display: none; }
.is-processing-batch .home-utilities { display: none; }
.is-processing-batch .upload-heading > span { color: var(--teal); }
.is-processing-batch .upload-heading h1 { font-size: 0; }
.is-processing-batch .upload-heading h1::after { content: attr(data-processing-state); font-size: clamp(2.15rem, 4vw, 2.8rem); }
.is-processing-complete .upload-heading > span { color: var(--success); }
.is-processing-complete .upload-heading h1::after { color: var(--success); }
.is-processing-complete .processing-orbit { background: var(--success-soft); border-color: #cfe6d7; animation: none; }
.is-processing-complete .processing-orbit::after { content: "✓"; display: grid; place-items: center; position: absolute; inset: 0; color: var(--success); font-size: 1.05rem; font-weight: 900; }
.is-processing-complete .processing-orbit i { display: none; }
.processing-heading { display: flex; align-items: center; gap: 18px; }
.processing-heading > div { display: grid; gap: 4px; }
.processing-heading > div > span { color: var(--teal-dark); font-size: .66rem; font-weight: 850; letter-spacing: .14em; }
.processing-heading h2 { margin: 0; font-size: 1.35rem; }
.processing-orbit { position: relative; flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid #ccecef; border-top-color: var(--teal); border-radius: 50%; animation: spin 1.1s linear infinite; }
.processing-orbit i { width: 13px; height: 13px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 7px rgba(0,149,168,.1); }
.processing-progress { margin-top: 32px; }
.processing-track { width: 100%; height: 12px; overflow: hidden; border: 1px solid #d5e5e7; border-radius: 999px; background: #e9f0f1; box-shadow: inset 0 1px 2px rgba(7,59,76,.06); }
.processing-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-dark), #00acbc 72%, var(--lime)); box-shadow: 0 0 16px rgba(0,149,168,.25); transition: width .3s ease; }
.processing-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 11px; }
.processing-status strong { color: var(--navy); font-size: .78rem; }
.processing-status span { color: var(--teal-dark); font-size: .78rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.processing-stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.processing-stages::before { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 1px; background: #d6e4e6; }
.processing-stages li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; color: #8b9da1; font-size: .68rem; font-weight: 750; text-align: center; transition: color .25s ease; }
.processing-stages li span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #cfdee0; border-radius: 50%; background: #fff; color: #87999d; transition: all .25s ease; }
.processing-stages li.active { color: var(--teal-dark); }
.processing-stages li.active span { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 0 0 5px rgba(0,149,168,.1); }
.processing-stages li.complete { color: var(--success); }
.processing-stages li.complete span { border-color: var(--success); background: var(--success); color: transparent; }
.processing-stages li.complete span::after { content: "✓"; color: #fff; font-size: .78rem; font-weight: 900; }
.form-footnote { margin: -12px 0 0; color: var(--muted); text-align: center; font-size: .68rem; }
.demo-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 14px; color: var(--subtle); font-size: .68rem; }
.demo-divider::before, .demo-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.recent-section { width: min(100%, 820px); margin: 46px auto 0; }
.section-heading { margin-bottom: 16px; }
.section-heading > span { color: var(--subtle); font-size: .72rem; }
.review-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.review-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 22px; align-items: center; gap: 14px; min-height: 72px; padding: 12px 18px; color: inherit; text-decoration: none; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row:hover { background: #f9fbfb; }
.review-product-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-dark); font-size: .82rem; font-weight: 800; }
.review-main { display: grid; min-width: 0; }
.review-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.review-main small { margin-top: 3px; color: var(--subtle); font-size: .68rem; }
.row-arrow { color: #9badb1; font-size: 1.5rem; line-height: 1; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 6px 10px; border-radius: 999px; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ready, .status-pass, .status-released { background: var(--success-soft); color: var(--success); }
.status-review { background: var(--warning-soft); color: var(--warning); }
.status-block, .status-error { background: var(--danger-soft); color: var(--danger); }
.status-processing { background: var(--teal-soft); color: var(--teal-dark); }
.status-large { padding: 9px 14px; font-size: .75rem; }

.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 30px; color: var(--muted); font-size: .78rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--teal-dark); }
.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.review-heading h1 { margin: 0 0 12px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.review-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .74rem; }
.review-meta strong { margin-right: 4px; color: var(--ink); }
.review-process li.active { background: var(--surface); }

.decision-banner { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 20px; padding: 24px 26px; border: 1px solid; border-radius: var(--radius); }
.decision-banner .eyebrow { margin-bottom: 5px; color: inherit; }
.decision-banner h2 { margin: 0; color: inherit; font-size: 1.4rem; }
.decision-banner p:last-child { max-width: 800px; margin: 0; color: var(--muted); }
.decision-icon { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--success); color: #fff; font-size: 1rem; font-weight: 900; }
.decision-ready, .decision-released { border-color: #b7deca; background: var(--success-soft); color: var(--success); }
.decision-review { border-color: #ead397; background: var(--warning-soft); color: var(--warning); }
.decision-block, .decision-error { border-color: #ebbbbb; background: var(--danger-soft); color: var(--danger); }
.decision-processing { border-color: #add8df; background: var(--teal-soft); color: var(--teal-dark); }
.decision-review .decision-icon { background: var(--warning); }
.decision-block .decision-icon, .decision-error .decision-icon { background: var(--danger); }
.decision-processing .decision-icon { background: var(--teal-dark); }

.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.score-row-four { grid-template-columns: repeat(4, 1fr); }
.score-card { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.score-card > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 900; }
.score-card > div { display: grid; line-height: 1.2; }
.score-card strong { font-size: 1.25rem; }
.score-card small { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.score-pass > span { background: var(--success-soft); color: var(--success); }
.score-review > span { background: var(--warning-soft); color: var(--warning); }
.score-block > span { background: var(--danger-soft); color: var(--danger); }
.score-sources > span { background: var(--teal-soft); color: var(--teal-dark); }

.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
.review-content { display: grid; gap: 34px; min-width: 0; }
.content-section { min-width: 0; }
.decision-sidebar { position: sticky; top: 98px; }
.approval-panel { padding: 25px; border-top: 4px solid var(--lime); }
.approval-mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 10px; background: var(--lime-soft); color: var(--success); font-size: 1.1rem; font-weight: 900; }
.approval-panel h2 { margin-bottom: 9px; }
.approval-panel > p:not(.eyebrow):not(.approval-warning) { margin-bottom: 22px; color: var(--muted); font-size: .78rem; }
.approval-form { display: grid; gap: 15px; }
.approval-form textarea { min-height: 70px; }
.check-field { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: var(--ink); font-size: .72rem; line-height: 1.45; cursor: pointer; }
.check-field input { width: 17px; height: 17px; min-height: auto; margin: 2px 0 0; accent-color: var(--teal-dark); }
.approval-warning { margin: 14px 0 0; color: var(--subtle); font-size: .64rem; line-height: 1.45; }
.sidebar-result { padding: 26px; }
.sidebar-result > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; font-weight: 900; }
.sidebar-result h2 { margin-bottom: 8px; }
.sidebar-result p { margin: 0; color: var(--muted); font-size: .78rem; }
.sidebar-released { border-top: 4px solid var(--success); }
.sidebar-released > span { background: var(--success-soft); color: var(--success); }
.sidebar-block { border-top: 4px solid var(--danger); }
.sidebar-block > span { background: var(--danger-soft); color: var(--danger); }
.sidebar-review { border-top: 4px solid var(--warning); }
.sidebar-review > span { background: var(--warning-soft); color: var(--warning); }

.gate-list, .issue-list, .output-list { display: grid; gap: 9px; }
.gate-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.gate-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #eef4f4; color: var(--navy); font-size: .72rem; font-weight: 800; }
.gate-copy { min-width: 0; }
.gate-copy h3 { margin: 0 0 3px; }
.gate-copy p { margin: 0; color: var(--muted); font-size: .72rem; }

.issue-review-section { display: grid; gap: 10px; }
.issue-navigator { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(280px, 1.25fr); align-items: end; gap: 18px; padding: 16px 18px; border: 1px solid #efcccc; border-radius: 12px; background: #fff8f8; }
.issue-count { display: flex; align-items: center; gap: 11px; }
.issue-count > span { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-weight: 900; }
.issue-count h2 { margin: 0 0 3px; font-size: 1rem; }
.issue-count small { display: block; color: var(--muted); font-size: .66rem; }
.issue-select-wrap { display: grid; gap: 6px; min-width: 0; }
.issue-select-wrap > span { color: var(--muted); font-size: .66rem; font-weight: 750; }
.issue-select-wrap select { width: 100%; min-width: 0; min-height: 44px; padding-right: 38px; border-color: #e7c7c7; background-color: #fff; color: var(--ink); font-size: .74rem; font-weight: 700; text-overflow: ellipsis; }
.issue-card { padding: 21px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 12px; }
.issue-card.issue-block { border-left-color: var(--danger); }
.issue-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.issue-heading h3 { margin: 0; }
.issue-message { color: var(--muted); font-size: .78rem; }
.comparison-list { display: grid; gap: 1px; margin: 16px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.comparison-list > div { display: grid; grid-template-columns: 138px 1fr; background: #f8fafa; border-bottom: 1px solid var(--line); }
.comparison-list > div:last-child { border-bottom: 0; }
.comparison-list dt, .comparison-list dd { margin: 0; padding: 10px 12px; font-size: .72rem; }
.comparison-list dt { color: var(--muted); font-weight: 700; }
.comparison-list dd { background: #fff; overflow-wrap: anywhere; }
.evidence-details { margin: 14px 0; }
.evidence-details summary, .technical-files summary { color: var(--teal-dark); font-size: .72rem; font-weight: 750; cursor: pointer; }
blockquote { display: grid; gap: 5px; margin: 10px 0; padding: 12px 14px; background: #f6f9f9; border-left: 3px solid #a8bec2; color: var(--muted); font-size: .7rem; }
blockquote strong { color: var(--ink); }
.resolution-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.field-help { line-height: 1.4; }

.resolved-section { overflow: hidden; border: 1px solid #cfe6d7; border-radius: 12px; background: #fbfefc; }
.resolved-section > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: var(--success); font-size: .82rem; font-weight: 800; cursor: pointer; }
.resolved-section > summary span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--success-soft); font-size: .68rem; }
.resolved-list { display: grid; gap: 1px; border-top: 1px solid #dcece1; background: #dcece1; }
.resolved-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 18px; background: #fff; }
.resolved-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--success-soft); color: var(--success); font-weight: 900; }
.resolved-row h3 { margin: 2px 0 5px; }
.resolved-row p { margin: 0 0 7px; color: var(--muted); font-size: .74rem; }
.resolved-row small { color: var(--subtle); font-size: .65rem; }
.resolved-row small strong { color: var(--ink); }

.output-groups { display: grid; gap: 18px; }
.output-group { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f8fafa; }
.output-group-heading { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.output-group-heading h3 { margin: 0 0 2px; font-size: .8rem; }
.output-group-heading small { color: var(--muted); font-size: .65rem; }
.output-purpose-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); font-weight: 900; }
.output-group-manufacturer { border-color: #f0caca; }
.output-group-manufacturer .output-group-heading { background: #fff8f8; border-color: #f0d7d7; }
.output-group-manufacturer .output-purpose-icon { background: var(--danger-soft); color: var(--danger); }
.output-group-release { border-color: #cfe6d7; }
.output-group-release .output-group-heading { background: #f7fcf8; border-color: #dcece1; }
.output-group-release .output-purpose-icon { background: var(--success-soft); color: var(--success); }
.output-group-optional .output-purpose-icon { background: #f0f1f2; color: var(--muted); }
.output-group .output-list { padding: 9px; }
.output-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.output-row:hover { border-color: #afd2d6; box-shadow: var(--shadow-sm); }
.file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); font-size: .62rem; font-weight: 900; }
.output-row > span:nth-child(2) { display: grid; min-width: 0; }
.output-row strong { font-size: .8rem; }
.output-row small { margin-top: 3px; overflow: hidden; color: var(--subtle); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.download-label { color: var(--teal-dark); font-size: .7rem; font-weight: 750; }
.technical-files { margin-top: 12px; }
.technical-links { display: grid; margin-top: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.technical-links a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 11px; color: var(--muted); font-size: .68rem; text-decoration: none; }
.technical-links a + a { border-top: 1px solid var(--line); }
.technical-links span { color: var(--teal-dark); font-weight: 700; }

.audit-panel { padding: 0 20px; border-radius: 12px; }
.audit-panel > summary { display: flex; justify-content: space-between; padding: 17px 0; color: var(--ink); font-size: .78rem; font-weight: 750; cursor: pointer; }
.audit-panel > summary span { color: var(--subtle); font-size: .68rem; font-weight: 500; }
.timeline { display: grid; gap: 16px; margin: 0 0 20px; padding: 4px 0 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 11px 1fr; gap: 10px; }
.timeline li > span { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.timeline strong { display: block; font-size: .72rem; }
.timeline p { margin: 2px 0 0; color: var(--subtle); font-size: .64rem; }

.history-page { width: min(100%, 980px); margin: 0 auto; }
.history-heading { margin: 28px 0 25px; }
.history-heading h1 { margin: 0; }
.history-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.history-labels, .history-row { display: grid; grid-template-columns: 120px minmax(220px, 1fr) 130px 170px 24px; align-items: center; gap: 18px; }
.history-labels { padding: 11px 18px; background: #eef4f4; color: var(--subtle); font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.history-row { min-height: 70px; padding: 12px 18px; color: var(--ink); text-decoration: none; transition: background .16s ease; }
.history-row + .history-row { border-top: 1px solid var(--line); }
.history-row:hover { background: #f7fbfb; }
.history-row time, .history-row > span:not(.status-pill):not(.history-arrow) { color: var(--muted); font-size: .75rem; }
.history-row strong { font-size: .82rem; }
.history-row .status-pill { justify-self: start; }
.history-arrow { color: var(--teal-dark); font-size: 1rem; transition: translate .16s ease; }
.history-row:hover .history-arrow { translate: 3px 0; }
.history-empty { display: grid; justify-items: center; gap: 10px; padding: 46px 24px; color: var(--muted); text-align: center; }
.history-empty span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--teal-soft); color: var(--teal-dark); }
.history-empty p { margin: 0; }

.alert { margin-bottom: 20px; padding: 12px 14px; border: 1px solid; border-radius: 9px; font-size: .78rem; font-weight: 650; }
.alert-error { border-color: #efb7b7; background: var(--danger-soft); color: var(--danger); }
.empty-state { max-width: 620px; margin: 60px auto; padding: 52px; text-align: center; }
.empty-state h1 { margin-bottom: 10px; font-size: 2rem; }
.empty-state > p:not(.eyebrow) { max-width: 430px; margin: 0 auto 24px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-size: 1.2rem; font-weight: 900; }

.login-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 149, 168, .12), transparent 28%),
    radial-gradient(circle at 87% 82%, rgba(121, 184, 42, .12), transparent 26%),
    linear-gradient(145deg, #f2f8f8 0%, #eaf2f2 100%);
}
.login-page::before, .login-page::after { content: ""; position: fixed; z-index: -1; width: 280px; height: 280px; border-radius: 56px; border: 1px solid rgba(0,149,168,.13); transform: rotate(45deg); }
.login-page::before { top: -180px; left: -120px; }
.login-page::after { right: -160px; bottom: -170px; border-color: rgba(121,184,42,.16); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: min(100%, 440px); padding: 38px 40px 30px; background: rgba(255,255,255,.98); border: 1px solid rgba(203,219,221,.9); border-radius: 20px; box-shadow: var(--shadow-lg); }
.login-language { width: max-content; margin: -18px -20px 20px auto; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 36px; }
.login-brand img { width: 155px; height: auto; }
.login-brand span { padding-left: 13px; border-left: 1px solid var(--line-strong); color: var(--navy); font-size: .76rem; font-weight: 750; white-space: nowrap; }
.login-intro { margin-bottom: 25px; text-align: center; }
.login-intro .eyebrow { margin-bottom: 8px; }
.login-intro h1 { margin-bottom: 8px; font-size: 2rem; }
.login-intro > p:last-child { max-width: 330px; margin: auto; color: var(--muted); font-size: .82rem; }
.login-form { display: grid; gap: 17px; }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-toggle { position: absolute; right: 8px; top: 50%; min-height: 30px; padding: 5px 8px; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: var(--teal-dark); font-size: .68rem; font-weight: 750; cursor: pointer; }
.password-toggle:hover { background: var(--teal-soft); }
.login-help { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 23px 0 0; color: var(--subtle); font-size: .66rem; }
.login-help span { color: var(--lime); font-size: .55rem; }

@media (max-width: 900px) {
  .dashboard-grid, .review-layout { grid-template-columns: 1fr; }
  .intake-grid { grid-template-columns: 1fr; }
  .guide-panel { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .guide-panel h2 { align-self: center; margin: 0; }
  .guide-list, .mode-note { grid-column: 1 / -1; }
  .guide-list { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
  .decision-sidebar { position: static; grid-row: 1; }
  .approval-form { grid-template-columns: repeat(2, 1fr); }
  .approval-form .field:nth-of-type(4), .approval-form .check-field, .approval-form .button { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .header-inner, .page-shell, .app-footer > div { width: min(100% - 30px, 1180px); }
  .app-header, .header-inner { min-height: 64px; }
  .brand img { width: 124px; }
  .brand-divider, .brand-product, .account-copy { display: none; }
  .page-shell { padding: 34px 0 58px; }
  .upload-only { min-height: calc(100vh - 156px); justify-content: center; }
  .brand-shapes span:nth-child(1) { left: -42px; top: 12%; scale: .65; }
  .brand-shapes span:nth-child(2) { right: -20px; top: 9%; scale: .7; }
  .brand-shapes span:nth-child(3) { display: none; }
  .upload-heading { margin-bottom: 20px; }
  .home-utilities { margin-top: -8px; }
  .upload-only h1 { font-size: 2.15rem; }
  .upload-only .upload-panel { padding: 19px; }
  .intake-column { padding: 15px; }
  .batch-processing { padding: 26px 20px; }
  .processing-heading { align-items: flex-start; }
  .processing-heading h2 { font-size: 1.15rem; }
  .processing-stages { gap: 4px; }
  .processing-stages li { font-size: .6rem; }
  .upload-card-top { margin-bottom: -4px; }
  .app-footer > div { min-height: 72px; display: grid; justify-content: start; align-content: center; gap: 3px; }
  .dashboard-heading, .review-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading { gap: 18px; }
  .page-heading h1 { font-size: 2.15rem; }
  .page-heading > div:first-child > p:last-child { font-size: .94rem; }
  .process-strip { grid-template-columns: 1fr; }
  .process-strip li { min-height: 62px; padding: 10px 16px; }
  .process-strip li + li::before { left: 30px; top: 0; width: 1px; height: 8px; }
  .process-strip small { display: none; }
  .upload-panel, .guide-panel, .approval-panel { padding: 22px; }
  .panel-heading { margin-bottom: 23px; }
  .format-note { display: none; }
  .drop-zone { min-height: 180px; flex-direction: column; justify-content: center; text-align: center; }
  .drop-copy { flex: 0; }
  .guide-panel { display: block; }
  .guide-panel h2 { margin: 14px 0 24px; }
  .guide-list { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 38px minmax(0, 1fr) 18px; }
  .review-row .status-pill { grid-column: 2; margin-top: -3px; }
  .row-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .review-heading { gap: 15px; }
  .review-meta { display: grid; gap: 5px; }
  .decision-banner { padding: 20px; }
  .decision-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .score-row { grid-template-columns: 1fr; }
  .score-card { min-height: 62px; }
  .gate-row { grid-template-columns: 34px minmax(0, 1fr); }
  .gate-row .status-pill { grid-column: 2; }
  .comparison-list > div { grid-template-columns: 1fr; }
  .comparison-list dt { padding-bottom: 3px; }
  .comparison-list dd { padding-top: 3px; background: #f8fafa; }
  .issue-heading { align-items: flex-start; flex-direction: column; }
  .issue-navigator { grid-template-columns: 1fr; align-items: stretch; gap: 14px; padding: 15px; }
  .output-row { grid-template-columns: 42px minmax(0, 1fr); }
  .download-label { grid-column: 2; }
  .approval-form { grid-template-columns: 1fr; }
  .approval-form .field:nth-of-type(4), .approval-form .check-field, .approval-form .button { grid-column: auto; }
  .login-card { padding: 32px 24px 26px; }
  .login-brand img { width: 140px; }
  .login-brand span { font-size: .7rem; }
  .empty-state { padding: 36px 22px; }
  .history-labels { display: none; }
  .history-list { display: grid; gap: 9px; overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .history-row + .history-row { border-top: 1px solid var(--line); }
  .history-row time { grid-column: 1; grid-row: 2; }
  .history-row > span:not(.status-pill):not(.history-arrow) { grid-column: 1; grid-row: 3; }
  .history-row .status-pill { grid-column: 2; grid-row: 1 / span 2; }
  .history-arrow { grid-column: 2; grid-row: 3; justify-self: end; }
}

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