:root {
  --ink: #13251d;
  --muted: #66736c;
  --paper: #f5f6f1;
  --card: #ffffff;
  --forest: #145c3e;
  --forest-dark: #0c422d;
  --lime: #a9d45a;
  --line: #dfe4dc;
  --warning: #fff4d7;
  --warning-ink: #684d08;
  --error: #a72d2d;
  --shadow: 0 18px 50px rgba(20, 48, 35, 0.09);
}

.workflow-nav { gap: 10px; }
.workflow-nav .help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #b9d2c1;
  border-radius: 12px;
  background: #e7f0e9;
  color: var(--forest-dark);
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.workflow-nav .help-link:hover { background: #d7e8db; text-decoration: none; }
.workflow-nav .help-link:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.workflow-nav .help-link[aria-current="page"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.home-main { padding: 66px 0 40px; }
.home-main .section-kicker { color: var(--forest); }
.home-intro h1 { margin: 18px 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
.home-intro h1 span { color: var(--forest); }
.home-intro > p:last-child { color: var(--muted); font-size: 18px; }
.workflow-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 38px; }
.workflow-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.workflow-card:hover { transform: translateY(-3px); border-color: var(--forest); }
.workflow-card:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
.workflow-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #edf4e9; color: var(--forest); border-radius: 14px; margin-bottom: 24px; }
.workflow-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.7; }
.workflow-card h2 { font-size: 25px; letter-spacing: -.025em; margin: 10px 0; }
.workflow-card p { color: var(--muted); margin: 0 0 28px; }
.workflow-cta { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 19px; border-top: 1px solid var(--line); color: var(--forest); font-weight: 750; }
.home-scope { padding: 25px 0 0; margin-top: 16px; color: var(--muted); }
.home-scope strong { color: var(--ink); }
.home-scope p { margin: 6px 0; }
.home-scope small { display: block; max-width: 860px; }
@media (max-width: 880px) {
  .topbar:has(.workflow-nav) { height: auto; min-height: 100px; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .workflow-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .workflow-nav .help-link { max-width: none !important; font-size: 14px; flex: 1; }
}
@media (max-width: 700px) {
  .workflow-cards { grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
  .workflow-card { padding: 24px; }
  .home-main { padding-top: 35px; }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

button { cursor: pointer; }

main, section, article, .content-grid, .viewer-panel, .map-panel {
  min-width: 0;
}

img, video, canvas { max-width: 100%; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(245, 246, 241, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand > span:last-child > span { color: var(--forest); }

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px 10px 10px 2px;
  color: white;
  background: var(--forest);
  font-family: Georgia, serif;
  font-style: italic;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.help-link {
  color: var(--forest-dark);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.help-link:hover, .help-link:focus-visible { text-decoration: underline; }

.hero {
  min-height: 510px;
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
  align-items: center;
  gap: 72px;
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(169, 212, 90, .17), transparent 29%),
    linear-gradient(125deg, #0a3324 0%, #0f4f35 58%, #176b47 100%);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  position: absolute;
  right: -170px;
  top: -180px;
  box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018);
}

.eyebrow, .section-kicker {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.2vw, 84px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 630px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.77);
  font-size: 18px;
}

.class-scope {
  position: relative;
  z-index: 1;
  max-width: 630px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(169,212,90,.35);
  border-radius: 12px;
  background: rgba(0,0,0,.13);
}
.class-scope-title { margin: 0; color: #e7f3cc; font-size: 14px; font-weight: 750; }
.class-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0; list-style: none; }
.class-pills li { padding: 5px 11px; border-radius: 999px; background: #e7f3cc; color: #123b28; font-size: 12px; font-weight: 750; }
.class-scope > p:last-child { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.6; }

.upload-card {
  padding: 28px;
  color: var(--ink);
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  position: relative;
  z-index: 1;
}

.field + .field { margin-top: 20px; }

.field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 750;
}

.field label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.field input[type="file"] {
  width: 100%;
  padding: 11px;
  border: 1px dashed #b5c2b9;
  border-radius: 10px;
  color: var(--muted);
  background: #f8faf7;
}

.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 11px;
  border: 0;
  border-radius: 7px;
  color: var(--forest-dark);
  background: #e7f0e9;
  font-weight: 700;
}

.field small, .privacy-note, .muted, .panel-note {
  color: var(--muted);
  font-size: 13px;
}

.field small { display: block; margin-top: 6px; }

.primary-button, .secondary-button, .sample-button {
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  transition: transform .15s, background .15s;
}

.analysis-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.primary-button {
  width: 100%;
  padding: 13px 18px;
  color: white;
  background: var(--forest);
}

.primary-button:hover { background: var(--forest-dark); transform: translateY(-1px); }
.primary-button:disabled, .sample-button:disabled { opacity: .58; cursor: wait; transform: none; }

.sample-button {
  width: 100%;
  padding: 12px 18px;
  color: var(--forest-dark);
  background: #e7f0e9;
  border: 1px solid #cedcd2;
}

.sample-button:hover { background: #dceadf; transform: translateY(-1px); }

.secondary-button {
  padding: 10px 14px;
  color: var(--forest-dark);
  background: #e4ece6;
}

.privacy-note { margin: 11px 0 0; text-align: center; }

.inline-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--error);
  background: #ffeded;
  font-size: 13px;
}

.page-width {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.instructions {
  margin-top: 38px;
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}

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

.instructions-heading h2 { margin: 0; font-size: 25px; }

.instructions-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-grid li {
  min-width: 0;
  padding: 18px;
  background: #f7faf6;
  border: 1px solid #e1e9df;
  border-radius: 12px;
}

.step-number {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.instruction-grid strong { display: block; margin-bottom: 5px; }

.instruction-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.job-panel {
  margin-top: 38px;
  padding: 28px 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.job-heading, .dashboard-heading, .panel-heading, .timeline-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.job-heading h2, .dashboard-heading h2 { margin: 0; font-size: 25px; }
.job-heading strong { color: var(--forest); font-size: 25px; }

.progress-track {
  height: 9px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eee9;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--lime));
  transition: width .35s ease;
}

.job-panel .muted { margin-bottom: 0; }

.dashboard { padding: 56px 0 80px; }
.dashboard-heading { margin-bottom: 22px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.metric span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; margin-top: 5px; color: var(--forest-dark); font-size: 25px; }

.warning {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: var(--warning-ink);
  background: var(--warning);
  border: 1px solid #f0dda4;
  border-radius: 10px;
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
  gap: 20px;
}

.content-grid > * { min-width: 0; }

.panel {
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 30px rgba(20, 48, 35, .05);
}

.panel h3 { margin: 0; font-size: 19px; }
.panel .section-kicker { color: var(--forest); }
.time-code { color: var(--muted); font-variant-numeric: tabular-nums; }

.video-stage {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #07100c;
  border-radius: 9px;
}

.video-stage video, .video-stage img, .video-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.video-stage video, .video-stage img { object-fit: contain; }
.video-stage canvas { z-index: 2; pointer-events: none; }

.asset-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px;
  color: white;
  background: rgba(7, 16, 12, .88);
  text-align: center;
}

.asset-loading strong { font-size: 16px; }
.asset-loading [data-loading-detail] { max-width: 32rem; color: rgba(255, 255, 255, .78); font-size: 13px; }

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(255, 255, 255, .28);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: loading-spin .8s linear infinite;
}

.asset-progress-track {
  width: min(260px, 78%);
  height: 5px;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
}

.asset-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width .25s ease;
}

.asset-progress-bar.is-indeterminate {
  width: 42%;
  animation: loading-progress 1.25s ease-in-out infinite;
}

.asset-loading.is-error .loading-spinner,
.asset-loading.is-error .asset-progress-track { display: none; }
.asset-loading.is-error [data-loading-detail] { color: #ffe2e2; }

@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-progress {
  from { transform: translateX(-120%); }
  to { transform: translateX(240%); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation-duration: 1.8s; }
  .asset-progress-bar.is-indeterminate { animation: none; width: 65%; opacity: .75; }
  .frame-button.is-loading .frame-thumbnail { animation: none; }
}

.frame-description {
  min-height: 43px;
  margin: 12px 0 16px;
  padding: 10px 12px;
  color: var(--muted);
  background: #f6f8f5;
  border-radius: 8px;
  font-size: 13px;
}

.feedback-panel {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #dce6dc;
  border-radius: 10px;
  background: #fafcf9;
}

.feedback-heading > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.feedback-heading small,
.feedback-panel > p,
.feedback-details span,
.feedback-empty {
  color: var(--muted);
  font-size: 12px;
}

.feedback-panel > p { margin: 7px 0 12px; }
.feedback-heading span, .feedback-heading small { display: block; }
.feedback-export { color: var(--forest-dark); font-size: 12px; font-weight: 750; }
.feedback-list { display: grid; gap: 8px; }
.frame-feedback {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.frame-feedback p { margin: 0; color: var(--muted); font-size: 12px; }
.frame-feedback input {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd7cd;
  border-radius: 7px;
  font: inherit;
}
.frame-feedback small { color: var(--muted); }

.feedback-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #b7c4ba;
  border-radius: 8px;
  background: white;
}

.feedback-card[data-decision="confirmed"] { border-left-color: #167047; }
.feedback-card[data-decision="rejected"] { border-left-color: var(--error); }
.feedback-card[data-decision="uncertain"] { border-left-color: #b7791f; }
.feedback-details { min-width: 0; }
.feedback-details strong, .feedback-details span { display: block; }
.feedback-details strong { overflow-wrap: anywhere; }
.feedback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.feedback-button {
  padding: 6px 9px;
  border: 1px solid #cbd7cd;
  border-radius: 7px;
  color: var(--ink);
  background: #f2f6f2;
  font-size: 12px;
  font-weight: 750;
}

.feedback-button:hover { border-color: var(--forest); }
.feedback-button:disabled { cursor: wait; opacity: .55; }
.feedback-confirmed[aria-pressed="true"] { color: white; background: #167047; border-color: #167047; }
.feedback-rejected[aria-pressed="true"] { color: white; background: var(--error); border-color: var(--error); }
.feedback-uncertain[aria-pressed="true"] { color: #3f2b00; background: #f6d886; border-color: #d7ae42; }
.feedback-empty { margin: 0; }

.timeline-label { margin-bottom: 8px; font-size: 13px; }
.timeline-label span { color: var(--muted); }

.timeline {
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-color: #b7c4ba transparent;
}

.frame-button {
  min-width: 118px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #edf0ed;
  text-align: left;
}

.frame-button.active { border-color: var(--lime); }
.frame-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: 67px;
  overflow: hidden;
  background: linear-gradient(110deg, #dfe7e1 25%, #eef3ef 45%, #dfe7e1 65%);
  background-size: 220% 100%;
}
.frame-button.is-loading .frame-thumbnail { animation: frame-shimmer 1.25s linear infinite; }
.frame-button img { width: 100%; height: 100%; display: block; object-fit: cover; }
.frame-label { display: block; padding: 5px 7px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.frame-load-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--forest-dark);
  background: rgba(237, 243, 238, .9);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.frame-load-status[hidden] { display: none; }
.frame-button.is-error { border-color: #c55252; }
.frame-button.is-error .frame-thumbnail { background: #fceaea; }
.frame-button.is-error .frame-load-status { color: #8b2525; background: #fceaea; }

@keyframes frame-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

.map-panel { display: flex; flex-direction: column; }

.map-guidance {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.map-stage {
  height: 440px;
  min-height: 440px;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 9px;
}

.map {
  width: 100%;
  height: 100%;
  background: #e7ece7;
  z-index: 0;
}

.map-loading {
  color: var(--forest-dark);
  background: rgba(244, 248, 244, .94);
}

.map-loading [data-loading-detail] { color: var(--muted); }
.map-loading .loading-spinner { border-color: rgba(22, 102, 71, .2); border-top-color: var(--forest); }
.map-loading .asset-progress-track { background: rgba(22, 102, 71, .14); }
.map-loading .asset-progress-bar { background: linear-gradient(90deg, var(--forest), var(--lime)); }

.map-empty {
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, #f2f4f0, #f2f4f0 12px, #ecefea 12px, #ecefea 24px);
  border-radius: 9px;
  text-align: center;
}

.panel-note { margin: 12px 0 0; }

.findings-panel { margin-top: 20px; }

.video-frame-scores { margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #eef5e9; }
.video-frame-scores h3 { margin: 8px 0; }
.video-score-list { list-style: none; padding: 0; margin: 14px 0; }
.video-score-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.video-score-list strong { font-size: 14px; }
.findings { max-width: 100%; margin-top: 14px; overflow-x: auto; }
.findings table { width: 100%; border-collapse: collapse; }
.findings th, .findings td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.findings th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.findings td strong { color: var(--forest-dark); }

.confidence {
  display: inline-block;
  min-width: 52px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--forest-dark);
  background: #e6f2e7;
  font-weight: 750;
  text-align: center;
}

footer {
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #b5c5bb;
  background: #0b291e;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 58px; padding-bottom: 58px; }
  .instruction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .map-stage { height: 420px; min-height: 420px; }
}

@media (max-width: 560px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
  .help-link { font-size: 14px; }
  .hero {
    min-height: auto;
    gap: 30px;
    padding: 44px 16px;
  }
  .hero h1 { font-size: clamp(40px, 12vw, 50px); }
  .hero-copy { margin-top: 20px; font-size: 17px; }
  .upload-card { padding: 18px; }
  .field small, .privacy-note { font-size: 14px; }
  .primary-button, .sample-button { min-height: 48px; font-size: 16px; }
  .instructions { margin-top: 24px; padding: 18px; }
  .instructions-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .instructions-heading > p { text-align: left; }
  .instruction-grid { grid-template-columns: 1fr; }
  .instruction-grid p { font-size: 15px; }
  .page-width { width: calc(100% - 28px); }
  .job-panel { margin-top: 24px; padding: 18px; }
  .job-heading, .dashboard-heading { flex-wrap: wrap; }
  .dashboard { padding-top: 32px; padding-bottom: 54px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 14px; }
  .metric span { font-size: 11px; }
  .metric strong { font-size: 22px; }
  .warning { font-size: 15px; }
  .content-grid { gap: 14px; }
  .panel { padding: 14px; }
  .panel h3 { font-size: 20px; }
  .video-stage {
    width: calc(100% + 28px);
    max-width: none;
    margin: 14px -14px 0;
    border-radius: 0;
  }
  .frame-description { font-size: 15px; }
  .feedback-panel { margin-left: -2px; margin-right: -2px; padding: 12px; }
  .feedback-heading > div, .feedback-card { align-items: flex-start; flex-direction: column; }
  .feedback-heading small, .feedback-export { font-size: 13px; }
  .feedback-panel > p, .feedback-details span { font-size: 14px; }
  .feedback-actions { width: 100%; justify-content: stretch; }
  .feedback-button { flex: 1 1 92px; min-height: 42px; font-size: 14px; }
  .timeline-label { align-items: flex-start; font-size: 14px; }
  .timeline-label span { text-align: right; }
  .frame-button { flex: 0 0 154px; min-width: 154px; }
  .frame-thumbnail { height: 88px; }
  .frame-label { padding: 7px 8px; font-size: 13px; }
  .frame-load-status { padding: 10px; font-size: 12px; }
  .map-guidance, .panel-note { font-size: 14px; }
  .asset-loading { padding: 18px; }
  .asset-loading strong { font-size: 17px; }
  .asset-loading [data-loading-detail] { font-size: 14px; }
  .map-stage { height: min(64vh, 520px); min-height: 400px; margin-top: 12px; }
  .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; font-size: 22px; }
  .leaflet-popup-content { font-size: 14px; line-height: 1.45; }
  .findings th, .findings td { font-size: 14px; }
  .dashboard-heading { align-items: flex-start; }
  footer { padding-top: 22px; padding-bottom: 22px; }
}
