:root {
  color-scheme: light;
  --paper: #eef0f2;
  --surface: #fbfbfc;
  --ink: #353b3c;
  --muted: #595f60;
  --line: #dcdedb;
  --accent: #582630;
  --accent-text: #fff;
  --soft: #f0e5e7;
  --flag: #c39ca4;
  --highlight: #f0e5e7;
  --wine: var(--accent);
  --rose: var(--soft);
  --font: "DM Sans", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1a1d1e;
  --surface: #232728;
  --ink: #eef0f2;
  --muted: #c6c7c4;
  --line: #343a3b;
  --accent: #8e3a4c;
  --accent-text: #fff;
  --soft: #3a2429;
  --flag: #e0a9b4;
  --highlight: #3a2429;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 17px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: "Manrope", var(--font);
  font-weight: 450;
  letter-spacing: -0.055em;
}
h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1.12;
}
h2 {
  font-size: 30px;
  line-height: 1.24;
}
h3 {
  font-size: 18px;
  font-weight: 500;
}
.muted,
.hint {
  color: var(--muted);
  line-height: 1.6;
}
.hint {
  font-size: 16px;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 5px;
  background: var(--surface);
  padding: 12px;
  z-index: 99;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 860px;
  margin: auto;
  padding: 0 32px;
}
.topbar {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  font-family: "Manrope", var(--font);
  font-weight: 650;
  font-size: 24px;
  letter-spacing: -0.6px;
}
.brand-lambda {
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  transform: translateY(-8px) rotate(-7deg);
}
.top-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.text-button {
  background: none;
  border: 0;
  padding: 10px 5px;
  font-size: 16px;
  min-height: 44px;
  color: var(--muted);
}
.text-button:hover,
.text-button.active {
  color: var(--ink);
}
.hero {
  text-align: center;
  max-width: 540px;
  margin: auto;
  padding: 8px 0 52px;
}
.hero-art {
  width: 136px;
  margin: 0 auto 16px;
}
.hero h1 {
  margin: 0 0 17px;
}
.title-underline {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 9px;
  text-underline-offset: 7px;
  text-decoration-skip-ink: none;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 17px 25px;
  background: transparent;
  font-size: 17px;
  min-height: 60px;
}
.choice.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.whatsapp-choice {
  flex-basis: 180px;
}
.whatsapp-choice svg,
.voice-note-action svg {
  color: #25d366;
  width: 24px;
  height: 24px;
}
.library {
  max-width: 640px;
  margin: auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.library-tabs {
  display: flex;
  gap: 12px;
}
.empty {
  color: var(--muted);
  font-size: 16px;
  padding: 18px 0;
}
.note-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: none;
  text-align: left;
}
.note-info {
  flex: 1;
  min-width: 0;
}
.note-row strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.note-row small {
  color: var(--muted);
  font-size: 15px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 0 max(25px, env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--muted);
}
footer .text-button {
  font-size: 14px;
}
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 15px 0 35px;
}
.back {
  border: 0;
  background: none;
  padding: 10px 0;
  margin-bottom: 25px;
  font-size: 17px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.back svg {
  width: 18px;
}
.page > h2 {
  margin: 12px 0;
}
.page > .muted {
  margin: 12px 0 25px;
}
.field {
  display: block;
  margin: 20px 0;
  font-size: 16px;
  font-weight: 500;
}
.field input,
.field textarea,
.field select,
input.input,
textarea.input {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 17px;
  line-height: 1.5;
  margin: 22px 0;
}
.check input {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 52px;
  font-size: 17px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.button.block {
  width: 100%;
}
.button svg {
  width: 20px;
  height: 20px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions > * {
  flex: 1;
}
.banner {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 20px 0;
}
.setup-page {
  min-height: calc(100dvh - 180px);
  display: flex;
  flex-direction: column;
}
.capture-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
  padding: 4px 0 34px;
}
.memory-field {
  display: block;
  width: 100%;
  max-width: 350px;
}
.memory-field input {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  padding: 12px 6px;
  text-align: center;
  font-size: 26px;
  color: var(--ink);
  outline-offset: 4px;
}
.memory-field input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.capture-meta {
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
}
.capture-consent {
  margin: 30px 0 10px;
  font-size: 18px;
}
.record-orb {
  width: 172px;
  height: 172px;
  flex: 0 0 172px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  margin: 0 auto 38px;
  font-family: "Manrope", var(--font);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.12;
  box-shadow: 0 14px 34px -20px color-mix(in srgb, var(--accent) 75%, #000);
}
.record-orb:hover {
  transform: translateY(-2px);
}
.record-orb svg {
  width: 38px;
  height: 38px;
}
.participant-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.participant-dock .hint {
  max-width: 45%;
  font-size: 16px;
}
.add-person {
  font-size: 16px;
  padding: 12px 16px;
}
.recording {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: calc(100dvh - 180px);
  justify-content: center;
  text-align: center;
}
.record-art {
  width: min(290px, 75vw);
  margin: 0 auto 35px;
}
.record-clock {
  display: flex;
  align-items: center;
  gap: 9px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 23px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.record-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #846a6a;
}
.record-dot.paused {
  background: var(--muted);
}
.stop-button {
  min-width: 210px;
  font-size: 18px;
}
.pause-button {
  margin: 10px 0 25px;
}
.recording > .hint {
  font-size: 15px;
}
.listener {
  display: block;
  --face: var(--accent);
  --hand: #8b9095;
  --sound-one: #8756ab;
  --sound-two: #846a6a;
  --sound-three: #c39ca4;
}
.listener > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.listener-face {
  fill: var(--face);
}
.listener-hand {
  fill: var(--hand);
}
.listener-trace {
  fill: none;
  stroke: #8756ab;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.listener-sound {
  fill: var(--sound-one);
  transform-box: view-box;
}
.sound-1 {
  fill: var(--sound-two);
}
.sound-2 {
  fill: var(--sound-three);
}
.is-listening .listener-face {
  animation: face-colors 17s ease-in-out infinite;
}
.is-listening .listener-hand {
  animation: hand-colors 9s ease-in-out infinite;
}
.is-listening .listener-trace {
  animation: face-trace 8.5s ease-in-out infinite;
}
.is-listening .listener-sound {
  animation: incoming 2.6s ease-in-out infinite;
}
.is-listening .sound-0 {
  --dx: 14px;
  --dy: -14px;
  animation-delay: -0.6s;
}
.is-listening .sound-1 {
  --dx: 18px;
  --dy: 4px;
  animation-duration: 2.2s;
  animation-delay: -1.4s;
}
.is-listening .sound-2 {
  --dx: 14px;
  --dy: 14px;
  animation-duration: 3.1s;
  animation-delay: -2s;
}
.contact-copy {
  margin: 16px 0 22px;
}
.contact-primary {
  margin-top: 6px;
}
@keyframes face-colors {
  0%,
  100% {
    fill: #582630;
  }
  35% {
    fill: #8756ab;
  }
  68% {
    fill: #846a6a;
  }
}
@keyframes hand-colors {
  0%,
  100% {
    fill: #8b9095;
  }
  50% {
    fill: #c6c7c4;
  }
}
@keyframes face-trace {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes incoming {
  0% {
    opacity: 0.1;
    transform: translate(0, 0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
  }
}
.progress {
  height: 2px;
  background: var(--line);
  margin: 16px 0 25px;
  overflow: hidden;
}
.progress span {
  height: 100%;
  background: var(--accent);
  display: block;
}
.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.review-card {
  padding: 0;
}
.transcript {
  font-size: clamp(24px, 3.8vw, 31px);
  line-height: 1.75;
  letter-spacing: -0.025em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0 20px;
  color: var(--ink);
}
.word {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 5px;
  padding: 1px 0;
  margin: 0;
  display: inline;
  line-height: inherit;
  white-space: normal;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.word.flagged {
  text-decoration: underline;
  text-decoration-color: var(--flag);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.word:hover {
  background: var(--soft);
}
.word.is-sounding {
  background: var(--highlight);
  color: var(--ink);
}
.word.is-selected {
  background: var(--accent);
  color: var(--accent-text);
}
.transcript.selecting,
.transcript.selecting .word {
  touch-action: none;
}
.phrase-sounding {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-left: -14px;
}
.transcript-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.transcript-tools .hint {
  font-size: 12px;
}
.transcript-tools .text-button {
  font-size: 12px;
}
.transcript-tools [aria-pressed="true"] {
  color: var(--accent);
  text-decoration: underline;
}
.selection-help {
  margin-bottom: 10px;
}
.player-wrap {
  margin: 15px 0 18px;
}
.player {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--soft);
  border-radius: 20px;
  padding: 15px 18px;
}
.player audio {
  display: none;
}
.play-button {
  background: none;
  border: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  color: var(--accent);
}
.play-button svg {
  width: 28px;
  height: 28px;
}
.track {
  flex: 1;
  min-width: 0;
}
.seek {
  --played: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--accent) var(--played),
    var(--line) var(--played)
  );
  display: block;
  margin: 12px 0 10px;
  cursor: pointer;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 0;
}
.seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 0;
}
.track-time {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.speed-button {
  width: 38px;
  min-height: 44px;
  font-size: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
}
.timing-note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-top: 10px;
}
.review-actions {
  margin-top: 24px;
}
.review-actions .button {
  font-size: 13px;
  padding: 13px 16px;
}
.review-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 0;
}
.review-nav button {
  background: none;
  border: 0;
  padding: 12px;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}
.review-footnote {
  text-align: center;
  margin-top: 10px !important;
}
.editor {
  width: 100%;
  min-height: 180px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 22px !important;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
}
.note-meta {
  margin-bottom: 12px;
}
.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}
.review-summary .text-button {
  font-size: 12px;
  max-width: 50%;
  text-align: right;
}
.transcript-segment {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.transcript-segment .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}
.transcript-segment .transcript {
  font-size: 21px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.transcript-segment > p {
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.full-transcript {
  margin-bottom: 24px;
}
.export-options {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.more-options {
  margin-top: 26px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  padding: 9px 0;
  color: var(--muted);
}
details p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}
.step {
  font-size: 13px;
  color: var(--muted);
}
.step span {
  margin-right: 7px;
}
.spin {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 10px 30px #0002;
  display: none;
}
#toast.visible {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 480px;
  background: var(--paper);
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #353b3c66;
  backdrop-filter: blur(7px);
}
dialog .close {
  float: right;
  margin: -8px -8px 0 8px;
}
dialog h2 {
  font-size: 28px;
}
.word-modal {
  padding-top: 8px;
  text-align: center;
  clear: both;
}
.word-modal .eyebrow {
  margin: 20px 0 10px;
}
.zoom-word {
  display: block;
  width: 100%;
  padding: 24px 0 18px;
  border: 0;
  background: none;
  font-family: "Manrope", var(--font);
  font-size: clamp(30px, 7vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  min-height: 100px;
  white-space: pre-wrap;
}
.word-range {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}
.word-range button {
  font-size: 11px;
}
.word-reason {
  margin: 15px 0;
}
.listen-word {
  margin: 12px auto 20px;
  min-width: 180px;
}
.word-modal > .text-button {
  display: block;
  margin: auto;
}
.zoom-input {
  display: block;
  width: 100%;
  font-size: 30px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 25px 0 20px;
  resize: vertical;
  line-height: 1.4;
  min-height: 125px;
}
.loading {
  padding: 50px;
  text-align: center;
}
.fine {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}
.danger {
  color: #9b3f36;
}
@media (max-width: 720px) {
  .shell {
    padding: 0 24px;
  }
  .topbar {
    height: 83px;
    padding-top: env(safe-area-inset-top);
  }
  .brand {
    font-size: 18px;
  }
  .brand .listener {
    width: 42px;
    height: 42px;
  }
  .top-actions {
    gap: 2px;
  }
  .hero {
    padding: 4px 0 38px;
  }
  .hero-art {
    width: 118px;
    margin-bottom: 15px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .choices {
    gap: 10px;
    margin-top: 27px;
  }
  .choice {
    font-size: 13px;
    padding: 16px 19px;
    flex: 1;
    white-space: nowrap;
  }
  .choice svg {
    width: 20px;
  }
  .under-choices {
    gap: 15px;
    margin-top: 11px;
  }
  .under-choices .text-button {
    font-size: 12px;
  }
  .library {
    padding: 22px 0 30px;
  }
  .page {
    padding-top: 5px;
  }
  .page .back {
    margin-bottom: 15px;
  }
  .capture-stage {
    padding-bottom: 30px;
  }
  .capture-meta {
    font-size: 10px;
  }
  .capture-consent {
    margin: 26px 0 22px;
  }
  .record-art {
    width: 255px;
    margin-bottom: 32px;
  }
  .recording {
    padding-bottom: 25px;
  }
  .setup-page,
  .recording {
    min-height: calc(100dvh - 166px);
  }
  .review-top .eyebrow {
    font-size: 11px;
  }
  .transcript {
    font-size: 25px;
    line-height: 1.8;
    margin-top: 8px;
  }
  .player {
    padding: 12px 14px;
    gap: 12px;
  }
  .review-actions .button {
    font-size: 12px;
    padding: 13px 12px;
    gap: 7px;
  }
  .review-actions svg {
    width: 18px;
  }
  .timing-note {
    font-size: 9px;
  }
  .word-range button {
    font-size: 10px;
  }
  dialog {
    padding: 24px;
  }
  .note-page h2 {
    font-size: 27px;
  }
  .participant-dock {
    gap: 10px;
  }
  .add-person {
    font-size: 11px;
    padding: 12px 14px;
  }
  .participant-dock .hint {
    font-size: 11px;
  }
  .transcript-tools .hint,
  .transcript-tools .text-button {
    font-size: 11px;
  }
}
@media (display-mode: standalone) {
  .install-button {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .listener-trace {
    display: none;
  }
}

.timing-refresh {
  display: block;
  margin: 0 auto;
  font-size: 11px;
}
/* PhraseCard / ListenButton adapted from Tamil by Ear, using Jamda's palette. */
.feed-card {
  --face: color-mix(in srgb, var(--soft) 65%, var(--surface));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 12px 30px -25px #0005;
}
.feed-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: var(--face);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.feed-count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.feed-face {
  padding: 20px 24px 16px;
  background: var(--face);
}
.feed-face .transcript {
  font-size: clamp(24px, 4.8vw, 32px);
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: -0.025em;
  margin: 8px 0 22px;
  min-height: 100px;
}
.transcript {
  position: relative;
}
.karaoke-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  pointer-events: none;
}
.karaoke-dot[hidden] {
  display: none;
}
.word.is-sounding {
  background: color-mix(in srgb, var(--accent) 27%, transparent);
}
.player {
  background: transparent;
  padding: 0;
  gap: 14px;
  border-radius: 0;
  flex-wrap: wrap;
}
.listen-button {
  --listen-progress: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  min-width: 140px;
  min-height: 60px;
  padding: 16px 25px;
  border: 0;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
}
.listen-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, #000 22%, var(--accent));
  transform: scaleX(var(--listen-progress));
  transform-origin: left center;
}
.listen-button svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.player .track {
  flex: 1;
  min-width: 65px;
}
.player .speed-button {
  width: 34px;
  font-size: 12px;
  color: var(--ink);
}
.feed-card .review-actions {
  padding: 16px 20px;
  margin: 0;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.feed-card .review-actions .button {
  border-radius: 17px;
  min-height: 52px;
  font-size: 14px;
  padding: 13px 14px;
}
.timing-details {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.timing-details .timing-note {
  text-align: left;
  line-height: 1.5;
  margin: 10px 0;
}
.timing-refresh {
  margin: 0;
}
.comparison {
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
.comparison summary {
  color: var(--ink);
  font-weight: 550;
}
.comparison > p {
  margin-top: 12px;
}
.provider-version {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.provider-version p {
  font-size: 16px;
  margin: 6px 0;
  line-height: 1.5;
  white-space: pre-wrap;
}
.provider-version .eyebrow {
  font-size: 10px;
}
.pipeline-details {
  border-top: 1px solid var(--line);
  margin: 18px 0;
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.pipeline-details details {
  margin-top: 14px;
}
.pipeline-stages {
  list-style: none;
  padding: 0;
  line-height: 2;
  margin: 14px 0;
}
.provider-transcript {
  font-size: 14px;
  white-space: pre-wrap;
  margin: 12px 0;
  line-height: 1.7;
}
.reprocess-button {
  margin: 0 0 16px;
}
.settings-section {
  margin: 26px 0;
}
.settings-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row strong,
.effort-option strong {
  font-size: 15px;
  font-weight: 550;
}
.setting-row small,
.effort-option small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 3px;
}
.setting-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.admin-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.effort-options {
  border: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  margin: 15px 0;
}
.effort-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}
.effort-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}
.effort-option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dialog-copy {
  margin: 20px 0;
}
@media (max-width: 600px) {
  .top-actions {
    gap: 0;
  }
  .topbar {
    gap: 8px;
  }
  .feed-card {
    border-radius: 20px;
  }
  .feed-card-heading {
    padding: 12px 17px;
    font-size: 11px;
  }
  .feed-face {
    padding: 16px 18px 14px;
  }
  .feed-face .transcript {
    font-size: 24px;
    line-height: 1.7;
    min-height: 80px;
  }
  .listen-button {
    min-width: 118px;
    min-height: 52px;
    padding: 15px 18px;
    border-radius: 17px;
    font-size: 1rem;
  }
  .player {
    gap: 10px;
    padding: 0;
  }
  .feed-card .review-actions {
    padding: 14px;
    gap: 8px;
  }
  .feed-card .review-actions .button {
    font-size: 12px;
    padding: 12px 9px;
    gap: 6px;
  }
  .review-actions svg {
    width: 17px;
    height: 17px;
  }
  .review-page .back {
    margin-bottom: 26px;
  }
}
@media (max-width: 360px) {
  .brand span {
    font-size: 20px;
  }
  .brand .listener {
    width: 34px;
    height: 34px;
  }
  .topbar .icon-button {
    width: 38px;
    min-width: 38px;
  }
  .feed-face {
    padding: 14px;
  }
  .player .track {
    order: 3;
    flex-basis: 100%;
  }
}

/* Long-form listening keeps transport available while subtitles follow the voice. */
.full-transcript { max-height: 58dvh; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 25%; padding: 12px 6px; }
.follow-audio { display: block; margin: 4px auto 12px; font-size: 1rem; }
.full-transcript:focus-visible { outline: 2px solid var(--accent, #582630); outline-offset: 4px; }

.update-notice {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(620px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px -25px #0009;
}
.update-notice strong {
  display: block;
  font-size: 18px;
}
.update-notice p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.update-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.update-actions .button {
  min-height: 46px;
  padding: 10px 17px;
  font-size: 16px;
}
.update-actions .text-button {
  font-size: 15px;
}

/* Readable phone type: no essential label should fall into caption-sized text. */
.fine,
.timing-note,
.timing-details,
.word-range button,
.transcript-tools .hint,
.transcript-tools .text-button,
.review-summary .text-button,
.review-nav button,
.transcript-segment .meta,
.track-time,
.speed-button,
.feed-card-heading,
.provider-version .eyebrow,
.admin-label {
  font-size: 15px;
}
summary,
details p,
.step,
#toast,
.comparison,
.pipeline-details,
.provider-transcript,
.setting-row small,
.effort-option small {
  font-size: 16px;
}
.review-actions .button,
.feed-card .review-actions .button,
.settings-section h3,
.setting-row strong,
.effort-option strong {
  font-size: 17px;
}
.voice-note-action {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .brand {
    font-size: 22px;
  }
  .choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .choice,
  .whatsapp-choice {
    width: 100%;
    min-width: 0;
    padding: 15px 8px;
    font-size: 16px;
  }
  .choice svg {
    width: 22px;
    height: 22px;
  }
  .capture-stage {
    padding: 0 0 34px;
  }
  .capture-meta {
    font-size: 16px;
  }
  .capture-consent {
    margin: 30px 0 10px;
    font-size: 18px;
  }
  .add-person,
  .participant-dock .hint,
  .transcript-tools .hint,
  .transcript-tools .text-button,
  .review-actions .button,
  .review-top .eyebrow,
  .timing-note,
  .word-range button {
    font-size: 15px;
  }
  .feed-card-heading,
  .feed-card .review-actions .button {
    font-size: 15px;
  }
  .update-notice {
    grid-template-columns: 1fr;
  }
  .update-actions {
    width: 100%;
  }
  .update-actions .button {
    flex: 1;
  }
}
