:root{--ink:#073669;--muted:#5d6876;--navy:#073669;--blue:#073669;--sky:#f3efe7;--paper:#faf9f6;--white:#fff;--line:#e6e0d5;--gold:#e4572e;--accent:#e4572e;--sand:#b5a886;--action-ink:#171a1c;--green:#18705f;--rose:#b83b34;--shadow:0 18px 48px #07366912}
    *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:15px/1.55 system-ui,-apple-system,Segoe UI,Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:var(--blue)}
    .shell{max-width:1320px;margin:auto;padding:0 24px}.top{background:var(--navy);color:#fff;box-shadow:0 7px 26px #0d26361f}.top-inner{display:flex;align-items:center;gap:28px;min-height:74px}.brand{display:flex;align-items:center;gap:11px;white-space:nowrap;font-size:22px;font-weight:800;letter-spacing:-.04em}.mark{display:grid;place-items:center;width:35px;height:35px;background:var(--gold);border-radius:11px;color:var(--navy);font:800 22px Georgia,serif}.top small{color:#b8cee0;font-weight:400;letter-spacing:0;font-size:12px}.nav{display:flex;gap:4px;margin-left:auto;overflow:auto}.nav button{border:0;background:none;color:#c9d9e6;padding:12px 14px;border-radius:10px;white-space:nowrap}.nav button:hover,.nav button.active{background:#ffffff17;color:#fff}.hero{display:grid;grid-template-columns:1.5fr .8fr;gap:26px;align-items:stretch;padding:40px 0 26px}.eyebrow{text-transform:uppercase;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.15em}.hero h1{font-size:clamp(34px,4.2vw,60px);line-height:1.05;letter-spacing:-.055em;margin:10px 0 16px;max-width:780px}.hero p{max-width:770px;color:var(--muted);font-size:18px;margin:0}.hero-card{background:var(--navy);color:white;border-radius:22px;padding:24px;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero-card:after{content:"ą ć ę ł ń ó ś ź ż";position:absolute;right:-40px;bottom:-20px;line-height:1.1;width:220px;transform:rotate(-14deg);font:700 57px Georgia,serif;color:#ffffff12}.hero-card>*{position:relative;z-index:1}.hero-card strong{display:block;font-size:28px;letter-spacing:-.04em}.hero-card p{color:#c9d9e6;font-size:14px;margin:10px 0 15px}.pills{display:flex;gap:8px;flex-wrap:wrap}.pill{border:1px solid #ffffff42;padding:5px 9px;border-radius:99px;font-size:12px}.tabs{display:none}.tabs.active{display:block}.section{padding:16px 0 44px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:5px 0 18px}.section-head h2{margin:0;font-size:29px;letter-spacing:-.035em}.section-head p{margin:4px 0 0;color:var(--muted)}.grid{display:grid;gap:18px}.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}.card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 6px 25px #14314e08}.card h3{font-size:18px;letter-spacing:-.02em;margin:0 0 10px}.card p{margin:7px 0;color:var(--muted)}.num{display:inline-grid;place-items:center;width:34px;height:34px;background:var(--sky);border-radius:10px;color:var(--blue);font-weight:800;margin-bottom:14px}.big-num{font-size:35px;line-height:1;font-weight:800;letter-spacing:-.055em}.big-num small{font-size:14px;color:var(--muted);font-weight:500;letter-spacing:0}.mini-list{padding-left:19px;margin:10px 0;color:var(--muted)}.mini-list li{margin:5px 0}.callout{border-left:4px solid var(--gold);background:#fffaf0;border-radius:0 14px 14px 0;padding:15px 18px;color:#665735}.button{border:0;border-radius:11px;padding:11px 15px;background:var(--blue);color:white;font-weight:700}.button.secondary{background:var(--sky);color:var(--blue)}.button.ghost{background:white;color:var(--ink);border:1px solid var(--line)}.button:disabled{opacity:.5;cursor:not-allowed}.button-row{display:flex;gap:9px;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px}.field input,.field textarea,.field select{width:100%;border:1px solid #cad7e2;background:#fff;padding:10px 12px;border-radius:10px;outline:none;color:var(--ink)}.field textarea{min-height:110px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #245bd618}.tiny{font-size:12px;color:var(--muted)}.rule{border:0;border-top:1px solid var(--line);margin:18px 0}.plan-bars{display:grid;gap:9px;margin-top:17px}.bar-row{display:grid;grid-template-columns:135px 1fr 50px;gap:9px;align-items:center;font-size:13px}.bar{height:11px;border-radius:99px;background:#e8edf2;overflow:hidden}.bar i{display:block;height:100%;background:var(--blue);border-radius:99px}.bar-row:nth-child(2) .bar i{background:var(--green)}.bar-row:nth-child(3) .bar i{background:var(--gold)}.bar-row:nth-child(4) .bar i{background:var(--rose)}.bar-row:nth-child(5) .bar i{background:#7a63b4}.reader-layout{display:grid;grid-template-columns:minmax(0,1.5fr) 340px;gap:18px}.reader-paper{background:#fffcf7;border:1px solid #e7dfd2;border-radius:18px;padding:28px 34px;min-height:360px}.reader-paper h3{font:700 30px Georgia,serif;margin:0 0 16px;letter-spacing:-.025em}.reader-text{font:21px/1.9 Georgia,serif;white-space:pre-wrap}.token{font:inherit;border:0;background:none;padding:1px 0;color:inherit;border-radius:3px}.token:hover{background:#fff0aa}.token.saved{box-shadow:inset 0 -4px 0 #b9e7d9}.reader-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px 0}.reader-side{align-self:start;position:sticky;top:14px}.word-head{font:700 28px Georgia,serif}.word-translation{color:var(--blue);font-weight:700;font-size:17px;margin:8px 0}.quote{font:italic 16px/1.6 Georgia,serif;background:#f6f8fa;border-radius:10px;padding:12px;margin:13px 0;color:#435262}.status{display:inline-block;border-radius:99px;background:#e7f5f1;color:var(--green);font-size:12px;font-weight:700;padding:5px 9px}.status.warn{background:#fff0e0;color:#975a1d}.progress{height:10px;background:#e7edf3;border-radius:99px;overflow:hidden}.progress i{display:block;height:100%;background:var(--green)}.review-stage{text-align:center;padding:32px 20px;border:1px solid var(--line);border-radius:16px;background:#fbfcfe}.review-stage .prompt{font:700 42px Georgia,serif;margin:8px 0}.review-stage .context{font:italic 18px Georgia,serif;color:#617082}.review-answer{font-size:22px;font-weight:700;color:var(--blue);padding:18px}.score-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.score-grid button{padding:10px 6px;border:1px solid var(--line);background:white;border-radius:9px;color:var(--ink)}.score-grid button:hover{border-color:var(--blue)}.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.step{border-top:4px solid var(--blue);background:white;border-radius:0 0 15px 15px;padding:18px;border-left:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.step:nth-child(2){border-top-color:var(--green)}.step:nth-child(3){border-top-color:var(--gold)}.step:nth-child(4){border-top-color:#7a63b4}.step span{font-size:12px;font-weight:800;color:var(--blue);text-transform:uppercase;letter-spacing:.08em}.step h3{margin:8px 0;font-size:18px}.step p{font-size:13px;color:var(--muted)}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;min-width:680px;background:white}.table th,.table td{padding:11px 13px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}.table th{background:#eef3f7;color:#43586b;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.table tr:hover td{background:#fbfcfe}.tag{display:inline-block;background:#f1f5fb;border-radius:7px;color:#476077;padding:3px 7px;font-size:12px;white-space:nowrap}.arch-flow{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:14px 0 20px}.arch-flow>div{background:#eaf1fb;border:1px solid #cfdef0;border-radius:11px;padding:13px;text-align:center;font-size:13px;font-weight:700;position:relative}.arch-flow>div:not(:last-child):after{content:"→";position:absolute;right:-15px;top:50%;transform:translateY(-50%);font-size:22px;color:var(--blue);z-index:1}.check{list-style:none;padding:0;margin:8px 0}.check li{padding:8px 0 8px 28px;border-bottom:1px solid var(--line);position:relative}.check li:before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:800}.footer{border-top:1px solid var(--line);padding:25px 0 45px;color:var(--muted);font-size:13px}.hidden{display:none!important}.notice{padding:11px 13px;background:#eef5ff;border-radius:10px;color:#3d5a78;font-size:13px}.scenario{background:var(--navy);color:white;padding:20px;border-radius:15px}.scenario h3{margin:0 0 8px}.scenario p{color:#d6e5f0}.speaking-log{white-space:pre-wrap;min-height:85px;background:#f6f8fa;border-radius:10px;padding:12px;color:#475c6d}.linklike{border:0;background:none;color:var(--blue);text-decoration:underline;padding:0}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric{background:#f5f8fb;border-radius:12px;padding:14px}.metric b{display:block;font-size:22px}.metric small{color:var(--muted)}
    @media(max-width:900px){.hero,.reader-layout,.g3,.timeline{grid-template-columns:1fr}.g2{grid-template-columns:1fr}.reader-side{position:static}.top-inner{display:block;padding:12px 0}.nav{margin:10px 0 0}.nav button{padding:9px 11px}.hero{padding-top:24px}.arch-flow{grid-template-columns:1fr}.arch-flow>div:after{display:none}.reader-paper{padding:20px}.reader-text{font-size:19px}}@media(max-width:580px){.shell{padding:0 14px}.hero h1{font-size:38px}.card{padding:17px}.bar-row{grid-template-columns:110px 1fr 42px}.metric-row{grid-template-columns:1fr}}
    .reader-text.flow .token.saved{box-shadow:none}
    .reader-text.study .token.hintable{border-bottom:1px dotted #96abd0}
    .reader-text,.reader-text *{user-select:none!important;-webkit-user-select:none!important;-ms-user-select:none!important;-webkit-touch-callout:none}
    .reader-text::selection,.reader-text *::selection{background:transparent;color:inherit}
    .reader-text .token{cursor:pointer}
    .reader-text{white-space:normal;line-height:1.65}
    .reader-text .reader-paragraph{margin:0;padding:0;text-indent:1.6em}
    .reader-text .reader-book-heading{text-indent:0;text-align:center;margin:0 0 .7em}
    .reader-text.reader-lines .reader-paragraph{white-space:pre-line;text-indent:0;margin:0 0 .7em}
    .reader-text .token:hover{background:transparent;color:var(--blue);text-decoration:underline;text-decoration-color:#aabbd0;text-underline-offset:4px}
    .reader-text .token.app-range-token{background:linear-gradient(transparent 72%,#dfeaf7 72%);border-radius:2px}
    ::highlight(polskilab-range){background:#dfeaf7;color:#17283a;text-decoration:underline 2px #8ea8ca;text-underline-offset:4px}
    .alternatives{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 15px}
    .alternative{border:1px solid #c8d8e8;border-radius:9px;background:#f6f9fd;color:#24486a;padding:7px 9px;text-align:left;font-size:13px}
    .alternative:hover{border-color:var(--blue);background:#eaf2ff}
    .ipa{font:16px Georgia,serif;color:#506981;margin:4px 0 11px}
    .book-controls{display:grid;grid-template-columns:minmax(260px,1fr) 220px auto;gap:14px;align-items:end;margin:8px 0 13px}
    .book-upload{display:inline-flex;align-items:center;justify-content:center;min-height:43px;white-space:nowrap}
    .library-status{display:flex;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px;margin:0 0 12px}
    .book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
    .book-card{display:flex;flex-direction:column;min-height:215px;padding:18px;background:var(--white);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 25px #14314e08}
    .book-card-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:11px}
    .book-level,.book-audio-tag,.book-user-tag{display:inline-block;border-radius:99px;padding:4px 9px;font-size:11px;font-weight:750;background:var(--sky);color:var(--blue)}
    .book-audio-tag{background:#e7f5f1;color:var(--green)}
    .book-user-tag{background:#fff4df;color:#8d6318}
    .book-card-title{font:700 21px/1.2 Georgia,serif;letter-spacing:-.025em;margin:0 0 7px}
    .book-card-author,.book-card-genre,.book-card-details,.book-progress{font-size:13px;color:var(--muted);margin:2px 0}
    .book-card-genre{font-style:italic}
    .book-card-details{margin-top:7px}
    .book-progress{color:var(--green);font-weight:700}
    .book-card-actions{display:flex;align-items:center;gap:13px;margin-top:auto;padding-top:14px}
    .book-card-actions .button{padding:8px 13px}
    .book-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:2px 0 16px}
    .book-toolbar .button-row{justify-content:flex-end}
    .book-audio{display:block;width:min(100%,520px);margin:0 0 17px}
    .book-reader-meta{font-size:12px;color:var(--muted);margin-top:14px}
    @media(max-width:900px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-controls{grid-template-columns:minmax(220px,1fr) 200px auto}}
    @media(max-width:580px){.book-grid{grid-template-columns:1fr}.book-controls{grid-template-columns:1fr 1fr}.book-search{grid-column:1/-1}.book-upload{grid-column:1/-1}.library-status{display:grid}.book-toolbar{align-items:flex-start}.book-toolbar .button-row{gap:6px}.book-card{min-height:190px}}
    .next-lesson-card{display:flex;flex-direction:column;gap:10px;border-color:#cbdaf0;background:linear-gradient(145deg,#fff 65%,#f1f6ff)}
    .next-lesson-card h3{font-size:22px;margin:0}.next-lesson-card>p{margin:0;color:var(--muted)}
    .journey-progress-row{display:grid;grid-template-columns:auto minmax(90px,1fr);align-items:center;gap:12px;font-size:12px;color:var(--muted);font-weight:700;margin-top:3px}
    .journey-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:4px 0}
    .journey-steps>div{display:flex;align-items:center;gap:7px;background:#f5f8fc;border:1px solid var(--line);border-radius:10px;padding:9px 8px;font-size:12px;color:#445b70}
    .journey-steps b{display:grid;place-items:center;flex:0 0 23px;height:23px;border-radius:50%;background:var(--sky);color:var(--blue)}
    .journey-actions{margin-top:2px}.journey-actions .button:first-child{min-width:215px}
    .lesson-session{width:100%;max-width:none;margin:8px 0 30px}
    .lesson-session-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
    .lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:4px 0 16px}
    .lesson-heading h2{font-size:clamp(27px,3.5vw,39px);letter-spacing:-.045em;margin:5px 0}
    .lesson-heading p{color:var(--muted);margin:4px 0}.lesson-heading .status{white-space:nowrap}
    .lesson-progress-row{display:grid;grid-template-columns:125px minmax(120px,1fr);align-items:center;gap:14px;margin:10px 0 16px;color:var(--muted);font-size:13px;font-weight:700}
    .lesson-stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 16px}
    .lesson-step{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-size:12px}
    .lesson-step b{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#edf1f5;color:#637588}
    .lesson-step.active{border-color:#9bb8ec;background:#f4f8ff;color:var(--blue);font-weight:700}.lesson-step.active b,.lesson-step.done b{background:var(--blue);color:#fff}
    .lesson-step.done{background:#f2faf7;color:var(--green);border-color:#cbe5dc}.lesson-step.done b{background:var(--green)}
    .lesson-content{min-height:320px;padding:clamp(20px,4vw,34px)}
    .lesson-stage-label{display:flex;align-items:center;gap:10px;margin-bottom:17px}.lesson-stage-label .num{margin:0}
    .lesson-content h3{font-size:23px;margin:0 0 12px}.lesson-content>p{max-width:800px;color:#4e6377}
    .lesson-example{margin:20px 0 14px;padding:18px 20px;border:1px solid #dbe6f0;border-radius:14px;background:#f8fafc}
    .lesson-polish{font:700 24px/1.45 Georgia,serif;color:var(--navy);margin:6px 0}.lesson-example p{margin:4px 0}
    .lesson-note{margin:16px 0}.lesson-table-wrap{margin-top:17px}.grammar-table{min-width:450px}.grammar-table th,.grammar-table td{padding:8px 10px}
    .lesson-sound-guide{margin:18px 0;padding:18px 20px;border:1px solid #d7e3f0;border-radius:16px;background:linear-gradient(135deg,#f4f8ff,#fbfcff)}.lesson-sound-guide h4{margin:0 0 11px;color:var(--navy);font-size:16px}.lesson-sound-guide h4:not(:first-child){margin-top:16px}.sound-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px}.sound-pairs span{color:#40556b}.sound-pairs b{display:inline-block;min-width:45px;color:#2458d3;font-size:16px}.sound-numbers{margin:0;color:#40556b;line-height:1.8}
    .lesson-choices{display:grid;gap:9px;margin:20px 0 14px;max-width:760px}
    .lesson-choice{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;color:var(--ink);transition:border-color .15s,background .15s,transform .15s}
    .lesson-choice:hover{border-color:#9bb8ec;background:#f7faff;transform:translateY(-1px)}
    .choice-letter{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#eff3f8;color:#53677b;font-weight:800;font-size:12px}
    .lesson-choice.is-correct{border-color:#8ac5b3;background:#f0faf6}.lesson-choice.is-correct .choice-letter{background:var(--green);color:white}
    .lesson-choice.is-wrong{border-color:#e3a3a1;background:#fff5f4}.lesson-choice.is-wrong .choice-letter{background:var(--rose);color:white}
    .lesson-feedback{padding:12px 14px;border-radius:11px;background:#f3f6f9;color:#53677b;font-size:13px}.lesson-feedback.correct{background:#eaf7f2;color:#176b5d}.lesson-feedback.incorrect{background:#fff5ed;color:#86582f}
    .lesson-feedback .linklike{margin-left:4px;font-weight:700}.lesson-reading{padding:22px 24px;margin:16px 0 12px;border:1px solid #e7dfd2;border-radius:14px;background:#fffcf7;font:23px/1.8 Georgia,serif;color:#17283a}
    .reading-prompt{font-weight:700}.lesson-translation{margin-top:12px;padding:13px 15px;border-left:3px solid var(--blue);border-radius:0 10px 10px 0;background:#f0f5ff;color:#355474}
    .lesson-speech-actions{margin-top:12px}.lesson-model{padding:13px 15px;margin-top:12px;border-radius:10px;background:#f3f7fb;color:#31506b;line-height:1.7}
    .lesson-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}
    .lesson-complete{max-width:760px;margin:auto;padding:12px 0}.lesson-complete .num{background:#e7f5f1;color:var(--green)}
    .lesson-complete h3{font-size:29px;margin:9px 0}.lesson-complete p{max-width:710px}.lesson-complete .button-row{margin-top:20px}
    .lesson-open{padding:7px 10px;font-size:12px;white-space:nowrap}.lesson-table{min-width:900px}.lesson-table td:last-child{width:150px}.lesson-table .status{white-space:nowrap}
    @media(max-width:760px){.journey-steps,.lesson-stepper{grid-template-columns:repeat(2,1fr)}.lesson-heading{align-items:flex-start;flex-direction:column;gap:8px}.lesson-progress-row{grid-template-columns:100px 1fr}.lesson-step{min-height:44px}.lesson-controls{flex-wrap:wrap}.lesson-step-note{order:3;width:100%}}
    @media(max-width:520px){.journey-steps{grid-template-columns:repeat(2,1fr)}.journey-progress-row{grid-template-columns:1fr}.journey-actions .button{width:100%}.lesson-session-toolbar{align-items:flex-start;flex-direction:column}.lesson-step{align-items:flex-start}.lesson-reading{padding:17px;font-size:20px}.lesson-content h3{font-size:21px}.lesson-controls .button{padding:10px 12px}.sound-pairs{grid-template-columns:1fr}}
.gemini-settings{margin:20px 0;border-color:#d8e4f1;background:linear-gradient(135deg,#fff,#f8fbff)}.gemini-settings .section-head{margin-top:0}.key-save-action{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:7px}.key-save-action .tiny{margin:0;max-width:580px}.reader-controls{justify-content:flex-start}.reader-text{overflow-wrap:anywhere}.reader-paper{scroll-margin-top:16px}
.context-translation{margin:12px 0;padding:12px;background:#eef5ff;border:1px solid #d7e5fa;border-radius:11px}.context-translation>#contextTranslationText{margin:4px 0;font-weight:700}.context-translation .alternatives{margin-bottom:8px}
.reader-text .token:focus-visible{outline:2px solid #8ea8ca;outline-offset:3px;background:#edf4ff}
.learning-home{padding-top:22px;padding-bottom:48px}.learning-heading{margin:8px 0 22px}.learning-heading h1{font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-.05em;margin:8px 0}.learning-heading p{max-width:790px;color:var(--muted);font-size:16px;margin:0}.route-card{padding:20px 22px;margin-bottom:20px}.route-card .section-head{align-items:center;margin:0 0 12px}.route-card .section-head h2{font-size:23px}.route-count{white-space:nowrap;color:var(--blue);font-size:16px}.route-progress{grid-template-columns:minmax(170px,auto) minmax(140px,1fr);margin:10px 0 12px}.route-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#bdcce0 transparent;scrollbar-width:thin;padding:3px 2px 8px}.lesson-timeline{display:flex;align-items:center;width:max-content;min-width:100%;padding:3px 2px}.route-node{position:relative;isolation:isolate;display:grid;place-items:center;flex:1 0 43px;min-width:43px;height:44px;padding:0;border:0;background:transparent;color:#718297}.route-node::after{content:"";position:absolute;z-index:-1;left:50%;top:21px;width:100%;height:2px;background:#e1e7ed}.route-node:last-child::after{display:none}.route-node span{display:grid;place-items:center;width:31px;height:31px;border:1px solid #d8e1ea;border-radius:50%;background:#fff;font-size:12px;font-weight:800;transition:transform .15s,box-shadow .15s}.route-node:hover span{transform:scale(1.08);box-shadow:0 3px 10px #17314a20}.route-node.done{color:var(--green)}.route-node.done::after{background:#c5e4d9}.route-node.done span{border-color:#a9d5c8;background:#edf8f4;color:var(--green)}.route-node.in-progress:not(.selected) span{border-color:#e9c66f;background:#fff9e9;color:#986d12}.route-node.selected span{width:36px;height:36px;border:3px solid #dce8ff;background:var(--blue);color:#fff;box-shadow:0 0 0 2px var(--blue)}.route-node:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:8px}.route-hint{margin:1px 0 0}.learning-home #courseSession{margin-top:18px}
@media(max-width:650px){.learning-home{padding-top:16px}.learning-heading{margin-bottom:16px}.learning-heading p{font-size:15px}.route-card{padding:16px 14px}.route-card .section-head h2{font-size:20px}.route-progress{grid-template-columns:1fr;gap:7px}.route-node{flex:0 0 40px;min-width:40px}.route-node::after{top:21px}.route-hint{font-size:11px}}
@media(min-width:900px){.route-node{flex-basis:33px;min-width:33px}.route-node span{width:27px;height:27px}.route-node.selected span{width:32px;height:32px}}
.pronunciation-popover{position:fixed;z-index:1000;width:min(310px,calc(100vw - 24px));padding:17px 18px 15px;border:1px solid #d6e1ed;border-radius:16px;background:#fff;box-shadow:0 18px 50px #132c4540;color:var(--ink)}.pronunciation-close{position:absolute;top:8px;right:9px;width:30px;height:30px;border:0;border-radius:50%;background:#f2f5f8;color:#607286;font-size:21px;line-height:1}.pronunciation-close:hover{background:#e8eef5;color:var(--ink)}.pronunciation-popover .eyebrow{font-size:10px;padding-right:25px}.pronunciation-term{margin:4px 28px 0 0;font:700 28px/1.2 Georgia,serif;color:var(--navy);overflow-wrap:anywhere}.pronunciation-popover .ipa{min-height:22px;margin:5px 0 9px}.pronunciation-meaning{font-size:15px;font-weight:700;color:var(--blue);line-height:1.45}.pronunciation-example{margin-top:8px;padding:8px 10px;border-radius:9px;background:#f4f7fa;color:#52667a;font-size:12px}.pronunciation-letters{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:12px 0 0;padding-top:10px;border-top:1px solid #edf0f3}.pronunciation-letters-label{width:100%;font-size:10px;color:var(--muted);font-weight:700}.pronunciation-letter-chip{min-width:25px;height:28px;padding:2px 6px;border:1px solid #d8e2ec;border-radius:7px;background:#f7f9fc;color:var(--navy);font:700 15px Georgia,serif}.pronunciation-letter-chip:hover{border-color:#9bb8ec;background:#eef4ff}.pronunciation-play{margin-top:12px;padding:8px 12px;font-size:13px}.pronunciation-popover .book-audio{width:100%;height:32px;margin-top:9px}.pronunciation-status{min-height:15px;margin:7px 0 0}.pronunciation-popover .linklike{font-size:12px;margin-top:5px}.pronunciation-token{border-radius:3px;cursor:pointer;text-decoration:underline;text-decoration-color:#c7d6e7;text-decoration-thickness:1px;text-underline-offset:3px}.pronunciation-token:hover,.pronunciation-token:focus-visible{outline:none;background:#edf4ff;color:var(--blue);text-decoration-color:var(--blue)}.polish-alphabet{display:grid;grid-template-columns:repeat(8,minmax(32px,1fr));gap:6px;margin:10px 0}.polish-letter{min-height:36px;border:1px solid #d7e2ee;border-radius:9px;background:#fff;color:var(--navy);font:700 16px Georgia,serif}.polish-letter:hover,.polish-letter:focus-visible{border-color:#9bb8ec;background:#f1f6ff;color:var(--blue);outline:none}.lesson-sound-guide .pronunciation-token{text-decoration:none}.lesson-sound-guide .pronunciation-token:hover{text-decoration:underline}
@media(max-width:480px){.pronunciation-popover{padding:15px 14px 13px}.polish-alphabet{grid-template-columns:repeat(6,minmax(32px,1fr))}}
.pronunciation-token{appearance:none;-webkit-appearance:none;display:inline;border:0;padding:0;margin:0;background:transparent;color:inherit;font:inherit;line-height:inherit;vertical-align:baseline}

.typing-field{gap:6px}.typing-field-label{font-weight:700;font-size:13px}.typing-input-wrap{position:relative}.typing-input-wrap input,.typing-input-wrap textarea{padding-right:48px!important}.typing-keyboard-toggle{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:32px;height:32px;padding:6px;border:1px solid #d8e3ef;border-radius:8px;background:#fff;color:#62768a;opacity:.78;transition:background .15s,border-color .15s,color .15s,opacity .15s}.typing-keyboard-toggle svg{width:19px;height:19px}.typing-keyboard-toggle:hover,.keyboard-field-active .typing-keyboard-toggle,.typing-keyboard-toggle[aria-expanded="true"]{opacity:1;border-color:#a9c2ef;background:#eff5ff;color:var(--blue)}.typing-keyboard-toggle:focus-visible,.polish-key:focus-visible,.keyboard-close:focus-visible{outline:3px solid #245bd633;outline-offset:2px}.polish-keyboard-panel{position:fixed;z-index:1200;width:min(500px,calc(100vw - 24px));padding:13px;border:1px solid #d8e3ef;border-radius:15px;background:#fff;box-shadow:0 16px 45px #152e4940;color:var(--ink)}.polish-keyboard-heading{display:flex;align-items:center;justify-content:space-between;margin:0 1px 10px;color:#51667b;font-size:13px;font-weight:750}.polish-keyboard-heading span{display:flex;align-items:center;gap:8px}.polish-keyboard-heading svg{width:19px;height:19px;color:var(--blue)}.keyboard-close{width:28px;height:28px;border:0;border-radius:7px;background:#f2f5f8;color:#52667a;font-size:21px;line-height:1}.keyboard-close:hover{background:#e8eef5;color:var(--ink)}.polish-keyboard-rows{display:grid;gap:6px}.polish-key-row{display:flex;justify-content:center;gap:5px}.polish-key{flex:1;min-width:0;height:37px;padding:0 5px;border:1px solid #d7e2ee;border-radius:7px;background:#f7f9fc;color:#24384b;font-size:15px;font-weight:650;box-shadow:0 1px 0 #d9e1ea;touch-action:manipulation}.polish-key:hover,.polish-key:active{border-color:#a8c1ec;background:#edf4ff;color:var(--blue)}.polish-key.keyboard-wide{flex:1.45;background:#eaf1fb;color:#315a91}.polish-key.keyboard-space{flex:5;font-size:12px;color:#51667b}.polish-key.is-active{background:#dce9ff;border-color:#8eafea;color:var(--blue)}.keyboard-help{margin:9px 2px 0;color:#738498;font-size:11px;line-height:1.4}
@media(max-width:520px){.polish-keyboard-panel{padding:10px;border-radius:13px}.polish-key-row{gap:3px}.polish-key{height:34px;padding:0 2px;font-size:14px;border-radius:6px}.polish-key.keyboard-wide{flex:1.25}.polish-key.keyboard-space{flex:3.5;font-size:11px}}
.lesson-theory{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:18px 0 22px;min-width:0;max-width:100%}
.lesson-theory>section{min-width:0}
.lesson-theory .grammar-table{width:100%;min-width:520px}
.lesson-theory .grammar-table td{white-space:normal}
.theory-block{padding:17px 19px;border:1px solid #e2e9f0;border-left:4px solid #6d8fe2;border-radius:12px;background:linear-gradient(110deg,#f7faff,#fff)}
.lesson-content .theory-block h4{margin:0 0 8px;color:#1e3550;font-size:17px;line-height:1.35}
.lesson-content .theory-block p{max-width:880px;margin:0;color:#4e6378;font-size:15px;line-height:1.78}
.lesson-content .lesson-example{margin:22px 0 14px}
.lesson-table-wrap{max-width:100%;overflow-x:auto}
.grammar-table{width:max-content;max-width:100%;min-width:520px}
.grammar-table td{white-space:nowrap}
.lesson-unit-row th{padding:15px 12px 8px;background:#f0f5ff;color:#245bd6;text-align:left;font-size:14px;letter-spacing:.02em}
.course-roadmap .step{min-width:0}
.course-note{margin:18px 0}
.alphabet-heading{margin-top:18px!important}
@media(max-width:600px){.theory-block{padding:15px 14px}.lesson-content .theory-block p{font-size:14px;line-height:1.72}.grammar-table{min-width:460px}.lesson-unit-row th{font-size:13px}}

/* Reader controls, compact dictionary action, and preferences. */
.reader-controls .button-row{flex-wrap:wrap;justify-content:flex-end}
.word-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 5px}
.word-head{overflow-wrap:anywhere}
.dictionary-add{display:inline-grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid #cbdcf6;border-radius:50%;background:#edf4ff;color:var(--blue);font:600 27px/1 system-ui,sans-serif;transition:transform .15s,background .15s,border-color .15s}
.dictionary-add:hover:not(:disabled){transform:translateY(-1px);background:#dfeaff;border-color:#98b6eb}
.dictionary-add:focus-visible{outline:3px solid #245bd633;outline-offset:2px}
.dictionary-add.is-saved,.dictionary-add:disabled{background:#e7f5f1;border-color:#c1e3d8;color:#32806b;cursor:default;font-size:20px}
.reader-layout.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
.reader-layout.sidebar-collapsed .reader-side{display:none}
.pronunciation-popover{padding-top:52px}
.pronunciation-term-row{display:flex;align-items:center;gap:9px;margin:0 0 4px}
.pronunciation-popover .pronunciation-term{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.pronunciation-popover .pronunciation-term.letter-term{margin-right:28px}
.pronunciation-sound{display:inline-grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#f2f5f8;color:#607286;cursor:pointer;transition:background .15s,color .15s,transform .15s}
.pronunciation-sound:hover:not(:disabled){background:#e8eef5;color:var(--blue);transform:translateY(-1px)}
.pronunciation-sound:focus-visible{outline:3px solid #245bd633;outline-offset:2px}
.pronunciation-sound:disabled{opacity:.5;cursor:wait}
.pronunciation-sound svg{display:block;width:17px;height:17px;fill:currentColor}
.pronunciation-sound svg path:not(.speaker-body){fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.pronunciation-sound svg .speaker-body{fill:currentColor}
.word-lemma,.review-lemma{font-size:13px;line-height:1.4;color:var(--muted);margin:1px 0 7px}
.review-lemma{font-weight:600}
.pronunciation-popover .popover-add{position:absolute;top:8px;right:46px;flex:0 0 30px;width:30px;height:30px;font-size:21px}
.pronunciation-popover .popover-add.is-saved{background:rgba(190,55,69,.1);border-color:rgba(190,55,69,.25);color:rgba(176,49,63,.82);font-size:16px;cursor:pointer}
.pronunciation-popover .popover-add.is-saved:hover{background:rgba(190,55,69,.16);border-color:rgba(190,55,69,.4)}
.pronunciation-popover .popover-add svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reader-settings-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:0;border:1px solid #d6e1ed;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 20px 70px #132c4540}
.reader-settings-dialog::backdrop{background:#15283c66;backdrop-filter:blur(2px)}
.reader-settings-dialog form{display:grid;gap:15px;padding:24px}
.reader-settings-dialog .settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:2px}
.reader-settings-dialog .settings-heading h2{margin:0;font-size:23px;letter-spacing:-.03em}
.reader-settings-dialog .pronunciation-close{position:static;flex:0 0 34px;width:34px;height:34px;font-size:22px}
.reader-settings-dialog .button{justify-self:end;min-width:112px}
.reader-settings-dialog .settings-gemini{margin:3px 0 0;padding:18px;background:linear-gradient(135deg,#fff,#f8fbff)}
.reader-settings-dialog .settings-gemini .section-head{align-items:flex-start;margin:0 0 13px}
.reader-settings-dialog .settings-gemini .section-head h2{font-size:20px}
.reader-settings-dialog .settings-key-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr);gap:16px;align-items:end}
.reader-settings-dialog .key-save-action{gap:9px}
.reader-settings-dialog .key-save-action .button{justify-self:start}
@media(max-width:620px){.reader-settings-dialog form{padding:18px}.reader-settings-dialog .settings-key-grid{grid-template-columns:1fr}.reader-settings-dialog .settings-gemini{padding:15px}}
.top-inner{position:relative}
.top-settings{border:0;border-radius:10px;padding:10px 13px;background:#ffffff17;color:#fff;font-weight:700;white-space:nowrap}
.top-settings:hover{background:#ffffff27}
@media(max-width:900px){.top-settings{position:absolute;top:12px;right:0}}
@media(max-width:580px){.top-settings{padding:8px 10px;font-size:13px}}
@media(max-width:700px){.reader-controls{align-items:flex-start;flex-direction:column}.reader-controls .button-row{width:100%;justify-content:flex-start}.reader-controls .button{padding:9px 11px}.reader-layout.sidebar-collapsed{display:block}}

@media(max-width:700px){.reader-controls{position:sticky;top:0;z-index:820;padding:9px 0;background:#f7f5f0}.reader-layout:not(.sidebar-collapsed) .reader-side{position:fixed;z-index:830;left:14px;right:14px;top:190px;bottom:12px;max-height:none;overflow:auto;box-shadow:0 16px 46px #152e4940}.reader-side{scrollbar-width:thin}.reader-layout.sidebar-collapsed .reader-side{display:none}}

@media(max-width:700px){.reader-layout:not(.sidebar-collapsed) .reader-side:not(.has-selection){display:none}.reader-layout:not(.sidebar-collapsed) .reader-side.has-selection{z-index:830}}

.reader-side-collapse{display:none}
@media(max-width:700px){.reader-side-collapse{display:inline-flex;position:sticky;top:0;z-index:3;margin:-4px 0 12px}.reader-controls{z-index:840}}

@media(max-width:700px){#readerSide .reader-side-collapse{display:inline-flex;position:relative;top:auto;margin:0 0 12px;z-index:auto}}

@media(max-width:700px){#readerSide.has-selection .word-heading-row{position:sticky;top:0;z-index:4;background:#fff;padding:7px 0 9px;margin-top:-7px}}

.book-toolbar{align-items:flex-start;flex-wrap:wrap}
.book-toolbar .reader-toolbar-audio{width:min(740px,calc(100% - 180px));max-width:100%;margin:0 0 0 auto;flex:0 1 740px}
@media(max-width:700px){.book-toolbar .reader-toolbar-audio{width:min(520px,calc(100% - 145px));flex-basis:520px}}

.reader-panel-toggle-rail{position:sticky;top:12px;z-index:840;height:42px;margin-bottom:-42px;display:flex;justify-content:flex-end;pointer-events:none}
.reader-panel-toggle{width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);box-shadow:0 5px 18px #152e4924;cursor:pointer;pointer-events:auto;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.reader-panel-toggle:hover{background:var(--sky);border-color:#c5d7fa;color:var(--blue);transform:translateY(-1px)}
.reader-panel-toggle:focus-visible{outline:3px solid #245bd633;outline-offset:3px}
.reader-panel-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Keep settings in a dedicated far-right slot in the application header. */
.top-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px}
.nav{grid-column:2;grid-row:1;min-width:0;margin-left:0;justify-content:flex-end}
.top-settings{grid-column:3;grid-row:1;justify-self:end;position:static}
@media(max-width:900px){.top-inner{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 12px;padding:12px 0}.brand{grid-column:1;grid-row:1}.nav{grid-column:1/-1;grid-row:2;margin:0;justify-content:flex-start}.top-settings{grid-column:2;grid-row:1;align-self:center;position:static}}

/* Keep pronunciation examples and their playback control in one compact panel. */
.pronunciation-example{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px}
.pronunciation-example-text{flex:1;min-width:0;overflow-wrap:anywhere}
.pronunciation-example-play{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:5px 8px;border:1px solid #dbe5ef;border-radius:8px;background:#fff;color:var(--blue);font:inherit;font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer}
.pronunciation-example-play svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pronunciation-example-play svg path:first-child{fill:currentColor;stroke:none}
.pronunciation-example-play:hover:not(:disabled){border-color:#b8ccef;background:#f8faff}
.pronunciation-example-play:focus-visible{outline:2px solid #245bd633;outline-offset:2px}
.pronunciation-sound.is-loading{cursor:wait;opacity:1}
.pronunciation-sound.is-loading svg{display:none}
.pronunciation-sound.is-loading::after{content:"";width:15px;height:15px;border:2px solid #c8d5e4;border-top-color:var(--blue);border-radius:50%;animation:pronunciation-spin .7s linear infinite}
@keyframes pronunciation-spin{to{transform:rotate(360deg)}}
.pronunciation-status:empty{display:none}
.pronunciation-popover .pronunciation-term.letter-term{margin-right:0}
@media(max-width:370px){.pronunciation-example{align-items:flex-start;flex-wrap:wrap}.pronunciation-example-play{margin-left:auto}}

/* Word card: close control first, then surface form and its lemma. */
.pronunciation-popover{padding:24px 15px 14px 30px}
.pronunciation-term-row{display:flex;align-items:center;gap:7px;min-height:34px;margin:0}
.pronunciation-popover .pronunciation-term{flex:1;min-width:0;margin:0;padding:0;font-size:27px;line-height:1.12;overflow-wrap:anywhere}
.pronunciation-popover .popover-add{position:static;flex:0 0 30px;width:30px;height:30px;margin:0;font-size:20px}
.pronunciation-popover .ipa{min-height:0;margin:3px 0 7px}
.pronunciation-meaning{margin:0;line-height:1.4}
.pronunciation-translations{margin:6px 0 0;padding-left:21px;color:#405469;font-size:14px;line-height:1.45}
.pronunciation-translations li+li{margin-top:2px}
#pronunciationAlternatives .pronunciation-translation-primary,.pronunciation-lemma-block .pronunciation-translation-primary{color:var(--blue);font-weight:700}
.pronunciation-lemma-block{margin-top:11px;padding-top:0;border-top:0}
.pronunciation-lemma-heading{display:flex;align-items:center;gap:3px;margin:0 0 4px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.35;text-align:center;white-space:nowrap}
.pronunciation-lemma-heading::before,.pronunciation-lemma-heading::after{content:"";height:1px;flex:1;background:#e4eaf0}
.pronunciation-lemma-block .pronunciation-term{font-size:24px}
.pronunciation-lemma-block .ipa{margin:3px 0 5px}
.pronunciation-popover .pronunciation-sound{flex-basis:30px;width:30px;height:30px}
.pronunciation-popover .pronunciation-sound svg{width:16px;height:16px}
.local-speech-value{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f5f8fb;color:var(--ink);font-weight:650}

/* Exercise library and one-question practice flow. */
.exercise-area{min-height:72vh;padding-top:30px}
.exercise-area>.section-head{align-items:flex-start;margin-bottom:24px}
.exercise-area>.section-head h1{margin:4px 0 5px;font-size:clamp(32px,4vw,46px);letter-spacing:-.05em}
.exercise-area>.section-head p{max-width:740px;font-size:16px}
.exercise-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:980px}
.exercise-category-grid>.exercise-category:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}
.exercise-category{display:flex;flex-direction:column;align-items:flex-start;min-height:210px;width:100%;text-align:left;color:var(--ink);cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
.exercise-category:hover{transform:translateY(-2px);border-color:#b9ccee;box-shadow:0 14px 30px #14314e12}
.exercise-category .num{margin:0 0 15px}
.exercise-category h2{margin:0;font-size:22px;letter-spacing:-.035em}
.exercise-category p{max-width:420px;margin:8px 0 18px;color:var(--muted);font-weight:400}
.exercise-card-arrow{margin-top:auto;color:var(--blue);font-weight:750}
.exercise-subhead{display:flex;align-items:flex-start;gap:17px;margin:4px 0 22px}
.exercise-subhead>div{flex:1;min-width:0}
.exercise-subhead h2{margin:2px 0;font-size:30px;letter-spacing:-.04em}
.exercise-subhead p{margin:4px 0;color:var(--muted)}
.grammar-block-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1020px}
.grammar-block-card{display:flex;flex-direction:column;min-height:154px;padding:19px 21px}
.grammar-block-card h3{margin:0;font-size:19px}
.grammar-block-card p{margin:7px 0 13px;color:var(--muted)}
.grammar-block-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;color:var(--muted);font-size:12px}
.grammar-block-meta b{color:var(--blue)}
.grammar-block-card .button{align-self:flex-start;margin-top:13px}
.exercise-session-card{max-width:920px;margin:0 auto;padding:clamp(20px,4vw,38px)}
.exercise-progress-row{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px;color:var(--muted);font-size:13px;font-weight:700}
.exercise-question{margin-top:25px}
.exercise-question h3{font-size:22px;line-height:1.35;margin:0 0 16px}
.exercise-cloze-sentence{margin:0 0 22px;padding:19px 21px;border-radius:14px;background:#f5f8fb;color:#263c50;font:italic clamp(19px,2.5vw,25px)/1.6 Georgia,serif}
.exercise-cloze-sentence strong{color:var(--blue);font-style:normal;letter-spacing:.04em}
.exercise-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.exercise-choice{display:flex;align-items:center;gap:11px;min-height:54px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);text-align:left;font-size:16px;font-weight:650}
.exercise-choice:hover:not(:disabled){border-color:#a7bee6;background:#f8faff}
.exercise-choice:disabled{cursor:default}
.exercise-choice.is-correct{border-color:#a7d4c7;background:#edf8f4;color:#176e5d}
.exercise-choice.is-wrong{border-color:#e6bcbc;background:#fff4f3;color:#9d4644}
.exercise-choice-index{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#eef3f8;color:#607286;font-size:12px;font-weight:800}
.exercise-feedback{margin-top:18px;padding:15px 17px;border-radius:12px;line-height:1.5}
.exercise-feedback.correct{background:#edf8f4;border:1px solid #cce7dd;color:#176e5d}
.exercise-feedback.incorrect{background:#fff4f3;border:1px solid #f0d2d0;color:#85413f}
.exercise-feedback p{margin:5px 0 0}
.exercise-source{margin-top:14px;color:var(--muted);font-size:12px}
.exercise-session-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}
.exercise-result{text-align:center;padding:24px 0 10px}
.exercise-result .num{margin-bottom:15px}
.exercise-result h3{font-size:28px}
.exercise-result p{color:var(--muted)}
.word-learning-layout{max-width:860px;margin:0 auto}
.word-learning-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.word-learning-card{max-width:860px;margin:0 auto;padding:clamp(22px,4vw,38px)}
.word-learning-directions,.word-learning-modes{display:inline-flex;max-width:100%;gap:4px;padding:4px;border:1px solid #e3eaf2;border-radius:15px;background:#f4f7fa}
.word-learning-directions,.word-learning-modes{margin:0}
.word-learning-modes{display:flex;width:max-content;flex-wrap:nowrap}
.word-learning-direction,.word-learning-mode{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 14px;border:1px solid transparent;border-radius:11px;background:transparent;color:#64778c;font-family:inherit;font-size:14px;font-weight:650;line-height:1.2;cursor:pointer;transition:background .16s,color .16s,box-shadow .16s,border-color .16s}
.word-learning-direction:hover,.word-learning-mode:hover{color:var(--ink);background:#ffffffa8}
.word-learning-direction.is-active,.word-learning-mode.is-active{border-color:#e7edf5;background:#fff;color:var(--blue);box-shadow:0 2px 7px #1b38530d}
.word-learning-direction span{color:#91a0b0}
.word-learning-mode span{color:#8291a2;font-size:12px;font-weight:500}
.word-learning-mode.is-active span{color:#6d86b5}
.word-learning-intro{padding:20px 0 8px}
.word-learning-intro h3{font-size:26px;margin-bottom:10px}
.word-learning-intro p{max-width:640px;line-height:1.55}
.word-learning-word{font:700 clamp(43px,7vw,72px)/1.12 Georgia,serif;color:var(--navy);margin:20px 0 13px;overflow-wrap:anywhere}
.word-learning-source{color:var(--muted);font-size:14px;margin:0 0 25px}
.word-learning-form{display:flex;gap:10px;align-items:stretch}
.word-learning-form input{flex:1;min-width:0;padding:13px 16px;border:1px solid #d8e2ee;border-radius:13px;background:#fff;color:var(--ink);font:inherit;font-size:18px;transition:border-color .16s,box-shadow .16s}
.word-learning-form input:focus{outline:0;border-color:#9ab6ef;box-shadow:0 0 0 4px #dbe7ff80}
.word-learning-primary,.word-learning-secondary{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 18px;border:1px solid transparent;border-radius:13px;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;transition:transform .16s,box-shadow .16s,background .16s}
.word-learning-primary{background:var(--blue);color:#fff;box-shadow:0 3px 8px #2456c522}
.word-learning-primary:hover{background:#1f50c2;box-shadow:0 5px 12px #2456c52c;transform:translateY(-1px)}
.word-learning-secondary{border-color:#e0e7ef;background:#fff;color:#4f647b}
.word-learning-secondary:hover{border-color:#cbd7e6;background:#f9fbfd}
.word-learning-primary:focus-visible,.word-learning-secondary:focus-visible,.word-learning-direction:focus-visible,.word-learning-mode:focus-visible{outline:3px solid #c8d9ff;outline-offset:2px}
.word-learning-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}
.word-learning-choice-text{font-weight:650}
@media(max-width:640px){.exercise-category-grid>.exercise-category:last-child:nth-child(odd){width:100%}.word-learning-form{flex-direction:column}.word-learning-form .word-learning-primary{width:100%}.word-learning-controls{align-items:stretch;gap:8px}.word-learning-directions,.word-learning-modes{width:100%}.word-learning-direction,.word-learning-mode{flex:1;padding:9px 8px}.word-learning-card{padding:20px 16px}}
.exercise-dictionary-search{max-width:500px;margin:0 0 18px}
.exercise-dictionary-list{display:grid;gap:11px;max-width:980px}
.exercise-dictionary-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:center;padding:16px 18px}
.exercise-dictionary-word{font:700 25px/1.2 Georgia,serif;color:var(--ink)}
.exercise-dictionary-meaning{margin-top:4px;color:var(--blue);font-weight:650}
.exercise-dictionary-context{grid-column:1/-1;color:var(--muted);font:italic 14px/1.5 Georgia,serif}
.exercise-dictionary-actions{display:flex;gap:7px}
.exercise-dictionary-card{display:block;padding:24px 28px}
.exercise-dictionary-main{max-width:100%}
.exercise-dictionary-card .pronunciation-term-row{display:flex;align-items:center;gap:8px;min-height:36px;margin:0}
.exercise-dictionary-card .pronunciation-term{flex:1;min-width:0;margin:0;padding:0;color:var(--navy);font:700 clamp(25px,3vw,34px)/1.12 Georgia,serif;overflow-wrap:anywhere}
.exercise-dictionary-card .pronunciation-sound{flex:0 0 34px;width:34px;height:34px}
.exercise-dictionary-card .dictionary-add.popover-add{position:static;flex:0 0 34px;width:34px;height:34px;margin:0;font-size:22px}
.exercise-dictionary-card .dictionary-add.popover-add.is-saved{background:rgba(190,55,69,.1);border-color:rgba(190,55,69,.25);color:rgba(176,49,63,.82);font-size:16px;cursor:pointer}
.exercise-dictionary-card .dictionary-add.popover-add.is-saved:hover{background:rgba(190,55,69,.16);border-color:rgba(190,55,69,.4)}
.exercise-dictionary-card .dictionary-add.popover-add svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.exercise-dictionary-card .ipa{min-height:0;margin:4px 0 7px}
.exercise-dictionary-card .exercise-dictionary-ipa-empty{color:var(--muted);font-style:italic}
.exercise-dictionary-card .pronunciation-meaning{font-size:18px}
.exercise-dictionary-card .pronunciation-translations{margin:6px 0 0;padding-left:21px;color:#405469;font-size:16px;line-height:1.5}
.exercise-dictionary-card .pronunciation-translations li+li{margin-top:2px}
.exercise-dictionary-card .pronunciation-translation-primary{color:var(--blue);font-weight:700}
.exercise-dictionary-card .pronunciation-lemma-block{margin-top:14px;padding:0;border:0}
.exercise-dictionary-card .pronunciation-lemma-heading{display:flex;align-items:center;gap:4px;margin:0 0 5px;color:var(--muted);font-size:14px;font-weight:400;line-height:1.35;text-align:center;white-space:nowrap}
.exercise-dictionary-card .pronunciation-lemma-heading::before,.exercise-dictionary-card .pronunciation-lemma-heading::after{content:"";height:1px;flex:1;background:#e4eaf0}
.exercise-dictionary-card .pronunciation-lemma-block .pronunciation-term{font-size:29px}
.exercise-dictionary-card .pronunciation-lemma-block .ipa{margin:4px 0 6px}
.exercise-dictionary-card .exercise-dictionary-context{margin:16px 0 0;padding:12px 15px;background:#f5f7f9;border-radius:12px;color:#4c5d70;font:italic 16px/1.5 Georgia,serif}
.exercise-dictionary-book{margin-top:8px}
.exercise-dictionary-status:empty{display:none}
.exercise-dictionary-status{margin:7px 0 0;font-size:12px}
.exercise-dictionary-no-translation{margin-top:6px;color:var(--muted);font-size:14px}
.exercise-back-row{margin:0 0 15px}
.settings-architecture{margin:20px 0;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#f9fbfd}
.settings-architecture summary{padding:13px 0;color:var(--ink);font-weight:750;cursor:pointer}
.settings-architecture-content{padding:0 0 15px}
.settings-architecture-content h3{margin:12px 0 6px}
.journey-list{padding-left:23px;color:var(--muted)}
.journey-list li{padding:3px 0}
@media(max-width:650px){.exercise-area{padding-top:20px}.exercise-category-grid,.grammar-block-grid,.exercise-choices{grid-template-columns:1fr}.exercise-category{min-height:175px}.exercise-subhead{flex-wrap:wrap;gap:11px}.exercise-subhead>div{flex-basis:calc(100% - 20px);order:2}.exercise-subhead>button{order:1}.exercise-subhead>button:last-child:not(:first-child){margin-left:auto}.exercise-session-card{padding:18px}.exercise-session-actions{align-items:stretch;flex-direction:column-reverse}.exercise-session-actions>.button{width:100%}.exercise-dictionary-item{grid-template-columns:1fr}.exercise-dictionary-actions{grid-row:2}.exercise-dictionary-context{grid-column:1}.exercise-dictionary-card{padding:18px 16px}.exercise-dictionary-card .pronunciation-term{font-size:26px}.exercise-dictionary-card .pronunciation-lemma-block .pronunciation-term{font-size:23px}}

/* Reader toolbar buttons now live in reserved layout space; the panel control stays inside the sticky card. */
.book-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap;margin-bottom:10px}
.book-toolbar .reader-toolbar-audio{width:min(740px,calc(100% - 54px));flex-basis:740px}
.reader-panel-toggle-rail{position:sticky;top:12px;z-index:24;height:0;margin:0;display:flex;align-items:center;justify-content:flex-end;pointer-events:none}
#readerWorkspace.reader-panel-collapsed .reader-panel-toggle-rail{height:42px;margin:0 0 12px}
.reader-back-button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);box-shadow:0 5px 18px #152e4912;cursor:pointer;pointer-events:auto;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.reader-back-button:hover{background:var(--sky);border-color:#c5d7fa;color:var(--blue);transform:translateY(-1px)}
.reader-back-button:focus-visible{outline:3px solid #245bd633;outline-offset:3px}
.reader-back-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.reader-side{box-sizing:border-box;padding:24px 16px 20px 30px;top:66px}
.reader-side-toggle-row{position:sticky;top:0;z-index:5;display:flex;justify-content:flex-end;min-height:42px;margin:0 0 6px;background:#fff}
.reader-side-toggle-row .reader-panel-toggle{position:relative;top:auto;right:auto;flex:0 0 36px;width:36px;height:36px;box-shadow:none}
.reader-side .pronunciation-term-row{display:flex;align-items:center;gap:7px;min-height:34px;margin:0}
.reader-side .pronunciation-term{flex:1;min-width:0;margin:0;padding:0;font:700 27px/1.12 Georgia,serif;color:var(--navy);overflow-wrap:anywhere}
.reader-side .pronunciation-lemma-block .pronunciation-term{font-size:24px}
.reader-side .pronunciation-sound{flex:0 0 30px;width:30px;height:30px}
.reader-side .pronunciation-sound svg{width:16px;height:16px}
.reader-side .dictionary-add.popover-add{position:static;flex:0 0 30px;width:30px;height:30px;margin:0;font-size:20px}
.reader-side .dictionary-add.popover-add.is-saved{background:rgba(190,55,69,.1);border-color:rgba(190,55,69,.25);color:rgba(176,49,63,.82);font-size:16px;cursor:pointer}
.reader-side .dictionary-add.popover-add.is-saved:hover{background:rgba(190,55,69,.16);border-color:rgba(190,55,69,.4)}
.reader-side .dictionary-add.popover-add svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reader-side .ipa{min-height:0;margin:3px 0 7px}
.reader-side .pronunciation-meaning{margin:0;line-height:1.4}
.reader-side .pronunciation-lemma-block{margin-top:11px;padding-top:0;border-top:0}
.reader-side .pronunciation-lemma-heading{display:flex;align-items:center;gap:3px;margin:0 0 4px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.35;text-align:center;white-space:nowrap}
.reader-side .pronunciation-lemma-heading::before,.reader-side .pronunciation-lemma-heading::after{content:"";height:1px;flex:1;background:#e4eaf0}
.reader-side .pronunciation-lemma-block .ipa{margin:3px 0 5px}
.reader-side .pronunciation-translations{margin:6px 0 0;padding-left:21px;color:#405469;font-size:14px;line-height:1.45}
.reader-side .pronunciation-translations li+li{margin-top:2px}
.reader-card-context{margin-top:14px;padding-top:10px;border-top:1px solid #e4eaf0}
.reader-card-context .quote{margin:0 0 12px}
.reader-side .pronunciation-status{min-height:15px;margin:7px 0 0}
.reader-side .book-audio{width:100%;height:32px;margin-top:9px}
@media(max-width:700px){.reader-panel-toggle-rail{top:8px}.reader-side{padding:18px 15px 18px 22px}.reader-side-toggle-row{top:0}.book-toolbar .reader-toolbar-audio{width:min(520px,calc(100% - 54px));flex-basis:520px}}

/* Keep reader controls in the outer gutters, clear of the book and translation card. */
.reader-layout{margin-inline:54px}
@media(max-width:900px){.reader-layout{margin-inline:50px}}
@media(max-width:580px){.reader-layout{margin-inline:48px}}

/* Connected theory, balanced grammar practice, and speech recording. */
.theory-area{padding-top:34px;min-height:70vh}
.theory-heading h1{font-size:clamp(32px,4vw,46px);letter-spacing:-.05em}
.theory-controls{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;margin:20px 0}
.theory-layout{display:grid;grid-template-columns:minmax(260px,.37fr) minmax(0,.63fr);align-items:start;gap:18px}
.theory-chapter-list{position:sticky;top:14px;max-height:calc(100vh - 30px);overflow:auto;padding:15px}
.theory-list-top{display:flex;justify-content:space-between;gap:8px;padding:2px 3px 10px;color:var(--muted);font-size:13px}
.theory-unit{border-top:1px solid #e8edf2}
.theory-unit summary{display:flex;justify-content:space-between;gap:8px;padding:11px 3px;color:var(--ink);font-size:13px;font-weight:750;cursor:pointer;list-style-position:inside}
.theory-unit summary small{color:var(--muted);font-weight:600}
.theory-unit-items{display:grid;gap:3px;padding:0 0 8px 9px}
.theory-chapter{display:flex;align-items:flex-start;gap:8px;width:100%;padding:8px 9px;border:0;border-radius:9px;background:transparent;color:var(--ink);text-align:left;line-height:1.35;cursor:pointer}
.theory-chapter:hover{background:#f4f7fb}
.theory-chapter.active{background:#edf3ff;color:#245bd6}
.theory-level{flex:0 0 26px;color:var(--muted);font-size:10px;font-weight:800}
.theory-chapter.active .theory-level{color:#245bd6}
.theory-article{min-width:0;padding:clamp(20px,4vw,38px)}
.theory-article-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.theory-article-top>div{min-width:0}
.theory-article h2{margin:5px 0 9px;font-size:clamp(27px,3.4vw,40px);line-height:1.14;letter-spacing:-.045em}
.theory-source{color:var(--muted);font-size:12px}
.theory-purpose,.theory-section,.theory-example,.theory-warning,.theory-task{margin:20px 0 0;padding:17px 18px;border-radius:13px;background:#f6f8fa}
.theory-purpose{background:#eff5ff}
.theory-prerequisites{margin:16px 0 0;padding:14px 16px;border:1px solid #e3eaf2;border-radius:12px;background:#fbfcfd}
.theory-prerequisites h3{margin:0 0 6px;font-size:14px;color:var(--muted)}
.theory-prerequisites p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.theory-prerequisite-links{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:4px}
.theory-prerequisite-links .linklike{padding:0;text-align:left}
.theory-warning{background:#fff8e9}
.theory-section h3,.theory-purpose h3,.theory-example h3,.theory-warning h3,.theory-task h3{margin:0 0 7px;font-size:17px}
.theory-section p,.theory-purpose p,.theory-example p,.theory-warning p,.theory-task p{margin:0;line-height:1.7;color:#435970}
.theory-example .polish-example{margin:3px 0;color:var(--navy);font:italic 22px/1.5 Georgia,serif}
.theory-table{margin-top:18px}
.theory-article-actions{display:grid;gap:14px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}
.theory-adjacent{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.theory-adjacent .linklike{text-align:left}
.theory-coverage{margin-top:25px;padding-top:18px;border-top:1px solid var(--line)}
.theory-coverage h3{margin:0 0 12px}
.coverage-chips{display:flex;flex-wrap:wrap;gap:7px}
.coverage-chip{padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px}
.coverage-chip.covered{border-color:#cbe7df;background:#eff9f6;color:#177b68}
.learning-route-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;max-width:980px;margin:0 0 20px;padding:22px 25px;text-align:left;color:var(--ink);font:inherit;background:linear-gradient(120deg,#f2f6ff,#fff 75%);cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.learning-route-entry:hover{border-color:#b8cbed;box-shadow:0 10px 28px #14314e12;transform:translateY(-1px)}
.learning-route-entry:focus-visible{outline:3px solid #245bd633;outline-offset:3px}
.learning-route-entry-copy{display:grid;gap:5px}
.learning-route-entry-title{font-size:24px;font-weight:800;letter-spacing:-.03em}
.learning-route-entry-description{max-width:680px;color:var(--muted);font-size:14px}
.learning-route-entry-action{display:flex;align-items:center;gap:8px;flex:none;color:var(--blue);font-weight:750}
@media(max-width:600px){.learning-route-entry{align-items:flex-start;flex-direction:column;gap:13px;padding:18px}.learning-route-entry-title{font-size:21px}}
.random-practice-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.random-practice-availability{margin:8px 0 0;max-width:72ch}
.random-practice-controls .field{width:190px;margin:0}
.random-practice-controls .random-all-topics{display:flex;align-items:center;gap:8px;width:auto;min-height:44px}
.random-practice-controls .random-all-topics input{width:16px;height:16px;margin:0}
.random-resume{margin-top:15px;color:var(--muted)}
.random-resume .button{margin-left:9px}
.exercise-gap{display:inline-block;width:5.5em;height:.95em;vertical-align:baseline;border-bottom:2px solid #49627b55;margin:0 .12em}
.exercise-question-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.exercise-theory-link{padding:0;text-align:left}
.exercise-answer-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;max-width:760px;margin:0 0 12px}
.exercise-answer-form .field{margin:0}
.exercise-answer-form .button{min-height:46px}
.pronunciation-practice-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}
.pronunciation-practice-card,.pronunciation-practice-settings{padding:22px}
.pronunciation-level-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.pronunciation-target-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pronunciation-target-row h3{margin:4px 0;font:700 clamp(28px,4vw,42px)/1.18 Georgia,serif;color:var(--navy);overflow-wrap:anywhere}
.pronunciation-task>p{line-height:1.6}
.pronunciation-translation{color:var(--blue);font-weight:700}
.pronunciation-recorder{margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}
.pronunciation-recorder .button-row{display:flex;flex-wrap:wrap;gap:9px}
.pronunciation-recorder .book-audio{display:block;width:100%;margin-top:12px}
.pronunciation-quality,.pronunciation-result{margin-top:14px;padding:13px 15px;border-radius:11px;background:#f4f7fa;color:var(--muted);line-height:1.5}
.pronunciation-result h3{margin:0 0 9px;color:var(--ink)}
.pronunciation-result ul{margin:8px 0;padding-left:21px}
.pronunciation-score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.pronunciation-score-grid>div{display:grid;gap:3px;padding:11px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.pronunciation-score-grid b{font-size:16px;color:var(--blue)}
.pronunciation-score-grid span{font-size:11px;color:var(--muted)}
.pronunciation-consent{display:flex;align-items:flex-start;gap:9px;margin:14px 0;padding:12px;border:1px solid #d9e4f2;border-radius:11px;background:#f8fbff;line-height:1.45}
.pronunciation-consent input{flex:0 0 16px;width:16px;height:16px;margin:2px 0 0}
.pronunciation-practice-settings .linklike{display:inline-block;margin:12px 0}
#azureSpeechSettings .settings-key-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#azureSpeechSettings .key-save-action{grid-column:1/-1}
.storage-settings{margin:4px 0 18px;padding:18px 20px;background:#fbfcfe}
.course-audio-settings{margin:4px 0 18px;padding:18px 20px;background:#fbfcfe}
.course-audio-settings h2{margin:0 0 8px;font-size:20px}
.course-audio-settings p{margin:0 0 14px}
.course-audio-settings progress{display:block;width:100%;height:8px;margin-top:14px;accent-color:#2457dc}
.course-audio-settings progress[hidden]{display:none}
.course-audio-settings #courseAudioStatus{margin:12px 0 0;overflow-wrap:anywhere}
.storage-settings h2{margin:0 0 5px}
.storage-size-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.storage-size-grid>div{display:grid;gap:4px;min-height:64px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}
.storage-size-grid strong{font-size:17px;color:var(--ink);overflow-wrap:anywhere}
.storage-size-grid span{font-size:12px;line-height:1.4;color:var(--muted)}
.storage-quota{margin:13px 0}
.storage-quota .section-head{margin:0 0 8px;font-size:13px}
.storage-quota .progress{height:10px;overflow:hidden;border-radius:999px;background:#e8edf3}
.storage-quota .progress i{display:block;height:100%;border-radius:inherit;background:#18816f;transition:width .2s}
.storage-quota .progress i.quota-near-limit{background:#c77a14}
.storage-backup-actions{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0 8px}
.boot-status{position:fixed;z-index:1000;inset:auto 18px 18px;max-width:700px;margin:auto;padding:13px 17px;border:1px solid #d5e1ef;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 8px 28px #1b2d3d24}
.boot-status.boot-error{border-color:#e2a0a0;background:#fff8f7;color:#8e2929}
@media(max-width:850px){.theory-layout{grid-template-columns:minmax(220px,.4fr) minmax(0,.6fr)}.pronunciation-practice-layout{grid-template-columns:1fr}.pronunciation-practice-settings{order:-1}}
@media(max-width:650px){.theory-controls{grid-template-columns:1fr}.theory-layout{grid-template-columns:1fr}.theory-chapter-list{position:static;max-height:38vh}.theory-article-top{flex-wrap:wrap}.theory-article-top>.button{margin-left:auto}.random-practice-controls{align-items:stretch;flex-direction:column}.random-practice-controls .field{width:100%}.exercise-answer-form{grid-template-columns:1fr}.exercise-question-toolbar{align-items:flex-start;flex-direction:column}.pronunciation-score-grid{grid-template-columns:1fr}.storage-size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.storage-settings,.course-audio-settings{padding:14px}}

/* Editorial course: worked explanations, progress gates, and coverage map. */
.lesson-worked-examples,.lesson-common-errors,.lesson-summary,.theory-worked-examples,.theory-summary{margin:20px 0;padding:18px 20px;border-radius:14px;background:#f5f8fc}
.lesson-content .lesson-worked-examples h4,.lesson-content .lesson-common-errors h4,.lesson-content .lesson-summary h4{margin:0 0 12px;color:var(--ink);font-size:18px}
.lesson-worked-example,.theory-example{margin:10px 0 0;padding:14px 16px;border:1px solid #e2e9f1;border-radius:11px;background:#fff}
.lesson-worked-example b{display:block;color:var(--navy);font:italic 21px/1.5 Georgia,serif}
.lesson-worked-example p,.theory-example-translation{margin:5px 0;color:#315578;font-size:16px}
.lesson-worked-example small,.theory-example-analysis{display:block;color:#586f86;font-size:14px;line-height:1.65}
.lesson-common-errors{background:#fff8ea}
.lesson-content .lesson-common-errors ul,.theory-warning ul{margin:7px 0 0;padding-left:21px;color:#576c81;line-height:1.7}
.lesson-summary,.theory-summary{border:1px solid #dce9fb;background:#eff5ff}
.lesson-summary p,.theory-summary p{margin:0;color:#365778;line-height:1.75}
.theory-worked-examples>h3,.theory-summary>h3{margin:0 0 12px;color:var(--ink)}
.theory-example{padding:15px 17px}
.theory-example .polish-example{margin:0;color:var(--navy);font:italic 23px/1.5 Georgia,serif}
.theory-example-translation{margin:5px 0;color:#315578;font-size:16px}
.theory-example-analysis{margin:0}
.curriculum-audit{margin:18px 0;padding:14px 16px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc}
.curriculum-audit summary{color:var(--ink);font-weight:750;cursor:pointer}
.curriculum-audit>div{padding-top:7px;color:#536a80;line-height:1.65}
.curriculum-audit h4{margin:13px 0 4px;color:#264562}
.curriculum-audit ul{margin:4px 0;padding-left:20px}
.grammar-block-meta{margin-top:auto}
.grammar-block-card .button{max-width:100%;white-space:normal;text-align:left}
.grammar-block-card .tiny{margin:12px 0 0;color:var(--muted);line-height:1.5}

/* Compact mic-first phoneme scoring screen for the Polish pronunciation exercise. */
.pronunciation-phoneme-card{max-width:980px;margin:0 auto;padding:clamp(22px,4vw,48px)}
.pronunciation-word-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}
.pronunciation-word-toolbar>.eyebrow{margin:0;color:var(--blue)}
.pronunciation-word-picker{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:650}
.pronunciation-word-picker select{min-height:40px;max-width:220px;padding:7px 36px 7px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit}
.pronunciation-target{text-align:center;margin:clamp(28px,6vw,56px) 0 26px}
.pronunciation-target h3{margin:0;color:var(--navy);font:700 clamp(50px,9vw,86px)/1.05 Georgia,serif;overflow-wrap:anywhere}
.pronunciation-full-ipa{margin:12px 0 0;color:#536d88;font:400 clamp(20px,3vw,27px)/1.35 Georgia,serif}
.pronunciation-recording{text-align:center;max-width:520px;margin:0 auto}
.pronunciation-preview-reference{display:block;margin:0 auto 16px}
.pronunciation-cloud-consent{display:flex;align-items:flex-start;gap:10px;margin:0 auto 22px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;color:var(--muted);font-size:13px;line-height:1.5;text-align:left}
.pronunciation-cloud-consent input{flex:0 0 17px;width:17px;height:17px;margin:2px 0 0;accent-color:var(--blue)}
.pronunciation-mic-button{display:grid;place-items:center;width:100px;height:100px;margin:0 auto;border:0;border-radius:50%;background:linear-gradient(140deg,#326ce4,#2452c7);box-shadow:0 10px 25px #245bd633;color:#fff;cursor:pointer;transition:transform .16s,box-shadow .16s}
.pronunciation-mic-button:hover{transform:translateY(-2px);box-shadow:0 13px 30px #245bd644}
.pronunciation-mic-button:focus-visible{outline:4px solid #245bd644;outline-offset:4px}
.pronunciation-mic-button svg{width:39px;height:39px;fill:currentColor}
.pronunciation-mic-button.is-recording{background:linear-gradient(140deg,#dc5660,#b9313b);animation:pronunciation-pulse 1.2s infinite}
.pronunciation-mic-button.is-recording svg{width:34px;height:34px}
@keyframes pronunciation-pulse{50%{box-shadow:0 0 0 14px #d9474a20,0 10px 25px #b9313b30}}
.pronunciation-service-status,.pronunciation-attempt-status{min-height:18px;margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.pronunciation-attempt-status:not(:empty){color:#a94729}
.pronunciation-result-panel{margin:14px auto 0;max-width:780px}
.pronunciation-result-panel h3{margin:0 0 16px;color:var(--ink);font-size:22px}
.pronunciation-phone-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}
.pronunciation-phone{display:grid;justify-items:center;gap:8px;min-height:95px;padding:15px 10px 12px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;color:var(--ink)}
.pronunciation-phone-symbol{font:600 27px/1.1 Georgia,serif}
.pronunciation-phone-score{font-size:14px;font-weight:750;color:var(--muted)}
.pronunciation-phone.high{border-color:#bfe4d8;background:#eff9f5}
.pronunciation-phone.high .pronunciation-phone-score{color:#14745f}
.pronunciation-phone.medium{border-color:#f0d899;background:#fff9e9}
.pronunciation-phone.medium .pronunciation-phone-score{color:#946b09}
.pronunciation-phone.low{border-color:#efb6b5;background:#fff1f0}
.pronunciation-phone.low .pronunciation-phone-score{color:#b22f33}
.pronunciation-phone.unknown{background:#f4f6f8}
.pronunciation-phone.unknown .pronunciation-phone-score{font-size:12px;font-weight:600}
.pronunciation-result-status{min-height:22px;margin:14px 0;color:var(--muted);line-height:1.5}
.pronunciation-result-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.pronunciation-reference-credit{margin:14px 0 0;color:var(--muted);font-size:12px}
.pronunciation-reference-credit a{color:var(--muted);text-underline-offset:3px}
.pronunciation-history{max-width:980px;margin:18px auto 0;padding:22px 26px}
.pronunciation-history-heading h3{margin:0;color:var(--ink);font-size:20px}
.pronunciation-history-heading p,.pronunciation-history-empty{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.pronunciation-history-list{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.pronunciation-history-item{display:grid;grid-template-columns:minmax(100px,1fr) minmax(130px,auto) auto;align-items:center;gap:16px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#f8fafc}
.pronunciation-history-item time,.pronunciation-history-item span{color:var(--muted);font-size:13px}
.pronunciation-history-item span{text-align:right}
@media(max-width:600px){
  .pronunciation-phoneme-card{padding:20px 16px}
  .pronunciation-history{padding:18px 16px}
  .pronunciation-word-toolbar{align-items:flex-start;flex-direction:column;gap:12px}
  .pronunciation-word-picker{width:100%;justify-content:space-between}
  .pronunciation-word-picker select{max-width:none;flex:1}
  .pronunciation-result-actions{display:grid;grid-template-columns:1fr 1fr}
  #pronunciationRetry{grid-column:1/-1}
  .pronunciation-history-item{grid-template-columns:minmax(70px,1fr) auto;gap:5px 10px}
  .pronunciation-history-item span{grid-column:1/-1;text-align:left}
}
/* Local voice conversation */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.conversation-section{max-width:1040px;margin-inline:auto}
.conversation-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.conversation-heading h1{margin:8px 0 0}
.conversation-card{padding:0;overflow:hidden}
.conversation-toolbar{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:20px 28px;border-bottom:1px solid var(--line)}
.conversation-toolbar label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:16px}
.conversation-toolbar select{border:1px solid var(--line);border-radius:10px;padding:9px 14px;background:white;color:var(--ink);font:inherit}
.conversation-toolbar .button{margin-left:auto;padding:12px 16px;font-size:16px}
.conversation-voice input{width:18px;height:18px;accent-color:var(--blue)}
.conversation-chat{height:clamp(280px,42vh,560px);overflow:auto;padding:28px;display:flex;flex-direction:column;gap:18px;scroll-behavior:smooth;overscroll-behavior:contain}
.conversation-empty{margin:auto;text-align:center;max-width:480px;padding:28px 10px;color:var(--muted)}
.conversation-empty h2{color:var(--ink);font-size:30px}
.conversation-bubble{position:relative;width:fit-content;max-width:82%;border-radius:22px;padding:18px 64px 18px 22px;background:#f0f4f9;align-self:flex-start;flex-shrink:0}
.conversation-bubble.user{background:#eaf1ff;align-self:flex-end}
.conversation-speaker{font-size:13px;font-weight:700;color:var(--muted)}
.conversation-bubble p{margin:5px 0 0;white-space:pre-wrap;font-size:22px;line-height:1.55;color:var(--ink);overflow-wrap:anywhere}
.conversation-bubble-play{position:absolute;right:12px;top:16px;width:38px;height:38px;border:0;border-radius:50%;background:#fff9;color:var(--blue);display:grid;place-items:center;cursor:pointer}
.conversation-bubble-play svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.conversation-bubble-play.is-playing{background:var(--blue);color:white}
.conversation-bubble-play.is-loading svg{display:none}
.conversation-bubble-play.is-loading:after{content:"";width:19px;height:19px;border:2px solid #b9ccff;border-top-color:var(--blue);border-radius:50%;animation:conversation-spin .8s linear infinite}
.conversation-controls{display:flex;align-items:center;flex-direction:column;padding:16px 28px 24px;gap:10px}
.conversation-status{min-height:25px;margin:0;text-align:center;font-size:16px;color:var(--muted);max-width:650px}
.conversation-status:empty{display:none}
.conversation-input-wrap{flex:1;min-width:0}
.conversation-input-wrap textarea{display:block;width:100%;min-height:54px;box-sizing:border-box}
.conversation-mic{width:54px;height:54px;padding:0;background:var(--blue);color:white;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}
.conversation-mic svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.conversation-mic:disabled{opacity:.4;cursor:default}
.conversation-mic.is-recording{background:#dc405c;box-shadow:0 0 0 8px #dc405c19}
.conversation-stop{width:18px;height:18px;border-radius:4px;background:white;flex-shrink:0}
.conversation-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.conversation-actions [hidden]{display:none!important}
.conversation-actions .button{padding:9px 15px;font-size:16px}
.conversation-compose{display:flex;gap:12px;width:100%;margin-top:8px;align-items:center}
.conversation-compose textarea{flex:1;min-width:0;max-height:120px;resize:vertical;padding:14px 16px;border:1px solid var(--line);border-radius:14px;font:inherit;font-size:18px;line-height:1.5;background:white;color:var(--ink)}
.conversation-compose .button{padding:15px 20px;font-size:18px;line-height:24px;min-height:54px;white-space:nowrap}
.conversation-compose .conversation-mic{width:54px;height:54px;min-height:54px;padding:0;border-radius:50%}
.conversation-pending{display:flex;align-items:center;gap:12px;padding:12px 14px 12px 20px;min-height:58px}
.conversation-pending p{margin:0;font-size:18px;color:var(--muted)}
.conversation-bubble-cancel{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;padding:0;border:0;border-radius:50%;background:#e2e8f1;color:#50647b;cursor:pointer}
.conversation-bubble-cancel:hover{background:#d5deea;color:var(--ink)}
.conversation-bubble-cancel svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.conversation-mic:focus-visible,.conversation-bubble-play:focus-visible,.conversation-bubble-cancel:focus-visible{outline:3px solid #91b1ff;outline-offset:4px}
@keyframes conversation-spin{to{transform:rotate(360deg)}}
@media(max-width:640px){.conversation-toolbar{padding:16px;gap:12px}.conversation-toolbar .button{margin-left:0}.conversation-chat{padding:16px;height:38vh}.conversation-bubble{max-width:95%;padding-left:16px}.conversation-bubble p{font-size:19px}.conversation-controls{padding:12px 16px 20px}.conversation-heading{align-items:flex-start}.conversation-heading h1{font-size:34px}.conversation-heading .button{font-size:14px;padding:12px}.conversation-compose{flex-wrap:wrap}.conversation-input-wrap{flex-basis:100%}.conversation-compose textarea{flex-basis:100%}.conversation-compose .button{font-size:15px;padding:14px 12px;line-height:22px;min-height:50px}.conversation-compose .conversation-mic{width:50px;height:50px;margin-left:auto;padding:0}}
/* Book audio actions stay tucked into a compact three-dot menu. */
.book-card{position:relative}
.book-audio-preparation{position:absolute;top:11px;right:11px;z-index:8}
.book-audio-menu{position:relative}
.book-audio-menu>summary{list-style:none}
.book-audio-menu>summary::-webkit-details-marker{display:none}
.book-audio-menu-trigger{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#f3f6f9;color:var(--muted);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.book-audio-menu-trigger:hover,.book-audio-menu[open]>.book-audio-menu-trigger{background:var(--sky);border-color:#c8d9ff;color:var(--blue)}
.book-audio-menu-trigger:focus-visible{outline:3px solid #91b1ff;outline-offset:3px}
.book-audio-menu-trigger svg{width:19px;height:19px;fill:currentColor}
.book-audio-menu-panel{position:absolute;top:43px;right:0;width:min(310px,calc(100vw - 40px));padding:15px;background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 38px #16314924;color:var(--ink)}
.book-audio-menu-title{display:block;margin:0 0 10px;font-size:14px}
.book-audio-menu-action{width:100%;font-size:14px;padding:10px 12px;text-align:center}
.book-audio-preparation-message{margin:10px 0 0;overflow-wrap:anywhere;line-height:1.45}
.book-audio-preparation-progress{display:block;width:100%;height:8px;margin-top:10px;accent-color:#2457dc}
.book-audio-preparation-progress[hidden]{display:none}
.reader-audio-preparation{display:flex;justify-content:flex-end;position:relative;z-index:30;margin:0 0 12px}
.reader-audio-preparation .book-audio-preparation{position:relative;top:auto;right:auto;z-index:auto}
.reader-audio-preparation .book-audio-menu-panel{top:0;right:48px;width:min(340px,calc(100vw - 90px))}
.speech-pace-input{display:flex;align-items:center;gap:10px;max-width:190px}
.speech-pace-input input{width:130px!important}
.speech-pace-input span{color:var(--muted);font-weight:700}

/* Shared mobile web and Android WebView layout. */
.top-actions{display:flex;align-items:center;gap:8px;margin-left:12px}
.top-account,.top-settings{min-height:42px;white-space:nowrap}
.top-account{border:1px solid #ffffff45;border-radius:10px;background:transparent;color:#fff;padding:9px 13px;font:inherit;font-weight:700}
.top-account:hover{background:#ffffff17}
.reader-settings-dialog{width:min(760px,calc(100vw - 28px));max-height:min(92dvh,900px);overflow:auto;overscroll-behavior:contain}
.account-settings,.usage-settings{margin:0 0 18px;padding:18px}
.account-settings .section-head,.usage-settings .section-head{align-items:start}
.account-code-row{display:grid;grid-template-columns:minmax(140px,220px) 1fr;align-items:end;gap:12px}
.account-code-row .button-row{padding-bottom:6px}
.account-email{font-weight:700;overflow-wrap:anywhere}
.usage-details{display:grid;gap:8px;color:var(--muted)}
.usage-details div{padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:#f7f9fb}
.account-settings .notice{margin-top:14px}
.account-settings .notice p{margin:0 0 10px}

@media(max-width:900px){
  .top-inner{display:grid;grid-template-columns:auto 1fr;gap:9px 16px;align-items:center}
  .nav{grid-column:1 / -1;grid-row:2;margin:0;min-width:0}
  .top-actions{grid-column:2;grid-row:1;justify-content:end;margin-left:0}
  .reader-layout{margin-inline:0}
}
@media(max-width:700px){
  html{overflow-x:hidden}
  .shell{width:100%;max-width:none;padding-inline:14px}
  .top{position:sticky;top:0;z-index:800}
  .top-inner{grid-template-columns:minmax(0,1fr) auto;padding:9px 0;gap:7px 10px}
  .brand{font-size:19px}
  .mark{width:31px;height:31px}
  .top-actions{gap:6px}
  .top-account,.top-settings{min-height:40px;padding:8px 10px;font-size:13px}
  .nav{width:calc(100vw - 28px);gap:3px;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav button{flex:0 0 auto;min-height:42px}
  .section{padding:13px 0 30px}
  .section-head{align-items:start;flex-direction:column;gap:8px}
  .section-head h2{font-size:25px}
  .reader-layout{display:block;width:100%;margin:0}
  .reader-layout>div{min-width:0;width:100%}
  .reader-paper{width:100%;min-width:0;padding:12px 3px 18px;border-radius:0;border-inline:0}
  .reader-paper h3{font-size:25px}
  .reader-text{font-size:var(--book-font-size,21px);line-height:1.68;overflow-wrap:anywhere;word-break:normal}
  .reader-layout:not(.sidebar-collapsed) .reader-side{inset:clamp(88px,18dvh,150px) 10px 10px;max-height:none;border-radius:18px;overflow:auto}
  .reader-controls{position:sticky;top:88px;z-index:790;flex-direction:row;align-items:center;flex-wrap:wrap;padding:8px 0;background:#f7f5f0}
  .reader-controls .button{min-height:42px}
  .book-controls{display:grid;grid-template-columns:1fr;gap:10px}
  .book-grid{grid-template-columns:1fr!important}
  .exercise-category-grid,.g2,.g3{grid-template-columns:1fr}
  .exercise-category{min-height:0}
  .word-learning-directions{grid-template-columns:1fr 1fr}
  .word-learning-direction{min-width:0;white-space:normal;text-align:center}
  .theory-layout{grid-template-columns:minmax(0,1fr)}
  .theory-chapter-list{position:static;max-height:35dvh}
  .reader-settings-dialog{width:calc(100vw - 16px);max-width:none;max-height:94dvh;padding:18px 14px}
  .reader-settings-dialog form{min-width:0}
  .reader-settings-dialog .card{padding:15px}
  .account-code-row{grid-template-columns:minmax(0,1fr)}
  .account-code-row .button-row{padding:0}
  .account-code-row .button{flex:1}
  input,select,textarea{font-size:16px}
  .button,.button-row button{min-height:44px}
  .conversation-card{min-height:calc(100dvh - 250px)}
  .conversation-chat{min-height:34dvh}
  .conversation-compose{grid-template-columns:minmax(0,1fr) auto auto}
}
@media(max-width:390px){
  .shell{padding-inline:10px}
  .nav{width:calc(100vw - 20px)}
  .nav button{padding:8px 9px;font-size:13px}
  .top-account,.top-settings{padding-inline:8px;font-size:12px}
  .reader-paper h3{font-size:22px}
  .reader-text{font-size:19px}
  .reader-settings-dialog{width:calc(100vw - 10px);padding-inline:11px}
}
@media(orientation:landscape) and (max-height:560px) and (max-width:900px){
  .top{position:relative}
  .reader-layout:not(.sidebar-collapsed) .reader-side{inset:76px 12px 8px}
  .reader-controls{top:0}
  .reader-settings-dialog{max-height:98dvh}
}

/* FluentCrow visual theme. Keep data keys and existing learning flows unchanged. */
body{background:var(--paper);color:var(--ink)}
a{color:var(--navy);text-decoration-color:var(--sand);text-underline-offset:3px}
a:hover{color:#0b4b8b}
.top{background:var(--paper);color:var(--navy);border-bottom:1px solid var(--line);box-shadow:0 4px 18px #07366908}
.top-inner{min-height:76px}
.brand{min-width:0;color:var(--navy);letter-spacing:-.02em}
.brand-logo{display:block;width:clamp(170px,18vw,224px);max-height:54px;height:auto;object-fit:contain;object-position:left center}
.mark{background:var(--accent);color:var(--action-ink)}
.nav button{color:#344f68}
.nav button:hover{background:#0736690a;color:var(--navy)}
.nav button.active{background:#f4e9df;color:var(--navy);box-shadow:inset 0 -3px 0 var(--accent)}
.top-account{border-color:#07366936;background:transparent;color:var(--navy)}
.top-account:hover{background:#0736690a}
.top-settings{background:#0736690a;color:var(--navy)}
.top-settings:hover{background:#07366916}
.button{background:var(--accent);color:var(--action-ink);transition:background-color .15s,box-shadow .15s,transform .15s}
.button:hover:not(:disabled){background:#dc4e25;box-shadow:0 4px 12px #e4572e25}
.button.secondary{background:#f4e9df;color:var(--navy);border:1px solid #e9d5c6}
.button.secondary:hover:not(:disabled){background:#efdfd2}
.button.ghost{background:#fff;color:var(--navy);border:1px solid var(--line)}
.button.ghost:hover:not(:disabled){background:#f5f1e9;border-color:var(--sand)}
.button:focus-visible,.nav button:focus-visible,.top-account:focus-visible,.top-settings:focus-visible,
input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #e4572e70;outline-offset:2px}
.field input,.field textarea,.field select,input,textarea,select{border-color:#d8d2c6}
.field input:focus,.field textarea:focus,.field select:focus,input:focus,textarea:focus,select:focus{border-color:var(--navy);box-shadow:0 0 0 3px #07366918}
.card,.book-card{border-color:var(--line);box-shadow:0 7px 24px #07366908}
.card:hover,.book-card:hover{border-color:#cfc3a9}
.learning-route-entry{background:linear-gradient(120deg,#f4eee4,#fff 78%);border-color:var(--line)}
.learning-route-entry:hover{border-color:var(--sand);box-shadow:0 10px 28px #07366912}
.learning-route-entry:focus-visible{outline-color:#e4572e70}
.learning-route-entry-action,.exercise-card-arrow,.linklike{color:var(--navy)}
.num{background:#f4e9df;color:var(--navy)}
.progress,.bar,.storage-quota .progress{background:#eee9df}
.progress i,.bar i,.storage-quota .progress i{background:var(--accent)}
.bar-row:nth-child(2) .bar i{background:var(--sand)}
.bar-row:nth-child(3) .bar i{background:var(--accent)}
.route-node.selected span{border-color:#f5c7b7;background:var(--accent);color:var(--action-ink);box-shadow:0 0 0 2px var(--accent)}
.route-node.in-progress:not(.selected) span{border-color:#e9b39f;background:#fbede7;color:#7b351e}
.callout{background:#fbf3ed;color:#563d33}
.notice{background:#f3efe7;color:#4f5f70}
.review-stage{background:#fffdf9}
.reader-paper{background:#fffdf9;border-color:var(--line)}
.reader-controls{background:var(--paper)}
.reader-text .token.app-range-token{background:linear-gradient(transparent 72%,#f5d7c9 72%)}
::highlight(polskilab-range){background:#f5d7c9;color:var(--ink);text-decoration-color:var(--accent)}
.tag,.alternative{background:#f7f3eb;color:#314b64;border-color:#e3dac8}
.alternative:hover{background:#f4e9df;border-color:var(--sand)}
.conversation-bubble.coach,.conversation-bubble.assistant{border-color:#eadfd1}
.pronunciation-close,.pronunciation-sound{background:#f3efe7}

@media(max-width:700px){
  body{overflow-x:hidden}
  html,body{width:100%;max-width:100%}
  main.shell,#home,#exercises,#exerciseHomeView{width:100%;min-width:0;max-width:100%}
  .brand-logo{width:clamp(158px,47vw,184px);max-height:46px}
  .top-inner{min-height:unset}
  .nav button.active{box-shadow:inset 0 -2px 0 var(--accent)}
  .learning-home,.exercise-area,.exercise-category-grid{min-width:0;max-width:100%}
  .learning-route-entry{width:100%;min-width:0;max-width:100%;align-items:stretch}
  .learning-route-entry-copy{display:block;width:100%;min-width:0}
  .learning-route-entry-copy>*{display:block;max-width:100%;white-space:normal}
  .learning-route-entry-description{width:100%;overflow-wrap:anywhere}
  .exercise-category-grid{width:100%;grid-template-columns:minmax(0,1fr)!important}
  .exercise-category{width:100%;min-width:0;max-width:100%;align-items:stretch}
  .exercise-category h2,.exercise-category p,.exercise-card-arrow{max-width:100%;overflow-wrap:anywhere}
  .exercise-category p{width:100%}
  .route-card .section-head>div{min-width:0}
  .route-card .section-head p{overflow-wrap:anywhere}
  #appBootStatus{left:14px;right:14px;bottom:14px;width:auto;max-width:none}
}

/* ТВОИ ВИЗУАЛЬНЫЕ ПРАВКИ FLUENTCROW
   Добавляй CSS ниже этого комментария. Сохрани файл и обнови локальную страницу.
   Пример палитры: удали знаки комментария с двух сторон правила, чтобы применить.
*/
/*
:root {
  --ink: #073669;
  --navy: #073669;
  --accent: #e4572e;
  --gold: #e4572e;
  --sand: #b5a886;
  --paper: #faf9f6;
}
*/
.fluentcrow-landing{padding-top:clamp(22px,5vw,62px);padding-bottom:clamp(30px,6vw,70px)}
.landing-hero{padding:clamp(24px,5vw,62px);background:linear-gradient(135deg,#fff 0%,#f3f7fb 100%);border-color:var(--line);box-shadow:0 18px 55px rgba(7,54,105,.07)}
.landing-hero h1{max-width:820px;margin:12px 0 18px;color:var(--navy);font-size:clamp(38px,6vw,70px);line-height:1.03;letter-spacing:-.04em}
.landing-lead{max-width:760px;color:var(--muted);font-size:clamp(18px,2.1vw,24px);line-height:1.6}
.landing-actions{gap:14px;margin-top:25px;align-items:center}
.landing-actions a{text-decoration:none}
.landing-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.landing-primary:hover{background:#c94826;border-color:#c94826}
.landing-account{padding:10px 6px}
.landing-features{margin-top:20px;gap:16px}
.landing-features .card{padding:22px}
.landing-features h2{margin:0 0 8px;color:var(--navy);font-size:21px}
.landing-features p{margin:0;color:var(--muted);line-height:1.55}
@media(max-width:700px){.landing-actions{align-items:stretch;flex-direction:column}.landing-actions>*{width:100%;text-align:center}.landing-account{padding:8px}.landing-features{grid-template-columns:1fr}.landing-hero{border-radius:18px}}
