/* 불규칙 동사 (dist/verbs-tab.js, 2026-11-15): levels, the set list, the study table (현재 / 과거 / 과거분사, Korean small
   under each form), 1차 테스트 (say the two forms) and 2차 테스트 (type them), and the result card. Colours: the 화면 색 tokens
   (--t-*); text: the --act-* tokens; every tap target 44 px or more. Each test card keeps its size from verb to verb. */
.student-verbs-view{--verbs-radius:16px;display:flex;flex-direction:column;gap:12px}
.verbs-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:4px;border:1px solid var(--t-line);border-radius:14px;background:var(--t-card)}
.verbs-level{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:52px;margin:0;padding:4px 6px;border:0;border-radius:10px;background:transparent;color:var(--t-muted);box-shadow:none}
.verbs-level b{font-size:var(--act-button,15px);line-height:1.3;font-weight:800}
.verbs-level small{font-size:var(--act-label,12px);line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums}
.verbs-level.is-on{background:var(--t-primary);color:var(--t-on-primary)}
.verbs-level:hover{filter:none}
.verbs-level:focus-visible,.verbs-set-button:focus-visible,.verbs-row:focus-visible,.verbs-test:focus-visible{outline:3px solid var(--t-focus);outline-offset:-3px}
.verbs-summary{display:grid;gap:8px;padding:12px 14px;border:1px solid var(--t-line);border-radius:var(--verbs-radius);background:var(--t-card)}
.verbs-summary-text{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.verbs-summary-text b{min-width:0;color:var(--t-ink);font-size:var(--act-button,15px);line-height:1.35;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.verbs-summary-text span{flex:0 0 auto;color:var(--t-muted);font-size:var(--act-note,13px);font-weight:700;white-space:nowrap}
.verbs-meter{height:8px;border-radius:999px;background:var(--t-bg);overflow:hidden}
.verbs-meter.is-thin{height:6px;margin-top:-6px}
.verbs-meter>span{display:block;height:100%;border-radius:inherit;background:var(--t-primary);transition:width 320ms cubic-bezier(.2,.8,.2,1)}
.verbs-sets{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.verbs-set-button{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;box-sizing:border-box;width:100%;min-height:64px;margin:0;padding:10px 12px;border:1px solid var(--t-line);border-radius:var(--verbs-radius);background:var(--t-card);color:var(--t-ink);text-align:left;box-shadow:none}
.verbs-set-button:hover{filter:none}
.verbs-set-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--t-accent-soft);color:var(--t-primary);font-size:var(--act-label,13px);font-weight:800;font-variant-numeric:tabular-nums}
.verbs-set-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.verbs-set-copy strong{font-size:var(--act-button,15px);line-height:1.35;font-weight:800}
.verbs-set-copy span{color:var(--t-muted);font-size:var(--act-note,13px);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.verbs-chip{display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:0 10px;border-radius:999px;font-size:var(--act-label,12px);font-weight:800;white-space:nowrap}
.verbs-chip.is-open{background:var(--t-primary);color:var(--t-on-primary)}
.verbs-chip.is-half{background:var(--t-accent-soft);color:var(--t-primary)}
.verbs-chip.is-done{background:var(--t-success);color:var(--t-on-primary)}
.verbs-chip.is-locked{background:var(--t-bg);color:var(--t-muted)}
.verbs-set.is-done .verbs-set-button{border-color:var(--t-success);background:var(--t-success-soft)}
.verbs-set.is-done .verbs-set-number{background:var(--t-success);color:var(--t-on-primary)}
.verbs-set.is-locked .verbs-set-button{cursor:default;background:var(--t-bg)}
.verbs-set.is-locked .verbs-set-copy{opacity:.7}
.verbs-state{display:grid;justify-items:center;gap:6px;padding:16px;border:1px dashed var(--t-line);border-radius:var(--verbs-radius);background:var(--t-card);font-size:var(--act-note,13px);text-align:center}
.verbs-state p{margin:0}
.verbs-state.is-error{color:var(--t-error)}
.verbs-state button{min-height:44px}
/* The bar over a set or a test: back · title · count. */
/* The title sits in the middle of the row whatever the back button and count take (2026-11-15, owner: “가운데 오도록”). */
.verbs-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content) minmax(0,1fr);align-items:center;gap:8px;min-height:48px}
.verbs-bar>.verbs-back{justify-self:start}
.verbs-bar>.verbs-count{justify-self:end}
.verbs-back{display:inline-flex;align-items:center;gap:2px;min-height:44px;margin:0;padding:0 10px 0 4px;border:0;border-radius:12px;background:transparent;color:var(--t-primary);font-size:var(--act-note,13px);font-weight:800;box-shadow:none}
.verbs-back:hover{filter:none;background:var(--t-accent-soft)}
.verbs-bar-title{min-width:0;color:var(--t-ink);font-size:var(--act-button,15px);font-weight:800;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.verbs-count{min-width:0;color:var(--t-muted);font-size:var(--act-note,13px);font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
.verbs-hint{margin:0;color:var(--t-muted);font-size:var(--act-note,13px);line-height:1.5}
/* The study table: one row a verb, three equal columns, the Korean small under each form. */
.verbs-table{border:1px solid var(--t-line);border-radius:var(--verbs-radius);background:var(--t-card);overflow:hidden}
.verbs-heads,.verbs-row{display:grid;grid-template-columns:22px repeat(3,minmax(0,1fr)) 18px;align-items:center;gap:6px}
.verbs-heads{position:sticky;top:0;z-index:1;padding:8px 10px;border-bottom:1px solid var(--t-line);background:var(--t-accent-soft);color:var(--t-primary);font-size:var(--act-label,12px);font-weight:800;text-align:center}
.verbs-rows{margin:0;padding:0;list-style:none}
.verbs-rows li+li{border-top:1px solid var(--t-line)}
.verbs-row{box-sizing:border-box;width:100%;min-height:58px;margin:0;padding:8px 10px;border:0;border-radius:0;background:transparent;color:var(--t-ink);text-align:center;box-shadow:none;transition:background-color 120ms}
.verbs-row:hover{filter:none}
.verbs-row-n{color:var(--t-muted);font-size:var(--act-label,12px);font-weight:800;font-variant-numeric:tabular-nums}
.verbs-cell{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0}
.verbs-cell b{max-width:100%;font-family:var(--font-en);font-size:var(--act-button,16px);line-height:1.25;font-weight:800;overflow-wrap:anywhere}
.verbs-cell small{max-width:100%;color:var(--t-muted);font-size:var(--act-label,12px);line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}
.verbs-row-icon{color:var(--t-muted);opacity:.7}
.verbs-row.is-playing{background:var(--t-accent-soft)}
.verbs-row.is-playing .verbs-row-icon{color:var(--t-primary);opacity:1}
.verbs-tests{display:grid;gap:8px}
.verbs-test{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;box-sizing:border-box;width:100%;min-height:64px;margin:0;padding:10px 12px;border:1px solid var(--t-primary);border-radius:var(--verbs-radius);background:var(--t-card);color:var(--t-ink);text-align:left;box-shadow:none}
.verbs-test:hover{filter:none}
.verbs-test-step{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--t-primary);color:var(--t-on-primary);font-weight:800}
.verbs-test-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.verbs-test-copy strong{display:inline-flex;align-items:center;gap:4px;font-size:var(--act-button,15px);font-weight:800}
.verbs-test-copy small{color:var(--t-muted);font-size:var(--act-note,13px);line-height:1.4}
.verbs-test.is-passed{border-color:var(--t-success)}
.verbs-test.is-passed .verbs-test-step{background:var(--t-success)}
.verbs-test.is-passed strong{color:var(--t-success)}
.verbs-test.is-locked{border-color:var(--t-line);background:var(--t-bg);cursor:default}
.verbs-test.is-locked .verbs-test-step{background:var(--t-line);color:var(--t-muted)}
/* A test card: the base word, the two boxes or fields, one note line, one action; the same size for every verb. */
.verbs-card{display:flex;flex-direction:column;align-items:center;gap:10px;box-sizing:border-box;padding:20px 16px 14px;border:1px solid var(--t-line);border-radius:var(--verbs-radius);background:var(--t-card);text-align:center}
.verbs-word{font-family:var(--font-en);font-size:var(--act-word,34px);line-height:1.15;font-weight:800;color:var(--t-ink);overflow-wrap:anywhere}
.verbs-word-ko{min-height:18px;margin-top:-6px;color:var(--t-muted);font-size:var(--act-note,13px)}
.verbs-boxes,.verbs-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.verbs-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:76px;border:2px dashed var(--t-line);border-radius:14px;background:var(--t-bg)}
.verbs-box small,.verbs-field small{color:var(--t-muted);font-size:var(--act-label,12px);font-weight:800}
.verbs-box b{font-family:var(--font-en);font-size:var(--act-title,20px);line-height:1.25;font-weight:800;color:var(--t-muted);overflow-wrap:anywhere}
.verbs-box.is-lit{border:2px solid var(--t-success);background:var(--t-success-soft)}
.verbs-box.is-lit b{color:var(--t-success)}
.verbs-note{display:flex;align-items:center;justify-content:center;min-height:40px;margin:0;color:var(--t-ink);font-size:var(--act-note,13px);line-height:1.5;word-break:keep-all}
.verbs-mic,.verbs-go{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;max-width:320px;min-height:52px;margin:0;border:0;border-radius:999px;background:var(--t-primary);color:var(--t-on-primary);font-size:var(--act-button,16px);font-weight:800}
/* 1차 테스트 끝! with a skip (2026-11-16): 2차 테스트 시작 first, 오답 다시 풀기 under it as the quieter outlined button. */
.verbs-go.is-second{background:var(--t-card);color:var(--t-primary);box-shadow:inset 0 0 0 2px var(--t-primary)}
.verbs-mic.is-listening{background:var(--t-success)}
.verbs-mic.is-waiting{opacity:.8}
.verbs-wave{display:inline-flex;align-items:center;gap:3px;height:22px}
.verbs-wave i{display:block;width:4px;height:22px;border-radius:2px;background:currentColor;animation:verbs-wave 900ms ease-in-out infinite}
.verbs-wave i:nth-child(2){animation-delay:-.3s}.verbs-wave i:nth-child(3){animation-delay:-.6s}.verbs-wave i:nth-child(4){animation-delay:-.15s}.verbs-wave i:nth-child(5){animation-delay:-.45s}
@keyframes verbs-wave{0%,100%{transform:scaleY(.25)}50%{transform:scaleY(1)}}
.verbs-under{display:flex;justify-content:center;min-height:44px}
.verbs-link{min-height:44px;margin:0;padding:0 12px;border:0;background:transparent;color:var(--t-primary);font-size:var(--act-note,13px);font-weight:800;text-decoration:underline;box-shadow:none}
.verbs-link:hover{filter:none}
.verbs-field{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:left}
.verbs-field input{box-sizing:border-box;width:100%;min-height:52px;padding:8px 12px;border:2px solid var(--t-line);border-radius:12px;background:var(--t-card);color:var(--t-ink);font-family:var(--font-en);font-size:20px;font-weight:700;text-align:center}
.verbs-field input:focus{outline:none;border-color:var(--t-primary)}
.verbs-field.is-right input{border-color:var(--t-success);background:var(--t-success-soft);color:var(--t-success)}
.verbs-field.is-wrong input{border-color:var(--t-error);animation:verbs-shake 320ms}
.verbs-answer{min-height:18px;color:var(--t-error);font-size:var(--act-label,12px);font-weight:700;text-align:center}
.verbs-answer b{font-family:var(--font-en)}
@keyframes verbs-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.verbs-result-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:50%}
.verbs-result.is-pass .verbs-result-mark{background:var(--t-success-soft);color:var(--t-success)}
.verbs-result.is-fail .verbs-result-mark{background:var(--t-accent-soft);color:var(--t-primary)}
.verbs-result-title{color:var(--t-ink);font-size:var(--act-title,20px);font-weight:800}
.verbs-missed{display:flex;flex-direction:column;gap:4px;width:100%;margin:0;padding:10px 12px;border-radius:12px;background:var(--t-bg);list-style:none;text-align:left;font-family:var(--font-en);font-size:var(--act-note,14px)}
/* 3차 (2026-11-17): how many right spellings a verb has so far (n / VERB_REVIEW_COUNT) — over the word in a round, beside each verb left on the round's result. */
.verbs-times{display:inline-flex;flex:none;align-items:center;gap:3px;min-height:24px;padding:0 9px;border-radius:999px;background:var(--t-success-soft);color:var(--t-success);font-family:var(--font-en),"Noto Sans KR",sans-serif;font-size:var(--act-label,12px);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.verbs-missed.is-times li{display:flex;align-items:center;justify-content:space-between;gap:8px}
.verbs-missed.is-times li>span:first-child{min-width:0;overflow-wrap:anywhere}
@media (prefers-reduced-motion:reduce){.verbs-wave i,.verbs-field.is-wrong input{animation:none}.verbs-meter>span,.verbs-row{transition:none}}

/* The study screen: in portrait the list and the tests stack; in landscape the screen splits in half — the verb list on
   the left, 1차 · 2차 · 3차 on the right, each scrolling on its own (2026-11-15, owner: “가로모드 했을때 … 화면을 절반 분할해서
   왼쪽에는 불규칙변화 리스트 오른쪽은 1,2,3차 테스트”). Every 불규칙 동사 screen in landscape scrolls under the brand header. */
.verbs-study-list{display:contents}
.verbs-test-side{display:contents}
.verbs-study-list.is-side{display:none}
@media(orientation:landscape){
 body[data-student-tabs="on"] .student-tab-panel>.student-verbs-view{box-sizing:border-box;height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding:38px 16px var(--tabbar-space)}
 /* The set list keeps to the left half, under the half-width brand header; the right half stays empty (2026-11-16, owner:
    “세트 리스트가 절반에서만 보이게 해주고 오른쪽 절반을 따로 채울거 없으면 비워둬”). The whole width still scrolls it. */
 body[data-student-tabs="on"] .student-tab-panel>.student-verbs-view:not(.is-study):not(.is-split){padding-right:calc(50% + 16px)}
 body[data-student-tabs="on"] .student-tab-panel>.student-verbs-view.is-study{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;overflow:hidden}
 .student-verbs-view.is-study>.verbs-study-list,.student-verbs-view.is-study>.verbs-tests{display:flex;flex-direction:column;gap:12px;box-sizing:border-box;min-height:0;height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding:38px 16px var(--tabbar-space)}
 .student-verbs-view.is-study>.verbs-tests{align-content:start;padding-top:60px;border-left:1px solid var(--t-line)}
 /* Each half scrolls; its rows never squeeze (a flex child would shrink the table and clip its rows instead). */
 .student-verbs-view.is-study>.verbs-study-list>*,.student-verbs-view.is-study>.verbs-tests>*,.student-verbs-view.is-split>.verbs-study-list>*,.student-verbs-view.is-split>.verbs-test-side>*{flex:none}
 /* A test keeps the split: the test's verbs on the left, the test on the right (the bottom bar is away during a test). */
 body[data-student-tabs="on"] .student-tab-panel>.student-verbs-view.is-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;overflow:hidden}
 .student-verbs-view.is-split>.verbs-study-list.is-side,.student-verbs-view.is-split>.verbs-test-side{display:flex;flex-direction:column;gap:8px;box-sizing:border-box;min-height:0;height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding:38px 16px 12px}
 .student-verbs-view.is-split>.verbs-test-side{border-left:1px solid var(--t-line)}
 /* The test half fits a 412px-high phone in landscape with no scroll: a shorter bar, card and keys. */
 .student-verbs-view.is-split>.verbs-test-side{gap:4px;padding:34px 12px 8px}
 .student-verbs-view.is-split .verbs-bar{min-height:40px}
 .student-verbs-view.is-split .verbs-meter.is-thin{display:none}
 .student-verbs-view.is-split .verbs-card{gap:4px;padding:6px 10px 8px}
 .student-verbs-view.is-split .verbs-word{font-size:24px;line-height:1.1}
 .student-verbs-view.is-split .verbs-word-ko{min-height:0;margin-top:-4px}
 .student-verbs-view.is-split .verbs-field{gap:2px}
 .student-verbs-view.is-split .verbs-note{min-height:22px;line-height:1.3}
 /* The keys fill the test half (the card's own padding too) and are as tall as the height allows: 56px on a tablet,
    about 37px on a 412px-high phone so 확인 stays on screen. */
 .student-verbs-view.is-split .verbs-keys{--vk-w:calc(100% + 20px);--vk-h:clamp(36px,calc((100dvh - 300px) / 3),56px)}
 .student-verbs-view.is-split .verbs-slot{min-height:40px;padding-block:2px}
 .student-verbs-view.is-split .verbs-go{min-height:44px}
}
.verbs-row.is-static{cursor:default}
.verbs-row.is-now{background:var(--t-accent-soft);box-shadow:inset 3px 0 0 var(--t-primary)}
.verbs-row.is-done .verbs-row-icon{color:var(--t-success)}
/* 2차 · 3차: answer boxes are buttons typed by the keys below (no phone keyboard); a form with two spellings has two
   boxes with a fixed / between (2026-11-15). */
