/* Root-cause fix (2026-08-18): 22 elements below have their own
   `#id { display: X }` or `.class { display: X }` rule, and
   `classList.add("hidden")` in app.js only does something if a
   *compound* selector like `#id.hidden` also exists. 14 elements never
   got one, so JS "hid" them and nothing visually happened -- including
   the Premium modal's top-up button, which stayed visible regardless of
   why the modal was opened. !important beats specificity entirely, so
   this is a real default: any element carrying .hidden is hidden, full
   stop, and the per-element compound rules below become redundant but
   harmless. Do not remove this thinking it's dead weight. */
.hidden { display: none !important; }

:root {
  color-scheme: light;
  --ink: #0d0d0d;
  --muted: #5d5d5d;
  --cream: #ffffff;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --input: #ffffff;
  --line: #dedede;
  --green: #111111;
  --green-dark: #111111;
  --coral: #1f9d6c;
  --timestamp-ink: #177a53; /* 5.3:1 on #fff; --coral is 3.4:1 */
  --coral-soft: #dff3e6;
  --track: #e8e8e8;
  --placeholder: #9a9f9c;
  --preview: #f0eee7;
  --preview-ink: #4b4b4b;
  --backdrop: rgba(0,0,0,.55);
  --shadow: 0 22px 60px rgba(0,0,0,.12);
  --hero-card: #ffffff;
  --hero-input: #ffffff;
  --hero-border: #e5e5e5;
  --hero-focus: #111111;
  --hero-cta-bg: #111111;
  --hero-cta-hover: #292929;
  --hero-cta-ink: #ffffff;
  --hero-cta-credit: rgba(255,255,255,.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --pointer-x: 50vw;
  --pointer-y: 20vh;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cursor-aurora {
  position: fixed;
  z-index: 0;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .07;
  filter: blur(18px);
  /* left/top were animated via --pointer-x/y on every pointermove, which
     forces layout each frame (real CLS regression seen in Web Analytics).
     translate3d keeps the movement on the compositor instead. */
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,0,0,.06), rgba(0,0,0,.025) 38%, transparent 70%);
  transition: opacity .3s ease;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(0,0,0,.018), transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(0,0,0,.022), transparent 25%),
    linear-gradient(180deg, #ffffff, transparent 72%);
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(24,32,29,.1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font: 800 20px "Manrope", sans-serif;
  letter-spacing: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-whats-new { display:inline-flex; align-items:center; gap:6px; }
.nav-new-badge {
  display:inline-flex;
  align-items:center;
  min-height:14px;
  padding:1px 5px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font:800 7px/1.4 "DM Sans",sans-serif;
  letter-spacing:.45px;
}
:where(html[data-theme="dark"]) .nav-new-badge { background:rgba(129,140,248,.18); color:#c7d2fe; }
.nav-google-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
}
.nav-google-button.hidden { display: none; }
.account-button {
  padding: 8px 13px;
  border: 1px solid rgba(17,17,17,.2);
  border-radius: 99px;
  color: var(--green-dark);
  background: rgba(255,255,255,.35);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.language-switch {
  border: 0;
  outline: 0;
  color: var(--green-dark);
  background: transparent;
  font: 800 11px "DM Sans", sans-serif;
  cursor: pointer;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(17,17,17,.2);
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--green); transform: rotate(-12deg); }
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 89px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 0 48px;
  text-align: left;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(460px, 1.22fr);
  align-items: center;
  gap: clamp(30px, 5vw, 62px);
}
.hero-copy-block { min-width: 0; }
.ambient-wave {
  position: absolute;
  z-index: -1;
  top: 20px;
  left: 28%;
  width: min(560px, 52vw);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, .8vw, 11px);
  opacity: .12;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.ambient-wave span {
  width: clamp(3px, .4vw, 5px);
  height: 28%;
  border-radius: 99px;
  background: linear-gradient(to bottom, var(--green), var(--coral));
  transform-origin: center;
  animation: ambient-wave 4.8s ease-in-out infinite;
}
.ambient-wave span:nth-child(3n) { animation-duration: 5.7s; animation-delay: -.8s; }
.ambient-wave span:nth-child(4n) { animation-duration: 4.1s; animation-delay: -1.7s; }
.ambient-wave span:nth-child(5n) { animation-duration: 6.2s; animation-delay: -2.4s; }
@keyframes ambient-wave {
  0%, 100% { transform: scaleY(.35); opacity: .42; }
  35% { transform: scaleY(1.35); opacity: .95; }
  68% { transform: scaleY(.68); opacity: .6; }
}
.eyebrow, .section-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow span { width: 25px; height: 1px; background: var(--coral); }
h1 {
  position: relative;
  overflow: hidden;
  max-width: 560px;
  margin: 18px 0 18px;
  font: 800 64px/.97 "Manrope", sans-serif;
  letter-spacing: 0;
}
h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 32%, rgba(255,255,255,.5) 48%, transparent 64% 100%);
  transform: translateX(-120%);
  animation: cta-sheen 1.6s ease-in-out 1s 1 forwards;
  pointer-events: none;
}
h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(110deg, var(--coral) 15%, #ffad86 42%, var(--coral) 68%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-shimmer 7s ease-in-out infinite;
}
@keyframes text-shimmer {
  0%, 70%, 100% { background-position: 100% 50%; }
  35% { background-position: 0 50%; }
}
.hero-copy {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}
.motion-ready .hero-copy-block .eyebrow,
.motion-ready .hero-copy-block h1,
.motion-ready .hero-copy,
.motion-ready .hero-benefits li,
.motion-ready .hero-actions,
.motion-ready .transcribe-card,
.motion-ready .platform-row > span,
.motion-ready .platform-row > a,
.motion-ready .trust-row {
  animation: hero-rise .72s cubic-bezier(.2,.8,.2,1) backwards;
}
.motion-ready .hero-copy-block .eyebrow { animation-delay: .04s; }
.motion-ready .hero-copy-block h1 { animation-delay: .12s; }
.motion-ready .hero-copy { animation-delay: .2s; }
.motion-ready .hero-benefits li:nth-child(1) { animation-delay: .28s; }
.motion-ready .hero-benefits li:nth-child(2) { animation-delay: .34s; }
.motion-ready .hero-benefits li:nth-child(3) { animation-delay: .4s; }
.motion-ready .hero-benefits li:nth-child(4) { animation-delay: .46s; }
.motion-ready .hero-actions { animation-delay: .52s; }
.motion-ready .transcribe-card { animation-delay: .24s; }
.motion-ready .platform-row > :nth-child(1) { animation-delay: .60s; }
.motion-ready .platform-row > :nth-child(2) { animation-delay: .63s; }
.motion-ready .platform-row > :nth-child(3) { animation-delay: .66s; }
.motion-ready .platform-row > :nth-child(4) { animation-delay: .69s; }
.motion-ready .platform-row > :nth-child(5) { animation-delay: .72s; }
.motion-ready .platform-row > :nth-child(6) { animation-delay: .75s; }
.motion-ready .platform-row > :nth-child(7) { animation-delay: .78s; }
.motion-ready .platform-row > :nth-child(8) { animation-delay: .81s; }
.motion-ready .platform-row > :nth-child(9) { animation-delay: .84s; }
.motion-ready .platform-row > :nth-child(10) { animation-delay: .87s; }
.motion-ready .platform-row > :nth-child(11) { animation-delay: .90s; }
.motion-ready .platform-row > :nth-child(12) { animation-delay: .93s; }
.motion-ready .platform-row > :nth-child(13) { animation-delay: .96s; }
.motion-ready .platform-row > :nth-child(14) { animation-delay: .99s; }
.motion-ready .platform-row > :nth-child(15) { animation-delay: 1.02s; }
.motion-ready .platform-row > :nth-child(16) { animation-delay: 1.05s; }
.motion-ready .platform-row > :nth-child(17) { animation-delay: 1.08s; }
.motion-ready .platform-row > :nth-child(18) { animation-delay: 1.11s; }
.motion-ready .platform-row > :nth-child(19) { animation-delay: 1.14s; }
.motion-ready .platform-row > :nth-child(20) { animation-delay: 1.17s; }
.motion-ready .platform-row > :nth-child(21) { animation-delay: 1.20s; }
.motion-ready .platform-row > :nth-child(22) { animation-delay: 1.23s; }
.motion-ready .platform-row > :nth-child(23) { animation-delay: 1.26s; }
.motion-ready .platform-row > :nth-child(24) { animation-delay: 1.29s; }
.motion-ready .trust-row { animation-delay: 1.33s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-benefits {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px;
  max-width: 540px;
}
.hero-benefits li {
  display: flex; align-items: center; gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 999px;
  color: var(--ink); background: var(--surface-soft);
  font-size: 13px; font-weight: 700;
}
.hero-benefits li:nth-child(-n+2) {
  grid-column: 1 / -1;
}
.hero-benefits li::before {
  content: ""; flex: 0 0 14px; width: 14px; height: 14px;
  background: var(--coral); border-radius: 99px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-actions { display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; gap: 12px; margin: 0; }
.sample-button {
  width: min(100%, 332px);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(17,17,17,.18);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(41,52,47,.06);
  transition: .2s ease;
}
.sample-button:hover { border-color: var(--green); background: var(--paper); transform: translateY(-2px); }
.sample-button-icon {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 12px; color: white; background: #111;
  animation: sample-float 4.4s ease-in-out infinite;
}
@keyframes sample-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.sample-button-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sample-button strong, .sample-button small { display: block; }
.sample-button strong { font-size: 13px; }
.sample-button small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.sample-button > b { margin-left: auto; color: var(--ink); font-size: 20px; }
.test-video-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper);
  font: 700 12px "DM Sans", sans-serif; cursor: pointer;
}
.test-video-button:hover { color: var(--ink); background: var(--surface-soft); }
.test-video-button > span:first-child {
  width: 25px; height: 25px; display: grid; place-items: center;
  border: 1px solid rgba(17,17,17,.2); border-radius: 50%; font-size: 8px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.test-video-button:hover > span:first-child {
  border-color: var(--green);
  background: rgba(17,17,17,.06);
  transform: translateX(2px) scale(1.06);
}
.transcribe-card {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0;
  padding: 28px;
  text-align: left;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: perspective(1100px) rotateX(var(--surface-rotate-x, 0deg)) rotateY(var(--surface-rotate-y, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
.transcribe-card:hover { box-shadow: 0 30px 85px rgba(41,52,47,.17); }
.transcribe-card.drag-over { box-shadow: 0 30px 85px rgba(41,52,47,.17); }
.transcribe-card.drag-over::after {
  content: attr(data-drop-hint);
  position: absolute;
  inset: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--green);
  border-radius: 12px;
  background: var(--surface-soft);
  backdrop-filter: blur(3px);
  color: var(--green-dark);
  font: 700 15px "DM Sans", sans-serif;
  pointer-events: none;
}
.surface-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--surface-x, 50%) var(--surface-y, 50%),
    rgba(237,116,89,.13),
    rgba(17,17,17,.04) 42%,
    transparent 72%
  );
  transition: opacity .25s ease;
}
.interactive-surface:hover .surface-glow { opacity: 1; }
.card-accent {
  position: absolute; inset: 0 0 auto; height: 3px;
  background: #111;
  background-size: 200% 100%;
  animation: accent-flow 5s linear infinite;
}
@keyframes accent-flow { to { background-position: -200% 0; } }
.card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 3px 9px; }
.card-heading label { font-size: 12px; font-weight: 700; }
.usage-summary { color: var(--green); font-size: 11px; font-weight: 700; }
.card-heading .usage-summary { flex: 1 1 auto; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.account-plan-actions {
  display: flex;
  /* Share the heading row with the label/usage text when it fits; wrap to
     its own right-aligned row only when the chips don't fit beside them. */
  flex: 0 1 auto;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.account-plan-actions > .upgrade-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  line-height: 1.25;
  white-space: nowrap;
}
.account-plan-actions .ha-new-badge { flex: none; margin-left: 0; }
.url-row { display: flex; gap: 10px; }
.url-input {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input);
  overflow: hidden;
  transition: .2s ease;
}
.url-input::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.url-input:focus-within { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.url-input:focus-within::after { transform: scaleX(1); }
.url-input svg, .privacy-note svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.url-input svg { flex: none; margin-top: 4px; color: var(--placeholder); }
.url-input input,
.url-input textarea {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  /* >=16px so mobile browsers don't auto-zoom the page on focus. */
  font: 500 16px/1.45 "DM Sans", sans-serif;
}
.url-input textarea {
  /* Tall enough for the whole placeholder (3 lines at 16px/1.45). */
  min-height: 76px;
  max-height: 132px;
  resize: vertical;
  overflow: auto;
  overflow-wrap: anywhere;
}
.url-row button {
  position: relative;
  overflow: hidden;
  min-width: 174px;
  align-self: stretch;
  border: 0;
  border-radius: 14px;
  color: white;
  background: #111;
  font: 700 15px "DM Sans", sans-serif;
  cursor: pointer;
  transition: .2s ease;
}
.url-row button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 32%, rgba(255,255,255,.28) 48%, transparent 64% 100%);
  transform: translateX(-120%);
  animation: cta-sheen 1.6s ease-in-out 1.3s 1 forwards;
}
.url-row button b,
.url-row button span {
  position: relative;
  z-index: 1;
}
.url-row button:hover { background: #292929; transform: translateY(-1px); }
.url-row button:hover .submit-label i { transform: translateX(3px); }
.url-row button:disabled { opacity: .6; cursor: not-allowed; transform: none; pointer-events: none; }

.submit-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.15);
  transition: width 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

#submit-button {
  position: relative;
  overflow: hidden;
}

#submit-button .submit-label,
#submit-button .submit-credit {
  position: relative;
  z-index: 1;
}
.submit-label { display: flex; align-items: center; justify-content: center; gap: 9px; }
.submit-label i { font-style: normal; font-size: 20px; transition: transform .2s ease; }
.submit-credit { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin-top: 5px; color: rgba(255,255,255,.78); font: 500 9px "DM Sans", sans-serif; letter-spacing: .15px; }
.submit-openai-logo { width: 31px; height: 31px; fill: currentColor; flex: 0 0 auto; }
@keyframes cta-sheen {
  0%, 58% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}
.quality-select-wrap {
  display: block;
  flex: 1 1 190px;
  min-width: 0;
}
.quality-select-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.quality-select-wrap select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 600 13px "DM Sans", sans-serif;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quality-select-wrap select:disabled {
  cursor: default;
  opacity: .78;
}
.quality-select-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 500 10px/1.35 "DM Sans", sans-serif;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: 18px;
  row-gap: 14px;
  margin-top: 18px;
}
.options-grid .privacy-note,
.options-grid #find-speakers-option-wrap {
  grid-column: 1 / -1;
}
.find-speakers-option-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.select-wrap { min-width: 0; }
#diarize-speaker-count-wrap {
  grid-column: 1 / -1;
  max-width: 260px;
}
.select-wrap span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.select-wrap select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 600 13px "DM Sans", sans-serif;
}
#diarize-speaker-count-wrap select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  min-height: 38px;
  padding: 8px 34px 8px 11px;
  cursor: pointer;
}
.privacy-note {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.privacy-note svg { color: var(--green); }
.checkbox-wrap { display: inline-flex; align-items: center; gap: 8px; }
.inline-premium-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(233,91,74,.12);
  color: #b24a36;
  font: 800 9px "DM Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.new-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(47, 111, 98, .12);
  color: var(--green, #2f6f62);
  font: 800 9px "DM Sans", sans-serif;
  letter-spacing: .08em;
}
.find-speakers-learn-more {
  position: relative;
  display: inline-flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--muted, #6b7c89);
  border-radius: 50%;
}
.find-speakers-learn-more svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.find-speakers-learn-more:hover,
.find-speakers-learn-more:focus-visible { color: var(--accent, #2f6f62); }
.find-speakers-learn-more::after {
  content: attr(data-hint);
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 50%;
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--ink, #17232b);
  color: var(--surface, #fff);
  font: 500 12px/1.4 "DM Sans", sans-serif;
  text-decoration: none;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -2px);
  transition: opacity .12s ease, transform .12s ease;
}
.find-speakers-learn-more:hover::after,
.find-speakers-learn-more:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Free accounts see the checkbox but can't tick it - the whole label stays
   clickable so the click opens the Premium upsell (wired in app.js). */
.checkbox-wrap[data-locked="true"] { cursor: pointer; }
.checkbox-wrap[data-locked="true"] input { pointer-events: none; }
.checkbox-wrap[data-locked="true"] span[data-i18n="translateToEnglish"] { color: var(--muted); }
.checkbox-wrap[data-locked="true"] span[data-i18n="diarizeBetaLabel"] { color: var(--muted); }
.upload-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.upload-row .hidden { display: none; }
.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--green);
  background: transparent;
  color: var(--green-dark);
  border-radius: 14px;
  padding: 9px 14px;
  cursor: pointer;
  font: 600 13px "DM Sans", sans-serif;
}
.upload-button:hover { background: rgba(0, 0, 0, 0.03); }
.cloud-import-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font: 600 13px "DM Sans", sans-serif;
}
.cloud-import-icons { display: inline-flex; align-items: center; gap: 6px; }
.cloud-import-icons a {
  display: block;
  border-radius: 6px;
  line-height: 0;
  transition: transform .12s ease, opacity .12s ease;
}
.cloud-import-icons a:hover { transform: translateY(-1px); }
.cloud-import-icons a:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
/* Explicit box so the brand marks never inherit the dashed-button icon styling
   (.upload-button svg sets fill:none/stroke:currentColor) and never reflow. */
.cloud-import-icons svg { width: 18px; height: 18px; flex: 0 0 18px; display: block; fill: initial; stroke: none; }
.cloud-import-text { color: inherit; text-decoration: none; }
.cloud-browser-card { box-sizing: border-box; width: min(860px, calc(100vw - 40px)); max-width: 100%; max-height: min(820px, calc(100vh - 40px)); overflow-y: auto; overflow-x: hidden; }
.cloud-browser-card h2 { max-width: calc(100% - 44px); overflow-wrap: anywhere; }
.cloud-browser-up { margin: -4px 0 10px; }
.cloud-browser-list { display: grid; gap: 10px; min-width: 0; width: 100%; min-height: 72px; overflow: hidden; }
.cloud-browser-row { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 0; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cloud-browser-name { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 1.25; font-weight: 600; }
.cloud-browser-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cloud-browser-action { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 9px; padding: 7px 10px; cursor: pointer; font: 700 12px "DM Sans", sans-serif; }
.cloud-browser-action:hover { border-color: var(--green-dark); color: var(--green-dark); }

.upload-button svg {
  width: 18px; height: 18px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.batch-upload-button {
  border-style: solid;
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-soft);
  position: relative;
}
.batch-upload-button:hover { filter: brightness(0.97); background: var(--coral-soft); }
.batch-upload-button .batch-lock-icon { width: 14px; height: 14px; display: none; }
.batch-upload-button[data-locked="true"] {
  border-style: dashed;
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}
.batch-upload-button[data-locked="true"]:hover { background: rgba(0, 0, 0, 0.03); }
.batch-upload-button[data-locked="true"] .batch-lock-icon { display: inline-block; }
.upload-chosen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  font: 600 13px "DM Sans", sans-serif;
}
.upload-chosen span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-chosen button {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 14px; line-height: 1; padding: 2px 4px;
}
.upload-chosen button:hover { color: var(--green-dark); }
.form-error { display: none; margin: 15px 2px 0; color: #b74735; font-size: 13px; }
.form-error.visible { display: block; }
.form-error[data-tone="success"] { color: var(--green-dark); }
.form-error[data-tone="warning"] { color: #99550e; }
.clipboard-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(520px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(17,17,17,.96);
  color: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.clipboard-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.clipboard-toast-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d8f6f, #1f5e4d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.clipboard-toast-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clipboard-toast-copy { min-width: 0; }
.clipboard-toast-copy strong {
  display: block;
  font: 800 15px "Manrope", sans-serif;
  letter-spacing: -.01em;
}
.clipboard-toast-copy p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.82);
  font: 500 13px/1.45 "DM Sans", sans-serif;
}
.clipboard-open-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  font: 700 12px "DM Sans", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.clipboard-open-ai[hidden] { display: none; }
.clipboard-open-ai:hover { background: rgba(255,255,255,.16); }
.clipboard-open-ai:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 540px) {
  .clipboard-toast { flex-wrap: wrap; }
  .clipboard-toast-copy { flex: 1 1 0; }
  .clipboard-open-ai { margin: 0; width: 100%; }
}
.pw-field { position: relative; display: flex; align-items: center; }
.pw-field input { flex: 1; padding-right: 60px; }
.pw-toggle {
  position: absolute; right: 6px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 600 12px "DM Sans", sans-serif; padding: 6px 8px; border-radius: 6px;
}
.pw-toggle:hover { color: var(--green-dark); }
.form-hint { margin: 8px 2px 0; color: var(--muted); font-size: 12px; }
.form-hint[hidden] { display: none; }
.auth-link-button {
  align-self: flex-end;
  margin: -2px 0 2px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--green);
  font: 700 12px "DM Sans", sans-serif;
  cursor: pointer;
}
.auth-link-button.hidden { display: none; }
.auth-link-button:hover { color: var(--green-dark); }
.usage-meter { height: 4px; margin-top: 17px; overflow: hidden; border-radius: 99px; background: var(--track); }
.usage-meter.hidden { display: none; }
.usage-meter span { display: block; height: 100%; background: var(--green); transition: width .3s ease; }
.upgrade-chip {
  border: 1px solid var(--coral);
  background: var(--coral-soft);
  color: var(--coral);
  font: 700 11px "DM Sans", sans-serif;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.upgrade-chip.hidden { display: none; }
.upgrade-chip:hover { filter: brightness(0.97); }
.ha-new-badge { display: inline-flex; align-items: center; justify-content: center; margin-left: 5px; border-radius: 999px; padding: 2px 6px; background: var(--coral); color: #fff; font: 800 9px/1.2 "DM Sans", sans-serif; letter-spacing: .05em; vertical-align: 1px; }
.high-accuracy-main-promo { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 10px 12px; border: 1px solid rgba(225,99,72,.28); border-radius: 12px; background: linear-gradient(135deg, rgba(225,99,72,.09), rgba(255,255,255,.72)); color: var(--ink); text-decoration: none; font: 600 12px/1.35 "DM Sans", sans-serif; }
.high-accuracy-main-promo strong { font-weight: 800; }
.high-accuracy-main-promo > span:not(.ha-new-badge) { color: var(--muted); }
.high-accuracy-main-promo > b { margin-left: auto; color: var(--coral); font-size: 16px; }
.high-accuracy-main-promo:hover { border-color: rgba(225,99,72,.5); filter: brightness(0.99); }
.ha-best-badge { display: inline-flex; margin: 0 0 8px; border: 1px solid rgba(225,99,72,.28); border-radius: 999px; padding: 4px 8px; background: var(--coral-soft); color: var(--coral); font: 800 10px/1.2 "DM Sans", sans-serif; letter-spacing: .02em; }
@media (max-width: 640px) { .high-accuracy-main-promo { align-items: flex-start; flex-wrap: wrap; } .high-accuracy-main-promo > b { margin-left: 0; } }
/* Shown only for visitors attributed to chatgpt.com - the one referral
   source with a confirmed real Premium conversion so far (2026-07-25),
   who converted straight from this button without ever hitting a quota
   wall. Reuses the same sheen animation as the main submit button rather
   than inventing a new effect, and never mentions ChatGPT/OpenAI in copy
   or branding - a false-endorsement risk already rejected once for the
   Ask AI feature. */
.upgrade-chip.emphasized {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: var(--coral);
  color: #fff;
  padding: 6px 13px;
  font-size: 12px;
}
.upgrade-chip.emphasized:hover { filter: brightness(1.06); }
.upgrade-chip.emphasized::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 32%, rgba(255,255,255,.5) 48%, transparent 64% 100%);
  transform: translateX(-120%);
  animation: cta-sheen 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .upgrade-chip.emphasized::before { animation: none; }
}
.past-due-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 2px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(183,71,53,.35);
  border-radius: 12px;
  background: rgba(183,71,53,.08);
}
.past-due-banner.hidden { display: none; }
.past-due-banner-text { flex: 1 1 260px; color: #b74735; font: 600 12.5px/1.4 "DM Sans", sans-serif; }
.past-due-banner-button {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  background: #b74735;
  color: #fff;
  font: 700 11px "DM Sans", sans-serif;
  cursor: pointer;
}
.past-due-banner-button:hover { filter: brightness(1.06); }
.batch-panel { grid-column: 1 / -1; margin-top: 18px; padding: 28px; }
.batch-panel.hidden { display: none; }
.batch-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.batch-panel-heading h3 { margin: 6px 0 0; font: 800 22px "Manrope", sans-serif; }
.batch-file-count { margin: 3px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.batch-cancel-all.hidden { display: none; }
.batch-file-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.batch-file-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.batch-file-row.is-active { border-color: var(--coral); }
.batch-file-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--track);
  color: var(--muted);
  font: 800 11px "Manrope", sans-serif;
}
.batch-file-row.is-active .batch-file-index { background: var(--coral); color: #fff; }
.batch-file-main { min-width: 0; }
.batch-file-main .job-title { font-size: 13px; }
.batch-file-row .job-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.batch-panel-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.batch-panel-actions .primary-button { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.batch-panel-actions .batch-add-recording-button {
  height: 42px;
  padding: 0 16px 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(47, 111, 98, .24);
  color: var(--green-dark);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(135deg, rgba(47,111,98,.13), rgba(237,116,89,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 20px rgba(47,111,98,.10);
  font: 800 13px "DM Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.batch-panel-actions .batch-add-recording-button::before {
  content: "+";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  font: 900 15px/1 "Manrope", sans-serif;
  box-shadow: 0 4px 10px rgba(47,111,98,.22);
}
.batch-panel-actions .batch-add-recording-button:hover {
  transform: translateY(-1px);
  border-color: rgba(47,111,98,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(47,111,98,.15);
}
.batch-panel-actions .batch-add-recording-button:focus-visible {
  outline: 2px solid rgba(47,111,98,.38);
  outline-offset: 3px;
}
.batch-panel-actions .batch-add-recording-button:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
  box-shadow: none;
}
.batch-panel-actions .hidden { display: none; }
.channel-cta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(24,32,29,.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.42)),
    radial-gradient(circle at top left, rgba(255,0,0,.08), transparent 48%);
  box-shadow: 0 14px 40px rgba(17,17,17,.05);
}
/* The always-on promo is gone; the box only appears once a channel link is pasted. */
.channel-cta:not([data-ready="true"]) { display: none; }
.channel-cta[data-ready="true"] {
  border-color: rgba(233,91,74,.35);
  box-shadow: 0 18px 44px rgba(233,91,74,.12);
}
.channel-cta[data-loading="true"] {
  border-color: rgba(233,91,74,.28);
  box-shadow: 0 18px 44px rgba(233,91,74,.16);
}
.channel-cta-copy {
  min-width: 0;
}
.channel-cta-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.channel-cta-copy strong {
  display: block;
  font: 800 14px "Manrope", sans-serif;
  color: var(--ink);
}
.channel-premium-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(233,91,74,.12);
  color: #b24a36;
  font: 800 10px "DM Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.channel-cta-copy p {
  margin: 6px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.channel-premium-note {
  margin-top: 10px;
  color: #7a4a39;
  font-size: 12px;
  font-weight: 700;
}
.channel-cta-button {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}
.channel-hint {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--muted);
}
.channel-hint[data-tone="info"] { color: var(--ink); }
.channel-hint[data-tone="loading"] {
  border-color: rgba(233,91,74,.2);
  background: rgba(233,91,74,.08);
  color: var(--ink);
}
.channel-hint[data-tone="success"] {
  border-color: rgba(33,123,92,.16);
  background: rgba(33,123,92,.09);
  color: #1d5f48;
}
.channel-hint[data-tone="error"] {
  border-color: rgba(177,69,69,.16);
  background: rgba(177,69,69,.09);
  color: #8a3131;
}
.channel-hint.hidden { display: none; }
#bulk-channel-hint-text { flex: 1; min-width: 0; }
.channel-hint button.bulk-channel-hint-dismiss {
  background: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}
.channel-hint button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--coral);
  color: #fff;
  font: 700 12px "DM Sans", sans-serif;
  cursor: pointer;
}
.channel-panel[data-loading="true"] .channel-select-actions {
  opacity: 0.5;
  pointer-events: none;
}
.channel-select-actions { display: flex; gap: 14px; }
.channel-select-actions .text-button { width: auto; margin-top: 0; }
.channel-video-row { grid-template-columns: 24px minmax(0, 1fr); }
.channel-video-row.is-disabled { opacity: 0.55; }
.channel-video-row.is-placeholder {
  grid-template-columns: 1fr;
  pointer-events: none;
}
.channel-video-row.is-placeholder .batch-file-main {
  display: grid;
  gap: 8px;
}
.channel-video-skeleton {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24,32,29,.07), rgba(24,32,29,.14), rgba(24,32,29,.07));
  background-size: 200% 100%;
  animation: channel-skeleton 1.25s ease-in-out infinite;
}
.channel-video-skeleton-title { width: min(62%, 280px); height: 14px; }
.channel-video-skeleton-meta { width: min(34%, 150px); }
.channel-video-select input[type="checkbox"] { width: 16px; height: 16px; }
.channel-video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.channel-panel-summary { margin: 0; align-self: center; color: var(--muted); font-size: 12px; font-weight: 600; }
@keyframes channel-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.platform-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.platform-row > span,
.platform-row > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(24,32,29,.12);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255,255,255,.25);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.platform-row > span svg,
.platform-row > a svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.platform-row > span:hover,
.platform-row > a:hover { color: var(--ink); border-color: var(--coral); transform: translateY(-3px) rotate(-1deg); }
.motion-ready .platform-row > span:hover,
.motion-ready .platform-row > a:hover {
  animation-play-state: paused;
}
.platform-new {
  display: inline-flex;
  align-items: center;
  min-height: 14px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font: 800 7px/1.4 "DM Sans", sans-serif;
  letter-spacing: .45px;
}
.platform-more { color: var(--green-dark) !important; border-color: rgba(32,107,80,.26) !important; }
.supported-sources-note {
  margin: 9px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}
