/* BubboLingo "Halo" theme: tinted card per sentence, glass capsule dock,
   pearl play button whose halo follows the voice and the current speaker. */
:root {
  --bg: #0b1016;
  --surface: #151b24;
  --surface-2: #212936;
  --text: #f4f6fa;
  --text-2: #a9b3c2;
  --text-3: #74808f;
  --hairline: rgba(255, 255, 255, 0.09);
  --glass: rgba(24, 31, 42, 0.72);
  --pearl-1: var(--a-fill1-d);
  --pearl-2: var(--a-fill2-d);
  --pearl-ink: var(--a-ink-d);
  --accent: var(--a-text-d);
  --mark: var(--a-mark-d);
  --red: #ff7a6b;
  --delete: #e5484d; /* behind a row swiped left */
  --pin: #e0912a; /* behind a row swiped right, and the pin on a pinned row */
  --now: var(--a-glow); /* halo colour; app.js sets it to the current speaker's colour */
  --tint: 11%; /* how much speaker colour goes into a card */
  --who-mix: 100%; /* speaker colour used as-is for names on dark */
  --dot-mix: 100%;
  --switch-off: #2b3442;
  --switch-on: var(--a-switch-d);
  --seg-on: var(--surface); /* the chosen part of a segmented control */
  --seg-on-ink: var(--text);
  --scale: 1;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  /* From the bottom of the screen to the top of the control capsule: the gap kept clear of
     the iPhone's home bar, the line of small print (44px), the capsule (64px). */
  --dock-pad: max(calc(var(--sab) - 12px), 2px);
  --dock-top: calc(var(--dock-pad) + 108px);
  color-scheme: dark;
}

/* Accent colour (Settings > Accent color, Standard style only): eleven colours, which are
   also Bubbo's colour (public/bubbo.svg) and the speakers' colours. Each carries its light
   and dark values; the scheme blocks pick theirs. -l is for Light, -d for Dark.
   base = the colour itself (Bubbo, the swatch). fill = play button, Done, switches, slider,
   the chosen segment: a darker fill with white ink on Light, a lighter fill with dark ink on
   Dark, so the ink is at least 4.5:1 on the fill and the fill at least 3:1 on the page (on
   Light, White's buttons are charcoal and Gray's a darker gray). text = links and labels: at
   least 4.5:1 on --bg, --surface and --surface-2. Checked by test/style.test.mjs.
   Teal (the logo's) is the default; theme.js always sets data-accent in Standard. */