.verbs-inputs{display:flex;align-items:center;gap:4px;min-width:0}
.verbs-slot{position:relative;display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;box-sizing:border-box;min-height:52px;margin:0;padding:6px 8px;border:2px solid var(--t-line);border-radius:12px;background:var(--t-card);color:var(--t-ink);font-family:var(--font-en);font-size:20px;font-weight:700;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.verbs-slot>span{overflow:hidden;white-space:nowrap;text-overflow:clip}
.verbs-slot.is-on{border-color:var(--t-primary)}
.verbs-caret{flex:none;width:2px;height:1.1em;margin-left:1px;background:var(--t-primary)}
.verbs-field.is-multi .verbs-slot{padding:6px 4px;font-size:17px}
.verbs-field.is-right .verbs-slot{border-color:var(--t-success);background:var(--t-success-soft);color:var(--t-success);cursor:default}
.verbs-field.is-wrong .verbs-slot{border-color:var(--t-error);animation:verbs-shake 320ms}
/* The page's own keys, made like 스펠링 비 (2026-11-15, owner: “스필링 비 키보드처럼 똑같이 … 확장하는 모션도 들어가고 화면 좌우 꽉
   채워”): on an upright phone the tray is as wide as the screen (6px from each edge, 560px at most), keys 56px tall,
   and it widens in once when a test starts (verbs-tray, never on the redraw of a typed letter). */
.verbs-keys{--vk-w:100%;--vk-h:56px;position:relative;z-index:1;display:grid;gap:0;box-sizing:border-box;width:var(--vk-w);margin-inline:calc((100% - var(--vk-w)) / 2);padding:5px 3px;border:1px solid var(--t-line);border-radius:16px;background:var(--t-bg);user-select:none;-webkit-user-select:none}
@media (max-width:640px) and (orientation:portrait){.verbs-keys{--vk-w:max(100%,min(100vw - 12px,560px))}}
.verbs-keys.is-in{animation:verbs-tray 220ms ease-out}
@keyframes verbs-tray{from{opacity:0;transform:scaleX(.92)}to{opacity:1;transform:none}}
.verbs-keys.is-off{opacity:.45;pointer-events:none}
.verbs-key-row{display:flex;justify-content:center}
.verbs-key{flex:0 0 10%;min-width:0;height:var(--vk-h);margin:0;padding:3px 3px 5px;border:0;background:none;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.verbs-key.is-wide{flex-basis:15%}
.verbs-key>span{display:grid;place-items:center;box-sizing:border-box;height:100%;border:1.5px solid var(--t-line);border-radius:10px;background:var(--t-card);color:var(--t-ink);font-family:var(--font-en);font-size:var(--act-tile,22px);font-weight:700;line-height:1;box-shadow:0 2px 0 var(--t-line);transition:transform .08s,box-shadow .08s}
.verbs-key.is-wide>span{color:var(--t-muted)}
.verbs-key:active>span{transform:translateY(2px);box-shadow:none;background:var(--t-accent-soft)}
@media (hover:hover){.verbs-key:hover>span{border-color:var(--t-primary)}}
@media (prefers-reduced-motion:reduce){.verbs-keys.is-in,.verbs-field.is-wrong .verbs-slot{animation:none}.verbs-key>span{transition:none}}
.verbs-slash{flex:none;color:var(--t-muted);font-family:var(--font-en);font-size:20px;font-weight:800}
/* 2차 · 3차 스펠링, portrait (2026-11-16, owner: "키보드 아래로 내려줘 타이핑 하기 편한 위치로"): the card reaches down to the
   bottom of the screen (the bottom bar is away during a test, so its reserved room is used too) and the keys and 확인
   sit at its foot, under the thumbs; the word and the answer boxes stay at the top. A short screen keeps the old stack. */
@media (orientation:portrait){
 .student-verbs-view.is-test:has(.verbs-card.is-spell){margin-bottom:calc(-1 * var(--tabbar-space,0px))}
 .student-verbs-view.is-test .verbs-card.is-spell{min-height:calc(100dvh - 132px)}
 .student-verbs-view.is-test .verbs-card.is-spell>.verbs-keys{margin-top:auto}
 /* The word, the answer boxes and 기회 n번 sit in the middle of the white room above the keys (2026-11-16, owner:
    "키보드에 가깝게 내리는데 흰색 네모칸 중간에 오도록"). */
 .student-verbs-view.is-test .verbs-card.is-spell>:first-child{margin-top:auto}
}