.supported-sources-note a { color: var(--green-dark); font-weight: 800; text-decoration: none; }
.supported-sources-note a:hover { text-decoration: underline; }
:where(html[data-theme="dark"]) .platform-new { background: rgba(129,140,248,.18); color: #c7d2fe; }
.trust-row {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
}
/* Format chips live under the fold, at the top of the how-it-works section. */
.steps-section > .trust-row { margin: 0 0 28px; }
.trust-row b { color: var(--ink); }
.trust-row i { font-style: normal; }
.powered-by-row {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: #fff; background: #111; border: 1px solid #111; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.powered-by-row:hover { background: #292929; box-shadow: 0 4px 14px rgba(0,0,0,.18); transform: translateY(-1px); }
.powered-by-row svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.powered-by-main { display: none; }
.hero-copy-block h1 em { color: var(--ink); }
/* ChatGPT-style text shimmer: two soft highlights (a faint lead and a strong
   main band) sweep left -> right in a near-continuous loop on the headline accent,
   the eyebrow and the Transcribe label. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-copy-block h1 em,
  .hero-copy-block .eyebrow b,
  #submit-button .submit-label b {
    color: transparent;
    background-image: linear-gradient(100deg,
      var(--shimmer-base) 26%,
      color-mix(in srgb, var(--shimmer-hi) 45%, var(--shimmer-base)) 36%,
      var(--shimmer-base) 43%,
      var(--shimmer-hi) 52%,
      var(--shimmer-base) 62%);
    background-size: 260% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shimmer-sweep 2.4s ease-in-out infinite;
  }
  .hero-copy-block h1 em {
    --shimmer-base: color-mix(in srgb, var(--ink) 78%, transparent);
    --shimmer-hi: var(--ink);
  }
  .hero-copy-block .eyebrow b {
    --shimmer-base: var(--green);
    --shimmer-hi: var(--ink);
    animation-delay: .5s;
  }
  #submit-button .submit-label b {
    --shimmer-base: var(--hero-cta-ink);
    --shimmer-hi: color-mix(in srgb, var(--hero-cta-ink) 30%, transparent);
    animation-delay: 1s;
  }
}
@keyframes text-shimmer-sweep {
  0% { background-position: 100% 50%; }
  85%, 100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy-block h1 em,
  .hero-copy-block .eyebrow b,
  #submit-button .submit-label b { animation: none; background-position: 0 50%; }
}
.active-section { padding: 0 0 80px; }
.active-section.hidden { display: none; }
.job-focus {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 14px 45px rgba(41,52,47,.08);
}
.job-thumb { width: 120px; height: 78px; object-fit: cover; border-radius: 9px; background: #d9ddd8; }
.job-focus h3 { margin: 0 0 7px; font: 700 17px "Manrope", sans-serif; }
.job-meta { color: var(--muted); font-size: 12px; }
.progress-line { height: 7px; margin: 17px 0 8px; overflow: hidden; border-radius: 99px; background: var(--track); }
.progress-line div { height: 100%; border-radius: inherit; background: var(--coral); transition: width .5s ease; }
.progress-line.failed div { background: #c0563f; }
.progress-label.failed span { color: #a74435; font-weight: 600; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.job-status-meta { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.job-download-hint { color: #8a5a39; }
.job-status-meta:empty { display: none; }
/* Moving sheen so the bar never looks frozen while a job is processing. */
.progress-line.active div {
  background: linear-gradient(100deg, var(--coral) 0%, #ffad86 50%, var(--coral) 100%);
  background-size: 200% 100%;
  animation: bar-sheen 1.6s linear infinite;
}
@keyframes bar-sheen { to { background-position: -200% 0; } }
.progress-line.speaker-detection div,
.job-progress.speaker-detection div {
  width: 42%;
  min-width: 72px;
  animation: speaker-progress-indeterminate 1.25s ease-in-out infinite;
}
.progress-line.speaker-detection,
.job-progress.speaker-detection {
  position: relative;
}

/* Transcription wizard: live status row, big %, segmented stage rail, hint. */
.job-wiz { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.job-wiz > * { order: 1; }
.job-wiz > .job-live { order: 0; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.job-wiz > .job-live .proc-clock { font-weight: 400; color: var(--muted); }
.job-wiz > .job-hint { order: 9; padding: 10px 12px; border-radius: 10px; background: var(--surface-soft); font-size: 13px; }
.job-wiz > .job-hint.warn { background: #fff4d6; color: #6b4500; }
:where(html[data-theme="dark"]) .job-wiz > .job-hint.warn { background: #3a2d0e; color: #f3d58a; }
.job-wiz > .job-done { margin-top: 0; }
.job-wiz[data-wiz-state="queued"] .live-wave span { animation: none; transform: scaleY(.35); }
.wiz-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.wiz-pct {
  font: 700 clamp(44px, 9vw, 60px)/1 "Manrope", sans-serif; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.wiz-stage { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; text-align: right; padding-bottom: 3px; }
.wiz-step-count, .wiz-eta { font-size: 12px; color: var(--muted); }
.wiz-stage-name { font-size: 16px; font-weight: 650; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.wiz-stage.failed .wiz-stage-name { color: #a74435; font-weight: 600; font-size: 13px; }
.wiz-stage:empty, .wiz-step-count:empty, .wiz-eta:empty { display: none; }

.job-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.job-step {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.step-seg { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.step-seg i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width .5s ease; }
.step-id { display: flex; align-items: center; gap: 6px; min-width: 0; }
.step-dot {
  position: relative; flex: none; width: 18px; height: 18px; box-sizing: border-box;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  font-size: 11px; font-weight: 600; line-height: 1; color: var(--muted);
  transition: background .3s ease, border-color .3s ease;
}
.step-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.job-step.done .step-dot { background: var(--coral); border-color: var(--coral); font-size: 0; }
.job-step.done .step-dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; }
:where(html[data-theme="dark"]) .job-step.done .step-dot::after { color: #0d0d0d; }
.job-step.active .step-dot { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.job-step.active .step-label { color: var(--ink); font-weight: 650; }
.job-step.failed .step-seg i { background: #c0563f; }
.job-step.failed .step-dot { background: #c0563f; border-color: #c0563f; color: #fff; }
.job-step.failed .step-label { color: #a74435; font-weight: 650; }

/* Live heartbeat + adaptive "still working / taking longer" reassurance. */
.job-live { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse-dot 1.1s ease-in-out infinite; }
/* Mini equalizer next to "Working…" — same motif as the hero ambient wave. */
.live-wave { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.live-wave span {
  width: 3px; height: 100%; border-radius: 99px;
  background: linear-gradient(to bottom, var(--green), var(--coral));
  transform-origin: center;
  animation: ambient-wave 1.4s ease-in-out infinite;
}
.live-wave span:nth-child(2) { animation-delay: -.5s; }
.live-wave span:nth-child(3) { animation-delay: -.9s; }
.live-wave span:nth-child(4) { animation-delay: -.3s; }
.live-wave span:nth-child(5) { animation-delay: -1.1s; }
@media (prefers-reduced-motion: reduce) { .live-wave span, .step-seg i { animation: none; transition: none; } }
.proc-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.job-hint { font-size: 12px; line-height: 1.5; color: var(--muted); }
.job-hint:empty { display: none; }
.job-hint.warn { color: #a7732f; }
.diarize-status.hidden { display: none; }
.diarize-status { margin-top: 4px; }
.diarize-status #diarize-clock { margin-left: 4px; }
.job-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.job-done .check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--hero-cta-ink);
  background: var(--green);
}
.job-done svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* One-shot celebration burst when a transcript finishes. */
.confetti-piece {
  position: fixed;
  z-index: 80;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-burst 1.2s cubic-bezier(.15,.65,.35,1) forwards;
}
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}
.steps-section { padding: 64px 0 96px; border-top: 1px solid rgba(24,32,29,.12); }
.steps-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 12px; }
.steps-heading h2 { max-width: 620px; margin: 0; font: 800 42px/1.08 "Manrope", sans-serif; letter-spacing: 0; }
.steps-heading p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 35px; }
.steps-grid article {
  min-height: 220px; padding: 26px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-soft);
  transition: .2s ease;
}
.steps-grid article:hover { border-color: rgba(17,17,17,.35); transform: translateY(-3px); }
.step-number { color: var(--coral); font: 700 13px "Manrope", sans-serif; }
.steps-grid h2 { margin: 18px 0 10px; font: 700 22px "Manrope", sans-serif; letter-spacing: 0; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.history-section { padding: 80px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0 0; font: 800 38px "Manrope", sans-serif; letter-spacing: 0; }
.analytics-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}
.analytics-actions .analytics-empty { margin: 0; }
.ghost-button, .download-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  padding: 9px 14px;
  font: 600 12px "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.download-menu { position: relative; display: inline-block; }
.download-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.download-menu-toggle::-webkit-details-marker { display: none; }
.download-menu-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  margin: -4px 2px 0 1px;
  transition: transform .16s ease, margin .16s ease;
}
.download-menu[open] .download-menu-toggle::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.download-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 96px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.download-menu-list .download-link { text-align: center; }
.ai-provider-actions {
  /* One full-width row of three equal buttons, so wrapping never leaves a
     ragged 2+1 layout inside the narrow .job-actions column. */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  flex: 1 0 100%;
  gap: 7px;
}
@media (max-width: 480px) {
  .ai-provider-actions { grid-template-columns: 1fr; }
}
.ai-provider-job {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 8px;
  white-space: nowrap;
}
.ai-provider-job .submit-openai-logo,
.ai-provider-job img,
.job-row .ai-provider-job img {
  /* .job-row img is the 80x50 thumbnail rule; keep brand marks icon-sized. */
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
  background: none;
}
.ai-provider-job span { line-height: 1; }
.jobs-list { display: grid; gap: 10px; }
.empty-state { padding: 48px; border: 1px dashed #c8c8c0; border-radius: 14px; color: var(--muted); text-align: center; }
.job-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.job-row.no-thumb { grid-template-columns: minmax(0, 1fr) auto; }
.job-main { min-width: 0; }
.job-row img { width: 80px; height: 50px; object-fit: cover; border-radius: 6px; background: #ddd; }
.job-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; }
.job-subtitle { margin-top: 5px; color: var(--muted); font-size: 11px; }
.job-origin-row { display: flex; align-items: center; margin-top: 7px; }
.source-origin {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; padding: 3px 8px 3px 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font: 700 10px/1 "DM Sans", sans-serif;
}
.source-origin-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex: 0 0 18px;
  color: var(--muted);
}
.source-origin-icon svg { display: block; width: 18px; height: 18px; }
.source-origin--podcast .source-origin-icon { color: #7c3aed; }
.source-origin--upload .source-origin-icon { color: #5f6f66; }
.source-origin--url .source-origin-icon { color: var(--green); }
.job-row .job-status-meta { margin-top: 4px; font-size: 11px; }
.job-error { margin-top: 6px; max-width: 72ch; color: #a74435; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.job-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.job-row .job-actions { max-width: 400px; }
/* Make recovery CTAs easy to find and tap without changing admin-table actions. */
.job-actions .retry-active,
.job-actions .retry-job,
.job-row .job-actions .choose-zoom-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 116px;
  padding: 0 20px;
  font: 700 13px/1.2 "DM Sans", sans-serif;
  white-space: nowrap;
}
.job-actions .retry-active { min-width: 138px; }
.job-actions .retry-job { border-color: var(--ink); background: var(--surface); }
.job-actions .retry-job:hover { background: var(--surface-soft); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.job-actions .retry-active:hover { background: #292929; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.job-actions .retry-active:focus-visible,
.job-actions .retry-job:focus-visible,
.job-row .job-actions .choose-zoom-retry:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.quota-cta .choose-zoom-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  padding: 0 20px;
  white-space: nowrap;
}
.zoom-protected-access .quota-copy .library-action-note {
  max-width: 540px;
  text-align: left;
  font: 500 12px/1.5 "DM Sans", sans-serif;
}
.job-smart-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}
.job-smart-action .library-action-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}
.job-smart-action--topup .library-action-button {
  background: linear-gradient(135deg, #111, #4d3129);
}
.job-smart-action--captions .library-action-button {
  background: linear-gradient(135deg, #183f3a, #111);
}
.job-smart-action .buy-minutes {
  gap: 7px;
  padding: 0 14px 0 9px;
}
.job-smart-action .buy-minutes .stripe-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.library-action-note {
  margin: 0;
  max-width: 220px;
  color: var(--muted);
  font: 600 10px/1.35 "DM Sans", sans-serif;
  text-align: right;
}
.share-loop-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font: 600 11px/1.45 "DM Sans", sans-serif;
}
.job-actions .share-loop-hint {
  flex-basis: 100%;
  margin-top: 2px;
  text-align: right;
}
.library-share-loop-hint {
  max-width: 260px;
  margin-left: auto;
}
.status-badge { display: inline-block; padding: 5px 8px; border-radius: 99px; background: #ececec; color: #222; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-badge.failed { color: #a74435; background: var(--coral-soft); }
.status-badge.action-required { color: #6f4b00; background: #fff2c7; }
.status-badge.live { color: #fff; background: var(--coral); }
.status-badge.live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 99px; background: currentColor; vertical-align: middle;
  animation: pulse-dot 1.1s ease-in-out infinite;
}
.job-row.is-active { border-color: var(--coral); }
.job-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--track); }
.job-progress div { height: 100%; border-radius: inherit; background: var(--coral); transition: width .5s ease; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.library-controls { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.library-search, .library-filter {
  /* >=16px on the (typeable) search box so mobile doesn't auto-zoom on focus. */
  font: 500 16px "DM Sans", sans-serif; color: var(--ink);
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px;
}
.library-search { flex: 1; min-width: 180px; }
.library-filter { cursor: pointer; }
.library-source-filter { min-width: 150px; }
.library-bulk-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.library-selection-count {
  color: var(--muted); font: 700 12px "DM Sans", sans-serif; white-space: nowrap;
}
.library-bulk-actions .primary-button { height: 42px; padding: 0 16px; }
.job-row.is-selecting { grid-template-columns: 28px 80px minmax(0, 1fr) auto; }
.job-row.no-thumb.is-selecting { grid-template-columns: 28px minmax(0, 1fr) auto; }
.library-select-cell, .library-select-spacer {
  width: 28px; min-width: 28px; display: flex; align-items: center; justify-content: center;
}
.library-select-checkbox { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: #111; }
.job-row.is-selected { border-color: #111; box-shadow: 0 0 0 1px #111 inset; }
.danger-button { color: #a74435; border-color: rgba(167, 68, 53, .35); }
.danger-button:hover { background: var(--coral-soft); }
.list-toggle-row { display: flex; justify-content: center; margin-top: 12px; }
.admin-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 12px;
}
.admin-pagination-range { font-size: .85rem; opacity: .7; white-space: nowrap; }
.modal-card.editor-card {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}
.editor-text {
  width: 100%;
  min-height: 420px;
  flex: 1 1 54vh;
  resize: vertical;
  box-sizing: border-box;
  /* >=16px so mobile doesn't auto-zoom the page when editing starts. */
  font: 400 16px/1.6 "DM Sans", sans-serif; color: var(--ink);
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin: 8px 0 4px;
}
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.transcript-workspace {
  min-height: 100vh;
  padding: 28px 0 48px;
  background: var(--bg);
}
.transcript-workspace.hidden { display: none; }
.workspace-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}
.workspace-back { white-space: nowrap; }
.workspace-heading { min-width: 0; }
.workspace-heading h1 {
  margin: 4px 0 8px;
  font: 800 clamp(28px, 4vw, 48px)/1.05 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}
.workspace-meta-row,
.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.workspace-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 700 12px/1.2 "DM Sans", sans-serif;
}
.workspace-chip.muted { color: var(--muted); }
.workspace-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}
.workspace-transcript-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
}
.workspace-search { margin-top: 0; }
.workspace-body {
  max-height: none;
  min-height: 65vh;
  padding-right: 8px;
}
.workspace-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.workspace-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
@media (max-width: 760px) {
  .transcript-workspace { padding: 18px 0 32px; }
  .workspace-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .workspace-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .workspace-transcript-column { padding: 14px; }
  .workspace-body { min-height: 55vh; }
}

.modal-card.viewer-card {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  /* max-height alone doesn't clip anything — without this, once the
     heading + search + summary + Ask AI panel collectively exceed the
     available height, the last child (the round Ask button) renders past
     the card's rounded bottom edge instead of scrolling into view. */
  overflow-y: auto;
}
.viewer-search {
  width: 100%; box-sizing: border-box; margin: 6px 0 14px;
  /* >=16px so mobile doesn't auto-zoom the page on focus. */
  font: 500 16px "DM Sans", sans-serif; color: var(--ink);
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px;
}
.viewer-body {
  flex: 1 1 62vh;
  max-height: none;
  overflow: auto;
  padding-right: 6px;
}
.summary-panel {
  flex: 0 0 auto;
  margin: 4px 0 10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  max-height: none;
  overflow: visible;
}
.summary-panel.hidden { display: none; }
.summary-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}
.summary-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; cursor: pointer; list-style: none;
  font: 800 12px "Manrope", sans-serif; text-transform: uppercase;
  letter-spacing: .5px; color: var(--green);
}
.summary-toggle::-webkit-details-marker { display: none; }
.summary-toggle::after { content: "+"; color: var(--muted); font: 800 16px/1 "DM Sans", sans-serif; }
.summary-details[open] .summary-toggle::after { content: "−"; }
.summary-toggle small { color: var(--muted); font: 700 11px "DM Sans", sans-serif; text-transform: none; letter-spacing: 0; }
.summary-content { padding: 0 14px 12px; max-height: 18vh; overflow-y: auto; }
.summary-panel h3 {
  margin: 0 0 8px; font: 800 13px "Manrope", sans-serif;
  text-transform: uppercase; letter-spacing: .5px; color: var(--green);
}
.summary-panel h4 {
  margin: 14px 0 6px; font: 700 11px "DM Sans", sans-serif;
  text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.summary-copy { margin: 0; font: 400 14px/1.6 "DM Sans", sans-serif; color: var(--ink); }
.summary-quotes { margin: 0; padding-left: 20px; font: 400 13px/1.6 "DM Sans", sans-serif; color: var(--ink); }
.summary-quotes li { margin-bottom: 4px; }
.summary-chapters .seg-row { padding: 5px 0; }
.seg-row { display: flex; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.seg-paragraph { padding: 10px 0; }
.seg-row:first-child { border-top: none; }
.seg-time {
  flex: 0 0 64px; font: 700 12px "Manrope", sans-serif; color: var(--coral);
  text-decoration: none; padding-top: 2px;
}
a.seg-time:hover { text-decoration: underline; }
.seg-text { font: 400 14px/1.6 "DM Sans", sans-serif; color: var(--ink); }
/* Printed once per handover, not once per line -- it marks where the
   conversation changes hands, so it needs to read as a break in the flow. */
.seg-speaker {
  font: 600 12px/1.4 "DM Sans", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent, #2f6f62);
  margin: 16px 0 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.seg-speaker:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.seg-speaker + .seg-row { border-top: none; }

.diarize-count {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 "DM Sans", sans-serif; color: var(--muted, #6b7c89);
}
.diarize-count.hidden { display: none; }
.diarize-count select {
  font: 500 12px/1 "DM Sans", sans-serif;
  padding: 5px 8px; border-radius: 7px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
/* Sits directly under the heading, above the transcript: naming the speakers
   is something you do once, right after detection finishes. */
.speaker-names {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin: 12px 0 4px;
  display: flex; flex-direction: column; gap: 12px;
}
.speaker-names.hidden { display: none; }
.speaker-names-head { display: flex; flex-direction: column; gap: 3px; }
.speaker-names-head strong { font: 600 13px/1.3 "DM Sans", sans-serif; color: var(--ink); }
.speaker-names-head span { font: 400 12px/1.4 "DM Sans", sans-serif; color: var(--muted, #6b7c89); }
.speaker-names-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px;
}
.speaker-name-field { display: flex; flex-direction: column; gap: 4px; }
.speaker-name-field span {
  font: 600 11px/1 "DM Sans", sans-serif; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted, #6b7c89);
}
.speaker-name-field input {
  font: 400 14px/1.4 "DM Sans", sans-serif; color: var(--ink);
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent;
}
.speaker-name-card {
  min-width: 0; padding: 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-soft);
}
.speaker-merge-row {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
}
.speaker-merge-row select {
  min-width: 0; flex: 1 1 auto; padding: 7px 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font: 500 11px/1.2 "DM Sans", sans-serif;
}
.speaker-merge-button { flex: 0 0 auto; padding: 7px 9px; }
.speaker-merge-help-text {
  margin-top: 6px;
  color: var(--muted);
  font: 500 11px/1.35 "DM Sans", sans-serif;
}
.speaker-panel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.speaker-names button { align-self: flex-start; }

.seg-row { position: relative; align-items: flex-start; }
.seg-text { flex: 1 1 auto; min-width: 0; }
.seg-speaker-chip {
  flex: 0 0 auto; max-width: 132px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 8px; margin-top: -1px; background: var(--surface-soft);
  color: var(--accent, #2f6f62); font: 700 10px/1.2 "DM Sans", sans-serif;
}
button.seg-speaker-chip { cursor: pointer; }
button.seg-speaker-chip:hover { border-color: var(--accent, #2f6f62); background: var(--surface); }
.seg-speaker-chip.static { display: inline-block; }
.speaker-edit-popover {
  position: absolute; z-index: 20; top: 38px; left: 78px;
  width: min(300px, calc(100% - 88px)); box-sizing: border-box;
  padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.speaker-edit-popover label { display: flex; flex-direction: column; gap: 5px; }
.speaker-edit-popover label > span {
  font: 700 10px/1.2 "DM Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.speaker-edit-popover select,
.speaker-edit-popover input {
  width: 100%; box-sizing: border-box; padding: 8px 9px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 500 13px "DM Sans", sans-serif;
}
.speaker-edit-popover input { margin-top: 7px; }
.speaker-edit-popover input.hidden { display: none; }
.speaker-edit-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .seg-row { gap: 8px; flex-wrap: wrap; }
  .seg-time { flex-basis: 54px; }
  .seg-speaker-chip { max-width: calc(100% - 70px); }
  .seg-text { flex-basis: 100%; padding-left: 62px; }
  .speaker-edit-popover { left: 0; width: 100%; top: 34px; }
  .speaker-merge-row { align-items: stretch; }
}

.viewer-body mark { background: var(--coral-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 34px; }
.viewer-heading h2 { margin: 0; }
.viewer-ai-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.ask-ai-toggle {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  border: 1px solid #111; background: #111;
  color: #fff; border-radius: 999px; padding: 7px 8px 7px 13px;
  font: 700 12px "DM Sans", sans-serif; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.ask-ai-toggle:hover { background: #292929; box-shadow: 0 3px 14px rgba(0,0,0,.3); }
.ask-ai-toggle.hidden { display: none; }
.result-job-actions { align-items: center; }
.result-primary-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 9px 17px; border: 1px solid #111;
  border-radius: 999px; background: #111; color: #fff;
  font: 700 12px "DM Sans", sans-serif; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.result-primary-action:hover { background: #292929; }
.result-whisper-credit {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  color: var(--muted); font: 600 11px "DM Sans", sans-serif;
  text-decoration: none;
}
.result-whisper-credit:hover { color: var(--ink); }
.result-whisper-credit .submit-openai-logo { width: 22px; height: 22px; fill: currentColor; }
.powered-by-viewer { margin: 0; padding: 7px 11px; }
.powered-by-viewer.hidden { display: none; }
.ask-ai-badge {
  background: rgba(255,255,255,.22); color: #fff; border-radius: 999px;
  padding: 3px 8px; font: 800 9px "DM Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .4px;
}
.ask-ai-badge.hidden { display: none; }
.ask-ai-panel {
  flex: 0 0 auto; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.ask-ai-panel.hidden { display: none; }
.ask-ai-messages {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 48vh; overflow-y: auto;
}
.ask-ai-bubble {
  font: 400 14px/1.6 "DM Sans", sans-serif; border-radius: 14px;
  padding: 11px 14px; max-width: 88%;
}
.ask-ai-question {
  align-self: flex-end; background: #111; color: #fff; font-weight: 600;
  border-bottom-right-radius: 4px;
}
.ask-ai-answer {
  align-self: flex-start; background: var(--surface-soft); color: var(--ink);
  border-bottom-left-radius: 4px;
}
.ask-ai-answer p { margin: 0 0 8px; }
.ask-ai-answer p:last-child { margin-bottom: 0; }
.ask-ai-answer ul, .ask-ai-answer ol { margin: 0 0 8px; padding-left: 20px; }
.ask-ai-answer ul:last-child, .ask-ai-answer ol:last-child { margin-bottom: 0; }
.ask-ai-answer li { margin-bottom: 3px; }
.ask-ai-answer li:last-child { margin-bottom: 0; }
.ask-ai-answer strong { color: var(--ink); }
.ask-ai-answer code {
  font: 400 13px/1.4 ui-monospace, Menlo, Consolas, monospace;
  background: rgba(0,0,0,.06); border-radius: 4px; padding: 1px 5px;
}
.ask-ai-pending { background: var(--surface-soft); padding: 12px; }
.ask-ai-dots { display: inline-flex; gap: 4px; }
.ask-ai-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: ask-ai-bounce 1.2s infinite ease-in-out;
}
.ask-ai-dots span:nth-child(2) { animation-delay: .15s; }
.ask-ai-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes ask-ai-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-ai-dots span { animation: none; opacity: .8; }
}
.ask-ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-ai-suggestion {
  border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink);
  border-radius: 999px; padding: 7px 12px; font: 500 12px "DM Sans", sans-serif;
  cursor: pointer; text-align: left;
}
.ask-ai-suggestion:hover { border-color: var(--green); color: var(--green-dark); }
.ask-ai-form { display: flex; gap: 8px; }
.ask-ai-form input {
  flex: 1 1 auto; box-sizing: border-box;
  /* Mobile browsers auto-zoom the whole page on focus if an input's font is
     under 16px (their heuristic for "too small to read while typing") —
     that's what was actually breaking the layout on phones, not just the
     auto-focus. 16px is the safe floor. */
  font: 500 16px "DM Sans", sans-serif; color: var(--ink);
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 13px;
}
.ask-ai-form .primary-button { padding: 10px 16px; font-size: 13px; }
.faq-section { padding: 20px 0 96px; }
.analytics-section { padding: 20px 0 80px; }
.analytics-section.hidden { display: none; }
.analytics-section h2 { margin: 8px 0 24px; font: 800 34px "Manrope", sans-serif; }
.analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.analytics-grid article { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.analytics-grid strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  font: 800 clamp(20px, 2.6vw, 30px)/1.2 "Manrope", sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: var(--green);
}
.analytics-grid span { color: var(--muted); font-size: 12px; }
.analytics-chart-card { min-width: 0; margin-top: 18px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.analytics-chart-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.analytics-chart-heading h3 { margin: 0 0 4px; font: 800 18px "Manrope", sans-serif; }
.analytics-chart-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.analytics-growth-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; overflow: hidden; }
.analytics-chart-panel { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.analytics-chart-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.analytics-chart-label i { width: 18px; height: 3px; border-radius: 4px; background: var(--green); }
.analytics-chart-label i.visits { background: var(--coral); }
.analytics-chart-label i.completed { background: #2e9e57; }
.analytics-chart-label i.failed { background: #d64545; }
.analytics-chart-label strong { margin-left: auto; color: var(--ink); font: 800 20px "Manrope", sans-serif; }
.analytics-growth-chart svg { display: block; width: 100%; height: auto; min-width: 0; }
.analytics-chart-grid line { stroke: var(--line); stroke-width: 1; }
.analytics-chart-grid text { fill: var(--muted); font: 11px "DM Sans", sans-serif; }
.analytics-chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.analytics-chart-line.users { stroke: var(--green); }
.analytics-chart-line.visits { stroke: var(--coral); stroke-width: 2; opacity: .85; }
.analytics-chart-line.completed { stroke: #2e9e57; }
.analytics-chart-line.failed { stroke: #d64545; stroke-width: 2; opacity: .85; }
.analytics-chart-hit { fill: transparent; }
.analytics-conversion { margin-top: 28px; }
.analytics-conversion-card {
  padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft);
  /* The nowrap opportunity table inside is wider than a phone screen; unlike
     .analytics-users (which already has this), this card was missing it, so
     the table forced real document-wide horizontal overflow. On mobile that
     overflow made the browser compute 100vw against the wider scrolled
     content instead of the true screen width, breaking every fixed-position
     modal on the page (reported as the Ask AI panel "not working" — visible
     only to admins, since only they see this section at all). */
  overflow-x: auto;
}
.analytics-conversion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.analytics-conversion-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.analytics-conversion-grid strong { display: block; font: 800 28px "Manrope", sans-serif; color: var(--green); }
.analytics-conversion-grid span { display: block; margin-top: 4px; color: var(--ink); font: 700 13px "DM Sans", sans-serif; }
.analytics-conversion-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.analytics-opportunity-tag { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.analytics-opportunity-tag--billing { color: #8f3b00; background: #ffe2c2; }
.analytics-opportunity-tag--retry { color: #0f5f65; background: #d7f5f2; }
.analytics-opportunity-tag--stale { color: #6b6b6b; background: #eaeaea; }
.analytics-opportunity-stale { opacity: .55; }
.analytics-opportunity-note { min-width: 220px; white-space: normal; line-height: 1.45; }
.analytics-users-title { margin: 28px 0 12px; font: 800 18px "Manrope", sans-serif; }
.analytics-users { overflow-x: auto; }
/* Premium funnel is smaller and less prominent than the main table above it. */
.analytics-secondary { font-size: 12px; opacity: .9; }
.analytics-secondary .analytics-table { font-size: 12px; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-wide-table { display: block; overflow-x: auto; white-space: nowrap; width: 100%; }
.analytics-table th, .analytics-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.analytics-table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
/* Failed-jobs table: keep the wide error text and the action buttons from
   blowing the table past its container. */
.analytics-table .error-cell { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.analytics-table .analytics-content-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.anonymous-job-badge { display: inline-block; padding: 4px 7px; border-radius: 99px; color: #8a5a00; background: #fff0c2; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.plan-badge-premium { display: inline-block; padding: 4px 7px; border-radius: 99px; color: #4a2e8a; background: #e6ddff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.plan-badge-flagged { display: inline-block; padding: 4px 7px; border-radius: 99px; color: #b3261e; background: #fdecea; font-size: 10px; font-weight: 800; text-transform: uppercase; }
/* Solid fill + translucent row tint so both read correctly on the light and
   dark admin table without needing the theme-specific override blocks. */
.admin-job-actions .ghost-button.danger { color: #fff; background: #c5221a; border-color: #c5221a; }
.admin-job-actions .ghost-button.danger:hover { background: #a81b14; border-color: #a81b14; }
.analytics-table tr.admin-row-flagged > td { background: rgba(197, 34, 26, 0.13); }
.analytics-table tr.admin-row-flagged > td:first-child { box-shadow: inset 3px 0 0 #c5221a; }
.admin-job-link { color: var(--green); text-decoration: none; }
.admin-job-link:hover { text-decoration: underline; }
.admin-job-actions { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.admin-job-actions .ghost-button { padding: 5px 9px; font: 600 11px "DM Sans", sans-serif; white-space: nowrap; }
.admin-job-status { margin-top: 5px; max-width: 220px; font-size: 11px; color: var(--muted); white-space: normal; line-height: 1.4; }
.admin-job-status:empty { display: none; }
.failed-actions { display: flex; gap: 6px; align-items: center; }
.failed-actions .ghost-button { padding: 5px 9px; font: 600 11px "DM Sans", sans-serif; white-space: nowrap; }
.failed-not-retryable { font: 600 11px "DM Sans", sans-serif; color: var(--muted); white-space: nowrap; }
.failed-status { margin-top: 5px; max-width: 220px; font-size: 11px; color: var(--muted); white-space: normal; line-height: 1.4; }
.failed-status:empty { display: none; }
.analytics-empty { color: var(--muted); font-size: 13px; }
.public-page::before { height: 360px; }
.public-transcript { max-width: 900px; padding: 34px 0 90px; }
.public-topbar { display: flex; align-items: center; justify-content: space-between; }
.public-back { color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.public-transcript .section-kicker { margin-top: 78px; }
.public-transcript h1 { margin: 14px 0; font-size: 60px; letter-spacing: 0; text-align: left; }
.public-meta { color: var(--muted); }
.public-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.public-meta-row span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 700; }
.public-copy { margin: 34px 0; padding: 12px 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.public-copy p { display: grid; grid-template-columns: 62px 1fr; gap: 18px; margin: 0; padding: 21px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.75; }
.public-copy p:last-child { border-bottom: 0; }
.transcript-time { color: var(--coral); font: 800 12px/1.7 "Manrope", sans-serif; }
/* Dossier claims can deep-link several supporting timestamps; stack them in
   the existing timestamp column without changing the row layout. */
.transcript-times { display: inline-flex; flex-wrap: wrap; gap: 2px 6px; }
.transcript-times a { color: var(--coral); font: 800 12px/1.7 "Manrope", sans-serif; text-decoration: none; white-space: nowrap; }
.transcript-times a:hover { text-decoration: underline; }
.transcript-time-sep { color: var(--muted); font-weight: 700; }
.transcript-text { min-width: 0; }
.primary-link { display: inline-block; padding: 13px 18px; border-radius: 9px; color: var(--hero-cta-ink); background: var(--green); text-decoration: none; font-weight: 700; }
.secondary-link { display: inline-block; padding: 12px 17px; border-radius: 9px; color: var(--ink); background: transparent; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.public-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.public-actions:empty { display: none; }
.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 54px;
  color: var(--muted);
  font: 800 11px/1.5 "Manrope", sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.breadcrumb-nav a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb-nav span {
  color: var(--ink);
}
.curated-transcript-header {
  display: grid;
  gap: 16px;
}
.curated-transcript-summary {
  margin: 0;
  max-width: 70ch;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}
.curated-transcript-editorial-note {
  margin: 0;
  max-width: 72ch;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.curated-transcript-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
}
.curated-transcript-meta div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.curated-transcript-meta dt {
  margin: 0 0 6px;
  color: var(--muted);
  font: 800 11px/1.3 "Manrope", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.curated-transcript-meta dd {
  margin: 0;
  color: var(--ink);
}
.curated-transcript-meta dd .secondary-link {
  padding: 0;
  border: 0;
  background: transparent;
}
.curated-transcript-speaker-block {
  display: grid;
  gap: 10px;
}
.curated-transcript-speaker-label {
  margin: 0;
  color: var(--muted);
  font: 800 11px/1.3 "Manrope", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.curated-transcript-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.curated-transcript-speakers li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font: 700 12px/1.4 "DM Sans", sans-serif;
}
.curated-transcript-key-exchanges {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.curated-transcript-key-exchanges-label {
  margin: 0;
  color: var(--muted);
  font: 800 11px/1.3 "Manrope", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.curated-transcript-key-exchanges-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.curated-transcript-key-exchanges-list li a {
  color: var(--ink);
  text-decoration: none;
  font: 600 14px/1.4 "DM Sans", sans-serif;
  transition: color 0.15s ease;
}
.curated-transcript-key-exchanges-list li a:hover {
  color: var(--coral);
  text-decoration: underline;
}
.curated-transcript-primary-cta {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 36px;
}
.curated-transcript-cta-copy {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}
.curated-transcript-attribution {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.curated-transcript-attribution a {
  color: var(--muted);
  text-decoration: underline;
}
.curated-transcript-speaker-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.curated-transcript-sections {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.curated-transcript-sections a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  font: 700 12px/1.4 "DM Sans", sans-serif;
}
.curated-transcript-search {
  margin-top: 16px;
}
.curated-transcript-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 800 11px/1.3 "Manrope", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.curated-transcript-search-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.curated-transcript-search-input {
  flex: 1 1 auto;
  min-width: 0;
  /* >=16px so mobile doesn't auto-zoom the page on focus. */
  font: 500 16px "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
}
.curated-transcript-search-count {
  flex: 0 0 auto;
  min-width: 52px;
  color: var(--muted);
  font: 700 12px/1.4 "DM Sans", sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.curated-transcript-search-count[hidden] { display: none; }
.curated-transcript-search-nav {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.curated-transcript-search-nav:hover {
  background: var(--paper);
}
.curated-transcript-copy {
  margin-top: 24px;
}
/* Chronological source transcript rendered below a citation dossier. */
.curated-transcript-source-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line, #e2e2e2);
}
.curated-transcript-source-section > h2 {
  margin-bottom: 8px;
}
.curated-transcript-copy p {
  grid-template-columns: 84px 1fr;
  scroll-margin-top: 90px;
  position: relative;
}
.curated-transcript-copy p > .transcript-anchor-alias {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-top: 90px;
}
.curated-transcript-copy p.is-target-paragraph {
  background: var(--coral-soft);
  border-radius: 8px;
}
.transcript-speaker-label {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 800 11px/1.4 "DM Sans", sans-serif;
  letter-spacing: .2px;
}
.transcript-speaker-label[data-kind="verbatim_answer"],
.transcript-speaker-label[data-kind="verbatim_remarks"],
.transcript-speaker-label[data-kind="speaker_identified"] {
  background: var(--coral-soft);
  color: var(--ink);
}
.transcript-speaker-label[data-kind="paraphrased_question"] {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.transcript-speaker-label[data-kind="paraphrased_answer"],
.transcript-speaker-label[data-kind="paraphrased_remarks"] {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
.transcript-speaker-label[data-kind="transcript"] {
  background: var(--surface-soft, #f4f4f4);
  color: var(--ink);
  border: 1px solid var(--line, #e2e2e2);
}
.transcript-speaker-label[data-kind="speaker_unidentified"] {
  background: transparent;
  color: var(--muted, #666);
  border: 1px dashed var(--line, #d2d2d2);
}
mark.curated-transcript-search-hit {
  background: var(--coral-soft);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
mark.curated-transcript-search-hit.is-active {
  background: var(--coral);
  color: var(--hero-cta-ink);
}
.transcript-copy-link {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font: 700 11px/1.4 "DM Sans", sans-serif;
  cursor: pointer;
  opacity: 0;
}
.curated-transcript-copy p:hover .transcript-copy-link,
.transcript-copy-link:focus-visible {
  opacity: 1;
}
.transcript-copy-link.is-copied {
  opacity: 1;
  color: var(--coral);
  border-color: var(--coral);
}
@media (max-width: 980px) {
  /* No hover on touch, so the control must already be visible (at reduced
     weight) to be discoverable at all -- full opacity still reserved for the
     tap/focus/copied moment via the rules above. */
  .transcript-copy-link { opacity: .6; }
}
.transcript-anchor {
  color: var(--coral);
  text-decoration: none;
}
.curated-related-transcripts {
  margin-top: 34px;
}
.curated-related-transcripts h2 {
  margin: 0 0 16px;
  font-size: 24px;
}
.curated-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.curated-related-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.curated-related-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.curated-related-card p,
.curated-transcript-card-summary,
.curated-transcript-card-meta {
  margin: 0;
  color: var(--muted);
}
.curated-transcript-card-summary {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.curated-transcript-card-meta {
  margin-top: 12px;
  font: 700 12px/1.4 "DM Sans", sans-serif;
}
.public-share-cta-kicker {
  margin: 0;
  color: var(--green);
  font: 800 11px "Manrope", sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.public-note { color: var(--muted); font-size: 12px; }
.lp-section { margin: 34px 0 0; }
.lp-section h2 { margin: 0 0 8px; font: 800 24px "Manrope", sans-serif; letter-spacing: 0; }
.lp-section p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.lp-mobile-compare-hint { display: none; }
@media (max-width: 760px) {
  .lp-section p.lp-mobile-compare-hint,
  .lp-buyer-summary p.lp-mobile-compare-hint {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font: 700 12px/1.5 "DM Sans", sans-serif;
  }
}
.lp-compare-wrap { margin: 30px 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.lp-compare-wrap:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Wave 27: the three-column comparison is intentionally scrollable on phones.
   Show the affordance only where a reader needs it; keyboard focus remains native. */
.lp-wave27-scroll-hint { display: none; }
@media (max-width: 640px) {
  .lp-wave27-scroll-hint {
    display: block;
    margin: 17px 0 -12px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
  }
}
.lp-compare { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; background: var(--surface-soft); }
.lp-compare th, .lp-compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.lp-compare thead th { font: 700 12px "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.lp-compare thead th:not(:first-child) { text-align: center; }
.lp-compare tbody td:not(:first-child) { text-align: center; }
.lp-compare tbody tr:last-child td { border-bottom: none; }
.lp-compare td:first-child { font-weight: 600; }
.lp-compare .lp-yes { color: var(--green); font-weight: 700; }
.lp-compare .lp-no { color: var(--muted); }
.lp-compare th.lp-us-col, .lp-compare td.lp-us-col { background: rgba(17,17,17,.06); }
.lp-commercial-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin: 34px 0 0;
  padding: 28px 30px;
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--green) 8%, var(--surface-soft));
}
.lp-commercial-offer-copy h2 {
  margin: 8px 0;
  font: 800 26px/1.18 "Manrope", sans-serif;
}
.lp-commercial-offer-copy > p:not(.lp-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.lp-commercial-offer-action {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: center;
}
.lp-commercial-offer-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: var(--ink);
}
.lp-commercial-offer-price strong { font: 800 34px/1 "Manrope", sans-serif; }
.lp-commercial-offer-price span { color: var(--muted); font-size: 13px; }
.lp-commercial-offer-action .primary-link { text-align: center; }
.lp-commercial-offer-action small { color: var(--muted); font-size: 11px; }
.lp-sources {
  margin: 24px 0 42px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}
.lp-sources h2 { margin: 0; font: 800 16px/1.3 "Manrope", sans-serif; }
.lp-sources p { margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.lp-sources ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding-left: 18px; }
.lp-sources a { color: var(--ink); font-size: 13px; text-underline-offset: 3px; }
.public-transcript .primary-link + .lp-section { margin-top: 44px; }
.lp-footer { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.lp-footer-title { margin: 0; font: 800 12px "Manrope", sans-serif; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.lp-nav .lp-nav-app {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(17,17,17,.2);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: rgba(255,255,255,.35);
  white-space: nowrap;
}
.lp-nav nav { gap: clamp(8px, 1.6vw, 22px); }
.lp-nav .account-button { max-width: 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) {
  .public-page .lp-nav nav > a:not(.lp-nav-app) { display: none; }
}
@media (max-width: 420px) {
  .public-page .lp-nav .nav-google-button { display: none !important; }
  .public-page .lp-nav .account-button { max-width: 32vw; }
}
.public-page--tool .public-transcript { max-width: 1160px; padding-top: 0; }
.lp-hero--tool {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 89px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: center;
  margin-top: 0;
  padding: 42px 0 48px;
}
.lp-ambient-wave {
  top: 20px;
  left: 28%;
}
.public-transcript .lp-hero--tool h1 {
  max-width: 560px;
  margin: 18px 0;
  font-size: clamp(52px, 5vw, 64px);
  line-height: .97;
  letter-spacing: 0;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--green);
  font: 800 11px/1.3 "DM Sans", sans-serif;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.lp-eyebrow::before { content: ""; width: 25px; height: 1px; background: var(--coral); }
.lp-hero-copy > .public-meta {
  max-width: 520px;
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
}
.lp-trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 540px;
  margin-top: 20px;
}
.lp-trust-row span:first-child { grid-column: 1 / -1; }
.lp-trust-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}
.lp-trust-row span::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: var(--coral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.lp-trust-row strong { color: var(--ink); font-size: inherit; }
.lp-action-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.lp-action-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ink);
}
.lp-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 3px 1px;
}
.lp-card-heading label { color: var(--ink); font-size: 12px; font-weight: 700; }
.lp-card-heading span { color: var(--green); font-size: 11px; font-weight: 700; text-align: right; }
.lp-input-row {
  display: flex;
  gap: 10px;
}
.lp-url-input {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid var(--hero-border);
  border-radius: 14px;
  background: var(--hero-input);
  transition: .2s ease;
}
.lp-url-input::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--green), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.lp-url-input:focus-within { border-color: var(--hero-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hero-focus) 14%, transparent); }
.lp-url-input:focus-within::after { transform: scaleX(1); }
.lp-url-input svg { width: 19px; flex: none; fill: none; stroke: var(--placeholder); stroke-width: 1.8; }
.lp-url-input input,
.lp-action-card input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font: 500 16px "DM Sans", sans-serif;
}
.lp-url-input input { min-height: 44px; padding: 0; border: 0; outline: 0; background: transparent; }
.lp-action-card input[type="file"]:focus + .lp-file-picker {
  outline: none;
  border-color: var(--hero-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hero-focus) 14%, transparent);
}
.lp-input-row button,
.lp-upload-submit {
  min-height: 72px;
  border: 0;
  border-radius: 14px;
  color: var(--hero-cta-ink);
  background: var(--hero-cta-bg);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  font: 700 15px "DM Sans", sans-serif;
  cursor: pointer;
}
.lp-input-row button { min-width: 174px; padding: 0 20px; }
.lp-input-row button:hover,
.lp-upload-submit:hover { background: var(--hero-cta-hover); transform: translateY(-1px); }
.lp-language-choice {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.lp-language-choice label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.lp-language-choice select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--hero-border);
  border-radius: 12px;
  background: var(--hero-input);
  color: var(--ink);
  font: inherit;
}
.lp-language-choice select:focus-visible {
  outline: 2px solid var(--hero-focus);
  outline-offset: 2px;
}
.lp-language-choice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.lp-input-row button:disabled,
.lp-upload-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.lp-action-note,
.lp-form-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.lp-form-status:not(:empty) { color: var(--coral); font-weight: 700; }
.lp-action-card input[type="file"] {
  position: absolute;
  z-index: 2;
  top: 61px;
  left: 28px;
  width: calc(100% - 56px);
  height: 72px;
  cursor: pointer;
  opacity: 0;
}
.lp-file-picker {
  display: flex;
  min-height: 70px;
  padding: 0 17px;
  border: 1px dashed var(--hero-border);
  border-radius: var(--radius-control);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  background: var(--hero-input);
  font-size: 12px;
}
.lp-file-picker strong { flex: none; color: var(--ink); font-size: 14px; }
.lp-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-product-proof {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  gap: 48px;
  align-items: center;
  margin: 42px 0 72px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-feature);
  background: var(--surface-soft);
}
.lp-proof-copy h2 { margin: 8px 0 10px; font: 800 30px/1.1 "Manrope", sans-serif; }
.lp-proof-copy > p:not(.lp-eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.lp-export-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.lp-export-pills span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--surface);
  font: 800 10px "Manrope", sans-serif;
}
.lp-transcript-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: 0 18px 38px rgba(0,0,0,.09);
}
.lp-preview-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 700 11px "DM Sans", sans-serif;
}
.lp-preview-top span { margin-right: auto; }
.lp-preview-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.lp-preview-top i:first-of-type { background: var(--coral); }
.lp-transcript-preview > p {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  margin: 0 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}
.lp-transcript-preview > p:last-child { border-bottom: 0; }
.lp-transcript-preview time { color: var(--timestamp-ink); font: 800 11px/1.8 "Manrope", sans-serif; }
.lp-footer-more { margin-top: 18px; }
.lp-footer-more summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink);
  font: 700 12px "DM Sans", sans-serif;
}
.lp-footer-more:not([open]) .footer-links { display: none; }
.faq-section h2 { margin: 8px 0 24px; font: 800 34px "Manrope", sans-serif; letter-spacing: 0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.money-links-section { padding: 8px 0 96px; }
.money-links-section h2 { margin: 8px 0 10px; font: 800 34px/1.15 "Manrope", sans-serif; letter-spacing: 0; }
.money-links-section > p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.65; }
.money-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.money-links-grid a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  color: var(--ink);
  background: var(--surface-soft);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.money-links-grid a:hover { border-color: var(--coral); transform: translateY(-2px); }
.money-links-grid strong { font: 800 16px/1.3 "Manrope", sans-serif; }
.money-links-grid span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-soft); padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer; padding: 14px 0; font: 700 16px "Manrope", sans-serif;
  color: var(--ink); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--coral); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.motion-ready .reveal-section {
  opacity: 0;
  /* Kept short: the Layout Instability API still counts an opacity:0 element's
     transform offset toward CLS once it's partway into the viewport (real
     "poor" CLS seen on #how-it-works in Web Analytics) — a smaller distance
     keeps the reveal cue but cuts the score. */
  transform: translateY(8px);
  filter: blur(7px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}
.motion-ready .reveal-section.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.demo-badge {
  display: inline-block; margin-bottom: 10px; padding: 5px 10px;
  border-radius: 99px; background: var(--coral-soft); color: #a74435;
  font: 800 10px "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .4px;
}
.demo-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-soft);
}
.demo-cta p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.demo-cta-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.demo-cta .demo-cta-sub { color: var(--muted); font-size: 12px; }
/* The bare .primary-button ships with no horizontal padding and relies on
   each context to add its own; inside the space-between flex row it also has
   to keep its width or the label wraps into a squashed pill. */
.demo-cta .primary-button { flex: 0 0 auto; padding: 0 22px; white-space: nowrap; }
.demo-cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 0 auto; min-width: 230px; }
.demo-provider-button {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--paper); text-decoration: none; white-space: nowrap;
  font: 700 13px "DM Sans", sans-serif;
  transition: background .18s ease, border-color .18s ease;
}
.demo-provider-button:hover { background: var(--surface-soft); border-color: #aeb7b3; }
.demo-provider-button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.demo-cta-actions .ghost-button, .demo-cta-actions .primary-button { width: 100%; height: 40px; justify-content: center; white-space: nowrap; }
.demo-notify {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-soft);
}
.demo-notify-label { display: block; margin-bottom: 8px; color: var(--ink); font: 700 12px "DM Sans", sans-serif; }
.demo-notify-row { display: flex; gap: 8px; }
.demo-notify-email {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  color: var(--ink); background: var(--input); font-size: 13px;
}
.demo-notify-email:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.1); }
.demo-notify-submit { flex: 0 0 auto; padding: 0 14px; }
.demo-notify-message { margin: 8px 0 0; color: #b3413a; font-size: 12px; }
.demo-notify-message:empty { display: none; }
.demo-notify-confirm { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.demo-push-slot:not(:empty) { margin-top: 12px; }
.demo-push { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-push-hint, .demo-push-state { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.demo-push-on { color: var(--ink); }
.demo-push-message { margin: 8px 0 0; color: #b3413a; font-size: 12px; }
.demo-push-message:empty { display: none; }
.preview {
  grid-column: 1 / -1;
  max-height: 60vh;
  overflow: auto;
  margin: 8px 0 0;
  padding: 18px;
  border-radius: 8px;
  color: var(--preview-ink);
  background: var(--preview);
  font: 13px/1.7 "DM Sans", sans-serif;
  white-space: pre-wrap;
}
.expand-preview { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
/* Brand + tagline share the top row; the SEO link cloud gets its own
   full-width block below instead of being squeezed into the same flex row. */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 35px 0 45px; border-top: 1px solid rgba(24,32,29,.12); color: var(--muted); font-size: 12px; }
footer > p { margin: 0; }
footer .footer-links { flex-basis: 100%; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.listing-badges { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.listing-badges > a { flex: 0 0 auto; }
.toolradar-badge {
  box-sizing: border-box; min-width: 162px; min-height: 54px; display: inline-flex; align-items: center; gap: 10px;
  padding: 0 16px; border: 1px solid var(--ink); border-radius: 14px; color: var(--ink);
  background: var(--paper); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.toolradar-badge:hover { background: var(--surface-soft); box-shadow: 0 4px 14px rgba(24,32,29,.10); transform: translateY(-1px); }
.toolradar-badge-mark { position: relative; width: 25px; height: 25px; border: 3px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.toolradar-badge-mark::before { content: ""; position: absolute; inset: 4px; border: 2px solid currentColor; border-radius: 50%; opacity: .45; }
.toolradar-badge-mark::after { content: ""; position: absolute; width: 5px; height: 5px; top: 2px; right: 3px; border-radius: 50%; background: currentColor; }
.toolradar-badge-copy { display: grid; gap: 2px; line-height: 1; }
.toolradar-badge-copy small { font: 800 9px/1 "DM Sans", sans-serif; letter-spacing: .9px; }
.toolradar-badge-copy strong { font: 800 14px/1 "Manrope", sans-serif; }
.brand.small { font-size: 15px; }
.brand.small .brand-mark { width: 25px; height: 25px; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: var(--backdrop); backdrop-filter: blur(7px); }
.modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 35px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,.25);
}
.modal-card h2 { margin: 9px 0 8px; font: 800 32px "Manrope", sans-serif; letter-spacing: 0; }
.modal-card > p { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
#premium-modal { overflow-y: auto; }
#premium-modal .modal-backdrop { position: fixed; }
#premium-modal .modal-card { margin: auto; padding: 40px 36px 28px; }
@media (max-width: 760px) {
  #premium-modal .modal-card { padding: 28px 20px; }
}
#premium-modal h2 { margin: 8px 0 6px; font-size: 30px; letter-spacing: -0.01em; }
#premium-modal .premium-lead { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
#premium-price.premium-price { display: flex; align-items: baseline; gap: 6px; margin: 0; font: 800 48px "Manrope", sans-serif; letter-spacing: -0.02em; color: var(--ink); }
.premium-price-period { font: 400 16px "DM Sans", sans-serif; letter-spacing: 0; color: var(--muted); }
#premium-price-anchor.premium-price-anchor { margin: 4px 0 26px; color: var(--muted); font-size: 13.5px; }
/* When the modal was opened by the recording-count wall, the benefit that
   answers that wall leads. The list is already a column flexbox, so ordering
   costs nothing and the DOM stays in one order for everyone else. */
.premium-benefits--jobs .benefit-jobs { order: -1; font-weight: 600; }
.premium-benefits { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.premium-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.premium-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 800;
}
#premium-continue,
#premium-rescue-trial-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
}
#premium-modal .premium-benefits { gap: 14px; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); }
#premium-modal .premium-benefits li { display: flex; align-items: flex-start; gap: 12px; padding-left: 0; font-size: 15px; line-height: 1.45; }
#premium-modal .premium-benefits li::before { content: none; }
#premium-modal .premium-benefits strong { font-weight: 700; }
.premium-check { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--coral-soft); }
.premium-check::after { content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 9px; border: solid var(--coral); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.premium-benefit-sub { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
#premium-continue { min-height: 54px; border-radius: 14px; font-size: 16px; }
.premium-reassurance { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
#premium-modal .premium-decline { display: block; min-height: 44px; margin: 4px auto 0; }
.premium-topup-link { display: block; min-height: 44px; margin: 4px auto 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.premium-topup-link.hidden { display: none; }
.premium-trust { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.premium-pay-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.premium-pay-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 54px; height: 34px; border: 1px solid #e5e5e5; border-radius: 8px; background: #ffffff; }
.premium-pay-badge img { display: block; width: 41px; height: 17px; }
img.premium-pay-badge-apple { width: auto; height: 34px; border: 0; background: transparent; box-shadow: 0 0 0 1px var(--line); }
.premium-stripe-badge { display: block; width: 150px; height: 34px; }
#premium-continue .stripe-mark,
#premium-rescue-trial-continue .stripe-mark,
#premium-pro-continue .stripe-mark,
#premium-topup .stripe-mark { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 5px; }
.premium-topup-note {
  margin: 10px 0 0;
  color: var(--muted);
  font: 600 12px/1.5 "DM Sans", sans-serif;
  text-align: center;
}

.premium-pro-upsell {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  text-align: center;
}
.premium-pro-upsell.hidden { display: none; }
/* The High Accuracy / trial promo stacks its lines and links; as plain inline
   content the "See methodology" link ran into the CTA button. */
#high-accuracy-upsell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#high-accuracy-upsell > * { margin-top: 0; margin-bottom: 0; }
#high-accuracy-upsell .ghost-button { width: 100%; justify-content: center; text-align: center; }
.premium-pro-upsell-lead {
  margin: 0 0 4px;
  color: var(--muted);
  font: 700 11px/1.4 "DM Sans", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.premium-pro-upsell-line {
  margin: 0 0 10px;
  font: 600 14px/1.4 "DM Sans", sans-serif;
}
.premium-pro-upsell-line strong { margin-right: 6px; }
#premium-pro-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 25px;
  cursor: pointer;
}
#auth-form { display: grid; gap: 15px; }
#contact-form { display: grid; gap: 15px; }
#contact-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
#contact-form input, #contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: var(--input);
  font: 500 16px "DM Sans", sans-serif;
}
#contact-form input { height: 48px; padding: 0 13px; }
#contact-form textarea { min-height: 140px; resize: vertical; font-family: inherit; }
#contact-form input:focus, #contact-form textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.1); }
.google-auth-button {
  min-height: 44px;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.google-auth-button-fallback {
  height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; width: 100%; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink); background: var(--paper);
  font: 700 14px "DM Sans", sans-serif; text-decoration: none;
  margin-bottom: 16px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.google-auth-button-fallback:hover { background: var(--surface-soft); border-color: #aeb7b3; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.google-auth-button-fallback svg { width: 19px; height: 19px; flex: 0 0 auto; }
.google-auth-button.hidden, .google-auth-button-fallback.hidden, .auth-divider.hidden { display: none; }
.auth-magic-link {
  width: 100%; min-height: 42px; margin: -2px 0 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface-soft); color: var(--green-dark);
  font: 700 13px "DM Sans", sans-serif; cursor: pointer;
}
.auth-magic-link:hover { border-color: var(--green); }
.auth-magic-link.hidden { display: none; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
#auth-form label.hidden { display: none; }
#auth-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
#auth-form input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: var(--input);
  /* Same 16px-minimum reasoning as .ask-ai-form input — under 16px triggers
     mobile browsers' auto-zoom-on-focus. */
  font: 500 16px "DM Sans", sans-serif;
}
#auth-form input:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.1); }
.primary-button {
  height: 49px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111;
  font: 700 14px "DM Sans", sans-serif;
  cursor: pointer;
}
.text-button { width: 100%; margin-top: 17px; border: 0; color: var(--green); background: none; font: 700 12px "DM Sans", sans-serif; cursor: pointer; }
.buy-minutes {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px 0 10px;
}
.buy-minutes .stripe-mark { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 5px; }
.buy-minutes.checkout-starting { cursor: wait; opacity: .82; }
.buy-minutes.checkout-starting .stripe-mark { animation: checkout-pulse 1s ease-in-out infinite; }
@keyframes checkout-pulse { 50% { opacity: .45; transform: scale(.9); } }
.topup-block { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.quota-upgrade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 17px;
  padding: 18px;
  border: 1px solid #f0c9be;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8f5, #fffdfc);
}

.source-preview-card {
  grid-column: 1 / -1;
  margin: 0 0 14px;
}
.source-preview-kicker { display: inline-flex; margin-bottom: 4px; color: #3d7b50; font: 800 10px "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.source-preview-card h4 { margin: 0; font: 800 16px/1.25 "Manrope", sans-serif; color: var(--ink); }
.source-preview-empty,
.source-preview-unlock { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.source-preview-excerpt { margin: 8px 0 0; max-height: 12.4em; overflow: hidden; padding: 2px 0 2px 12px; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); border-left: 3px solid rgba(61,123,80,.34); color: var(--ink); font-size: 13px; line-height: 1.55; }
.source-preview-unlock { font-weight: 700; color: #3d7b50; }

/* quota-card-layout.css only stacks the two-column revenue card at <=760px, but the
   card (stats + CTA, ~610px) is wider than the job card content column between
   ~760px and ~920px and spills out to the right. The extra .job-focus class
   outranks that file regardless of load order. */
@media (max-width: 920px) {
  .job-focus > div { min-width: 0; }
  .job-focus .quota-upgrade[data-direct-quota-revenue="1"] { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}


/* The preview card shares the quota card's layout; only the tint differs, since
   this is a success state rather than a failure. */
.quota-upgrade.first-job-preview-card {
  border-color: rgba(61,123,80,.28);
  background: linear-gradient(135deg, #f4faf5, #fcfefc);
}
:where(html[data-theme="dark"]) .quota-upgrade.first-job-preview-card { border-color: rgba(255,255,255,.14); background: linear-gradient(135deg, #1f2a23, #1c211e); }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .quota-upgrade.first-job-preview-card { border-color: rgba(255,255,255,.14); background: linear-gradient(135deg, #1f2a23, #1c211e); }
}

.quota-kicker {
  display: block;
  margin-bottom: 5px;
  color: #a74435;
  font: 800 10px "DM Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quota-copy h4 { margin: 0; font: 800 17px/1.25 "Manrope", sans-serif; }
.quota-copy > p { max-width: 540px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quota-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quota-stat { min-width: 104px; padding: 8px 10px; border: 1px solid rgba(41,52,47,.10); border-radius: 9px; background: rgba(255,255,255,.72); }
.quota-stat span { display: block; color: var(--muted); font: 600 10px "DM Sans", sans-serif; }
.quota-stat strong { display: block; margin-top: 2px; color: var(--ink); font: 800 14px "Manrope", sans-serif; }
.quota-stat.shortfall { border-color: #e6a899; background: #fff0eb; }
.quota-stat.shortfall strong { color: #a74435; }
.quota-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: max-content; }
.quota-cta .buy-minutes { min-height: 46px; }
.quota-pack { color: var(--muted); font: 600 11px "DM Sans", sans-serif; }

.topup-secure-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.quota-cta .topup-secure-note { margin-top: 4px; }

.secure-payment-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font: 600 12px "DM Sans", sans-serif;
}
.secure-lock-icon {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}

.secure-payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.secure-payment-methods .stripe-mark { width: 17px; height: 17px; flex: 0 0 auto; border-radius: 4px; }
.google-pay-mark { width: auto; height: 17px; flex: 0 0 auto; }
.google-pay-mark-dark { display: none; }
.apple-pay-mark { width: auto; height: 17px; flex: 0 0 auto; }
.signed-out {
  padding: 45px;
  border: 1px dashed #c8c8c0;
  border-radius: 14px;
  text-align: center;
}
.live-replay-card {
  margin-top: 17px;
  padding: 18px 20px;
  border: 1px solid rgba(220, 140, 50, 0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.9), rgba(255, 253, 248, 0.95));
}
.live-replay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(220, 120, 30, 0.12);
  color: #b86010;
  font: 700 11px "DM Sans", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-replay-title {
  margin: 0 0 6px;
  font: 800 16px/1.3 "Manrope", sans-serif;
  color: var(--ink);
}
.live-replay-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.live-replay-stage-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font: 600 12px "DM Sans", sans-serif;
  color: var(--ink);
  margin-bottom: 14px;
}
.live-replay-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97706;
  animation: live-replay-blink 1.8s ease-in-out infinite;
}
@keyframes live-replay-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}
.live-replay-auth-notify {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 10px;
  color: #1b5e20;
  font: 600 13px/1.4 "DM Sans", sans-serif;
}
.live-replay-check {
  font-weight: 800;
  font-size: 15px;
}
.live-replay-demo-notify {
  margin-top: 10px;
}

.signed-out p { color: var(--muted); }

/* Dark theme. The user can force it with html[data-theme="dark"] (nav toggle,
   persisted in localStorage) or inherit it from the system unless they forced
   light. The SAME rules exist twice — explicit choice and system-follow — and
   :where() keeps the html prefix at zero specificity so these behave exactly
   like the original flat selectors. KEEP BOTH BLOCKS IN SYNC. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f5;
  --muted: #b4b4b4;
  --cream: #171717;
  --paper: #212121;
  --surface: rgba(33,33,33,.94);
  --surface-soft: rgba(45,45,45,.78);
  --input: #171717;
  --line: #424242;
  --green: #f5f5f5;
  --green-dark: #ffffff;
  --coral: #4fd897;
  --timestamp-ink: #4fd897;
  --coral-soft: #1c3a2a;
  --track: #383838;
  --placeholder: #8f8f8f;
  --preview: #292929;
  --preview-ink: #d8d8d8;
  --backdrop: rgba(0,0,0,.72);
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --hero-card: #262626;
  --hero-input: #1c1c1c;
  --hero-border: #4a4a4a;
  --hero-focus: #f5f5f5;
  --hero-cta-bg: #f5f5f5;
  --hero-cta-hover: #ffffff;
  --hero-cta-ink: #171717;
  --hero-cta-credit: rgba(23,23,23,.7);
}
:where(html[data-theme="dark"]) body::before {
  background:
    radial-gradient(circle at 12% 15%, rgba(255,255,255,.035), transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.045), transparent 25%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 72%);
}
:where(html[data-theme="dark"]) .nav { border-bottom-color: rgba(255,255,255,.1); }
:where(html[data-theme="dark"]) .google-pay-mark-light { display: none; }
:where(html[data-theme="dark"]) .google-pay-mark-dark { display: block; }
:where(html[data-theme="dark"]) .account-button,
:where(html[data-theme="dark"]) .theme-toggle {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}
:where(html[data-theme="dark"]) .transcribe-card { border-color: rgba(255,255,255,.08); }
:where(html[data-theme="dark"]) .quota-upgrade { border-color: rgba(255,255,255,.14); background: linear-gradient(135deg, #2b2421, #232020); }
:where(html[data-theme="dark"]) .quota-stat { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
:where(html[data-theme="dark"]) .quota-stat.shortfall { border-color: rgba(230,120,100,.55); background: rgba(230,120,100,.14); }
:where(html[data-theme="dark"]) .source-preview-kicker,
:where(html[data-theme="dark"]) .source-preview-unlock { color: #4fd897; }
:where(html[data-theme="dark"]) .source-preview-excerpt { border-left-color: rgba(79,216,151,.45); }
:where(html[data-theme="dark"]) .quota-kicker { color: #ff9d8a; }
:where(html[data-theme="dark"]) .quota-upgrade[data-direct-quota-revenue="1"] .quota-cta .primary-button { border-color: transparent; background: var(--hero-cta-bg); color: var(--hero-cta-ink); }
:where(html[data-theme="dark"]) .platform-row span,
:where(html[data-theme="dark"]) .platform-row a {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
:where(html[data-theme="dark"]) .hero-benefits li,
:where(html[data-theme="dark"]) .sample-button,
:where(html[data-theme="dark"]) .trust-row {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
:where(html[data-theme="dark"]) .steps-section,
:where(html[data-theme="dark"]) footer { border-color: rgba(255,255,255,.1); }
:where(html[data-theme="dark"]) .empty-state,
:where(html[data-theme="dark"]) .signed-out { border-color: #46514c; }
:where(html[data-theme="dark"]) .job-thumb,
:where(html[data-theme="dark"]) .job-row img { background: #303a36; }
:where(html[data-theme="dark"]) .status-badge { color: #f2f2f2; background: #333; }
:where(html[data-theme="dark"]) .status-badge.action-required { color: #ffe39c; background: #3b2f12; }
:where(html[data-theme="dark"]) .cursor-aurora { opacity: .2; }
:where(html[data-theme="dark"]) .brand-mark img {
  filter: drop-shadow(0 0 1.5px rgba(255,255,255,.5));
}
:where(html[data-theme="dark"]) .select-wrap select option,
:where(html[data-theme="dark"]) .quality-select-wrap select option {
  background: var(--surface);
  color: var(--ink);
}
:where(html[data-theme="dark"]) .ask-ai-question {
  background: #383838;
  color: #f5f5f5;
  border: 1px solid #505050;
}
:where(html[data-theme="dark"]) .channel-cta {
  border-color: rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    radial-gradient(circle at top left, rgba(255,0,0,.1), transparent 48%);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
:where(html[data-theme="dark"]) .channel-cta[data-ready="true"] {
  border-color: rgba(233,91,74,.4);
  box-shadow: 0 18px 44px rgba(233,91,74,.18);
}
:where(html[data-theme="dark"]) .channel-cta[data-loading="true"] {
  border-color: rgba(233,91,74,.32);
  box-shadow: 0 18px 44px rgba(233,91,74,.2);
}
:where(html[data-theme="dark"]) .live-replay-card {
  background: linear-gradient(135deg, rgba(45, 35, 20, 0.4), rgba(30, 25, 18, 0.6));
  border-color: rgba(220, 140, 50, 0.25);
}
:where(html[data-theme="dark"]) .live-replay-badge {
  background: rgba(240, 150, 40, 0.18);
  color: #f0a030;
}
:where(html[data-theme="dark"]) .live-replay-stage-status {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
:where(html[data-theme="dark"]) .live-replay-auth-notify {
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(76, 175, 80, 0.3);
  color: #81c784;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f5f5f5;
    --muted: #b4b4b4;
    --cream: #171717;
    --paper: #212121;
    --surface: rgba(33,33,33,.94);
    --surface-soft: rgba(45,45,45,.78);
    --input: #171717;
    --line: #424242;
    --green: #f5f5f5;
    --green-dark: #ffffff;
    --coral: #4fd897;
    --timestamp-ink: #4fd897;
    --coral-soft: #1c3a2a;
    --track: #383838;
    --placeholder: #8f8f8f;
    --preview: #292929;
    --preview-ink: #d8d8d8;
    --backdrop: rgba(0,0,0,.72);
    --shadow: 0 24px 70px rgba(0,0,0,.35);
    --hero-card: #262626;
    --hero-input: #1c1c1c;
    --hero-border: #4a4a4a;
    --hero-focus: #f5f5f5;
    --hero-cta-bg: #f5f5f5;
    --hero-cta-hover: #ffffff;
    --hero-cta-ink: #171717;
    --hero-cta-credit: rgba(23,23,23,.7);
  }

  :where(html:not([data-theme="light"])) body::before {
    background:
      radial-gradient(circle at 12% 15%, rgba(255,255,255,.035), transparent 28%),
      radial-gradient(circle at 88% 5%, rgba(255,255,255,.045), transparent 25%),
      linear-gradient(180deg, rgba(255,255,255,.02), transparent 72%);
  }

  :where(html:not([data-theme="light"])) .nav { border-bottom-color: rgba(255,255,255,.1); }
  :where(html:not([data-theme="light"])) .account-button,
  :where(html:not([data-theme="light"])) .theme-toggle {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.04);
  }
  :where(html:not([data-theme="light"])) .transcribe-card { border-color: rgba(255,255,255,.08); }
  :where(html:not([data-theme="light"])) .quota-upgrade { border-color: rgba(255,255,255,.14); background: linear-gradient(135deg, #2b2421, #232020); }
  :where(html:not([data-theme="light"])) .quota-stat { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
  :where(html:not([data-theme="light"])) .quota-stat.shortfall { border-color: rgba(230,120,100,.55); background: rgba(230,120,100,.14); }
  :where(html:not([data-theme="light"])) .source-preview-kicker,
  :where(html:not([data-theme="light"])) .source-preview-unlock { color: #4fd897; }
  :where(html:not([data-theme="light"])) .source-preview-excerpt { border-left-color: rgba(79,216,151,.45); }
  :where(html:not([data-theme="light"])) .quota-kicker { color: #ff9d8a; }
  :where(html:not([data-theme="light"])) .quota-upgrade[data-direct-quota-revenue="1"] .quota-cta .primary-button { border-color: transparent; background: var(--hero-cta-bg); color: var(--hero-cta-ink); }
  :where(html:not([data-theme="light"])) .platform-row span,
  :where(html:not([data-theme="light"])) .platform-row a {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
  }
  :where(html:not([data-theme="light"])) .hero-benefits li,
  :where(html:not([data-theme="light"])) .sample-button,
  :where(html:not([data-theme="light"])) .trust-row {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
  }
  :where(html:not([data-theme="light"])) .steps-section,
  :where(html:not([data-theme="light"])) footer { border-color: rgba(255,255,255,.1); }
  :where(html:not([data-theme="light"])) .empty-state,
  :where(html:not([data-theme="light"])) .signed-out { border-color: #46514c; }
  :where(html:not([data-theme="light"])) .job-thumb,
  :where(html:not([data-theme="light"])) .job-row img { background: #303a36; }
  :where(html:not([data-theme="light"])) .status-badge { color: #f2f2f2; background: #333; }
  :where(html:not([data-theme="light"])) .cursor-aurora { opacity: .2; }
  :where(html:not([data-theme="light"])) .brand-mark img {
    filter: drop-shadow(0 0 1.5px rgba(255,255,255,.5));
  }
  :where(html:not([data-theme="light"])) .select-wrap select option,
  :where(html:not([data-theme="light"])) .quality-select-wrap select option {
    background: var(--surface);
    color: var(--ink);
  }
  :where(html:not([data-theme="light"])) .ask-ai-question {
    background: #383838;
    color: #f5f5f5;
    border: 1px solid #505050;
  }
  :where(html:not([data-theme="light"])) .channel-cta {
    border-color: rgba(255,255,255,.12);
    background:
      linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
      radial-gradient(circle at top left, rgba(255,0,0,.1), transparent 48%);
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
  }
  :where(html:not([data-theme="light"])) .channel-cta[data-ready="true"] {
    border-color: rgba(233,91,74,.4);
    box-shadow: 0 18px 44px rgba(233,91,74,.18);
  }
  :where(html:not([data-theme="light"])) .channel-cta[data-loading="true"] {
    border-color: rgba(233,91,74,.32);
    box-shadow: 0 18px 44px rgba(233,91,74,.2);
  }
  :where(html:not([data-theme="light"])) .live-replay-card {
    background: linear-gradient(135deg, rgba(45, 35, 20, 0.4), rgba(30, 25, 18, 0.6));
    border-color: rgba(220, 140, 50, 0.25);
  }
  :where(html:not([data-theme="light"])) .live-replay-badge {
    background: rgba(240, 150, 40, 0.18);
    color: #f0a030;
  }
  :where(html:not([data-theme="light"])) .live-replay-stage-status {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }
  :where(html:not([data-theme="light"])) .live-replay-auth-notify {
    background: rgba(46, 125, 50, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    color: #81c784;
  }
}

/* Theme-toggle icon: moon in light mode, sun in dark — resolved the same way
   as the dark blocks above (explicit choice first, then system). */
.theme-toggle .icon-sun { display: none; }
:where(html[data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
:where(html[data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .theme-toggle .icon-sun { display: block; }
  :where(html:not([data-theme="light"])) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 980px) {
  .hero { padding: 48px 0 52px; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-copy-block { max-width: 680px; }
  .ambient-wave {
    left: 50%;
    width: min(720px, 88vw);
  }
  .transcribe-card {
    width: min(100%, 720px);
  }
  .lp-hero--tool {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .lp-hero-copy { max-width: 680px; }
  .lp-action-card { width: min(100%, 720px); }
  .lp-ambient-wave { left: 50%; width: min(720px, 88vw); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 600px); }
  .nav { height: 72px; }
  .nav nav a { display: none; }
  .lp-nav nav .lp-nav-app { display: inline-flex; }
  /* Visually hidden, not display:none: the text is the logo link's only
     accessible name (the mark image is decorative alt=""). */
  .brand span:not(.brand-mark) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
  }
  .nav nav { min-width: 0; gap: 10px; }
  .account-button {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero { padding: 40px 0 46px; }
  .ambient-wave { top: 28px; height: 210px; opacity: .1; }
  h1 { font-size: 52px; letter-spacing: 0; }
  /* Public landing h1 was still 60px on phones because the more specific
     .public-transcript h1 rule overrode the general mobile h1 size.
     Long words (e.g. transcription) were silently cropped by overflow:hidden. */
  .public-transcript > h1 {
    font-size: clamp(34px, 10vw, 52px);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }
  .hero-copy { font-size: 16px; }
  .hero-benefits { gap: 8px; }
  .hero-benefits li { min-height: 32px; font-size: 12px; }
  .transcribe-card { padding: 16px; }
  .url-row { flex-direction: column; }
  .url-row button { height: 52px; }
  .url-input { padding: 12px 13px; }
  .url-input textarea { min-height: 100px; }
  .options-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .card-heading .usage-summary { flex: 0 1 auto; text-align: left; }
  .account-plan-actions { flex: 0 0 auto; width: 100%; justify-content: flex-start; }
  .select-wrap { min-width: 0; flex-basis: auto; }
  .privacy-note { margin: 3px 0 0; }
  .platform-row { justify-content: flex-start; }
  .trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
  .trust-row span { min-width: 0; }
  .hero-actions { flex-direction: column; }
  .sample-button { width: 100%; min-width: 0; }
  .test-video-button { min-height: 42px; }
  .steps-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .steps-heading h2 { font-size: 34px; }
  .steps-grid { grid-template-columns: 1fr; gap: 38px; }
  .steps-grid article { min-height: 0; }
  .public-topbar, .public-actions { align-items: flex-start; flex-direction: column; }
  .public-transcript .section-kicker { margin-top: 54px; }
  .public-copy { padding: 6px 20px; }
  .public-copy p { grid-template-columns: 1fr; gap: 4px; }
  .breadcrumb-nav { margin-top: 40px; }
  .curated-transcript-summary { font-size: 16px; }
  .lp-hero--tool {
    /* Prevent long native-language titles from inflating min-content track. */
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: auto;
    margin-top: 0;
    padding: 40px 0 46px;
  }
  .public-transcript .lp-hero--tool h1 {
    margin-top: 10px;
    font-size: clamp(42px, 13vw, 58px);
    /* Long native-language words must wrap on 320px mobile viewports. */
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .lp-hero-copy > .public-meta { font-size: 15px; }
  .lp-trust-row { grid-template-columns: 1fr 1fr; }
  .lp-action-card { padding: 19px; border-radius: 24px; }
  .lp-card-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .lp-card-heading span { text-align: left; }
  .lp-input-row { flex-direction: column; }
  .lp-input-row button { min-width: 0; width: 100%; }
  .lp-action-card input[type="file"] {
    top: 57px;
    left: 19px;
    width: calc(100% - 38px);
  }
  .lp-file-picker { align-items: flex-start; flex-direction: column; justify-content: center; }
  .lp-product-proof {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 34px 0 54px;
    padding: 20px;
    border-radius: 24px;
  }
  .lp-commercial-offer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 20px;
  }
  .lp-commercial-offer-action { min-width: 0; }
  .lp-proof-copy h2 { font-size: 26px; }
  .lp-transcript-preview > p { margin: 0 13px; grid-template-columns: 44px minmax(0, 1fr); }
  .job-focus { grid-template-columns: 1fr; }
  .job-thumb { width: 100%; height: 160px; }
  .quota-upgrade { grid-template-columns: 1fr; gap: 18px; padding: 15px; }
  .quota-cta { align-items: stretch; min-width: 0; }
  .quota-cta .buy-minutes { justify-content: center; }
  .quota-pack, .quota-cta .topup-secure-note { justify-content: center; text-align: center; }
  .quota-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .quota-stat { min-width: 0; }
  /* Phone width: only the active (or failed) step shows its label and gets
     more room; the others keep theirs for screen readers, just visually clipped. */
  .job-wiz { gap: 12px; }
  .job-step:not(.active):not(.failed) .step-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .job-step.active, .job-step.failed { flex-grow: 2.4; }
  .job-row { grid-template-columns: 62px minmax(0, 1fr); }
  .job-row.no-thumb { grid-template-columns: minmax(0, 1fr); }
  .job-row.is-selecting { grid-template-columns: 28px 62px minmax(0, 1fr); }
  .job-row.no-thumb.is-selecting { grid-template-columns: 28px minmax(0, 1fr); }
  .library-bulk-actions { flex-basis: 100%; width: 100%; }
  .job-row img { width: 62px; height: 44px; }
  .job-actions { grid-column: 1 / -1; }
  .clipboard-toast { top: 12px; gap: 12px; padding: 14px 15px; }
  .clipboard-toast-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .clipboard-toast-copy strong { font-size: 14px; }
  .clipboard-toast-copy p { font-size: 12px; }
  .job-smart-action { width: 100%; align-items: stretch; }
  .job-smart-action .library-action-button { justify-content: center; }
  .library-action-note { max-width: none; text-align: left; }
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid article { padding: 16px 12px; }
  .analytics-conversion-grid { grid-template-columns: 1fr; }
  .analytics-chart-card { padding: 16px 12px; }
  .analytics-chart-heading { flex-direction: column; }
  .analytics-growth-chart { grid-template-columns: 1fr; overflow: visible; }
  .analytics-chart-panel { overflow: hidden; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .modal { align-items: stretch; padding: 10px; }
  .modal-card { padding: 28px 20px; }
  .modal-card.editor-card,
  .modal-card.viewer-card {
    width: 100%;
    max-height: calc(100vh - 20px);
  }
  .editor-text { min-height: 48vh; }
  .viewer-body { flex-basis: 58vh; }
  .viewer-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .viewer-heading h2 { font-size: 22px; }
  .viewer-ai-actions { justify-content: flex-start; }
  /* On desktop the modal has room to let Ask AI grow to 48vh alongside the
     58vh transcript body; on a short mobile viewport those two together
     blow past the modal's own max-height and the panel gets clipped/
     overlapped. Give it a much smaller share here instead. */
  .ask-ai-messages { max-height: 26vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cursor-aurora, .ambient-wave { display: none; }
  .motion-ready .reveal-section { opacity: 1; transform: none; filter: none; }
  .transcribe-card { transform: none !important; }
}

/* One consistent rounded system across the entire product surface. */
:root {
  --radius-control: 18px;
  --radius-panel: 28px;
  --radius-feature: 32px;
  --radius-pill: 999px;
}

button,
.primary-link,
.google-auth-button,
.sample-button,
.test-video-button,
.ghost-button,
.account-button,
.text-button,
.ask-ai-suggestion {
  border-radius: var(--radius-pill);
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
.url-input,
.select-wrap,
.upload-chosen,
.viewer-search {
  border-radius: var(--radius-control);
}
.viewer-search { border-radius: 10px; }

.modal-card,
.steps-grid article,
.job-focus,
.job-row,
.signed-out,
.empty-state,
.analytics-grid article,
.analytics-chart-card,
.analytics-chart-panel,
.public-copy,
.lp-compare-wrap,
.demo-cta,
.preview,
.ask-ai-panel,
.summary-panel,
.faq-item,
.trust-row,
.library-search,
.library-filter {
  border-radius: var(--radius-panel);
}

.job-thumb,
.job-row img,
.public-transcript img {
  border-radius: var(--radius-control);
}

.platform-row span,
.hero-benefits li,
.public-meta-row span,
.status-badge,
.demo-badge,
.anonymous-job-badge {
  border-radius: var(--radius-pill);
}

.transcribe-card {
  border-radius: var(--radius-feature);
  padding: 32px;
  border-color: var(--hero-border);
  background: var(--hero-card);
  box-shadow: var(--shadow);
}

.url-input {
  border-radius: 24px;
  padding: 16px 18px;
  background: var(--hero-input);
}

.url-input:focus-within {
  border-color: var(--hero-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hero-focus) 14%, transparent);
}

.url-row #submit-button {
  display: grid;
  grid-template-columns: auto auto minmax(72px, 1fr);
  align-items: center;
  column-gap: 10px;
  min-width: 230px;
  min-height: 92px;
  padding: 15px 18px;
  border-radius: 24px;
  color: var(--hero-cta-ink);
  background: var(--hero-cta-bg);
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.url-row #submit-button:hover { background: var(--hero-cta-hover); }
.url-row #submit-button[data-channel="true"] {
  background: linear-gradient(135deg, #d94a3a, #bd3427);
}
.url-row #submit-button[data-channel="true"]:hover {
  background: linear-gradient(135deg, #cf4435, #b02f22);
}

/* Brand colour for the detected platform. --pf-a/--pf-b feed the gradient and
   all shades keep white text readable. A YouTube channel keeps its own red. */
/* Coloured buttons are dark in both themes: pin the light-on-dark ink the label
   shimmer and credit read from (dark mode flips them to near-black for the
   default light button). */
.url-row #submit-button[data-platform],
.url-row #submit-button[data-channel="true"] {
  --hero-cta-ink: #fff;
  --hero-cta-credit: rgba(255, 255, 255, .78);
  color: #fff;
}
.url-row #submit-button[data-platform] {
  color: #fff;
  background: linear-gradient(135deg, var(--pf-a), var(--pf-b));
  transition: background .2s ease, box-shadow .2s ease;
}
.url-row #submit-button[data-platform]:hover { filter: brightness(1.08); }
.url-row #submit-button[data-platform] .submit-credit { color: rgba(255,255,255,.78); }
.url-row #submit-button[data-platform="youtube"]     { --pf-a: #e0382b; --pf-b: #b92a1f; }
.url-row #submit-button[data-platform="instagram"]   { --pf-a: #e1306c; --pf-b: #a8348f; }
.url-row #submit-button[data-platform="tiktok"]      { --pf-a: #1d1d22; --pf-b: #fe2c55; }
.url-row #submit-button[data-platform="facebook"]    { --pf-a: #1877f2; --pf-b: #0f5bc4; }
.url-row #submit-button[data-platform="vimeo"]       { --pf-a: #1a9ec9; --pf-b: #0e7ea3; }
.url-row #submit-button[data-platform="x"]           { --pf-a: #2a2d33; --pf-b: #0f1114; }
.url-row #submit-button[data-platform="twitch"]      { --pf-a: #9146ff; --pf-b: #6c2fd1; }
.url-row #submit-button[data-platform="kick"]        { --pf-a: #2f8f1b; --pf-b: #1f6a10; }
.url-row #submit-button[data-platform="spotify"]     { --pf-a: #1a9c48; --pf-b: #12753a; }
.url-row #submit-button[data-platform="soundcloud"]  { --pf-a: #ff5500; --pf-b: #d63f00; }
.url-row #submit-button[data-platform="rumble"]      { --pf-a: #5f9a22; --pf-b: #447516; }
.url-row #submit-button[data-platform="dailymotion"] { --pf-a: #1a6fe0; --pf-b: #1255b0; }
.url-row #submit-button[data-platform="bilibili"]    { --pf-a: #f0628d; --pf-b: #d4416d; }
.url-row #submit-button[data-platform="linkedin"]    { --pf-a: #0a66c2; --pf-b: #084e96; }
.url-row #submit-button[data-platform="reddit"]      { --pf-a: #ff4500; --pf-b: #cc3700; }
.url-row #submit-button[data-platform="loom"]        { --pf-a: #625df5; --pf-b: #4a45cc; }
.url-row #submit-button[data-platform="zoom"]        { --pf-a: #1a6dff; --pf-b: #0b52cc; }
.url-row #submit-button[data-platform="dropbox"]     { --pf-a: #0061ff; --pf-b: #0049c2; }
.url-row #submit-button[data-platform="gdrive"]      { --pf-a: #1a73e8; --pf-b: #1557b0; }
/* A YouTube channel keeps the existing red rules above. */
.url-row #submit-button[data-channel="true"][data-platform] {
  --pf-a: #d94a3a; --pf-b: #bd3427;
}

/* Pasted video's title, shown under the label (see smart-url-input.js). */
#submit-button .submit-title { display: none; }
/* With a known title the button reads: logo | "Transcribe" over the title. The
   "Powered by" credit makes way for it. The title is clamped (2 lines, 1 on a
   phone) and adds nothing to the button's intrinsic width, so the button never
   changes size. */
.url-row #submit-button[data-has-title] {
  /* Same column tracks as without a title (the empty last one stands in for the
     credit), so the button keeps exactly its size. */
  align-content: center;
  align-items: center;
  text-align: left;
}
/* hidden, not removed: it keeps the button's width. */
.url-row #submit-button[data-has-title] .submit-credit > span { visibility: hidden; }
.url-row #submit-button[data-has-title] .submit-openai-logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}
.url-row #submit-button[data-has-title] .submit-label {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: end;
  line-height: 1.1;
}
.url-row #submit-button[data-has-title] .submit-title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  grid-column: 2 / -1;
  grid-row: 2;
  align-self: start;
  /* width 0 + min-width 100%: contributes nothing to the button's width. */
  width: 0;
  min-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font: 500 12px/1.3 "DM Sans", sans-serif;
  text-align: left;
  color: rgba(255, 255, 255, .92);
}

.url-input textarea.clipboard-filled { animation: clipboard-filled-flash 1.2s ease-out; }
@keyframes clipboard-filled-flash {
  from { background-color: color-mix(in srgb, var(--hero-focus) 22%, transparent); }
  to   { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .url-input textarea.clipboard-filled { animation: none; }
  .url-row #submit-button[data-platform] { transition: none; }
}

#submit-button .submit-label {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  gap: 10px;
  font-size: 16px;
}

#submit-button .submit-credit {
  display: contents;
  font-size: 9.5px;
  color: var(--hero-cta-credit);
}
#submit-button[data-channel="true"] .submit-credit > span { max-width: 110px; }

#submit-button .submit-openai-logo {
  grid-column: 1;
  grid-row: 1;
  width: 34px;
  height: 34px;
  margin: 0;
}

#submit-button .submit-credit > span {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  max-width: 76px;
  text-align: right;
  line-height: 1.25;
}

.noise,
.cursor-aurora,
body::before {
  display: none;
}

.transcribe-card:hover,
.transcribe-card.drag-over {
  box-shadow: 0 14px 42px rgba(0,0,0,.08);
}

.sample-button,
.modal-card {
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}

@media (max-width: 760px) {
  .demo-cta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .demo-cta-actions { width: 100%; min-width: 0; }
  .transcribe-card { padding: 20px; border-radius: 28px; }
  .url-row #submit-button { min-width: 0; min-height: 84px; width: 100%; }
  .channel-cta {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .channel-cta-button {
    width: 100%;
    justify-content: center;
  }
  .batch-panel-actions .batch-add-recording-button {
    width: 100%;
  }
}

/* Viral Loop Sticky CTA */
.sticky-cta-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
  transform: translateY(100%);
  animation: slide-up-cta 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
  user-select: none;
  -webkit-user-select: none;
}
@keyframes slide-up-cta {
  to { transform: translateY(0); }
}
.sticky-cta-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sticky-cta-content span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.public-transcript.shell {
  padding-bottom: 120px;
}
.sticky-cta-banner .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  background: var(--green);
  color: var(--hero-cta-ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
:where(html[data-theme="dark"]) .sticky-cta-banner {
  background: rgba(30, 34, 32, 0.85);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .sticky-cta-banner {
    background: rgba(30, 34, 32, 0.85);
    border-top-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  }
}

/* Highlight to Share Tooltip */
.highlight-tooltip {
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: #000;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transform: translateX(-50%) translateY(-10px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.highlight-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #000;
}
.highlight-tooltip.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
.tooltip-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
  margin: 0 2px;
}
.highlight-tooltip button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: 600 13px "DM Sans", sans-serif;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.highlight-tooltip button:hover {
  background: rgba(255,255,255,0.15);
}

/* Improve Share Job Button Visibility */
.share-job.ghost-button {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.share-job.ghost-button:hover {
  background: var(--paper);
  border-color: var(--green);
}

@media (max-width: 700px) {
  #batch-add-mobile-file {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-weight: 800;
    border-radius: 18px;
  }
}


.viewer-secondary-panels {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.speaker-progress {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.speaker-progress-button {
  width: 100%;
  appearance: none;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.speaker-progress-button:hover,
.speaker-progress-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-soft));
}
.speaker-progress.compact {
  flex: 1 1 160px;
  min-width: 140px;
  margin: 0 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.speaker-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 700 12px/1.35 "DM Sans", sans-serif;
}
.speaker-progress-copy span {
  color: var(--muted);
  font-weight: 500;
}
.speaker-progress-track {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
}
.speaker-progress.compact .speaker-progress-track,
.diarize-status .speaker-progress {
  height: 5px;
}
.speaker-progress-bar {
  display: block;
  height: 100%;
  min-width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 70%, white));
  transition: width .35s ease;
}
.speaker-progress-track.indeterminate .speaker-progress-bar {
  width: 42%;
  min-width: 72px;
  animation: speaker-progress-indeterminate 1.25s ease-in-out infinite;
}
.speaker-progress.failed .speaker-progress-bar {
  background: var(--danger);
}
@keyframes speakerProgressPulse {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}
@keyframes speaker-progress-indeterminate {
  0% { transform: translateX(-120%); opacity: .72; }
  50% { opacity: 1; }
  100% { transform: translateX(285%); opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-line.speaker-detection div,
  .job-progress.speaker-detection div,
  .speaker-progress-track.indeterminate .speaker-progress-bar {
    animation: speakerProgressPulse 1.4s ease-in-out infinite;
    transform: none;
    width: 65%;
  }
}

body.transcript-workspace-open main,
body.transcript-workspace-open footer {
  display: none;
}

.workspace-speaker-panel .speaker-name-card {
  padding: 12px;
  overflow: visible;
}
.workspace-speaker-panel .speaker-name-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.workspace-speaker-panel .speaker-name-field input {
  width: 100%;
  min-width: 0;
}
.workspace-speaker-panel .speaker-merge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.workspace-speaker-panel .speaker-merge-row select {
  width: 100%;
  min-width: 0;
}
.workspace-speaker-panel .speaker-panel-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-download-menu {
  position: relative;
  display: inline-flex;
}
.workspace-download-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.workspace-download-chevron {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: currentColor;
  transition: transform .16s ease;
}
.workspace-download-menu:hover .workspace-download-chevron,
.workspace-download-menu:focus-within .workspace-download-chevron {
  transform: rotate(180deg);
}
.workspace-download-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 176px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.workspace-download-menu:hover .workspace-download-options,
.workspace-download-menu:focus-within .workspace-download-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.workspace-download-options a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.workspace-download-options a:hover,
.workspace-download-options a:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

/* Buyer-decision modules: accessible first-screen evidence on three pages. */
.lp-buyer-summary {
  margin: 1rem 0 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--ink);
}
.lp-buyer-summary h2 { margin: 0.1rem 0 0.85rem; font-size: clamp(1.25rem, 2.5vw, 1.7rem); line-height: 1.28; }
.lp-buyer-summary h3 { margin: 0 0 0.55rem; font-size: 1rem; line-height: 1.4; }
.lp-buyer-summary p { margin: 0.5rem 0 0.85rem; line-height: 1.58; }
.lp-buyer-kicker { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.lp-buyer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 0.85rem; margin: 1rem 0; }
.lp-buyer-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: var(--surface); }
.lp-buyer-card p { margin: 0.4rem 0; }
.lp-buyer-card .lp-buyer-fact { font-weight: 800; margin-top: 0.8rem; }
.lp-buyer-card .lp-buyer-metric { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; line-height: 1.2; }
.lp-buyer-summary .lp-buyer-fine { color: var(--muted); font-size: 0.91rem; }
.lp-buyer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.85rem; margin-top: 1rem; }
.lp-buyer-secondary { display: inline-flex; align-items: center; min-height: 42px; padding: 0.6rem 0.85rem; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }
.lp-buyer-summary a:focus-visible { outline: 3px solid var(--hero-focus); outline-offset: 3px; }
@media (max-width: 600px) {
  .lp-buyer-summary { padding: 0.9rem; }
  .lp-buyer-actions { display: grid; grid-template-columns: 1fr; }
  .lp-buyer-actions a { justify-content: center; text-align: center; }
}

/* Wave 7 research evidence: semantic, readable, keyboard-accessible on mobile. */
.lp-buyer-evidence { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.lp-buyer-summary .lp-buyer-evidence h3 { margin: 0.75rem 0 0.65rem; font-size: 1.06rem; }
.lp-buyer-scenarios { display: grid; gap: 0.7rem; padding-left: 1.25rem; margin: 0.65rem 0 0.95rem; }
.lp-buyer-scenarios li { line-height: 1.6; padding-left: 0.16rem; }
.lp-buyer-scenarios strong { color: var(--ink); }
.lp-buyer-summary .lp-buyer-sources { margin: 1rem 0 0; font-size: 0.91rem; line-height: 1.65; color: var(--muted); }
.lp-buyer-sources a { text-decoration: underline; text-underline-offset: 0.18em; }
.lp-buyer-table-wrap { overflow-x: auto; max-width: 100%; margin: 0.75rem 0 1.1rem; border: 1px solid var(--line); border-radius: 12px; }
.lp-buyer-table-wrap:focus-visible { outline: 3px solid var(--hero-focus); outline-offset: 3px; }
.lp-buyer-workflow-table { border-collapse: collapse; min-width: 620px; width: 100%; text-align: left; background: var(--surface); }
.lp-buyer-workflow-table th, .lp-buyer-workflow-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.91rem; line-height: 1.55; }
.lp-buyer-workflow-table thead th { font-weight: 800; background: var(--surface-soft); }
.lp-buyer-workflow-table tbody th { font-weight: 700; width: 25%; }
.lp-buyer-workflow-table tbody tr:last-child th, .lp-buyer-workflow-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .lp-buyer-evidence { margin-top: 1rem; }
  .lp-buyer-workflow-table { min-width: 540px; }
}

/* Admin acquisition momentum and possible post-failure churn (2026-10-11). */
#admin-analytics .admin-trend-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: .75rem 0 1rem;
}
#admin-analytics .admin-trend-summary > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
  border-radius: .8rem;
  padding: .7rem .9rem;
  background: color-mix(in srgb, currentColor 2%, transparent);
  min-width: 0;
}
#admin-analytics .admin-trend-summary strong {
  font: 700 1.45rem/1.3 "Manrope", sans-serif;
}
#admin-analytics .admin-trend-summary span {
  font-size: .78rem;
  opacity: .75;
}
#admin-analytics .admin-trend-controls {
  display: flex;
  gap: .65rem 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin: .85rem 0;
}
#admin-analytics .admin-trend-controls label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .72rem;
  opacity: .93;
}
#admin-analytics .admin-trend-controls select {
  max-width: min(100%, 300px);
  border: 1px solid color-mix(in srgb, currentColor 19%, transparent);
  border-radius: .45rem;
  color: inherit;
  background: Canvas;
  padding: .45rem;
}
#admin-analytics .admin-trend-state {
  display: inline-flex;
  white-space: nowrap;
  padding: .2rem .45rem;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: .45rem;
  font-size: .69rem;
  font-weight: 650;
}
#admin-analytics .admin-trend-state--new,
#admin-analytics .admin-trend-state--trending,
#admin-analytics .admin-trend-state--growing {
  border-color: color-mix(in srgb, #279f74 40%, transparent);
  color: #168b60;
}
#admin-analytics .admin-trend-state--falling {
  border-color: color-mix(in srgb, #b65a45 35%, transparent);
  color: #b65a45;
}
#admin-analytics .admin-trend-spark {
  display: inline-flex;
  height: 28px;
  min-width: 58px;
  align-items: end;
  gap: 3px;
}
#admin-analytics .admin-trend-spark > i {
  width: 6px;
  flex: 1;
  max-width: 8px;
  border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, currentColor 65%, transparent);
}
#admin-analytics .admin-recovery-note {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
}
#analytics-recovery .analytics-table,
#analytics-traffic-trends .analytics-table {
  min-width: 950px;
}
@media (max-width: 720px) {
  #admin-analytics .admin-trend-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #admin-analytics .admin-trend-summary strong { font-size: 1.2rem; }
}


/* Admission gates before job creation: read-only, admin-only observability. */
#analytics-prejob-blocks .admin-prejob-users {
  min-width: 1150px;
}
#analytics-prejob-blocks .analytics-table:not(.admin-prejob-users) {
  min-width: 700px;
}
#analytics-prejob-blocks .admin-prejob-muted {
  margin-top: 3px;
  font-size: .74rem;
  opacity: .70;
}
#analytics-prejob-blocks .admin-prejob-subtitle {
  font-size: 1rem;
  line-height: 1.4;
  margin: 1.6rem 0 .4rem;
}
#analytics-prejob-blocks .admin-prejob-copy-status {
  display: block;
  font-size: .72rem;
  margin-top: .25rem;
}

/* Audio-to-text: illustrative text/SRT result is readable on narrow screens. */
.lp-audio-example {
  max-width: 100%;
  margin: 0.65rem 0 0;
  padding: 0.85rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.55;
}
.lp-audio-example code { font: inherit; }


/* Admin user recovery: actionable decision matrix rather than a raw incident dump. */
#analytics-recovery.analytics-secondary { opacity: 1; font-size: 13px; }
#analytics-recovery .admin-recovery-explainer {
  display: flex; align-items: start; flex-direction: column; gap: 4px;
  margin: 0 0 14px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
  line-height: 1.5; white-space: normal;
}
#analytics-recovery .admin-recovery-explainer strong { font-size: 14px; }
#analytics-recovery .admin-recovery-explainer span { color: var(--muted); font-size: 12px; }
#analytics-recovery .admin-recovery-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 0 0 14px;
}
#analytics-recovery .admin-recovery-stat {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 10px; padding: 10px 12px; min-width: 0;
  background: var(--surface-soft);
}
#analytics-recovery .admin-recovery-stat strong { font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.15; }
#analytics-recovery .admin-recovery-stat span { font-weight: 800; font-size: 12px; }
#analytics-recovery .admin-recovery-stat small { font-size: 11px; line-height: 1.3; color: var(--muted); }
#analytics-recovery .admin-recovery-stat--go { border-left-color: #188253; }
#analytics-recovery .admin-recovery-stat--review { border-left-color: #c28a11; }
#analytics-recovery .admin-recovery-stat--stop { border-left-color: #bb4545; }
#analytics-recovery .admin-recovery-controls { justify-content: space-between; }
#analytics-recovery .admin-recovery-controls label { min-width: min(100%, 260px); }
#analytics-recovery .admin-recovery-controls select { width: 100%; }
#analytics-recovery .admin-recovery-count { color: var(--muted); font-size: 12px; }
#analytics-recovery .admin-recovery-table { min-width: 990px; font-size: 12px; }
#analytics-recovery .admin-recovery-table td {
  vertical-align: top; white-space: normal; line-height: 1.4; padding: 13px 12px;
}
#analytics-recovery .admin-recovery-table th { white-space: normal; line-height: 1.3; }
#analytics-recovery .admin-recovery-person,
#analytics-recovery .admin-recovery-problem { min-width: 160px; max-width: 245px; }
#analytics-recovery .admin-recovery-history { min-width: 152px; }
#analytics-recovery .admin-recovery-decision { min-width: 210px; max-width: 280px; }
#analytics-recovery .admin-recovery-actions { min-width: 186px; }
#analytics-recovery .admin-recovery-person,
#analytics-recovery .admin-recovery-problem,
#analytics-recovery .admin-recovery-history,
#analytics-recovery .admin-recovery-decision,
#analytics-recovery .admin-recovery-actions { overflow-wrap: anywhere; }
#analytics-recovery .admin-recovery-person strong,
#analytics-recovery .admin-recovery-problem strong {
  display: block; font-size: 12px; margin-bottom: 5px;
}
#analytics-recovery .admin-recovery-muted,
#analytics-recovery .admin-recovery-why,
#analytics-recovery .admin-recovery-history > span,
#analytics-recovery .admin-recovery-action-help {
  display: block; line-height: 1.4; margin-top: 4px;
}
#analytics-recovery .admin-recovery-muted { color: var(--muted); font-size: 11px; }
#analytics-recovery .admin-recovery-landing,
#analytics-recovery .admin-recovery-title { overflow-wrap: anywhere; }
#analytics-recovery .admin-recovery-first {
  display: block; font-weight: 800; color: #b76408; margin-bottom: 7px;
}
#analytics-recovery .admin-recovery-error {
  display: inline-block; background: color-mix(in srgb, #c66047 11%, transparent);
  color: var(--ink); padding: 3px 6px; border-radius: 5px; margin-top: 7px;
  font-size: 11px; font-weight: 700;
}
#analytics-recovery .admin-recovery-pill {
  display: inline-flex; align-items: center; border-radius: 5px;
  font-weight: 800; font-size: 11px; letter-spacing: .02em;
  padding: 5px 8px; border: 1px solid transparent; white-space: nowrap;
}
#analytics-recovery .admin-recovery-pill--go {
  color: #11643f; background: #def5e8; border-color: #9bd5b6;
}
#analytics-recovery .admin-recovery-pill--review {
  color: #815300; background: #fff2cf; border-color: #dfbf75;
}
#analytics-recovery .admin-recovery-pill--stop {
  color: #912525; background: #ffe1e1; border-color: #e3aaaa;
}
#analytics-recovery .admin-recovery-pill--done {
  color: #4b5864; background: #e6eaf0; border-color: #c6cdd5;
}
#analytics-recovery .admin-recovery-why { font-size: 12px; }
#analytics-recovery .admin-recovery-row--go > td:first-child {
  box-shadow: inset 3px 0 0 #188253;
}
#analytics-recovery .admin-recovery-row--review > td:first-child {
  box-shadow: inset 3px 0 0 #c28a11;
}
#analytics-recovery .admin-recovery-row--stop > td:first-child {
  box-shadow: inset 3px 0 0 #bb4545;
}
#analytics-recovery .admin-recovery-row--done > td:first-child {
  box-shadow: inset 3px 0 0 #8c949e;
}
#analytics-recovery .admin-recovery-main-button {
  width: 100%; min-height: 36px; display: inline-flex;
  align-items: center; justify-content: center; padding: 8px 11px;
  border-radius: 7px; border: 1px solid transparent;
  color: #fff; background: #18744b;
  font: 800 12px "DM Sans", sans-serif; cursor: pointer;
}
#analytics-recovery .admin-recovery-main-button--retry { background: #226c9d; }
#analytics-recovery .admin-recovery-main-button:not(:disabled):hover {
  filter: brightness(.9);
}
#analytics-recovery .admin-recovery-main-button:focus-visible,
#analytics-recovery .admin-recovery-copy:focus-visible {
  outline: 3px solid #eab943; outline-offset: 2px;
}
#analytics-recovery .admin-recovery-main-button:disabled {
  cursor: not-allowed; opacity: .72;
}
#analytics-recovery .admin-recovery-action-help {
  color: var(--muted); font-size: 10.5px;
}
#analytics-recovery .admin-recovery-queued { background: #4b5864; }
#analytics-recovery .admin-recovery-copy {
  display: block; border: 0; padding: 4px 0; margin-top: 6px;
  background: transparent; text-decoration: underline; color: var(--muted);
  font: 700 11px "DM Sans", sans-serif; cursor: pointer;
}
#analytics-recovery .admin-recovery-copy-email {
  width: 100%; margin-bottom: 3px;
}
#analytics-recovery .admin-recovery-no-auto {
  display: block; color: var(--muted); font-size: 11px; line-height: 1.4;
}
#analytics-recovery .admin-recovery-note {
  display: block; margin-top: 7px; font-size: 11px; color: var(--ink);
  white-space: normal; overflow-wrap: anywhere;
}
#analytics-recovery .admin-recovery-note:empty { display: none; }
#analytics-recovery .admin-recovery-empty { padding: 24px; white-space: normal; color: var(--muted); }
#analytics-recovery .admin-recovery-footnote {
  margin: 12px 0 0; color: var(--muted); font-size: 11px;
  line-height: 1.55; white-space: normal;
}
html[data-theme="dark"] #analytics-recovery .admin-recovery-pill--go {
  background: #163b2a; color: #a2edbf; border-color: #307654;
}
html[data-theme="dark"] #analytics-recovery .admin-recovery-pill--review {
  background: #47371b; color: #f9d17c; border-color: #886d3b;
}
html[data-theme="dark"] #analytics-recovery .admin-recovery-pill--stop {
  background: #4a242b; color: #ffb3b3; border-color: #874450;
}
html[data-theme="dark"] #analytics-recovery .admin-recovery-pill--done {
  background: #313a42; color: #d0d7df; border-color: #65717d;
}
@media(max-width: 780px) {
  #analytics-recovery .admin-recovery-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #analytics-recovery .admin-recovery-controls { justify-content: start; }
}


