@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--ink:#203633;--muted:#74827f;--green:#214d42;--orange:#f87551;--line:#e4eae6;--bg:#f5f8f6;--soft:#eaf1ed;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px 'DM Sans',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,'DM Sans',Arial,sans-serif}button{border:0}.layout{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}.sidebar{background:#1d3531;color:#e8f0eb;padding:37px 22px 24px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:242px}.brand{font:800 38px Manrope,Arial;letter-spacing:-2px;padding:0 13px;display:flex;align-items:center;gap:5px}.brand b{color:#fc966e}.brand-sub{color:#a1b8ad;font-size:12px;letter-spacing:2.2px;margin:6px 15px 43px}.navlabel{font-size:11px;letter-spacing:1.8px;color:#8da99c;margin:0 15px 14px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{display:flex;align-items:center;gap:13px;text-align:left;background:transparent;color:#b5c8bd;border-radius:9px;padding:14px 15px;font-size:14px;font-weight:500}.nav button:hover{background:#29463d}.nav button.active{background:#365247;color:#fff}.nav svg{width:19px;height:19px;opacity:.9}.sidebar-note{margin-top:auto;background:#29463d;border:1px solid #3b564a;border-radius:12px;padding:18px 15px;color:#d7e4da;font-size:13px;line-height:1.6}.sidebar-note strong{display:block;margin:9px 0 5px;color:#fff;font-size:14px}.profile{display:flex;align-items:center;gap:11px;border-top:1px solid #395147;padding:23px 7px 0;margin-top:24px;font-size:13px}.avatar{background:#e8c0a9;color:#4f5141;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;font-weight:700}.profile small{display:block;color:#9cb4a5;margin-top:3px}.main{grid-column:2;min-width:0}.topbar{height:90px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px;font-size:13px;color:var(--muted)}.topbar strong{color:var(--ink);font-weight:500}.topright{display:flex;align-items:center;gap:22px}.level{color:var(--green);background:var(--soft);border:1px solid #dae4dc;padding:7px 12px;border-radius:7px;font-size:12px;font-weight:650}select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%2374827f' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;padding:10px 33px 10px 12px;border:1px solid var(--line);border-radius:7px;color:var(--ink)}.content{max-width:1390px;margin:auto;padding:39px 48px 36px}.eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:650;text-transform:uppercase;color:var(--muted);margin-bottom:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}h1{font-size:30px;letter-spacing:-1.1px;font-weight:750}.subtitle{color:var(--muted);font-size:14px;line-height:1.7;margin-top:10px}.btn{padding:13px 19px;border-radius:8px;background:var(--green);color:#fff;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:background .15s}.btn:hover{background:#326151}.btn.orange{background:var(--orange);color:#fff}.btn.orange:hover{background:#e36544}.btn.secondary{background:#fff;border:1px solid #dce5df;color:var(--ink)}.btn.ghost{background:transparent;color:var(--green);padding:7px 0}.btn svg{width:17px;height:17px}.hero{background:#e5eee6;border:1px solid #dfe9df;border-radius:16px;display:grid;grid-template-columns:1.35fr 1fr;overflow:hidden;min-height:268px;position:relative}.hero-copy{padding:33px 36px;position:relative;z-index:1}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;background:#fff9;color:#46604b;border:1px solid #d4e0d4;font-size:11px;font-weight:600;letter-spacing:.5px;border-radius:5px;margin-bottom:16px}.hero h2{font-size:30px;line-height:1.25;letter-spacing:-1px;max-width:460px}.hero p{font-size:14px;line-height:1.7;max-width:390px;color:#647b65;margin:12px 0 22px}.hero-art{width:100%;height:100%;min-height:250px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:22px 0 32px}.stat{border:1px solid var(--line);border-radius:11px;background:white;padding:20px 22px;display:flex;align-items:center;gap:15px}.stat-icon{width:43px;height:43px;border-radius:10px;display:grid;place-items:center;background:#f1f5ef;color:#66805b}.stat-icon svg{width:20px}.stat:nth-child(2) .stat-icon{background:#fff0e8;color:#d28662}.stat:nth-child(3) .stat-icon{background:#eeedf9;color:#8a80b5}.stat strong{font:750 23px Manrope;display:block}.stat span{font-size:12px;color:var(--muted);display:block;margin-top:3px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.section-head h2{font-size:19px;letter-spacing:-.5px}.section-head p{font-size:12px;color:var(--muted);margin-top:5px}.section-head .btn{font-size:12px}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mode{border:1px solid var(--line);background:#fff;border-radius:13px;overflow:hidden;display:flex;flex-direction:column}.mode-art{height:144px;position:relative;background:#f1f0e9;display:grid;place-items:center}.mode-art svg{width:100%;height:100%}.mode:nth-child(2) .mode-art{background:#edf0f6}.mode:nth-child(3) .mode-art{background:#f6eee8}.mode-body{padding:20px;flex:1;display:flex;flex-direction:column}.tag{font-size:10px;letter-spacing:1.2px;color:#829178;text-transform:uppercase;margin-bottom:9px;font-weight:650}.mode h3{font-size:17px;letter-spacing:-.4px}.mode p{color:var(--muted);font-size:13px;line-height:1.65;margin:10px 0 17px;flex:1}.mode-bottom{border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.mode-bottom button{background:none;color:var(--green);font-weight:650;font-size:12px;padding:4px 0}.bottom-note{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px 20px;font-size:12px;color:var(--muted);margin-top:24px}.bottom-note svg{width:18px;flex-shrink:0}.bottom-note b{color:#536650}.footer{display:flex;justify-content:space-between;color:#9aa59b;font-size:11px;margin-top:27px;gap:15px}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:25px;margin-bottom:20px}.panel h2{font-size:19px;margin-bottom:12px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.search{flex:1;min-width:160px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px}.field label{font-size:13px;font-weight:600}.field input,.field textarea,.search,.answer{width:100%;border:1px solid #d9e2dd;background:#fff;border-radius:8px;padding:12px 14px;color:var(--ink)}textarea{resize:vertical;min-height:110px;line-height:1.6}.hint{font-size:12px;line-height:1.6;color:var(--muted)}.checks{display:flex;gap:9px;flex-wrap:wrap}.check{background:#f5f7f4;border:1px solid var(--line);border-radius:7px;font-size:13px;padding:10px 12px;display:flex;gap:7px;align-items:center}.check input{accent-color:var(--green)}.material{display:flex;align-items:flex-start;gap:16px;padding:21px 0;border-bottom:1px solid var(--line)}.material:last-child{border-bottom:0}.material-info{flex:1;min-width:0}.material h3{font-size:16px;margin-bottom:7px;overflow-wrap:anywhere}.material p{font-size:13px;color:var(--muted);line-height:1.6}.material .btn{padding:8px 11px;font-size:12px}.chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.chip{font-size:11px;border-radius:4px;background:var(--soft);padding:4px 7px;color:#53705a}.delete{background:transparent;color:#a87165;padding:6px}.empty{text-align:center;padding:44px 20px}.empty svg{width:38px;height:38px;color:#849e8b;margin-bottom:14px}.empty h3{margin-bottom:10px}.empty p{max-width:500px;margin:0 auto 22px;line-height:1.7;color:var(--muted);font-size:14px}.modal-backdrop{position:fixed;inset:0;background:#102b2670;z-index:10;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(4px)}.modal{background:white;width:690px;max-height:90vh;overflow:auto;border-radius:16px;padding:30px;box-shadow:0 20px 80px #142e2830}.modal h2{font-size:23px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.close{background:var(--bg);border-radius:50%;width:32px;height:32px;font-size:22px;color:var(--muted)}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:22px 0}.tabs button{background:transparent;padding:12px;font-size:13px;color:var(--muted);border-bottom:2px solid transparent}.tabs button.active{border-color:var(--green);color:var(--green)}.drop{border:1.5px dashed #b5c8bb;border-radius:10px;background:#f6f9f5;padding:22px;text-align:center;margin:15px 0}.drop input{max-width:100%;font-size:13px;margin-top:15px}.drop p{font-size:13px;color:var(--muted);line-height:1.7}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.error{font-size:13px;color:#b34835;background:#fff1eb;padding:12px;border-radius:7px;margin-top:12px;line-height:1.6}.session{max-width:850px;margin:auto}.session-top{display:flex;justify-content:space-between;align-items:center;margin:6px 0 24px;color:var(--muted);font-size:13px}.progress-track{height:5px;background:#dfe9e0;border-radius:4px;margin-bottom:30px;overflow:hidden}.progress-fill{height:100%;background:var(--orange)}.exercise{background:#fff;border:1px solid var(--line);border-radius:16px;padding:35px}.exercise-meta{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:12px;margin-bottom:25px}.exercise h2{font-size:26px;line-height:1.4;margin-bottom:22px}.conjugation{display:flex;align-items:center;gap:25px;background:#f3f7f2;border-radius:11px;padding:26px;margin:20px 0}.conjugation b{font:750 29px Manrope;letter-spacing:-.5px}.conjugation span{font-size:17px;color:#6b806c}.answer{font-size:19px;margin:12px 0;min-height:52px}.accents{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}.accents button{background:#f1f4f0;border:1px solid #dce4dd;border-radius:5px;padding:5px 11px;font-size:14px;color:#54735b}.feedback{padding:19px;background:#eaf3e8;border:1px solid #d1e2ce;border-radius:9px;margin:20px 0;line-height:1.7}.feedback.bad{background:#fff0ea;border-color:#f2d4c6}.feedback h3{font-size:16px;margin-bottom:9px}.feedback p{white-space:pre-line;font-size:14px}.explanation{margin-top:15px;border-top:1px solid #d9e2d5;padding-top:14px;color:#52684f;font-size:14px;line-height:1.8}.task-image{max-width:100%;max-height:370px;display:block;margin:15px auto;border-radius:10px}.task-visual{background:#f0f3f0;border-radius:12px;margin-bottom:20px;overflow:hidden}.task-visual svg{width:100%;height:260px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:18px}.source-note{font-size:12px;color:var(--muted);margin-top:22px}.result-num{font:800 55px Manrope;color:var(--green);margin:15px 0}.result-list{margin:22px 0;text-align:left;max-height:400px;overflow:auto}.result-row{border-bottom:1px solid var(--line);padding:13px 0;font-size:14px;line-height:1.7}.summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-size:12px;font-weight:500}.notice{background:#f1f5ef;border:1px solid #dfe7db;border-radius:9px;padding:16px;font-size:13px;color:#60725a;line-height:1.7}.timer{font-variant-numeric:tabular-nums}.mobilebrand{display:none}.feature-label{position:absolute;left:16px;top:13px;background:#fff9;padding:4px 7px;border-radius:5px;font-size:10px;color:#7d887b}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#1d3531;color:white;z-index:30;padding:13px 22px;border-radius:9px;font-size:14px;display:none;box-shadow:0 5px 30px #0002}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.span-all{grid-column:1/-1}.inline{display:flex;gap:8px;align-items:center}.material input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);margin-top:3px}.muted{color:var(--muted)}@media(min-width:1500px){.content{padding-top:48px}.hero{min-height:290px}.mode-art{height:175px}}@media(max-width:1100px){.sidebar{width:200px;padding-left:13px;padding-right:13px}.layout{grid-template-columns:200px minmax(0,1fr)}.content{padding:30px}.topbar{padding:0 30px}.hero-copy{padding:28px}.hero h2{font-size:27px}.modes{gap:12px}.mode-body{padding:16px}.stat{padding:17px 14px}.hero{grid-template-columns:1.4fr 1fr}}@media(max-width:800px){.sidebar{position:sticky;top:0;width:100%;z-index:5;padding:12px 16px;flex-direction:row;align-items:center;border-bottom:1px solid #3e564b;gap:20px}.layout{display:block}.brand{font-size:27px;padding:0}.brand-sub,.navlabel,.sidebar-note,.profile{display:none}.nav{flex-direction:row;gap:3px;flex:1;justify-content:flex-end}.nav button{padding:10px;font-size:12px;gap:7px}.nav svg{width:16px;height:16px}.topbar{height:70px;padding:0 22px}.topright{gap:10px}.topbar .crumb{display:none}.content{padding:26px 22px}.hero h2{font-size:25px}.hero-copy{padding:25px}.hero{grid-template-columns:1.25fr 1fr}.hero-art{min-height:270px}.mode p{font-size:12px}.stats{gap:10px}.stat{padding:14px 11px;gap:9px}.stat-icon{width:34px;height:34px;flex-shrink:0}.stat strong{font-size:21px}.stat span{font-size:11px}.mode-bottom{flex-wrap:wrap;gap:8px}.footer{font-size:10px}}@media(max-width:580px){.nav button{font-size:0;gap:0;padding:11px 13px}.nav svg{width:20px;height:20px}.sidebar{gap:8px}.content{padding:24px 17px}.page-heading{align-items:flex-start}h1{font-size:25px}.page-heading>.btn{font-size:0;padding:12px}.page-heading>.btn svg{width:20px;height:20px}.hero{grid-template-columns:1fr;min-height:auto}.hero-copy{padding:26px}.hero p{max-width:100%}.hero-art{height:185px;min-height:185px;margin-top:-12px}.hero h2{font-size:28px}.stats{gap:7px;margin-top:16px}.stat{display:block;padding:13px 10px}.stat-icon{width:29px;height:29px;margin-bottom:9px}.stat-icon svg{width:16px}.stat strong{font-size:22px}.stat span{font-size:10px}.modes{grid-template-columns:1fr}.mode{display:grid;grid-template-columns:115px 1fr}.mode-art{height:100%;min-height:180px}.mode-art svg{object-fit:cover}.mode h3{font-size:16px}.mode p{font-size:13px}.mode-body{padding:17px}.mode-bottom{font-size:10px}.bottom-note{align-items:flex-start;line-height:1.6}.footer{flex-direction:column;gap:7px}.section-head h2{font-size:18px}.section-head p{font-size:11px}.modal-backdrop{padding:10px}.modal{padding:22px;max-height:94vh}.tabs button{font-size:12px;padding:10px 8px}.exercise{padding:24px 19px}.exercise h2{font-size:22px}.exercise-meta{font-size:11px}.conjugation{padding:20px;gap:15px}.conjugation b{font-size:25px}.summary-grid,.form-grid{grid-template-columns:1fr}.material{gap:10px;flex-wrap:wrap}.material-info{min-width:65%}.topbar{padding:0 17px}.level{font-size:11px}.topright select{max-width:170px;font-size:13px}.panel{padding:20px}.hero .btn{font-size:13px}}

