/* Accessibility scale shared by the improved participant screens. */
:root {
  /* Neutral/type/radius values: https://www.getdesign.kr/services/toss/llms.txt
     Yellow accent and larger accessible type are LEMONVIA adaptations. */
  --ink: oklch(0.237 0.020 258);
  --muted: oklch(0.460 0.028 256);
  --subtle: oklch(0.562 0.025 254);
  --surface: oklch(1 0 0);
  --canvas: oklch(0.985 0.002 248);
  --surface-secondary: oklch(0.966 0.003 248);
  --edge: oklch(0.930 0.005 248);
  --accent: #ffdf59;
  --accent-soft: #fff5c4;
  --accent-ink: #685311;
  --radius: 16px;
  --touch: 56px;
  --shadow: none;
  --line: var(--edge);
  --yellow: var(--accent);
  --soft: var(--accent-soft);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--surface-secondary);
}
.app{background:#faf8ef}main{padding:24px 20px 32px}h1{font-size:28px;line-height:1.3;letter-spacing:-.8px}h2{font-size:22px;line-height:1.4}button{font-size:18px;line-height:1.4}button:disabled{opacity:1;color:var(--muted);background:#eeeee8;border-color:#e4e5dc;box-shadow:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #6d6129;outline-offset:3px}.card{border-radius:var(--radius);box-shadow:0 3px 10px #222b1c06;border-color:#e9e9e0}.subtitle,.subtitle.compact,.intro{font-size:18px;line-height:1.65;color:var(--muted);margin-top:10px;margin-bottom:24px;letter-spacing:-.3px}.section-label{font-size:18px;color:var(--muted);margin:24px 0 12px}.primary,.secondary,.soft-primary,.neutral,.install-button{min-height:var(--touch);height:auto;padding:14px 16px;border-radius:14px;font-size:18px;line-height:1.5}.primary{background:var(--accent);border-color:#edcf53;box-shadow:none;font-weight:750}.secondary{border-color:var(--edge);background:white}.soft-primary{background:var(--accent-soft);border-color:#e6d784}.hero-action{min-height:64px;gap:10px}.hero-action svg{width:24px;height:24px}.version,.version b,.install-note,.login-help,.admin-link{font-size:16px;line-height:1.5;color:var(--muted)}.version{gap:4px}.admin-link{min-height:48px;display:flex;align-items:center;justify-content:center}.brand h1{font-size:24px}.brand p{font-size:14px;color:var(--muted)}.brand{margin:0 0 22px}.brand img{width:48px;height:48px}.result{height:auto;min-height:220px;padding:24px 20px}.result>p:first-child,.result>p:nth-child(2){font-size:16px;color:var(--muted)}.result h2{font-size:28px;margin-top:32px;margin-bottom:24px;line-height:1.5}.result-star{min-width:48px;min-height:48px}.recorder{height:auto;padding:18px}.record-actions{display:grid;grid-template-columns:1fr 56px;gap:12px}.record-actions .soft-primary:first-child{grid-column:1/-1}.record-actions button,.record-actions .soft-primary{min-height:56px;height:auto;font-size:18px;padding:14px 12px;white-space:normal}.record-actions .reset{width:56px}.record-actions svg{width:22px;height:22px}.time{font-size:16px;color:var(--muted)}.home-label{margin-bottom:12px}nav{height:auto;min-height:80px;padding:8px 8px max(8px,env(safe-area-inset-bottom));gap:2px}nav button{min-height:60px;min-width:0;gap:5px;font-size:14px;color:var(--muted);padding:6px 2px;border-radius:12px}nav .active{color:var(--muted);background:#fff3b3}nav .active span{color:var(--muted);font-weight:750}nav svg{width:24px;height:24px}.sentence-card{gap:4px;padding:16px 12px;min-height:96px}.sentence-copy b{font-size:18px;line-height:1.5}.sentence-copy span{font-size:16px;font-weight:400}.star{min-width:48px;min-height:48px;padding:12px;color:var(--muted)}.star[aria-pressed=true]{color:var(--muted)}.star svg{width:22px;height:22px}.play{width:56px;height:56px}.play svg{width:24px;height:24px}.stats{padding:20px}.stats>div,.stats p{font-size:16px;line-height:1.6}.stats>div span{font-size:14px}.stats h2{font-size:26px}.setting-row{min-height:88px;padding:16px;gap:14px}.setting-copy b{font-size:18px;line-height:1.5}.setting-copy small{font-size:16px;line-height:1.5;color:var(--muted)}.setting-icon{width:40px;height:40px}.setting-icon svg{width:24px;height:24px}.switch{height:30px;width:50px;display:block}.switch:after{width:24px;height:24px}.switch.on{background:#e8ce60}.switch.on:after{left:23px}.profile h2{font-size:22px}.profile p{font-size:16px;line-height:1.5;font-weight:400}.avatar{flex-shrink:0}.back{min-height:48px;padding:8px 0;font-size:18px;margin-bottom:18px;gap:8px;width:max-content}.back svg{height:22px;width:22px}.option{height:auto;min-height:64px;font-size:18px;padding:16px}.option svg,.radio-circle{width:24px;height:24px;flex-shrink:0}.detail h1{margin-bottom:24px}.login{padding:36px 20px;justify-content:flex-start}.login header{margin-bottom:24px}.login header p{font-size:16px}.login-card{padding:24px 20px}.login-card h2{font-size:22px}.login-card>p{font-size:16px;line-height:1.6;font-weight:400}.login-card .primary{font-size:18px}.code-wrap,.code-boxes{height:60px}.code-boxes span{line-height:56px}.modal,.flow-modal{padding:24px 20px;max-height:calc(100dvh - 24px)}.flow-modal h2,.modal h2{font-size:23px;padding-right:38px}.close-modal{top:12px;right:10px;min-width:48px;min-height:48px;display:grid;place-items:center}.close-modal svg{width:24px;height:24px}.modal-body,.modal>p,.modal ol,.consent-copy{font-size:18px;line-height:1.65}.consent-copy h3{font-size:18px}.modal small{font-size:16px}.modal-actions{gap:10px}.modal-actions .primary{min-height:56px}.flow-modal input,.flow-modal label,.form-error{font-size:18px}.flow-modal input{min-height:56px}.state-notice{padding:16px;gap:12px}.state-notice b{font-size:18px}.state-notice p{font-size:16px}.inline-action{min-height:48px;padding:10px 0;font-size:18px}.state-symbol{width:26px;height:26px}.privacy-card b{font-size:18px}.privacy-card p,.privacy-card small{font-size:16px}.privacy-card button{font-size:18px}.consent-invite h2{font-size:22px}.consent-invite p{font-size:18px}.consent-invite button{min-height:56px}.empty{font-size:18px;line-height:1.6}#toast{font-size:16px;bottom:96px}
/* Personalization: progress, one recording, and the full list have separate routes. */
.personalize{padding:26px 20px 32px}.personalize h1:focus{outline:none}.eyebrow-label{font-size:16px;font-weight:600;color:var(--muted);margin-bottom:8px}.personal-overview h1{font-size:30px}.session-picker{display:flex;gap:8px;margin:24px 0 20px;background:#eeeee5;padding:5px;border-radius:16px}.session-picker button{flex:1;min-width:0;min-height:52px;font-size:18px;font-weight:650;border-radius:12px;padding:10px 4px;color:var(--muted)}.session-picker .chosen{background:#fff;box-shadow:0 2px 5px #232b1810;color:var(--muted)}.progress-panel{padding:24px 20px;background:#fff;border:1px solid #e9e8dc;border-radius:22px}.panel-heading{display:flex;gap:8px;align-items:center;justify-content:space-between}.panel-heading h2{font-size:22px}.panel-heading>span{font-size:16px;color:var(--muted);white-space:nowrap}.progress-count{margin:22px 0 14px;display:flex;align-items:baseline;gap:8px}.progress-count strong{font-size:44px;font-weight:800;line-height:1.1;letter-spacing:-2px}.progress-count span{font-size:18px;color:var(--muted)}progress{appearance:none;display:block;width:100%;height:10px;border:0;border-radius:8px;background:#eeeede;overflow:hidden}progress::-webkit-progress-bar{background:#eeeede}progress::-webkit-progress-value{background:#e3c440;border-radius:8px}progress::-moz-progress-bar{background:#e3c440}.progress-details{display:flex;justify-content:space-between;gap:10px;margin:18px 0;font-size:16px;color:var(--muted)}.progress-details b{color:var(--muted)}.progress-details .attention,.progress-details .attention b{color:#8c4e22}.progress-explanation{font-size:18px;line-height:1.6;color:var(--muted);margin:20px 0}.all-sentences{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:16px 0;border-bottom:1px solid #e5e4d7;font-size:18px;font-weight:600;margin:12px 0}.all-sentences>span{display:flex;align-items:center;gap:8px}.all-sentences>span:last-child{font-size:16px;color:var(--muted)}.all-sentences>span:last-child svg{transform:rotate(180deg);width:18px}.session-guidance{font-size:16px;color:var(--muted);line-height:1.7;margin:20px 0 28px}.personalize .training{border:0;border-radius:0;background:transparent;box-shadow:none;padding:24px 0 0;border-top:1px solid #e1e1d5;margin:0}.personalize .training h2{font-size:22px;margin:0 0 8px}.personalize .training p{font-size:18px;line-height:1.6;margin:8px 0 18px;color:var(--muted)}.personalize .training .training-reminder{font-size:16px}.training .status-pill{font-size:16px;margin-bottom:14px}.personal-record .record-heading h1{font-size:24px}.record-heading>p{font-size:18px;margin:12px 0 24px;color:var(--muted);font-weight:600}.record-heading>p span{font-weight:400;color:var(--muted)}.personal-record .prompt-card{padding:0;border:0;margin:0;background:transparent;box-shadow:none}.prompt-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 28px}.record-status{font-size:16px;line-height:1.5;display:inline-block;color:var(--muted)}.record-status.saved{color:#356448}.record-status.review{color:#8b4c23}.example-button{display:flex;align-items:center;gap:8px;min-height:52px;border:1px solid #dcded1;border-radius:12px;padding:12px 14px;background:#fff;font-size:18px;font-weight:600}.example-button svg{height:22px;width:22px}.reading-label{font-size:16px;color:var(--muted);margin-bottom:16px}.personal-record .prompt-text{font-size:32px;line-height:1.55;font-weight:700;letter-spacing:-.7px;margin:0 0 32px;min-height:100px;overflow-wrap:anywhere}.personal-record .hero-action{width:100%;margin:22px 0 12px}.sentence-navigation{display:flex;gap:12px}.sentence-navigation button{flex:1;min-width:0;font-size:18px;display:flex;align-items:center;justify-content:center;gap:6px;padding:14px 4px}.sentence-navigation svg{width:18px;height:18px}.sentence-navigation button:last-child svg{transform:rotate(180deg)}.edit-disclosure{display:block;min-height:56px;width:100%;text-align:center;text-decoration:underline;text-underline-offset:4px;font-size:18px;color:var(--muted);margin:16px 0 4px}.edit-label{font-size:18px;line-height:1.5;color:var(--muted);margin:14px 0 10px}textarea{font-size:18px;line-height:1.6;min-height:104px;height:auto;padding:14px;border:1px solid #cfd3c4}.edit-help{font-size:16px;color:var(--muted);margin:10px 0}.label-save{height:auto;min-height:56px}.record-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #e2e2d5}.record-footer p{font-size:16px;color:var(--muted)}.text-button{font-size:16px;min-height:48px;padding:8px 0;text-decoration:underline;text-underline-offset:4px}.personal-record .slot-box{margin:0 0 24px;padding:18px;background:#fff4d4;border:1px solid #e6dbaa}.personal-record .slot-box label{display:block;font-size:18px;font-weight:600;margin:0 0 12px}.personal-record .slot-box input{display:block;width:100%;min-height:56px;padding:14px;border:1px solid #c9ccb8;font-size:18px}.personal-record .slot-box p{font-size:16px;margin-top:12px;line-height:1.6}.personal-record .slot-box .warning{font-size:16px;color:#8b4527;font-weight:500}.personal-list .intro{margin:8px 0 20px}.personal-list .session-picker{margin:0 0 16px}.list-filters{display:flex;gap:8px;margin:0 0 20px}.list-filters button{min-height:48px;flex:1;border:1px solid #dcdfd0;border-radius:12px;background:white;font-size:16px;padding:10px 4px;color:var(--muted)}.list-filters .chosen{color:var(--muted);background:#fff0ac;border-color:#d6c45c;font-weight:700}.full-sentence-list{display:flex;flex-direction:column}.full-sentence{display:flex;align-items:flex-start;gap:12px;width:100%;padding:20px 0;border-bottom:1px solid #e2e3d8;text-align:left;min-height:100px}.sentence-number{font-size:16px;color:var(--muted);padding-top:3px;min-width:24px}.list-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px;font-size:20px;line-height:1.55}.list-content>span{overflow-wrap:anywhere}.list-arrow{font-size:24px;color:var(--muted)}.list-empty{padding:32px 0}.list-empty h2{font-size:22px}.list-empty p{font-size:18px;color:var(--muted);margin-top:12px}
@media(max-width:360px){main,.personalize{padding-left:16px;padding-right:16px}.primary,.secondary{padding-left:12px;padding-right:12px}.progress-panel{padding:20px 16px}.panel-heading h2{font-size:20px}.progress-details{gap:6px}.sentence-navigation button{font-size:16px}.setting-row{gap:10px;padding:14px 12px}.setting-icon{width:32px;height:32px}.profile p{font-size:16px}.record-actions .soft-primary{font-size:18px}.personal-record .prompt-text{font-size:30px}.sentence-card{flex-wrap:wrap}.sentence-copy{flex-basis:calc(100% - 112px)}nav button{font-size:13px}.login{padding-top:28px}.brand p{font-size:13px}.back{font-size:18px}}
/* Second pass: one main speaking action, and phrases before statistics. */
.talk-page{padding:24px 20px 30px}.talk-brand{display:flex;align-items:center;gap:9px;margin-bottom:24px}.talk-brand img{width:32px;height:32px;padding:3px;background:#fff;border-radius:10px}.talk-brand span{font-size:18px;font-weight:800;letter-spacing:-.5px}.talk-page h1,.phrases-page h1{font-size:30px}.talk-page>.intro{margin:8px 0 22px;font-size:18px}.talk-steps{list-style:none;padding:0;margin:0 0 24px;display:flex;align-items:center;justify-content:space-between;gap:8px}.talk-steps li{display:flex;align-items:center;gap:6px;font-size:16px;color:var(--muted);white-space:nowrap}.talk-steps li>span{display:grid;place-items:center;width:24px;height:24px;background:#eceee4;border-radius:50%;font-size:14px;font-weight:700}.talk-steps li[aria-current]{color:var(--muted);font-weight:650}.talk-steps li[aria-current]>span{background:#f4df7b;color:var(--muted)}.talk-surface{padding:22px 20px;border:1px solid #e5e6da;border-radius:22px;background:#fff;min-height:286px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.talk-state{font-size:16px;display:flex;align-items:center;gap:8px;line-height:1.5;color:var(--muted)}.state-dot{width:8px;height:8px;border-radius:50%;background:#75875d}.talk-surface.talk-state-recording .state-dot{background:#a85637;animation:pulseopacity 1s infinite alternate}.talk-surface.talk-state-recording{background:#fffbec;border-color:#e4d399}.talk-surface.talk-state-playing{background:#f3f7ed;border-color:#d4dfc6}.talk-symbol{display:flex;align-items:center;justify-content:center;margin:20px 0 16px;width:48px;height:48px;border-radius:16px;background:#fff3b9;color:var(--muted)}.talk-symbol svg{width:26px;height:26px}.talk-prompt{font-size:26px;font-weight:700;line-height:1.5;letter-spacing:-.6px;margin:0 0 16px;color:var(--muted)}.talk-hint{font-size:16px;color:var(--muted);line-height:1.65;margin:0}.talk-surface.talk-state-preparing .talk-prompt,.talk-surface.talk-state-recognizing .talk-prompt,.talk-surface.talk-state-audio-loading .talk-prompt{margin-top:50px}.recognized-sentence{font-size:34px;line-height:1.5;font-weight:750;letter-spacing:-.8px;margin:32px 0 28px;overflow-wrap:anywhere}.talk-primary{width:100%;margin:20px 0 0;display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px}.talk-secondary{display:flex;gap:12px;margin-top:12px}.talk-secondary button{flex:1;display:flex;justify-content:center;align-items:center;gap:7px;padding:14px 8px;min-height:56px;font-size:18px}.talk-secondary svg{width:21px;height:21px}.clear-sentence{display:block;margin:20px auto 0;min-height:48px;padding:10px 20px;text-decoration:underline;text-underline-offset:4px;font-size:16px;color:var(--muted)}.talk-assurance{margin:20px 0 0;font-size:16px;line-height:1.7;text-align:center;color:var(--muted)}.voice-wave{height:74px;margin:24px 0;display:flex;align-items:center;justify-content:center;gap:7px;width:100%}.voice-wave i{height:var(--h);width:5px;border-radius:6px;background:#b99c3b;animation:pulse .7s var(--delay) infinite alternate}.usage-inline{padding:20px 0 0;border-top:1px solid #e1e3d6;margin-top:26px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}.usage-inline p{font-size:16px;color:var(--muted)}.usage-inline .text-button{font-size:16px}.phrases-page{padding:26px 20px 32px}.phrases-page>.intro{margin-bottom:24px}.phrase-tabs{display:flex;padding:5px;background:#eeeee5;gap:6px;border-radius:16px}.phrase-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:52px;padding:10px 6px;border-radius:12px;font-size:18px;font-weight:600;color:var(--muted)}.phrase-tabs .chosen{background:#fff;color:var(--muted);box-shadow:0 2px 5px #2730160d}.phrase-tabs button>span{font-size:14px;background:#f5edc6;border-radius:20px;min-width:24px;height:24px;display:grid;place-items:center;color:var(--muted)}.list-context{font-size:16px;color:var(--muted);margin:22px 0 12px}.phrase-list{display:flex;flex-direction:column;gap:12px}.phrase-row{display:flex;align-items:stretch;gap:0;background:#fff;border:1px solid #e1e5d7;border-radius:18px;overflow:hidden;min-height:112px}.phrase-row.is-active{border-color:#a6b48e;background:#f8fbf2}.phrase-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;padding:20px 10px 20px 18px}.phrase-body{min-width:0;display:flex;flex:1;flex-direction:column;gap:9px}.phrase-text{font-size:22px;line-height:1.5;font-weight:650;letter-spacing:-.4px;overflow-wrap:anywhere}.phrase-meta{font-size:16px;color:var(--muted);line-height:1.5}.phrase-play{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:6px;flex-shrink:0;color:var(--muted);width:60px}.phrase-play>svg{width:24px;height:24px}.phrase-play>span{font-size:14px;line-height:1.4;text-align:center}.phrase-favorite{flex-shrink:0;align-self:center;width:48px;min-height:56px;display:grid;place-items:center;color:var(--muted);border-left:1px solid #eeeede;margin-right:6px}.phrase-favorite svg{height:23px;width:23px}.phrase-favorite[aria-pressed=true]{color:var(--muted)}.usage-stats{border-top:1px solid #dcdfd0;margin-top:30px}.usage-stats summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;min-height:64px;list-style:none;font-size:16px;color:var(--muted)}.usage-stats summary::-webkit-details-marker{display:none}.usage-stats summary>span:first-child{display:flex;align-items:center;gap:10px}.usage-stats summary svg{width:21px;height:21px}.stats-chevron{font-size:22px}.usage-stats[open] .stats-chevron{transform:rotate(180deg)}.usage-stats summary:focus-visible{outline:3px solid #6d6129;outline-offset:3px}.stats-content{padding:16px 0 8px}.stats-count{font-size:18px;color:var(--muted)}.stats-count strong{font-size:32px;color:var(--muted);margin-right:8px}.stats-content dl{font-size:16px;line-height:1.6}.stats-content dt{color:var(--muted);margin:18px 0 4px}.stats-content dd{margin:0;color:var(--muted)}.stats-content p{font-size:16px;color:var(--muted)}.phrases-empty{padding:32px 12px;text-align:center}.phrases-empty>div{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 20px;background:#fff2b9;border-radius:18px;color:var(--muted)}.phrases-empty svg{height:28px;width:28px}.phrases-empty h2{font-size:22px}.phrases-empty p{font-size:18px;color:var(--muted);line-height:1.65;margin:12px 0 24px}.favorite-undo{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff2c6;border:1px solid #e5d38b;border-radius:14px;margin:16px 0;font-size:16px}.favorite-undo>span{flex:1;line-height:1.5}.favorite-undo button{min-height:48px;font-size:16px;padding:10px 6px;font-weight:650;text-decoration:underline;text-underline-offset:4px}.favorite-undo .undo-dismiss{width:48px;flex-shrink:0;text-decoration:none;padding:12px}.favorite-undo svg{width:20px;height:20px}
@media(max-width:360px){.talk-page,.phrases-page{padding-left:16px;padding-right:16px}.talk-steps{gap:5px}.talk-steps li{font-size:14px;gap:5px}.talk-surface{padding:20px 16px}.talk-secondary button{font-size:16px;padding:14px 6px}.talk-prompt{font-size:25px}.recognized-sentence{font-size:30px}.phrase-main{padding:18px 6px 18px 14px;gap:5px}.phrase-text{font-size:20px}.phrase-play{width:48px}.phrase-play>span{font-size:13px}.phrase-meta{font-size:16px}.phrase-tabs button{font-size:16px}.favorite-undo{flex-wrap:wrap}.talk-brand{margin-bottom:20px}}
/* Third pass: participant identity, independent consent, and functional preferences. */
.preferences-page{padding:26px 20px 32px}.preferences-page>.intro{margin-bottom:24px}.participant-panel{display:flex;align-items:center;gap:16px;padding:20px;background:#fff4c4;border:1px solid #eadb98;border-radius:20px;margin-bottom:30px}.participant-symbol{width:48px;height:48px;display:grid;place-items:center;border:1px solid #e0cd78;border-radius:50%;color:var(--muted);flex:none}.participant-symbol svg{width:26px;height:26px}.participant-panel p{font-size:16px;color:var(--muted);margin:0 0 3px}.participant-panel h2{font-size:25px;letter-spacing:0}.preference-section{margin:28px 0}.preference-section>h2{font-size:20px;margin-bottom:12px;color:var(--muted)}.preference-group{border:1px solid #e3e5da;background:#fff;border-radius:18px;overflow:hidden}.preference-row{width:100%;min-height:88px;padding:18px;display:flex;align-items:center;gap:14px;text-align:left;border-bottom:1px solid #e9ebdf}.preference-row:last-child{border-bottom:0}.preference-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.preference-copy b{font-size:18px;font-weight:650;line-height:1.5}.preference-copy small{font-size:16px;color:var(--muted);line-height:1.5}.preference-tail{flex:none;color:var(--muted);font-size:24px}.group-hint{font-size:16px;color:var(--muted);line-height:1.65;margin:12px 0}.settings-version .version{align-items:flex-start;gap:4px;margin:20px 0}.participant-switch{margin-top:28px;padding-top:26px;border-top:1px solid #dde1d1}.participant-switch h2{font-size:20px}.participant-switch p{font-size:16px;color:var(--muted);line-height:1.65;margin:10px 0 18px}.access-page{justify-content:flex-start;padding:36px 24px}.access-page header{margin:0 0 30px;text-align:left}.access-page header img{width:56px;height:56px;padding:6px;border-radius:16px;margin-bottom:14px;box-shadow:none}.access-page header h1{font-size:28px}.access-page header p{margin-top:6px;font-size:16px}.access-intro h2{font-size:26px}.access-intro p{font-size:18px;line-height:1.6;color:var(--muted);margin-top:10px}.access-form{margin:28px 0 0}.access-form>label{font-size:18px;font-weight:650;display:block;margin-bottom:12px}.access-input{display:block;width:100%;height:68px;border:2px solid #c6cdb7;border-radius:14px;padding:12px 16px;background:#fff;font-size:28px;letter-spacing:8px;text-align:center;color:var(--muted);font-family:inherit;caret-color:#485b30}.access-input::placeholder{font-size:20px;letter-spacing:0;color:var(--muted)}.access-input[aria-invalid=true]{border-color:#a64c31}.access-form #code-help{font-size:16px;color:var(--muted);line-height:1.6;margin-top:12px}.access-form #code-feedback{font-size:16px;line-height:1.6;color:#8a442b;margin:8px 0;min-height:26px}.access-form .primary{margin-top:16px;min-height:60px}.access-help{padding:22px 0;margin:12px 0 10px;border-bottom:1px solid #dde1d2}.access-help h2{font-size:18px}.access-help p{font-size:16px;color:var(--muted);margin-top:8px;line-height:1.65}.access-page .install-note{font-size:16px}.access-page .admin-link{margin-top:16px}.access-page .version{margin-top:8px}.access-page:has(.state-notice){padding-top:36px}.flow-modal .modal-body{overscroll-behavior:contain}.flow-modal .modal-actions p[role=status]{min-height:56px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:18px}.state-notice .inline-action{text-align:left;line-height:1.6;min-height:48px}.state-notice .state-symbol{margin-top:2px}.group-hint br{display:none}

/* Shared visual language. Kept before accessibility overrides intentionally. */
.app, .login, .admin-app { background: var(--canvas); color: var(--ink); }
main, .talk-page, .phrases-page, .personalize, .preferences-page { padding: 32px 24px 40px; }
h1, .talk-page h1, .phrases-page h1, .personal-overview h1 { font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
h2, .talk-prompt, .recognized-sentence, .phrase-text, .preference-copy b { color: var(--ink); }
h2 { font-weight: 700; }
.intro { letter-spacing: -.005em; }
.card, .progress-panel, .phrase-row, .preference-group, .participant-panel { background: var(--surface); border: 1px solid var(--edge); box-shadow: none; border-radius: var(--radius); }
.primary, .modal .primary { background: var(--accent); color: var(--ink); border-color: transparent; border-radius: 16px; font-weight: 700; box-shadow: none; }
.secondary, .neutral, .soft-primary, .example-button, .install-button { background: var(--surface-secondary); color: var(--ink); border-color: transparent; box-shadow: none; border-radius: 16px; }
button { transition: background-color 120ms ease, opacity 120ms ease; }
button:active:not(:disabled) { opacity: .74; }
button:disabled { opacity: .3; color: var(--ink); background: var(--surface-secondary); border-color: transparent; }
:where(button, a, input, textarea, summary):focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.talk-brand { margin-bottom: 32px; gap: 10px; }
.talk-brand img { width: 36px; height: 36px; border-radius: 12px; }
.talk-brand span { color: var(--ink); font-size: 16px; letter-spacing: .02em; font-weight: 700; }
.talk-steps { margin: 28px 0 24px; gap: 8px; }
.talk-steps li { color: var(--subtle); font-size: 15px; }
.talk-steps li>span { background: var(--surface-secondary); width: 26px; height: 26px; }
.talk-steps li[aria-current] { color: var(--ink); }
.talk-steps li[aria-current]>span { background: var(--accent); color: var(--ink); }
.talk-surface { border: 1px solid transparent; background: var(--surface-secondary); border-radius: 24px; padding: 24px; min-height: 304px; }
.talk-state { color: var(--muted); font-size: 16px; }
.state-dot { background: var(--accent-ink); }
.talk-symbol { width: 56px; height: 56px; margin: 24px 0 20px; border-radius: 20px; background: var(--surface); color: var(--ink); }
.talk-symbol svg { width: 28px; height: 28px; }
.talk-prompt { font-size: 26px; line-height: 1.45; margin-bottom: 12px; }
.talk-hint, .talk-assurance { color: var(--muted); }
.talk-assurance { margin-top: 24px; }
.talk-primary { margin-top: 24px; }
.talk-surface.talk-state-recording, .talk-surface.talk-state-playing { background: var(--accent-soft); }
.voice-wave i { background: var(--accent-ink); }
nav { background: var(--surface); border-color: var(--edge); padding: 8px 12px max(8px, env(safe-area-inset-bottom)); }
nav button { color: var(--subtle); font-weight: 500; border-radius: 14px; }
nav .active { background: var(--accent-soft); color: var(--ink); }
nav .active span { color: var(--ink); font-weight: 700; }
nav .active svg { background: transparent; box-shadow: none; border-radius: 0; stroke-width: 2.2; }
.eyebrow-label { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.phrase-tabs, .session-picker { background: var(--surface-secondary); border-radius: 16px; padding: 4px; }
.phrase-tabs .chosen, .session-picker .chosen { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px oklch(0.155 0.060 261 / .04); }
.phrase-tabs button>span { background: var(--surface-secondary); color: var(--muted); }
.phrase-row { min-height: 112px; }
.phrase-row.is-active { background: var(--accent-soft); border-color: var(--accent); }
.phrase-main { padding: 20px 8px 20px 20px; }
.phrase-text { font-size: 20px; font-weight: 600; }
.phrase-play { color: var(--ink); }
.phrase-favorite { border-color: var(--edge); color: var(--subtle); }
.phrase-favorite[aria-pressed=true] { color: var(--accent-ink); }
.progress-panel { padding: 24px; border-radius: 24px; }
.progress-count strong { font-size: 48px; color: var(--ink); font-variant-numeric: proportional-nums; }
progress, progress::-webkit-progress-bar { background: var(--surface-secondary); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.list-filters button { border-color: var(--edge); color: var(--muted); }
.list-filters .chosen { background: var(--accent-soft); color: var(--ink); border-color: transparent; }
.all-sentences, .full-sentence, .record-footer, .usage-stats, .participant-switch, .access-help, .personalize .training { border-color: var(--edge); }
.participant-panel { padding: 24px; gap: 16px; margin-bottom: 32px; }
.participant-symbol { background: var(--surface-secondary); border: 0; border-radius: 16px; color: var(--ink); }
.participant-panel p, .preference-copy small, .group-hint, .participant-switch p { color: var(--muted); }
.preference-section { margin: 32px 0; }
.preference-section>h2 { color: var(--ink); font-size: 20px; margin-bottom: 16px; }
.preference-row { padding: 20px; border-color: var(--edge); min-height: 92px; }
.switch { background: var(--edge); }
.switch.on { background: var(--accent); }
.switch:after { transition: left 200ms ease; }
.access-page { padding: 40px 24px; }
.access-page header { margin-bottom: 40px; }
.access-input, textarea, .flow-modal input { background: var(--surface-secondary); border: 1px solid var(--edge); color: var(--ink); border-radius: 12px; }
.access-input:focus, textarea:focus, .flow-modal input:focus { background: var(--surface); border-color: var(--accent-ink); }
.access-input::placeholder { color: var(--subtle); }
.modal { background: var(--surface); border-color: var(--edge); border-radius: 24px; box-shadow: 0 12px 32px oklch(0.155 0.060 261 / .10); }
.skeleton { background: var(--surface-secondary); animation: none; }
.admin-card { border-color: var(--edge); border-radius: 24px; }
@media (hover:hover) { .preference-row:hover, .phrase-main:hover, .full-sentence:hover { background: var(--surface-secondary); } }
@media (min-width: 640px) { .app { border-inline: 1px solid var(--edge); } }
@media (max-width: 360px) { main, .talk-page, .phrases-page, .personalize, .preferences-page { padding-inline: 16px; } .talk-surface, .progress-panel { padding: 20px 16px; } .talk-steps li { font-size: 13px; } .phrase-main { padding-left: 14px; } }

/* Reference-style illustrations are reserved for content, not controls. */
.icon-art { display: inline-block; width: 160px; height: 160px; object-fit: contain; vertical-align: middle; }
.talk-surface { align-items: center; text-align: center; min-height: 340px; padding: 20px; }
.talk-state { justify-content: center; }
.talk-symbol { width: 160px; height: 160px; margin: 8px 0; background: transparent; border-radius: 0; }
.talk-symbol .icon-art { width: 160px; height: 160px; }
.talk-prompt { font-size: 26px; line-height: 1.4; }
.talk-hint { max-width: 100%; }
.result-art { margin-top: 12px; }
.result-art .icon-art { width: 100px; height: 100px; }
.result-art + .recognized-sentence { margin-top: 12px; }
.phrases-empty>div { width: 120px; height: 120px; background: transparent; }
.phrases-empty .icon-art { width: 120px; height: 120px; }
@media(max-height:780px) { .talk-symbol, .talk-symbol .icon-art { width: 120px; height: 120px; } }

/* Login keeps the six-cell look while one real input handles typing and paste. */
.code-field { position: relative; }
.code-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-cells span { display: grid; place-items: center; height: 68px; background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; font-size: 28px; font-weight: 700; color: var(--ink); }
.code-field .access-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; letter-spacing: 0; }
.code-field .access-input:focus { background: transparent; }
.code-field:focus-within .code-cells .current { border: 2px solid var(--accent-ink); background: var(--accent-soft); }
.large-text .code-cells span { font-size: 30px; }

/* Items that are not available yet are listed as plain text, never as controls. */
.upcoming-list { list-style: none; margin: 0; padding: 0; border: 1px dashed var(--edge); border-radius: var(--radius); }
.upcoming-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; color: var(--muted); font-size: 18px; }
.upcoming-list li + li { border-top: 1px dashed var(--edge); }
.upcoming-list small { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-secondary); color: var(--muted); font-size: 15px; }

/* Short phones: keep the secondary actions above the tab bar. */
@media (max-height: 830px) { .result-art .icon-art { width: 64px; height: 64px; } .talk-state-result { min-height: 280px; } }

/* Tablet and PC keep the 600px reading column; only spacing and dialogs adapt. */
@media (min-width: 768px) {
  main, .talk-page, .phrases-page, .personalize, .preferences-page, .access-page { padding-inline: 40px; }
  .modal { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 360px) { .code-cells { gap: 5px; } .code-cells span { height: 60px; font-size: 24px; } }

/* Tab bar: Phosphor outline icons; the selected tab fills its icon with the accent. */
nav .tab-icon { width: 28px; height: 28px; }
nav .tab-fill { fill: transparent; transition: fill 120ms ease; }
nav .active { background: transparent; }
nav .active .tab-fill { fill: var(--accent); }

/* Flat illustration language: white cards, thin borders, one solid accent disc behind 3D art. No gradients or shadows. */
.talk-surface, .talk-surface.talk-state-playing, .talk-surface.talk-state-recording { background: var(--surface); border-color: var(--edge); }
.talk-surface.talk-state-recording, .talk-surface.talk-state-playing { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.talk-state { display: inline-flex; padding: 6px 14px; border: 1px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; }
.talk-state-idle .state-dot { background: #2e9d5b; }
.talk-surface.talk-state-recording .state-dot { background: #d9482b; }
.talk-symbol { position: relative; width: 152px; height: 152px; margin: 14px 0 10px; border-radius: 50%; background: var(--accent-soft); }
.talk-symbol .icon-art { position: relative; width: 116px; height: 116px; }
.talk-symbol.is-listening { background: color-mix(in srgb, var(--accent) 55%, white); }
.listen-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: listen-ring 2s ease-out infinite; }
@keyframes listen-ring { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.28); opacity: 0; } }
.result-art { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--accent-soft); }
.result-art .icon-art { width: 66px; height: 66px; }
@media (max-height: 830px) { .talk-symbol { width: 124px; height: 124px; } .talk-symbol .icon-art { width: 94px; height: 94px; } .result-art { width: 72px; height: 72px; } .result-art .icon-art { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .listen-ring { animation: none; transform: scale(1.1); opacity: .6; } }

.page-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--edge); border-radius: 24px; }
.page-hero>div { min-width: 0; }
.page-hero .intro { margin: 8px 0 0; word-break: keep-all; }
.page-art { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); }
.page-art .icon-art { width: 56px; height: 56px; }
.high-contrast .app .page-hero { border-color: #526146; border-width: 2px; }

.phrase-play { order: -1; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.phrase-play>svg { width: 22px; height: 22px; }
.phrase-play>span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.large-text .phrase-play { width: 52px; }
.phrase-favorite[aria-pressed=true] svg { fill: var(--accent); stroke: var(--accent-ink); }
.phrases-empty>div { width: 120px; height: 120px; border-radius: 50%; background: var(--accent-soft); }
.phrases-empty .icon-art { width: 90px; height: 90px; }
@media (max-width: 360px) { .page-hero { padding: 16px; } .page-art { width: 60px; height: 60px; } .page-art .icon-art { width: 44px; height: 44px; } .phrase-play { width: 48px; height: 48px; } }

/* State must not rest on yellow alone: the accent is 1.3:1 on white, so selected/active states carry a dark outline.
   The switch stays borderless; its off track is a 3:1 grey so off and on differ without one. */
.switch { background: oklch(0.666 0.021 253); }
.switch.on { box-shadow: inset 0 1px 3px color-mix(in srgb, var(--accent-ink) 30%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 10%, transparent); }
.switch:after { box-shadow: 0 1px 2px oklch(0.155 0.060 261 / .18), 0 2px 5px oklch(0.155 0.060 261 / .12); }
.high-contrast .app .switch.on { box-shadow: none; }
.list-filters .chosen, .phrase-row.is-active { border-color: var(--accent-ink); }
.talk-surface.talk-state-recording, .talk-surface.talk-state-playing { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }

/* Places to type need a visible edge; the hairline stays for cards and dividers. */
.code-cells span, .access-input, textarea, .flow-modal input, .personal-record .slot-box input { border-color: var(--subtle); }
.code-field .access-input { border: 0; }
nav button { color: var(--muted); }

/* After the first visit the intro card collapses to its title. */
.page-hero.compact { padding: 0; margin-bottom: 20px; background: transparent; border: 0; border-radius: 0; }
.page-hero.compact :is(.page-art, .eyebrow-label, .intro) { display: none; }
.high-contrast .app .page-hero.compact { border: 0; }

/* Every chevron is the same vector icon family: 24px at row ends, 20px inside buttons. */
.stats-chevron, .preference-tail, .list-arrow { display: grid; place-items: center; flex: none; color: var(--muted); }
.stats-chevron { transition: transform 200ms ease; }
.usage-stats summary .stats-chevron svg, .preference-tail>svg, .list-arrow>svg { width: 24px; height: 24px; }
.list-arrow { align-self: center; }
.all-sentences>span:last-child svg, .sentence-navigation svg, .sentence-navigation button:last-child svg { width: 20px; height: 20px; transform: none; }

/* These modes change real interface presentation, including dialogs. */
.large-text .app h1{font-size:34px}.large-text .app h2{font-size:26px}.large-text .app p,.large-text .intro,.large-text .subtitle,.large-text .preference-copy b,.large-text .phrase-text,.large-text .list-content,.large-text .prompt-text,.large-text .state-notice b{font-size:22px}.large-text .app small,.large-text .preference-copy small,.large-text .phrase-meta,.large-text .record-status,.large-text .talk-hint,.large-text .app label{font-size:20px}.large-text .app button{font-size:20px}.large-text .app nav button{font-size:16px;min-height:64px}.large-text .personal-record .prompt-text,.large-text .recognized-sentence{font-size:38px}.large-text .app input,.large-text .app textarea{font-size:22px}.large-text .app .access-input{font-size:30px}.large-text .modal-body,.large-text .consent-copy,.large-text .modal-body p,.large-text .modal-body h3{font-size:22px}.large-text .modal-actions button{font-size:20px}.large-text .modal h2{font-size:26px}.large-text .phrase-main{flex-wrap:wrap}.large-text .phrase-play{flex-direction:row;width:auto}.large-text .talk-steps li{font-size:16px;white-space:normal}.large-text .talk-steps{align-items:flex-start}.large-text .talk-steps li>span{flex-shrink:0}.large-text .progress-details{flex-wrap:wrap}.large-text .list-filters button{font-size:18px}.large-text .progress-count strong{font-size:48px}.large-text .sentence-navigation{flex-wrap:wrap}.large-text .talk-secondary{flex-wrap:wrap}.large-text .talk-secondary button{flex-basis:140px}.large-text .session-picker button{font-size:20px}.large-text .panel-heading{flex-wrap:wrap}
.high-contrast{--ink:#172012;--muted:#27351e;--edge:#56634a;--accent:#ffe064;--accent-soft:#fff0aa}.high-contrast .app{background:#fff;color:#172012}.high-contrast .app :is(p,small,label,span,b,h1,h2,h3,li,dt,dd){color:#172012}.high-contrast .app :is(.card,.talk-surface,.preference-group,.participant-panel,.progress-panel,.phrase-row,.slot-box,.access-input,textarea,.option){border-color:#526146;border-width:2px}.high-contrast .app :is(.secondary,.soft-primary,.example-button,.list-filters button){border-color:#526146;border-width:2px;color:#172012}.high-contrast .app nav{border-top:2px solid #526146}.high-contrast .app :is(.active,.chosen){outline:2px solid #4e5c42;outline-offset:-2px}.high-contrast .app :is(.preference-row,.full-sentence,.all-sentences,.usage-stats){border-color:#526146}.high-contrast .app .switch{background:#d6dbcf;border:2px solid #526146}.high-contrast .app .switch.on{background:#edcf51}.high-contrast .app .switch:after{width:20px;height:20px;top:3px;left:3px;border:1px solid #526146}.high-contrast .app .switch.on:after{left:23px}.high-contrast .app button:disabled{background:#eee;color:#555;border-color:#777}.high-contrast .app button:disabled span{color:#555}.high-contrast .modal{background:#fff;border:2px solid #526146}.high-contrast .modal :is(p,small,h2,h3,label){color:#172012}.high-contrast .modal .secondary{border:2px solid #526146}.high-contrast .app :is(.error .state-symbol,.warning,.form-error){color:#822815}.high-contrast .app .record-status.review{color:#7f330c}.high-contrast .app .record-status.saved{color:#225232}.high-contrast .app .primary{color:#172012;border:2px solid #7a6517}
@media(max-width:360px){.preferences-page,.access-page{padding-left:16px;padding-right:16px}.preference-row{padding:16px 14px;gap:10px}.large-text .preference-row{gap:8px}.large-text .phrase-tabs button{font-size:18px}.large-text .record-footer{flex-wrap:wrap}.large-text .prompt-top{flex-wrap:wrap}}