:root {
  --a-base: #14b8a6;
  --a-glow: var(--a-base);
  --a-text-d: #14b8a6;
  --a-text-l: #0d7469;
  --a-fill1-d: #4fcabc;
  --a-fill2-d: #14b8a6;
  --a-fill1-l: #0e8478;
  --a-fill2-l: #0e7f73;
  --a-ring: conic-gradient(from 200deg, var(--a-glow), color-mix(in srgb, var(--a-glow) 55%, white), var(--a-glow));
  --a-mark-d: var(--a-glow);
  --a-mark-l: var(--a-glow);
  --a-ink-d: #0b1016;
  --a-ink-l: #ffffff;
  --a-switch-d: var(--a-fill2-d);
  --a-switch-l: var(--a-fill2-l);
  --seg-on: var(--pearl-2);
  --seg-on-ink: var(--pearl-ink);
}
:root[data-accent="white"] { --a-base: #ffffff; --a-text-d: #ffffff; --a-text-l: #3d4755; --a-fill1-d: #ffffff; --a-fill2-d: #e6eaf0; --a-fill1-l: #3b4350; --a-fill2-l: #2a313b; }
:root[data-accent="brown"] { --a-base: #996e42; --a-text-d: #ad8b68; --a-text-l: #856039; --a-fill1-d: #b89a7b; --a-fill2-d: #a0784f; --a-fill1-l: #976d41; --a-fill2-l: #936a3f; }
:root[data-accent="red"] { --a-base: #e84447; --a-text-d: #ec6668; --a-text-l: #ba3639; --a-fill1-d: #ee7375; --a-fill2-d: #e84447; --a-fill1-l: #d33e41; --a-fill2-l: #ce3d3f; }
:root[data-accent="orange"] { --a-base: #e87031; --a-text-d: #e87031; --a-text-l: #a24e22; --a-fill1-d: #ee9464; --a-fill2-d: #e87031; --a-fill1-l: #ba5a27; --a-fill2-l: #b55726; }
:root[data-accent="amber"] { --a-base: #e9993a; --a-text-d: #e9993a; --a-text-l: #8e5d23; --a-fill1-d: #eeb26b; --a-fill2-d: #e9993a; --a-fill1-l: #a16a28; --a-fill2-l: #9a6526; }
:root[data-accent="green"] { --a-base: #5ac078; --a-text-d: #5ac078; --a-text-l: #367348; --a-fill1-d: #83d09a; --a-fill2-d: #5ac078; --a-fill1-l: #3d8352; --a-fill2-l: #3b7f4f; }
:root[data-accent="teal"] { --a-base: #14b8a6; --a-text-d: #14b8a6; --a-text-l: #0d7469; --a-fill1-d: #4fcabc; --a-fill2-d: #14b8a6; --a-fill1-l: #0e8478; --a-fill2-l: #0e7f73; }
:root[data-accent="blue"] { --a-base: #3e82f4; --a-text-d: #5390f5; --a-text-l: #3065be; --a-fill1-d: #6ea1f7; --a-fill2-d: #3e82f4; --a-fill1-l: #3772d7; --a-fill2-l: #356ecf; }
:root[data-accent="purple"] { --a-base: #895df3; --a-text-d: #9f7cf5; --a-text-l: #734ecc; --a-fill1-d: #ab8cf7; --a-fill2-d: #8f65f4; --a-fill1-l: #8459e9; --a-fill2-l: #7f56e2; }
:root[data-accent="pink"] { --a-base: #e74897; --a-text-d: #ea5ea3; --a-text-l: #b23774; --a-fill1-d: #ed76b1; --a-fill2-d: #e74897; --a-fill1-l: #cb3f85; --a-fill2-l: #c43d80; }
:root[data-accent="gray"] { --a-base: #777777; --a-text-d: #919191; --a-text-l: #5c5c5c; --a-fill1-d: #a0a0a0; --a-fill2-d: #818181; --a-fill1-l: #6b6b6b; --a-fill2-l: #5a5a5a; }

/* Light. Settings > Appearance: Auto follows the phone (the media query), Light and
   Dark put data-theme on <html> (theme.js) and win over it. Keep the two blocks the same. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f1f4f8;
    --surface: #ffffff;
    --surface-2: #e4e9f0;
    --text: #0e141b;
    --text-2: #4e5a69;
    --text-3: #7d8896;
    --hairline: rgba(14, 20, 27, 0.1);
    --glass: rgba(255, 255, 255, 0.78);
    --pearl-1: var(--a-fill1-l);
    --pearl-2: var(--a-fill2-l);
    --pearl-ink: var(--a-ink-l);
    --accent: var(--a-text-l);
    --mark: var(--a-mark-l);
    --red: #d23b2c;
    --tint: 14%;
    --who-mix: 55%; /* darken speaker colours so names stay readable on white */
    --dot-mix: 82%;
    --switch-off: #cdd4de;
    --switch-on: var(--a-switch-l);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f1f4f8;
  --surface: #ffffff;
  --surface-2: #e4e9f0;
  --text: #0e141b;
  --text-2: #4e5a69;
  --text-3: #7d8896;
  --hairline: rgba(14, 20, 27, 0.1);
  --glass: rgba(255, 255, 255, 0.78);
  --pearl-1: var(--a-fill1-l);
  --pearl-2: var(--a-fill2-l);
  --pearl-ink: var(--a-ink-l);
  --accent: var(--a-text-l);
  --mark: var(--a-mark-l);
  --red: #d23b2c;
  --tint: 14%;
  --who-mix: 55%; /* darken speaker colours so names stay readable on white */
  --dot-mix: 82%;
  --switch-off: #cdd4de;
  --switch-on: var(--a-switch-l);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "PingFang TC", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

.view {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
/* A faint glow rises from the dock in the current speaker's colour */
#liveView {
  background:
    radial-gradient(130% 46% at 50% 108%, color-mix(in srgb, var(--now) 20%, transparent), transparent 70%),
    var(--bg);
}
.page { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--sab) + 24px); }

/* Top bar ------------------------------------------------------------------ */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: calc(var(--sat) + 8px) 20px 6px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand .mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, color-mix(in srgb, var(--mark) 35%, white) 35%, var(--mark));
  box-shadow: 0 0 12px color-mix(in srgb, var(--mark) 60%, transparent);
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--hairline);
}
.icon-btn svg { width: 19px; height: 19px; }
.back, .text-btn { color: var(--accent); font-size: 17px; }
.back::before { content: "‹ "; font-size: 22px; line-height: 0; }
.text-btn.danger { color: var(--red); }
.top-actions .text-btn { margin-left: 8px; }

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 2px 20px 8px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 13px;
}
.dot-rec { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.meta[data-state="live"] .dot-rec { background: var(--now); box-shadow: 0 0 10px var(--now); animation: pulse 1.8s ease-in-out infinite; }
.meta[data-state="connecting"] .dot-rec { background: #ffb86b; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* Transcript --------------------------------------------------------------- */

.feed {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(var(--dock-top) + 90px);
  scrollbar-width: none;
  /* cards fade out under the status pill and under the dock */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - var(--dock-top) - 84px), transparent calc(100% - var(--dock-top) - 16px));
          mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - var(--dock-top) - 84px), transparent calc(100% - var(--dock-top) - 16px));
}
.feed::-webkit-scrollbar { display: none; }
.feed.static { flex: none; overflow: visible; padding-top: 4px; padding-bottom: 24px; -webkit-mask-image: none; mask-image: none; }

.empty {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 42%;
  transform: translateY(-50%);
  text-align: center;
  pointer-events: none;
}
.empty h1 { margin: 0; font-size: 27px; font-weight: 650; letter-spacing: -0.02em; }
.empty p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }

/* One tinted card per sentence. --c is the speaker's colour (set by app.js). */
.line, .live-card {
  margin: 0 0 10px;
  padding: 13px 16px 15px;
  border-radius: 20px;
  background: color-mix(in oklab, var(--c, var(--text-3)) var(--tint), var(--surface));
  border: 1px solid color-mix(in srgb, var(--c, var(--text-3)) 16%, transparent);
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: color-mix(in oklab, var(--c, var(--text-2)) var(--who-mix), black);
}
.who::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--c, var(--text-3)) var(--dot-mix), black);
}
.en { margin: 7px 0 0; font-size: calc(14px * var(--scale)); line-height: 1.5; color: var(--text-2); }
.zh, .typing-tr {
  margin: 4px 0 0;
  font-size: calc(20px * var(--scale));
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}
.zh.muted { color: var(--text-3); font-weight: 400; font-size: calc(15px * var(--scale)); }
.typing { font-size: calc(14px * var(--scale)); line-height: 1.5; color: var(--text-2); }
.typing .who { display: flex; margin-bottom: 7px; }
/* The sentence being spoken: same text style as a finished one, only the outline glows. */
.live-card {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 10%, transparent), 0 8px 30px -8px color-mix(in srgb, var(--c) 35%, transparent);
}

