@charset "UTF-8";
:root{color-scheme:light;--bg:#f7f7f0;--paper:#fffefa;--ink:#193f35;--muted:#65756a;--line:#dce2d6;--green:#285c46;--pale:#e7eddf;--orange:#d55f34;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button,select,input{outline-offset:4px}:focus-visible{outline:3px solid var(--orange)}a{color:inherit}button svg{width:21px;height:21px;flex-shrink:0}svg{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}svg circle{fill:var(--bg)}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.skip-link{position:absolute;top:-60px;left:16px;padding:12px;background:white;z-index:20}.skip-link:focus{top:12px}.app-shell{max-width:1160px;margin:auto;padding:env(safe-area-inset-top) 40px env(safe-area-inset-bottom)}.app-header{display:flex;justify-content:space-between;align-items:center;padding:34px 0 30px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:14px;align-items:center;text-decoration:none;font-size:21px;letter-spacing:-.6px;font-weight:700}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:.2px;color:var(--muted);margin-top:5px}.brand-mark{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:15px;background:#ead9c5;font-size:28px;font-weight:650;letter-spacing:-1.8px}.brand-mark span{color:var(--orange);margin-left:1px}.header-actions{display:flex;gap:23px;align-items:center}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:transparent}.connection{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:11px}.connection i{width:6px;height:6px;background:#7d9278;border-radius:50%}.connection.offline i{background:#cf8744}.workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:62px;padding:38px 0 25px}.control-heading{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--muted)}.small-sun{font-size:29px;line-height:1;color:var(--orange)}h1{font-family:Georgia,"Times New Roman",serif;font-size:36px;font-weight:400;line-height:1.15;letter-spacing:-1.2px;margin:16px 0 29px}h2{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.6px;font-size:28px;font-weight:400;margin:7px 0 0}h3{font-size:15px;font-weight:650;margin:0 0 14px}.field-label{display:block;font-size:11px;font-weight:650;letter-spacing:.15px;margin-bottom:9px}select{width:100%;border:1px solid var(--line);border-radius:11px;background:var(--paper);padding:12px 31px 12px 12px;font-size:13px;min-height:46px;color:var(--ink);text-overflow:ellipsis}.muted{font-size:12px;line-height:1.65;color:var(--muted);margin:10px 0 0}.deck-caption{font-size:11px;margin-top:8px}.mode-buttons{display:grid;gap:7px;margin:26px 0}.mode-buttons button{border:1px solid transparent;display:flex;gap:12px;align-items:center;text-align:left;padding:13px 11px;background:transparent;border-radius:13px;min-height:67px}.mode-buttons button[aria-pressed=true]{background:var(--pale);border-color:#cfdcc7}.mode-buttons button>span:first-of-type{font-size:13px;font-weight:650;flex:1}.mode-buttons small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:5px}.mode-dot{width:7px;height:7px;border:1px solid #b5c0ac;border-radius:50%}.mode-buttons [aria-pressed=true] .mode-dot{background:var(--green);border-color:var(--green)}.segmented{display:flex;background:#eceee5;border-radius:10px;padding:4px;gap:2px}.segmented button{flex:1;border:0;background:transparent;border-radius:7px;font-size:11px;padding:10px 5px;min-height:39px;white-space:nowrap}.segmented button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 4px #193f3510;font-weight:600}.selection-control .muted{font-size:10px;min-height:33px}.add-deck{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;background:transparent;border:1px dashed #bac8b0;border-radius:11px;font-size:12px;padding:10px;margin-top:24px;min-height:45px}.add-deck svg{width:16px;height:16px}.side-note{border-top:1px solid var(--line);margin-top:31px;padding-top:21px;display:flex;gap:11px;align-items:center}.side-note>svg{width:25px;height:25px;color:#8b9d7e}.side-note p{margin:0;font-size:11px;line-height:1.65;color:var(--muted)}.practice{min-width:0}.practice-heading{display:flex;align-items:center;justify-content:space-between;margin:1px 0 24px;gap:10px}.session-badge{font-size:10px;white-space:nowrap;color:var(--muted);border:1px solid var(--line);border-radius:30px;padding:8px 11px}.session-badge b{font-weight:650;color:var(--ink)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:0 0 17px}.stats>div{padding-left:17px;border-left:1px solid var(--line)}.stats>div:first-child{border-left:0;padding-left:0}.stats strong{font-size:24px;font-weight:500;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.stats span{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin-top:5px}.stats i{width:5px;height:5px;border-radius:50%}.dot-learning{background:#d68c43}.dot-learned{background:var(--green)}.dot-due{background:#c55e46}.dot-remaining{background:#aeb7a5}.deck-progress{height:3px;width:100%;background:#e4e8dd;border-radius:3px;margin-bottom:22px;overflow:hidden}.deck-progress>div{background:var(--green);height:100%;width:0;transition:width .3s}.study-card{background:var(--paper);border:1px solid #d6dfcc;border-radius:24px;box-shadow:0 8px 26px #34552b05;min-height:365px;display:flex;flex-direction:column;overflow:hidden}.card-topline{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:22px 25px 0;font-size:9px;letter-spacing:1.4px;color:#74816f}.card-type{color:#79673e;background:#f0ebdb;padding:6px 8px;border-radius:5px;letter-spacing:.5px;font-size:9px}.card-type.review{background:#e7eddf;color:var(--green)}.flash-face{border:0;background:transparent;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;width:100%;min-height:208px;padding:25px 27px 15px}.flash-face #word{font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,5vw,51px);line-height:1.2;letter-spacing:-1px;overflow-wrap:anywhere;white-space:pre-line}.meaning{font-size:15px;line-height:1.65;color:#596c59;max-width:480px;overflow-wrap:anywhere;white-space:pre-line;margin:0}.flip-hint{font-size:11px;color:#718066;margin-top:3px}.audio-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:3px 15px 0}.listen-button{display:flex;align-items:center;gap:8px;border:1px solid #dae2d2;background:#f4f6ee;border-radius:25px;padding:10px 19px;font-size:11px;min-height:44px}.listen-button svg{width:16px;height:16px}.slow-button{border:0;background:transparent;font-size:10px;color:var(--muted);min-width:44px;min-height:44px}.audio-status{font-size:10px;text-align:center;color:var(--muted);margin:9px 22px 17px;line-height:1.5;min-height:15px}.audio-status.error{color:#a44632}.card-footer{margin-top:auto;border-top:1px solid #ebeee3;padding:15px 25px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#687a5d;background:#fcfcf6}.card-footer>span:last-child{color:#9ca98d}.reveal-actions{text-align:center;margin-top:18px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;background:var(--ink);color:#fffef4;border:1px solid var(--ink);border-radius:12px;padding:13px 22px;font-size:12px;font-weight:550}.primary-button svg{width:18px;height:18px}#reveal-answer{width:100%}.keyboard-hint{display:block;font-size:10px;color:#708064;margin-top:11px}.rating-panel{margin-top:18px;text-align:center}.rating-panel>p{font-size:11px;margin:0 0 11px;color:var(--muted)}.rating-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.rating-buttons button{min-height:54px;border-radius:11px;font-size:12px;border:1px solid #d9dfce;background:var(--paper);display:flex;align-items:center;justify-content:center;gap:8px}.rating-buttons span{font-size:9px;opacity:.65}.rating-failed{color:#aa4b39!important;background:#f9ebe4!important;border-color:#edd5c9!important}.rating-hard{color:#936621!important;background:#f6efd9!important;border-color:#e5dcbf!important}.rating-good{color:var(--green)!important;background:#eaf0e2!important;border-color:#d8e3cd!important}.rating-easy{color:#faffee!important;background:var(--green)!important;border-color:var(--green)!important}.save-status{text-align:center;font-size:10px;color:#6e7e62;margin:15px 0 0;min-height:15px}.app-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:20px 0 26px;font-size:10px;color:#718366;gap:15px}.text-button{background:transparent;border:0;font-size:11px;padding:10px 0;text-decoration:underline;text-underline-offset:3px;min-height:40px}.app-footer .text-button{font-size:10px;color:var(--muted);padding:0}.listening-face{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:174px;padding:26px 25px 15px;text-align:center;gap:9px}.listening-face>p{margin:0}.listening-face #listen-prompt{font-family:Georgia,"Times New Roman",serif;font-size:26px;letter-spacing:-.6px}.sound-waves{display:flex;align-items:center;gap:5px;height:42px;margin-bottom:8px}.sound-waves i{display:block;width:4px;background:#94a784;border-radius:5px;height:15px}.sound-waves i:nth-child(2n){height:28px}.sound-waves i:nth-child(3n){height:39px}.sound-waves i:nth-child(4){height:23px}.speaking .sound-waves i{animation:wave .65s ease-in-out infinite alternate}.speaking .sound-waves i:nth-child(2n){animation-delay:.2s}.listening-word{font-family:Georgia,"Times New Roman",serif;font-size:32px;overflow-wrap:anywhere;line-height:1.2;white-space:pre-line}.dictation{padding:0 24px 16px}.dictation .field-label{font-size:10px}.answer-row{display:flex;gap:8px}.answer-row input{width:100%;min-width:0;border:1px solid #c9d5bf;border-radius:10px;min-height:49px;font-size:16px;padding:12px 13px;background:#fffefb;color:var(--ink)}.answer-row button{min-width:49px;min-height:49px;border:0;border-radius:10px;background:var(--green);color:white}.dictation>.text-button{display:block;margin:auto;color:var(--muted);font-size:10px}.dictation-result{font-size:12px;line-height:1.6;text-align:center;margin:0 24px 17px;color:var(--green)}.dictation-result.incorrect{color:#a24e38}dialog{color:var(--ink);background:var(--paper);border:1px solid #d4dec9;border-radius:25px;padding:27px;width:calc(100% - 28px);max-width:535px;max-height:calc(100dvh - 50px);overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 90px #193f352b}dialog::backdrop{background:#102b2366;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.dialog-heading h2{font-size:27px}.dialog-heading .icon-button{flex-shrink:0}.dialog-section{padding:22px 0;border-top:1px solid var(--line)}.dialog-section .muted{font-size:11px}.dialog-section>select{font-size:12px}.setting-row{display:flex;align-items:center;justify-content:space-between;margin:18px 0;gap:12px;font-size:12px}.setting-row select{max-width:174px;font-size:11px}.switch-row{display:flex;align-items:center;gap:12px;font-size:12px;margin:19px 0}.switch-row input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}.switch-row small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:4px}.secondary-button{background:transparent;border:1px solid var(--line);border-radius:10px;min-height:46px;padding:11px 13px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary-button svg{width:16px;height:16px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}.danger-text{color:#ac4d34}.danger-section{padding-bottom:0}.version-label{font-size:9px;color:#708064;text-align:center;margin:20px 0 0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.import-summary{background:var(--pale);padding:15px;border-radius:12px;font-size:12px;line-height:1.7;white-space:pre-line}#import-description,#confirm-description{font-size:13px;line-height:1.7}.install-steps{list-style:none;padding:0;margin:0 0 25px;display:grid;gap:23px}.install-steps>li{display:flex;gap:15px}.install-steps>li>span{border-radius:50%;width:32px;height:32px;background:var(--pale);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:11px}.install-steps strong{font-size:13px}.install-steps p{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 0}#install-dialog>.primary-button{width:100%;margin-top:20px}.error-banner,.update-banner{background:#f6e5dc;border:1px solid #e5bfaa;padding:14px 17px;border-radius:12px;font-size:12px;line-height:1.6;margin-top:20px}.error-banner div{display:flex;gap:18px}.update-banner{display:flex;justify-content:space-between;align-items:center;background:var(--pale);border-color:var(--line)}.toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;background:var(--ink);color:white;border-radius:12px;padding:14px 21px;font-size:12px;line-height:1.5;box-shadow:0 5px 25px #193f3530;width:max-content;max-width:calc(100% - 36px);text-align:center}button:hover:enabled{filter:brightness(.97)}.primary-button:hover:enabled{background:#285342}.flash-face:hover:enabled{filter:none}body:has(dialog[open]){overflow:hidden}@keyframes wave{from{transform:scaleY(.6)}to{transform:scaleY(1.15)}}
@media(min-width:1100px){.workspace{gap:85px;grid-template-columns:267px minmax(0,1fr)}.practice-heading{margin-bottom:27px}.study-card{min-height:387px}.flash-face{min-height:224px}}
@media(max-width:800px){.app-shell{padding-left:25px;padding-right:25px}.workspace{grid-template-columns:220px minmax(0,1fr);gap:28px}.card-topline{padding:19px 18px 0}.flash-face{padding-left:20px;padding-right:20px}.card-footer{padding:15px 18px}.stats>div{padding-left:9px}.rating-buttons{gap:5px}.rating-buttons button{font-size:11px;gap:4px}.practice-heading .eyebrow{font-size:9px}.session-badge{padding:7px 8px}.header-actions{gap:13px}}
@media(max-width:640px){.app-shell{padding-left:20px;padding-right:20px}.app-header{padding:19px 0 18px}.brand{font-size:20px;gap:11px}.brand-mark{width:42px;height:42px;border-radius:13px;font-size:25px}.brand small{font-size:10px}.connection{font-size:9px;max-width:85px}.header-actions{gap:10px}.icon-button{width:42px;height:42px}.workspace{display:flex;flex-direction:column;gap:22px;padding:22px 0}.control-heading,.study-controls h1,.side-note,.deck-caption,.selection-control>.field-label{display:none}.study-controls>.field-label{font-size:10px;margin-bottom:7px}.study-controls{position:relative}.study-controls>.select-wrap{margin-right:48px}.study-controls select{font-size:13px;min-height:46px;padding-top:11px;padding-bottom:11px}.add-deck{position:absolute;right:0;top:21px;width:40px;height:46px;min-height:46px;margin:0;border:1px solid var(--line);font-size:0;border-radius:11px;gap:0}.add-deck svg{width:19px;height:19px}.mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0 12px}.mode-buttons button{min-height:47px;padding:10px 11px;gap:9px;justify-content:center;background:#eeefe7}.mode-buttons button>span:first-of-type{font-size:11px;flex:initial}.mode-buttons small,.mode-dot{display:none}.mode-buttons svg{width:17px;height:17px}.segmented{padding:3px;border-radius:9px}.segmented button{min-height:36px;padding:8px 5px;font-size:10px}.selection-control{display:flex;align-items:center;gap:12px}.selection-control>.segmented{min-width:204px;flex:1}.selection-control .muted{font-size:9px;line-height:1.45;min-height:0;margin:0;max-width:115px;flex:1}.practice-heading{margin:0 0 18px}.practice-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.practice-heading h2{font-size:25px;margin-top:6px}.session-badge{font-size:9px;padding:8px 9px}.stats{margin-bottom:14px}.stats strong{font-size:25px}.stats span{font-size:9px;gap:5px;margin-top:5px}.stats>div{padding-left:12px}.deck-progress{margin-bottom:17px}.study-card{min-height:330px;border-radius:21px}.card-topline{padding:17px 18px 0;font-size:8px;letter-spacing:1.3px}.card-type{font-size:8px;padding:5px 7px}.flash-face{min-height:183px;gap:15px;padding:25px 22px 16px}.flash-face #word{font-size:42px}.flash-face .meaning{font-size:14px}.flip-hint{font-size:10px}.listen-button{min-height:44px;padding:9px 18px}.audio-status{margin-top:6px;margin-bottom:15px;font-size:9px}.card-footer{font-size:9px;padding:13px 18px}.reveal-actions{margin-top:14px}.primary-button{min-height:49px;font-size:12px;border-radius:11px}.keyboard-hint{display:none}.rating-panel{margin-top:15px}.rating-buttons{gap:7px}.rating-buttons button{font-size:11px;min-height:53px;gap:5px}.rating-buttons span{font-size:8px}.save-status{margin-top:12px;font-size:9px}.app-footer{padding:5px 0 20px;border:0;justify-content:center;flex-wrap:wrap;gap:2px}.app-footer>span{display:none}.app-footer .text-button{font-size:10px;min-height:38px}.listening-face{min-height:151px;padding:22px 20px 12px}.listening-face #listen-prompt{font-size:25px}.listening-word{font-size:29px}.dictation{padding:0 18px 8px}.dictation-result{font-size:11px;margin:0 18px 16px}.error-banner{font-size:11px}.update-banner{font-size:10px;gap:15px}dialog{padding:23px 21px;border-radius:22px;max-height:calc(100dvh - 34px)}.dialog-heading h2{font-size:25px}.dialog-section{padding:20px 0}.dialog-heading .icon-button{width:39px;height:39px}.action-grid .secondary-button{padding:10px;font-size:10px}}
@media(max-width:360px){.app-shell{padding-left:14px;padding-right:14px}.brand small{font-size:9px}.connection{font-size:8px;max-width:70px}.selection-control{gap:8px}.selection-control>.segmented{min-width:193px}.selection-control .muted{font-size:8px}.mode-buttons button{padding:10px 8px;gap:7px}.mode-buttons button>span:first-of-type{font-size:10px}.stats>div{padding-left:9px}.stats span{font-size:8px}.stats strong{font-size:23px}.practice-heading h2{font-size:23px}.flash-face #word{font-size:36px}.rating-buttons{gap:5px}.rating-buttons button{gap:4px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Comfortable touch targets on phones, including small utility controls. */
@media(pointer:coarse){.icon-button,.text-button{min-height:44px;min-width:44px}.segmented button{min-height:44px}.close-dialog.icon-button{width:44px;height:44px}}
.profile-bar{display:flex;align-items:flex-end;gap:12px;padding-top:20px}.profile-field{max-width:270px;flex:1;min-width:0}.profile-field .field-label{margin-bottom:7px}.profile-field .field-label span{font-weight:400;color:var(--muted)}.profile-bar>.secondary-button{min-height:46px;white-space:nowrap}.profile-name{display:block;width:100%;min-height:49px;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:16px;background:var(--paper);color:var(--ink)}.profile-error{font-size:12px;line-height:1.5;color:#a44632;margin:12px 0 0}.profile-error:empty{display:none}@media(max-width:640px){.profile-bar{padding-top:16px;gap:9px}.profile-field{max-width:none}.profile-field .field-label{font-size:10px}.profile-bar>.secondary-button{font-size:11px;padding:10px}.profile-bar>.secondary-button svg{width:15px;height:15px}.workspace{padding-top:17px}}

.voice-test-status{font-size:12px;line-height:1.6;padding:12px;border-radius:10px;background:var(--pale);margin:10px 0 0}.voice-test-status.error{color:#a44632;background:#f9ebe4}#refresh-voices{margin-left:16px}

/* Account and sync controls */
.cloud-status{margin:-12px 0 24px;color:var(--muted,#65715c);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.account-button{min-height:44px;white-space:nowrap}.account-identity{font-weight:600;overflow-wrap:anywhere}
#account-dialog{max-width:580px}#account-dialog p{font-size:16px;line-height:1.6}.cloud-choice{padding:20px 0 0;margin-top:20px;border-top:1px solid #d4d9cc}.account-notice{color:#526a3b}.account-notice:empty,#account-error:empty{display:none}#account-dialog .dialog-actions{flex-wrap:wrap}
@media(max-width:600px){.header-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.header-actions .connection{display:none}.account-button{padding:9px 12px}.cloud-status{margin-top:-12px}#account-dialog .dialog-actions{align-items:stretch}#account-dialog .dialog-actions button{flex:1 1 100%}}
#account-form .field-label{display:block;margin:16px 0 7px}#account-form .dialog-actions{margin-top:20px}#account-mode{margin-top:14px}#account-password{font-family:inherit}
