:root {
  --bg:        #F9F7F2;
  --accent:    #1C4D4F;
  --ink:       #2D2926;
  --muted:     #8C8279;
  --doe:       #005A9C;
  --recording: #E63946;
  --font: "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Layout ── */
.site-header {
  height: 4rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  flex-shrink: 0;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  text-decoration: none;
}
.site-header .logo-box {
  width: 2rem; height: 2rem;
  background: var(--doe);
  border-radius: 4px;
  transition: background .15s;
}
.site-header .logo:hover .logo-box { background: var(--accent); }
.site-header .logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--doe);
  transition: color .15s;
}
.site-header .logo:hover .logo-text { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 1.25rem; }
.user-label { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: 9999px;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: background .15s, color .15s;
}
.btn-icon:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.btn-icon svg { width: 1.25rem; height: 1.25rem; }

main { flex: 1; display: flex; flex-direction: column; }

/* ── Landing ── */
.landing-content {
  padding: 2rem 2.5rem 3rem;
  max-width: 56rem;
}

.eyebrow {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: #5A5A40;
  font-weight: 500;
  margin-bottom: .5rem;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero-title strong { font-weight: 700; }

.hero-sub {
  font-size: 1.35rem;
  color: rgba(26,26,26,.7);
  line-height: 1.6;
  font-weight: 300;
  max-width: 40rem;
  margin-bottom: 3rem;
}
.hero-sub strong { font-weight: 600; color: var(--ink); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-top: 1px solid rgba(0,0,0,.05);
  padding-top: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.info-label {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .75rem;
}
.info-label.dim { color: rgba(0,0,0,.3); }
.info-body { font-size: 1.05rem; line-height: 1.6; }
.info-body.light { font-weight: 300; }

.btn-begin {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 3rem;
  background: #5A5A40;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: background .6s;
  box-shadow: 0 1rem 2.5rem rgba(90,90,64,.2);
}
.btn-begin:hover { background: var(--ink); }
.btn-begin svg { width: 1.6rem; height: 1.6rem; transition: transform .6s; }
.btn-begin:hover svg { transform: translateX(.5rem); }

.landing-footer {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  opacity: .3;
}

/* ── Prompt selection ── */
.prompt-select-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.prompt-select-header { display: flex; flex-direction: column; gap: .5rem; }
.prompt-select-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.prompt-select-sub { color: var(--muted); font-size: .95rem; max-width: 36rem; }

.prompt-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.prompt-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid #ddd8d0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
  color: var(--ink);
}
.prompt-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(28,77,79,.1);
  transform: translateY(-1px);
}
.prompt-card:hover .prompt-card-arrow { color: var(--accent); transform: translateX(3px); }
.prompt-card-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid #ddd8d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  transition: background .15s, border-color .15s, color .15s;
}
.prompt-card:hover .prompt-card-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.prompt-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.prompt-card-title { font-size: 1rem; font-weight: 700; }
.prompt-card-focus { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.prompt-card-arrow {
  flex-shrink: 0;
  color: #ddd8d0;
  transition: color .15s, transform .2s;
}
.prompt-card-arrow svg { width: 1.25rem; height: 1.25rem; display: block; }
.prompt-empty { color: var(--muted); font-size: .9rem; padding: 1rem 0; }
.prompt-select-back { align-self: flex-start; }

/* ── Recording layout ── */
.recording-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
}
@media (max-width: 900px) {
  .recording-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
}