.hide-original .en { display: none; }
/* When the original is hidden, the live card keeps only the speaker name above the translation. */
.hide-original .typing { font-size: 0; }
.hide-original .typing .who { font-size: 13px; margin-bottom: 0; }

/* Lecture: one speaker, large type, no cards */
.lecture #liveView .who, .lecture #liveView .typing .who, .detail-lecture #detailFeed .who { display: none; }
.lecture #liveView .line, .detail-lecture #detailFeed .line { background: none; border-color: transparent; padding: 8px; margin: 0; }
.lecture #liveView .live-card { background: var(--surface); border-color: var(--hairline); box-shadow: none; padding: 14px 16px; margin: 8px 0 0; }
.lecture #liveView .zh, .lecture #liveView .typing-tr, .detail-lecture #detailFeed .zh { font-size: calc(25px * var(--scale)); line-height: 1.5; }
.lecture #liveView .en, .lecture #liveView .typing, .detail-lecture #detailFeed .en { font-size: calc(15px * var(--scale)); }
.lecture.hide-original #liveView .typing { display: none; }

.jump {
  position: fixed;
  right: 20px;
  bottom: calc(var(--dock-top) + 24px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
          backdrop-filter: blur(22px) saturate(1.5);
  color: var(--text);
  font-size: 17px;
}

/* Dock: floating glass capsule --------------------------------------------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px var(--dock-pad);
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
/* The line under the capsule. Its height never changes, whatever it shows (or nothing),
   so the play button stays where it is from waiting through a session and back. */
.dock-foot { display: flex; align-items: center; justify-content: center; height: 44px; }
/* Same weight as the "Terms · Privacy Policy" line under Done in Settings (.sheet-links).
   One line on every phone: the type gives a little on the narrowest screens. */
.hint, .notice {
  margin: 0;
  font-size: clamp(11px, 3.4vw, 13px);
  line-height: 1.3;
  color: var(--text-3);
  text-align: center;
  white-space: nowrap;
}
.hint { pointer-events: none; }
.dock-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
          backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.45);
  isolation: isolate;
  /* over the line below, so the rim of the play button (it sticks out of the capsule) stays the play button */
  position: relative;
  z-index: 1;
}
.side { justify-self: start; font-size: 15px; font-weight: 550; color: var(--text); padding: 12px 14px; }
.side.right { justify-self: end; font-variant-numeric: tabular-nums; cursor: default; }
/* the timer, while a session is running */
.play:not([data-state="idle"]) + .side.right { font-size: 17px; letter-spacing: 0.01em; }
#modeBtn::after { content: " ▾"; font-size: 11px; color: var(--text-3); }
#modeBtn:disabled { opacity: 0.5; }