/* Traffic Momentum: explicit decision colors and actionable source/landing triage. */
#analytics-traffic-trends .admin-traffic-signal-summary {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px; margin: 0 0 14px;
}
#analytics-traffic-trends .admin-traffic-signal {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  border: 1px solid var(--line); border-left: 4px solid #9099a1;
  background: var(--surface-soft); border-radius: 10px; padding: 11px 14px;
}
#analytics-traffic-trends .admin-traffic-signal strong {
  font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.1;
}
#analytics-traffic-trends .admin-traffic-signal span {font-size: 12px; font-weight: 700;}
#analytics-traffic-trends .admin-traffic-signal--down {border-left-color: #b74848;}
#analytics-traffic-trends .admin-traffic-signal--mixed {border-left-color: #af781b;}
#analytics-traffic-trends .admin-traffic-signal--up {border-left-color: #188252;}
#analytics-traffic-trends .admin-traffic-signal--new {border-left-color: #3479af;}
#analytics-traffic-trends .admin-traffic-table {min-width: 1000px;}
#analytics-traffic-trends .admin-traffic-table td {
  vertical-align: top; padding: 12px 10px; white-space: normal; line-height: 1.4;
}
#analytics-traffic-trends .admin-traffic-table th {white-space: normal; line-height: 1.3;}
#analytics-traffic-trends .admin-traffic-table td strong {font-size: 12px;}
#analytics-traffic-trends .admin-traffic-meta {
  display: block; color: var(--muted); font-size: 10.5px;
  margin-top: 5px; line-height: 1.35; white-space: normal;
}
#analytics-traffic-trends .admin-traffic-delta--down {color: #b03e3e;}
#analytics-traffic-trends .admin-traffic-delta--mixed {color: #946114;}
#analytics-traffic-trends .admin-traffic-delta--up {color: #167449;}
#analytics-traffic-trends .admin-traffic-advice {
  min-width: 238px; max-width: 350px; overflow-wrap: anywhere;
}
#analytics-traffic-trends .admin-traffic-advice strong {
  display: block; margin: 7px 0 5px;
}
#analytics-traffic-trends .admin-traffic-advice > span:not(.admin-traffic-decision) {
  display: block; font-size: 11.5px; line-height: 1.48;
}
#analytics-traffic-trends .admin-traffic-decision {
  display: inline-flex; border-radius: 5px; border: 1px solid;
  padding: 4px 7px; font-size: 10px; font-weight: 800;
  letter-spacing: .035em;
}
#analytics-traffic-trends .admin-traffic-decision--down {
  color: #982d2d; background: #ffe5e5; border-color: #e5acac;
}
#analytics-traffic-trends .admin-traffic-decision--up {
  color: #13673f; background: #dff5e7; border-color: #9ed6b8;
}
#analytics-traffic-trends .admin-traffic-decision--mixed {
  color: #714b0b; background: #fff2d8; border-color: #cfac66;
}
#analytics-traffic-trends .admin-traffic-decision--new {
  color: #215e93; background: #e4f2ff; border-color: #afcee8;
}
#analytics-traffic-trends .admin-traffic-decision--quiet,
#analytics-traffic-trends .admin-traffic-decision--unknown {
  color: #505b67; background: #e8edf1; border-color: #c9d0d7;
}
#analytics-traffic-trends .admin-traffic-row--down > td:first-child {box-shadow: inset 3px 0 0 #b74848;}
#analytics-traffic-trends .admin-traffic-row--mixed > td:first-child {box-shadow: inset 3px 0 0 #af781b;}
#analytics-traffic-trends .admin-traffic-row--up > td:first-child {box-shadow: inset 3px 0 0 #188252;}
#analytics-traffic-trends .admin-traffic-row--new > td:first-child {box-shadow: inset 3px 0 0 #3479af;}
#analytics-traffic-trends .admin-traffic-row--quiet > td:first-child,
#analytics-traffic-trends .admin-traffic-row--unknown > td:first-child {box-shadow: inset 3px 0 0 #8e98a3;}
#analytics-traffic-trends .admin-traffic-drill {
  display: inline-flex; padding: 5px 0; margin-top: 7px;
  color: var(--accent, #176baf); background: none; border: 0;
  font: 750 11px "DM Sans", sans-serif; text-decoration: underline;
  cursor: pointer; text-align: left;
}
#analytics-traffic-trends .admin-traffic-drill:focus-visible,
#analytics-traffic-trends .admin-traffic-clear-focus:focus-visible {
  outline: 3px solid #edb94a; outline-offset: 2px;
}
#analytics-traffic-trends .admin-traffic-focused {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 8px 12px; margin: 8px 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-soft); font-size: 12px;
}
#analytics-traffic-trends .admin-traffic-clear-focus {
  padding: 4px 8px; border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  border-radius: 7px; font: inherit; cursor: pointer;
}
#analytics-traffic-trends .admin-trend-spark {display: flex; margin-top: 6px;}
#admin-analytics .admin-trend-state--new,
#admin-analytics .admin-trend-state--returning {
  color: #2779b6; border-color: #a7cced;
}
#admin-analytics .admin-trend-state--mixed {
  color: #946114; border-color: #cfac66;
}
#admin-analytics .admin-trend-state--low_volume,
#admin-analytics .admin-trend-state--incomplete,
#admin-analytics .admin-trend-state--stable {
  color: var(--muted); border-color: var(--line);
}
html[data-theme="dark"] #analytics-traffic-trends .admin-traffic-decision--down {color:#ffb7b7; background:#46252b; border-color:#87515a;}
html[data-theme="dark"] #analytics-traffic-trends .admin-traffic-decision--up {color:#a4edbf; background:#19392a; border-color:#337b56;}
html[data-theme="dark"] #analytics-traffic-trends .admin-traffic-decision--mixed {color:#ffe1a6; background:#3b2e16; border-color:#97713e;}
html[data-theme="dark"] #analytics-traffic-trends .admin-traffic-delta--mixed,
html[data-theme="dark"] #admin-analytics .admin-trend-state--mixed {color:#ffe1a6;}
html[data-theme="dark"] #analytics-traffic-trends .admin-traffic-decision--new {color:#b1d7ff; background:#1d354d; border-color:#456e96;}
html[data-theme="dark"] #analytics-traffic-trends .admin-traffic-decision--quiet,
html[data-theme="dark"] #analytics-traffic-trends .admin-traffic-decision--unknown {color:#d0d7df; background:#303943; border-color:#627080;}
@media(max-width: 780px) {
  #analytics-traffic-trends .admin-traffic-signal-summary {grid-template-columns: repeat(2,minmax(0,1fr));}
}
@media(max-width: 460px) {
  #analytics-traffic-trends .admin-traffic-signal-summary {grid-template-columns: minmax(0,1fr);}
}


