:root {
  --bg: #f4f1ea;
  --bg-2: #fbf7f1;
  --ink: #121417;
  --muted: #56606b;
  --surface: #ffffff;
  --surface-2: #f6f1ea;
  --accent: #f97316;
  --accent-2: #1b9a9e;
  --accent-3: #102a43;
  --border: rgba(16, 42, 67, 0.12);
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 12% 18%, rgba(27, 154, 158, 0.14), transparent 55%),
    radial-gradient(circle at 86% 8%, rgba(249, 115, 22, 0.16), transparent 50%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(16, 42, 67, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

body[data-page="landing"] {
  overflow: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 9;
}

.mobile-topbar .brand {
  justify-content: center;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  background: var(--accent-3);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 14px;
  letter-spacing: 1px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link.active {
  background: rgba(27, 154, 158, 0.15);
  color: var(--ink);
  border-color: rgba(27, 154, 158, 0.35);
}

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

.auth-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(27, 154, 158, 0.55);
}

.banner {
  background: rgba(27, 154, 158, 0.12);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.banner.hidden {
  display: none;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  color: var(--muted);
}

.page-hero {
  background: linear-gradient(120deg, #fff4e8, #eef8f7);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  box-shadow: var(--shadow);
}

.page-hero.compact {
  grid-template-columns: 1fr;
}

.page-hero.slim {
  padding: 18px 20px;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.08);
  font-size: 12px;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  line-height: 1.6;
}

.team-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.team-link {
  color: var(--accent-3);
  font-weight: 600;
  border-bottom: 1px dashed rgba(16, 42, 67, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.team-link:hover {
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.6);
}

.team-sep {
  color: rgba(16, 42, 67, 0.35);
}

.stat-grid {
  display: grid;
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.card-title {
  font-weight: 600;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(249, 115, 22, 0.16);
}

.badge.ghost {
  background: rgba(27, 154, 158, 0.15);
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-3);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 42, 67, 0.2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(16, 42, 67, 0.18);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid.primary {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.dashboard-grid .card {
  animation: rise 0.35s ease;
}

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-card .preview-viewer {
  flex: 1;
}

.upload-drop {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 2px dashed rgba(16, 42, 67, 0.2);
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  background: #fff7ef;
  transition: all 0.2s ease;
}

.upload-drop.dragover {
  border-color: var(--accent-2);
  background: #f0fffb;
}

.upload-drop:hover {
  border-color: rgba(27, 154, 158, 0.6);
}

.upload-drop input {
  display: none;
}

.drop-art {
  width: 54px;
  height: 68px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f2e8db);
  border: 1px solid rgba(16, 42, 67, 0.2);
  position: relative;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.12);
  transform: rotate(-2deg);
}

.drop-art::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 18px;
  height: 2px;
  background: rgba(16, 42, 67, 0.12);
  box-shadow: 0 10px 0 rgba(16, 42, 67, 0.12), 0 20px 0 rgba(16, 42, 67, 0.12);
}

.drop-art::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(16, 42, 67, 0.18) 0 50%, transparent 50%);
  border-top-right-radius: 10px;
}

.drop-copy {
  display: grid;
  gap: 4px;
}

.drop-title {
  font-weight: 600;
}

.drop-sub {
  font-size: 12px;
  color: var(--muted);
}

.file-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.camera-row {
  display: none;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.camera-row input {
  display: none;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
}

.toggle-row.toggle-row-compact {
  margin-top: 8px;
  justify-content: flex-start;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.status-pill {
  margin-top: 14px;
  background: rgba(27, 154, 158, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
}

.progress {
  width: 100%;
  height: 10px;
  background: rgba(16, 42, 67, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.3s ease;
}

.status-foot {
  margin-top: 12px;
  font-size: 13px;
}

#inference-time {
  margin-top: 6px;
}

.helper-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.summary-tile {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 10px;
  font-size: 12px;
}

.processing-inline {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.processing-inline .progress {
  width: 100%;
}

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


.recent-item {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-item {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-thumb {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(16, 42, 67, 0.18);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: relative;
  z-index: 2;
}

.history-thumb.has-image img {
  display: block;
}

.history-thumb .doc-silhouette {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transform: rotate(-1deg);
  opacity: 0.65;
}

.history-thumb .doc-corner {
  width: 26px;
  height: 26px;
  border-top-right-radius: 10px;
}

.history-main {
  display: grid;
  gap: 4px;
}

.history-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 42, 67, 0.12);
}

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

.btn-mini {
  padding: 6px 12px;
  font-size: 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.review-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.review-toolbar label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.review-toolbar select {
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 67, 0.2);
  font-family: inherit;
  background: #fff;
}

.viewer {
  position: relative;
  min-height: 260px;
  height: clamp(260px, 52vh, 520px);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0e14;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.preview-viewer {
  min-height: 220px;
  height: clamp(220px, 42vh, 360px);
}

.review-card .viewer {
  height: clamp(320px, 65vh, 700px);
}

.viewer img {
  max-width: 100%;
  max-height: 100%;
  display: none;
  position: relative;
  z-index: 3;
  height: auto;
  width: auto;
  object-fit: contain;
}

.viewer-empty {
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 3;
}

.doc-silhouette {
  position: absolute;
  width: clamp(220px, 56%, 360px);
  height: clamp(260px, 74%, 440px);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  opacity: 0.55;
  z-index: 1;
  transform: rotate(-1.5deg);
  pointer-events: none;
}

.doc-silhouette .doc-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-top-right-radius: 14px;
}

.scan-overlay {
  position: absolute;
  inset: -35% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(27, 154, 158, 0.2) 40%, rgba(249, 115, 22, 0.22) 55%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.viewer.scan-on .scan-overlay {
  opacity: 0.24;
  animation: scanSweep 2.8s linear infinite;
}

.viewer.has-image .doc-silhouette {
  opacity: 0.18;
  transform: scale(0.98);
}

.viewer.has-image .scan-overlay {
  opacity: 0.16;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 4;
}

.scan-layer {
  position: absolute;
  inset: -40% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(27, 154, 158, 0.15) 40%, rgba(249, 115, 22, 0.22) 55%, transparent 80%);
  opacity: 0;
  transform: translateY(-60%);
  pointer-events: none;
  z-index: 2;
}

.preview-card.scanning .scan-layer {
  opacity: 1;
  animation: scanSweep 1.8s linear infinite;
}

.preview-card.scanning .viewer-empty {
  color: rgba(255, 255, 255, 0.85);
}

.preview-viewer .overlay {
  pointer-events: none;
}

.box {
  position: absolute;
  border: 2px solid rgba(249, 115, 22, 0.9);
  background: rgba(249, 115, 22, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box.selected {
  transform: scale(1.01);
  box-shadow: 0 0 12px rgba(16, 42, 67, 0.3);
}

.legend {
  display: grid;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.review-panel textarea {
  width: 100%;
  min-height: 100px;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 67, 0.2);
  padding: 10px;
  font-family: inherit;
  resize: vertical;
}

.note-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.preview-summary {
  display: grid;
  gap: 8px;
}

.history-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

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

.stats-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chart {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.chart-bar {
  height: 10px;
  background: rgba(16, 42, 67, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-table {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.8fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 12px;
}

.admin-row strong {
  display: block;
  font-size: 13px;
}

.admin-locked {
  display: block;
}

.bottom-nav {
  display: none;
  gap: 8px;
  justify-content: space-around;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--surface);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 12;
}

.bottom-link {
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
}

.bottom-link.active {
  background: rgba(27, 154, 158, 0.15);
  color: var(--ink);
}

.desktop-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0 16px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 67, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  width: min(360px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-card.modal-wide {
  width: min(720px, 92vw);
  gap: 16px;
  max-height: 90vh;
  overflow: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.history-viewer {
  min-height: 240px;
  height: clamp(240px, 50vh, 420px);
}

.modal-card input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 42, 67, 0.2);
  font-family: inherit;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-error {
  font-size: 12px;
  color: #ef4444;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 13px;
  z-index: 30;
}

.toast.hidden {
  display: none;
}

.toast[data-variant="error"] {
  border-left: 4px solid #ef4444;
}

.hidden {
  display: none;
}

.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.landing-card {
  width: min(1100px, 94vw);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.landing-card::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 60%);
}

.landing-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  z-index: 1;
}

.landing-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.landing-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.landing-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.landing-error {
  margin-top: 10px;
  font-size: 12px;
  color: #ef4444;
}

.landing-panel {
  display: grid;
  gap: 12px;
}

.panel-card {
  background: var(--bg-2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
}

.panel-title {
  font-size: 12px;
  color: var(--muted);
}

.panel-value {
  font-size: 16px;
  font-weight: 600;
}

.page-controls {
  display: flex;
  gap: 8px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}

.hero-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

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

@keyframes scanSweep {
  0% { transform: translateY(-60%); }
  100% { transform: translateY(60%); }
}

@media (max-width: 980px) {
  .page-hero,
  .landing-grid,
  .review-grid,
  .history-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid.primary {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding-bottom: 120px;
  }

  .nav {
    width: 100%;
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .desktop-footer {
    display: none;
  }
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .mobile-topbar {
    display: flex;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 28px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-meta,
  .lead {
    font-size: 13px;
  }

  .drop-title {
    font-size: 14px;
  }

  .camera-row {
    display: flex;
  }

  .review-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-toolbar select {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body[data-page="landing"] {
    overflow: auto;
  }

  .landing {
    align-items: flex-start;
    padding: 16px;
  }

  .landing-card {
    padding: 20px;
    gap: 20px;
  }

  .landing-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-actions .btn {
    width: 100%;
  }

  .landing-grid {
    gap: 16px;
  }

  .landing-panel {
    gap: 10px;
  }

  .panel-card {
    padding: 12px;
  }

  .history-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .history-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