.sidebar-note>svg{width:23px;height:23px}.topright>.inline>svg{width:17px;height:17px;flex-shrink:0}.delete svg{width:17px;height:17px}.brand b{font-family:Arial,sans-serif;font-size:34px}.brand-sub{font-size:10px;letter-spacing:1.9px;white-space:nowrap}.sidebar-note{margin-top:auto}

.source-packs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.source-packs h3{font-size:1.25rem;margin:14px 0 8px}.source-packs p{font-size:1rem;line-height:1.5}.source-packs .btn{font-size:.875rem}#bundle-filter{max-width:100%;font-size:.875rem;padding:12px;border:1px solid #ccd7cc;border-radius:8px;background:#fff}.toolbar{flex-wrap:wrap}@media(max-width:700px){.source-packs{grid-template-columns:1fr}}

.training-modes{grid-template-columns:repeat(3,minmax(0,1fr))}.training-modes .tag{font-size:.875rem;letter-spacing:0;text-transform:none;line-height:1.4}.training-modes .mode-bottom{gap:10px;flex-wrap:wrap}.training-modes .mode-bottom span{font-size:.875rem}#category-filter{max-width:100%;font-size:.875rem;padding:12px;border:1px solid #ccd7cc;border-radius:8px;background:#fff}@media(max-width:1000px){.training-modes{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.training-modes{grid-template-columns:1fr}}