/* Admin recovery: durable failed-after-admin-retry state. No job action on click. */
#analytics-recovery .admin-recovery-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#analytics-recovery .admin-recovery-stat--dead {
  border-left-color: #b8202c;
  background: color-mix(in srgb, #d43d47 12%, var(--surface-soft));
}
#analytics-recovery .admin-recovery-stat--dead strong { color: #bb2430; }
#analytics-recovery .admin-recovery-row--dead {
  background: color-mix(in srgb, #e34a4a 7%, transparent);
}
#analytics-recovery .admin-recovery-row--dead > td:first-child {
  box-shadow: inset 5px 0 0 #bd1d29;
}
#analytics-recovery .admin-recovery-pill--dead {
  font-size: 12px;
  border-color: #a21725;
  background: #bf1f2e;
  color: #fff;
  letter-spacing: .04em;
}
#analytics-recovery .admin-recovery-dead-history {
  display: block;
  font-weight: 850;
  margin-top: 8px;
  color: #b8202c;
}
#analytics-recovery .admin-recovery-kaput-button,
#analytics-recovery .admin-recovery-kaput-button:disabled {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 3px solid #92121f;
  border-radius: 9px;
  background: #bf1f2e;
  color: #fff;
  font: 900 13px/1.3 "DM Sans", sans-serif;
  letter-spacing: .03em;
  text-align: center;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: 0 2px 0 #861522;
  white-space: normal;
}
html[data-theme="dark"] #analytics-recovery .admin-recovery-kaput-button,
html[data-theme="dark"] #analytics-recovery .admin-recovery-kaput-button:disabled {
  background: #a91c2b;
  color: #fff;
  border-color: #ff7080;
}
html[data-theme="dark"] #analytics-recovery .admin-recovery-pill--dead {
  background: #9e1f29;
  border-color: #ff7080;
}
html[data-theme="dark"] #analytics-recovery .admin-recovery-dead-history,
html[data-theme="dark"] #analytics-recovery .admin-recovery-stat--dead strong {
  color: #ff8491;
}
@media (max-width: 1100px) {
  #analytics-recovery .admin-recovery-stats {grid-template-columns: repeat(3, minmax(0,1fr));}
}
@media (max-width: 780px) {
  #analytics-recovery .admin-recovery-stats {grid-template-columns: repeat(2, minmax(0,1fr));}
}

