:root {
  color-scheme: dark;
  --ink: #f5f5f3;
  --muted: #aaa9a6;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(12, 12, 12, 0.52);
  --accent: #ff3158;
  --cyan: #35e2d0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body { margin: 0; min-height: 100%; background: #050505; }

body { overscroll-behavior: none; }

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  color: #050505;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.feed-page {
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 30%, rgba(53, 226, 208, 0.07), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(255, 49, 88, 0.07), transparent 30%),
    #050505;
}

.feed-stage {
  isolation: isolate;
  position: relative;
  width: min(100%, 540px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #090909;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
}

.feed-video,
.stage-shade,
.tap-target {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feed-video {
  z-index: -3;
  border: 0;
  background: #090909;
  object-fit: cover;
}

.feed-stage[data-fit="fit"] .feed-video { object-fit: contain; }

.stage-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0, transparent 20%, transparent 54%, rgba(0, 0, 0, 0.92) 95%),
    linear-gradient(90deg, transparent 67%, rgba(0, 0, 0, 0.18));
}

.feed-topbar {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: calc(62px + env(safe-area-inset-top));
  padding: calc(11px + env(safe-area-inset-top)) 15px 8px;
  text-shadow: 0 1px 8px #000;
}

.research-badge {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feed-tabs {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.feed-tabs button {
  position: relative;
  padding: 7px 0 9px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: inherit;
}

.feed-tabs .tab-muted { color: rgba(255, 255, 255, 0.64); }

.tab-count {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  color: #050505;
  background: var(--cyan);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-shadow: none;
  vertical-align: 1px;
}

.feed-tabs .tab-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.identity-button {
  justify-self: end;
  min-width: 0;
  max-width: 112px;
  overflow: hidden;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.viewer-tools {
  position: absolute;
  z-index: 9;
  top: calc(68px + env(safe-area-inset-top));
  right: 12px;
  display: flex;
  gap: 6px;
}

.glass-button {
  min-width: 44px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--glass);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.sound-button { min-width: 78px; }

.audio-prompt {
  position: absolute;
  z-index: 15;
  top: calc(112px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 13px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.audio-prompt[hidden] { display: none; }
.audio-prompt-copy { min-width: 0; }
.audio-prompt-copy strong { display: block; font-size: 13px; }
.audio-prompt-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.audio-prompt-actions { display: flex; gap: 7px; }
.audio-prompt button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #242424;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.audio-prompt .audio-primary { border-color: var(--cyan); color: #061210; background: var(--cyan); }

.tap-target {
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.play-glyph {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  font-size: 25px;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 150ms ease, transform 150ms ease;
  backdrop-filter: blur(8px);
}

.feed-stage[data-paused="true"] .play-glyph {
  opacity: 1;
  transform: none;
}

.action-rail {
  position: absolute;
  z-index: 10;
  right: 9px;
  bottom: calc(158px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.rail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 51px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  text-shadow: 0 1px 6px #000;
  cursor: pointer;
  text-decoration: none;
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.47);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 31px;
  line-height: 1;
  backdrop-filter: blur(9px);
  transition: transform 130ms ease, color 130ms ease;
}

.comment-icon { font-size: 23px; }
.save-icon { font-size: 27px; transform: scaleX(0.68); }
.rail-action:active .rail-icon { transform: scale(0.88); }
.rail-action[aria-pressed="true"] .rail-icon { color: var(--accent); }
.rail-action[aria-pressed="true"] .save-icon { color: #ffe66e; }

.caption-block {
  position: absolute;
  z-index: 7;
  left: 14px;
  right: 74px;
  bottom: calc(91px + env(safe-area-inset-bottom));
  text-shadow: 0 1px 7px #000;
  pointer-events: none;
}

.caption-block p,
.caption-block h1 { margin: 0; }

.caption-block .speaker {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

.production-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.68);
  font: 9px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.production-time { display: block; }
.breeding-label { padding: 2px 5px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: rgba(255, 255, 255, 0.82); }

.caption-block h1 {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(16px, 4.8vw, 21px);
  line-height: 1.13;
  letter-spacing: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.clip-transcript {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px !important;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.clip-tags {
  display: flex;
  gap: 7px;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.clip-progress {
  position: absolute;
  z-index: 11;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.clip-progress input {
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  cursor: pointer;
  background: transparent;
}

.clip-progress input::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, 0.35); }
.clip-progress input::-webkit-slider-thumb { width: 8px; height: 8px; margin-top: -3px; appearance: none; border: 0; border-radius: 50%; background: #fff; }
.clip-progress input::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.35); }
.clip-progress input::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; }

.clip-progress output {
  min-width: 70px;
  color: rgba(255, 255, 255, 0.72);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right;
}

.bottom-nav {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(58px + env(safe-area-inset-bottom));
  padding: 5px 13px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.bottom-nav a span { font-size: 16px; }
.bottom-nav a[aria-current="page"] { color: #fff; }

.feed-state {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px;
  color: #eee;
  background: #080808;
  text-align: center;
}

.feed-state[hidden] { display: none; }
.feed-state h2 { margin: 16px 0 6px; font-size: 20px; }
.feed-state p { max-width: 310px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.feed-state button { margin-top: 18px; padding: 10px 17px; border: 0; border-radius: 999px; color: white; background: var(--accent); font-weight: 800; cursor: pointer; }

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(1turn); } }

.sheet-dialog {
  width: min(100% - 16px, 520px);
  max-height: min(78dvh, 720px);
  margin: auto auto 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px 20px 12px 12px;
  color: var(--ink);
  background: #151515;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.sheet-dialog::backdrop { background: rgba(0, 0, 0, 0.64); backdrop-filter: blur(4px); }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 63px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.sheet-head div { display: flex; flex-direction: column; gap: 3px; }
.sheet-head strong { font-size: 15px; }
.sheet-head span { color: var(--muted); font-size: 10px; }

.close-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ddd;
  background: rgba(255, 255, 255, 0.08);
  font-size: 23px;
  cursor: pointer;
}

.comment-list {
  min-height: 180px;
  max-height: 52dvh;
  overflow: auto;
  padding: 8px 16px 16px;
}

.comment-empty { padding: 56px 24px; color: var(--muted); font-size: 13px; text-align: center; }

.comment {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px 0;
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #0a0a0a;
  background: #d6d5d2;
  font-size: 12px;
  font-weight: 900;
}

.comment-meta { display: flex; align-items: baseline; gap: 7px; }
.comment-meta strong { font-size: 11px; }
.comment-meta time { color: #777; font-size: 9px; }
.comment-body { margin: 4px 0 0; color: #deddda; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.comment-form input {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: white;
  background: #222;
}

.comment-form button,
.primary-button {
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.identity-dialog {
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: hidden;
  border-radius: 20px;
}
.identity-dialog form {
  position: relative;
  max-height: calc(100dvh - 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
}
.identity-dialog .close-button { position: absolute; top: 14px; right: 14px; }
.identity-dialog[data-required="true"] [data-close-identity] { display: none; }
.dialog-kicker { margin: 0 0 8px; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: 0.13em; }
.identity-dialog h2 { margin: 0; font-size: 25px; letter-spacing: 0; }
.identity-dialog > form > p:not(.dialog-kicker, .form-error) { margin: 9px 0 21px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.research-disclosure { padding: 10px 12px; border-left: 2px solid var(--cyan); background: rgba(53, 226, 208, 0.06); color: #cbcfd0 !important; }
.identity-dialog label { display: block; margin: 0 0 6px; color: #c1c0bd; font-size: 11px; font-weight: 700; }
.username-field { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 0 13px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 11px; background: #202020; }
.username-field span { color: #858585; }
.username-field input { width: 100%; padding: 12px 5px; border: 0; outline: 0; color: white; background: transparent; }
.consent-controls { display: grid; gap: 8px; margin-top: 16px; }
.consent-controls[hidden],
.consent-choice[hidden] { display: none; }
.consent-intro { margin: 0 0 2px; color: #c8c8c5; font-size: 11px; font-weight: 750; }
.consent-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}
.consent-choice input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--cyan); }
.consent-choice input:disabled { opacity: 0.68; }
.consent-choice strong { display: block; color: #f2f2ef; font-size: 11px; line-height: 1.35; }
.consent-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.consent-note { margin: 2px 0 0; color: #858582; font-size: 9px; line-height: 1.5; }
.consent-note a { color: var(--cyan); text-underline-offset: 2px; }
.form-error { min-height: 18px; margin: 6px 0 4px; color: #ff8ca1; font-size: 11px; }
.primary-button { width: 100%; min-height: 44px; }
.primary-button:disabled { opacity: 0.55; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  max-width: min(90vw, 420px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #eee;
  background: rgba(20, 20, 20, 0.94);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: 160ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Blind comparison */
.compare-page {
  height: 100dvh;
  overflow: hidden;
  background: #050505;
}

.compare-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(60px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #090909;
}

.back-link { justify-self: start; color: #ddd; font-size: 27px; text-decoration: none; }
.back-link span { position: relative; top: -3px; font-size: 11px; font-weight: 750; }
.compare-heading { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.compare-heading > div { display: flex; align-items: center; gap: 7px; }
.compare-heading strong { font-size: 11px; letter-spacing: 0.13em; }
.compare-heading span { color: #777; font-size: 9px; white-space: nowrap; }
.compare-heading b { padding: 2px 5px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #949492; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.compare-topbar .identity-button { background: #151515; }
.compare-identity { justify-self: end; display: flex; align-items: center; gap: 7px; }

.compare-shell { position: relative; height: calc(100dvh - 60px - env(safe-area-inset-top)); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: calc(100% - 125px - env(safe-area-inset-bottom));
  background: #222;
}

.candidate { isolation: isolate; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0c0c0c; }
.candidate video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0a0a0a; }
.candidate[data-fit="fit"] video { object-fit: contain; }
.candidate-shade { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.34), transparent 28%, transparent 70%, rgba(0,0,0,.55)); }
.candidate-label { position: absolute; z-index: 4; top: 13px; left: 13px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.candidate-label strong { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #080808; background: white; font-size: 12px; }
.candidate-label span { font-size: 11px; font-weight: 750; text-shadow: 0 1px 6px black; }
.candidate-tap { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.candidate.is-active { box-shadow: inset 0 0 0 2px var(--cyan); }
.sound-chip { position: absolute; z-index: 4; right: 10px; top: 14px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.48); font-size: 9px; pointer-events: none; }
.candidate.is-active .sound-chip { color: #061210; border-color: var(--cyan); background: var(--cyan); font-weight: 800; }
.candidate-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.2); }
.candidate-progress i { display: block; width: 0; height: 100%; background: white; }
.candidate-reveal { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 3px; padding: 11px; border-radius: 9px; background: rgba(0,0,0,.77); opacity: 0; pointer-events: none; transform: translateY(5px); transition: 140ms ease; }
.candidate-reveal.is-visible { opacity: 1; transform: none; }
.candidate-reveal strong { font-size: 13px; line-height: 1.2; }
.candidate-reveal span,
.candidate-reveal time { color: #aaa; font-size: 10px; }
.candidate-reveal time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.candidate-reveal .reveal-breeding { width: max-content; padding: 2px 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #ddd; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }

.compare-controls {
  height: calc(125px + env(safe-area-inset-bottom));
  padding: 10px 14px calc(9px + env(safe-area-inset-bottom));
  background: #0b0b0b;
}

.compare-controls > p { margin: 0 0 8px; color: #999; font-size: 10px; text-align: center; }
.vote-row { display: grid; grid-template-columns: 1fr .72fr 1fr; gap: 7px; }
.vote-row button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: white; background: #202020; font-size: 11px; font-weight: 800; cursor: pointer; }
.vote-row button:first-child { border-color: rgba(53,226,208,.46); }
.vote-row button:last-child { border-color: rgba(255,49,88,.46); }
.vote-row button:disabled, .skip-vote:disabled { opacity: .42; cursor: wait; }
kbd { min-width: 18px; padding: 2px 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: #aaa; background: #111; font: 9px ui-monospace, monospace; text-align: center; }
.skip-vote { display: block; margin: 7px auto 0; padding: 3px 8px; border: 0; color: #777; background: none; font-size: 9px; cursor: pointer; }
.compare-state { top: 0; bottom: calc(125px + env(safe-area-inset-bottom)); }

@media (max-width: 680px) {
  .compare-topbar { padding-left: 11px; padding-right: 11px; }
  .compare-heading span { display: none; }
  .compare-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .candidate-label { top: 8px; left: 9px; }
  .candidate-label strong { width: 25px; height: 25px; }
  .sound-chip { top: 8px; right: 8px; }
  .candidate-reveal { bottom: 8px; }
}

@media (max-width: 390px) {
  .feed-topbar { padding-left: 10px; padding-right: 10px; }
  .feed-tabs { gap: 12px; }
  .feed-tabs button { font-size: 14px; }
  .research-badge { max-width: 65px; overflow: hidden; text-overflow: ellipsis; }
  .identity-button { max-width: 91px; padding-inline: 7px; }
  .action-rail { right: 5px; }
  .caption-block { left: 11px; right: 66px; }
  .audio-prompt { grid-template-columns: 1fr; gap: 10px; }
  .audio-prompt-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

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