/* Responsive practice editor: the answer remains reachable above mobile chrome. */
html{scroll-padding-block:24px}button,input,textarea,select{touch-action:manipulation}.task-prompt,.answer-editor{min-width:0}.task-instructions{margin-bottom:20px}.task-instructions summary{cursor:pointer;font-size:.875rem;font-weight:600;color:var(--green);padding:12px 0;min-height:44px}.task-instructions[open] summary{margin-bottom:10px}.task-instructions h2{font-size:1.125rem;line-height:1.65;font-weight:600}.answer-editor label{display:block;font-size:.875rem;line-height:1.5}.answer-editor textarea.answer{display:block;min-height:260px;line-height:1.65;font-size:1rem;padding:16px;scroll-margin-block:24px;resize:vertical}.editor-status{display:flex;justify-content:space-between;color:var(--muted);font-size:.875rem;margin:-4px 0 14px}.answer-editor .actions .btn{min-height:44px}.accents button{min-width:36px;min-height:40px;font-size:1rem}.exercise,.feedback,.result-row{overflow-wrap:anywhere}.session-top{gap:16px}.session-top>.inline{flex-shrink:0}.session-top .btn{min-height:44px}.task-prompt .task-image{object-fit:contain}.in-session .content{padding-bottom:60px}.in-session .footer{margin-top:22px}
@media(min-width:1100px){.in-session .session{max-width:1100px}.exercise:has(.task-instructions){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:28px;align-items:start}.exercise:has(.task-instructions)>.exercise-meta{grid-column:1/-1}.exercise:has(.task-instructions)>.task-instructions{grid-column:1;grid-row:2}.exercise:has(.task-instructions)>.answer-editor{grid-column:2;grid-row:2}.exercise:has(.task-instructions)>.source-note{grid-column:1/-1}.answer-editor textarea.answer{min-height:340px}.task-instructions .task-visual svg{height:auto;min-height:180px}}
@media(max-width:800px){
 .in-session .sidebar{position:relative;padding:8px 14px;min-height:56px}.in-session .topbar{display:none}.in-session .content{padding:12px 12px calc(150px + env(safe-area-inset-bottom,0px))}.in-session .session-top{margin:0 0 10px;font-size:.875rem;min-height:44px}.in-session .progress-track{margin-bottom:14px}.in-session .exercise{padding:18px 16px;border-radius:12px}.in-session .exercise-meta{font-size:.75rem;margin-bottom:12px;gap:8px}.in-session .exercise h2{font-size:1.0625rem;line-height:1.55;margin-bottom:14px}.in-session .task-instructions{margin-bottom:12px}.in-session .task-instructions summary{padding:8px 0;min-height:40px}.in-session .task-instructions[open] summary{margin-bottom:6px}.in-session .task-visual svg{height:auto;max-height:220px}.in-session .answer{font-size:1rem;min-width:0;scroll-margin-block:20px}.in-session .answer-editor textarea.answer{min-height:200px;height:clamp(200px,36dvh,360px);max-height:none;padding:12px;line-height:1.6}.in-session .accents{gap:6px;margin-bottom:12px}.in-session .accents button{min-width:34px;min-height:40px;padding:5px 9px}.in-session .actions{margin-top:12px;gap:10px}.in-session .actions .btn{flex:1;padding:12px 14px;font-size:.875rem}.in-session .source-note{font-size:.75rem;line-height:1.5;margin-top:18px}.in-session.answer-focused .sidebar,.in-session.keyboard-open .sidebar{display:none}.in-session.answer-focused .exercise-meta,.in-session.keyboard-open .exercise-meta{display:none}.in-session.answer-focused .session-top,.in-session.keyboard-open .session-top{margin-bottom:4px}.in-session.answer-focused .progress-track,.in-session.keyboard-open .progress-track{margin-bottom:8px}.in-session.answer-focused .answer-editor textarea.answer,.in-session.keyboard-open .answer-editor textarea.answer{height:clamp(140px,calc(var(--visible-height, 100dvh) - 190px),300px);min-height:140px}.in-session .footer{display:none}.modal{max-height:calc(var(--visible-height,100dvh) - 24px)}input,textarea,select{font-size:16px}
}
@media(max-width:380px){.in-session .content{padding-left:8px;padding-right:8px}.in-session .exercise{padding:14px 12px}.in-session .accents button{min-width:30px;padding:5px 7px}}