/* Playlist importer polish 2026-10-15: scoped to playlists, not channel importing. */
#channel-panel[data-collection="playlist"] {
  --pl-chev-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E");
  --pl-chev-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  --pl-accent-text: color-mix(in srgb, var(--coral) 72%, var(--ink));
  border-radius: 28px;
  padding: clamp(18px, 3vw, 32px);
  gap: 20px;
}
#channel-panel[data-collection="playlist"]:not(.hidden) {
  display: flex;
  flex-direction: column;
}
#channel-panel[data-collection="playlist"] #channel-panel-error:empty {
  display: none;
}
#channel-panel[data-collection="playlist"][data-platform="soundcloud"] {
  --pl-logo-bg: #ff5500;
  --pl-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Crect x='3' y='11' width='2' height='7' rx='1'/%3E%3Crect x='7' y='9' width='2' height='9' rx='1'/%3E%3Crect x='11' y='6' width='2' height='12' rx='1'/%3E%3Crect x='15' y='8' width='2' height='10' rx='1'/%3E%3Crect x='19' y='12' width='2' height='6' rx='1'/%3E%3C/svg%3E");
}
#channel-panel[data-collection="playlist"][data-platform="youtube"] {
  --pl-logo-bg: #e62117;
  --pl-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E");
}
#channel-panel[data-collection="playlist"] .batch-panel-heading {
  align-items: flex-end;
  gap: 24px;
}
#channel-panel[data-collection="playlist"] .batch-panel-heading > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#channel-panel[data-collection="playlist"] #collection-panel-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--pl-accent-text);
}
#channel-panel[data-collection="playlist"] #collection-panel-kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--pl-logo-bg, var(--coral)) var(--pl-logo) center / 16px 16px no-repeat;
}
#channel-panel[data-collection="playlist"] .batch-panel-heading h3 {
  margin: 0;
  max-width: 68ch;
  font: 800 clamp(24px, 3.2vw, 32px) / 1.1 "Manrope", "DM Sans", sans-serif;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
