/* 听话 · a quiet, readable visual system. No remote fonts or assets. */
:root {
  --ink: #223831;
  --muted: #66766e;
  --paper: #f7f7f2;
  --white: #fffffc;
  --line: #dfe5dc;
  --green: #315e4d;
  --green-dark: #1c4435;
  --green-pale: #e9efe7;
  --orange: #af6a42;
  --orange-pale: #f4e8dc;
  --yellow-pale: #f0eee2;
  --shadow: 0 12px 38px -22px rgba(26, 52, 40, .22);
  --radius: 18px;
}

html { color-scheme: light; scroll-padding-bottom: 110px; }
body { background: var(--paper); -webkit-font-smoothing: antialiased; }
::selection { background: #cfe1cc; color: #173829; }
button, input, select, audio { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:focus-visible, a:focus-visible, audio:focus-visible, select:focus-visible {
  outline: 3px solid #7c9b65;
  outline-offset: 4px;
}
button:disabled { opacity: .48; }
button:disabled:hover { transform: none; box-shadow: none; }
.primary, .secondary, .quiet, .danger, .demo-login, .inline-link,
.icon-btn, .record-tab, .category-chip, .nav-button, .audition-filter,
.question-row button { min-height: 44px; }
.primary, .secondary, .quiet, .danger, .demo-login {
  border-radius: 10px;
  letter-spacing: .015em;
}
.primary { background: var(--green-dark); box-shadow: 0 5px 12px -7px #224d38; }
.primary:hover { background: #285943; box-shadow: 0 7px 18px -9px #224d38; }
.secondary { color: #234d3c; background: #e7eee3; }
.secondary:hover { background: #dae6d5; }
.quiet { color: #4b5e53; background: #eeefe9; }
.quiet:hover { background: #e4e9df; }
.danger { color: #8e453b; background: #f6e8e2; }
.small { font-size: 14px; }
.inline-link { display: inline-flex; align-items: center; font-size: 14px; line-height: 1.5; }
.field { min-height: 54px; border-color: #dce3d8; border-radius: 9px; background: #fffefa; font-size: 16px; }
.field::placeholder { color: #849087; }
.field:hover { border-color: #b2c1b0; }
.field:focus { border-color: #5f8063; box-shadow: 0 0 0 4px #ebf1e6; }
.field-label { color: #4d6356; font-size: 14px; margin: 23px 0 10px; }
.helper { color: #617266; font-size: 14px; line-height: 1.85; }
.eyebrow { color: #5c795e; font-size: 12px; letter-spacing: .18em; font-weight: 650; }

/* A composed entrance: the brand, a voice motif, and one simple form. */
.login-screen {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(340px, 1fr) minmax(360px, 440px);
  gap: clamp(54px, 8vw, 130px);
  padding: 7vh max(6vw, calc((100vw - 1160px) / 2));
  background: radial-gradient(ellipse at 27% 77%, #ecefdf 0, transparent 41%), #f7f7f1;
}
.login-screen::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 34%;
  border-left: 1px solid #e7eadf;
  background: rgba(255, 255, 252, .39);
  pointer-events: none;
}
.login-story, .login-card { position: relative; z-index: 1; }
.brand-mark { gap: 13px; font-size: 23px; letter-spacing: .1em; font-weight: 700; }
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px 15px 15px 5px;
  background: var(--green-dark);
  font-family: "Songti SC", "STSong", serif;
  font-weight: 650;
  font-size: 26px;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.login-story h1 {
  margin: 38px 0 18px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(47px, 5.7vw, 76px);
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: -.045em;
}
.login-story h1 span { color: #537252; }
.login-story > p { max-width: 420px; color: #61705f; font-size: 17px; line-height: 1.95; }
.story-pills { gap: 12px 18px; margin-top: 24px; }
.story-pills span { padding: 0; border: 0; border-radius: 0; color: #5e735e; font-size: 13px; }
.story-pills span::before { content: ""; display: inline-block; vertical-align: middle; width: 4px; height: 4px; margin-right: 9px; border-radius: 50%; background: #829474; }
.listening-art { position: relative; display: flex; align-items: center; gap: 25px; min-height: 156px; margin: 30px 0 0; }
.sound-disc {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid #dce3cd;
  color: #50704d;
  background: linear-gradient(145deg, #fffff7, #e5ebd9);
  box-shadow: inset 0 0 0 10px #f3f5e9, inset 0 0 0 11px #dfe6d2, 0 13px 24px -19px #65814e;
}
.sound-disc::before { content: ""; position: absolute; inset: 23px; border: 1px solid #cfdcbf; border-radius: 50%; }
.sound-disc svg { position: relative; width: 108px; height: 108px; stroke: currentColor; }
.art-caption { color: #6f7d66; font-family: "Songti SC", "STSong", serif; font-size: 17px; letter-spacing: .13em; line-height: 1.8; }
.login-card {
  padding: 38px;
  border: 1px solid #e3e7da;
  border-radius: 20px;
  background: rgba(255,255,252,.97);
  box-shadow: 0 24px 68px -45px rgba(32,56,33,.36), 0 1px 0 #fff inset;
}
.login-card > .eyebrow { margin-bottom: 16px; }
.login-card h2 { font-size: 27px; font-weight: 650; letter-spacing: -.03em; }
.login-card .subhead { margin: 12px 0 30px; font-size: 14px; line-height: 1.7; color: #687766; }
.login-card .primary.wide { min-height: 54px; margin-top: 28px; font-size: 16px; }
.code-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.code-row .secondary { padding: 10px 14px; font-size: 14px; }
.login-note { margin-top: 16px; color: #69786a; font-size: 12px; }
.divider { margin: 24px 0 18px; color: #748172; }
.demo-login { min-height: 50px; border-color: #dde5d7; background: transparent; font-size: 14px; }
.demo-login span { color: #8c9f77; }

/* A quiet frame keeps primary controls and the spoken question prominent. */
.app-shell { grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { padding: 31px 19px 24px; background: #fcfcf8; border-right-color: #e3e8dd; }
.side-brand { padding: 0 12px 48px; }
.side-brand .brand-mark { font-size: 21px; gap: 12px; }
.side-brand .brand-icon { width: 42px; height: 42px; border-radius: 13px 13px 13px 4px; font-size: 24px; }
.nav-caption { color: #71816e; margin-bottom: 12px; font-size: 12px; letter-spacing: .15em; }
.nav-list { gap: 8px; }
.nav-button { padding: 14px 13px; color: #5c7060; border-radius: 10px; font-size: 15px; font-weight: 500; }
.nav-button .nav-icon { color: #778b6f; }
.nav-button.active { color: #1e4935; background: #e9eee2; font-weight: 700; box-shadow: inset 3px 0 #5c8053; }
.nav-button:hover { background: #eff2e9; }
.nav-button.active .nav-icon { color: #34623c; }
.side-tip { margin: 16px 5px 23px; padding: 18px 0; border-top: 1px solid #dfe6d7; border-radius: 0; background: none; }
.side-tip strong { font-size: 14px; font-weight: 600; color: #455e44; }
.side-tip p { color: #6c7b64; font-size: 12px; line-height: 1.9; }
.account-mini { padding: 18px 3px 0; gap: 9px; }
.account-mini strong { font-size: 14px; }
.account-mini small { display: block; margin-top: 4px; font-size: 12px; }
.account-mini .quiet { padding-inline: 8px; font-size: 12px; background: transparent; }
.avatar { width: 42px; height: 42px; color: #41613d; background: #e8eddf; font-size: 18px; }
.main-area { padding: 32px clamp(25px, 4.7vw, 74px) 80px; }
.topbar { min-height: 44px; margin-bottom: 31px; padding-bottom: 23px; border-bottom: 1px solid #e1e7db; }
.topbar-title small { margin-bottom: 6px; color: #6d7c67; font-size: 13px; }
.topbar-title strong { font-size: 17px; font-weight: 600; }
.topbar-right { gap: 12px; }
.profile-select { min-height: 44px; border-radius: 9px; border-color: #d9e2d2; font-size: 14px; }
.prototype-strip { margin-bottom: 26px; padding: 12px 15px; border-color: #e5e4d7; border-radius: 8px; color: #6c725b; background: #f0f1e6; font-size: 12px; }
.page-heading { margin-bottom: 28px; gap: 20px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading h1 { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(32px, 3.3vw, 42px); font-weight: 600; letter-spacing: -.025em; }
.page-heading p:not(.eyebrow) { margin-top: 13px; font-size: 15px; line-height: 1.85; }
.tag { padding: 8px 12px; border: 1px solid #dce5d2; border-radius: 6px; color: #4d6c46; background: #eef2e7; font-size: 12px; font-weight: 500; white-space: nowrap; }
.hero-grid { grid-template-columns: minmax(0, 1.65fr) minmax(235px, .75fr); gap: 22px; }
.player-card { min-height: 410px; padding: clamp(26px, 3.5vw, 44px); border-radius: 19px; background: linear-gradient(120deg, #254e3e 0, #1d4335 75%); box-shadow: 0 18px 30px -25px #183b28; }
.player-card::after { top: -105px; right: -82px; width: 330px; height: 330px; border-color: #83a78e25; box-shadow: 0 0 0 27px #a2bf9c07, 0 0 0 54px #a2bf9c05; }
.live-label { color: #e2ecd9; font-size: 13px; }
.live-dot { width: 6px; height: 6px; background: #c4d7a4; box-shadow: 0 0 0 4px #b9d09b12; }
.queue-pill { border-color: #bdcfb836; padding: 8px 11px; color: #d8e5cf; font-size: 12px; }
.question-area { padding: 34px 0 30px; }
.question-label { color: #bacfbd; font-size: 13px; letter-spacing: .12em; }
.question-text { color: #fffff5; font-size: clamp(28px, 3.15vw, 40px); line-height: 1.65; font-weight: 550; letter-spacing: -.02em; }
.question-placeholder { max-width: 470px; color: #e3ecda; font-size: 22px; line-height: 1.8; }
.player-bottom { border-top-color: #c0d3bf29; padding-top: 20px; }
.player-voice { color: #d3e1c9; font-size: 13px; line-height: 1.7; }
.icon-btn { min-width: 44px; height: 44px; border-radius: 10px; border-color: #acc7ad55; background: #edf3e70a; font-size: 21px; }
.player-actions .secondary { background: #e5eddc; }
.play-controls { gap: 12px; margin-top: 16px; }
.play-big, .stop-big { min-height: 61px; border-radius: 11px; font-size: 19px; letter-spacing: .025em; }
.play-big { min-width: 180px; color: #fffdf6; background: #2b563f; box-shadow: none; }
.play-big:hover { background: #1e4833; }
.stop-big { min-width: 150px; border-color: #adbd9f; color: #345436; background: #fdfef8; }
.stop-big:hover { background: #edf2e5; }
.side-stack { gap: 18px; }
.mini-card { padding: 24px; border-color: #dfe6d7; border-radius: 16px; background: #fffffa; box-shadow: 0 1px 1px #30402203; }
.mini-card.cream { border-color: #e4e5d2; background: #eff1e5; }
.mini-icon { width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; color: #537146; background: #edf1e4; font-size: 21px; }
.mini-card.cream .mini-icon { background: #e2e8d2; color: #697448; }
.mini-card h3 { font-size: 18px; font-weight: 650; }
.mini-card p { margin-bottom: 6px; font-size: 14px; line-height: 1.8; }
.section-head { margin: 36px 0 18px; align-items: baseline; }
.section-head h2 { color: #2c4935; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.5; }
.section-head span { color: #687b61; font-size: 13px; line-height: 1.7; }
.category-row { gap: 10px; }
.category-chip { padding: 10px 15px; border-color: #e1e7d9; border-radius: 8px; color: #5e7055; background: #fdfef8; font-size: 14px; }
.category-chip:hover { background: #eff3e7; border-color: #bfceae; }
.category-chip.active { border-color: #b7cbaa; color: #335b31; background: #e7eedc; }
.stat-row { gap: 0; margin: 30px 0; padding: 23px 0; border-top: 1px solid #dfe6d7; border-bottom: 1px solid #dfe6d7; }
.stat-card { padding: 0 24px; border: 0; border-right: 1px solid #dfe6d7; border-radius: 0; background: none; }
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border-right: 0; }
.stat-card small { font-size: 13px; color: #607355; }
.stat-card strong { margin-top: 9px; font-size: 29px; font-weight: 550; font-variant-numeric: tabular-nums; }
.stat-card strong .muted { font-size: .61em; font-weight: 400; }

/* Voice choices read as an organised collection, with a consistent audio row. */
.audition-filters { gap: 9px; margin: 22px 0; }
.audition-filter { min-height: 46px; padding: 10px 20px; border-radius: 8px; border-color: #dfe6d6; color: #527047; background: transparent; font-size: 15px; }
.audition-filter[aria-pressed="true"] { border-color: #254d37; color: #fffff8; background: #254d37; box-shadow: 0 4px 11px -8px #244b34; }
.audition-filter:hover:not([aria-pressed="true"]) { background: #edf2e5; border-color: #b9caae; }
.audition-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 28px; }
.audition-card { position: relative; padding: 23px 21px 19px; border-color: #e1e7d8; border-radius: 13px; background: #fefef9; box-shadow: 0 1px 1px #203c2303; transition: border-color .16s ease, box-shadow .16s ease; }
.audition-card:hover { border-color: #b9cbac; box-shadow: 0 10px 23px -23px #27482a; }
.audition-card::before { content: ""; position: absolute; top: 24px; right: 21px; width: 8px; height: 22px; border-radius: 8px; background: #dce6d1; box-shadow: -12px 4px 0 -2px #c1d1b5, 12px 6px 0 -3px #b2c79f; }
.audition-card h3 { margin: 0 38px 10px 0; font-size: 19px; font-weight: 650; letter-spacing: .025em; }
.audition-card .audition-meta { color: #68805b; font-size: 13px; }
.audition-card .audition-description { min-height: 52px; margin: 16px 0 0; color: #5a7152; font-size: 14px; line-height: 1.8; }
.audition-card audio { height: 42px; margin-top: 18px; border-radius: 8px; }
audio::-webkit-media-controls-panel { background: #edf2e7; }

/* Reusable, readable panels and recording states. */
.panel { border-color: #dfe6d8; border-radius: 16px; background: #fdfef9; }
.panel-pad { padding: 27px; }
.panel h2, .panel h3 { color: #2f4d36; font-weight: 650; }
.member-list, .question-list { gap: 0; }
.member-row, .question-row { padding: 19px 2px; border: 0; border-bottom: 1px solid #e1e8d8; border-radius: 0; background: transparent; }
.member-row:first-child, .question-row:first-child { padding-top: 5px; }
.member-row:last-child, .question-row:last-child { padding-bottom: 5px; border-bottom: 0; }
.member-row strong { font-size: 16px; font-weight: 600; }
.member-row small { margin-top: 7px; font-size: 13px; line-height: 1.65; }
.member-row .badge { padding: 7px 10px; border-radius: 6px; color: #536e46; background: #eaf0e0; font-size: 12px; }
.question-row .q-content p { font-size: 17px; line-height: 1.8; }
.question-row .q-content small { font-size: 13px; }
.question-row button { min-width: 44px; font-size: 21px; border-radius: 8px; }
.empty-state { min-height: 285px; border: 1px solid #dfe6d7; border-radius: 16px; background: #fdfef8; }
.empty-state .empty-icon { color: #8ca37c; font-size: 40px; }
.empty-state h3 { margin: 18px 0 12px; font-size: 21px; color: #345638; }
.empty-state p { max-width: 450px; margin-bottom: 23px; font-size: 15px; line-height: 1.9; }
.voice-card { grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr); gap: 22px; align-items: start; }
.record-box { padding: 30px; border: 1px solid #dce5d2; border-radius: 18px; background: #fcfdf7; box-shadow: 0 12px 30px -27px #3e652c; }
.record-box h3 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.record-box p { color: #5d7353; font-size: 15px; line-height: 1.9; }
.record-box .radio-label { align-items: flex-start; margin-bottom: 19px; font-size: 14px; line-height: 1.8; }
.radio-label input[type="checkbox"], .radio-label input[type="radio"] { flex: 0 0 auto; width: 19px; height: 19px; margin: 3px 2px 0 0; accent-color: #38623c; }
.record-script { margin: 20px 0; padding: 22px 23px; border: 1px solid #e0e8d5; border-left: 3px solid #96ad7e; border-radius: 0 10px 10px 0; color: #36583b; background: #f1f5e9; font-size: 18px; line-height: 1.95; }
.record-script p { margin: 7px 0 0; font-size: 18px; line-height: 1.95; color: #36583b; }
.record-script small, .record-script .eyebrow { display: block; color: #678451; font-size: 12px; letter-spacing: .1em; }
.record-stage { display: grid; justify-items: center; align-content: center; min-height: 176px; margin: 22px 0; padding: 22px; border: 1px solid #e1e9d8; border-radius: 13px; background: #f5f7ed; }
.record-timer { color: #305733; font-size: clamp(36px, 4vw, 48px); line-height: 1.2; font-weight: 400; letter-spacing: .015em; font-variant-numeric: tabular-nums; }
.record-meter { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 36px; margin: 16px 0 8px; }
.record-meter span, .record-meter i { display: block; width: 4px; min-height: 4px; height: var(--h, 6px); max-height: 40px; border-radius: 5px; background: #78955d; transition: height .12s ease; }
.record-meter meter, meter.record-meter { display: block; width: min(100%, 270px); height: 12px; min-height: 12px; accent-color: #597e43; }
.record-meter::-webkit-meter-bar { border: 0; background: #e0e8d4; border-radius: 8px; }
.record-meter::-webkit-meter-optimum-value { background: #709250; border-radius: 8px; }
.recording-indicator { display: inline-flex; align-items: center; gap: 8px; color: #5b7450; font-size: 13px; line-height: 1.8; }
.recording-indicator::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #9eb08e; }
.recording-indicator.active::before, .recording-indicator[data-recording="true"]::before { background: #b96447; box-shadow: 0 0 0 4px #b9644712; animation: recording-breathe 1.8s ease-in-out infinite; }
.record-step { display: flex; align-items: center; gap: 10px; margin: 17px 0; color: #577249; font-size: 14px; line-height: 1.8; }
.record-step > span:first-child { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border: 1px solid #c8d7b8; border-radius: 50%; color: #64814e; font-size: 12px; font-variant-numeric: tabular-nums; }
.record-controls { gap: 10px; padding-top: 3px; }
.record-controls button { min-height: 49px; font-size: 15px; }
.record-status { color: #67795c; font-size: 13px; line-height: 1.85; }
.record-box .record-status { margin: 19px 0 0; font-size: 13px; }
.wave { gap: 5px; margin: 21px 0; height: 35px; }
.wave span { width: 4px; background: #648950; opacity: .6; }
.audio-preview { height: 48px; margin-top: 22px; }
.trial-card { padding: 27px; border: 1px solid #dde6d1; border-radius: 15px; background: #edf2e3; }
.trial-card h3 { font-size: 19px; font-weight: 650; color: #3d5a35; }
.trial-card p { color: #61734e; font-size: 14px; line-height: 1.9; }
.trial-card .primary { box-shadow: none; }
.trial-card .secondary { border: 1px solid #cad8b7; background: #f7f9ee; }
/* Voice hero: the "generate my voice" action is the most prominent element. */
.voice-hero { padding: 34px 30px; border-color: #c9dcb4; background: linear-gradient(165deg, #f2f7e8 0%, #e6efd9 100%); }
.voice-hero h3 { font-family: "Songti SC", "STSong", serif; font-size: 30px; font-weight: 600; color: #2e4a2c; line-height: 1.5; }
.voice-hero p { font-size: 15px; color: #58704a; }
.voice-hero .hero-generate { width: 100%; margin: 10px 0 6px; padding: 16px 20px; border-radius: 14px; font-size: 18px; font-weight: 700; letter-spacing: .02em; background: linear-gradient(135deg, #3f7a33, #2f6b26); box-shadow: 0 10px 22px -14px #28521e; }
.voice-hero .hero-generate:disabled { background: #9db492; box-shadow: none; }
.voice-hero .hero-audition { width: 100%; margin: 6px 0 4px; padding: 16px 20px; border-radius: 14px; font-size: 17px; font-weight: 700; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #3f7a33, #2f6b26); box-shadow: 0 10px 22px -14px #28521e; }
.voice-hero .hero-audition:disabled { opacity: 1; color: #fff; background: #9db492; box-shadow: none; }
.plans { gap: 14px; }
.plan-option { border-color: #dce5d2; border-radius: 12px; padding: 20px 16px; background: #fffffa; }
.plan-option.selected { padding: 19px 15px; border-color: #557c42; background: #edf3e3; box-shadow: 0 5px 17px -15px #355327; }
.plan-option .plan-time { color: #5a7550; font-size: 14px; }
.plan-option strong { color: #2f532d; margin-top: 13px; font-size: 30px; font-weight: 500; letter-spacing: -.035em; }
.plan-option small { color: #657b59; font-size: 12px; }
.purchase-kind { margin: 24px 0; gap: 22px; }
.radio-label { min-height: 44px; color: #4d6844; font-size: 15px; }
.plan-summary { padding-top: 23px; }
.membership-banner { margin-bottom: 20px; padding: 24px 27px; border-radius: 13px; background: #294e38; }
.membership-banner strong { font-size: 18px; font-weight: 600; }
.membership-banner p { color: #d4e1c7; font-size: 14px; line-height: 1.75; }
.membership-banner .quiet { background: #ecf2e215; color: #f7fbed; border: 1px solid #b5caa45e; }
.record-tabs { gap: 0; border-bottom: 1px solid #dbe5ce; margin-bottom: 24px; }
.record-tab { position: relative; padding: 12px 18px 15px; border-radius: 0; color: #6a805c; background: none; font-size: 15px; font-weight: 500; }
.record-tab.active { color: #345b2c; background: none; font-weight: 650; }
.record-tab.active::after { content: ""; position: absolute; right: 18px; bottom: -1px; left: 18px; height: 3px; background: #668746; border-radius: 4px 4px 0 0; }
.toast { max-width: min(90vw, 550px); padding: 14px 20px; border-radius: 10px; background: #27422f; font-size: 14px; line-height: 1.7; }
.modal-backdrop { background: #172c2466; backdrop-filter: blur(4px); }
.modal { max-height: min(90dvh, 750px); overflow: auto; padding: 30px; border: 1px solid #e4eadb; border-radius: 18px; background: #fffffa; box-shadow: 0 25px 75px -25px #18302059; }
.modal h2 { font-size: 24px; font-weight: 600; }
.modal p { margin: 12px 0 20px; font-size: 15px; line-height: 1.85; }
.modal-actions { flex-wrap: wrap; margin-top: 24px; gap: 10px; }
.onboarding-options { display: grid; gap: 13px; margin-top: 24px; }
.onboarding-options button { display: block; width: 100%; padding: 21px; border: 1px solid #d8e3ca; border-radius: 12px; text-align: left; background: #f5f8ed; }
.onboarding-options button:hover { border-color: #92ad7b; background: #ecf2e1; }
.onboarding-options strong { display: block; color: #315332; font-size: 18px; font-weight: 650; }
.onboarding-options span { display: block; margin-top: 8px; color: #60784f; font-size: 14px; font-weight: 400; line-height: 1.8; }
.record-box .record-stage { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 0; margin: 0 0 17px; padding: 0 0 24px; border: 0; border-bottom: 1px solid #e0e7d7; border-radius: 0; background: transparent; }
.record-stage .record-step, .trial-card > .record-step { display: block; margin: 0 0 14px; color: #70865e; font-size: 12px; letter-spacing: .1em; }
.record-stage h3 { margin-bottom: 0; }
.page-sub { margin: 8px 0 0; color: #6b805d; font-size: 14px; line-height: 1.7; }
.record-script-panel { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #e0e8d5; border-radius: 12px; background: #f1f5e9; }
.record-script-panel p { margin: 0 0 10px; color: #4b6643; font-size: 14px; line-height: 1.8; }
.record-script-panel .record-script { margin: 0; padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: 16px; }
.record-box .record-timer { flex: 0 0 auto; font-size: 37px; color: #788d66; }
.record-script > span { display: block; margin-bottom: 10px; color: #70895b; font-size: 12px; letter-spacing: .1em; }
.record-meter-row { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 19px 0 20px; padding: 0 1px; color: #6a805b; font-size: 12px; line-height: 1.7; }
.record-meter-row > .recording-indicator { flex: 0 0 auto; }
.record-meter-row .record-meter { display: block; flex: 1; width: auto; min-width: 40px; min-height: 7px; height: 7px; margin: 0 0 0 8px; overflow: hidden; border-radius: 6px; background: #e0e8d6; }
.record-meter-row .record-meter i { display: block; width: 0; min-height: 7px; height: 7px; max-height: none; border-radius: inherit; background: #739953; transition: width .1s linear; }
.record-box[data-state="recording"] { border-color: #99b285; }
.record-box[data-state="recording"] .record-timer { color: #335c30; }
.record-box[data-state="recording"] .recording-indicator::before { background: #558741; box-shadow: 0 0 0 4px #55874115; animation: recording-breathe 1.8s ease-in-out infinite; }
.record-box[data-state="recording"] #recordButton { color: #fffdf5; background: #8c4b37; }
.record-box[data-state="requesting"] .recording-indicator::before { background: #ab8440; }
.record-box[data-state="ready"] .record-timer { color: #44663b; }
.record-box .record-consent { min-height: 44px; margin-bottom: 18px; padding-top: 2px; }
.voice-service-note { margin: 23px 0; padding-top: 20px; border-top: 1px solid #d3dfc4; }
.voice-service-note > strong { color: #567342; font-size: 14px; font-weight: 650; }
.voice-service-note p { margin-top: 8px; font-size: 13px; }
.trial-card > h3 { font-family: "Songti SC", "STSong", serif; font-size: 28px; font-weight: 500; line-height: 1.65; }
.record-footnote { display: flex; align-items: baseline; gap: 22px; margin-top: 29px; padding: 23px 2px 0; border-top: 1px solid #dfe6d6; }
.record-footnote > span { flex: 0 0 auto; color: #4b6940; font-family: "Songti SC", "STSong", serif; font-size: 17px; letter-spacing: .08em; }
.record-footnote p { max-width: 720px; margin: 0; color: #6a7b60; font-size: 13px; line-height: 1.9; }

@keyframes recording-breathe { 50% { box-shadow: 0 0 0 6px #b9644722; } }

@media (min-width: 1450px) {
  .main-area { padding-top: 38px; }
  .login-screen { gap: 130px; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .main-area { padding-inline: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mini-card { padding: 22px; }
  .voice-card { grid-template-columns: 1fr; }
  .trial-card { padding: 25px; }
  .login-screen { gap: 50px; padding-inline: 6vw; }
  .login-card { padding: 30px; }
}
@media (max-width: 820px) and (min-width: 681px) {
  .login-screen { grid-template-columns: minmax(250px, 1fr) minmax(320px, 1fr); gap: 28px; padding-inline: 4vw; }
  .login-story h1 { font-size: 46px; }
  .login-story > p { font-size: 16px; }
  .login-card { padding: 25px; }
  .listening-art { gap: 14px; }
  .sound-disc { width: 108px; height: 108px; }
  .art-caption { font-size: 15px; }
  .app-shell { grid-template-columns: 185px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .main-area { padding-inline: 22px; }
  .side-stack { grid-template-columns: 1fr; }
  .mini-card { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; align-items: start; }
  .mini-card .mini-icon { grid-row: 1 / 4; margin: 0; }
  .mini-card p, .mini-card .inline-link { grid-column: 2; }
  .player-actions { flex-wrap: wrap; }
  .player-bottom { align-items: flex-start; flex-direction: column; }
  .stat-card { padding-inline: 16px; }
  .stat-card strong { font-size: 25px; }
}
@media (max-width: 680px) {
  .login-screen { min-height: 100dvh; display: block; padding: 29px 22px 42px; background: radial-gradient(ellipse at 90% 15%, #e7edda 0, transparent 52%), #f7f7f1; }
  .login-screen::before { display: none; }
  .login-story { max-width: 440px; margin: 0 auto; }
  .brand-mark { font-size: 21px; gap: 11px; }
  .brand-icon { width: 42px; height: 42px; font-size: 24px; border-radius: 13px 13px 13px 4px; }
  .login-story h1 { margin: 29px 0 15px; font-size: 43px; line-height: 1.28; }
  .login-story > p { max-width: 330px; font-size: 16px; line-height: 1.85; }
  .story-pills { gap: 8px 15px; margin-top: 18px; }
  .story-pills span { padding: 0; font-size: 12px; }
  .listening-art { min-height: 98px; margin-top: 18px; gap: 17px; }
  .sound-disc { width: 88px; height: 88px; box-shadow: inset 0 0 0 7px #f3f5e9, inset 0 0 0 8px #dfe6d2, 0 12px 20px -20px #65814e; }
  .sound-disc::before { inset: 16px; }
  .sound-disc svg { width: 72px; height: 72px; }
  .art-caption { font-size: 15px; letter-spacing: .08em; }
  .login-card { max-width: 440px; margin: 28px auto 0; padding: 28px 23px; border-radius: 16px; box-shadow: 0 16px 40px -30px #2b472a44; }
  .login-card h2 { font-size: 25px; }
  .login-card .subhead { margin-bottom: 24px; }
  .login-card > .eyebrow { margin-bottom: 13px; }
  .field { min-height: 53px; }
  .code-row { gap: 8px; }
  .code-row .secondary { padding-inline: 11px; font-size: 13px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-area { padding: 23px 20px calc(111px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 46px; align-items: flex-start; gap: 12px; padding-bottom: 19px; margin-bottom: 21px; }
  .topbar-title { min-width: 0; }
  .topbar-title small { font-size: 12px; line-height: 1.6; }
  .topbar-title strong { font-size: 16px; line-height: 1.5; }
  .topbar-right { align-items: flex-end; gap: 7px; }
  .topbar-right .quiet { padding-inline: 11px; font-size: 13px; white-space: nowrap; }
  .profile-select { max-width: 116px; padding-inline: 9px 24px; font-size: 13px; }
  .prototype-strip { margin-bottom: 24px; padding: 12px 13px; font-size: 12px; line-height: 1.85; }
  .page-heading { margin-bottom: 25px; gap: 14px; }
  .page-heading h1 { font-size: 33px; line-height: 1.4; }
  .page-heading .eyebrow { font-size: 12px; margin-bottom: 10px; }
  .page-heading p:not(.eyebrow) { margin-top: 11px; font-size: 15px; line-height: 1.85; }
  .page-heading .tag { padding-block: 7px; font-size: 12px; }
  .hero-grid { gap: 24px; }
  .player-card { min-height: 385px; padding: 24px; border-radius: 17px; }
  .player-top { flex-wrap: wrap; gap: 12px; }
  .live-label { font-size: 13px; }
  .queue-pill { font-size: 11px; padding: 7px 9px; }
  .question-label { font-size: 13px; }
  .question-text { font-size: 28px; line-height: 1.7; }
  .question-placeholder { font-size: 21px; line-height: 1.8; }
  .question-area { padding: 32px 0; }
  .player-bottom { position: relative; gap: 15px; padding-top: 18px; align-items: stretch; }
  .player-voice { font-size: 13px; }
  .player-actions { position: static; align-self: flex-end; gap: 9px; }
  .player-actions .secondary { margin-left: 2px; }
  .play-controls { grid-template-columns: 1.1fr .9fr; gap: 11px; margin-top: 13px; }
  .play-big, .stop-big { min-width: 0; min-height: 62px; padding-inline: 15px; font-size: 19px; }
  .side-stack { gap: 13px; grid-template-columns: 1fr 1fr; }
  .mini-card { padding: 19px 16px; border-radius: 12px; }
  .mini-icon { width: 38px; height: 38px; margin-bottom: 16px; font-size: 20px; }
  .mini-card h3 { font-size: 17px; line-height: 1.5; }
  .mini-card p { font-size: 13px; line-height: 1.8; }
  .mini-card .inline-link { font-size: 13px; text-align: left; }
  .section-head { flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 30px; }
  .section-head h2 { font-size: 20px; }
  .section-head span { font-size: 13px; }
  .category-row { gap: 9px; }
  .category-chip { padding: 10px 13px; font-size: 14px; }
  .stat-row { margin: 25px 0; padding: 20px 0; }
  .stat-card { padding: 0 14px; }
  .stat-card small { display: block; min-height: 20px; font-size: 12px; line-height: 1.6; }
  .stat-card strong { font-size: 26px; }
  .stat-card:first-child strong { font-size: 25px; }
  .stat-card strong .muted { display: block; margin-top: 3px; font-size: 14px; }
  .audition-grid { grid-template-columns: 1fr; gap: 14px; }
  .audition-filters { flex-wrap: nowrap; gap: 8px; }
  .audition-filter { flex: 1; min-width: 0; padding-inline: 9px; font-size: 14px; }
  .audition-card { padding: 23px; border-radius: 13px; }
  .audition-card h3 { font-size: 20px; }
  .audition-card .audition-meta { font-size: 13px; }
  .audition-card .audition-description { min-height: 0; margin-top: 14px; font-size: 15px; }
  .audition-card audio { height: 46px; margin-top: 18px; }
  .voice-card, .form-grid { grid-template-columns: 1fr; }
  .record-box { padding: 24px 20px; border-radius: 15px; }
  .record-box h3 { font-size: 21px; }
  .record-box .record-stage { gap: 13px; padding-bottom: 22px; }
  .record-box .record-timer { font-size: 31px; }
  .record-stage .record-step { font-size: 11px; margin-bottom: 11px; }
  .record-box p { font-size: 15px; }
  .record-script { padding: 18px; font-size: 18px; }
  .record-script p { font-size: 18px; }
  .record-stage { min-height: 64px; padding: 14px 4px; }
  .record-timer { font-size: 34px; }
  .record-controls { gap: 9px; }
  .record-controls button { flex: 1 1 calc(50% - 9px); font-size: 15px; padding-inline: 10px; }
  .record-controls #recordButton { flex-basis: 100%; min-height: 54px; font-size: 17px; }
  .record-box .record-status { font-size: 13px; }
  .trial-card { padding: 24px 21px; }
  .trial-card > h3 { font-size: 27px; }
  .trial-card p { font-size: 14px; }
  .record-footnote { display: block; margin-top: 26px; padding-top: 22px; }
  .record-footnote p { margin-top: 11px; font-size: 13px; }
  .panel-pad { padding: 23px 20px; }
  .member-row { flex-wrap: wrap; gap: 11px; padding-block: 20px; }
  .member-row .member-info { flex: 1; min-width: 170px; }
  .member-row .badge { margin-left: 53px; }
  .member-row .quiet { margin-left: auto; }
  .question-row { align-items: flex-start; gap: 9px; padding-block: 20px; }
  .question-row .q-content p { font-size: 17px; }
  .empty-state { min-height: 295px; padding: 28px 22px; }
  .empty-state p { font-size: 15px; }
  .empty-state button { margin: 5px 0; }
  .membership-banner { align-items: flex-start; flex-direction: column; gap: 17px; padding: 24px; }
  .membership-banner strong { font-size: 19px; }
  .membership-banner p { font-size: 14px; }
  .membership-banner button { align-self: flex-start; }
  .plans { grid-template-columns: 1fr 1fr; gap: 12px; }
  .plan-option { padding: 20px 16px; }
  .plan-option.selected { padding: 19px 15px; }
  .plan-option strong { font-size: 30px; }
  .record-tabs { margin-bottom: 20px; }
  .record-tab { flex: 1; font-size: 14px; padding-inline: 7px; }
  .record-tab.active::after { right: 10px; left: 10px; }
  .mobile-nav { min-height: 78px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); border-top-color: #dce5d2; background: rgba(251,253,245,.97); box-shadow: 0 -5px 20px -14px #3042242b; backdrop-filter: blur(18px); }
  .mobile-nav .nav-button { min-height: 60px; gap: 4px; padding: 7px 4px; border-radius: 10px; color: #667c57; font-size: 12px; font-weight: 500; }
  .mobile-nav .nav-button.active { color: #2d592e; background: #e9f0df; box-shadow: none; font-weight: 650; }
  .mobile-nav .nav-icon { width: 27px; height: 23px; font-size: 23px; line-height: 1; }
  .toast { bottom: calc(93px + env(safe-area-inset-bottom)); font-size: 14px; }
  .modal-backdrop { padding: 19px; }
  .modal { max-height: 88dvh; padding: 26px 23px; border-radius: 16px; }
  .modal p { font-size: 15px; }
  .modal-actions button { flex: 1; }
}
@media (max-width: 370px) {
  .login-screen { padding-inline: 17px; }
  .login-card { padding-inline: 20px; }
  .main-area { padding-inline: 16px; }
  .login-story h1 { font-size: 39px; }
  .topbar-right { flex-direction: column; }
  .player-card { padding: 22px 20px; }
  .mini-card { padding-inline: 14px; }
  .side-stack { grid-template-columns: 1fr; }
  .stat-card { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  button:hover { transform: none !important; }
}

/* Phone is the product surface. Larger displays only centre the same preview. */
html { min-width: 320px; background: #e9ede3; }
body { min-width: 320px; background: #e9ede3; }
.app-shell, .login-screen {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px #dfe6d6;
}
.app-shell { display: block; }
.sidebar { display: none !important; }
.content, .main-area, .topbar, .topbar-title, .page-heading, .hero-grid,
.voice-card, .record-box, .trial-card, .login-story, .login-card,
.code-row, .member-info, .record-stage > div { min-width: 0; }
.main-area { padding: max(20px, env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom)); }
.topbar { align-items: center; gap: 10px; min-height: 44px; padding-bottom: 16px; margin-bottom: 18px; }
.topbar-title small { font-size: 12px; line-height: 1.6; margin-bottom: 4px; }
.topbar-title strong { font-size: 16px; line-height: 1.6; }
.topbar-right { align-items: center; gap: 7px; }
.topbar-right .quiet { padding-inline: 10px; font-size: 13px; white-space: nowrap; }
.profile-select { max-width: 117px; min-height: 48px; padding-inline: 8px 23px; font-size: 13px; }
.prototype-strip { margin-bottom: 21px; padding: 10px 12px; font-size: 12px; line-height: 1.8; }
.page-heading { flex-direction: column; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.page-heading .eyebrow { margin-bottom: 9px; font-size: 12px; }
.page-heading h1 { font-size: 32px; line-height: 1.4; }
.page-heading p:not(.eyebrow) { margin-top: 10px; font-size: 15px; line-height: 1.8; }
.tag { white-space: normal; }
.hero-grid, .voice-card, .form-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hero-grid > *, .voice-card > * { min-width: 0; }
.player-card { min-height: 365px; padding: 25px; border-radius: 17px; }
.player-top { flex-wrap: wrap; gap: 11px; }
.queue-pill { padding: 7px 9px; font-size: 12px; }
.question-area { padding: 29px 0; }
.question-text { font-size: 29px; line-height: 1.65; }
.question-placeholder { font-size: 21px; line-height: 1.8; }
.player-bottom { align-items: stretch; flex-direction: column; gap: 15px; }
.player-actions { position: static; align-self: flex-end; gap: 8px; }
.player-voice { font-size: 13px; }
.play-controls { display: grid; grid-template-columns: 1.1fr .9fr; gap: 11px; margin-top: 14px; }
.play-big, .stop-big { width: 100%; min-width: 0; min-height: 62px; padding: 14px; font-size: 20px; }
.side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 13px; }
.mini-card { display: block; padding: 20px 16px; border-radius: 12px; }
.mini-icon { width: 38px; height: 38px; margin-bottom: 15px; }
.mini-card h3 { font-size: 17px; line-height: 1.5; }
.mini-card p, .mini-card .inline-link { font-size: 13px; line-height: 1.8; }
.section-head { flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 29px 0 17px; }
.section-head h2 { font-size: 20px; }
.section-head span { font-size: 13px; }
.stat-row { margin: 25px 0; padding: 21px 0; }
.stat-card { padding-inline: 15px; }
.stat-card small { display: block; min-height: 20px; font-size: 12px; line-height: 1.6; }
.stat-card strong { font-size: 26px; }
.stat-card:first-child strong { font-size: 25px; }
.stat-card strong .muted { display: block; margin-top: 3px; font-size: 14px; }
.audition-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.audition-filters { flex-wrap: nowrap; gap: 8px; }
.audition-filter { flex: 1; min-width: 0; padding-inline: 9px; font-size: 14px; }
.audition-card { padding: 22px; }
.audition-card h3 { font-size: 20px; }
.audition-card .audition-description { min-height: 0; font-size: 15px; }
.audition-card audio { height: 46px; }
.panel-pad { padding: 23px 20px; }
.member-row { flex-wrap: wrap; gap: 11px; }
.member-row .member-info { flex: 1; min-width: 160px; }
.member-row .badge { margin-left: 53px; }
.member-row .quiet { margin-left: auto; }
.membership-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
.membership-banner strong { font-size: 18px; }
.membership-banner p { font-size: 14px; }
.record-tabs { gap: 0; }
.record-tab { flex: 1; padding-inline: 8px; font-size: 14px; }
.record-tab.active::after { right: 10px; left: 10px; }
.plans { grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-summary { flex-direction: column; align-items: stretch; }
.plan-summary .primary { width: 100%; }
.empty-state { padding: 28px 22px; }
.empty-state button { margin-block: 5px; }
.primary, .secondary, .quiet, .danger, .demo-login, .inline-link,
.icon-btn, .record-tab, .category-chip, .nav-button, .audition-filter,
.question-row button { min-height: 48px; }
.icon-btn, .question-row button { min-width: 48px; }
.mobile-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 480px;
  min-height: 77px;
  margin: 0 auto;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #dce5d2;
  background: rgba(251,253,245,.97);
  box-shadow: 0 -5px 20px -14px #3042242b;
  backdrop-filter: blur(18px);
}
.mobile-nav .nav-button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 59px; gap: 4px; padding: 7px 4px; border-radius: 10px; color: #667c57; font-size: 12px; font-weight: 500; text-align: center; }
.mobile-nav .nav-button.active { color: #2d592e; background: #e9f0df; box-shadow: none; font-weight: 650; }
.mobile-nav .nav-icon { width: 27px; height: 23px; font-size: 23px; line-height: 1; }
.toast { bottom: calc(93px + env(safe-area-inset-bottom)); width: max-content; max-width: min(90vw, 430px); font-size: 14px; }
.modal-backdrop { padding: max(19px, env(safe-area-inset-top)) 19px max(19px, env(safe-area-inset-bottom)); }
.modal { max-width: 420px; max-height: 88dvh; padding: 27px 23px; border-radius: 16px; }
.modal-actions button { flex: 1; }

/* Compact mobile login: no enclosing card and the primary action stays close. */
.login-screen { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: max(22px, env(safe-area-inset-top)) 25px max(30px, env(safe-area-inset-bottom)); overflow: hidden; background: radial-gradient(ellipse at 100% 0, #e9efdc, transparent 54%), #f7f7f1; }
.login-screen::before { display: none; }
.login-story { width: 100%; max-width: none; margin: 0; }
.brand-mark { gap: 10px; font-size: 20px; }
.brand-icon { width: 36px; height: 36px; border-radius: 11px 11px 11px 4px; font-size: 22px; }
.login-story h1 { margin: 18px 0 10px; font-size: 38px; line-height: 1.25; letter-spacing: -.05em; }
.login-story > p { margin: 0; max-width: none; font-size: 14px; line-height: 1.85; }
.listening-art { min-height: 35px; margin: 12px 0 0; gap: 11px; }
.sound-disc { width: 35px; height: 35px; box-shadow: none; border-color: #d4dfc6; background: #eef2e6; }
.sound-disc::before { display: none; }
.sound-disc svg { width: 33px; height: 33px; }
.art-caption { font-size: 13px; letter-spacing: .1em; }
.story-pills { display: none; }
.login-card { width: 100%; max-width: none; margin: 25px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-card > .eyebrow { display: none; }
.login-card h2 { font-size: 23px; line-height: 1.4; }
.login-card .subhead { margin: 6px 0 19px; font-size: 13px; line-height: 1.7; }
.login-card .field-label { margin: 17px 0 8px; font-size: 14px; }
.login-card .field { min-height: 52px; }
.code-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.code-row .secondary { padding-inline: 12px; font-size: 13px; }
.login-card .primary.wide { min-height: 54px; margin-top: 23px; font-size: 17px; }
.login-note { margin-top: 13px; font-size: 12px; line-height: 1.8; }
.divider { margin: 18px 0 14px; }
.demo-login { min-height: 48px; background: #fcfdf7; }

/* The phone recording controls are close to the recorder status. */
#view-voice .page-heading { gap: 9px; margin-bottom: 17px; }
#view-voice .page-heading h1 { font-size: 30px; line-height: 1.4; }
#view-voice .page-heading p:not(.eyebrow) { font-size: 14px; line-height: 1.75; }
#view-voice .page-heading .tag { padding-block: 6px; }
.record-box { padding: 23px 20px; border-radius: 15px; }
.record-box .record-stage { gap: 12px; margin-bottom: 15px; padding-bottom: 18px; }
.record-box .record-timer { font-size: 32px; }
.record-stage .record-step { margin-bottom: 9px; font-size: 11px; }
.record-box h3 { font-size: 20px; }
.record-box > p { margin-bottom: 15px; font-size: 14px; line-height: 1.8; }
.record-script { margin: 15px 0; padding: 16px 17px; font-size: 17px; line-height: 1.85; }
.record-script > span { margin-bottom: 7px; }
.record-meter-row { margin: 13px 0; }
.record-box .record-consent { margin-bottom: 14px; font-size: 14px; line-height: 1.8; }
.record-controls { gap: 9px; padding-top: 0; }
.record-controls button { flex: 1 1 calc(50% - 9px); min-height: 49px; padding-inline: 10px; font-size: 15px; }
.record-controls #recordButton { flex-basis: 100%; min-height: 55px; font-size: 18px; }
.record-box .record-status { margin-top: 14px; font-size: 13px; }
.trial-card { padding: 25px 22px; }
.trial-card > h3 { font-size: 27px; }
.record-footnote { display: block; margin-top: 25px; padding-top: 20px; }
.record-footnote p { margin-top: 10px; }
.record-script-details { margin: 14px 0; border-top: 1px solid #e0e8d5; border-bottom: 1px solid #e0e8d5; }
.record-script-details summary { min-height: 48px; padding: 14px 1px; color: #4e6d42; font-size: 14px; line-height: 1.6; cursor: pointer; touch-action: manipulation; }
.record-script-details summary:focus-visible { outline: 3px solid #7c9b65; outline-offset: 3px; }
.record-script-details .record-script { margin: 0 0 16px; }

@media (max-width: 374px) {
  .main-area { padding-inline: 17px; }
  .login-screen { padding-inline: 21px; }
  .login-story h1 { font-size: 36px; }
  .topbar-right { flex-direction: row; gap: 6px; }
  .topbar-right .quiet { padding-inline: 8px; font-size: 12px; }
  .profile-select { max-width: 100px; font-size: 12px; }
  .player-card { padding: 22px 20px; }
  .side-stack { grid-template-columns: 1fr 1fr; gap: 11px; }
  .mini-card { padding: 17px 14px; }
  .stat-card { padding-inline: 12px; }
  .record-box { padding-inline: 17px; }
  .record-box h3 { font-size: 19px; }
  .record-box .record-timer { font-size: 29px; }
}

/* The four everyday destinations stay equally reachable on a phone. */
.mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 10px; }
.mobile-nav .nav-button { min-width: 0; min-height: 59px; padding-inline: 3px; }

/* Personal voice: choose a listener, read the complete passage, then listen. */
.voice-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 15px 0 20px;
}
.voice-targets button {
  position: relative;
  min-width: 0;
  min-height: 50px;
  padding: 12px 9px;
  border: 1px solid #d9e3ce;
  border-radius: 9px;
  color: #5a7350;
  background: #f8faf2;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.voice-targets button[aria-pressed="true"] { border-color: #527441; color: #274c2b; background: #eaf1df; box-shadow: inset 0 0 0 1px #527441; font-weight: 650; }
.voice-targets button:hover { border-color: #9db78b; background: #eff4e5; }
.voice-targets button[aria-pressed="true"]:hover { background: #e5eed8; }
.voice-targets button:disabled { transform: none; opacity: .55; }
.voice-targets strong { display: block; font-size: 15px; font-weight: 650; }
.voice-targets small, .voice-targets button > span { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.6; }
.record-box .record-script {
  display: block;
  height: auto;
  max-height: none;
  margin: 16px 0;
  padding: 17px 17px 18px;
  overflow: visible;
  color: #2e5033;
  background: #f0f5e6;
  border: 1px solid #dae5ca;
  border-left: 3px solid #8ca773;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.record-box .record-script > span { margin-bottom: 8px; color: #698456; font-size: 12px; line-height: 1.7; letter-spacing: .07em; }
.record-box .record-script p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.record-box .record-script p + p { margin-top: 9px; }
.record-box[data-state="recording"] .record-script { border-color: #b6cc9f; border-left-color: #598248; background: #eff5e4; }
.record-progress { width: 100%; height: 5px; margin: 15px 0 5px; overflow: hidden; border-radius: 8px; background: #e2ead8; }
.record-progress > i { display: block; width: 0; height: 100%; min-height: 5px; border-radius: inherit; background: #5c8147; transition: width .25s linear; }
.personal-trial-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin: 19px 0 13px; color: #627a53; font-size: 13px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.personal-trial-meta strong { color: #345b33; font-size: 15px; font-weight: 650; }
.personal-question {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 15px 0 18px;
  padding: 24px 22px;
  border: 1px solid #c7d8b7;
  border-radius: 12px;
  color: #294e2f;
  background: #f7faef;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.personal-question p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.personal-question small, .personal-question .eyebrow { display: block; margin: 0 0 12px; color: #6c8659; font-size: 12px; font-weight: 500; line-height: 1.75; letter-spacing: .07em; }
.personal-question:empty { display: none; }
.personal-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; width: 100%; margin-top: 17px; }
.personal-actions button { flex: 1 1 130px; min-width: 0; min-height: 51px; padding: 13px 12px; font-size: 15px; line-height: 1.6; }
.personal-actions .primary { flex-basis: 100%; min-height: 54px; font-size: 17px; }
.personal-actions .wide { margin-top: 0; }
.voice-service-status { margin: 16px 0; padding: 12px 14px; border: 1px solid #dce6d0; border-radius: 8px; color: #60774f; background: #f1f5e9; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.voice-service-status p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.voice-service-status strong { color: #45673a; font-weight: 600; }
.voice-service-status[data-status="error"] { border-color: #ead7bd; color: #86653e; background: #faf3e8; }
.voice-service-status[data-status="ready"] { border-color: #c5d9b3; color: #436638; background: #edf5e4; }
.voice-service-status:empty { display: none; }
@media (max-width: 374px) {
  .voice-targets { gap: 7px; }
  .voice-targets button { padding-inline: 7px; }
  .record-box .record-script { padding-inline: 14px; font-size: 17px; line-height: 1.75; letter-spacing: 0; }
  .personal-question { padding: 21px 18px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .record-progress > i { transition: none; }
}

.prototype-strip summary { cursor:pointer; min-height:28px; line-height:28px; }
.prototype-strip p { margin:9px 0 0; }
/* Keep the recording action in reach on small phones. */
#view-voice .page-heading .eyebrow, #view-voice .page-heading .tag { display:none; }
#view-voice .page-heading { margin-bottom:15px; gap:0; }
#view-voice .page-heading h1 { font-size:28px; }
#view-voice .record-stage { margin-bottom:12px; padding-bottom:12px; }
#view-voice .record-stage .record-step { margin-bottom:6px; }
/* Button-style voice page: compact single-column cards, no scrolling to reach actions. */
#view-voice .voice-card { display:grid; grid-template-columns:1fr; gap:14px; }
#view-voice .record-box { padding:20px 18px; }
#view-voice .record-box .record-controls { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#view-voice .record-box .record-controls #recordButton { grid-column:1 / -1; }
#view-voice .trial-card { padding:20px 18px; }
#view-voice .trial-card .voice-service-status { margin: 8px 0 12px; font-size:13px; }
#view-voice .voice-hero { padding: 26px 20px; }
#view-voice .voice-hero h3 { font-size: 25px; }
#view-voice .voice-hero .hero-generate { padding: 14px 16px; font-size: 17px; }

/* Voice selection and settings share one calm, touch-friendly mobile sheet. */
.voice-picker-sheet { width: 100%; max-width: 440px; max-height: 88dvh; min-width: 0; padding: 25px 21px; overflow: auto; overscroll-behavior: contain; }
.voice-picker-sheet h2 { font-size: 23px; line-height: 1.5; }
.voice-picker-sheet > p { margin: 9px 0 20px; font-size: 14px; line-height: 1.8; }
.voice-picker-sheet .audition-filters { position: sticky; top: -25px; z-index: 1; margin: 0 0 18px; padding: 13px 0; background: #fffffa; }
.voice-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; min-width: 0; }
.voice-picker-grid > *, .voice-picker-sheet .voice-choice { min-width: 0; }
.voice-choice, .voice-picker-grid > button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 89px;
  padding: 16px 14px;
  border: 1px solid #dce5d1;
  border-radius: 10px;
  color: #315436;
  background: #f7faf0;
  text-align: left;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.voice-choice strong, .voice-picker-grid > button strong { font-size: 16px; font-weight: 650; }
.voice-choice small, .voice-picker-grid > button small { color: #6a805a; font-size: 12px; font-weight: 400; line-height: 1.7; }
.voice-choice[aria-pressed="true"], .voice-choice.selected,
.voice-picker-grid > button[aria-pressed="true"] { border-color: #688853; color: #264a2b; background: #eaf2df; box-shadow: inset 0 0 0 1px #688853; }
.voice-choice:hover, .voice-picker-grid > button:hover { border-color: #9bb589; background: #eff5e5; }
.voice-picker-sheet audio { width: 100%; min-width: 0; height: 44px; margin-top: 11px; }
.voice-picker-sheet .voice-preview { display: block; width: 100%; min-height: 48px; margin-top: 11px; border: 0; border-radius: 8px; color: #4a6b3c; background: #edf3e4; font-size: 14px; }
.voice-picker-sheet .modal-actions { position: sticky; bottom: -25px; z-index: 1; margin-top: 19px; padding: 15px 0 0; border-top: 1px solid #e0e7d7; background: #fffffa; }
.settings-list { display: grid; gap: 0; margin: 20px 0; border-top: 1px solid #dee6d3; border-bottom: 1px solid #dee6d3; }
.settings-list > button, .settings-list > a, .settings-list .settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 61px;
  padding: 17px 3px;
  border: 0;
  border-bottom: 1px solid #e2e9d8;
  border-radius: 0;
  color: #345436;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  text-decoration: none;
}
.settings-list > :last-child { border-bottom: 0; }
.settings-list > button:hover, .settings-list > a:hover { background: #edf3e5; transform: none; }
.settings-list button > span:first-child, .settings-list .settings-copy { min-width: 0; flex: 1; }
.settings-list small { display: block; margin-top: 4px; color: #6b805d; font-size: 13px; font-weight: 400; }
.settings-list .settings-value { flex: 0 0 auto; max-width: 45%; color: #708562; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.settings-list .settings-arrow { flex: 0 0 auto; color: #859975; font-size: 22px; font-weight: 400; }
.settings-list .danger { color: #95533f; }
.legal-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; margin: 15px 0 0; color: #657a56; font-size: 13px; line-height: 1.95; }
.legal-consent > span, .legal-consent > div { min-width: 0; }
.legal-consent input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 4px 0 0; accent-color: #416c38; }
.legal-consent label { cursor: pointer; }
.legal-consent a, .legal-consent button { display: inline; min-height: 0; margin: 0; padding: 4px 0; border: 0; border-radius: 0; color: #345f30; background: none; font-size: inherit; font-weight: 650; line-height: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #9eb68a; }
.legal-consent a:hover, .legal-consent button:hover { color: #244920; transform: none; }
.push-setting { margin: 20px 0; padding: 23px 21px; border: 1px solid #dce6cf; border-radius: 13px; background: #f1f6e8; }
.push-setting h3 { margin: 0 0 10px; color: #365932; font-size: 18px; font-weight: 650; line-height: 1.5; }
.push-setting p { margin: 0 0 17px; color: #657c51; font-size: 14px; line-height: 1.85; }
.push-setting .push-state, .push-setting .helper { margin-top: 12px; color: #6d815d; font-size: 13px; }
.push-setting button { min-height: 49px; }
.push-setting .push-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.push-setting .push-actions button { flex: 1 1 120px; min-width: 0; }
.push-setting label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; color: #375b33; font-size: 15px; }
.push-setting input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #527945; }

/* Agreement reading never checks consent or triggers recording. */
.legal-backdrop { position: fixed; z-index: 80; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: max(12px, env(safe-area-inset-top)) 0 0; background: #172b2469; backdrop-filter: blur(4px); }
.legal-document { display: flex; flex-direction: column; width: 100%; max-width: 480px; max-height: calc(100vh - 12px); max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); min-width: 0; overflow: hidden; border: 1px solid #dbe4d0; border-bottom: 0; border-radius: 20px 20px 0 0; background: #fffffa; box-shadow: 0 -15px 65px -25px #192d285c; }
.legal-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 13px; padding: 23px 23px 20px; border-bottom: 1px solid #e0e7d7; }
.legal-header > div { min-width: 0; }
.legal-header .eyebrow { margin: 0 0 9px; color: #6b8359; font-size: 11px; }
.legal-header h2 { margin: 0; color: #2d5032; font-family: "Songti SC", "STSong", serif; font-size: 24px; font-weight: 600; line-height: 1.4; }
.legal-close { flex: 0 0 auto; min-width: 56px; min-height: 48px; padding-inline: 12px; font-size: 14px; }
.legal-body { min-height: 0; overflow: auto; padding: 21px 24px 28px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.legal-body:focus-visible { outline: 2px solid #9bb584; outline-offset: -3px; }
.legal-draft { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #e5e3cb; border-radius: 8px; color: #7a754d; background: #f6f5e9; font-size: 13px; line-height: 1.9; }
.legal-intro { margin: 0 0 23px; color: #4b6744; font-size: 15px; line-height: 1.9; }
.legal-section { margin: 24px 0 0; }
.legal-section h3 { margin: 0 0 9px; color: #345a30; font-size: 17px; font-weight: 650; line-height: 1.7; }
.legal-section p { margin: 0; color: #526c46; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.legal-references { margin-top: 29px; padding-top: 14px; border-top: 1px solid #e0e7d7; }
.legal-references summary { min-height: 48px; padding: 12px 0; color: #5f7b4b; font-size: 14px; line-height: 1.75; cursor: pointer; }
.legal-references a { display: flex; align-items: center; min-height: 48px; margin-top: 4px; padding: 9px 0; color: #486e38; font-size: 13px; line-height: 1.85; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-footer { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 15px; padding: 15px 23px max(15px, env(safe-area-inset-bottom)); border-top: 1px solid #dfe7d5; background: #f7faf0; }
.legal-footer > span { flex: 1; color: #6b805b; font-size: 12px; line-height: 1.8; }
.legal-footer button { min-width: 93px; min-height: 50px; }
@media (max-width: 374px) {
  .voice-picker-sheet { padding-inline: 18px; }
  .voice-picker-grid { gap: 9px; }
  .voice-choice, .voice-picker-grid > button { padding: 15px 12px; }
  .voice-choice strong { font-size: 15px; }
  .legal-header { padding-inline: 20px; }
  .legal-header h2 { font-size: 22px; }
  .legal-body { padding-inline: 21px; }
  .legal-footer { padding-inline: 20px; }
}


/* Full-screen login film. The poster is always present underneath video. */
.login-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  isolation: isolate;
  padding: 55vh max(20px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(75px, env(safe-area-inset-left));
  padding-top: 55svh;
  background: #132a24;
  box-shadow: none;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.login-screen::before { display: none; }
.login-visual { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: #132a24 url("assets/login-background.jpg") left center / cover no-repeat; }
.login-background-video { position: fixed; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: 0; pointer-events: none; }
.login-background-video.is-playing { opacity: 1; }
.login-screen::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.02) 45%, rgba(0,0,0,.18) 100%); }
.login-screen .login-story { position: absolute; top: max(24px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); width: auto; max-width: none; margin: 0; color: #fff; }
.login-screen .brand-mark { display: flex; width: max-content; margin-left: auto; color: #fff; font-size: 21px; }
.login-screen .brand-icon { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.login-screen .login-story h1, .login-screen .login-story > p, .login-screen .listening-art,
.login-screen .login-card > .eyebrow, .login-screen .login-card > .subhead, .login-screen .login-card > .divider { display: none; }
.login-screen .login-card {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 290px;
  min-width: 0;
  align-self: flex-end;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 40px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
/* Labels and the form heading remain available to screen readers. */
.login-screen .login-card > h2, .login-screen .login-card > .field-label { 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; }
.login-screen .field, .login-screen .code-row .secondary, .login-screen .primary.wide, .login-screen .demo-login {
  min-width: 0;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.login-screen .field { font-size: 16px; caret-color: #fff; scroll-margin-block: 24px; }
.login-screen .field::placeholder { color: rgba(255,255,255,.88); opacity: 1; }
.login-screen .field:focus { border-color: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
.login-screen .code-row { grid-template-columns: minmax(0,1fr) 100px; gap: 6px; }
.login-screen .code-row .field { padding-inline: 8px; }
.login-screen .code-row .secondary { padding-inline: 4px; font-size: 12px; font-weight: 600; }
.login-screen .primary.wide { background: rgba(255,255,255,.12); font-size: 16px; font-weight: 650; }
.login-screen .demo-login { font-size: 13px; font-weight: 500; }
.login-screen .demo-login span { color: #fff; }
.login-screen .primary.wide:hover, .login-screen .code-row .secondary:hover, .login-screen .demo-login:hover { background: rgba(255,255,255,.18); transform: none; box-shadow: none; }
.login-screen button:disabled { opacity: .62; }
.login-screen button:focus-visible, .login-screen .login-consent-check:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.login-screen .login-note { min-height: 18px; margin: 0; color: rgba(255,255,255,.94); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.login-screen .login-note:empty { display: none; }
.login-screen .legal-consent { align-items: center; gap: 2px; min-height: 0; margin: 0; color: #fff; font-size: 12px; line-height: 18px; }
.login-screen .login-consent-check { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; }
.login-screen .legal-consent input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: #fff; }
.login-screen .login-consent-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.login-screen .login-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.login-screen .legal-consent button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: #fff; font-size: 12px; line-height: 18px; text-shadow: 0 1px 3px rgba(0,0,0,.5); text-decoration-color: rgba(255,255,255,.65); }
.login-screen .legal-consent button:hover { color: #fff; }
.login-screen .field:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; transition: background-color 9999s ease-out; }
@media (max-width: 359px) { .login-screen .login-card { padding: 10px; gap: 6px; } .login-screen .code-row { grid-template-columns: minmax(0,1fr) 94px; } .login-screen .login-legal-links { gap: 2px; } }
/* Flow layout stays scrollable when the screen is short or the keyboard opens. */
@media (max-height: 600px) { .login-screen { justify-content: flex-start; padding-top: max(180px, 45svh); padding-bottom: max(28px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .login-background-video { display: none; } }

/* Keep the mobile canvas at its designed scale while allowing normal scrolling. */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
input, select, textarea { font-size: max(16px, 1em); }

/* Every personal-page row shares the same icon, label, value and arrow columns. */
#view-records .page-heading { margin-bottom: 14px; }
#view-records .settings-list { margin: 0 0 10px; padding: 0 12px; overflow: hidden; border: 1px solid #e1e7dc; border-radius: 14px; background: #fffffc; }
#view-records .settings-list > button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 10px; gap: 8px; min-height: 40px; padding: 8px 0; }
#view-records .settings-icon { display: grid; place-items: center; width: 22px; color: #63816b; font-size: 17px; line-height: 1; }
#view-records .settings-copy { min-width: 0; font-size: 14px; }
#view-records .settings-value { max-width: none; font-size: 13px; font-variant-numeric: tabular-nums; }
#view-records .settings-arrow { text-align: right; font-size: 16px; }
#view-records .settings-logout { margin-top: 0; }
#view-records .settings-logout .settings-copy, #view-records .settings-logout .settings-icon { color: #63816b; }
#view-records .settings-logout .settings-arrow { color: #859975; }
.voice-preview-title { margin: 26px 0 12px; padding-top: 23px; border-top: 1px solid #d3dfc9; font-size: 17px; font-weight: 600; }
.personal-membership-note { margin-top: 16px !important; }
#usePersonalOnHome { margin-top: 14px; }
.plan-section-title { font-size: 18px; }
.plan-summary small { font-size: 12px; font-weight: 500; color: #73806d; }
#paymentStatus { margin: 15px 0 0; }

/* ---- Record modal ---- */
.record-modal .section-head { margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-modal .section-head h2 { font-size: 19px; }
.record-modal .record-controls { margin: 4px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.record-modal #submitEnroll { margin-top: 2px; }
.record-modal .record-footnote { margin-top: 14px; text-align: center; }
.record-modal .record-status { margin-top: 12px; }

/* Botanical mobile canvas: four full-height rooms, one shared touch language. */
:root {
  --paper: #f4f2e9;
  --ink: #233e33;
  --muted: #758273;
  --green: #386148;
  --green-dark: #254c39;
  --green-pale: #e4eadb;
  --line: #dde1d2;
  --warm: #cfa26d;
  --leaf-shadow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 240'%3E%3Cg fill='%23132b1a'%3E%3Cpath d='M-12 242Q68 164 222-10M56 177Q55 96 138 25M112 109Q212 108 284 37' fill='none' stroke='%23132b1a' stroke-width='5'/%3E%3Cellipse cx='41' cy='160' rx='12' ry='27' transform='rotate(-40 41 160)'/%3E%3Cellipse cx='85' cy='170' rx='11' ry='25' transform='rotate(48 85 170)'/%3E%3Cellipse cx='67' cy='121' rx='13' ry='28' transform='rotate(-30 67 121)'/%3E%3Cellipse cx='116' cy='136' rx='13' ry='29' transform='rotate(49 116 136)'/%3E%3Cellipse cx='110' cy='70' rx='13' ry='27' transform='rotate(-38 110 70)'/%3E%3Cellipse cx='156' cy='83' rx='13' ry='30' transform='rotate(40 156 83)'/%3E%3Cellipse cx='164' cy='22' rx='12' ry='29' transform='rotate(-33 164 22)'/%3E%3Cellipse cx='199' cy='51' rx='12' ry='25' transform='rotate(48 199 51)'/%3E%3Cellipse cx='202' cy='104' rx='10' ry='24' transform='rotate(-4 202 104)'/%3E%3Cellipse cx='246' cy='85' rx='10' ry='24' transform='rotate(55 246 85)'/%3E%3Cellipse cx='271' cy='36' rx='10' ry='22' transform='rotate(-4 271 36)'/%3E%3Cpath d='M214 234q-5-41 30-82' fill='none' stroke='%23132b1a' stroke-width='3'/%3E%3Cellipse cx='221' cy='204' rx='7' ry='16' transform='rotate(-34 221 204)'/%3E%3Cellipse cx='239' cy='192' rx='7' ry='16' transform='rotate(47 239 192)'/%3E%3Ccircle cx='246' cy='151' r='8'/%3E%3Cellipse cx='246' cy='135' rx='7' ry='11'/%3E%3Cellipse cx='260' cy='145' rx='11' ry='7' transform='rotate(-22 260 145)'/%3E%3Cellipse cx='255' cy='163' rx='7' ry='11' transform='rotate(-30 255 163)'/%3E%3Cellipse cx='236' cy='163' rx='7' ry='11' transform='rotate(30 236 163)'/%3E%3Cellipse cx='231' cy='145' rx='11' ry='7' transform='rotate(22 231 145)'/%3E%3C/g%3E%3C/svg%3E");
}
html, body { background: #e6e9df; }
body:has(.app-shell[data-main-screen]:not(.hidden)) { height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.app-shell[data-main-screen] {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 96% 3%, #e3e8d8 0, transparent 34%), #f4f2e9;
}
.app-shell[data-main-screen] .main-area {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  gap: 17px;
  min-height: 0;
  padding: max(18px, env(safe-area-inset-top)) 22px 13px;
  overflow: hidden;
}
.app-shell[data-main-screen] .topbar { min-height: 0; height: 48px; margin: 0; padding: 0; gap: 12px; border: 0; align-items: center; }
.app-shell[data-main-screen] .topbar-title small { font-size: 10px; letter-spacing: .14em; line-height: 1.2; color: #6d8168; }
.app-shell[data-main-screen] .topbar-title strong { font-size: 13px; font-weight: 500; color: #758273; line-height: 1.4; }
.app-shell[data-main-screen] .topbar-right .quiet { width: 44px; min-height: 44px; padding: 0; border: 1px solid #d4dcc8; border-radius: 50% 50% 50% 17%; background: #f9faf1; color: #567348; font-size: 11px; }
.app-shell[data-main-screen] .content { display: flex; flex-direction: column; min-height: 0; width: 100%; overflow: hidden; gap: 10px; }
.app-shell[data-main-screen] .content > section:not(.hidden) { flex: 1; width: 100%; min-height: 0; max-height: none; margin: 0; }
.app-shell[data-main-screen="detail"] .content { overflow-y: auto; overscroll-behavior: contain; padding-right: 1px; }
.app-shell[data-main-screen="detail"] .content > section:not(.hidden) { flex: 0 0 auto; }
.app-shell[data-main-screen] .membership-banner { flex: 0 0 auto; flex-direction: row; gap: 10px; padding: 10px 12px; border-radius: 16px; }
.app-shell[data-main-screen] .membership-banner strong { font-size: 13px; }
.app-shell[data-main-screen] .membership-banner p { font-size: 11px; margin: 4px 0 0; line-height: 1.4; }
.app-shell[data-main-screen] .membership-banner .secondary { flex: 0 0 auto; min-height: 44px; padding: 7px 10px; font-size: 12px; }
:is(.app-shell, #modalRoot) :is(.primary, .secondary, .quiet, .danger, .audition-filter, .category-chip) { border-radius: 21px 21px 7px 21px; font-weight: 500; }
:is(.app-shell, #modalRoot) .primary { border: 1px solid #4c7145; color: #fffef1; background: #456b42; box-shadow: 0 8px 18px -14px #476541aa; }
:is(.app-shell, #modalRoot) .secondary { border: 1px solid #d4dec3; color: #577244; background: #e5ecd8; }
:is(.app-shell, #modalRoot) .quiet { color: #758465; background: #ecefdf; }
:is(.app-shell, #modalRoot) .danger { color: #a37955; background: #f1e8d8; }
.app-shell[data-main-screen] .page-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.app-shell[data-main-screen] .page-heading h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 34px; font-weight: 500; line-height: 1.25; letter-spacing: .01em; }
.app-shell[data-main-screen] .page-heading p { margin: 0; font-size: 12px; line-height: 1.55; }
.home-kicker { margin: 0 0 5px !important; color: #819374; font-size: 10px !important; font-weight: 600; letter-spacing: .21em; line-height: 1.2 !important; }
.home-leaf { width: 38px; height: 45px; color: #8b9f74; font-size: 40px; line-height: 1; transform: rotate(19deg); }

/* The question lives on a sunlit page; playback controls sit within easy reach. */
#view-home { display: grid; grid-template-rows: auto minmax(0, 1fr) 100px; gap: 16px; overflow: hidden; }
#view-home .player-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 21px 21px 17px;
  border: 1px solid #dbe1cd;
  border-radius: 10px 38px 10px 38px;
  color: #233e33;
  background: radial-gradient(ellipse at 92% 0, #e8edd9, transparent 55%), linear-gradient(145deg, #fffff7, #f8faef);
  box-shadow: 0 12px 28px -23px #354a2899, inset 0 1px 0 #fff;
}
#view-home .player-card::after { inset: 0 0 auto auto; width: 165px; height: 155px; border: 0; border-radius: 0; opacity: .08; background: var(--leaf-shadow) right top / 100% auto no-repeat; box-shadow: none; transform: rotate(6deg); }
#view-home .player-top { flex: 0 0 auto; min-height: 20px; }
#view-home .live-label { color: #79836a; font-size: 11px; }
#view-home .live-dot { width: 5px; height: 5px; background: #73925d; box-shadow: 0 0 0 4px #e2ead4; }
#view-home .question-area { flex: 1 1 auto; min-height: 0; padding: 16px 0; justify-content: center; }
#view-home .question-text { max-width: 100%; margin: 0; font-family: "Songti SC", "STSong", serif; font-size: var(--question-size, clamp(23px, 3.4dvh, 30px)); font-weight: 500; line-height: 1.55; letter-spacing: .01em; color: #274737; overflow-wrap: anywhere; }
#view-home .question-placeholder { margin: 0; color: #526d4c; font-family: "Songti SC", "STSong", serif; font-size: 28px; line-height: 1.7; font-weight: 400; }
#view-home .question-label { margin-bottom: 12px; font-size: 10px; color: #819472; }
#view-home .player-bottom { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; border-top: 1px solid #dde4d1; padding-top: 13px; }
#view-home .player-bottom > .quiet { flex: 1; min-width: 0; min-height: 44px; padding: 7px 3px; text-align: left; background: transparent; color: #547145; font-size: 11px; line-height: 1.4; border-radius: 11px; }
#view-home .player-actions { position: static; flex: 0 0 auto; align-self: center; gap: 4px; }
#view-home .icon-btn { min-width: 44px; width: 44px; height: 44px; min-height: 44px; border: 0; border-radius: 13px; color: #7e8c70; background: #edf0e5; font-size: 20px; }
#view-home .icon-btn.selected { color: #a96e46; background: #f2e8d9; }
#view-home .play-controls.transport { display: grid; grid-template-columns: .66fr 1fr 1fr .66fr; align-items: center; margin: 0; gap: 10px; height: 100px; }
#view-home .transport .play-big, #view-home .transport .stop-big { display: flex; flex-direction: column; gap: 7px; width: 100%; height: 96px; min-height: 96px; padding: 12px 5px; border-radius: 46% 46% 46% 18%; font-size: 16px; font-weight: 600; }
#view-home .transport .play-big { color: #ffffef; border: 1px solid #426c43; background: linear-gradient(145deg, #658548, #3c6742 64%); box-shadow: inset 0 1px 0 #b9ce944d, 0 10px 22px -14px #365f40aa; }
#view-home .transport .stop-big { color: #8b7452; border: 1px solid #e0d9c8; border-radius: 46% 46% 18% 46%; background: #efeadb; box-shadow: inset 0 1px 0 #fff, 0 10px 22px -19px #8b7452aa; }
#view-home .transport .control-symbol { font-size: 22px; line-height: 1; }
#view-home .transport .control-name { font-size: 18px; letter-spacing: .06em; }
#view-home .transport-side { height: 64px; min-height: 64px; padding: 9px 2px; border: 1px solid #d9dfcd; border-radius: 24px 24px 9px 24px; background: #e9edde; color: #728260; font-size: 10px; font-weight: 500; box-shadow: none; }
#view-home .transport-side:last-child { border-radius: 24px 24px 24px 9px; }
#view-home .transport-side .t-ico { font-size: 16px; }

/* A personal voice starts as a seed and grows into the page's main action. */
#view-voice { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 18px; overflow: hidden; }
#view-voice .page-heading { display: block; margin: 0; }
#view-voice .page-heading h1 { font-size: 34px; }
#view-voice .page-heading .page-sub { max-width: 270px; margin: 8px 0 0; color: #7b876f; font-size: 12px; line-height: 1.65; }
#view-voice .voice-card { display: flex; width: 100%; min-height: 0; gap: 0; }
#view-voice .voice-hero { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto auto; align-items: end; gap: 14px; width: 100%; height: 100%; min-height: 0; padding: 25px; border: 1px solid #dbe1cd; border-radius: 38px 10px 38px 10px; background: radial-gradient(ellipse at 50% 32%, #e4ead5, transparent 53%), #fafbf1; box-shadow: 0 12px 28px -23px #354a2855; }
#view-voice .voice-emblem { position: relative; display: grid; align-self: center; place-items: center; justify-self: center; width: 120px; height: min(120px, 100%); min-height: 40px; color: #5d7d46; }
#view-voice .voice-emblem svg { max-width: 190px; width: min(62%, 190px); max-height: 90%; height: 100%; filter: drop-shadow(0 12px 18px #778a6433); }
#view-voice .voice-emblem span { position: relative; z-index: 1; display: grid; place-items: center; width: 94px; height: min(94px, 100%); border: 1px solid #cbd7b8; border-radius: 50% 50% 17% 50%; color: #7d995f; background: #eef2df; font-size: 48px; box-shadow: 0 17px 20px -19px #668343aa, inset 0 0 0 7px #f9faef; transform: rotate(-10deg); }
#view-voice .voice-emblem i { position: absolute; width: 18px; height: 40px; border: 1px solid #acbe92; border-radius: 100% 0 100% 0; background: #d7e2bf; transform: rotate(22deg); }
#view-voice .voice-emblem i:nth-of-type(1) { right: 2px; top: 10%; }
#view-voice .voice-emblem i:nth-of-type(2) { right: -7px; top: 46%; width: 13px; height: 30px; transform: rotate(47deg); }
#view-voice .voice-emblem i:nth-of-type(3) { left: 0; bottom: 5%; width: 14px; height: 32px; transform: rotate(-68deg); }
#view-voice .voice-intro { text-align: center; }
#view-voice .voice-intro h2 { margin: 0; color: #537343; font-family: "Songti SC", "STSong", serif; font-size: 22px; font-weight: 500; }
#view-voice .voice-intro p { margin: 9px 0 0; color: #899577; font-size: 11px; line-height: 1.7; }
#view-voice .voice-hero .hero-generate, #view-voice .voice-hero .hero-audition { width: 100%; min-height: 58px; margin: 0; padding: 15px; border-radius: 24px 24px 8px 24px; border: 1px solid #527646; font-size: 16px; font-weight: 600; color: #fffef0; background: #436b43; box-shadow: 0 8px 16px -12px #426742aa; }
#view-voice .voice-hero .hero-audition { color: #547246; background: #e8eedc; border-color: #d4dec5; border-radius: 24px 8px 24px 24px; box-shadow: none; }
#view-voice .voice-hero .hero-generate:disabled, #view-voice .voice-hero .hero-audition:disabled { color: #78896e; background: #e4e9d9; border-color: #d8dfcc; opacity: .8; box-shadow: none; }
#view-voice .voice-service-status { margin: 0; min-height: 32px; color: #78856e; font-size: 12px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }

/* Family lists have tabs and pages; the surrounding room never moves. */
#view-family { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 15px; overflow: hidden; }
#view-family .family-head { margin: 0; }
#view-family .family-head .primary { min-height: 44px; padding: 10px 13px; border: 1px solid #d3dcc3; border-radius: 22px 22px 7px 22px; color: #527141; background: #e3e9d7; font-size: 12px; box-shadow: none; }
.family-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 4px; border: 1px solid #dce2ce; border-radius: 16px; background: #ecefdf; }
.family-tabs button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-width: 0; min-height: 48px; padding: 6px 1px; border: 0; border-radius: 12px; color: #7c886d; background: transparent; font-size: 10px; }
.family-tabs button[aria-selected="true"], .family-tabs button.active { color: #45673b; background: #fffff4; box-shadow: 0 2px 8px #5466410d; font-weight: 600; }
.family-tabs button small, .family-tabs .family-count { font-size: 10px; opacity: .75; }
.family-stage { display: flex; flex-direction: column; min-height: 0; padding: 23px 18px; border: 1px solid #dce2ce; border-radius: 10px 32px 10px 32px; background: #fcfcf4; }
.family-stage .family-block-title { flex: 0 0 auto; margin: 0 0 18px; font-family: "Songti SC", "STSong", serif; color: #526a43; font-size: 20px; font-weight: 500; }
.family-stage .member-list { display: grid; grid-auto-rows: minmax(0, 1fr); flex: 1; min-height: 0; gap: 0; }
.family-stage > .member-row { flex: 1; }
.family-stage .member-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: center; align-items: center; gap: 8px 10px; min-height: 0; padding: 16px 0; }
.family-stage .member-row .avatar { width: 40px; height: 40px; border-radius: 16px 16px 6px 16px; background: #e7edda; color: #6d8953; font-size: 16px; }
.family-stage .member-row .member-info { min-width: 0; }
.family-stage .member-row strong { display: block; color: #3e5b39; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.family-stage .member-row small { display: block; margin-top: 5px; color: #7b886d; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.family-stage .member-row > .quiet, .family-stage .member-actions { grid-column: 2; justify-self: start; margin: 0; }
.family-stage .member-row .quiet, .family-stage .member-row .secondary { min-height: 44px; padding: 7px 13px; border: 1px solid #dae1ce; border-radius: 18px 18px 6px 18px; color: #728361; background: #eef1e4; font-size: 11px; }
.family-stage .member-actions { display: flex; gap: 7px; }
.family-stage .family-empty { display: grid; place-content: center; flex: 1; min-height: 0; margin: 0; color: #829173; font-family: "Songti SC", "STSong", serif; font-size: 18px; line-height: 1.8; text-align: center; }
.family-empty-branch { display: block; margin-bottom: 12px; color: #a2b08b; font-size: 56px; line-height: 1; }
.family-stage .family-empty h2 { margin: 0; font-size: 23px; font-weight: 500; }
.family-stage .family-empty p { max-width: 240px; margin: 12px auto 20px; color: #929d83; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; font-size: 12px; line-height: 1.75; }
.family-stage .family-empty button { min-height: 44px; justify-self: center; padding: 11px 24px; border-radius: 22px 22px 7px 22px; font-size: 13px; }
.family-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.family-pagination button { min-width: 78px; min-height: 44px; padding: 8px 13px; border: 1px solid #d9dfcb; border-radius: 18px 18px 6px 18px; color: #6f835b; background: #e9edde; font-size: 12px; }
.family-pagination span { color: #929d82; font-size: 11px; font-variant-numeric: tabular-nums; }

/* The personal room pairs the useful actions instead of stacking long rows. */
#view-records { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 17px; overflow: hidden; }
.profile-card { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 15px; border: 1px solid #dde3d0; border-radius: 22px 7px 22px 7px; background: #fcfcf2; }
.profile-card .avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50% 50% 17% 50%; color: #64824f; background: #e5ebd8; }
.profile-card strong { display: block; color: #46613c; font-family: "Songti SC", "STSong", serif; font-size: 18px; font-weight: 500; }
.profile-card small, .profile-card p { display: block; margin: 4px 0 0; color: #8a957c; font-size: 11px; }
.profile-branch { flex: 1; color: #a9b790; font-size: 40px; line-height: 1; text-align: right; }
.profile-exit { min-height: 44px; padding: 9px 14px; border: 1px solid #dce2ce; border-radius: 19px 19px 6px 19px; color: #929a80; background: #edeedf; font-size: 11px; }
.records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(72px, 1fr); gap: 12px; min-height: 0; }
.settings-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-width: 0; min-height: 72px; padding: 17px; border: 1px solid #dce2ce; border-radius: 9px 28px 9px 28px; color: #4d6b40; background: #fafbf1; text-align: left; box-shadow: none; }
.settings-tile:nth-child(2n) { border-radius: 28px 9px 28px 9px; }
.settings-tile .settings-icon { display: block; width: auto; color: #779461; font-size: 22px; line-height: 1; }
.settings-tile .settings-copy { font-size: 16px; font-weight: 500; line-height: 1.4; }
.settings-tile .settings-value, .settings-tile .settings-detail { color: #939f82; font-size: 10px; line-height: 1.45; }
.settings-tile .settings-arrow { display: none; }
.settings-tile.danger { color: #8a876e; }
.services-sheet .settings-list { margin: 10px 0 0; border: 0; }
.services-sheet .settings-list > button { display: flex; min-height: 58px; padding: 13px 0; font-size: 14px; }
.services-sheet .settings-icon { width: 24px; flex: 0 0 auto; color: #779461; font-size: 18px; }
.services-sheet .settings-copy { flex: 1; }

/* A hand-painted botanical shade follows fingers over every enabled button. */
:is(.app-shell, #modalRoot) button { position: relative; isolation: isolate; overflow: hidden; touch-action: none; }
:is(.app-shell, #modalRoot) button::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 135px;
  top: calc(var(--leaf-y, 50%) - 67px);
  left: calc(var(--leaf-x, 50%) - 90px);
  background: var(--leaf-shadow) center / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: blur(.5px);
  transform: rotate(-12deg);
  transition: opacity .22s ease;
  mix-blend-mode: multiply;
}
:is(.app-shell, #modalRoot) button.botanical-active::after { opacity: .36; }
:is(.app-shell, #modalRoot) button.botanical-dragged::after { opacity: .58; }
:is(.app-shell, #modalRoot) button:not(:disabled) { transition: background .18s ease, box-shadow .18s ease, transform .12s ease; }
:is(.app-shell, #modalRoot) button:not(:disabled).botanical-active { box-shadow: inset 0 1px 10px #65764a15, 0 5px 16px -10px #63825366; }
:is(.app-shell, #modalRoot) button:not(:disabled):active { transform: scale(.985); }
:is(.app-shell, #modalRoot) button:focus-visible { outline: 2px solid #91a276; outline-offset: 3px; }
.app-shell[data-main-screen] .mobile-nav { position: relative; inset: auto; width: 100%; min-height: 86px; margin: 0; padding: 7px 14px max(10px, env(safe-area-inset-bottom)); gap: 8px; border-top: 1px solid #dee3d1; border-radius: 27px 27px 0 0; background: #f9faf0; backdrop-filter: none; box-shadow: 0 -8px 28px -24px #3e522955; }
.app-shell[data-main-screen] .mobile-nav .nav-button { min-width: 0; min-height: 63px; padding: 8px 1px; gap: 5px; border: 1px solid transparent; border-radius: 23px 23px 7px 23px; font-size: 13px; font-weight: 500; color: #748461; }
.app-shell[data-main-screen] .mobile-nav .nav-button.active { color: #5a7d41; border-color: #dde5cb; background: #e8efda; box-shadow: none; }
.app-shell[data-main-screen] .mobile-nav .nav-icon { width: 23px; height: 24px; color: inherit; font-size: 24px; line-height: 1; }
.app-shell[data-main-screen] .mobile-nav .nav-icon svg { width: 23px; height: 24px; stroke: currentColor; }
.modal { border: 1px solid #e1e5d5; border-radius: 30px 10px 30px 10px; background: #fffff7; box-shadow: 0 25px 75px -30px #24362988; }
.modal .primary, .modal .secondary, .modal .quiet { border-radius: 20px 20px 7px 20px; }
.toast { border: 1px solid #718565; background: #3f5e40; border-radius: 16px 16px 5px 16px; color: #fffef1; box-shadow: 0 9px 25px -13px #355436aa; }

@media (max-height: 760px) {
  .app-shell[data-main-screen] .main-area { gap: 12px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 10px; }
  .app-shell[data-main-screen] .page-heading h1, #view-voice .page-heading h1 { font-size: 30px; }
  #view-home { gap: 12px; grid-template-rows: auto minmax(0, 1fr) 86px; }
  #view-home .player-card { padding: 17px 18px 13px; }
  #view-home .question-placeholder { font-size: 25px; line-height: 1.55; }
  #view-home .play-controls.transport { height: 86px; gap: 8px; }
  #view-home .transport .play-big, #view-home .transport .stop-big { height: 82px; min-height: 82px; }
  #view-voice { gap: 12px; }
  #view-voice .voice-hero { padding: 20px; gap: 11px; }
  #view-voice .voice-hero .hero-generate, #view-voice .voice-hero .hero-audition { min-height: 52px; padding: 12px; }
  #view-family { gap: 11px; }
  .family-stage { padding: 17px 16px; }
  .family-stage .family-block-title { margin-bottom: 10px; font-size: 18px; }
  .family-stage .member-row { padding-block: 10px; gap: 5px 8px; }
  #view-records { gap: 12px; }
  .records-grid { gap: 9px; }
  .settings-tile { padding: 13px 15px; gap: 6px; }
  .app-shell[data-main-screen] .mobile-nav { min-height: 78px; padding-top: 5px; padding-bottom: max(7px, env(safe-area-inset-bottom)); }
  .app-shell[data-main-screen] .mobile-nav .nav-button { min-height: 59px; }
}
@media (max-width: 374px) {
  .app-shell[data-main-screen] .main-area { padding-inline: 17px; }
  #view-home .player-card { padding-inline: 16px; }
  #view-home .icon-btn { min-width: 36px; width: 36px; }
  #view-home .transport-side { font-size: 9px; }
  .app-shell[data-main-screen] .mobile-nav { padding-inline: 10px; gap: 5px; }
  .family-tabs button { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.app-shell, #modalRoot) button::after { transition: none; }
  :is(.app-shell, #modalRoot) button:not(:disabled):active { transform: none; }
}

/* Profile entry and editing share a single, fixed mobile form. */
.app-shell[data-main-screen="profile"] { grid-template-rows: minmax(0, 1fr); }
.app-shell[data-main-screen="profile"] .mobile-nav { display: none; }
.app-shell[data-main-screen="profile"] #accountButton { visibility: hidden; }
#view-profile { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; overflow: hidden; }
.profile-form { display: flex; flex-direction: column; min-height: 0; height: 100%; padding: 24px; gap: 14px; border: 1px solid #dbe1cd; border-radius: 10px 36px 10px 36px; background: #fcfcf4; }
.profile-form-intro { flex: 1 1 auto; display: grid; place-content: center; min-height: 50px; text-align: center; }
.profile-form-intro > span { display: block; color: #90a477; font-size: 48px; line-height: 1; }
.profile-form-intro p { max-width: 255px; margin: 8px auto 0; color: #7b876f; font-size: 12px; line-height: 1.65; }
.profile-form .field-label { flex: 0 0 auto; margin: 0 0 -7px; color: #45643a; font-size: 14px; }
.profile-form .field { flex: 0 0 auto; min-height: 56px; width: 100%; margin: 0; border: 1px solid #d5dec9; border-radius: 18px 18px 6px 18px; color: #315039; background: #f3f6e9; font-size: 16px; }
.profile-gender { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
.profile-gender legend { margin-bottom: 9px; color: #45643a; font-size: 14px; }
.profile-gender-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-gender-choices label { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border: 1px solid #d5dec9; border-radius: 19px 19px 6px 19px; color: #607950; background: #f0f4e6; font-size: 16px; cursor: pointer; }
.profile-gender-choices label:has(input:checked) { color: #355b38; background: #e1ecd2; border-color: #8ba774; box-shadow: inset 0 0 0 1px #8ba77433; }
.profile-gender-choices input { width: 20px; height: 20px; margin: 0; accent-color: #537944; }
.profile-save-status { flex: 0 0 auto; min-height: 18px; margin: 0; color: #987248; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-form #saveProfileButton { flex: 0 0 auto; min-height: 56px; margin: 0; font-size: 16px; }
.profile-card > div { flex: 1; min-width: 0; }
.profile-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-gender-label { display: inline-block; margin-left: 10px; padding: 1px 6px; border-radius: 9px 9px 3px 9px; color: #789165; background: #edf2e3; font-size: 10px; }
.profile-card .profile-edit { flex: 0 0 auto; min-height: 44px; padding: 8px 13px; border: 1px solid #d6dfc9; border-radius: 19px 19px 6px 19px; color: #607d4e; background: #eef3e3; font-size: 12px; }
@media (max-height: 760px) {
  #view-profile { gap: 12px; }
  .profile-form { padding: 19px; gap: 12px; }
  .profile-form-intro > span { font-size: 38px; }
}
@media (max-height: 570px) {
  .profile-form { padding: 13px 17px; gap: 8px; }
  .profile-form-intro { flex: 0 0 auto; min-height: 0; }
  .profile-form-intro > span, .profile-form-intro p { display: none; }
  .profile-form .field, .profile-form #saveProfileButton, .profile-gender-choices label { min-height: 46px; }
}

/* Settings show one short group at a time, keeping every action in reach. */
.modal.services-sheet { padding: 21px 20px; overflow: hidden; }
.services-sheet .section-head { align-items: center; margin-bottom: 18px; }
.services-sheet .section-head h2 { margin: 0; font-size: 22px; }
.services-sheet .section-head > button { min-height: 44px; margin: 0; }
.services-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.services-tabs > button { min-height: 46px; padding: 10px 6px; border: 1px solid #dbe4cc; border-radius: 19px 19px 7px 19px; color: #718360; background: #f2f5e9; font-size: 13px; }
.services-tabs > button[aria-selected="true"] { color: #45653c; background: #e3edcf; border-color: #9eb487; font-weight: 650; }
.services-sheet .settings-list { margin-top: 14px; }
.services-sheet .settings-list > button { min-height: 54px; padding: 11px 0; }
#view-home .transport-side { justify-content: center; font-size: 13px; }
#view-home .transport-side .t-txt { line-height: 1.5; }

/* Keep the complete fixed recording script and start action inside phone safe areas. */
.modal.record-modal { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px); padding: 16px 18px; }
.record-modal .section-head { margin-bottom: 6px; }
.record-modal .section-head h2 { margin: 0; font-size: 19px; }
.record-modal .section-head > button { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; }
.record-modal .record-stage { display: flex; align-items: center; justify-content: space-between; min-height: 38px; margin: 0 0 6px; padding: 0; border: 0; background: transparent; }
.record-modal .record-stage .record-step { margin: 0; font-size: 12px; }
.record-modal .record-timer { font-size: 28px; }
.record-modal .voice-targets { margin: 4px 0 8px !important; }
.record-modal .voice-targets > button { min-height: 44px; padding: 8px; }
.record-modal .record-script-panel { margin: 0 0 8px; padding: 10px; }
.record-modal .record-script-panel > p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }
.record-modal .record-script { padding: 8px 10px; font-size: 16px; line-height: 1.65; letter-spacing: 0; }
.record-modal .record-consent { align-items: flex-start; margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.record-modal .record-consent input { flex: 0 0 auto; margin-top: 3px; }
.record-modal .record-controls { margin: 0; gap: 6px; }
.record-modal .record-controls > button { min-height: 48px; padding-block: 10px; }
.record-modal .record-status { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.record-modal .record-status:empty { display: none; }
.record-modal .record-footnote { margin: 4px 0 0; padding: 0; border: 0; }
.record-modal .record-footnote > button { min-height: 44px; padding: 8px 10px; font-size: 12px; }
.record-modal .record-meter-row { min-height: 24px; margin: 6px 0; }
.record-modal .record-progress { margin: 6px 0; }
.record-modal[data-state="recording"] .voice-targets,
.record-modal[data-state="recording"] .record-consent,
.record-modal[data-state="recording"] .record-footnote { display: none; }
@media (max-height: 700px) {
  .modal.record-modal { padding: 12px 14px; }
  .record-modal .record-stage { display: none; }
  .record-modal[data-state="recording"] .record-stage { display: flex; }
  .record-modal .record-script-panel { padding: 8px; }
  .record-modal .record-script { padding: 5px 7px; font-size: 14px; line-height: 1.55; }
  .record-modal .record-consent { font-size: 12.5px; }
}

/* Voice ownership controls share one row; neither action changes family links. */
#view-voice .voice-management { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
#view-voice .voice-management > button { min-height: 44px; min-width: 0; padding: 8px 11px; font-size: 12px; }

/* The complete voice authorization stays beside the recording dialog title. */
.record-modal .section-head h2 { flex: 1; min-width: 0; }
.record-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.record-modal .record-header-actions > button { min-height: 44px; min-width: 44px; padding: 8px 4px; font-size: 12px; }
@media (max-height: 700px) {
  .record-modal .record-script-panel { padding: 6px; margin-bottom: 6px; }
  .record-modal .voice-targets { margin-bottom: 6px !important; }
  .record-modal .record-consent { margin-bottom: 6px; }
}

/* Share one header row on short phones, leaving the full question readable. */
@media (max-height: 640px) {
  .app-shell[data-main-screen="home"] .main-area { position: relative; grid-template-rows: minmax(0, 1fr); gap: 0; }
  .app-shell[data-main-screen="home"] .topbar { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 22px; z-index: 2; width: 44px; height: 44px; }
  .app-shell[data-main-screen="home"] .topbar-title { display: none; }
  #view-home .page-heading { min-height: 44px; padding-right: 54px; }
  #view-home .home-leaf { display: none; }
  #view-home .question-area { padding-block: 6px; }
  .app-shell[data-main-screen="home"].has-update .topbar { display: none; }
  .app-shell[data-main-screen="home"].has-update .membership-banner { padding-block: 4px; }
  .app-shell[data-main-screen="home"].has-update .membership-banner p { display: none; }
}
@media (max-height: 640px) and (max-width: 374px) {
  .app-shell[data-main-screen="home"] .topbar { right: 17px; }
}

/* These modes are applied only after measuring overflow at the 20 px floor. */
#view-home.question-fit-compact { gap: 8px; }
#view-home.question-fit-compact .player-card { padding-block: 10px; }
#view-home.question-fit-compact .question-area { padding-block: 4px; }
#view-home.question-fit-compact .player-bottom { padding-top: 8px; }
#view-home.question-fit-dense { grid-template-rows: minmax(0, 1fr) 74px; }
#view-home.question-fit-dense .page-heading { display: none; }
#view-home.question-fit-dense .question-text { line-height: 1.4; }
#view-home.question-fit-dense .home-kicker { display: none; }
#view-home.question-fit-dense .page-heading h1 { font-size: 28px; line-height: 1.2; }
#view-home.question-fit-dense .play-controls.transport { height: 74px; }
#view-home.question-fit-dense .transport .play-big,
#view-home.question-fit-dense .transport .stop-big { height: 72px; min-height: 72px; gap: 5px; padding-block: 9px; }

/* Agreement pages use the available sheet height, with deliberate page turns. */
.modal.account-service-sheet { max-height: calc(100dvh - 28px); padding: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.account-service-sheet .section-head { margin: 0; }
.account-service-sheet .section-head h2 { font-size: 22px; }
.account-service-sheet .helper, .account-service-sheet .field-label { margin: 0; font-size: 13px; line-height: 1.6; }
.account-service-sheet .field { min-height: 44px; margin: 0; padding: 10px; }
.account-service-sheet textarea.field { height: 94px; resize: none; }
.account-service-sheet .modal-actions { margin: 0; gap: 6px; }
.account-service-sheet .modal-actions button { min-width: 0; min-height: 44px; padding: 8px; font-size: 14px; }
.account-service-sheet .section-head button { min-width: 44px; min-height: 44px; }
.account-service-sheet .service-status { min-height: 20px; }
.account-delete-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.account-delete-check input { width: 22px; height: 22px; }
.feedback-reading { min-height: 184px; margin: 0; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-height: 640px) {
  .modal.account-service-sheet { padding: 14px; gap: 7px; }
  .account-service-sheet .section-head h2 { font-size: 20px; }
  .account-service-sheet .helper { font-size: 12px; line-height: 1.55; }
  .account-service-sheet textarea.field { height: 80px; }
}
.legal-document.legal-paged { height: calc(100vh - max(12px, env(safe-area-inset-top))); height: calc(100dvh - max(12px, env(safe-area-inset-top))); }
.legal-paged .legal-header { padding: 14px 18px; gap: 10px; }
.legal-paged .legal-header .eyebrow { margin-bottom: 5px; font-size: 11px; }
.legal-paged .legal-header h2 { font-size: 22px; line-height: 1.3; }
.legal-paged .legal-close { min-width: 48px; min-height: 44px; padding: 8px; }
.legal-paged .legal-body { flex: 1 1 0; min-height: 0; padding: 16px 18px; overflow: hidden; }
.legal-paged .legal-page[hidden] { display: none !important; }
.legal-paged .legal-page h3 { margin: 0 0 12px; color: #345a30; font-size: 17px; line-height: 1.55; }
.legal-paged .legal-page-copy { margin: 0; color: #526c46; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-line; }
.legal-paged .legal-draft { padding: 10px 12px; font-size: 15px; line-height: 1.75; }
.legal-paged .legal-references-page a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; color: #486e38; font-size: 15px; line-height: 1.6; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-paged .legal-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 18px max(10px, env(safe-area-inset-bottom)); }
.legal-paged .legal-page-count { margin: 0; color: #6b805b; font-size: 14px; line-height: 1.3; text-align: center; }
.legal-page-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.legal-paged .legal-page-navigation > button { min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 14px; }
@media (max-width: 374px), (max-height: 640px) {
  .legal-paged .legal-header { padding: 12px 16px; gap: 8px; }
  .legal-paged .legal-header h2 { font-size: 20px; }
  .legal-paged .legal-body { padding: 12px 16px; }
  .legal-paged .legal-page h3 { margin-bottom: 10px; font-size: 16px; line-height: 1.5; }
  .legal-paged .legal-page-copy, .legal-paged .legal-draft { font-size: 14px; line-height: 1.7; }
  .legal-paged .legal-draft { padding: 8px 10px; }
  .legal-paged .legal-references-page a { font-size: 14px; }
  .legal-paged .legal-footer { padding-inline: 16px; }
}

/* Settings lists keep reading and actions inside the phone viewport. */
.modal.paged-settings-sheet {
  width: 100%; max-width: 420px;
  max-height: calc(100dvh - max(19px, env(safe-area-inset-top)) - max(19px, env(safe-area-inset-bottom)));
  padding: 18px; overflow: hidden; overscroll-behavior: contain;
}
.paged-settings-sheet h2 { margin: 0; font-size: 22px; line-height: 1.35; }
.paged-settings-sheet .helper { margin: 7px 0 0; font-size: 14px; line-height: 1.6; }
.paged-settings-sheet button { min-width: 0; min-height: 44px; padding: 9px 8px; font-size: 14px; line-height: 1.35; }
.paged-settings-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.paged-settings-navigation > span { min-width: 34px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.paged-settings-sheet .modal-actions { display: flex; flex-wrap: nowrap; margin: 0; gap: 8px; }
.paged-settings-sheet .modal-actions > button { flex: 1; min-width: 0; }
.pending-settings-sheet { display: flex; flex-direction: column; gap: 12px; height: min(620px, calc(100dvh - max(19px, env(safe-area-inset-top)) - max(19px, env(safe-area-inset-bottom)))); }
.pending-settings-sheet > header, .pending-settings-sheet > footer { flex: 0 0 auto; }
.pending-settings-sheet > footer { display: grid; gap: 8px; }
.paged-settings-reading { flex: 1 1 0; min-height: 0; padding: 12px; overflow: hidden; border: 1px solid #dce5d1; border-radius: 16px 6px 16px 6px; background: #f3f7eb; }
.paged-settings-reading p { margin: 0; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.paged-settings-reading:focus-visible { outline: 2px solid #91a276; outline-offset: -3px; }
.blocked-settings-sheet { display: flex; flex-direction: column; gap: 12px; }
.paged-settings-categories { min-height: 0; margin: 0; }
.paged-settings-categories .question-row { min-height: 54px; padding: 7px 0; gap: 10px; }
.paged-settings-categories .q-content { min-width: 0; }
.paged-settings-categories .q-content p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.paged-settings-categories .icon-btn { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
@media (max-width: 374px), (max-height: 640px) {
  .modal.paged-settings-sheet { padding: 14px; }
  .pending-settings-sheet { gap: 8px; }
  .paged-settings-sheet h2 { font-size: 20px; }
  .paged-settings-sheet .helper { font-size: 13px; }
  .paged-settings-reading { padding: 10px; }
  .paged-settings-reading p { font-size: 14px; line-height: 1.7; }
}

/* Fixed voice chooser: all choices remain reachable without scrolling the dialog. */
.modal.voice-picker-paged {
  display: flex; flex-direction: column; gap: 12px;
  height: min(520px, calc(100dvh - max(19px, env(safe-area-inset-top)) - max(19px, env(safe-area-inset-bottom))));
  max-height: calc(100dvh - max(19px, env(safe-area-inset-top)) - max(19px, env(safe-area-inset-bottom)));
  padding: 14px; overflow: hidden;
}
.voice-picker-paged > .section-head, .voice-picker-paged > footer { flex: 0 0 auto; margin: 0; }
.voice-picker-paged .section-head h2 { margin: 0; font-size: 21px; line-height: 1.4; }
.voice-picker-paged button { min-height: 44px; min-width: 0; margin: 0; padding: 8px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.voice-picker-paged #voicePickerBody { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; min-height: 0; }
.voice-picker-paged .voice-picker-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 0 0 auto; }
.voice-picker-paged .audition-filters { position: static; display: flex; flex: 0 0 auto; gap: 8px; margin: 0; padding: 0; background: transparent; }
.voice-picker-paged .voice-picker-grid { flex: 1 1 auto; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 8px; }
.voice-picker-paged #voicePickerBody[data-page-size="1"] .voice-picker-grid { grid-template-columns: minmax(0, 1fr); }
.voice-picker-paged .voice-choice { gap: 4px; min-height: 0; padding: 10px 8px; }
.voice-picker-paged .voice-choice > button { width: 100%; }
.voice-picker-paged .voice-choice p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; min-height: 36px; font-size: 12px; line-height: 18px; }
.voice-picker-paged audio { display: block; flex: 0 0 44px; width: 100%; height: 44px; min-width: 0; margin: 0; }
.voice-picker-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.voice-picker-navigation > span { min-width: 40px; color: #527047; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-height: 460px) {
  .modal.voice-picker-paged { gap: 6px; padding: 10px 14px; }
  .voice-picker-paged #voicePickerBody { gap: 6px; }
  .voice-picker-paged .voice-choice { padding-block: 6px; }
  .voice-picker-paged .voice-choice p { display: none; }
}

/* A visible registration line stays below navigation without covering any action. */
.site-registration { min-width: 0; text-align: center; }
.site-registration a { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; color: #627455; font-size: 11px; line-height: 18px; text-decoration: none; white-space: nowrap; }
.site-registration a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-screen { padding-bottom: calc(46px + env(safe-area-inset-bottom)); }
.login-screen .login-registration { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; padding: 2px max(12px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(19,42,36,.72); }
.login-screen .login-registration a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.app-shell[data-main-screen] { grid-template-rows: minmax(0, 1fr) auto auto; }
.app-shell[data-main-screen] .mobile-nav { padding-bottom: 2px; }
.app-shell[data-main-screen] .app-registration { padding: 0 max(12px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: #f9faf0; }
.app-shell[data-main-screen="profile"] { grid-template-rows: minmax(0, 1fr) auto; }
@media (max-height: 640px) {
  #view-records { gap: 9px; }
  .records-grid { gap: 7px; grid-auto-rows: minmax(68px, 1fr); }
  .settings-tile { min-height: 68px; padding: 8px 12px; gap: 4px; }
  .settings-tile .settings-icon { font-size: 18px; }
  .settings-tile .settings-copy { font-size: 14px; }
  .settings-tile .settings-detail { line-height: 1.3; }
  #view-records .profile-card { min-height: 60px; padding-block: 8px; }
}
