/* Warm editorial headings, readable app text, and bounded touch targets. */
h1, h2, h3, .dashboard-heading, .dash-section-label, .dashboard-section-title, .auth-heading, .hero-title { font-family:var(--font-serif); line-height:1.3; }
button, input, textarea, select, .btn, .btn-ghost, .stat-number, .stat-label, .dash-time-btn { font-family:var(--font-body); }
button, .btn { min-height:44px; }
input, textarea, select { font-size:16px; color:var(--text); background:var(--white); accent-color:var(--brown-mid); }
input:focus, textarea:focus, select:focus { outline:2px solid var(--brown-light); outline-offset:2px; box-shadow:none; border-color:var(--brown-mid); }
:focus-visible { outline:2px solid var(--brown-light); outline-offset:3px; }
input:autofill { background:var(--cream-dark); color:var(--text); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color:var(--text); -webkit-box-shadow:0 0 0 1000px var(--cream-dark) inset; caret-color:var(--text); }
input:user-invalid, textarea:user-invalid { border-color:var(--danger); }
button:disabled { cursor:default; opacity:.6; }
.auth-subtext, .form-label, .auth-footer-text, .auth-text-button, .auth-inline-button { font-size:15px; }
.auth-page { overflow:auto; height:auto; min-height:100dvh; padding:24px 16px; font-family:var(--font-body); }
.auth-page #auth-card { width:100%; max-width:460px; margin:auto; }
.pending-email { overflow-wrap:anywhere; margin-bottom:16px; }
#onboarding-modal { width:min(600px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:28px; }
#onboarding-modal p { margin:10px 0 16px; }
#onboarding-modal input, #onboarding-modal textarea { width:100%; padding:12px; border:1px solid var(--brown-ghost); border-radius:10px; }
#onboarding-modal label { display:block; margin:12px 0 6px; }
.setup-progress, .mission-eyebrow { font-size:13px; font-weight:600; letter-spacing:.05em; color:var(--text-muted); }
progress { display:block; width:100%; height:8px; margin:12px 0 24px; border:0; border-radius:8px; accent-color:var(--brown-mid); background:var(--cream-dark); }
progress::-webkit-progress-bar { background:var(--cream-dark); border-radius:8px; }
progress::-webkit-progress-value { background:var(--brown-mid); border-radius:8px; transition:width .25s ease; }
progress::-moz-progress-bar { background:var(--brown-mid); border-radius:8px; }
.level-options { display:grid; gap:12px; margin:20px 0; }
.level-option { display:flex; flex-direction:column; gap:4px; text-align:left; width:100%; padding:16px; background:var(--white); color:var(--text); border:1px solid var(--brown-ghost); border-radius:12px; font-size:16px; }
.level-option span { font-size:15px; font-weight:400; }
.level-option:hover, .level-option.selected { background:var(--cream-dark); border-color:var(--brown-mid); }
.goal-options { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.goal-options button { font-size:14px; }
.setup-actions { display:flex; gap:12px; margin-top:24px; }
.setup-actions #setup-next { flex:1; }
.setup-secondary { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:24px; padding-top:16px; border-top:1px solid var(--cream-deeper); align-items:center; }
/* Sign out has no parent handler, stretch, pseudo-element, or absolute overlay. */
#auth_signout { display:inline-block; width:auto; flex:0 0 auto; position:static; margin:0 0 0 auto; padding:8px 12px; }
.setup-secondary button { width:auto; margin:0; }
.plan-milestones fieldset { min-width:0; border:0; border-top:1px solid var(--cream-deeper); margin-top:24px; padding-top:12px; }
.plan-milestones legend { font-weight:600; padding-right:8px; }
#onboard_status:empty { display:none; }
#onboard_status { color:var(--brown-mid); font-size:15px; }
.mission-card { width:100%; min-width:0; margin:0 0 28px; padding:24px; background:var(--white); border:1px solid var(--cream-deeper); border-radius:var(--radius-xl); box-shadow:var(--shadow-sm); }
.mission-card h2 { font-size:clamp(22px,2.4vw,28px); margin:12px 0; overflow-wrap:anywhere; }
.mission-card p { margin-bottom:12px; }
.mission-top { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mission-status { color:var(--brown-mid); font-size:14px; }
.dashboard-sub:empty { display:none; }
.stat-number { font-size:clamp(26px,3vw,42px); overflow-wrap:anywhere; }
.stat-label, .small { font-size:14px; }
.dashboard-recent-session { text-align:left; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:700px) {
  .mission-card { padding:20px; }
  .dashboard-sub, .hero-sub, .practice-card p, .sr-section p { font-size:16px; }
  .stat-label { font-size:14px; }
  #onboarding-modal { padding:22px; }
}
@media(prefers-reduced-motion:reduce) { progress::-webkit-progress-value { transition:none; } }
[hidden] { display:none !important; }
.recording-permission { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; font-size:14px; line-height:1.5; color:var(--text-muted); }
.recording-permission input { flex:0 0 auto; }
.recording-policy-links { padding:0 12px 6px; font-size:14px; }
.session-divider { display:none; }
.practice-greeting { font:17px/1.65 var(--font-body); color:var(--text-muted); max-width:40ch; margin:18px auto 0; text-wrap:pretty; }
.coach-name { font:italic 600 1.13em/1.3 'Lora', Georgia, serif; color:var(--brown); text-decoration:underline; text-decoration-color:#ac7751; text-decoration-thickness:.09em; text-underline-offset:.17em; overflow-wrap:anywhere; }
.dashboard-heading { font:600 clamp(27px,3vw,39px)/1.2 'Lora', Georgia, serif; }
.input-card .speech-type-select { font-family:var(--font-body); }
.chat-hero { padding-top:clamp(28px,6vh,64px); }
.recording-consent-notice { margin:4px 12px; font-size:14px; color:var(--text-muted); }
.recording-consent-notice summary { cursor:pointer; min-height:28px; }
@media(max-width:420px) { .session-field-label { display:none; } .session-field-value { font-size:14px; } }
.simpler-reading p, .simpler-reading input, .simpler-reading textarea, .simpler-reading .practice-card { font-size:18px; }
@media(max-width:600px) {
  #input-bar { padding:9px 12px 12px; }
  .input-card { display:grid; grid-template-columns:44px 44px minmax(0,1fr) 44px; gap:5px; }
  #speech-input { grid-column:1/-1; grid-row:1; padding:6px; }
  .input-card .speech-type-select { width:100%; min-width:0; grid-column:3; }
  .input-card .btn-send { grid-column:4; }
  #dashboard-view > div:first-child { flex-direction:column; align-items:flex-start !important; gap:12px; }
  .dashboard-heading { font-size:28px; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .stat-card { padding:16px; }
  .stat-card:last-child { grid-column:1/-1; display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
}