#channel-panel[data-collection="playlist"] .batch-file-count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
#channel-panel[data-collection="playlist"] .channel-select-actions {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#channel-panel[data-collection="playlist"] .channel-select-actions .text-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 700 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
}
#channel-panel[data-collection="playlist"] .channel-select-actions .text-button:hover:not(:disabled) {
  border-color: var(--muted);
  background: var(--surface);
}
#channel-panel[data-collection="playlist"] .channel-select-actions .text-button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
#channel-panel[data-collection="playlist"] .channel-select-actions .text-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
#channel-panel[data-collection="playlist"] #playlist-page-controls:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 6px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}
#channel-panel[data-collection="playlist"] #playlist-page-controls .text-button {
  background: var(--surface);
}
#channel-panel[data-collection="playlist"] #playlist-page-prev::before,
#channel-panel[data-collection="playlist"] #playlist-page-next::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
}
#channel-panel[data-collection="playlist"] #playlist-page-prev::before {
  -webkit-mask: var(--pl-chev-left) center / contain no-repeat;
  mask: var(--pl-chev-left) center / contain no-repeat;
}
#channel-panel[data-collection="playlist"] #playlist-page-next::after {
  -webkit-mask: var(--pl-chev-right) center / contain no-repeat;
  mask: var(--pl-chev-right) center / contain no-repeat;
}
#channel-panel[data-collection="playlist"] #playlist-page-label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  font: 700 13px/1.25 "DM Sans", sans-serif;
}
#channel-panel[data-collection="playlist"] .batch-file-list {
  gap: 10px;
  margin: 0;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding: 2px 6px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
#channel-panel[data-collection="playlist"] .playlist-row {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  opacity: 1;
  transition: background-color .15s ease, border-color .15s ease;
}
#channel-panel[data-collection="playlist"] .playlist-row:hover:not(.is-disabled) {
  border-color: var(--muted);
}
#channel-panel[data-collection="playlist"] .playlist-row.is-selected {
  border-color: var(--coral);
  background: color-mix(in srgb, var(--coral) 11%, var(--surface));
}
#channel-panel[data-collection="playlist"] .playlist-row:focus-within {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
#channel-panel[data-collection="playlist"] .playlist-row-label {
  display: grid;
  grid-template-columns: 22px 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 18px 12px 16px;
  cursor: pointer;
}
#channel-panel[data-collection="playlist"] .playlist-row.is-disabled .playlist-row-label {
  cursor: not-allowed;
}
#channel-panel[data-collection="playlist"] .playlist-row.is-disabled .job-title {
  color: var(--muted);
}
#channel-panel[data-collection="playlist"] .playlist-row.is-disabled .playlist-thumb {
  opacity: .5;
}
#channel-panel[data-collection="playlist"] .playlist-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--coral);
  cursor: inherit;
}
#channel-panel[data-collection="playlist"] .playlist-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl-accent-text);
  background: color-mix(in srgb, var(--coral) 14%, var(--surface-soft));
}
#channel-panel[data-collection="playlist"] .playlist-row .batch-file-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#channel-panel[data-collection="playlist"] .playlist-row .job-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  font: 600 15px/1.35 "DM Sans", sans-serif;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#channel-panel[data-collection="playlist"] .playlist-row-sub {
  font: 500 12px/1 "DM Sans", sans-serif;
  color: var(--muted);
}
#channel-panel[data-collection="playlist"] .playlist-row-state {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
#channel-panel[data-collection="playlist"] .playlist-row-time {
  min-width: 56px;
  text-align: right;
  font: 600 14px/1 "DM Sans", sans-serif;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#channel-panel[data-collection="playlist"] .playlist-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 700 11px/1 "DM Sans", sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
#channel-panel[data-collection="playlist"] .playlist-chip-done {
  color: var(--pl-accent-text);
  border-color: color-mix(in srgb, var(--coral) 55%, transparent);
}
#channel-panel[data-collection="playlist"] .playlist-chip-alert {
  color: var(--ink);
  border-color: var(--muted);
}
#channel-panel[data-collection="playlist"] .batch-panel-actions {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
#channel-panel[data-collection="playlist"] .channel-panel-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: center;
  margin: 0;
}
#channel-panel[data-collection="playlist"] .channel-panel-summary strong {
  font: 700 16px/1.2 "DM Sans", sans-serif;
  color: var(--ink);
}
#channel-panel[data-collection="playlist"] .channel-panel-summary span {
  font: 500 13px/1.4 "DM Sans", sans-serif;
  color: var(--muted);
}
#channel-panel[data-collection="playlist"] .batch-panel-actions .primary-button {
  min-width: 156px;
  min-height: 46px;
}
/* Loading skeleton shaped like the final rows. */
#channel-panel[data-collection="playlist"] .channel-video-row.is-placeholder {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 16px;
}
#channel-panel[data-collection="playlist"] .channel-video-skeleton-thumb {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
  #channel-panel[data-collection="playlist"] .channel-video-skeleton { animation: none; }
}

@media (max-width: 640px) {
  #channel-panel[data-collection="playlist"] {
    padding: 18px 16px 16px;
    border-radius: 22px;
  }
  #channel-panel[data-collection="playlist"] .batch-panel-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  #channel-panel[data-collection="playlist"] .batch-panel-heading > div:first-child {
    width: 100%;
  }
  #channel-panel[data-collection="playlist"] .batch-panel-heading .channel-select-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #channel-panel[data-collection="playlist"] .batch-panel-heading .channel-select-actions .text-button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }
  #channel-panel[data-collection="playlist"] #playlist-page-controls .text-button {
    min-width: 44px;
    padding-inline: 12px;
    gap: 0;
    font-size: 0; /* chevron only on phones; the text stays for screen readers */
  }
  #channel-panel[data-collection="playlist"] .batch-file-list {
    max-height: 56vh;
  }
  #channel-panel[data-collection="playlist"] .playlist-row-label {
    grid-template-columns: 22px auto minmax(0, 1fr);
    grid-template-areas: "cb main main" ". time state";
    align-items: start;
    gap: 10px 12px;
    min-height: 0;
    padding: 14px;
  }
  #channel-panel[data-collection="playlist"] .playlist-row input[type="checkbox"] { grid-area: cb; margin-top: 1px; }
  #channel-panel[data-collection="playlist"] .playlist-thumb { display: none; }
  #channel-panel[data-collection="playlist"] .playlist-row .batch-file-main { grid-area: main; }
  #channel-panel[data-collection="playlist"] .playlist-row-sub { display: none; }
  #channel-panel[data-collection="playlist"] .playlist-row-time {
    grid-area: time;
    min-width: 0;
    align-self: center;
    font-size: 13px;
  }
  #channel-panel[data-collection="playlist"] .playlist-row-state {
    grid-area: state;
    justify-content: flex-start;
    align-self: center;
  }
  #channel-panel[data-collection="playlist"] .batch-panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  #channel-panel[data-collection="playlist"] .batch-panel-actions .primary-button {
    width: 100%;
    min-height: 48px;
  }
}

/* Playlist error state: message, retry and change-link only. */
/* Hidden by default. The show rule below is MORE specific, so it only wins in
   the error state (an equal-specificity `:not(...)` hide rule lost to it). */
#channel-panel .playlist-error-actions {
  display: none;
}
#channel-panel[data-state="error"] :is(
  .channel-select-actions, #playlist-page-controls, .batch-file-list, .batch-panel-actions
) {
  display: none;
}
#channel-panel[data-collection="playlist"][data-state="error"] #channel-panel-error {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 500 14px/1.5 "DM Sans", sans-serif;
}
#channel-panel[data-collection="playlist"][data-state="error"] .playlist-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#channel-panel[data-collection="playlist"] .playlist-error-actions .primary-button,
#channel-panel[data-collection="playlist"] .playlist-error-actions .text-button {
  width: auto;
  min-height: 46px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  font: 700 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
}
#channel-panel[data-collection="playlist"] .playlist-error-actions .text-button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}
#channel-panel[data-collection="playlist"] .playlist-error-actions .text-button:hover {
  border-color: var(--muted);
}
#channel-panel[data-collection="playlist"] .playlist-error-actions :focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  #channel-panel[data-collection="playlist"] .playlist-error-actions > * {
    flex: 1 1 100%;
  }
}

/* Partial playlist imports: persistent visibility next to the active batch. */
.batch-import-notice {
  margin: 10px 0 14px;
  padding: 11px 13px;
  border: 1px solid #e5bf83;
  border-radius: 12px;
  background: #fff6e7;
  color: #825011;
  font: 500 13px/1.55 "DM Sans", sans-serif;
  overflow-wrap: anywhere;
}
.batch-import-notice.hidden { display: none; }
/* Wave 23: keep the task button in the initial mobile viewport.
   The full product details remain in the sections below the hero. */
@media (max-width: 600px) {
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-hero--tool {
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 24px;
  }
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-hero--tool h1 {
    font-size: clamp(29px, 7.9vw, 38px);
    line-height: 1.12;
  }
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-hero-copy > .public-meta {
    font-size: 13px;
    line-height: 1.4;
  }
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-trust-row > span:not(:first-child):not(:last-child) {
    display: none;
  }
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-action-card { padding: 14px; }
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-input-row button,
  :is(.public-wave23-tool, .public-wave25-interview, .public-wave26-polish) .lp-upload-submit { min-height: 56px; }
}

/* Interview hero is slightly taller than Wave 23 tools at 320px. */
@media (max-width: 360px) {
  .public-wave25-interview .lp-hero--tool {
    padding-top: 8px;
    gap: 8px;
  }
}

/* Wave 26: fit the Polish-language selector on small phones. */
@media (max-width: 360px) {
  .public-wave26-polish .lp-hero--tool { padding-top: 8px; gap: 6px; }
  .public-wave26-polish .lp-hero--tool h1 { margin: 8px 0; }
  .public-wave26-polish .lp-trust-row { margin-top: 8px; }
  .public-wave26-polish .lp-action-card { gap: 6px; padding: 10px 12px; }
  .public-wave26-polish .lp-file-picker { min-height: 50px; padding: 0 12px; }
  .public-wave26-polish .lp-action-card input[type="file"] {
    top: 40px;
    left: 12px;
    width: calc(100% - 24px);
    height: 50px;
  }
  .public-wave26-polish .lp-language-choice { gap: 3px; }
  .public-wave26-polish .lp-language-choice select { min-height: 38px; padding: 6px 9px; }
  .public-wave26-polish .lp-language-choice p { font-size: 11px; }
  .public-wave26-polish .lp-upload-submit { min-height: 48px; }
}

