:root {
  --font: "Roboto Mono", monospace;
  --max-w: 720px;
  --bg: #f7f7f6;
  --surface: #fafaf8;
  --text-1: #1a1a1a;
  --text-2: #3d3d3d;
  --text-3: #6b6b6b;
  --text-4: #a3a3a3;
  --border: #d4d4d4;
  --border-light: #ebebeb;
  --accent: #636347;
  --accent-hover: #70704f;
  --accent-light: #e2e2d8;
  --accent-bg: #f0f0eb;
  --red: #ff3b30;
  --red-bg: #fef2f2;
  --r: 10px;
  --r-sm: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='%23a3a3a3' stroke-width='0.5' opacity='0.08'/%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='%23a3a3a3' stroke-width='0.5' opacity='0.08'/%3E%3Cline x1='37' y1='40' x2='43' y2='40' stroke='%23a3a3a3' stroke-width='1' opacity='0.15'/%3E%3Cline x1='40' y1='37' x2='40' y2='43' stroke='%23a3a3a3' stroke-width='1' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Topbar --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 24px;
  background: rgba(247, 247, 246, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  color: var(--text-4);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  transition: color 0.2s;
}

.topbar-back:hover {
  color: var(--text-1);
}

.topbar-back-text {
  transition: transform 0.25s ease;
}

.topbar-back:hover .topbar-back-text {
  transform: translateX(6px);
}

/* --- Content --- */

.content {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* --- Hero --- */

.hero {
  text-align: left;
  padding: 52px 0 4px;
}

.hero-lottie {
  display: block;
  width: 260px;
  margin: 30px auto;
}

.hero-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 0 0 20px;
}

.hero-tagline {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 0;
}

/* --- Drop Zone --- */

.drop-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--r);
  padding: 44px 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition:
    border-color 0.2s,
    background 0.2s;
  outline: none;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.drop-zone.dragover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-light);
}

.drop-zone-icon {
  color: var(--text-4);
  margin-bottom: 10px;
}

.drop-zone-text {
  font-size: 15px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.5;
}

.drop-zone-hint {
  font-size: 12px;
  color: var(--text-4);
  margin: 8px 0 0;
  line-height: 1.4;
}

.drop-zone-text .link {
  color: var(--accent);
  font-weight: 500;
}

.drop-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.drop-file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-4);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition:
    color 0.2s,
    background 0.2s;
}

.clear-btn:hover {
  color: var(--red);
  background: var(--red-bg);
}

/* --- Loading (inline) --- */

.drop-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.drop-loading-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin: 0;
}

.drop-loading-bar {
  width: 200px;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.drop-loading-fill {
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.drop-loading-sub {
  font-size: 12px;
  color: var(--text-4);
  margin: 0;
}

/* --- Samples --- */

.samples {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 50px;
  max-height: 300px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.4s ease;
}

.samples.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.samples-label {
  font-size: 13px;
  color: var(--text-4);
}

.samples-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sample-btn {
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--surface);
  transition:
    border-color 0.2s,
    transform 0.15s;
  aspect-ratio: 16 / 9;
}

.sample-btn:hover,
.sample-btn:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.sample-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Error --- */

.error-msg {
  background: var(--red-bg);
  border: 1px solid #fecaca;
  border-radius: var(--r);
  padding: 14px 18px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.error-msg p {
  margin: 0;
  font-size: 14px;
  color: #b91c1c;
  line-height: 1.45;
}

.retry-btn {
  background: none;
  border: 1px solid #b91c1c;
  color: #b91c1c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.retry-btn:hover {
  background: rgba(185, 28, 28, 0.06);
}

/* --- Preview --- */

.preview-card {
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.preview-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.preview-toggle-track {
  position: relative;
  width: 28px;
  height: 16px;
  background: var(--border);
  border-radius: 8px;
  transition: background 0.2s;
}

.preview-toggle input:checked + .preview-toggle-track {
  background: var(--accent);
}

.preview-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.preview-toggle input:checked + .preview-toggle-track .preview-toggle-thumb {
  transform: translateX(12px);
}

.preview-toggle-text {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-4);
}

.preview-tabs {
  display: flex;
  gap: 4px;
}

.preview-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-4);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 6px 12px;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.preview-tab:hover {
  color: var(--text-2);
  background: var(--surface);
}

.preview-tab.active {
  color: var(--text-1);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.preview-tab svg {
  flex-shrink: 0;
}

.preview-body {
  display: grid;
  padding: 16px;
}

.preview-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-area: 1 / 1;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

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

.preview-canvas-wrap {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  line-height: 0;
}

.preview-canvas-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--surface);
}