/* Pearl button with a halo */
.play {
  --lvl: 0;
  position: relative;
  width: 78px;
  height: 78px;
  margin: -12px 0;
  border-radius: 50%;
  color: var(--pearl-ink);
  background: radial-gradient(circle at 32% 26%, var(--pearl-1), var(--pearl-2) 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 -3px 8px rgba(0, 0, 0, 0.08);
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
/* No transform on the button itself: it would lift the halo above the pearl. */
.play:active .glyph { transform: scale(0.88); }
.play::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9px;
  border-radius: 50%;
  background: var(--a-ring);
  filter: blur(11px);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.12s;
}
.play .glyph { position: absolute; width: 28px; height: 28px; fill: currentColor; transition: opacity 0.2s, transform 0.15s; }
.play .g-pause { opacity: 0; }
.play .spinner { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; opacity: 0; }

.play[data-state="live"]::before { background: var(--now); opacity: calc(0.55 + var(--lvl) * 0.4); transform: scale(calc(1 + var(--lvl) * 0.22)); }
.play[data-state="paused"]::before { background: var(--text-3); opacity: 0.35; }
.play[data-state="live"] .g-play { opacity: 0; }
.play[data-state="live"] .g-pause { opacity: 1; }
.play[data-state="connecting"] .g-play, .play[data-state="saving"] .g-play { opacity: 0; }
.play[data-state="connecting"] .spinner, .play[data-state="saving"] .spinner { opacity: 1; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hold-to-end ring */
.play .ring {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.play .ring circle {
  fill: none;
  stroke: var(--text);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  opacity: 0;
  transition: stroke-dashoffset 0.2s ease-out, opacity 0.2s;
}
.play.holding .ring circle {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--hold-ms, 900ms) linear, opacity 0.1s;
}

/* History ------------------------------------------------------------------ */

.large { margin: 4px 20px 12px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-3);
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
}
.group { padding: 14px 22px 8px; font-size: 13px; font-weight: 650; color: var(--text-2); }
/* A row is a card over its two actions; app.js slides the card sideways. */
.hrow {
  position: relative;
  margin: 0 14px 10px;
  border-radius: 20px;
  overflow: hidden;
  touch-action: pan-y; /* up-and-down scrolls the list, sideways is ours */
  -webkit-user-select: none;
          user-select: none;
  -webkit-touch-callout: none;
}
.hrow.leaving { margin-bottom: 0; opacity: 0; transition: height 0.24s ease, margin 0.24s ease, opacity 0.2s ease; }
.row-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  visibility: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}
.row-action span { width: 88px; text-align: center; transition: transform 0.18s ease; }
.row-action.pin { background: var(--pin); justify-content: flex-start; }
.row-action.del { background: var(--delete); justify-content: flex-end; }
.hrow[data-side="lead"] .row-action.pin, .hrow[data-side="trail"] .row-action.del { visibility: visible; }
/* pulled far enough that letting go does it */
.hrow.full .row-action span { transform: scale(1.18); }
.item {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1);
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.hrow.dragging .item { transition: none; }
.pin-mark { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; color: var(--pin); transform: rotate(35deg); }
.pin-mark svg { display: block; width: 100%; height: 100%; }
.item .title { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.item .sub { margin-top: 5px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.dots { display: inline-flex; gap: 4px; margin-left: auto; }
.dots i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.list-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 15px; }

.detail-title { margin: 6px 20px 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.detail-meta { margin: 0 20px 12px; font-size: 13px; color: var(--text-2); }
#detailView { padding-bottom: calc(var(--sab) + 104px); }
/* Continue this record: a small glass capsule over the end of the page */
.continue {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sab) + 22px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px 14px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
          backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.45);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}
.continue svg { width: 18px; height: 18px; fill: currentColor; }
.continue:active { transform: translateX(-50%) scale(0.97); }
/* Where a later sitting begins, in the record and on the live screen */
.resume-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
.resume-mark::before, .resume-mark::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* Sign in ------------------------------------------------------------------ */

.signin { z-index: 20; align-items: center; justify-content: center; padding: 0 32px; text-align: center; }
.signin img { border-radius: 20px; }
.signin h1 { margin: 22px 0 8px; font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }
.signin .tagline { margin: 0 0 48px; color: var(--text-2); font-size: 16px; line-height: 1.45; white-space: pre-line; }
/* Google's button is an iframe from accounts.google.com whose document is light. On a dark
   page the browser would paint that iframe white instead of see-through (it does so whenever
   the color-scheme outside and inside an iframe differ): a white box around the black button.
   Light here, whatever the page is, keeps the iframe see-through. */
#googleBtn { min-height: 44px; color-scheme: light; }
.signin-error { margin: 18px 0 0; color: var(--red); font-size: 14px; line-height: 1.45; max-width: 320px; }
.signin .fine { position: absolute; left: 32px; right: 32px; bottom: calc(var(--sab) + 28px); margin: 0; color: var(--text-3); font-size: 12px; }