/* Batch upload polish 2026-10-15: upload entry row + batch panel. */
.upload-row {
  margin-top: 14px;
  gap: 10px;
}
.upload-row .upload-button {
  min-height: 44px;
  padding: 0 16px;
  gap: 10px;
  border: 1px dashed color-mix(in srgb, var(--muted) 55%, var(--line));
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 700 13px/1 "DM Sans", sans-serif;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.upload-row .upload-button svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--coral);
}
.upload-row .upload-button:hover {
  border-color: var(--coral);
  background: color-mix(in srgb, var(--coral) 9%, var(--surface-soft));
}
.upload-row .upload-button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.upload-row .batch-upload-button {
  border-style: solid;
  border-color: color-mix(in srgb, var(--coral) 60%, var(--line));
  background: color-mix(in srgb, var(--coral) 12%, var(--surface-soft));
}
.upload-row .batch-upload-button:hover {
  filter: none;
  background: color-mix(in srgb, var(--coral) 18%, var(--surface-soft));
}
.upload-row .batch-upload-button[data-locked="true"] {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--muted) 55%, var(--line));
  background: var(--surface-soft);
  color: var(--muted);
}
.upload-row .batch-upload-button[data-locked="true"] svg:first-child {
  color: var(--muted);
}
.upload-row .batch-upload-button .batch-lock-icon {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}
.upload-chosen {
  min-height: 44px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.upload-chosen button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}
.upload-chosen button:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--muted) 20%, transparent);
}
.upload-chosen button:focus-visible {
  outline: 2px solid var(--coral);
}
.cloud-import-row {
  margin-top: 12px;
  gap: 10px;
}
.cloud-import-icons {
  gap: 8px;
}
.cloud-import-icons a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.cloud-import-icons a:hover {
  border-color: var(--muted);
}
@media (max-width: 520px) {
  .upload-row .upload-button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

#batch-panel {
  --b-accent-text: color-mix(in srgb, var(--coral) 72%, var(--ink));
  padding: clamp(18px, 3vw, 32px);
  border-radius: 28px;
}
#batch-panel .batch-panel-heading {
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
}
#batch-panel .batch-panel-heading > div:first-child {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#batch-panel .section-kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--coral) 55%, transparent);
  border-radius: 999px;
  color: var(--b-accent-text);
  letter-spacing: .1em;
}
#batch-panel .batch-panel-heading h3 {
  margin: 0;
  font: 800 clamp(24px, 3.2vw, 32px) / 1.1 "Manrope", "DM Sans", sans-serif;
  letter-spacing: -0.02em;
}
#batch-panel .batch-file-count {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
#batch-panel .batch-cancel-all {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 700 13px/1 "DM Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
#batch-panel .batch-cancel-all:hover {
  border-color: var(--muted);
}
#batch-panel .batch-cancel-all:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
#batch-panel .batch-overall {
  height: 8px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--track);
}
#batch-panel .batch-overall span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width .4s ease;
}
/* Finished jobs carry many actions (View, Ask AI, Download, ...). Beside the
   title they squeezed it to a few characters, so they sit under it instead. */
#batch-panel .batch-file-row.batch-row-rich {
  grid-template-columns: 44px minmax(0, 1fr);
}
#batch-panel .batch-file-row.batch-row-rich .job-actions {
  grid-column: 2;
  justify-content: flex-start;
}
#batch-panel .batch-overall.has-issues span {
  background: var(--muted);
}
#batch-panel .batch-file-list {
  margin-top: 20px;
  gap: 10px;
}
#batch-panel .batch-file-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
  transition: border-color .15s ease, background-color .15s ease;
}
#batch-panel .batch-file-row.is-active {
  border-color: var(--coral);
  background: color-mix(in srgb, var(--coral) 8%, var(--surface));
}
#batch-panel .batch-file-index {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--coral) 12%, var(--surface-soft));
  color: var(--b-accent-text);
  font: 800 13px "Manrope", sans-serif;
  font-variant-numeric: tabular-nums;
}
#batch-panel .batch-file-row.is-active .batch-file-index {
  background: var(--coral);
  color: var(--surface);
}
#batch-panel .batch-file-main .job-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow-wrap: anywhere;
  font: 600 15px/1.35 "DM Sans", sans-serif;
  color: var(--ink);
}
#batch-panel .job-subtitle {
  font-size: 12px !important;
}
#batch-panel .job-progress {
  height: 6px;
  margin-top: 10px;
}
#batch-panel .batch-file-row .job-actions {
  align-items: center;
}
#batch-panel .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 11px/1 "DM Sans", sans-serif;
  letter-spacing: .05em;
  white-space: nowrap;
}
#batch-panel .status-badge.live {
  color: var(--b-accent-text);
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  border-color: color-mix(in srgb, var(--coral) 55%, transparent);
}
#batch-panel .status-badge.live::before {
  content: none;
}
#batch-panel .status-badge.failed,
#batch-panel .status-badge.action-required {
  color: var(--ink);
  border-color: var(--muted);
  background: transparent;
}
#batch-panel .batch-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.1s ease-in-out infinite;
}
#batch-panel .batch-cancel-item {
  min-height: 36px;
  padding: 0 14px;
}
#batch-panel .batch-panel-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  align-items: center;
}
#batch-panel .batch-panel-actions .primary-button {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
}
#batch-panel .batch-panel-actions .batch-add-recording-button {
  min-height: 46px;
  padding: 0 20px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: none;
  color: var(--ink);
  font: 700 13px/1 "DM Sans", sans-serif;
}
#batch-panel .batch-panel-actions .batch-add-recording-button::before {
  background: var(--coral);
  color: var(--surface);
  box-shadow: none;
}
#batch-panel .batch-panel-actions .batch-add-recording-button:hover:not(:disabled) {
  transform: none;
  border-color: var(--muted);
  box-shadow: none;
}
#batch-panel .batch-panel-actions .batch-add-recording-button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
#batch-panel .job-error {
  margin-top: 6px;
  font-size: 12px;
  color: color-mix(in srgb, #d6402c 55%, var(--ink));
}
@media (prefers-reduced-motion: reduce) {
  #batch-panel .batch-status-dot { animation: none; }
  #batch-panel .batch-overall span { transition: none; }
}
@media (max-width: 640px) {
  #batch-panel {
    padding: 18px 16px 16px;
    border-radius: 22px;
  }
  #batch-panel .batch-cancel-all {
    width: 100%;
    justify-content: center;
  }
  #batch-panel .batch-file-row {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas: "idx main" ". act";
    align-items: start;
    gap: 10px 12px;
    padding: 14px;
  }
  #batch-panel .batch-file-index {
    grid-area: idx;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 12px;
  }
  #batch-panel .batch-file-main { grid-area: main; }
  #batch-panel .batch-file-row .job-actions {
    grid-area: act;
    justify-content: flex-start;
  }
  #batch-panel .batch-cancel-item {
    min-height: 44px;
  }
  #batch-panel .batch-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #batch-panel .batch-panel-actions .primary-button,
  #batch-panel .batch-panel-actions .batch-add-recording-button {
    width: 100%;
    min-height: 48px;
  }
}


/* Conversion quality and two-page acquisition diagnostics, admin-only. */
#analytics-traffic-trends .admin-outcomes {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface-soft);
}
#analytics-traffic-trends .admin-outcomes h3 {
  font-size: 1.05rem;
  margin: 0 0 7px;
}
#analytics-traffic-trends .admin-outcomes h4 {
  font-size: .9rem;
  margin: 20px 0 10px;
}
#analytics-traffic-trends .admin-outcome-stats,
#analytics-traffic-trends .admin-outcome-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#analytics-traffic-trends .admin-outcome-stats > div,
#analytics-traffic-trends .admin-outcome-focus-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
}
#analytics-traffic-trends .admin-outcome-stats strong,
#analytics-traffic-trends .admin-outcome-stats span {
  display: block;
}
#analytics-traffic-trends .admin-outcome-stats strong {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
#analytics-traffic-trends .admin-outcome-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .77rem;
}
#analytics-traffic-trends .admin-outcome-focus-card p {
  margin: 8px 0;
  line-height: 1.4;
  font-size: .8rem;
}
#analytics-traffic-trends .admin-outcome-focus-label {
  display: block;
  color: #9e6117;
  font-weight: 700;
  font-size: .77rem;
  margin-top: 6px;
}
#analytics-traffic-trends .admin-outcome-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#analytics-traffic-trends .admin-outcome-source {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: .73rem;
}
#analytics-traffic-trends .admin-outcome-warning {
  color: #963c2d;
  font-weight: 750;
}
#analytics-traffic-trends .admin-outcome-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
#analytics-traffic-trends .admin-outcome-table {
  min-width: 950px;
}
#analytics-traffic-trends .admin-outcome-table td,
#analytics-traffic-trends .admin-outcome-table th {
  padding: 9px 10px;
  line-height: 1.35;
}
#analytics-traffic-trends .admin-outcome-table td {
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] #analytics-traffic-trends .admin-outcome-focus-label {
  color: #f6c47a;
}
@media (max-width: 750px) {
  #analytics-traffic-trends .admin-outcomes {padding: 12px;}
  #analytics-traffic-trends .admin-outcome-stats,
  #analytics-traffic-trends .admin-outcome-focus-grid {
    grid-template-columns: 1fr;
  }
}


/* Speaker-label buyer comparison: prose cells, rather than numeric scores. */
/* The table remains natively horizontally scrollable and keyboard-focusable. */
.public-transcript:has(#speaker-tools-comparison) .lp-compare {
  min-width: 900px;
}
.public-transcript:has(#speaker-tools-comparison) .lp-compare th,
.public-transcript:has(#speaker-tools-comparison) .lp-compare td {
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.public-transcript:has(#speaker-tools-comparison) .lp-compare th:first-child,
.public-transcript:has(#speaker-tools-comparison) .lp-compare td:first-child {
  min-width: 115px;
}

/* One contextual next-transcription experiment across YouTube/SoundCloud. */
.next-transcription-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  max-width: 680px;
}
.next-transcription-card h4 { margin: 0 0 7px; font-size: 15px; }
.next-transcription-card > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.next-transcription-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.next-transcription-platform {
  padding: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.next-transcription-platform h5 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 700;
}
.next-transcription-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.next-transcription-actions .ghost-button {
  width: 100%;
  white-space: normal;
  text-align: left;
  min-height: 40px;
}
.next-transcription-card .next-transcription-note {
  margin: 11px 0 0;
  font-size: 12px;
}
@media (max-width: 560px) {
  .next-transcription-platforms { grid-template-columns: 1fr; }
}

/* 2026-10-18: evidence-first content limited to four canonical buyer pages.
   The on-page IDs scope mobile upload changes to Audio and Lecture only. */
.lp-buyer-recording {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin: 14px 0 20px;
  align-items: stretch;
}
.lp-buyer-recording-player, .lp-buyer-recording-transcript {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.lp-buyer-recording-player > strong, .lp-buyer-recording-transcript > strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}
.lp-buyer-recording audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
}
.lp-buyer-summary .lp-buyer-quote {
  margin: 12px 0 6px;
  font-size: 14px;
  line-height: 1.6;
}
.lp-buyer-quote time {
  display: block;
  font: 700 12px/1.5 "DM Sans", sans-serif;
  color: var(--green);
  margin-bottom: 4px;
}
.lp-buyer-recording .lp-buyer-fine {
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
}
.lp-buyer-recording a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 720px) {
  .lp-buyer-recording { grid-template-columns: minmax(0, 1fr); }
}
/* Two audio-file converter landings: make the actual upload submit visible
   on first mobile view without hiding legally relevant size/plan notes. */
