:root{--navy:#142b4a;--blue:#254edb;--orange:#ec8f37;--ink:#192e48;--muted:#596b81;--line:#dce4ed;--paper:#f2f5fa;--success:#196b4b;--error:#a83f25}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif}button,input,textarea,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #e99c36;outline-offset:4px}header{background:var(--navy);padding:21px max(5vw,24px);display:flex;align-items:center;justify-content:space-between;color:white}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;font-size:19px;font-weight:700}.brand small{display:block;font-size:14px;font-weight:400;color:#bdcde0}.monogram{width:43px;height:43px;border:1px solid #697b92;display:grid;place-items:center;border-radius:12px;color:#ffb66b;font-size:27px;font-family:Georgia,serif}.level{font-size:13px;letter-spacing:.12em;color:#cbdaeb}main{max-width:1230px;margin:auto;padding:37px 30px 22px}.intro{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:30px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.14em;color:var(--blue);margin:0 0 5px}h1{font-family:Georgia,'Times New Roman',serif;font-size:40px;letter-spacing:-.03em;line-height:1.2;margin:8px 0}h1+p{color:var(--muted);margin:9px 0 0}.stats{display:flex;border-left:1px solid var(--line);gap:32px;padding-left:36px}.stats div{text-align:center}.stats strong{display:block;font-size:30px;font-weight:600;line-height:1.35}.stats span{font-size:14px;color:var(--muted)}.modes{display:flex;border-bottom:1px solid #cfd9e6;gap:7px;margin-bottom:24px}.modes button{border:0;background:transparent;padding:15px 17px 17px;color:var(--muted);border-bottom:3px solid transparent;font-weight:600}.modes button span{font-size:13px;opacity:.75;margin-right:8px}.modes .selected{border-bottom-color:var(--blue);color:var(--blue)}.modes b{background:#dbe4f2;border-radius:20px;padding:2px 7px;font-size:12px;margin-left:4px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.exercise{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;box-shadow:0 8px 30px #142b4a06}.toolbar{padding:19px 26px;display:flex;align-items:center;justify-content:space-between;gap:16px}label{color:var(--muted);font-size:14px}.toolbar label{display:flex;align-items:center;gap:10px}select{background:#f5f7fb;border:1px solid var(--line);padding:7px 12px;border-radius:7px;color:var(--ink);font-size:14px;max-width:100%}.position{font-size:14px;color:var(--muted);white-space:nowrap}.progress{height:3px;background:#edf1f7}.progress span{display:block;height:100%;background:var(--blue);transition:width .25s}#content{padding:30px}.badge{display:inline-block;border:1px solid var(--line);font-size:12px;letter-spacing:.08em;border-radius:5px;padding:4px 9px;color:var(--muted);font-weight:650}.prompt{font-size:27px;line-height:1.5;margin:20px 0 10px;font-weight:600;overflow-wrap:anywhere}.english{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400}.sub{color:var(--muted);margin:6px 0 22px;font-size:15px}.answer-label{display:block;margin:22px 0 7px;font-weight:600;color:var(--ink)}input,textarea{width:100%;padding:16px;border:1.5px solid #b9c9dd;border-radius:9px;color:var(--ink);background:#fcfdff;font-size:19px}textarea{min-height:115px;resize:vertical}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.primary,.secondary,.quiet{padding:12px 20px;border-radius:8px;font-weight:600;line-height:1.4}.primary{border:1px solid var(--blue);background:var(--blue);color:white}.primary:hover{background:#1839b4}.secondary{background:white;border:1px solid #bdcbdd;color:var(--ink)}.secondary:hover{background:#f0f4fa}.quiet{color:var(--muted);border:0;background:transparent}.quiet:hover{background:#f2f5fa}.hint{background:#fff5e7;border-left:3px solid var(--orange);padding:12px 16px;font-size:15px;margin-top:15px}.feedback{margin-top:23px;border-radius:9px;padding:18px;background:#eef4fd;border:1px solid #d7e3f3}.feedback.good{background:#ecf7f1;border-color:#c0dfd0}.feedback.bad{background:#fff3e9;border-color:#edd2b9}.feedback h3{font-size:16px;margin:0 0 7px}.feedback p{margin:8px 0;font-size:15px}.model-answer{font-size:20px!important;font-weight:600;color:var(--navy)}aside{padding:24px;background:#e5edf9;border:1px solid #d2def0;border-radius:14px}.note-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.note-icon{background:var(--navy);color:white;width:36px;height:36px;display:grid;place-items:center;border-radius:8px;font-family:Georgia,serif}h2{font-size:18px;margin:0}#rule h3{font-size:18px;line-height:1.4;margin:0 0 13px}#rule p{font-size:15px;color:#415773}#rule .example{font-weight:650;color:var(--navy);padding:12px;background:#ffffff90;border-radius:8px}.study-tip{margin-top:28px;padding-top:18px;border-top:1px solid #c8d6ea}.study-tip span{font-size:12px;letter-spacing:.12em;font-weight:700;color:#5e7493}.study-tip p{font-size:14px;color:#516782}.flash{min-height:230px;display:flex;flex-direction:column;justify-content:center;text-align:center}.flash .prompt{font-size:37px}.flash-answer{color:var(--blue);font-size:24px;font-weight:600;margin:8px}.flash-example{color:var(--muted);font-size:17px}.flash .badge{align-self:center}.result{font-size:37px;letter-spacing:-.04em;font-weight:650;margin:20px 0}.empty{padding:26px 0}.empty h2{font-size:27px}.nav-bottom{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:26px;color:#65768b;font-size:12px;margin-top:26px}footer span{max-width:50%}.kbd{font-size:12px;color:var(--muted)}@media(max-width:960px){.workspace{grid-template-columns:minmax(0,1fr) 260px}.stats{gap:20px;padding-left:20px}.modes button{padding:12px 11px}.level{display:none}.english{font-size:28px}}@media(max-width:740px){main{padding:24px 16px}.intro{align-items:flex-start}.intro h1{font-size:31px}.intro h1+p{font-size:14px}.stats{padding-left:16px;gap:14px}.stats strong{font-size:24px}.stats span{font-size:12px}.workspace{grid-template-columns:1fr}.modes{display:grid;grid-template-columns:1fr 1fr;gap:0}.modes button{font-size:14px;text-align:left}.modes button span{margin-right:3px}.toolbar{padding:16px}.toolbar label{flex-wrap:wrap;gap:4px;max-width:78%}.toolbar select{font-size:14px}#content{padding:23px}.prompt{font-size:23px}.english{font-size:27px}aside{padding:21px}.study-tip{display:none}footer{flex-direction:column;gap:8px}footer span{max-width:none}.actions button{flex-grow:1}.kbd{display:none}}@media(max-width:430px){.intro{display:block}.stats{border:0;margin-top:23px;padding:0;justify-content:flex-start;gap:35px}.stats div{text-align:left}.toolbar{gap:6px}.toolbar label{max-width:72%}.brand{font-size:17px}.flash .prompt{font-size:30px}}
header{padding-top:calc(21px + env(safe-area-inset-top))}.install-button{border:1px solid #7b8faa;background:#ffffff0d;color:white;border-radius:9px;padding:9px 15px;font-size:14px;font-weight:600}.install-button:hover{background:#ffffff20}.sync-line{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:26px;margin:-17px 0 16px;color:var(--muted);font-size:13px}.sync-line [data-error=true]{color:#a43b22}.sync-line button{border:0;background:none;color:var(--blue);font-size:13px;text-decoration:underline}dialog{padding:0;border:1px solid var(--line);border-radius:18px;width:min(520px,calc(100% - 30px));color:var(--ink);box-shadow:0 24px 90px #142b4a40}dialog::backdrop{background:#10233e99}.install-dialog{padding:30px;position:relative}.install-dialog h2{font-family:Georgia,serif;font-size:30px;line-height:1.2;margin:20px 0 14px}.install-dialog p{color:var(--muted)}.install-dialog ol{padding-left:24px;line-height:1.8}.install-dialog li{margin-bottom:10px}.install-note{font-size:14px;margin-top:22px!important}.close-dialog{position:absolute;right:15px;top:10px;border:0;background:transparent;font-size:29px;color:var(--muted);padding:4px 10px}.install-dialog button.primary{width:100%}button[hidden]{display:none}.workspace[aria-busy=true]{opacity:.55;pointer-events:none}.install-dialog code{font:inherit;font-weight:650}.install-dialog a{color:var(--blue)}@media(display-mode:standalone){.install-button{display:none}body{min-height:100dvh}footer{padding-bottom:env(safe-area-inset-bottom)}}@media(max-width:740px){.install-button{font-size:13px;padding:9px}.brand small{font-size:12px}.monogram{width:36px;height:36px;flex-shrink:0}.brand{gap:9px}.sync-line{justify-content:flex-start;margin:0 0 18px}.install-dialog{padding:26px}main{padding-bottom:calc(22px + env(safe-area-inset-bottom))}}
[hidden]{display:none!important}.main-tabs{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap;padding:4px 0 10px;margin:0 0 21px;border-bottom:1px solid #cfd9e6}.main-tabs button{border:0;background:transparent;color:var(--muted);font-weight:650;padding:11px 14px;border-bottom:3px solid transparent;border-radius:3px}.main-tabs button.selected{color:var(--blue);border-bottom-color:var(--blue)}.main-tabs button:hover{background:#e6edf8}.new-workspace,.reports-panel{border:1px solid var(--line);border-radius:16px;background:white;padding:clamp(23px,3vw,42px);max-width:950px;margin:auto;box-shadow:0 8px 30px #142b4a06}.learn-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.learn-heading h2,.reports-panel h2{font-family:Georgia,serif;font-size:clamp(25px,3.1vw,35px);margin:12px 0}.direction-label{display:flex;align-items:center;gap:12px;margin:18px 0}.learn-prompt{background:#edf3fd;border-left:4px solid var(--blue);padding:22px;border-radius:7px;font-size:clamp(19px,2.1vw,25px);line-height:1.55;margin:25px 0;overflow-wrap:anywhere}.new-workspace textarea{min-height:160px}.new-workspace textarea[rows='6']{min-height:225px}.new-workspace .feedback{margin-top:20px}.new-workspace .feedback ul{padding-left:23px}.new-workspace .feedback li{margin:7px 0}.new-workspace .feedback h4{margin:18px 0 4px}.grade-pair{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.grade-pair span{background:white;border:1px solid #cbd9ed;border-radius:9px;padding:10px 15px}.grade-pair strong{display:block;font-size:22px;color:var(--blue)}details summary{cursor:pointer;font-weight:650}.feedback details{padding:12px 0}.grammar-lessons{margin-bottom:24px}.grammar-lessons h2{font-family:Georgia,serif;font-size:25px}.grammar-lessons>p{color:var(--muted);margin:4px 0 18px}.grammar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.grammar-grid details{border:1px solid var(--line);background:white;border-radius:10px;padding:14px}.grammar-grid summary{line-height:1.4}.grammar-grid p{font-size:15px;color:var(--muted)}.report-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:26px 0}.report-cards>div{border:1px solid var(--line);border-radius:10px;padding:17px;background:#f7faff}.report-cards strong{display:block;font-size:27px;color:var(--navy)}.report-cards span{font-size:14px;color:var(--muted)}.reports-panel h3{margin:30px 0 12px}.focus-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}.focus-list li{background:#fff4e8;border:1px solid #f0d7bc;border-radius:30px;padding:7px 12px}.focus-list span{color:var(--muted);font-size:13px}.history-row{border-top:1px solid var(--line);padding:15px 0}.history-row summary{display:flex;justify-content:space-between;gap:18px}.history-row summary span{overflow-wrap:anywhere}.history-row b{white-space:nowrap;color:var(--blue)}.reports-panel #reviewWeak{margin-top:23px}@media(max-width:740px){.main-tabs{margin-right:-16px;padding-right:16px}.main-tabs button{font-size:14px;padding:10px 13px}.grammar-grid{grid-template-columns:1fr}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.report-cards>div{padding:13px}.learn-heading{align-items:flex-start}.new-workspace,.reports-panel{padding:21px}.history-row summary{flex-direction:column;gap:3px}.learn-prompt{padding:16px}}

.monogram{width:54px;height:54px;overflow:hidden;background:#fff4e8;flex-shrink:0;border-color:#eac9a8}.monogram img{display:block;width:100%;height:100%;object-fit:cover}@media(max-width:740px){.monogram{width:44px;height:44px}}
.brand-logo{display:block;line-height:1}.brand-logo img{display:block;width:210px;max-width:100%;height:auto}header:has(.brand-logo){padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px}@media(max-width:740px){.brand-logo img{width:155px}}@media(max-width:430px){.brand-logo img{width:146px}}