/* The account (Settings): who, the plan with what is left as a bar, and the buttons for it */
.account { margin-bottom: 12px; padding: 14px; border-radius: 20px; background: var(--surface-2); }
.account-head { display: flex; align-items: center; gap: 12px; }
.account-head img { flex: none; border-radius: 50%; background: var(--surface); }
.account-who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 16px; }
.account-who span { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-signout { align-self: flex-start; font-size: 14px !important; color: var(--text-3) !important; }
.account-usage { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.account-plan { font-size: 15px; font-weight: 650; color: var(--text); }
.account-pack { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.usage-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text-3) 28%, transparent); overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: inherit; background: var(--switch-on); transition: width 0.3s; }
.usage-bar.low i { background: #f0a020; }
.usage-of { font-size: 13px; color: var(--text-3); }
/* A cancelled subscription still running: a gentle reminder of when it ends */
.account-ending { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.account-ending::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f0a020; }
.account-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.account-actions:not(:has(button:not([hidden]))) { display: none; }
.account-actions .primary, .account-actions .secondary { margin: 0; padding: 13px; }
.account-actions .secondary { background: var(--surface); border: 1px solid var(--hairline); }
/* Invite a friend: its own row under the account */
.invite-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--hairline); }
.invite-row .account-note { flex: 1; margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.invite-row .secondary { flex: none; width: auto; margin: 0; padding: 10px 14px; font-size: 14px; }
.field-hint { margin: -8px 4px 16px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.sheet-text { margin: 0 4px 22px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.sheet-fine { margin: 0 4px 16px; font-size: 13px; line-height: 1.45; color: var(--text-3); }

/* Plans: one tap on a plan goes to the payment page ------------------------- */

.plans-interval { margin-bottom: 12px; }
.plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.plan-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 20px; background: var(--surface-2); text-align: left; }
.plan-option strong { display: block; margin-bottom: 3px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.plan-option span { font-size: 14px; color: var(--text-2); }
.plan-option .price { text-align: right; white-space: nowrap; }
.plan-option .price .plan-was { display: block; font-size: 13px; color: var(--text-3); }
.plan-option span.plan-save { display: block; margin-top: 3px; color: var(--accent); font-weight: 650; }
.plan-option:active { background: color-mix(in oklab, var(--accent) 16%, var(--surface-2)); }
.plans.busy .plan-option { opacity: 0.5; pointer-events: none; }

/* Toast -------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  top: calc(var(--sat) + 54px); /* at the top, so it never covers the line being read */
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.toast span { flex: 1; }
.toast button { color: var(--accent); font-weight: 650; }

/* Sheets: floating rounded panels ------------------------------------------ */

.sheet {
  width: calc(100% - 16px);
  max-width: 520px;
  margin: auto auto 8px;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  padding: 26px 18px calc(var(--sab) + 14px);
  background: var(--surface);
  color: var(--text);
  max-height: 90dvh;
  overflow-y: auto;
}
.sheet::backdrop { background: rgba(4, 8, 14, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Settings: a title, the options (they scroll), then Done and the legal line pinned at the bottom
   above the home bar, so Done is in sight the moment it opens, on every phone. */
#settings[open] { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
#settings .sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: 0 -18px;
  padding: 0 18px;
  /* options fade out under the pinned part instead of being cut off */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
}
#settings .sheet-foot { flex: none; padding: 6px 0 calc(var(--sab) + 14px); }
#settings .sheet-foot .primary { margin-top: 0; }
.sheet h2 { margin: 0 4px 20px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.sheet:focus, .sheet h2:focus { outline: none; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--text-2); }
.field > span { margin-left: 4px; }
.field.row { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--surface-2); }
.field.row > span { margin: 0; font-size: 16px; color: var(--text); }
.field input[type="text"], .field input[type="password"], .field select {
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--text);
  background: var(--surface-2);
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  width: 100%;
  -webkit-appearance: none;
          appearance: none;
}
/* Switch drawn from the checkbox */
.field input[type="checkbox"] {
  -webkit-appearance: none;
          appearance: none;
  flex: none;
  margin: 0;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--switch-off);
  position: relative;
  transition: background 0.2s;
}
.field input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.field input[type="checkbox"]:checked { background: var(--switch-on); }
.field input[type="checkbox"]:checked::after { transform: translateX(20px); }
.field input[type="range"] { width: 100%; accent-color: var(--switch-on); }
/* Drawn by hand so the filled part is the accent on every phone (app.js keeps --pct up to date) */
.field input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; margin: 0; background: none; }
.field input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--switch-on) var(--pct, 50%), var(--switch-off) var(--pct, 50%)); }
.field input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--switch-on) var(--pct, 50%), var(--switch-off) var(--pct, 50%)); }
.field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.field input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35); }

