:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183046;background:#f4f7f9;font-synthesis:none;line-height:1.45}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit}.loading-screen{min-height:90vh;display:grid;place-content:center;text-align:center;color:#637786}.spinner{display:inline-block;margin:auto;border:3px solid #dbe7ee;border-top-color:#147b76;border-radius:50%;height:28px;width:28px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-art{background:#102d40;color:#fff;padding:9vw;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.login-art:before{content:"";position:absolute;width:500px;height:500px;border-radius:50%;border:80px solid #ffffff0c;top:18%;right:-25%}.login-art .brand{font-weight:800;font-size:22px;letter-spacing:-.04em}.login-art h1{font-size:clamp(40px,4.5vw,76px);line-height:1.06;letter-spacing:-.06em;max-width:580px;margin:0 0 20px}.login-art p{color:#bacdd8;max-width:460px;font-size:18px}.login-right{display:grid;place-items:center;padding:28px}.login-card{width:min(420px,100%)}.login-card h2{font-size:32px;letter-spacing:-.045em;margin-bottom:8px}.muted{color:#718391}.small{font-size:12px}.login-card .muted{margin-bottom:28px}
.shell{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{background:#102d40;color:#eaf4f4;padding:28px 16px;display:flex;flex-direction:column;gap:24px;position:sticky;top:0;height:100vh}.logo{font-size:23px;font-weight:800;letter-spacing:-.065em;padding:0 16px}.logo span{color:#66d0b0}.sidelinks{display:grid;gap:6px}.navbtn{color:#bdced5;background:transparent;border:0;border-radius:12px;padding:13px 14px;text-align:left;width:100%;display:flex;gap:12px;align-items:center}.navbtn:hover,.navbtn.active{background:#ffffff1a;color:white}.navbtn b{font-weight:500}.sidebar-footer{margin-top:auto;padding:12px;color:#aec5d0;overflow-wrap:anywhere;font-size:12px}.sidebar-footer button{color:white;background:transparent;border:1px solid #ffffff2c;padding:8px;border-radius:8px;width:100%;margin-top:12px}.content{padding:34px clamp(18px,4vw,60px) 60px;max-width:1400px;width:100%;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:32px}.eyebrow{color:#178178;font-size:12px;font-weight:750;letter-spacing:.14em;text-transform:uppercase}.topbar h1{font-size:clamp(28px,3vw,42px);letter-spacing:-.055em;margin:4px 0 0;line-height:1.1}.top-right{color:#728595;font-size:13px}.card{background:white;border:1px solid #e5edf0;border-radius:18px;padding:24px;box-shadow:0 7px 30px #193e5207}.card h2,.card h3{letter-spacing:-.035em;margin:0 0 16px}.card h2{font-size:21px}.subtle{background:#f0f6f6;border:1px solid #e1eded}.hero{background:#153d4c;color:white;border:none;display:flex;justify-content:space-between;gap:24px;align-items:center;min-height:190px;padding:34px}.hero h2{font-size:29px;line-height:1.15;margin:12px 0}.hero p{color:#c1dbdf;max-width:520px}.hero .tag{background:#ffffff24;color:white}.hero-icon{font-size:80px;opacity:.75}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.kpi{padding:22px}.kpi strong{font-size:32px;display:block;letter-spacing:-.05em;margin-top:12px}.kpi label{color:#637887;font-size:12px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 14px}.section-heading h2{margin:0;letter-spacing:-.04em}.btn{border:0;background:#117c71;color:white;border-radius:11px;padding:12px 18px;font-size:14px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px}.btn:hover{background:#096b62}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.outline{background:white;border:1px solid #cfdee4;color:#164451}.btn.outline:hover{background:#f0f7f7}.btn.ghost{background:transparent;color:#5b7480}.btn.danger{background:#fff3f1;color:#a03c35}.actions{display:flex;gap:10px;flex-wrap:wrap}.field{margin-bottom:16px}.field label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}.input{width:100%;padding:12px 14px;border:1px solid #d7e1e6;border-radius:10px;background:#fff;color:#152e3c;outline:none}.input:focus{border-color:#117e74;box-shadow:0 0 0 3px #117e741b}textarea.input{min-height:180px;resize:vertical;font-family:ui-monospace,monospace;font-size:12px}.hint{font-size:12px;color:#6b808c;margin-top:6px}.alert{padding:13px 16px;border-radius:11px;font-size:13px;margin:14px 0}.alert.error{background:#fff0ef;color:#963e37}.alert.info{background:#e9f6f1;color:#246c54}.tag{display:inline-flex;border-radius:100px;background:#e7f2f1;color:#17776a;padding:4px 10px;font-size:11px;font-weight:650;white-space:nowrap}.tag.wait{background:#fff2de;color:#a17027}.tag.done{background:#e9f5eb;color:#297e4e}.list{display:grid;gap:10px}.list-row{display:flex;gap:16px;justify-content:space-between;align-items:center;border:1px solid #e5edf0;padding:16px;border-radius:12px}.list-row h3{margin:0;font-size:17px}.list-row p{margin:2px 0 0;color:#70858f;font-size:12px}.progressbars{display:flex;gap:4px;margin-top:8px}.progressbars span{height:6px;background:#e5ebee;border-radius:8px;width:34px}.progressbars span.active{background:#1c9881}.word-actions{display:flex;gap:8px;align-items:center}.bar{background:#edf2f4;border-radius:100px;height:10px;overflow:hidden}.bar>div{height:100%;background:#198579;border-radius:100px}.stat-row{display:grid;grid-template-columns:115px 1fr 40px;gap:12px;align-items:center;margin:14px 0}.stat-row span{font-size:13px;color:#617482}.empty{border:1px dashed #ccdce0;background:#f9fbfb;border-radius:16px;padding:34px;text-align:center;color:#6a808b}.quiz-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.quiz-head span{color:#7a8c96;font-size:13px}.quiz-prompt{font-size:clamp(21px,2.5vw,30px);font-weight:670;letter-spacing:-.04em;margin:24px 0;line-height:1.4}.quiz-options{display:grid;gap:10px;margin:20px 0}.quiz-options label{display:flex;align-items:center;gap:10px;border:1px solid #dbe6ea;border-radius:13px;padding:15px;cursor:pointer}.quiz-options label:has(input:checked){background:#ecf7f4;border-color:#28a18a}.quiz-options input{accent-color:#167e76}.quiz-result{padding:16px;background:#edf8f3;border-radius:12px;margin:18px 0}.quiz-result.bad{background:#fff1f0}.quiz-result strong{display:block;margin-bottom:5px}.divider{border:0;border-top:1px solid #e8eff1;margin:24px 0}.secondary{color:#65808a}.mobile-nav{display:none}pre{white-space:pre-wrap;word-break:break-word}.admin-pending{font-size:13px;color:#607682}.side-tip{border:1px solid #ffffff26;padding:12px;border-radius:12px;font-size:12px;color:#bad1d9}
@media(max-width:980px){.shell{grid-template-columns:1fr}.sidebar{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:4;background:white;border-top:1px solid #e2eaee;padding:8px;justify-content:space-around;gap:4px}.mobile-nav button{display:grid;gap:3px;justify-items:center;border:0;background:transparent;color:#758d96;font-size:10px;padding:6px 4px}.mobile-nav button.active{color:#138178}.mobile-nav span{font-size:18px}.content{padding:24px 18px 100px}.login{grid-template-columns:1fr}.login-art{display:none}.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid2{grid-template-columns:1fr}.hero-icon{display:none}}@media(max-width:560px){.kpi strong{font-size:27px}.hero{padding:24px}.list-row{align-items:flex-start;flex-direction:column}.word-actions{width:100%}.word-actions button{flex:1}.top-right{display:none}}

/* Vocabulary v0.1.3: sortable word table and inline expandable details. */
.words-table-wrap{border:1px solid #e5edf0;border-radius:14px;background:#fff;overflow-x:auto;box-shadow:0 6px 22px #193e5207}
.words-table{border-collapse:collapse;width:100%;min-width:740px;text-align:left}
.words-table th{font-size:12px;white-space:nowrap;background:#f5f9fa;color:#637987;font-weight:650;border-bottom:1px solid #dfe8ec;padding:0}
.words-table th:last-child{padding:15px 18px}
.words-table th .word-sort{cursor:pointer;display:flex;align-items:center;gap:10px;width:100%;font-size:12px;justify-content:flex-start;border:0;background:transparent;color:inherit;font-weight:700;padding:15px 18px;text-align:left}
.words-table th .word-sort:hover,.words-table th .word-sort:focus-visible{background:#e9f4f2;color:#086c64}
.word-sort-arrow{font-size:11px;color:#147f71}
.words-table td{border-bottom:1px solid #e5edf0;padding:15px 18px;vertical-align:middle;font-size:13px}
.words-table tbody tr:last-child td{border-bottom:0}
.words-table tbody tr.word-table-row:hover{background:#fbfdfd}
.words-table tbody tr.word-selected{background:#f2f8f7}
.word-name{display:flex;align-items:center;gap:7px}
.word-name strong{font-size:17px;color:#163745;letter-spacing:-.015em}
.word-languages{font-size:11px;color:#718996;margin:2px 0}
.words-table .progressbars{margin-top:8px}
.words-table .progressbars span{width:22px}
.word-table-actions{display:flex;align-items:center;gap:4px;white-space:nowrap}
.word-table-actions .btn{min-height:36px;padding:8px 10px}
.icon-pronounce{background:transparent;border:0;border-radius:9px;cursor:pointer;padding:7px;font-size:18px;line-height:1;min-height:32px;min-width:32px}
.icon-pronounce:hover,.icon-pronounce:focus-visible{background:#e6f2f0}
.words-table tr.word-details-row>td{padding:0 18px 18px;background:#f2f8f7}
.inline-word-details{background:#fff;border:1px solid #ddeae9;border-radius:12px;padding:22px;box-shadow:0 4px 16px #193e5208}
.inline-word-details h3{margin:0 0 10px}
.inline-word-details p{line-height:1.5}
.inline-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.inline-detail-heading h3{font-size:20px;margin:0 0 2px}
.inline-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.word-example{padding:12px 0;border-bottom:1px solid #e6edef}
@media(max-width:560px){.words-table th .word-sort,.words-table td{padding:12px 10px}.words-table th:last-child{padding:12px 10px}.words-table{min-width:670px}.inline-word-details{padding:15px}}

/* Vocabulary v0.1.4: independent column filters, transcriptions and translations. */
.words-table{min-width:1070px;table-layout:auto}
.words-table th{vertical-align:top}
.words-table th .word-sort{padding:13px 14px 6px}
.words-table th:last-child{padding:14px;min-width:136px}
.words-table .column-search{display:block;width:calc(100% - 24px);min-width:96px;margin:1px 12px 12px;padding:7px 9px;font:inherit;font-size:12px;color:#193d47;background:#fff;border:1px solid #d1e0e3;border-radius:8px;outline:none}
.words-table .column-search:focus{border-color:#108b7f;box-shadow:0 0 0 3px #0d80721b}
.words-table .column-search::-webkit-search-cancel-button{cursor:pointer}
.words-table td.word-ipa{font-size:14px;font-family:system-ui,-apple-system,sans-serif;white-space:nowrap;color:#396d74}
.words-table td.word-translation{min-width:220px;max-width:360px;line-height:1.5;overflow-wrap:anywhere}
.word-filter-empty{padding:25px 12px;text-align:center;color:#6a808b}
.word-table-actions [data-detail],.word-table-actions [data-reset]{transition:background-color .14s ease,color .14s ease,box-shadow .14s ease}
.word-table-actions [data-detail]:not(:disabled):hover,.word-table-actions [data-detail]:focus-visible{background:#dff4ee;color:#086b5b;box-shadow:inset 0 0 0 1px #99d3c5}
.word-table-actions [data-reset]:not(:disabled):hover,.word-table-actions [data-reset]:focus-visible{background:#fff0ec;color:#a33d2b;box-shadow:inset 0 0 0 1px #efb5aa}
@media(max-width:560px){.words-table{min-width:1000px}.words-table .column-search{margin:1px 8px 9px;width:calc(100% - 16px)}.words-table th .word-sort{padding:10px 8px 6px}}

/* Vocabulary v0.1.5: clear hover and keyboard-focus state for ending a training session. */
#cancel-session { transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
#cancel-session:not(:disabled):hover,
#cancel-session:not(:disabled):focus-visible { background: #fff0ec; color: #983c2d; box-shadow: inset 0 0 0 1px #f2b9ac; }

/* Overview: mastered-review button and its availability explanation. */
.review-action-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px 12px; }
.review-unavailable-note { display:inline-block; color:#667e89; font-size:13px; line-height:1.45; max-width:325px; }
#start-review:disabled, #start-review:disabled:hover, #start-review:disabled:focus-visible { opacity:.62; cursor:not-allowed; background:#edf1f3; border-color:#dae2e6; color:#687c87; box-shadow:none; transform:none; }

button[data-start="mastered_review"]:disabled,button[data-start="mastered_review"]:disabled:hover{opacity:.62;cursor:not-allowed;background:#edf1f3;border-color:#dae2e6;color:#687c87;box-shadow:none;transform:none}

/* Lifetime statistics table: scroll horizontally on narrow screens, keep the word visible. */
.stats-table-card { min-width:0; }
.stats-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.stats-search-label { display:grid; gap:6px; min-width:210px; flex:1; color:#526d78; font-size:13px; font-weight:600; }
.stats-search-label:last-child { flex:0 1 220px; }
.stats-search-label .input { min-width:0; }
.stats-scroll { overflow-x:auto; max-width:100%; border:1px solid #e0e9ec; border-radius:12px; }
.stats-table { width:100%; min-width:1280px; border-collapse:separate; border-spacing:0; font-size:13px; }
.stats-table th,.stats-table td { padding:12px 9px; border-bottom:1px solid #e6eef0; text-align:center; white-space:nowrap; }
.stats-table thead th { background:#f2f7f7; font-size:12px; color:#315965; }
.stats-table thead tr:nth-child(2) th { background:#f8fbfb; }
.stats-table tbody tr:last-child th,.stats-table tbody tr:last-child td { border-bottom:0; }
.stats-table tbody tr:hover td,.stats-table tbody tr:hover th { background:#f4faf8; }
.stats-table .stats-word { position:sticky; left:0; z-index:1; text-align:left; background:white; min-width:115px; font-weight:700; color:#153d4c; }
.stats-table thead th:first-child { position:sticky; left:0; z-index:3; }
.stats-table .stats-num { font-variant-numeric:tabular-nums; }
.stats-table .stats-errors { color:#ac4939; font-weight:700; }
.stats-table .stats-total { background:#f8fbf9; font-weight:700; }
.stats-table .stats-group { border-left:1px solid #dbe8e9; }
.stats-sort { display:inline-flex; align-items:center; justify-content:center; gap:5px; background:none; border:0; color:inherit; font:inherit; font-weight:700; white-space:nowrap; cursor:pointer; padding:3px; border-radius:5px; }
.stats-sort:hover,.stats-sort:focus-visible { background:#dcefea; color:#116e66; outline-offset:2px; }
.stats-sort-arrow { font-size:10px; color:#6c8f99; }
.stats-no-results { text-align:center!important; padding:25px!important; color:#69808c; }

/* Vocabulary v0.1.13: inline cascading-reset panel. */
.inline-word-reset { background:#fff; border:1px solid #f1ded8; border-radius:12px; padding:22px; box-shadow:0 4px 16px #193e5208; max-width:860px; }
.inline-reset-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:14px; }
.inline-reset-heading h3 { font-size:19px; color:#163745; margin:0 0 4px; }
.inline-reset-heading p { margin:0; }
.reset-level-list { border:0; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.reset-level-option { display:flex; align-items:center; gap:10px; border:1px solid #dce7e9; border-radius:10px; padding:12px 14px; cursor:pointer; min-width:0; }
.reset-level-option:has(input:checked) { border-color:#bb7565; background:#fff3ee; box-shadow:inset 0 0 0 1px #e4b7aa; }
.reset-level-option:focus-within { outline:2px solid #b17365; outline-offset:2px; }
.reset-level-option input { accent-color:#a64f39; margin:0; flex-shrink:0; }
.reset-level-name { font-weight:650; font-size:13px; }
.reset-level-done { color:#1b8567; font-size:11px; font-weight:550; }
.reset-level-score { color:#677e89; margin-left:auto; white-space:nowrap; font-variant-numeric:tabular-nums; font-size:12px; }
.reset-level-unavailable { opacity:.45; cursor:not-allowed; background:#f6f8f9; }
.reset-warning { background:#fff7f3; color:#825449; border-radius:9px; padding:12px 14px; margin:16px 0; font-size:13px; line-height:1.5; }
.reset-footer { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:16px; }
.reset-footer .btn.danger { background:#a74736; color:white; }
.reset-footer .btn.danger:not(:disabled):hover,.reset-footer .btn.danger:focus-visible { background:#873325; box-shadow:0 0 0 3px #cc9a901f; }
.reset-footer .btn:disabled { cursor:not-allowed; }
.word-reset-flash { background:#ebf7f1; color:#256d55; border:1px solid #cceadd; border-radius:11px; padding:12px 16px; font-size:13px; margin:0 0 15px; }
.word-reset-flash[hidden] { display:none; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media(max-width:560px){.inline-word-reset{padding:16px}.inline-reset-heading{align-items:flex-start}.reset-level-list{grid-template-columns:1fr}.reset-footer .btn{flex:1}}

/* v0.1.14: keep expanded table details in the visible mobile scrollport. */
@media(max-width:849px){
  .word-details-row .inline-word-details,
  .word-details-row .inline-word-reset {overflow-wrap:anywhere;}
}

/* v0.1.14: native mobile dictionary cards, without horizontally clipped actions. */
.words-mobile-list {display:grid;gap:12px;}
.word-mobile-card {background:#fff;border:1px solid #dce8eb;border-radius:15px;padding:16px;box-shadow:0 4px 18px #193e5209;min-width:0;overflow-wrap:anywhere;}
.word-mobile-selected {border-color:#9fcdc3;box-shadow:0 4px 16px #1b81701c;}
.word-mobile-top {display:flex;gap:10px;justify-content:space-between;align-items:flex-start;}
.word-mobile-top .tag {flex-shrink:0;}
.word-mobile-grid {display:grid;gap:9px;margin:14px 0;font-size:13px;}
.word-mobile-grid>div {display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;align-items:start;}
.mobile-field-label {font-size:12px;color:#78909a;}
.word-mobile-actions {display:flex;gap:10px;margin-top:14px;}
.word-mobile-actions .btn {flex:1;min-height:44px;touch-action:manipulation;}
.word-mobile-expanded {margin:16px -4px 0;min-width:0;}
.word-mobile-expanded .inline-word-details, .word-mobile-expanded .inline-word-reset {max-width:100%;padding:16px;}
.word-mobile-expanded .inline-detail-heading {align-items:flex-start;flex-wrap:wrap;}
.word-mobile-expanded .reset-level-list {grid-template-columns:1fr;}
.mobile-word-controls {display:grid;gap:10px;background:#fff;border:1px solid #e2e9ec;border-radius:13px;padding:14px;margin:0 0 16px;}
.mobile-word-controls label {display:grid;gap:6px;font-size:12px;color:#647e88;font-weight:650;}
.mobile-word-controls input,.mobile-word-controls select {width:100%;min-height:43px;}
.mobile-word-controls input {font-size:16px;}
@media(min-width:821px){.words-mobile-list,.mobile-word-controls{display:none;}}
/* Keep close controls on one line in narrow reset cards. */
@media(max-width:820px){.word-mobile-expanded #close-reset{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:9px 7px}}

/* Answer feedback: the headword, IPA and MP3 playback button. */
.feedback-answer-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 9px;line-height:1.7}
.feedback-english{font-size:17px;color:#163745}
.feedback-pronunciation{display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px;max-width:100%;vertical-align:middle}
.feedback-dictionary-word{margin:8px 0 2px;padding:9px 12px;border-radius:10px;background:#ffffffa8;max-width:100%}
.feedback-word-label{font-size:12px;color:#57717f}
.feedback-ipa{font-size:14px;font-weight:500;color:#456677;white-space:nowrap}
.feedback-sound{display:inline-flex;justify-content:center;align-items:center;min-width:35px;min-height:35px;padding:4px;border:1px solid #bbd9d2;border-radius:9px;background:#fff;color:#14544e;font-size:18px;vertical-align:middle}
.feedback-sound:not(:disabled):hover,.feedback-sound:not(:disabled):focus-visible{background:#d8f1e9;box-shadow:inset 0 0 0 1px #6bc2a5}
.feedback-sound:disabled{opacity:.45;cursor:default}
.feedback-audio-note{font-size:12px;color:#607987}

/* Vocabulary v0.1.18: on-demand translation hint and answer word details. */
.quiz-translation-hint{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:9px;vertical-align:middle;font-size:13px;font-weight:500;letter-spacing:0}
.quiz-translation-button{background:#eaf5f2;color:#136c60;border:1px solid #b7dbd2;border-radius:9px;padding:7px 11px;min-height:36px;font-size:12px;font-weight:650;cursor:pointer;touch-action:manipulation}
.quiz-translation-button:hover,.quiz-translation-button:focus-visible{background:#d4eee5;box-shadow:0 0 0 2px #a6d7ca}
.quiz-translation-content{color:#374f5c;background:#f4f7f8;border-radius:8px;padding:6px 9px;overflow-wrap:anywhere}
.quiz-translation-content[hidden],.training-word-details-panel[hidden]{display:none!important}
.training-word-details-action{margin:14px 0 6px}
.training-word-details-panel{margin-top:10px;margin-bottom:15px;max-width:100%;background:#fff;box-shadow:none}
.training-word-details-panel .grid2{gap:12px}
@media(max-width:650px){.training-word-details-panel .grid2{grid-template-columns:1fr}.quiz-translation-hint{margin-left:5px}.quiz-translation-button{min-height:42px}}

/* Vocabulary v0.1.19: inline Telegram-like translation spoiler for level 3. */
.quiz-translation-hint{display:inline;vertical-align:baseline;margin-left:8px;font-size:inherit;letter-spacing:normal}
.quiz-translation-spoiler{
  display:inline-block;position:relative;vertical-align:middle;
  max-width:100%;min-height:30px;margin:0;padding:4px 9px;
  border:0;border-radius:6px;
  font:inherit;font-size:.60em;font-weight:600;line-height:1.4;text-align:left;
  color:transparent;background-color:#84979b;
  background-image:repeating-linear-gradient(115deg,rgba(255,255,255,.14) 0 2px,rgba(30,55,65,.20) 2px 4px,rgba(255,255,255,.04) 4px 6px);
  cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  overflow-wrap:anywhere;
}
.quiz-translation-spoiler::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background-image:radial-gradient(circle,rgba(255,255,255,.25) 0 1px,transparent 1.5px);
  background-size:5px 5px;opacity:.8;
}
.quiz-translation-spoiler .quiz-translation-spoiler-text{color:transparent;user-select:none;-webkit-user-select:none}
.quiz-translation-spoiler.is-revealed{
  color:#244954;background:#e5f4ef;
  box-shadow:inset 0 0 0 1px #b6ded1;
}
.quiz-translation-spoiler.is-revealed .quiz-translation-spoiler-text{
  color:inherit;user-select:text;-webkit-user-select:text;
}
.quiz-translation-spoiler.is-revealed::after{display:none}
.quiz-translation-spoiler:focus-visible{outline:3px solid #348d76;outline-offset:3px}
.quiz-translation-spoiler:not(.is-revealed):hover{background-color:#6d8f92}
@media(max-width:650px){.quiz-translation-hint{margin-left:5px}.quiz-translation-spoiler{font-size:.65em;min-height:34px}}

/* Vocabulary v0.1.20: stats have a dedicated phone layout; desktop table is unchanged. */
.stats-mobile-sort,.stats-mobile-cards{display:none}
@media(max-width:820px){
 .stats-summary{gap:12px;margin:16px 0}
 .stats-summary .kpi{padding:16px}
 .stats-summary .kpi strong{font-size:30px;line-height:1.1;margin-top:9px}
 .stats-summary .kpi label{font-size:13px;line-height:1.4}
 .stats-highlights{gap:14px}
 .stats-highlights>.card{padding:18px}
 .stats-highlights .stat-row{grid-template-columns:minmax(105px,38%) minmax(0,1fr) 24px;gap:8px;margin:13px 0}
 .stats-highlights .stat-row span{font-size:14px}
 .stats-highlights .stat-row strong{font-size:15px;text-align:right}
 .stats-section-heading{gap:6px;flex-wrap:wrap;align-items:baseline;margin:25px 0 12px}
 .stats-section-heading h2{font-size:22px}
 .stats-section-heading #stats-visible-count{font-size:13px}
 .stats-table-card{padding:16px}
 .stats-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:12px}
 .stats-search-label,.stats-search-label:last-child{min-width:0;max-width:none;flex:auto;font-size:14px}
 .stats-search-label .input{min-height:46px;font-size:16px}
 .stats-explanation{font-size:13px;line-height:1.5;margin:12px 0 16px}
 .stats-desktop-tip{display:none}
 .stats-scroll{display:none}
 .stats-mobile-sort{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
 .stats-mobile-sort label{min-width:0;display:grid;gap:6px;color:#526d78;font-size:14px;font-weight:600}
 .stats-mobile-sort select{min-height:46px;font-size:16px;width:100%}
 .stats-mobile-sort .btn{white-space:nowrap;padding:10px 11px;font-size:13px;min-height:46px}
 .stats-mobile-cards{display:grid;gap:12px}
 .stats-mobile-card{min-width:0;background:#f9fcfc;border:1px solid #dce9eb;border-radius:14px;padding:14px 14px 8px}
 .stats-mobile-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding-bottom:15px}
 .stats-mobile-word{min-width:0;display:grid;gap:7px;justify-items:start}
 .stats-mobile-word h3{font-size:20px;line-height:1.2;letter-spacing:-.03em;color:#153d4c;margin:0;overflow-wrap:anywhere}
 .stats-mobile-word .tag{font-size:12px;padding:5px 10px;white-space:normal;max-width:100%;line-height:1.3}
 .stats-mobile-overall{display:flex;gap:12px;flex-shrink:0;text-align:center}
 .stats-mobile-overall>div{display:grid;gap:2px;min-width:40px}
 .stats-mobile-overall strong{font-size:22px;line-height:1.05;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
 .stats-mobile-overall span{font-size:12px;color:#687f89}
 .stats-mobile-error-total strong,.stats-mobile-errors{color:#aa4b3d}
 .stats-mobile-gridhead,.stats-mobile-level{display:grid;grid-template-columns:minmax(0,1fr) 75px 64px;align-items:center;text-align:center;gap:5px}
 .stats-mobile-gridhead{border-bottom:1px solid #d5e3e6;padding:9px 0;color:#5f7984;font-size:13px;font-weight:650}
 .stats-mobile-gridhead>span:first-child,.stats-mobile-level>span:first-child{text-align:left}
 .stats-mobile-level{padding:11px 0;border-bottom:1px solid #e2ecee;font-size:15px}
 .stats-mobile-level:last-child{border-bottom:0}
 .stats-mobile-level>span:first-child{font-size:14px;color:#405b68}
 .stats-mobile-level strong{font-size:17px;font-variant-numeric:tabular-nums}
 .stats-mobile-empty{padding:18px 10px;color:#657e89;text-align:center;font-size:15px}
}
@media(max-width:390px){
 .stats-mobile-sort{grid-template-columns:minmax(0,1fr)}
 .stats-mobile-sort .btn{justify-self:start}
 .stats-mobile-card{padding:12px 11px 7px}
 .stats-mobile-gridhead,.stats-mobile-level{grid-template-columns:minmax(0,1fr) 67px 59px}
 .stats-mobile-overall{gap:9px}
}

/* Vocabulary v0.1.21: personal learning targets, mobile-friendly. */
.account-learning-card{margin-bottom:20px}
.account-learning-card p.muted{font-size:14px;line-height:1.6}
.learning-target-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:19px 0}
.learning-target-field{display:flex;flex-direction:column;gap:6px;color:#284b58;font-size:14px;font-weight:700}
.learning-target-field .input{min-width:0;font-size:23px;font-weight:750;text-align:center;font-variant-numeric:tabular-nums;padding:12px 7px}
.learning-target-field small{color:#66828a;font-size:11px;font-weight:500}
.learning-settings-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
@media(max-width:520px){.learning-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-target-field .input{font-size:25px;min-height:51px}.learning-settings-actions .btn{flex:1 1 160px}}

/* Five-level typed-answer field, responsive and accessible. */
.quiz-write{margin:20px 0 16px;max-width:100%}
.quiz-write-label{display:block;margin-bottom:9px;font-size:14px;font-weight:650;color:#244b54}
.quiz-write-input{font-size:20px;min-height:52px;max-width:100%;letter-spacing:.015em}
.quiz-write .hint{margin:7px 0 0}
@media(max-width:650px){.quiz-write-input{font-size:18px;min-height:52px}}

/* Vocabulary v0.1.25: cumulative learning funnel. All counts come from existing /api/stats. */
.stats-funnel-intro{font-size:13px;line-height:1.5;margin:10px 0 20px}
.stats-funnel{display:grid;gap:16px}
.stats-funnel-stage{min-width:0}
.stats-funnel-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;font-weight:700;color:#234a57;margin:0 0 6px}
.stats-funnel-title strong{font-size:20px;font-variant-numeric:tabular-nums;color:#164354}
.stats-funnel-title small{font-size:12px;font-weight:500;color:#68808a}
.stats-funnel-track{width:100%;height:18px;display:flex;justify-content:center;overflow:hidden;border-radius:999px;background:#e5eff1}
.stats-funnel-fill{height:100%;background:linear-gradient(90deg,#63c6a6,#288d96);border-radius:999px;transition:width .25s ease}
.stats-funnel-mastered{background:linear-gradient(90deg,#53b793,#218568)}
.stats-funnel-current{font-size:12px;color:#5d7782;margin-top:5px;text-align:center}
.stats-funnel-current strong{font-variant-numeric:tabular-nums;color:#284b58}
.stats-funnel-footnote{margin:18px 0 2px;font-size:12px;color:#5b7781;line-height:1.5}
.stats-funnel-footnote strong{font-variant-numeric:tabular-nums;color:#244e59}
@media(max-width:650px){.stats-funnel{gap:15px}.stats-funnel-title{font-size:14px}.stats-funnel-title strong{font-size:19px}.stats-funnel-track{height:16px}}

/* Vocabulary v0.1.26: quiz count and keyboard suggestions settings. */
.quiz-count-input{max-width:145px;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.quiz-keyboard-setting{display:flex;align-items:flex-start;gap:12px;margin:20px 0 22px;cursor:pointer;color:#244c59}
.quiz-keyboard-setting input{margin-top:4px;width:20px;height:20px;accent-color:#258e7b;flex-shrink:0}
.quiz-keyboard-setting span{display:grid;gap:5px}
.quiz-keyboard-setting strong{font-size:15px}
.quiz-keyboard-setting small{color:#587682;font-size:13px;line-height:1.5}
@media(max-width:600px){.quiz-keyboard-setting strong{font-size:14px}.quiz-count-input{min-height:47px}}

/* Vocabulary v0.1.32: read-only daily learning statistics. */
.stats-daily{margin:27px 0 31px}
.stats-day-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:17px}
.stats-day-heading h2{font-size:24px;letter-spacing:-.025em;margin:0 0 6px}
.stats-day-heading p{font-size:13px;margin:0}
.stats-day-period{display:flex;gap:5px;background:#e8eff2;padding:4px;border-radius:11px}
.stats-day-period button{border:0;border-radius:8px;background:transparent;color:#41606d;min-height:37px;padding:7px 13px;font-weight:700;cursor:pointer;font:inherit;font-size:13px}
.stats-day-period button.selected{background:#fff;color:#146b72;box-shadow:0 1px 5px rgba(30,61,73,.1)}
.stats-day-period button:focus-visible{outline:2px solid #298f8a;outline-offset:2px}
.stats-day-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 15px}
.stats-day-totals>div{min-width:0;border:1px solid #e2e9ed;background:#fff;border-radius:13px;padding:16px;display:grid;gap:6px}
.stats-day-totals span{color:#5b7681;font-size:13px}
.stats-day-totals strong{color:#1f4956;font-size:29px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.2}
.stats-day-graphs{display:grid;grid-template-columns:1fr;gap:14px}
.stats-day-card{min-width:0;padding:20px 19px 13px}
.stats-day-card h3{font-size:17px;line-height:1.3;margin:0 0 5px;color:#214959}
.stats-day-card p{font-size:12px;line-height:1.5;margin:0 0 11px}
.stats-day-scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;max-width:100%;padding-bottom:5px}
.stats-day-scroll:focus-visible{outline:2px solid #298f8a;outline-offset:2px}
.stats-day-svg{display:block;max-width:none;min-width:0}
.stats-day-axis{font:11px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:#6e8790}
.stats-day-details{background:#fff;border:1px solid #e2e9ed;border-radius:13px;padding:13px 17px;margin:15px 0 0}
.stats-day-details summary{font-size:14px;font-weight:700;color:#245568;cursor:pointer}
.stats-day-table-scroll{max-height:370px;overflow:auto;margin-top:12px}
.stats-day-table-scroll table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;text-align:right}
.stats-day-table-scroll th,.stats-day-table-scroll td{padding:9px 8px;border-bottom:1px solid #ecf1f3}
.stats-day-table-scroll th:first-child{text-align:left}
.stats-day-table-scroll thead{position:sticky;top:0;background:#fff}
.stats-day-wait{padding:25px 8px}
@media(max-width:650px){
 .stats-day-heading h2{font-size:21px}
 .stats-day-period{width:100%;justify-content:space-between}
 .stats-day-period button{flex:1;min-height:41px}
 .stats-day-totals{gap:7px}
 .stats-day-totals>div{padding:11px 9px}
 .stats-day-totals strong{font-size:23px}
 .stats-day-totals span{font-size:11px;line-height:1.4}
 .stats-day-card{padding:15px 12px 11px}
 .stats-day-details{padding:13px 10px}
 .stats-day-table-scroll table{font-size:12px}
 .stats-day-table-scroll th,.stats-day-table-scroll td{padding:9px 5px}
}

/* Vocabulary v0.1.33: full-width desktop charts */
@media(min-width:651px){.stats-day-scroll{overflow-x:hidden}.stats-day-svg{max-width:100%}}

/* Vocabulary v0.1.34: responsive full-width Account settings layout. */
.account-cards{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 align-items:start;
 gap:18px;
 width:100%;
}
.account-cards > .card{
 width:100%;min-width:0;max-width:none;margin:0;box-sizing:border-box;
}
.account-cards .card h2{overflow-wrap:break-word}
.account-cards .learning-target-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.account-cards .learning-target-field .input{font-size:21px}
.account-cards .learning-settings-actions .btn{
 flex:1 1 150px;white-space:normal;text-align:center;
}
.account-cards .field .input{min-width:0}
@media(max-width:1260px){
 .account-cards{grid-template-columns:minmax(0,1fr)}
 .account-cards .learning-target-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:700px){
 .account-cards .learning-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
 .account-cards{gap:14px}
 .account-cards > .card{padding:18px}
 .account-cards .learning-target-grid{gap:10px}
 .account-cards .learning-settings-actions .btn{flex:1 1 100%;width:100%}
}

/* Vocabulary v0.1.35: Account typography aligned with other pages. */
.account-cards > .card{font-size:16px;line-height:1.5}
.account-cards .card h2{font-size:21px;line-height:1.3}
.account-cards .account-learning-card p.muted{font-size:16px;line-height:1.55}
.account-cards .field label,.account-cards .learning-target-field{font-size:15px;line-height:1.4}
.account-cards .hint{font-size:14px;line-height:1.55}
.account-cards .learning-target-field small,.account-cards .quiz-keyboard-setting small{font-size:14px;line-height:1.45}
.account-cards .quiz-keyboard-setting strong{font-size:16px;line-height:1.4}
.account-cards .btn{font-size:15px}
.account-cards .account-password-card .input{font-size:16px}
.account-cards .quiz-count-input{font-size:20px}

/* Vocabulary v0.1.36: guided five-step learning overview. */
.overview-level-guide{margin:29px 0 4px}
.overview-level-heading{margin-bottom:15px}
.overview-level-heading h2{font-size:24px;letter-spacing:-.04em;line-height:1.25;margin:6px 0 5px}
.overview-level-heading p{font-size:15px;line-height:1.5;margin:0}
.overview-level-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.overview-level-item{position:relative;min-width:0;display:flex;flex-direction:column;gap:13px;background:#fff;border:1px solid #dfebed;border-radius:15px;padding:16px 14px 17px}
.overview-level-number{width:34px;height:34px;border-radius:11px;background:#e6f5f0;color:#157968;font-weight:800;font-size:17px;display:grid;place-items:center;flex:none}
.overview-level-copy{min-width:0;display:flex;flex-direction:column;flex:1}
.overview-level-copy h3{font-size:16px;line-height:1.35;margin:0 0 8px;color:#1d4553;letter-spacing:-.02em;overflow-wrap:break-word}
.overview-level-copy p{font-size:14px;line-height:1.55;color:#526e79;margin:0 0 14px;flex:1}
.overview-level-copy small{display:block;font-size:12px;line-height:1.45;color:#27796f;font-weight:650}
.overview-level-footnote{color:#667f89;font-size:13px;line-height:1.55;margin:13px 2px 0}
@media(max-width:1200px){.overview-level-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
  .overview-level-guide{margin-top:26px}
  .overview-level-heading h2{font-size:22px}
  .overview-level-list{grid-template-columns:1fr;gap:10px}
  .overview-level-item{flex-direction:row;align-items:flex-start;gap:13px;padding:15px}
  .overview-level-number{width:32px;height:32px;font-size:16px}
  .overview-level-copy h3{margin:1px 0 5px}
  .overview-level-copy p{margin:0 0 7px}
}

/* Vocabulary v0.1.38: compact paired lifetime statistics columns. */
.stats-paired-table{min-width:850px;font-size:13px}
.stats-paired-table th,.stats-paired-table td{padding:10px 6px}
.stats-paired-table .stats-word{min-width:118px;max-width:190px;white-space:normal;overflow-wrap:anywhere}
.stats-paired-table .stats-pair-header{min-width:94px;vertical-align:bottom}
.stats-paired-table .stats-pair-title{display:block;font-size:12px;margin-bottom:4px;white-space:nowrap}
.stats-paired-table .stats-pair-actions{display:flex;justify-content:center;align-items:center;gap:2px;white-space:nowrap}
.stats-paired-table .stats-pair-sort-btn{font-size:11px;gap:2px;padding:2px 1px;font-weight:650}
.stats-paired-table .stats-pair-sort-btn.active{color:#086b62;background:#e1f3eb}
.stats-paired-table .stats-pair-sort-btn .stats-sort-arrow{font-size:9px}
.stats-paired-table .stats-pair-cell{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}
.stats-paired-table .stats-pair-slash{color:#90a3ab;margin:0 5px}
.stats-paired-table .stats-errors{color:#ac4939;font-weight:700}

/* Vocabulary v0.1.39: equal-height Account cards when displayed side by side. */
@media(min-width:1261px){
  .account-cards{align-items:stretch}
  .account-cards > .card{align-self:stretch}
}

/* Vocabulary v0.1.40: administrator user listing and role management. */
.admin-users-card{margin:22px 0 26px;min-width:0}
.admin-users-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:15px}
.admin-users-head h2{margin:0 0 4px}
.admin-users-head p{font-size:14px;margin:0}
.admin-users-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #e1e9eb;border-radius:12px}
.admin-users-table{width:100%;border-collapse:collapse;font-size:14px}
.admin-users-table th,.admin-users-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e7eef0}
.admin-users-table thead th{background:#f4f9f9;font-size:12px;color:#536e79;white-space:nowrap}
.admin-users-table tbody tr:last-child th,.admin-users-table tbody tr:last-child td{border-bottom:0}
.admin-users-table tbody th{font-weight:650;overflow-wrap:anywhere;max-width:440px}
.admin-users-table .admin-user-count{font-weight:750;font-variant-numeric:tabular-nums}
.admin-self-tag{display:inline-block;font-weight:650;font-size:11px;color:#24756b;background:#e6f6ee;padding:2px 7px;border-radius:100px;vertical-align:middle;white-space:nowrap}
.admin-role-badge{display:inline-block;background:#edf3f6;color:#395b69;border-radius:100px;padding:4px 9px;font-size:12px;font-weight:650;white-space:nowrap}
.admin-role-elevated{background:#e4f5ef;color:#126c5c}
.admin-user-status{font-size:13px;font-weight:650;white-space:nowrap}
.admin-user-status.active{color:#247763}
.admin-user-status.inactive{color:#a44d42}
.admin-user-action{min-height:36px;padding:8px 11px;font-size:13px}
.admin-edit-form{margin-top:19px;background:#f7fbfa;border:1px solid #d9e9e6;border-radius:13px;padding:18px}
.admin-edit-top{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.admin-edit-top h3{font-size:19px;margin:0}
.admin-edit-top .muted{font-size:13px;overflow-wrap:anywhere}
.admin-edit-fields{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:13px}
.admin-edit-fields label{display:grid;gap:6px;font-size:14px;font-weight:650;color:#315665;min-width:0}
.admin-edit-fields .input{min-width:0;font-size:15px}
.admin-edit-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
@media(max-width:820px){
 .admin-users-table-wrap{overflow:visible;border:0}
 .admin-users-table,.admin-users-table tbody,.admin-users-table tr,.admin-users-table td,.admin-users-table tbody th{display:block;width:100%}
 .admin-users-table thead{display:none}
 .admin-users-table tbody{display:grid;gap:10px}
 .admin-users-table tr{background:#f9fcfc;border:1px solid #e0ebec;border-radius:12px;padding:11px 13px}
 .admin-users-table tbody th,.admin-users-table td{max-width:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #edf2f3;text-align:right}
 .admin-users-table tbody th{text-align:left;display:block;overflow-wrap:anywhere}
 .admin-users-table tbody th::before{content:"Email";display:block;color:#708994;font-size:11px;font-weight:500;margin-bottom:4px}
 .admin-users-table td::before{content:attr(data-label);color:#68818c;font-size:12px;font-weight:550;margin-right:auto}
 .admin-users-table tbody tr:last-child td{border-bottom:0}
 .admin-edit-fields{grid-template-columns:1fr}
 .admin-users-head .btn{min-height:40px}
}

/* Vocabulary v0.1.41: protect primary admin in management interface. */
.admin-owner-tag{display:inline-block;padding:2px 7px;margin-left:5px;border-radius:100px;background:#e0f1f0;color:#17696c;font-size:11px;font-weight:650;white-space:nowrap}
.admin-owner-locked{display:inline-block;font-size:12px;color:#647d86;font-weight:650}

/* Vocabulary v0.1.42: fit daily charts within narrow phone screens. */
@media(max-width:650px){
 .stats-day-graphs,.stats-day-card{min-width:0;max-width:100%}
 .stats-day-scroll{overflow-x:hidden;max-width:100%;width:100%}
 .stats-day-svg{display:block;width:100%;max-width:100%;height:auto;min-width:0}
}

/* Vocabulary v0.1.45: breathing room between finished-training buttons. */
.training-finished-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:24px}
@media(max-width:650px){
 .training-finished-actions{flex-direction:column;gap:14px}
 .training-finished-actions .btn{width:min(100%,310px)}
}

/* Vocabulary v0.1.50: consistent, readable typography across sections. */
.content{font-size:16px;line-height:1.5}
.content .hint{font-size:14px;line-height:1.55}
.content .small{font-size:14px}
.content .tag{font-size:13px;line-height:1.35}
.content .btn{font-size:15px}
.content .field label{font-size:15px}

/* Dictionary: readable rows on desktop and cards on phones. */
.words-table td{font-size:15px;line-height:1.5}
.words-table th,.words-table th .word-sort{font-size:14px}
.words-table .column-search{font-size:14px}
.word-languages{font-size:13px}
.words-table td.word-ipa{font-size:15px}
.word-mobile-card{font-size:16px;line-height:1.5}
.word-mobile-grid{font-size:16px;line-height:1.5}
.mobile-field-label{font-size:14px;line-height:1.4}
.mobile-word-controls label{font-size:15px;line-height:1.45}
.mobile-word-controls select{font-size:16px}
.word-mobile-actions .btn{font-size:15px}
.word-reset-flash{font-size:14px;line-height:1.5}
.reset-level-name{font-size:15px}
.reset-level-done,.reset-level-score{font-size:14px}
.reset-warning{font-size:14px}

/* Statistics: consistent reading sizes, with denser table headings. */
.stats-search-label{font-size:15px}
.stats-explanation,.stats-funnel-intro{font-size:15px;line-height:1.55}
.stats-funnel-title{font-size:15px}
.stats-funnel-title small,.stats-funnel-current,.stats-funnel-footnote{font-size:14px;line-height:1.5}
.stats-paired-table{font-size:15px}
.stats-paired-table .stats-pair-cell{font-size:15px}
.stats-paired-table .stats-pair-title{font-size:13px}
.stats-paired-table .stats-pair-sort-btn{font-size:12px}
.stats-day-period button{font-size:15px}
.stats-day-totals span{font-size:15px;line-height:1.4}
.stats-day-card h3{font-size:18px}
.stats-day-card p{font-size:14px;line-height:1.55}
.stats-day-details summary{font-size:16px}
.stats-day-table-scroll table{font-size:14px}
.stats-mobile-card{font-size:16px;line-height:1.5}
.stats-mobile-sort label{font-size:15px}
.stats-mobile-sort .btn{font-size:14px}
.stats-mobile-word .tag{font-size:13px}
.stats-mobile-overall span{font-size:14px}
.stats-mobile-gridhead{font-size:14px}
.stats-mobile-level{font-size:16px}
.stats-mobile-level>span:first-child{font-size:15px}
.stats-mobile-level strong{font-size:18px}
.stats-mobile-empty{font-size:16px}

/* iPhone and other narrow displays: preserve touch targets and prevent iOS input zoom. */
@media(max-width:820px){
 .content .grid4 .kpi label{font-size:15px;line-height:1.4}
 .content .grid4 .kpi strong{font-size:30px}
 .content .stats-summary .kpi label{font-size:15px}
 .content .word-mobile-grid{font-size:16px}
 .content .word-mobile-card .word-name strong{font-size:19px}
 .content .stats-highlights .stat-row span{font-size:15px}
 .content .stats-highlights .stat-row strong{font-size:16px}
 .content .stats-day-totals span{font-size:14px}
 .content .stats-day-card p{font-size:14px}
 .content .stats-day-table-scroll table{font-size:14px}
 .content .overview-level-copy p{font-size:15px}
 .content .overview-level-footnote{font-size:14px}
 .content .overview-level-copy small{font-size:14px}
 .content .stats-mobile-gridhead{font-size:14px}
 .content .stats-mobile-level>span:first-child{font-size:15px}
 .content .stats-mobile-overall span{font-size:14px}
 .content .word-mobile-card .inline-word-details p{font-size:16px}
 .content .mobile-word-controls .input,.content .stats-toolbar .input,.content .stats-mobile-sort .input,.content #add-word .input{font-size:16px}
}
@media(max-width:390px){
 .stats-mobile-gridhead,.stats-mobile-level{grid-template-columns:minmax(0,1fr) 69px 60px}
 .stats-mobile-gridhead{font-size:13px}
}

/* Vocabulary v0.1.51: align daily-stat numbers even when labels wrap. */
.stats-day-totals > div{grid-template-rows:minmax(0,1fr) auto}
.stats-day-totals > div > span{align-self:start}
.stats-day-totals > div > strong{align-self:end}

/* Vocabulary v0.1.52: bulk comma-separated vocabulary entry. */
.add-words-form{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.add-words-input{flex:1 1 340px;min-width:0;max-width:100%;min-height:82px;resize:vertical;font:inherit;font-size:16px;line-height:1.5}
.add-words-form .btn{min-height:48px;flex:0 0 auto}
.add-words-hint{margin:10px 0 2px;line-height:1.55}
.add-words-result{margin:12px 0 0;line-height:1.5;font-size:15px}
@media(max-width:650px){
 .add-words-form{flex-direction:column;align-items:stretch;gap:10px}
 .add-words-form .add-words-input{flex:0 0 auto;width:100%;min-height:105px}
 .add-words-form .btn{width:100%;flex:0 0 auto}
}

/* Vocabulary v0.1.53: activity filters and status in Dictionary. */
.word-activity-filters{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:4px 0 16px}
.word-activity-filter{border:1px solid #cddfe1;border-radius:10px;background:#fff;color:#385766;cursor:pointer;font-size:15px;line-height:1.35;padding:10px 13px;font-weight:650;min-height:42px}
.word-activity-filter span{font-variant-numeric:tabular-nums;font-weight:750;margin-left:4px}
.word-activity-filter:hover,.word-activity-filter.selected{background:#e8f7f2;color:#116c5e;border-color:#72b8a7}
.word-activity-filter:focus-visible{outline:3px solid #5ac5b0;outline-offset:2px}
.word-activity-toggle{white-space:normal;text-align:center}
.word-is-inactive{background:#f7f8f9}
.word-is-inactive .word-name strong{color:#70848d}
.word-inactive-badge{display:inline-block;border-radius:100px;background:#eef1f3;color:#556b75;font-size:13px;line-height:1.35;padding:5px 9px;font-weight:700}
.word-mobile-card.word-is-inactive{border-color:#d3dadd}
@media(max-width:820px){
 .word-activity-filters{gap:7px}
 .word-activity-filter{font-size:14px;padding:10px 9px;flex:1 1 auto}
 .word-mobile-actions{flex-wrap:wrap}
 .word-mobile-actions .word-activity-toggle{flex:1 1 100%;font-size:15px}
}

/* Vocabulary v0.1.53: inactive word count is separate from active learning metrics. */
.stats-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
.stats-summary>.kpi:last-child{border-color:#d5e3e5}
.stats-summary>.kpi:last-child strong{color:#506c76}
@media(max-width:1250px){.stats-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){
 .stats-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stats-summary>.kpi:last-child{grid-column:span 2}
}

/* Vocabulary v0.1.54: clear hover/focus states for word activity actions. */
.btn.word-activity-toggle{transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease; border:1px solid transparent}
.btn.outline.word-activity-toggle{border-color:#cfdee4}
.btn.word-activity-toggle.word-deactivate:not(:disabled):is(:hover,:focus-visible){background:#fbe9e7;color:#a63b34;border-color:#e7a19c;box-shadow:0 0 0 2px rgba(166,59,52,.13)}
.btn.word-activity-toggle.word-activate:not(:disabled):is(:hover,:focus-visible){background:#d8f3e8;color:#096b56;border-color:#64b89d;box-shadow:0 0 0 2px rgba(9,107,86,.12)}
.btn.word-activity-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Vocabulary staging visual identification, never publish on production. */
#staging-banner{position:fixed;right:12px;bottom:calc(12px + env(safe-area-inset-bottom, 0px));z-index:99999;background:#7c2d12;color:#fff;font-size:12px;font-weight:750;letter-spacing:.045em;border-radius:8px;padding:7px 11px;box-shadow:0 2px 10px #0003;pointer-events:none;max-width:75vw;text-align:center}
