/* Share Learning's actual shell, card, typography and arrow navigation. */
.top nav{gap:24px}.brand{text-decoration:none}.footer a{color:inherit;text-decoration:none}.footer{min-height:40px}.shell main{justify-content:flex-start;padding-top:24px}.concept,.quiz.typed{margin:36px auto}.learning-card .concept-body{padding:44px 0 32px}.learning-card .word{margin-bottom:42px}.long-word{font-size:clamp(30px,4.3vw,48px);letter-spacing:-.035em}.translation-value{display:flex;align-items:center;gap:12px}.translation-value h3{margin:12px 0 0}.translation .pos{font-weight:400;text-transform:none;letter-spacing:0}.word-open{border:0;border-bottom:1px dotted #aab19f;background:none;color:inherit;font:inherit;padding:0;cursor:pointer}.listen{border:0;background:none;min-width:44px;min-height:44px;color:var(--muted);display:inline-grid;place-items:center;vertical-align:middle}.listen:hover{color:var(--accent)}#audio-status{font-size:14px;color:var(--muted)}#word-reference{margin-top:26px}#word-reference>summary{font-size:14px;cursor:pointer;color:var(--muted);width:fit-content;min-height:32px}#word-reference .meaning{display:none}#card-note{margin-top:18px}#card-note .concepts{margin-top:0}.check-label{font-size:14px}.learning-navigation{align-items:stretch}.learning-navigation button{display:flex;align-items:center;justify-content:center;gap:12px}.stage h1{font-size:clamp(30px,4.6vw,48px);margin:0 0 24px}.stage .concept-body{padding-bottom:40px}.stage-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px}.stage .muted{max-width:520px}.test-cue{font-size:14px;color:var(--muted);margin:-12px 0 24px}.choices{display:grid;gap:10px}.choice{display:flex;align-items:center;gap:16px;width:100%;text-align:left;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fffefa;color:var(--ink);min-height:60px;font-size:16px;line-height:1.45}.choice:hover:not(:disabled){background:var(--accent-soft);border-color:#a6bca8}.choice-letter{font-size:14px;color:var(--muted);border:1px solid var(--line);border-radius:5px;min-width:26px;padding:4px;text-align:center}.choice:disabled{opacity:1}.choice.correct{background:var(--accent-soft);border-color:var(--accent)}.choice.incorrect{background:#faf0e9;border-color:#ad7863}.choice-mark{margin-left:auto;color:var(--accent)}.test-actions{display:flex;justify-content:space-between;align-items:center;margin-top:24px;gap:20px}.test-feedback:empty{display:none}.test-feedback{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.feedback-title{font-size:14px;margin-bottom:10px}.expected{font-size:24px;line-height:1.5;margin:0 0 12px}.test-feedback>.primary{display:flex;margin-left:auto}.accent-keys{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0 12px}.accent-keys button{background:transparent;border:1px solid var(--line);border-radius:6px;min-width:36px;min-height:36px}.input-tools{width:100%}.course-page{width:min(100%,722px);margin:40px auto 52px}.course-title h1{margin:12px 0 28px}.days{display:flex;border-bottom:1px solid var(--line);gap:8px;margin-bottom:28px}.days button{flex:1;border:0;border-bottom:2px solid transparent;background:none;padding:16px 8px;color:var(--muted);font-size:13px}.days button[aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent)}.day-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 12px}.day-heading h2{font-size:22px;margin:0 0 6px;font-weight:400}.day-heading span{font-size:14px;color:var(--muted)}.set-list{border-top:1px solid var(--line)}.set-list>button{width:100%;display:grid;grid-template-columns:40px 1fr 24px;align-items:center;gap:16px;padding:20px 8px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;color:var(--ink)}.set-list>button:hover{background:var(--accent-soft)}.set-number{font-size:13px;color:var(--muted)}.set-list strong{font-size:16px;font-weight:400;display:block}.set-list small{display:block;color:var(--muted);font-size:14px;margin-top:6px}.review-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0}.review-row strong{font-size:14px;font-weight:500}.review-row p{font-size:14px;color:var(--muted);line-height:1.6;margin:6px 0 0}.review-row .secondary{flex-shrink:0}.search{width:100%;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fffefa;margin:12px 0 20px}.search-row{display:grid;grid-template-columns:160px 1fr;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;font-size:14px}.search-row small{display:block;color:var(--muted);font-size:13px;margin-top:4px}#storage{font-size:13px;background:#fff1d8;padding:12px;border-radius:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.shell:has(#grammar[open],#chunk-help:popover-open) .learning-navigation{visibility:hidden}
@media(max-width:600px){.shell main{padding-top:0}.concept,.quiz.typed{margin:28px auto}.learning-card .concept-body{padding:32px 0 24px}.learning-card .word{margin-bottom:28px}.translation{display:block}.translation-value{justify-content:flex-start}.translation-value h3{margin-top:12px}.study-label .eyebrow{font-size:12px;letter-spacing:.6px}.study-head{gap:10px}.course-page{margin:28px auto}.review-row{gap:12px}.search-row{grid-template-columns:110px 1fr;gap:12px}.footer{gap:12px}.footer span{font-size:12px}.top nav{gap:18px}.test-feedback>.primary{width:100%}.choice{font-size:15px;padding:12px}.quiz.typed .word{margin-top:32px}.days{gap:0}.day-heading .primary{gap:12px}}
.pass-rule{font-size:14px;color:var(--muted);line-height:1.6;margin:20px 0 0}.test-rules{margin-top:24px;font-size:14px;color:var(--muted);line-height:1.6}.test-rules summary,.relearn summary{cursor:pointer;padding:8px 0}.test-rules p{margin:12px 0}.context-sentence{font-size:clamp(28px,4.5vw,42px);line-height:1.5;margin:36px 0;letter-spacing:-.7px}.context-sentence mark{background:#dceade;color:var(--ink);border-radius:4px;padding:0 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.context-explanation,.relearn{font-size:14px;line-height:1.6}.relearn{margin:18px 0}.relearn p{margin-top:12px}
.context-translation{font-size:clamp(20px,2.4vw,26px);line-height:1.5;margin:28px 0 18px;color:var(--ink)}.context-translation+.context-sentence{margin-top:16px}.cloze-blank{display:inline-block;width:2.5em;height:1.05em;vertical-align:-.14em;margin:0 .12em;border-radius:6px;border-bottom:2px solid #87a58c;background:var(--accent-soft)}.voice-input{display:flex;gap:8px;align-items:flex-start;flex-direction:column}.voice-input .hint{margin:0}.voice-input button[aria-pressed=true]{color:#9b4c36}.voice-input button{padding:8px 0}.voice-input button:disabled{opacity:.7;font-size:13px}
.quick-word.tip-dismissed>.quick-meaning{display:none}.quick-meaning::after{content:'';position:absolute;top:100%;left:0;width:100%;height:8px}.quick-meaning:empty{display:none}

/* Keep the prompt prominent; group optional tools instead of stacking helper rows. */
.lemma-study-page .plain,.lemma-study-page .primary,.lemma-study-page .secondary{font-size:15px;min-height:44px}
.lemma-study-page .hint{font-size:14px}.lemma-study-page .eyebrow,.lemma-study-page .counter{font-size:13px;letter-spacing:.2px;text-transform:none}.lemma-study-page .phase-badge{font-size:12px;letter-spacing:0;text-transform:none}
.answer-tools{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-top:8px}.answer-tools .input-tools{width:auto;flex:1;margin:0}.answer-tools summary{font-size:14px;min-height:44px}.answer-tools .voice-input{max-width:50%}.answer-tools .voice-input button{white-space:nowrap}.voice-input .hint:empty{display:none}.test-rules{margin-top:18px}.quiz.typed .test-actions{margin-top:16px}.quiz.typed .context-sentence{margin-bottom:24px}
@media(max-width:420px){.answer-tools{gap:12px;flex-wrap:wrap}.answer-tools .voice-input{max-width:100%}.study-label{flex-wrap:wrap}.lemma-study-page .study-label .eyebrow{font-size:12px}}

.lemma-study-page .footer,.lemma-study-page .footer span{font-size:13px}

/* Group answer, feedback and the next action; keep supporting rules peripheral. */
.test-feedback{border:1px solid #b6d1bd;border-radius:12px;background:#edf5ef;margin-top:24px;padding:20px 24px;color:var(--ink)}
.test-feedback.is-incorrect{border-color:#dfb8af;background:#fcf0ed}.test-feedback.is-correct .feedback-title{color:#285d3c}.test-feedback.is-incorrect .feedback-title{color:#984637}
.test-feedback .feedback-title{font-size:16px;font-weight:500;margin:0 0 10px}.test-feedback .expected{font-size:28px;margin:0}.test-feedback p:last-child:empty{display:none}.test-feedback .hint{margin:10px 0 0}.test-feedback .context-explanation{margin:14px 0 0}
.continue-row{display:flex;justify-content:flex-end;margin-top:16px}.test-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-top:22px}.rule-trigger{border:0;background:none;color:var(--muted);font-size:12px;padding:12px 0;min-height:44px}.rule-help .quick-meaning{max-width:min(330px,75vw);font-size:14px;bottom:calc(100% - 2px)}.rule-help .quick-meaning p{margin:0 0 10px}.rule-help .quick-meaning p:last-child{margin:0}.lemma-study-page .sound-toggle-label{font-size:12px}.answer-tools summary{font-size:18px;letter-spacing:2px}.answer-tools:has(.input-tools[open]){align-items:flex-start}.typed-answer[readonly]{color:var(--muted);font-size:20px}.quiz.typed:has(.test-feedback:not(:empty)) .context-sentence{margin-bottom:12px}.test-footer .quick-word:last-child>.quick-meaning{left:0;right:auto}

.submitted-answer{font-size:14px;color:var(--muted);margin:0 0 10px}.quiz.typed:has(.test-feedback:not(:empty)) .test-feedback{margin-top:18px}

.lemma-study-page .dictation-mic{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;color:var(--muted)}.dictation-mic:hover{background:var(--accent-soft);color:var(--accent)}.dictation-mic[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.dictation-mic[data-state=transcribing]{opacity:.6}.dictation-mic:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.answer-line{display:flex;align-items:center;border-bottom:1px solid #aab19f;gap:12px}.answer-line:focus-within{border-bottom-color:var(--accent)}.answer-line .typed-answer{flex:1;min-width:0;border-bottom:0;margin:0;padding:12px 0}.answer-line .typed-answer:focus-visible{border:0;padding-bottom:12px}.answer-line .voice-input{flex:none}.dictation-mic{position:relative}.dictation-mic[data-state=transcribing] svg,.dictation-mic[data-state=starting] svg{opacity:0}.dictation-mic[data-state=transcribing]::after,.dictation-mic[data-state=starting]::after{content:'';position:absolute;width:17px;height:17px;border:1.5px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:dictation-spin .8s linear infinite}.dictation-mic[data-state=error],.dictation-mic[data-state=ended]{color:#984637}@keyframes dictation-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.dictation-mic::after{animation:none!important}}

.lemma-study-page a:focus-visible,.lemma-study-page button:focus-visible,.lemma-study-page summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.answer-line:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}.skip-study{position:fixed;top:8px;left:8px;transform:translateY(-160%);z-index:100;background:var(--paper,#faf9f6);padding:12px;color:var(--ink)}.skip-study:focus{transform:none}#app:focus{outline:none}#keyboard-help{width:min(480px,calc(100% - 32px));border:1px solid var(--line);border-radius:14px;padding:28px;color:var(--ink);background:#faf9f6}#keyboard-help::backdrop{background:#20251e55}#keyboard-help h2{font-size:23px;font-weight:500;margin:0 0 24px}.keyboard-close{float:right;font-size:24px!important;padding:0 8px!important}#keyboard-help dl{display:grid;grid-template-columns:125px 1fr;gap:16px;font-size:14px;line-height:1.5}#keyboard-help dt{font-weight:500}#keyboard-help dd{margin:0;color:var(--muted)}#keyboard-help :focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.other-apps{position:relative;color:var(--muted)}.other-apps summary{cursor:pointer;list-style:none;padding:10px 0;font-size:12px;min-height:40px;display:flex;align-items:center;box-sizing:border-box}.other-apps summary::-webkit-details-marker{display:none}.other-apps nav{position:absolute;bottom:calc(100% + 6px);left:0;z-index:5;display:flex;flex-direction:column;min-width:150px;padding:6px;background:#fffefa;border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 24px #20251e12}.other-apps nav a{padding:12px;font-size:14px;border-radius:6px}.other-apps nav a:hover{background:var(--accent-soft)}.other-apps :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#keyboard-help-open{font-size:32px;line-height:1;min-width:36px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}

#course-account{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid var(--line);border-radius:18px;padding:32px;background:var(--bg);color:var(--ink)}
#course-account::backdrop{background:rgb(30 29 25 / .25)}
#course-account .course-reset{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
#course-account .course-reset p:empty{display:none}

.lemma-search{width:min(680px,calc(100vw - 32px));max-height:80svh;box-sizing:border-box;border:1px solid var(--line);border-radius:18px;padding:36px 28px 24px;background:var(--paper,#faf9f6);color:var(--ink);overflow:hidden}.lemma-search[open]{display:flex;flex-direction:column}.lemma-search>.keyboard-close{position:absolute;top:12px;right:16px}.lemma-search>.search,.lemma-search>#matches{flex-shrink:0}.lemma-search>#list{min-height:0;overflow-y:auto;overscroll-behavior:contain}.lemma-search::backdrop{background:#172c2140;backdrop-filter:blur(3px)}.lemma-search .search{width:100%;box-sizing:border-box;margin-top:12px}.lemma-search .search-row{display:flex;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}.lemma-search .search-row small{display:block;color:var(--muted)}

.lemma-search .search-row{padding:12px 10px;border-radius:8px}.lemma-search .search-row.is-active{background:var(--accent-soft)}.lemma-search .search-row:hover{background:var(--accent-soft)}.lemma-search .search-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

.lemma-search .search-match{font-weight:650;color:inherit}

.restart-control{display:inline-flex;align-items:center;flex-wrap:wrap;gap:12px}.restart-question{font-size:14px;line-height:1.4}.restart-control [data-action="confirm-restart"]{color:#ae3427}.restart-control [data-action="cancel-restart"]{color:var(--accent)}

.test-footer:has(.restart-control){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start}.test-footer:has(.restart-control) .sound-toggle-label{justify-self:end}.test-footer .restart-control{min-width:0;gap:8px}.test-footer .restart-question{align-self:center}
@media(max-width:600px){.test-footer:has(.restart-control){grid-template-columns:1fr auto}.test-footer .restart-control{grid-row:2;grid-column:1 / -1}.test-footer:has(.restart-control) .rule-help{grid-row:1;grid-column:1}.test-footer:has(.restart-control) .sound-toggle-label{grid-row:1;grid-column:2}}