.panel-script {
  background: #fff;
  border-right: 1px solid rgba(0,0,0,.05);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.prompt-eyebrow {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.prompt-focus {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.prompt-script {
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
  opacity: .8;
  background: rgba(255,255,255,.5);
  border-radius: 0 .5rem .5rem 0;
}

.btn-exit {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.btn-exit:hover { color: var(--accent); }
.btn-exit svg { width: 1rem; height: 1rem; }

.panel-recorder {
  background: var(--bg);
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow-y: auto;
}

/* ── Camera viewport ── */
.viewport {
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 4/3;
  background: #111;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2rem 3rem rgba(0,0,0,.2);
}

.viewport video,
.viewport textarea {
  width: 100%;
  height: 100%;
  display: block;
}

.viewport video { object-fit: cover; }
.viewport video.mirror { transform: scaleX(-1); }

.viewport textarea {
  resize: none;
  border: none;
  outline: none;
  padding: 2rem;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
}

.viewport-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #222, #000);
  color: rgba(255,255,255,.08);
}
.viewport-placeholder svg { width: 6rem; height: 6rem; }

.viewport-audio {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  background: rgba(28,77,79,.25);
}
.viewport-audio svg { width: 5rem; height: 5rem; color: var(--accent); }
.viewport-audio span {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3em;
}

/* playback overlay */
.playback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  cursor: pointer;
}
.viewport:hover .playback-overlay { opacity: 1; }
.playback-btn {
  width: 5rem; height: 5rem;
  background: #fff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.playback-btn:hover { transform: scale(1.1); }
.playback-btn svg { width: 2.2rem; height: 2.2rem; }
.playback-btn svg.play { margin-left: .25rem; }

/* status badge */
.badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.badge {
  padding: .3rem .75rem;
  border-radius: 9999px;
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.badge-live { background: var(--recording); color: #fff; display: flex; align-items: center; gap: .4rem; }
.badge-live .dot { width: .4rem; height: .4rem; background: #fff; border-radius: 50%; animation: pulse 1s infinite; }
.badge-ready { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); color: rgba(255,255,255,.7); }
.badge-mode  { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); color: rgba(255,255,255,.5); }

@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ── Controls ── */
.controls { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; width: 100%; max-width: 36rem; }

.mode-toggle {
  display: flex;
  background: #EBE6DF;
  padding: .2rem;
  border-radius: 9999px;
  gap: 0;
}
.mode-btn {
  padding: .45rem 1.4rem;
  border-radius: 9999px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.mode-btn.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.record-row { display: flex; align-items: center; gap: 2rem; }

.record-btn {
  width: 5rem; height: 5rem;
  border-radius: 9999px;
  border: 4px solid #fff;
  background: var(--recording);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 .5rem 2rem rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.record-btn:hover { transform: scale(1.05); box-shadow: 0 .75rem 2.5rem rgba(0,0,0,.2); }
.record-btn.recording {
  transform: scale(1.1);
  box-shadow: 0 0 0 .5rem rgba(230,57,70,.2);
  border-color: transparent;
}
.record-btn .stop-icon { width: 1.4rem; height: 1.4rem; background: #fff; border-radius: 3px; }
.record-btn .start-icon { width: 1.4rem; height: 1.4rem; background: #fff; border-radius: 9999px; }

.timer {
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  min-width: 5rem;
}

.action-row { display: flex; align-items: center; gap: 1rem; }

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  cursor: pointer;
  padding: .4rem 1rem;
  transition: color .15s;
}
.btn-reset:hover { color: var(--ink); }
.btn-reset svg { width: 1rem; height: 1rem; }

.btn-submit {
  padding: 1.1rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3em;
  cursor: pointer;
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15);
  transition: background .15s, opacity .15s;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.btn-submit:hover { background: var(--ink); }
.btn-submit:disabled { opacity: .45; cursor: not-allowed; }
.btn-submit .spinner {
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Complete state ── */
.complete-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  background: #fff;
}
.complete-circle {
  width: 6rem; height: 6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.complete-circle svg { width: 3rem; height: 3rem; }
.complete-title { font-size: 3rem; color: var(--accent); font-weight: 300; margin-bottom: .75rem; }
.complete-sub { max-width: 28rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.drive-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg);
  padding: .75rem 1.25rem;
  border-radius: .5rem;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 2.5rem;
}
.drive-link svg { width: 1rem; height: 1rem; }
.btn-return {
  padding: .9rem 2.5rem;
  background: var(--doe);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-return:hover { background: var(--accent); }

/* ── Recording footer bar ── */
.recording-footer {
  height: 3rem;
  padding: 0 2rem;
  border-top: 1px solid rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  background: rgba(255,255,255,.3);
  flex-shrink: 0;
}

/* ── Diagnostic modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(45,41,38,.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.hidden { display: none; }

.modal {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2rem 4rem rgba(0,0,0,.15);
  max-width: 32rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  border: 1px solid rgba(0,0,0,.05);
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header-left { display: flex; align-items: center; gap: .75rem; }
.modal-header-left svg { width: 1.1rem; height: 1.1rem; color: var(--accent); }
.modal-title { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(0,0,0,.05); display: flex; justify-content: flex-end; }

.diag-email-box {
  background: var(--bg);
  padding: 1.25rem;
  border-radius: .5rem;
}
.diag-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  opacity: .4;
  display: block;
  margin-bottom: .5rem;
}
.diag-email {
  font-size: .7rem;
  font-family: monospace;
  word-break: break-all;
  background: #fff;
  padding: .4rem .6rem;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: .25rem;
}
.diag-hint { font-size: .55rem; font-style: italic; color: var(--muted); margin-top: .4rem; }

.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.diag-card {
  padding: 1.25rem;
  border-radius: .5rem;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.diag-card.ok  { background: #f0fdf4; border-color: #bbf7d0; }
.diag-card.err { background: #fef2f2; border-color: #fecaca; }
.diag-card svg { width: 1.1rem; height: 1.1rem; }
.diag-card.ok  svg { color: #16a34a; }
.diag-card.err svg { color: #dc2626; }
.diag-card-label { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; display: block; }
.diag-card-detail { font-size: .7rem; }

.diag-logs { display: flex; flex-direction: column; gap: .4rem; }
.diag-log {
  font-size: .65rem;
  font-family: monospace;
  background: #fef2f2;
  color: #991b1b;
  padding: .4rem .6rem;
  border-radius: .25rem;
  white-space: pre-wrap;
}

.diag-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: .5rem;
  padding: .875rem 1rem;
  font-size: .7rem;
}
.diag-warning strong { display: flex; align-items: center; gap: .4rem; color: #9a3412; margin-bottom: .4rem; }
.diag-warning strong svg { width: 1rem; height: 1rem; }
.diag-warning p { color: #c2410c; }

.diag-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}
.diag-spinner svg { width: 2rem; height: 2rem; color: var(--accent); animation: spin .7s linear infinite; }
.diag-spinner span { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; opacity: .4; }

.btn-recheck {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  border: 1px solid rgba(0,0,0,.1);
  background: none;
  padding: .5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, color .15s;
}
.btn-recheck:hover { background: var(--ink); color: #fff; }

/* hidden utility */
.hidden { display: none !important; }

/* ── Login page ── */
.login-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  color: var(--ink);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(0,0,0,.05);
}
.login-logo {
  width: 40px; height: 40px;
  background: var(--doe);
  border-radius: 6px;
  margin: 0 auto 1.5rem;
}
.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--doe);
  margin-bottom: .5rem;
}
.login-card p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 8px;
  padding: .875rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  width: 100%;
  transition: background .15s, border-color .15s;
}
.btn-google:hover { background: #f5f5f5; border-color: rgba(0,0,0,.2); }
.btn-google svg { flex-shrink: 0; }
.login-footer {
  margin-top: 2rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  opacity: .6;
}
.login-messages { margin-bottom: 1.5rem; }
.login-message-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: .8rem;
  color: #dc2626;
}

/* ── Pending-upload banner ── */
.pending-banner {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  margin: 1rem auto;
  max-width: 72rem;
  font-size: .85rem;
}
.pending-banner-inner { padding: .75rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.pending-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.pending-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; }
.pending-info svg { width: 1rem; height: 1rem; color: #d97706; flex-shrink: 0; }
.pending-date { color: var(--muted); font-size: .75rem; }
.btn-retry {
  padding: .3rem .8rem; border-radius: 6px; font-size: .8rem; cursor: pointer;
  background: #f59e0b; color: #fff; border: none; font-weight: 600;
  transition: background .15s;
}
.btn-retry:hover:not(:disabled) { background: #d97706; }
.btn-retry:disabled { opacity: .6; cursor: default; }
.btn-discard {
  padding: .3rem .8rem; border-radius: 6px; font-size: .8rem; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  transition: background .15s;
}
.btn-discard:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* ── Utility layout classes (replace one-off inline styles) ── */
.form-display-contents { display: contents; }
.section-hero          { margin-bottom: 3rem; }
.prompt-inner          { max-width: 32rem; margin: 0 auto; }
.panel-recorder-inner  { width: 100%; max-width: 36rem; display: flex; flex-direction: column; gap: 1.5rem; }
.footer-label-bold     { font-weight: 700; }
.viewport-video        { width: 100%; height: 100%; object-fit: cover; }
.icon-sm               { width: 1rem; height: 1rem; }