@media (max-width: 600px) {
  body:has(#competitive-audio-proof) .lp-hero--tool,
  body:has(#competitive-lecture-proof) .lp-hero--tool {
    padding: 10px 0 20px;
    gap: 8px;
  }
  body:has(#competitive-audio-proof) .lp-hero--tool h1,
  body:has(#competitive-lecture-proof) .lp-hero--tool h1 {
    font-size: clamp(28px, 7.7vw, 36px);
    line-height: 1.10;
    margin: 5px 0;
  }
  body:has(#competitive-audio-proof) .lp-hero-copy > .public-meta,
  body:has(#competitive-lecture-proof) .lp-hero-copy > .public-meta {
    font-size: 13px;
    line-height: 1.42;
  }
  body:has(#competitive-audio-proof) .lp-trust-row,
  body:has(#competitive-lecture-proof) .lp-trust-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 7px;
  }
  body:has(#competitive-audio-proof) .lp-trust-row > span:not(:first-child),
  body:has(#competitive-lecture-proof) .lp-trust-row > span:not(:first-child) {
    display: none;
  }
  body:has(#competitive-audio-proof) .lp-action-card,
  body:has(#competitive-lecture-proof) .lp-action-card {
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
  }
  body:has(#competitive-audio-proof) .lp-card-heading,
  body:has(#competitive-lecture-proof) .lp-card-heading {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    margin: 0;
  }
  body:has(#competitive-audio-proof) .lp-file-picker,
  body:has(#competitive-lecture-proof) .lp-file-picker {
    min-height: 54px;
    padding: 8px 12px;
  }
  body:has(#competitive-audio-proof) .lp-action-card input[type="file"],
  body:has(#competitive-lecture-proof) .lp-action-card input[type="file"] {
    top: 35px;
    left: 12px;
    width: calc(100% - 24px);
    height: 54px;
  }
  body:has(#competitive-audio-proof) .lp-upload-submit,
  body:has(#competitive-lecture-proof) .lp-upload-submit {
    min-height: 52px;
  }
  body:has(#competitive-audio-proof) .lp-action-note,
  body:has(#competitive-lecture-proof) .lp-action-note {
    font-size: 11px;
    line-height: 1.35;
  }
}


/* Oct 18, GSC six-page wave: shorter first-use path on the three functional
   source/audio converters. Only their final buyer IDs opt in; other SEO
   pages (including prior four winners) retain unchanged desktop/mobile UX. */
@media (max-width: 600px) {
  body:has(#gsc-six-webinar) .lp-hero--tool,
  body:has(#gsc-six-wav) .lp-hero--tool,
  body:has(#gsc-six-spotify) .lp-hero--tool {
    padding: 10px 0 18px;
    gap: 8px;
  }
  body:has(#gsc-six-webinar) .lp-hero--tool h1,
  body:has(#gsc-six-wav) .lp-hero--tool h1,
  body:has(#gsc-six-spotify) .lp-hero--tool h1 {
    font-size: clamp(28px, 7.7vw, 36px);
    line-height: 1.1;
    margin: 5px 0;
  }
  body:has(#gsc-six-webinar) .lp-hero-copy > .public-meta,
  body:has(#gsc-six-wav) .lp-hero-copy > .public-meta,
  body:has(#gsc-six-spotify) .lp-hero-copy > .public-meta {
    font-size: 13px;
    line-height: 1.42;
  }
  body:has(#gsc-six-webinar) .lp-trust-row,
  body:has(#gsc-six-wav) .lp-trust-row,
  body:has(#gsc-six-spotify) .lp-trust-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 7px;
  }
  body:has(#gsc-six-webinar) .lp-trust-row > span:not(:first-child),
  body:has(#gsc-six-wav) .lp-trust-row > span:not(:first-child),
  body:has(#gsc-six-spotify) .lp-trust-row > span:not(:first-child) {
    display: none;
  }
  body:has(#gsc-six-webinar) .lp-action-card,
  body:has(#gsc-six-wav) .lp-action-card,
  body:has(#gsc-six-spotify) .lp-action-card {
    padding: 12px;
    border-radius: 16px;
    gap: 7px;
  }
  body:has(#gsc-six-webinar) .lp-file-picker,
  body:has(#gsc-six-wav) .lp-file-picker {
    min-height: 54px;
    padding: 8px 12px;
  }
  body:has(#gsc-six-webinar) .lp-upload-submit,
  body:has(#gsc-six-wav) .lp-upload-submit,
  body:has(#gsc-six-spotify) .lp-action-card button[type="submit"] {
    min-height: 52px;
  }
}
/* Keep decision cards and referenced limits readable on narrow screens. */
@media (max-width: 720px) {
  [id^="gsc-six-"].lp-buyer-summary .lp-buyer-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  [id^="gsc-six-"].lp-buyer-summary {
    overflow-wrap: anywhere;
  }
}


/* Keep the existing authoritative Sonix comparison as the only buyer summary;
   the two added usage scenarios are supplementary, not another comparison. */
#gsc-six-sonix .lp-six-case {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
#gsc-six-sonix .lp-six-case h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
#gsc-six-sonix .lp-six-case p {
  margin: 0;
}

/* Primary buyer file-picker CTA: retain accessible native button behavior. */
.lp-buyer-secondary[data-landing-file-trigger] {
  font: inherit;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.lp-buyer-secondary[data-landing-file-trigger]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Wave 29 post-launch: the batch workflow is not the single-video demo.
   Keep the first action within short mobile viewports, without touching other
   interactive landings or hiding the paid-import requirement. */
.lp-playlist-demo {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3.4vw, 34px);
  align-items: center;
  margin: 26px 0 45px;
}
.lp-playlist-demo-intro > p { max-width: 51ch; }
.lp-playlist-demo-surface {
  min-width: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(14px, 2.2vw, 24px);
  box-shadow: var(--shadow);
}
.lp-playlist-demo-top { display: flex; flex-wrap: wrap; gap: 7px; justify-content: space-between; }
.lp-playlist-demo-top span { color: var(--muted); font-size: 12px; }
.lp-playlist-demo-rows { margin: 15px 0; padding: 0; list-style: none; }
.lp-playlist-demo-row {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.lp-playlist-demo-name { overflow-wrap: anywhere; }
.lp-playlist-demo-mark { color: var(--green); }
.lp-playlist-demo-duration, .lp-playlist-demo-state { font-size: 11px; color: var(--muted); }
.lp-playlist-demo-summary { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.lp-playlist-workflow ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 15px;
  padding-left: 27px;
}
.lp-playlist-workflow li { padding: 0 8px 6px 3px; }
.lp-playlist-workflow h3 { font-size: 16px; margin: 0 0 6px; }
.lp-playlist-workflow p { margin: 0; }
.lp-playlist-facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin: 19px 0;
}
.lp-playlist-facts dl > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-soft);
}
.lp-playlist-facts dt { color: var(--muted); font-size: 12px; }
.lp-playlist-facts dd { margin: 6px 0 0; color: var(--ink); font-size: clamp(15px, 1.8vw, 21px); font-weight: 700; }

@media (max-width: 760px) {
  .lp-playlist-demo { grid-template-columns: 1fr; }
  .lp-playlist-facts dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .public-page--tool .lp-hero--playlist.lp-hero--tool {
    gap: 8px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 18px;
  }
  .public-page .public-transcript .lp-hero--playlist h1 {
    margin: 4px 0 6px;
    font-size: clamp(28px, 8.4vw, 36px);
    line-height: 1.07;
    letter-spacing: -.035em;
  }
  .lp-hero--playlist .lp-eyebrow { font-size: 10px; margin-bottom: 3px; }
  .lp-hero--playlist .lp-hero-copy > .public-meta {
    font-size: 12px;
    line-height: 1.35;
  }
  .lp-hero--playlist .lp-trust-row {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 5px;
    margin-top: 7px;
  }
  .lp-hero--playlist .lp-trust-row span {
    grid-column: auto;
    min-height: 0;
    padding: 5px 6px;
    font-size: 10px;
    line-height: 1.15;
  }
  .lp-hero--playlist .lp-trust-row span:last-child { display: none; }
  .lp-hero--playlist .lp-action-card {
    padding: 9px 11px;
    gap: 6px;
    border-radius: 16px;
  }
  .lp-hero--playlist .lp-card-heading { flex-direction: row; align-items: center; gap: 8px; }
  .lp-hero--playlist .lp-card-heading span { display: none; }
  .lp-hero--playlist .lp-input-row { gap: 6px; }
  .lp-hero--playlist .lp-url-input { min-height: 46px; padding: 7px 9px; }
  .lp-hero--playlist .lp-input-row button { min-height: 48px; padding: 8px 12px; }
  .lp-hero--playlist .lp-action-note { margin: 0; font-size: 10px; line-height: 1.25; }
  .lp-playlist-workflow ol { grid-template-columns: 1fr; gap: 14px; }
  .lp-playlist-demo-row { grid-template-columns: 14px minmax(0,1fr) auto; gap: 6px; }
  .lp-playlist-demo-state { grid-column: 2 / -1; }
}

/* Wave 30: two narrowly scoped buyer workflow examples and real limits. */
.lp-wave30-example {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(16px,3vw,32px);
  align-items: center;
  margin: 24px 0 40px;
}
.lp-wave30-example-copy, .lp-wave30-sample { min-width: 0; }
.lp-wave30-example-copy > p { max-width: 59ch; }
.lp-wave30-sample {
  padding: clamp(14px,2.5vw,24px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lp-wave30-sample > p {
  display: flex; flex-wrap: wrap; gap: 9px;
  align-items: center; justify-content: space-between; margin: 0 0 14px;
}
.lp-wave30-sample > p span { color: var(--muted); font-size: 12px; }
.lp-wave30-sample ol { padding: 0; margin: 0; list-style: none; }
.lp-wave30-sample-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.lp-wave30-sample-row strong { min-width: 0; overflow-wrap: anywhere; }
.lp-wave30-sample-row span,.lp-wave30-sample-row small { color: var(--muted); font-size: 12px; }
.lp-wave30-workflow ol {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px 24px; padding-left: 26px;
}
.lp-wave30-workflow li { min-width: 0; padding-left: 5px; }
.lp-wave30-workflow h3 { margin: 0 0 5px; font-size: 17px; }
.lp-wave30-workflow p { margin: 0; }
.lp-wave30-fact-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px;
  margin: 15px 0 14px;
}
.lp-wave30-fact-grid > div {
  min-width: 0; border: 1px solid var(--line); border-radius: 13px;
  padding: 14px; background: var(--surface-soft);
  display: flex; flex-direction: column; gap: 5px;
}
.lp-wave30-fact-grid small, .lp-wave30-fact-grid span { color: var(--muted); font-size: 12px; }
.lp-wave30-fact-grid strong { font-size: clamp(15px,1.8vw,21px); }
@media (max-width: 760px) {
  .lp-wave30-example { grid-template-columns: 1fr; }
  .lp-wave30-fact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lp-wave30-workflow ol { grid-template-columns: 1fr; }
  .lp-wave30-sample-row { grid-template-columns: 1fr auto; gap: 6px; }
  .lp-wave30-sample-row small { grid-column: 1 / -1; }
  .lp-hero--wave30 .lp-trust-row span { padding: 4px 6px; }
  .lp-hero--wave30 .lp-action-note { margin: 0; font-size: 10px; line-height: 1.25; }
  .lp-hero--wave30 .lp-action-card { gap: 5px; }
}

/* Native Show Notes output from completed authenticated transcripts. */
.show-notes-dialog {
  width: min(780px, calc(100vw - 24px));
  max-height: min(85dvh, 900px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--line, #ddd);
  border-radius: 18px;
  color: var(--ink, #202529);
  background: var(--surface, #fff);
  box-shadow: 0 24px 90px rgba(0,0,0,.35);
}
.show-notes-dialog::backdrop { background: rgba(12,18,24,.7); }
.show-notes-dialog-inner { padding: clamp(14px,3vw,25px); }
.show-notes-dialog-head { display:flex; align-items:start; gap:14px; justify-content:space-between; }
.show-notes-dialog-head h2 { margin:0; font-size:1.32rem; }
.show-notes-context { overflow-wrap:anywhere; color:var(--muted,#667085); margin:10px 0; }
.show-notes-status { min-height:1.5em; }
.show-notes-content {
  white-space:pre-wrap; overflow-wrap:anywhere; max-height:45dvh; overflow-y:auto;
  border:1px solid var(--line, #ddd); border-radius:12px; padding:14px;
  background:var(--surface-soft,#f7f7f7); font:inherit; line-height:1.5;
}
.show-notes-dialog-actions { display:flex; gap:9px; flex-wrap:wrap; }
.show-notes-verify { font-size:.85rem; color:var(--muted,#667085); }


/* Channel preview account quota visibility. */
.channel-capacity-note { display:block; margin-top:8px; font-size:13px; line-height:1.5; }
.channel-upgrade-premium { display:inline-flex; margin:8px 0 0; padding:8px; font-weight:600; }

/* Fictional, non-networked Wave 30 product demonstrations. */
.lp-wave30-sample-select { display:flex; gap:9px; align-items:center; cursor:pointer; min-width:0; }
.lp-wave30-sample-select input { flex:0 0 auto; width:16px; height:16px; accent-color:var(--accent,#4d74ee); }
.lp-wave30-sample-select:has(input:disabled) { cursor:not-allowed; opacity:.65; }
.lp-wave30-demo-note, .lp-wave30-demo-status { font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.lp-wave30-demo-status { font-weight:700; margin:15px 0 7px; }
.lp-wave30-demo-note { color:var(--muted); margin:0; }
.lp-wave30-demo-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.lp-wave30-demo-tabs button { cursor:pointer; border:1px solid var(--line); border-radius:8px;
  padding:7px 11px; background:var(--surface-soft); color:inherit; font:inherit; font-size:13px; }
.lp-wave30-demo-tabs button[aria-selected="true"] { border-color:var(--accent,#4d74ee); font-weight:700; }
.lp-wave30-demo-tabs button:focus-visible, .lp-wave30-sample-select input:focus-visible,
.lp-wave30-demo-actions button:focus-visible { outline:2px solid var(--accent,#4d74ee); outline-offset:3px; }
.lp-wave30-demo-output { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:13px;
  line-height:1.5; max-height:195px; overflow-y:auto; padding:10px; margin:9px 0;
  background:var(--surface-soft); border:1px solid var(--line); border-radius:9px; }
.lp-wave30-demo-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.lp-wave30-demo-actions [data-wave30-copy-status] { font-size:12px; color:var(--muted); }


/* October 19: mobile-first first-action path on only two new quick-tool pages.
   The signed-in Free vs guest disclosure remains visible inside the form. */
@media (max-width: 600px) {
  body.public-pilot-quick .lp-hero--tool { padding: 8px 0 14px; gap: 6px; }
  body.public-pilot-quick .lp-hero--tool h1 {
    font-size: clamp(25px, 7.3vw, 32px); line-height: 1.09; margin: 2px 0;
  }
  body.public-pilot-quick .lp-hero-copy > .public-meta {
    font-size: 12px; line-height: 1.34; margin: 4px 0;
  }
  body.public-pilot-quick .lp-hero--tool .lp-eyebrow {
    font-size: 10px; margin: 0;
  }
  body.public-pilot-quick .lp-trust-row {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 0; margin: 4px 0 0;
  }
  body.public-pilot-quick .lp-trust-row > span:not(:first-child) { display: none; }
  body.public-pilot-quick .lp-trust-row > span { padding: 4px 7px; }
  body.public-pilot-quick .lp-action-card {
    gap: 5px; padding: 10px; border-radius: 15px;
  }
  body.public-pilot-quick .lp-card-heading {
    flex-direction: row; align-items: center; gap: 5px; margin: 0;
  }
  body.public-pilot-quick .lp-card-heading span { font-size: 10px; }
  body.public-pilot-quick .lp-file-picker { min-height: 48px; padding: 8px 10px; }
  body.public-pilot-quick .lp-action-card input[type="file"] {
    top: 35px; left: 10px; width: calc(100% - 20px); height: 48px;
  }
  body.public-pilot-quick .lp-input-row { gap: 5px; }
  body.public-pilot-quick .lp-url-input { min-height: 45px; padding: 7px 10px; }
  body.public-pilot-quick .lp-upload-submit,
  body.public-pilot-quick .lp-input-row button[type="submit"] {
    min-height: 47px; padding: 9px 11px;
  }
  body.public-pilot-quick .lp-action-note {
    margin: 0; font-size: 10px; line-height: 1.3;
  }
}

/* ---- UI polish: transcript actions, locked Premium Pro trial, free demo limit ----
   One pill scale for the transcript action row, a warning-toned locked-trial card,
   and a demo-limit card with a single clear primary sign-in action. Scoped to these
   components only. */
.job-actions > .ghost-button,
.job-actions > .result-primary-action,
.job-actions .download-menu-toggle,
.job-actions .ai-provider-job {
  height: 40px;
  min-height: 40px;
  padding-block: 0;
  padding-inline: 16px;
  box-sizing: border-box;
  border-radius: 999px;
  font: 600 13px "DM Sans", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.job-actions .report-job {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding-inline: 12px;
}
.job-actions .report-job:hover { color: var(--ink); border-color: var(--line); }

.quota-upgrade[data-premium-block-type="trial_cancelled"] {
  padding: 20px 22px;
  gap: 16px 24px;
  border-radius: 20px;
  border-color: rgba(167, 68, 53, .30);
  background: #fff6f3;
}
.quota-upgrade[data-premium-block-type="trial_cancelled"] .quota-kicker { color: #a74435; letter-spacing: .12em; }
.quota-upgrade[data-premium-block-type="trial_cancelled"] h4 { color: #a74435; font-size: 19px; }
.quota-upgrade[data-premium-block-type="trial_cancelled"] .primary-button {
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  white-space: nowrap;
}
:where(html[data-theme="dark"]) .quota-upgrade[data-premium-block-type="trial_cancelled"] { border-color: rgba(240, 138, 110, .35); background: #211a18; }
:where(html[data-theme="dark"]) .quota-upgrade[data-premium-block-type="trial_cancelled"] .quota-kicker,
:where(html[data-theme="dark"]) .quota-upgrade[data-premium-block-type="trial_cancelled"] h4 { color: #f8a58f; }
:where(html[data-theme="dark"]) .quota-upgrade[data-premium-block-type="trial_cancelled"] .primary-button { background: #f4f4f5; color: #111113; }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .quota-upgrade[data-premium-block-type="trial_cancelled"] { border-color: rgba(240, 138, 110, .35); background: #211a18; }
  :where(html:not([data-theme="light"])) .quota-upgrade[data-premium-block-type="trial_cancelled"] .quota-kicker,
  :where(html:not([data-theme="light"])) .quota-upgrade[data-premium-block-type="trial_cancelled"] h4 { color: #f8a58f; }
  :where(html:not([data-theme="light"])) .quota-upgrade[data-premium-block-type="trial_cancelled"] .primary-button { background: #f4f4f5; color: #111113; }
}

.job-focus[data-state="terminal"] .job-thumb:empty {
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.demo-cta-actions .demo-provider-button,
.demo-cta-actions .ghost-button,
.demo-cta-actions .primary-button {
  height: 42px;
  border-radius: 999px;
}
.demo-cta-actions .demo-provider-button[data-demo-provider="google"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.demo-cta-actions .demo-provider-button[data-demo-provider="google"]:hover { background: var(--ink); opacity: .9; }

/* ---- Result actions: four groups and a footer ----
   1 main (View, Copy)  2 tools  3 ask an AI (one strip)  4 share box  + footer.
   Every group is a full-width row of its own, so the card reads top to bottom. */
.job-actions .ui-icon { flex: 0 0 auto; display: block; }
.job-actions > .job-action-primary,
.job-actions > .job-action-tools,
.job-actions > .job-action-ai,
.job-actions > .job-action-share,
.job-actions > .job-action-footer,
.job-actions > .share-link-panel { flex: 1 0 100%; min-width: 0; }
.result-job-actions { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px; }
.job-actions > .job-action-primary,
.job-actions > .job-action-tools,
.job-actions > .job-action-ai,
.job-actions > .job-action-share { margin-top: 4px; }
.job-action-caption {
  display: block;
  color: var(--muted);
  font: 700 11px "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* 1 - View and Copy: the two actions people reach for first, two equal halves. */
.job-action-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.job-action-primary > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  min-height: 54px;
  padding: 0 24px;
  box-sizing: border-box;
  border-radius: 999px;
  font: 700 16px "DM Sans", sans-serif;
}
.job-action-primary > .ghost-button { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
:where(html[data-theme="dark"]) .job-action-primary > .view-job { border-color: #f4f4f5; background: #f4f4f5; color: #111113; }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .job-action-primary > .view-job { border-color: #f4f4f5; background: #f4f4f5; color: #111113; }
}

/* 2 - Tools: one row of equal pills. */
.job-action-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.job-action-tools .ghost-button,
.job-action-tools .download-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 999px;
  font: 600 14px "DM Sans", sans-serif;
  white-space: nowrap;
}

/* 3 - Ask AI: a caption and one joined strip (Ask AI + the three assistants). */
.job-action-ai { display: flex; flex-direction: column; gap: 8px; }
.job-action-ai .ai-provider-actions {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.job-action-ai .ai-provider-actions > .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  font: 600 14px "DM Sans", sans-serif;
  white-space: nowrap;
}
.job-action-ai .ai-provider-actions > .ghost-button:first-child { border-left: 0; }
@media (max-width: 560px) {
  .job-action-ai .ai-provider-actions {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    border-radius: 16px;
  }
  .job-action-ai .ai-provider-actions > .ghost-button { height: 48px; border-left: 0; border-top: 1px solid var(--line); }
  .job-action-ai .ai-provider-actions > .ghost-button:nth-child(-n+2) { border-top: 0; }
  .job-action-ai .ai-provider-actions > .ghost-button:nth-child(even) { border-left: 1px solid var(--line); }
}

/* 4 - Share box: the note, then the Share button, or the link and Copy link once it exists. */
.job-action-share {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}
.job-action-share-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font: 500 13px/1.5 "DM Sans", sans-serif;
}
.job-action-share-row { display: flex; gap: 8px; min-width: 0; }
.job-action-share-row > .share-job { height: 44px; padding: 0 18px; border-radius: 999px; font: 600 14px "DM Sans", sans-serif; display: inline-flex; align-items: center; gap: 8px; }
.job-action-share-row > .share-job[hidden] { display: none; }
.share-link-panel { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.share-link-panel-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.share-link-panel input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 14px "DM Sans", sans-serif;
  text-overflow: ellipsis;
}
.share-link-panel input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.share-link-panel .share-copy-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 14px "DM Sans", sans-serif;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .job-action-share-row { flex-direction: column; }
  .share-link-panel-row { flex-direction: column; align-items: stretch; }
}

/* Footer: privacy note on the left, Report an issue on the right. */
.job-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.job-action-footer .result-whisper-credit {
  margin: 0;
  gap: 8px;
  color: var(--muted);
  font: 500 13px "DM Sans", sans-serif;
}
.job-action-footer .report-job { margin-left: auto; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font: 600 14px "DM Sans", sans-serif; }

/* ---- Locked Premium Pro trial: lock icon in a tinted circle ---- */
.quota-upgrade--locked {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
}
.quota-upgrade--locked .quota-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #a74435;
  background: rgba(167, 68, 53, .12);
}
:where(html[data-theme="dark"]) .quota-upgrade--locked .quota-lock { color: #f08a6e; background: rgba(240, 138, 110, .14); }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .quota-upgrade--locked .quota-lock { color: #f08a6e; background: rgba(240, 138, 110, .14); }
}
@media (max-width: 760px) {
  .quota-upgrade--locked { grid-template-columns: 40px minmax(0, 1fr); }
  .quota-upgrade--locked .quota-cta { grid-column: 1 / -1; align-items: stretch; min-width: 0; }
}

/* ---- Demo limit: green label that is readable, placeholder tile instead of a grey box ---- */
.job-focus .demo-badge {
  color: #1b6b45;
  background: rgba(31, 157, 108, .12);
  letter-spacing: .08em;
}
:where(html[data-theme="dark"]) .job-focus .demo-badge { color: #6ee7a0; background: rgba(74, 222, 128, .12); }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .job-focus .demo-badge { color: #6ee7a0; background: rgba(74, 222, 128, .12); }
}
/* Demo limit card: one column - label, headline, facts, actions. */
.demo-limit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
}
.demo-limit-card .demo-badge { margin: 0; }
.demo-limit-copy h3 { margin: 0; font: 700 26px/1.3 "Manrope", sans-serif; }
.demo-limit-lead { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.demo-limit-facts { display: flex; flex-direction: column; gap: 10px; }
.demo-limit-facts ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.demo-limit-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
}
.demo-limit-facts li .ui-icon { color: #1b6b45; }
:where(html[data-theme="dark"]) .demo-limit-facts li .ui-icon { color: #6ee7a0; }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .demo-limit-facts li .ui-icon { color: #6ee7a0; }
}
.demo-limit-card .demo-cta-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.demo-limit-card .demo-cta-actions .demo-provider-button {
  width: auto;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 15px "DM Sans", sans-serif;
}
.demo-limit-card .demo-cta-actions .demo-signup {
  width: auto;
  height: 52px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 15px "DM Sans", sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-limit-card .demo-cta-actions .demo-signup:hover { color: var(--ink); }
@media (max-width: 560px) {
  .demo-limit-card { padding: 24px 20px; }
  .demo-limit-card .demo-cta-actions { flex-direction: column; align-items: stretch; }
  .demo-limit-card .demo-cta-actions .demo-provider-button,
  .demo-limit-card .demo-cta-actions .demo-signup { width: 100%; }
}

/* ---- Shared transcript page: one line per paragraph so selection copies cleanly ----
   The timestamp and text sit in one text flow ("00:00 Welcome..."), with a hanging
   indent so wrapped lines stay aligned under the text instead of a grid column. */
.public-copy--lines p {
  display: block;
  padding: 18px 0 18px 80px;
  text-indent: -80px;
}
.public-copy--lines p .transcript-time {
  display: inline-block;
  min-width: 62px;
  margin-right: 14px; /* plus the real space character = the 80px hanging indent */
  text-indent: 0;
}
@media (max-width: 760px) {
  .public-copy--lines p { padding-left: 0; text-indent: 0; }
  .public-copy--lines p .transcript-time { display: block; margin: 0 0 4px; }
}

/* ---- Library and batch rows: one line of actions, menus for the rest ----
   View and Copy stay visible; Download, Ask AI and More open small menus. */
.job-row .job-actions { max-width: none; }
.job-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.job-row-actions > .result-primary-action,
.job-row-actions > .copy-job {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  box-sizing: border-box;
  border-radius: 999px;
  font: 700 15px "DM Sans", sans-serif;
}
.job-row-actions > .result-primary-action { padding: 0 22px; }
.job-row-actions > .copy-job { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
:where(html[data-theme="dark"]) .job-row-actions > .result-primary-action { border-color: #f4f4f5; background: #f4f4f5; color: #111113; }
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .job-row-actions > .result-primary-action { border-color: #f4f4f5; background: #f4f4f5; color: #111113; }
}
.job-row-actions .download-menu-toggle,
.job-row-actions .row-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 16px;
  box-sizing: border-box;
  border-radius: 999px;
  font: 600 14px "DM Sans", sans-serif;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.row-menu-toggle::-webkit-details-marker { display: none; }
.row-menu { position: relative; display: inline-block; }
.row-menu-chevron { color: var(--muted); transition: transform .16s ease; }
.row-menu[open] .row-menu-chevron { transform: rotate(180deg); }
.row-menu[open] > .row-menu-toggle,
.job-row-actions .download-menu[open] > .download-menu-toggle { border-color: var(--ink); background: var(--surface-soft); }
.job-row-actions .row-menu-icon { width: 44px; padding: 0; justify-content: center; }
.row-menu-more-label { display: none; }
.job-row-actions .download-menu-list { left: auto; right: 0; }
.row-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 288px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}
.row-menu-more .row-menu-list { width: 312px; }
.row-menu-list .job-action-caption { padding: 8px 12px 6px; }
.row-menu-list .ai-provider-actions {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  height: auto;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.job-row-actions .row-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* .ai-provider-job centres its content; menu items align left */
  gap: 12px;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 0 12px;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 600 14px "DM Sans", sans-serif;
  white-space: normal;
  cursor: pointer;
}
.job-row-actions .row-menu-item:hover,
.job-row-actions .row-menu-item:focus-visible { background: var(--surface-soft); }
.row-menu-item .ui-icon,
.row-menu-item img,
.row-menu-item svg { flex: 0 0 auto; width: 18px; height: 18px; }
.row-menu-item-text { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.row-menu-item small { color: var(--muted); font-size: 12px; font-weight: 500; }
.job-row-actions .row-menu-quiet { color: var(--muted); }
.row-menu-divider { display: block; height: 1px; margin: 6px 4px; background: var(--line); }
.row-menu-list.is-sharing > :not(.share-link-panel) { display: none; }
.row-menu-more .row-menu-list.is-sharing { width: 400px; }
.row-menu-list .share-link-panel { gap: 8px; padding: 8px; }
.share-link-panel-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font: 600 14px "DM Sans", sans-serif; }
.share-link-panel-note { margin: 0; padding-left: 24px; color: var(--muted); font: 500 13px/1.5 "DM Sans", sans-serif; }
@media (max-width: 1100px) {
  .job-row .job-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .job-row-actions { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-content: stretch; }
  .job-row-actions > .result-primary-action,
  .job-row-actions > .copy-job { grid-column: span 3; height: 48px; padding: 0 12px; }
  .job-row-actions > .download-menu,
  .job-row-actions > .row-menu { grid-column: span 2; position: static; display: block; }
  .job-row-actions .download-menu-toggle,
  .job-row-actions .row-menu-toggle { width: 100%; justify-content: center; gap: 6px; padding: 0 8px; font-size: 13px; }
  .job-row-actions .row-menu-icon { width: 100%; }
  .job-row-actions .row-menu-more-label { display: inline; }
  .row-menu-list,
  .row-menu-more .row-menu-list,
  .job-row-actions .download-menu-list { left: 0; right: 0; width: auto; }
}

/* Supplemental links for people with an existing SRT/VTT file.
   Do not restyle the primary speech-transcription CTA. */
.lp-subtitle-followup {
  margin: 1.6rem 0;
  padding: clamp(.9rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.lp-subtitle-followup h2 { margin: 0 0 .5rem; font-size: clamp(1.12rem, 2vw, 1.35rem); }
.lp-subtitle-followup p { margin: 0 0 .9rem; line-height: 1.55; }
.lp-subtitle-followup-links {
  display: flex;
  gap: .65rem 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding-left: 1.2rem;
}
.lp-subtitle-followup-links li { overflow-wrap: anywhere; }
.lp-subtitle-followup-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lp-subtitle-followup-links a:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* Secondary post-download utility, never a substitute for the export link. */
.download-menu-list .subtitle-post-export-link,
.workspace-download-options .subtitle-post-export-link {
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: .65rem .45rem .35rem;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.38;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
}

/* Mobile homepage (<=760px). Colours come from the theme tokens above, so the
   light and dark themes (system preference and the manual toggle) both apply. */
.mobile-menu,
.paste-url-button,
.options-toggle { display: none; }

@media (max-width: 760px) {
  /* Header: brand + account + theme + menu button; links live in the drawer. */
  .nav { height: 60px; }
  .brand { font-size: 18px; }
  .nav nav { gap: 6px; }
  .theme-toggle { width: 40px; height: 40px; }
  .account-button { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .mobile-menu[open] summary { background: var(--surface-soft); }
  .mobile-menu-panel {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    min-height: calc(100vh - 60px);
    min-height: calc(100svh - 60px);
    padding: 8px 16px 24px;
    background: var(--cream);
  }
  .nav nav .mobile-menu-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font: 800 22px "Manrope", sans-serif;
  }
  .nav nav .mobile-menu-panel a::after { content: "\203A"; color: var(--muted); font-weight: 600; }
  .nav nav .mobile-menu-panel .nav-new-badge { margin-right: auto; margin-left: 4px; font-size: 10px; }

  /* Hero */
  .hero { min-height: 0; padding: 24px 0 8px; }
  .hero-layout { gap: 20px; }
  .hero-benefits { display: none; }
  h1 {
    max-width: none;
    margin: 14px 0;
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.05;
  }
  .hero-copy { margin-bottom: 4px; font-size: 15.5px; line-height: 1.5; }
  /* The decorative waveform sits behind the text on a narrow screen and makes
     the headline and copy harder to read, so it is dropped here. */
  .ambient-wave { display: none; }
  /* The global h1 clips its overflow for the shine animation, which cut the
     descender off the "p" in "transcript" at this line height. */
  h1 { overflow: visible; line-height: 1.1; }
  h1::before { display: none; }
  .eyebrow { align-items: flex-start; gap: 8px; font-size: 11px; letter-spacing: .08em; line-height: 1.4; }
  .eyebrow span { flex: none; width: 16px; margin-top: .7em; }
  .card-accent { display: none; }
  .card-heading label { font-size: 15px; }

  /* Transcribe card */
  .transcribe-card { padding: 16px; border-radius: 22px; }
  .card-heading { margin-bottom: 10px; }
  .usage-summary { color: var(--muted); font-size: 12.5px; font-weight: 500; }
  .url-row { gap: 12px; }
  .url-input {
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 14px;
    border-radius: 14px;
  }
  .url-input svg { margin-top: 0; }
  .url-input textarea { min-height: 54px; padding: 8px 0; }
  .url-row .paste-url-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    align-self: center;
    min-width: 0;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--ink);
    background: var(--track);
    font: 700 14px "DM Sans", sans-serif;
  }
  .url-row .paste-url-button::before { display: none; }
  .url-row .paste-url-button:hover { background: var(--track); transform: none; }
  .url-row .paste-url-button[hidden] { display: none; }

  .url-row #submit-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    width: 100%;
    min-height: 56px;
    padding: 8px 16px;
    border-radius: 14px;
  }
  #submit-button .submit-label { font-size: 17px; }
  /* Logo and "Powered by OpenAI Whisper" share one small line under the label. */
  #submit-button .submit-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
  }
  #submit-button .submit-openai-logo { width: 14px; height: 14px; margin: 0; }
  /* With a title the credit line makes way for it. */
  .url-row #submit-button[data-has-title] {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 12px;
    padding: 0 16px;
  }
  .url-row #submit-button[data-has-title] .submit-credit { display: contents; }
  .url-row #submit-button[data-has-title] .submit-credit > span { display: none; }
  .url-row #submit-button[data-has-title] .submit-openai-logo { width: 26px; height: 26px; }
  .url-row #submit-button[data-has-title] .submit-label { grid-column: 2; font-size: 16px; }
  .url-row #submit-button[data-has-title] .submit-title {
    grid-column: 2;
    margin-top: 1px;
    -webkit-line-clamp: 1;
    font-size: 12px;
    line-height: 1.25;
  }
  #submit-button .submit-credit > span,
  #submit-button[data-channel="true"] .submit-credit > span {
    max-width: none;
    text-align: center;
    justify-self: auto;
    font-size: 11.5px;
  }

  .upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
  }
  .upload-row .upload-chosen { grid-column: 1 / -1; }
  .upload-button {
    justify-content: center;
    min-height: 52px;
    padding: 6px 10px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.15;
    text-align: center;
  }
  .cloud-import-row { margin-top: 12px; gap: 6px 10px; }
  .cloud-import-icons a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-soft);
  }
  .cloud-import-icons svg { width: 22px; height: 22px; flex-basis: 22px; }

  .options-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: var(--surface-soft);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
  }
  .options-toggle > svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .options-toggle-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .options-toggle-text b { font-size: 14.5px; }
  .options-toggle-text small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .options-toggle-chevron { color: var(--muted); transition: transform .2s ease; }
  .transcribe-card.options-open .options-toggle-chevron { transform: rotate(90deg); }
  .options-grid { gap: 16px; margin-top: 12px; }
  .transcribe-card:not(.options-open) .options-grid > :not(.privacy-note) { display: none; }
  .options-grid .select-wrap select,
  .options-grid .quality-select-wrap select {
    min-height: 48px;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--input);
    font-size: 16px;
  }
  .options-grid .checkbox-wrap { min-height: 44px; flex-wrap: wrap; }
  .options-grid .checkbox-wrap input { width: 22px; height: 22px; }
  .privacy-note { align-items: flex-start; font-size: 12.5px; line-height: 1.45; }
  .privacy-note svg { flex: none; width: 16px; margin-top: 1px; }

  /* Platforms: one swipeable row instead of a wrapped wall of chips. */
  .platform-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 20px -12px 0;
    padding: 0 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .platform-row::-webkit-scrollbar { display: none; }
  .platform-row > span,
  .platform-row > a {
    flex: none;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px 0 10px;
    color: var(--ink);
    font-size: 14px;
    white-space: nowrap;
  }
  .platform-row > span svg,
  .platform-row > a svg { width: 20px; height: 20px; }
  .supported-sources-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; text-align: left; }
  .trust-row { margin-top: 20px; }

  /* Below the fold */
  .steps-section { padding: 40px 0 44px; }
  .steps-heading h2 { font-size: 28px; }
  .steps-grid { gap: 0; margin-top: 12px; }
  .steps-grid article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .steps-grid article:hover { border-color: var(--line); transform: none; }
  .step-number {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--hero-cta-ink);
    background: var(--hero-cta-bg);
  }
  .steps-grid h2 { margin: 0 0 4px; font-size: 18px; }
  .steps-grid p { font-size: 15px; line-height: 1.5; }
  .history-section { padding: 40px 0 48px; }
  .faq-section { padding: 16px 0 44px; }
  .faq-section h2,
  .money-links-section h2 { font-size: 28px; }
  .faq-item { padding: 0 16px; border-radius: 16px; }
  .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 0;
    font-size: 16px;
  }
  .faq-item summary::after { float: none; flex: none; }
  .money-links-section { padding: 0 0 44px; }
  .money-links-grid { grid-template-columns: 1fr; gap: 8px; }
  .money-links-grid a { min-height: 0; padding: 14px 16px; }
  footer { padding: 28px 0 36px; }
  footer .footer-links { gap: 4px 18px; }
  footer .footer-links a,
  footer .text-button { display: inline-flex; align-items: center; min-height: 36px; }
}


/* Homepage tidy-up: visible borders on the option selects, and a short
   platform row. The full list lives on /supported-sources, which the
   "1,000+ sources" chip links to. */
.options-grid .quality-select-wrap select,
.options-grid label.select-wrap select {
  min-height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background-color: transparent;
  /* Own chevron instead of the browser's cramped arrow stuck to the border. */
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5d5d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px;
  cursor: pointer;
}
:where(html[data-theme="dark"]) .options-grid .quality-select-wrap select,
:where(html[data-theme="dark"]) .options-grid label.select-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b4b4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :where(html:not([data-theme="light"])) .options-grid .quality-select-wrap select,
  :where(html:not([data-theme="light"])) .options-grid label.select-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b4b4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}
/* The longest "Transcript source" option is wider than the select: cut it with an
   ellipsis (the full text shows in the list and in the note below). */
#mode { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-note { display: block; margin-top: 6px; color: var(--muted); font: 500 11px/1.4 "DM Sans", sans-serif; }
/* h1 clips its overflow for the shine animation, which cut the descenders
   (g, p, y) off headlines such as "plans and billing". Leave room for them. */
h1 { padding-bottom: .14em; }
/* Give the hero call-to-action on public pages some air below the lead text. */
.public-transcript .public-meta + .primary-link { margin-top: 20px; }
/* ...and the closing call-to-action, which touched the FAQ answer above it. */
.public-transcript .lp-section + .primary-link { margin-top: 32px; }
/* "Translate to English" shares a row with the Language select: line it up with
   the select box itself, not with the small label above it. */
.options-grid > #translate-wrap { align-self: end; min-height: 44px; }
.platform-row > :nth-child(n+9):not(.platform-more) { display: none; }

/* Registration-led RTL source landing: keep pasted URL left-to-right. */
html[dir="rtl"] .lp-url-input,
html[dir="rtl"] input[type="url"] {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] .lp-hero-copy,
html[dir="rtl"] .lp-section,
html[dir="rtl"] .lp-action-card {
  text-align: right;
}

/* Long social video permalink examples must not overflow 320px viewports. */
.lp-social-url-code {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Verified LongScribe user ratings: shared across homepage and source pages. */
.ls-product-ratings {
  margin-top: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid var(--line, rgba(128, 128, 128, .25));
  border-radius: 18px;
  background: var(--surface-soft, rgba(128, 128, 128, .05));
  text-align: center;
  max-width: 920px;
}
.ls-product-ratings[hidden],
.ls-rating-form[hidden] { display: none !important; }
.ls-product-ratings h2 {
  margin: 0 0 .7rem;
  color: var(--ink, currentColor);
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.ls-rating-overview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.ls-rating-stars {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: .06em;
  background: linear-gradient(to right,
    #e1a52e 0, #e1a52e var(--ls-rating-percent, 0%),
    #a5a5a5 var(--ls-rating-percent, 0%), #a5a5a5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.ls-rating-copy { color: var(--muted, #777); }
.ls-rating-copy strong { color: var(--ink, currentColor); }
.ls-rating-form { margin-top: 1.1rem; }
.ls-rating-form p { margin: .25rem 0 .6rem; color: var(--muted, #777); }
.ls-rating-choices { display: flex; justify-content: center; gap: .25rem; }
.ls-rating-choice {
  border: 0;
  background: transparent;
  color: #9b9b9b;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1.3;
  padding: .15rem;
}
.ls-rating-choice.is-on { color: #e1a52e; }
.ls-rating-choice:focus-visible,
.ls-rating-submit:focus-visible {
  outline: 2px solid #e1a52e;
  outline-offset: 3px;
}
.ls-rating-submit {
  border: 1px solid var(--line, #888);
  color: var(--ink, inherit);
  background: var(--surface, transparent);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  padding: .5rem 1.2rem;
  margin: .65rem .5rem .3rem 0;
}
.ls-rating-submit:disabled { cursor: default; opacity: .55; }
.ls-rating-submit[hidden] { display: none !important; }
#ls-rating-status { display: block; font-size: .9rem; min-height: 1.4em; color: var(--muted, #777); }