/* Accent color: one round swatch per colour, a ring around the chosen one */
.accent-row { display: flex; justify-content: space-between; padding: 6px 4px 2px; }
.accent-dot { position: relative; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--sw) 45%, white), var(--sw) 70%); }
.accent-dot.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2.5px solid var(--text); }
.accent-dot[data-accent-choice="white"] { --sw: #ffffff; }
.accent-dot[data-accent-choice="brown"] { --sw: #996e42; }
.accent-dot[data-accent-choice="red"] { --sw: #e84447; }
.accent-dot[data-accent-choice="orange"] { --sw: #e87031; }
.accent-dot[data-accent-choice="amber"] { --sw: #e9993a; }
.accent-dot[data-accent-choice="green"] { --sw: #5ac078; }
.accent-dot[data-accent-choice="teal"] { --sw: #14b8a6; }
.accent-dot[data-accent-choice="blue"] { --sw: #3e82f4; }
.accent-dot[data-accent-choice="purple"] { --sw: #895df3; }
.accent-dot[data-accent-choice="pink"] { --sw: #e74897; }
.accent-dot[data-accent-choice="gray"] { --sw: #777777; }
/* High contrast has its own colours: the swatches fade and can't be picked */
.accent-field.off .accent-row { opacity: 0.35; pointer-events: none; }
.accent-note { margin: 2px 4px 0; font-size: 12px; color: var(--text-3); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.segmented button { padding: 9px 4px; border-radius: 999px; font-size: 15px; line-height: 20px; color: var(--text-2); } /* fixed line height: 繁體 / 简体 (PingFang) would otherwise make that control taller than the others */
.segmented button.on { background: var(--seg-on); color: var(--seg-on-ink); font-weight: 650; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-left: 2px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; }
.swatch.on { border-color: var(--text); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  --c: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip.on { box-shadow: inset 0 0 0 2px var(--c); }

.sheet-actions { display: flex; gap: 10px; }
.sheet-actions button { flex: 1; }
.primary, .secondary { width: 100%; border-radius: 999px; padding: 15px; font-weight: 650; font-size: 16px; }
.primary { margin-top: 4px; color: var(--pearl-ink); background: radial-gradient(circle at 30% 0%, var(--pearl-1), var(--pearl-2) 80%); }
.secondary { margin-top: 4px; background: var(--surface-2); }
.primary + .secondary { margin-top: 10px; }

/* Where Stripe sends people back to (billing.html) -------------------------- */

.signin .tagline.return-text { margin-bottom: 0; max-width: 320px; }

/* Terms of Service and Privacy Policy (legal.html, and the app's own view) --- */

.legal { z-index: 30; }
a.back { text-decoration: none; }
.legal-lang { min-width: 172px; }
.legal-lang button { padding: 7px 10px; font-size: 13px; }
.legal-doc {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 6px 22px 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
.legal-doc:lang(zh-TW), .legal-doc:lang(zh-CN) { line-height: 1.8; }
.legal-doc h1 { margin: 6px 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.legal-doc h2 { margin: 30px 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; color: var(--text); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 20px; }
.legal-doc li { margin-bottom: 7px; }
.legal-doc li::marker { color: var(--text-3); }
.legal-doc strong { font-weight: 650; color: var(--text); }
.legal-doc a, .legal-line a, .sheet-fine a, .sheet-links a, .signin .fine a { color: var(--accent); text-decoration: none; }
.legal-doc a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.legal-doc .legal-date { font-size: 14px; color: var(--text-3); }
.legal-doc .legal-note { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--hairline); font-size: 14px; line-height: 1.55; }
.legal-summary { margin: 18px 0 4px; padding: 16px 18px 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); }
.legal-doc .legal-summary h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0; color: var(--accent); }
.legal-summary ul { font-size: 15px; line-height: 1.55; }
.legal-doc .legal-more { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); font-weight: 600; }
.legal-doc .legal-more a { text-decoration: none; }
.legal-doc .legal-more a::after { content: " ›"; }

/* The places that link to them */
.legal-line { display: block; margin-top: 5px; }
.signin .fine { line-height: 1.5; }
.sheet-links { margin: 16px 0 2px; text-align: center; font-size: 13px; color: var(--text-3); }
.sheet-fine + .sheet-fine { margin-top: -8px; }

/* Small print under the play button while waiting to start; opens #noticeSheet.
   The whole 44px line is the button. */
.notice { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; }
.notice svg { flex: none; width: 1.1em; height: 1.1em; }
.notice:active { opacity: 0.6; }
.notice-list { list-style: none; margin: 0 4px 6px; padding: 0; }
.notice-list li { margin-bottom: 16px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.notice-list strong { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 650; color: var(--text); }
#noticeSheet .sheet-links { margin: 0 0 18px; text-align: left; padding-left: 4px; font-size: 14px; }

/* Bubbo, the mascot (the sprite in index.html) ------------------------------
   His colour is the accent colour, or a speaker's (--bubbo set on the element).
   On Light he gets an outline a little darker than himself and a soft shadow; white
   Bubbo on Light is a pale grey-white with a grey outline, or he would vanish. */
.bubbo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.bubbo {
  --bubbo: var(--a-base);
  --bubbo-fill: var(--bubbo);
  --bubbo-line: transparent;
  --bubbo-ink: #15161c;
  --bubbo-gear: #1d1e25;
  --bubbo-mark: var(--text-2);
  display: block;
  flex: none;
  overflow: visible;
}
.bubbo.fur { --bubbo-fur: url(#bubbo-fuzz); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bubbo { --bubbo-line: color-mix(in oklab, var(--bubbo) 74%, black); filter: drop-shadow(0 3px 7px rgba(14, 20, 27, 0.18)); }
  :root:not([data-theme="dark"]) .bubbo[data-tone="white"], :root:not([data-theme="dark"])[data-accent="white"] .bubbo.theme { --bubbo-fill: #eef1f5; --bubbo-line: #a9b2be; }
}
:root[data-theme="light"] .bubbo { --bubbo-line: color-mix(in oklab, var(--bubbo) 74%, black); filter: drop-shadow(0 3px 7px rgba(14, 20, 27, 0.18)); }
:root[data-theme="light"] .bubbo[data-tone="white"], :root[data-theme="light"][data-accent="white"] .bubbo.theme { --bubbo-fill: #eef1f5; --bubbo-line: #a9b2be; }

/* Bubbo with something to say: the Ready screen, the sign-in page */
.bubbo-says { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 18px; }
.bubbo-says .bubbo { width: 104px; height: 104px; }
.bubbo-bubble {
  max-width: 190px;
  margin: 0 0 34px !important;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35);
}
.signin .signin-bubbo { margin-bottom: 6px; }
.signin .signin-bubbo .bubbo { width: 120px; height: 120px; }
/* In a sheet, beside its title */
.sheet-bubbo { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; }
.sheet-bubbo .bubbo { width: 58px; height: 58px; }
.sheet .sheet-bubbo h2 { margin: 0; }
/* While listening: a very small Bubbo by the status, swaying with the voice */
.bubbo-listen { display: none; width: 18px; height: 18px; margin: -2px -2px -2px -3px; transform-origin: 50% 85%; }
.meta[data-state="live"] .dot-rec { display: none; }
.meta[data-state="live"] .bubbo-listen { display: block; transform: rotate(calc(var(--lvl, 0) * 16deg - 4deg)) scale(calc(1 + var(--lvl, 0) * 0.12)); transition: transform 0.12s; }
/* A speaker's Bubbo, beside their name */
.who .bubbo { width: 18px; height: 18px; margin: -3px 0; }
.who:has(.bubbo)::before { display: none; }
#speakerBubbo { width: 44px; height: 44px; }
/* History with nothing in it */
.list-empty .bubbo { width: 96px; height: 96px; margin: 0 auto 12px; }
/* Errors (microphone, connection) in the toast */
.toast .bubbo { width: 34px; height: 34px; margin: -4px 0; }
.toast .bubbo[hidden] { display: none; }

/* Settings > Accent color: Bubbo in the chosen colour beside the eleven swatches */
.accent-pick { display: flex; align-items: center; gap: 10px; }
.accent-pick .bubbo { width: 64px; height: 64px; }
.accent-pick .accent-row { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 4px; justify-items: center; padding: 4px 0; }
.accent-dot[data-accent-choice="white"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.tips-reset { display: block; margin: 4px auto 14px; font-size: 15px; }

/* Bubbo's tips (app.js: showTip): a small speech bubble by the button it is about, or, while
   listening, in the clear space above the controls, so it never covers the captions. */
.tip {
  position: fixed;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(330px, calc(100vw - 24px));
  width: max-content;
  padding: 9px 14px 9px 8px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--a-base) 45%, var(--hairline));
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  animation: tip-in 0.25s ease-out;
}
.tip .bubbo { width: 40px; height: 40px; }
.tip p { margin: 0; }
@keyframes tip-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .tip { animation: none; } .meta[data-state="live"] .bubbo-listen { transform: none; } }

/* High contrast (Settings > Style) ------------------------------------------
   Subtitle-style for long sessions read at arm's length: pure black or white, no tinted cards
   (the speaker colour is a bar on the left), larger and bolder translation, a solid dock.
   Its own colours, whatever the accent: subtitle yellow on Dark, black on Light.
   Light and Dark as above: the media query for Auto, data-theme for a fixed choice. */
:root[data-style="contrast"] {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #1f1f1f;
  --text: #ffffff;
  --text-2: #cfcfcf;
  --text-3: #8c8c8c;
  --hairline: rgba(255, 255, 255, 0.16);
  --glass: rgba(20, 20, 20, 0.92);
  --pearl-1: #ffd60a;
  --pearl-2: #ffd60a;
  --pearl-ink: #000000;
  --accent: #ffd60a;
  --mark: #ffd60a;
  --switch-off: #3a3a3a;
  --switch-on: #ffd60a;
  --seg-on: var(--text);
  --seg-on-ink: var(--bg);
  --tint: 0%;
}
@media (prefers-color-scheme: light) {
  :root[data-style="contrast"]:not([data-theme="dark"]) {
    --bg: #ffffff;
    --surface: #f4f4f4;
    --surface-2: #e9e9e9;
    --text: #000000;
    --text-2: #333333;
    --text-3: #6b6b6b;
    --hairline: rgba(0, 0, 0, 0.16);
    --glass: rgba(255, 255, 255, 0.95);
    --pearl-1: #000000;
    --pearl-2: #000000;
    --pearl-ink: #ffffff;
    --accent: #8a5a00;
    --mark: #000000;
    --switch-off: #cfcfcf;
    --switch-on: #000000;
  }
}
:root[data-style="contrast"][data-theme="light"] {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e9e9e9;
  --text: #000000;
  --text-2: #333333;
  --text-3: #6b6b6b;
  --hairline: rgba(0, 0, 0, 0.16);
  --glass: rgba(255, 255, 255, 0.95);
  --pearl-1: #000000;
  --pearl-2: #000000;
  --pearl-ink: #ffffff;
  --accent: #8a5a00;
  --mark: #000000;
  --switch-off: #cfcfcf;
  --switch-on: #000000;
}
:root[data-style="contrast"], :root[data-style="contrast"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "PingFang SC", "Helvetica Neue", sans-serif; }
[data-style="contrast"] #liveView { background: var(--bg); }
[data-style="contrast"] .brand .mark { width: 14px; height: 14px; border-radius: 4px; background: var(--mark); box-shadow: none; }
[data-style="contrast"] .icon-btn, [data-style="contrast"] .meta { background: var(--surface); }
/* No cards: one sentence per row, the speaker's colour as a bar on the left */
[data-style="contrast"] .line, [data-style="contrast"] .live-card {
  margin: 0;
  padding: 14px 10px 16px 16px;
  border: 0;
  border-left: 4px solid color-mix(in oklab, var(--c, var(--text-3)) var(--dot-mix), black);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: none;
}
[data-style="contrast"] .live-card { margin-top: 10px; border-bottom: 0; border-left-width: 6px; border-radius: 0 14px 14px 0; background: var(--surface); box-shadow: none; }
[data-style="contrast"] .who { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
[data-style="contrast"] .who::before { display: none; }
[data-style="contrast"] .en { font-size: calc(16px * var(--scale)); }
[data-style="contrast"] .zh, [data-style="contrast"] .typing-tr { font-size: calc(23px * var(--scale)); font-weight: 600; line-height: 1.5; letter-spacing: 0; }
[data-style="contrast"] .zh.muted { font-size: calc(16px * var(--scale)); font-weight: 400; }
[data-style="contrast"] .typing { font-size: calc(16px * var(--scale)); }
[data-style="contrast"] .hide-original .typing { font-size: 0; }
[data-style="contrast"] .hide-original .typing .who { font-size: 14px; }
/* Lecture keeps its plain rows: no bar */
[data-style="contrast"] .lecture #liveView .line, [data-style="contrast"] .detail-lecture #detailFeed .line { border: 0; padding: 8px; }
[data-style="contrast"] .lecture #liveView .live-card { border: 1px solid var(--hairline); border-radius: 14px; }
[data-style="contrast"] .lecture #liveView .zh, [data-style="contrast"] .lecture #liveView .typing-tr, [data-style="contrast"] .detail-lecture #detailFeed .zh { font-size: calc(27px * var(--scale)); }
/* Solid dock and buttons: no glass, no glow; the play button's rim follows the voice */
[data-style="contrast"] .dock-row, [data-style="contrast"] .continue, [data-style="contrast"] .jump { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
[data-style="contrast"] .dock-row { border-radius: 22px; }
[data-style="contrast"] .play { background: var(--pearl-2); box-shadow: none; }
[data-style="contrast"] .play::before { display: none; }
[data-style="contrast"] .play[data-state="live"] { box-shadow: 0 0 0 calc(3px + var(--lvl) * 6px) color-mix(in srgb, var(--now) 70%, transparent); }
[data-style="contrast"] .primary { background: var(--pearl-2); border-radius: 14px; }
[data-style="contrast"] .secondary { border-radius: 14px; }
[data-style="contrast"] .sheet { border-radius: 22px; }
[data-style="contrast"] .segmented, [data-style="contrast"] .segmented button { border-radius: 12px; }
[data-style="contrast"] .segmented button.on { box-shadow: none; }
[data-style="contrast"] .field input[type="text"], [data-style="contrast"] .field input[type="password"], [data-style="contrast"] .field select, [data-style="contrast"] .field.row, [data-style="contrast"] .search { border-radius: 12px; }
[data-style="contrast"] .item, [data-style="contrast"] .hrow { border-radius: 14px; }