/* One native start button covers its entire training card. */
.training-modes .mode{position:relative;transition:border-color .15s,box-shadow .15s}
.training-modes .mode-bottom button:not(:disabled)::after{content:"";position:absolute;inset:0;z-index:1;border-radius:13px;cursor:pointer}
.training-modes .mode:has(button:not(:disabled)):hover{border-color:#87aa98;box-shadow:0 3px 14px #214d4212}
.training-modes .mode:has(button:focus-visible){outline:3px solid var(--green);outline-offset:4px}
.training-modes .mode-bottom button:focus-visible{outline:none}

.learning-links{margin:24px 0}.learning-tabs,.tense-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}.learning-tabs .btn,.tense-tabs .btn{min-height:44px}.lesson-explanation{white-space:pre-line;line-height:1.8;font-size:1rem;margin:16px 0}.reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.reading-grid .panel{margin:0;display:flex;flex-direction:column}.reading-grid h2{font-size:1.125rem;margin:16px 0 0;line-height:1.5}.reading-grid .actions{margin-top:auto;padding-top:18px}.grammar-library summary,.reading-memory summary,.reading-original summary{cursor:pointer;font-size:1rem;font-weight:600;line-height:1.5;min-height:44px;padding:10px 0}.reading-passage h3{font-size:1.375rem;line-height:1.4;margin:14px 0 18px}.reading-passage p{font-size:1rem;line-height:1.9;margin:0 0 16px}.reading-questions{padding-left:22px;line-height:1.7;font-size:1rem;margin:24px 0}.reading-questions li{padding-left:4px;margin-bottom:12px}.reading-memory,.reading-original{border-top:1px solid var(--line);padding-top:8px;margin:16px 0}.reading-memory dl{margin:10px 0}.reading-memory dl>div{margin:0 0 12px}.reading-memory dt{font-weight:650}.reading-memory dd{margin:4px 0 0;color:var(--muted);font-size:.9375rem;line-height:1.5}.reading-original>div{max-height:480px;overflow:auto;line-height:1.8}.reading-original p{margin:0 0 16px;font-size:1rem}.word-minimum-met{color:var(--green);font-weight:650}.material>.inline{flex-wrap:wrap;max-width:230px}.material .source-note{overflow-wrap:anywhere}.reading-passage .chip{font-size:.8125rem}.exercise:has(.reading-passage) .task-prompt>h2{font-size:1rem;border-top:1px solid var(--line);padding-top:14px}.grammar-library details[open]>summary{margin-bottom:14px}
@media(min-width:1100px){.exercise:has(.reading-passage)>.answer-editor{position:sticky;top:24px}.exercise:has(.reading-passage) .task-instructions[open] .task-prompt{padding-right:10px}}
@media(max-width:800px){.reading-grid{grid-template-columns:1fr}.learning-tabs,.tense-tabs{gap:8px;margin-bottom:18px}.learning-tabs .btn,.tense-tabs .btn{font-size:.875rem;padding:10px 12px}.learning-links{align-items:stretch}.learning-links .btn{min-height:44px;flex:1 1 180px}.reading-passage h3{font-size:1.25rem}.reading-passage p{line-height:1.8}.material>.inline{max-width:100%}.reading-questions{margin:18px 0}.lesson-explanation{font-size:1rem;line-height:1.7}.reading-original>div{max-height:340px}}
/* Short, readable lessons in the reference library and activity feedback. */
.teaching-lesson{font-size:1rem;line-height:1.65;text-align:left;overflow-wrap:anywhere;white-space:normal}
.teaching-lesson h3{font-size:1.2rem;line-height:1.35;margin:1.1rem 0}
.teaching-lesson h4,.teaching-worked h4{font-size:1rem;line-height:1.4;margin:0 0 .6rem;font-weight:750}
.teaching-lesson section{margin:1.25rem 0}
.teaching-lesson p,.teaching-worked p{margin:.45rem 0 .75rem}
.teaching-lesson ol,.teaching-worked ol{padding-left:1.4rem;margin:.5rem 0}
.teaching-lesson li,.teaching-worked li{margin:.6rem 0;padding-left:.2rem}
.teaching-examples{display:grid;gap:.75rem}
.teaching-example{padding:.85rem 1rem;background:#f0f6f2;border-left:3px solid #4a775d;border-radius:0 .5rem .5rem 0}
.teaching-example p:last-child{margin-bottom:0}
.teaching-mistake{padding:1rem;background:#fff5e9;border:1px solid #ead5b6;border-radius:.7rem}
.teaching-quiz{padding:1rem;border:1px solid #ceddd2;border-radius:.7rem}
.teaching-quiz details{margin-top:.75rem}
.teaching-quiz summary,.teaching-related>summary,.teaching-worked-toggle>summary{cursor:pointer;font-weight:700;padding:.6rem 0;min-height:44px}
.teaching-worked{padding:1rem;border:1px solid #b6d1bf;background:#f5faf6;border-radius:.7rem;white-space:normal;font-size:1rem;line-height:1.65}
.teaching-worked-toggle{margin-bottom:1rem}
.teaching-sentence{padding:.8rem;background:white;border-radius:.4rem}
.teaching-related{margin:1rem 0}
.explanation:has(.teaching-context),.explanation:has(.teaching-lesson){white-space:normal}
.grammar-library>.panel>summary{min-height:44px}
@media(max-width:800px){.teaching-lesson{font-size:1rem;line-height:1.6}.teaching-worked,.teaching-example,.teaching-quiz,.teaching-mistake{padding:.8rem}.teaching-lesson h3{font-size:1.1rem}.teaching-lesson li{margin:.7rem 0}}
.teaching-terms{padding:1rem;background:#f1f5f8;border:1px solid #d4e0e7;border-radius:.7rem}
.teaching-terms dl{margin:.5rem 0 0}.teaching-terms dt{font-weight:750;margin:.75rem 0 .2rem}.teaching-terms dd{margin:0;line-height:1.6}
.teaching-formula{padding:1rem;margin:1.2rem 0;border:1px solid #b6d1bf;background:#eef6ef;border-radius:.7rem;font-size:1.05rem;line-height:1.5}
.teaching-table-scroll{overflow-x:auto;border:1px solid #cedbd2;border-radius:.5rem;margin:.6rem 0;max-width:100%;scrollbar-width:thin}
.teaching-table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.5;text-align:left;min-width:28rem}
.teaching-table th,.teaching-table td{padding:.7rem .8rem;vertical-align:top;border-bottom:1px solid #dee7e0;white-space:normal}
.teaching-table thead th{background:#e5efe7;font-weight:700}.teaching-table tbody th{background:#f5f8f5;font-weight:600}.teaching-table tr:last-child>*{border-bottom:0}
.textbook-chapters>.panel>summary{padding:.5rem 0;font-size:1.15rem;font-weight:750;cursor:pointer;line-height:1.5}
.chapter-topics{margin-top:1rem}.textbook-topic{border-top:1px solid #dce6df;padding:.5rem 0}.textbook-topic>summary{cursor:pointer;font-size:1.05rem;font-weight:650;min-height:44px;padding:.6rem .2rem;line-height:1.5}
.vocab-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1.4rem 0}
.vocab-category{font:inherit;min-height:92px;text-align:left;padding:1rem;border:1px solid #cedbd2;border-radius:.8rem;background:white;color:#253c32;cursor:pointer}
.vocab-category strong,.vocab-category span{display:block}.vocab-category span{margin-top:.35rem;font-size:.9rem;color:#596d60}.vocab-category.active{background:#e5efe7;border:2px solid #426c50;padding:calc(1rem - 1px)}
.vocabulary-tools{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin:1rem 0}.vocabulary-tools label{flex:1 1 200px;display:grid;gap:.4rem;font-size:.95rem}.vocabulary-tools input,.vocabulary-tools select{font-size:1rem;width:100%;min-height:46px}
.vocabulary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}.word-card{margin:0;padding:0!important;overflow:hidden}.word-card summary{cursor:pointer;min-height:100px;padding:1rem;font-size:1.1rem;font-weight:700;line-height:1.45}.word-card summary small{display:block;font-size:.85rem;font-weight:400;color:#627266;margin-top:.5rem}.word-meaning{padding:0 1rem 1rem;font-size:1rem;line-height:1.6}.word-example{padding:.6rem;background:#f0f6f2;border-radius:.4rem}.vocab-more{justify-content:center;margin:1.4rem 0}
@media(max-width:800px){.vocab-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.vocabulary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vocab-category{padding:.8rem;min-height:96px}.vocab-category.active{padding:calc(.8rem - 1px)}.teaching-table{min-width:26rem}.teaching-table td,.teaching-table th{padding:.65rem}.teaching-terms{padding:.8rem}.vocabulary-tools{padding:1rem!important}.vocabulary-tools>.btn{width:100%}}
@media(max-width:440px){.vocabulary-grid{grid-template-columns:1fr}.word-card summary{min-height:88px}.vocab-category strong{font-size:.95rem}}
.teaching-full-rule{margin:1rem 0;border-top:1px solid #c8d8cc;padding-top:.6rem}.teaching-full-rule>summary{cursor:pointer;min-height:44px;padding:.6rem 0;font-size:1rem;font-weight:700;line-height:1.5}.teaching-idea{font-size:1rem;line-height:1.65;white-space:normal}

/* One random home image and in-page photo viewer */
.meme-panel{display:flex;align-items:center;justify-content:center;background:white;border:1px solid var(--border,#dce3df);border-radius:24px;padding:24px;margin:0 0 32px;overflow:hidden}
.meme-photo{display:flex;align-items:center;justify-content:center;width:100%;height:320px;flex-shrink:0;padding:0;border:0;border-radius:16px;background:#f3f6f4;cursor:zoom-in;touch-action:pan-y pinch-zoom;overflow:hidden}
.meme-photo img{display:block;width:100%;height:100%;object-fit:contain}
.meme-copy h2{margin:14px 0 8px}.meme-copy p{margin:0 0 20px;color:#667770}.meme-controls{display:flex;align-items:center;justify-content:center;gap:16px}.meme-controls button{min-height:44px}.meme-controls span{white-space:nowrap;min-width:55px;text-align:center;font-variant-numeric:tabular-nums;font-size:14px}.meme-enlarge{margin-top:16px;border:0;background:transparent;padding:8px 0;min-height:44px;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
.meme-dialog{width:min(960px,calc(100% - 32px));height:min(940px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:0;border-radius:20px;background:#fff;color:#213a32;box-shadow:0 24px 100px #0006}.meme-dialog::backdrop{background:#12221de6}.meme-lightbox{height:100%;display:flex;flex-direction:column;padding:16px;gap:12px;box-sizing:border-box}.meme-lightbox header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.meme-lightbox h2{font-size:18px;margin:0}.meme-large-photo{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}.meme-large-photo img{display:block;width:100%;height:100%;object-fit:contain}.meme-lightbox footer{flex-shrink:0}.meme-panel button:focus-visible,.meme-dialog button:focus-visible{outline:3px solid #da793c;outline-offset:3px}
@media(max-width:600px){.meme-panel{flex-direction:column;gap:20px;padding:20px}.meme-photo{width:100%;height:270px}.meme-copy{width:100%}.meme-copy h2{font-size:24px}.meme-copy .pill{font-size:12px}.meme-controls{gap:10px}.meme-controls button{padding:10px 14px}.meme-dialog{width:100%;height:100dvh;margin:0;border-radius:0}.meme-lightbox{padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))}.meme-lightbox header h2{font-size:16px}}

.activity-text{font-size:20px!important;line-height:1.65!important;white-space:pre-line;font-weight:500!important}.activity-answer{white-space:pre-line}.activity-context{margin-bottom:24px}.activity-context summary{font-size:16px;cursor:pointer;padding:12px 0}.activity-context .reading-passage{max-height:50vh;overflow:auto}.task-image{object-fit:contain;max-width:100%;height:auto}@media(max-width:600px){.activity-text{font-size:18px!important}.activity-context .reading-passage{max-height:none}}

.daily-quote{padding:20px 12px 0;border-top:1px solid #3d5750;line-height:1.6;overflow-y:auto;max-height:calc(100dvh - 345px)}
.daily-quote .quote-label{display:block;font-size:11px;letter-spacing:1.5px;color:#a1b8ad;margin-bottom:13px}
.daily-quote blockquote{margin:0 0 16px;font-family:Georgia,serif;font-size:20px;line-height:1.5;color:#eff5ed}
.daily-quote cite{display:block;font-style:normal;font-size:13px;line-height:1.5}
.daily-quote cite strong{display:block;font-size:14px;font-weight:500;margin:0 0 4px}
.daily-quote cite a{display:block;color:#b5c8bd;text-decoration:none;text-underline-offset:3px}
.daily-quote cite a:hover{text-decoration:underline}
@media(max-width:800px){.daily-quote{display:none}}

.word-irregular{display:inline-flex;vertical-align:middle;margin-left:.55rem;padding:.15rem .5rem;border:1px solid #dec9a4;border-radius:1rem;background:#fff4df;color:#795020;font-size:.875rem;font-weight:600;line-height:1.4}
.word-card[open]:has(.verb-reference){grid-column:1 / -1}
.verb-reference{margin:1.25rem 0 1.5rem;border-top:1px solid var(--line);padding-top:1rem}
.verb-reference h3{font-size:1.1rem;margin-bottom:.8rem}
.verb-reference-note{margin-bottom:1rem;color:#52665f;font-size:.875rem}
.verb-paradigms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.verb-paradigm{width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.5;text-align:left}
.verb-paradigm caption{text-align:left;color:var(--green);font-weight:700;font-size:1rem;padding-bottom:.6rem}
.verb-paradigm th,.verb-paradigm td{padding:.55rem .65rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}
.verb-paradigm thead th{background:var(--soft);font-weight:600}
.verb-paradigm tbody th{font-weight:400;color:#53685f;width:48%}
.verb-paradigm td{font-weight:600}
@media(max-width:650px){.verb-paradigms{grid-template-columns:1fr;gap:1.25rem}.verb-paradigm th,.verb-paradigm td{padding:.5rem}.word-irregular{margin-left:.35rem}}

.word-translations{margin:0 0 1rem;display:grid;gap:.8rem}
.word-translations>div{border-bottom:1px solid var(--line);padding-bottom:.7rem}
.word-translations>div:last-child{border-bottom:0;padding-bottom:0}
.word-translations dt{margin:0 0 .15rem;font-size:.75rem;font-weight:600;color:#627266;letter-spacing:.03em}
.word-translations dd{margin:0;font-size:1rem;line-height:1.6;overflow-wrap:anywhere}

.task-image[src*="a2-photo-"]{max-height:520px}