.preview-loading-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin: 0;
}

.preview-loading-bar {
  width: 200px;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.preview-loading-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.preview-loading-sub {
  font-size: 12px;
  color: var(--text-4);
  margin: 0;
}

.visuals-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-sm);
}

.visuals-empty {
  font-size: 13px;
  color: var(--text-4);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* --- Controls --- */

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

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

.ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.ctrl-btn:hover,
.ctrl-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border-light);
  outline: none;
  cursor: pointer;
}

.scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* --- Action Cards --- */

#actionsSection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.action-btn svg {
  flex-shrink: 0;
}

.action-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--text-3);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.action-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--text-3);
}

.action-btn:hover .action-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.action-btn.primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.action-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.action-btn.secondary {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.action-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--text-1);
}

.action-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-btn.disabled.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.action-btn.disabled.secondary:hover {
  border-color: var(--border);
  color: var(--text-2);
}

/* --- Advanced --- */

.advanced {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-top: 4px;
}

.advanced summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-4);
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
  transition: color 0.2s;
}

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

.advanced summary::before {
  content: "\25B8";
  font-size: 11px;
  transition: transform 0.2s;
}

.advanced[open] summary::before {
  transform: rotate(90deg);
}

.advanced summary:hover {
  color: var(--text-2);
}

.advanced-grid {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-tip {
  position: relative;
  color: var(--text-4);
  cursor: help;
  display: inline-flex;
  vertical-align: middle;
}

.field-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-3);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.field-tip:hover::after {
  opacity: 1;
}

.field-group input[type="text"],
.field-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s;
}

.field-group input[type="text"]:focus,
.field-group textarea:focus {
  border-color: var(--accent);
}

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

.range-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border-light);
  outline: none;
}

.range-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.range-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.range-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  min-width: 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-row input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px;
  cursor: pointer;
  background: none;
}

.color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.color-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.toggle-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
}

.tech-details {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.tech-heading {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.stat-row {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 4px;
}

.stat-row strong {
  color: var(--text-2);
  font-weight: 600;
}

.curve-data-box {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 10px;
  max-height: 100px;
  overflow: auto;
  word-break: break-all;
  margin-top: 10px;
  color: var(--text-3);
}

.bridge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.bridge-link:hover {
  text-decoration: underline;
}

/* Browser Bridge UI */
.browser-bridge {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

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

.bridge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--border-light);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.status-dot.connected {
  background: #34c759;
  box-shadow: 0 0 6px #34c759;
}

.status-dot.disconnected {
  background: var(--red);
}

.bridge-log {
  font-family: var(--font);
  font-size: 10px;
  background: #1d1d1f;
  color: #34c759;
  padding: 10px;
  border-radius: var(--r-sm);
  height: 80px;
  overflow-y: auto;
  line-height: 1.4;
  white-space: pre-wrap;
}

.bridge-log div {
  margin-bottom: 2px;
}

/* --- Footer --- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-4);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--text-4);
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text-1);
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Modal --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  padding: 24px 28px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.2px;
}

.modal-close {
  background: none;
  border: 0;
  padding: 4px 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-1);
}

.modal-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.modal-body p {
  margin: 0 0 10px;
}

.modal-body h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 18px 0 6px;
}

.modal-body ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--accent);
  text-decoration: underline;
}

.modal-body a:hover {
  color: var(--accent-hover);
}

.modal-body strong {
  color: var(--text-1);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.modal-actions .action-btn {
  flex: 1;
  font-size: 12px;
  padding: 10px 12px;
}

/* --- Consent banner --- */

.consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 400px;
  z-index: 150;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 20px;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-1);
}

.consent-banner p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 0 0 14px;
}

.consent-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.consent-link:hover {
  color: var(--accent-hover);
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent-actions .action-btn {
  flex: 1;
  font-size: 12px;
  padding: 8px 12px;
}

/* --- Responsive --- */

@media (max-width: 639px) {
  .content {
    padding: 0 16px 72px;
    gap: 24px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-tagline {
    font-size: 15px;
  }

  .drop-zone {
    padding: 36px 16px;
  }

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

  .samples-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    gap: 16px;
  }

  .consent-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* --- Utilities --- */

.hidden {
  display: none !important;
}

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