/* Main mode navigation. Existing create/check actions retain their IDs/listeners. */
.nav-more{position:relative;flex:none}.nav-more-panel{position:absolute;z-index:40;top:calc(100% + 8px);right:0;min-width:230px;max-width:calc(100vw - 32px);padding:7px;border:1px solid #354048;border-radius:12px;background:#151c21;box-shadow:0 12px 40px #0008}
.nav .nav-more-panel button{width:100%;justify-content:flex-start;min-height:44px;text-align:left;white-space:normal}.nav-more-panel button:hover{background:#242d33}.nav-more>button[aria-expanded=true],.nav-more>button[data-current=true]{background:#242d33;color:#eeeae3}.nav-more>button svg{flex:none}.nav-short{display:none}
.training-view .nav-more,.training-view .nav-more>button{width:100%}.training-view .nav-more-panel{top:100%;left:0;right:auto;width:230px}.nav-more button svg{display:block}
.fc-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.fc-heading label{max-width:460px;min-width:0;width:50%}.fc-heading select{min-height:44px}
#screenFlashcards{--wk-muted:#a4a8ad;--wk-line:#2b353c;background:radial-gradient(ellipse at top left,#131a1e,#0e1316 70%);min-height:calc(100dvh - 76px)}
.fc-work{max-width:560px;margin:28px auto 0}.fc-work>.fc-button[data-card-action=back]{margin-bottom:16px;background:transparent;border-color:transparent;justify-content:flex-start;padding-left:0;min-height:44px;color:#a4a8ad}.fc-work svg{width:20px;height:20px;flex:none}
.fc-progress{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;margin-bottom:26px}.fc-progress>span:last-of-type{color:#a4a8ad}.fc-progress progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:4px;background:#2b353c;overflow:hidden}.fc-progress progress::-webkit-progress-bar{background:#2b353c}.fc-progress progress::-webkit-progress-value{background:#ff545e}.fc-progress progress::-moz-progress-bar{background:#ff545e}
.fc-layout{display:grid;gap:18px}.fc-deck{position:relative;padding-top:13px}.fc-deck::before{content:"";position:absolute;inset:0 16px 20px;border:1px solid #354048;border-radius:17px;background:#182126}.fc-card{position:relative;min-width:0;border:1px solid #414b53;border-radius:18px;background:linear-gradient(140deg,#202a30,#1a2328);overflow:hidden}.fc-face{min-height:310px;padding:28px 24px 16px;text-align:center;display:flex;flex-direction:column;justify-content:center}.fc-answer{min-height:78px;display:grid;place-items:center}.fc-translation{font-size:clamp(22px,4vw,32px);line-height:1.3;margin:12px 0 0;overflow-wrap:anywhere}.fc-card>.fc-button{width:100%;border-radius:0;border-width:1px 0 0;border-color:#414b53;min-height:58px;background:transparent}
.fc-dock{display:grid;grid-template-columns:1fr 1fr;gap:13px;align-content:center;min-width:0}.fc-button{min-height:52px;white-space:normal;line-height:1.4;text-align:center;width:100%}.fc-dock>[data-card-action=choose]{grid-column:1/-1;min-height:48px;background:transparent}.fc-choice,.fc-complete{display:grid;gap:16px;padding:34px 0}.fc-choice h2,.fc-complete h2{margin-bottom:12px}.fc-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:12px;border:1px solid #354048;border-radius:10px}.fc-notice .fc-button{width:auto;min-height:44px}.fc-save-error{border:0;background:transparent;color:#ffa1a7;text-decoration:underline;min-height:44px;padding:12px 0;text-align:left}
.fc-writing-face{padding:24px}.fc-prompt{font-size:clamp(26px,5vw,42px);overflow-wrap:anywhere;margin:0 0 24px}.fc-writing-face form{display:grid;gap:16px}.fc-input{font-size:22px;min-height:56px;background:#10191e}.fc-feedback{margin-top:24px;overflow-wrap:anywhere}.fc-feedback>strong{font-size:18px}.fc-feedback>p{color:#a4a8ad}.fc-writing .fc-dock{grid-template-columns:1fr}.fc-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}.fc-switch input{width:40px;height:22px;accent-color:#ff545e;cursor:pointer}.fc-help{font-size:12px;color:#a4a8ad;margin:0;line-height:1.7}.cards-memory-return{padding:12px 32px 0}.cards-memory-return .btn{min-height:44px;background:transparent;border-color:transparent;padding-left:0}
/* Reuse the real pronunciation component; only card-specific typography differs. */
#screenFlashcards .wk-pronunciation .wk-word{font-size:clamp(36px,6vw,72px);color:#eeeae3;letter-spacing:-.04em;line-height:1.15}
#screenFlashcards .wk-word-line{margin-top:0}.fc-writing #wordbeatPronunciationAudio{display:none}
@media(max-width:1100px) and (min-width:761px){body:not(.training-view) .topbar{gap:15px;padding-inline:20px}body:not(.training-view) .nav button{padding-inline:9px;gap:6px}body:not(.training-view) .header-tools>label{display:none}}
@media(max-width:760px){
 .topbar .nav,.training-view .topbar .nav{display:grid;grid-template-columns:1fr 1.35fr 1fr .75fr;overflow:visible;gap:2px;width:100%;min-width:0}
 .topbar .nav>button,.topbar .nav>.nav-more>button,.training-view .topbar .nav>button,.training-view .topbar .nav>.nav-more>button{display:flex;justify-content:center;align-items:center;min-height:44px;min-width:0;width:100%;font-size:12px;padding:6px 4px;gap:4px;text-align:center;white-space:normal;line-height:1.2}
 .topbar .nav>button svg{display:none}.topbar .nav>.nav-more>button svg{display:none}.topbar .nav .nav-more-panel button{display:flex;justify-content:flex-start;gap:9px;font-size:13px;min-height:48px;padding:10px}
 .topbar .nav .nav-more-panel button svg{display:block;width:18px;height:18px}.training-view .nav-more-panel{left:auto;right:0;top:calc(100% + 8px)}
 .fc-heading{gap:18px;flex-wrap:wrap}.fc-heading label{width:100%;max-width:none}.fc-work{margin-top:22px}.fc-face{padding:24px 16px 10px;min-height:260px}.fc-progress{margin-bottom:18px}.fc-writing-face{padding:20px 16px}.fc-notice{flex-wrap:wrap}.cards-memory-return{padding:12px 20px 0}
 #screenFlashcards .wk-pronunciation .wk-word{font-size:clamp(32px,10vw,56px)}
}
@media(max-width:1000px) and (max-height:600px) and (orientation:landscape){
 .training-view .topbar .nav{overflow:visible}.training-view .nav-more-panel{left:auto;right:0}
 .fc-work{max-width:none;margin-top:16px}.fc-heading{align-items:center;flex-wrap:nowrap}.fc-heading label{max-width:55%;font-size:11px}.fc-heading label>span{display:none}.fc-progress{margin-bottom:14px}.fc-layout{grid-template-columns:minmax(0,1.35fr) minmax(180px,1fr);gap:18px;align-items:center}.fc-dock{grid-template-columns:1fr}.fc-dock>[data-card-action=choose]{grid-column:auto}.fc-face{min-height:205px;padding:20px 16px 6px}.fc-answer{min-height:56px}.fc-card>.fc-button{min-height:48px}.fc-writing-face{padding:16px}.fc-prompt{margin-bottom:16px;font-size:28px}.fc-input{min-height:52px}.fc-heading h1{font-size:24px}
}
@media(max-width:350px){.topbar .nav>button,.topbar .nav>.nav-more>button,.training-view .topbar .nav>button,.training-view .topbar .nav>.nav-more>button{font-size:11px}.fc-dock{gap:9px}.fc-button{font-size:13px;padding-inline:8px}.fc-face{padding-inline:12px}.fc-work svg{width:18px;height:18px}}
