:root{--forest:#103f35;--deep:#082f29;--gold:#d6a458;--ink:#152922;--muted:#647169;--paper:#f8f7f2;--line:#d9e1d8;--sage:#ebf2ec;--white:#fff;--red:#a74b3b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #d2a257;outline-offset:3px}[hidden]{display:none!important}.cs-shell{max-width:1330px;padding:0 26px;margin:auto}.cs-header{height:61px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.cs-brand{display:flex;align-items:center;text-decoration:none;color:var(--forest);font-weight:900;letter-spacing:-.045em;font-size:16px;gap:8px}.cs-logo{border-radius:8px;color:#fff;font-size:20px;width:28px;height:28px;display:grid;place-content:center;background:var(--forest);position:relative}.cs-logo span{color:var(--gold);font-size:8px;position:absolute;bottom:5px;right:3px}.cs-gold{color:#a67d3b}.cs-header-tag,.cs-eyebrow{font-size:10px;letter-spacing:.13em;color:#60776a;font-weight:850}.cs-hero{padding:20px 0 16px}.cs-hero h1{font-size:clamp(25px,3.1vw,44px);line-height:1.08;letter-spacing:-.045em;margin:7px 0 5px;color:var(--deep)}.cs-hero h1 em{color:#b48745;font-family:Georgia,serif;letter-spacing:-.04em;font-weight:400}.cs-hero p{color:var(--muted);margin:0;font-size:13px}.cs-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:17px;align-items:start}.cs-play{min-width:0}.cs-modes{display:flex;background:#e9eee8;border:1px solid #d8e2d9;border-radius:12px;padding:4px;gap:4px}.cs-modes button{border:0;background:none;color:#4f6256;border-radius:9px;min-height:37px;flex:1;font-size:12px;font-weight:800}.cs-modes button.active{background:#fff;color:var(--deep);box-shadow:0 2px 7px #11332212}.cs-filters{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0}.cs-session{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.cs-session button{font-size:11px;font-weight:750;background:#fff;border:1px solid #d5ded4;border-radius:20px;padding:7px 10px;color:#43594b;white-space:nowrap}.cs-session button.active{background:#184b3f;color:#fff;border-color:#184b3f}.cs-session span{background:#f2d7a9;color:#633f14;border-radius:12px;padding:1px 5px;margin-left:2px}.cs-topiclabel{display:flex;gap:8px;align-items:center;font-size:11px;color:#5c6f61;font-weight:700}.cs-topiclabel select{background:#fff;border:1px solid #d4ded3;padding:7px 8px;border-radius:8px;max-width:165px;font-size:11px;color:#29473a}.cs-card{border-radius:15px;background:#fff;border:1px solid var(--line);overflow:hidden;box-shadow:0 14px 34px #16432e0a}.cs-cardtop{display:flex;align-items:center;gap:8px;padding:13px 20px 10px;color:#34594d;font-size:10px;font-weight:850;letter-spacing:.065em}.cs-cardtop span:nth-child(2){margin-left:auto;color:#9a7645;border:1px solid #e5d3b6;padding:3px 7px;border-radius:6px}.cs-cardtop span:nth-child(3){font-variant-numeric:tabular-nums}.cs-progress-track{height:3px;margin:0 20px;background:#e5efe7;border-radius:4px;overflow:hidden}.cs-progress-track>div{height:100%;background:#c39551;width:0;transition:width .25s}.cs-lesson{padding:20px 20px 12px}.cs-kicker{font-size:10px;font-weight:850;color:#a77a38;letter-spacing:.13em}.cs-lesson h2{font-family:Georgia,serif;color:#12382e;font-size:clamp(20px,2.25vw,29px);font-weight:500;line-height:1.3;letter-spacing:-.015em;min-height:51px;margin:10px 0}.cs-lesson h2 .cs-blank{color:#b58748;white-space:nowrap}.cs-lesson p{color:#596d62;margin:6px 0;font-size:12px;line-height:1.4}.cs-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 20px 10px}.cs-option{background:#f9faf7;color:#1e4133;border:1px solid #d8e1d7;border-radius:9px;min-height:42px;padding:9px 12px;text-align:left;font-size:13px;font-weight:750;overflow-wrap:anywhere}.cs-option.selected{background:#e5f0e8;border:2px solid #2e7964;padding:8px 11px}.cs-option:disabled{opacity:.77;cursor:default}.cs-entry{padding:0 20px 10px;display:grid;gap:6px}.cs-entry label{font-size:11px;font-weight:750;color:#456558}.cs-entry input{width:100%;height:42px;border:1px solid #b8d1c0;border-radius:9px;padding:9px 12px;outline-offset:2px}.cs-flash{margin:0 20px 10px;background:#edf4ee;border-radius:9px;padding:10px;color:#496053}.cs-feedback{margin:0 20px 10px;border-left:3px solid #a5793c;background:#faf4e9;padding:10px;border-radius:6px;font-size:12px;line-height:1.4}.cs-feedback.correct{border-color:#2c835a;background:#eaf6ee}.cs-feedback.wrong{border-color:#aa664f;background:#fff0ec}.cs-feedback b{color:var(--deep)}.cs-actions{display:flex;gap:7px;padding:8px 20px 18px}.cs-primary{background:#143e34;color:white;border:1px solid #143e34;border-radius:9px;min-height:43px;padding:9px 13px;font-weight:850;font-size:12px;display:inline-flex;align-items:center;justify-content:space-between;gap:12px}.cs-primary span{color:#e5c38b}.cs-actions>.cs-primary{flex:1}.cs-outline{border:1px solid #d6e0d6;color:#305347;border-radius:9px;background:#fff;font-size:12px;font-weight:750;padding:9px 12px;min-height:43px}.cs-complete{text-align:center;background:#fff;border:1px solid var(--line);border-radius:15px;padding:26px 20px}.cs-complete h2{font-family:Georgia,serif;color:var(--forest);font-size:28px}.cs-complete p{color:#596d62}.cs-complete-icon{font-size:40px;color:#bf9551}.cs-fairness{font-size:10px;line-height:1.5;color:#6b7b70;margin:10px 2px 0}.cs-desk{background:linear-gradient(152deg,#143f34,#082d27);color:#f5f3e6;border-radius:15px;padding:21px;min-height:407px;box-shadow:0 14px 30px #143c2e16}.cs-desk-header{font-size:10px;font-weight:850;letter-spacing:.13em;color:#f1cc8c;display:flex;justify-content:space-between}.cs-desk h3{font-family:Georgia,serif;font-size:clamp(21px,2.4vw,31px);line-height:1.18;letter-spacing:-.02em;font-weight:400;margin:24px 0 22px}.cs-desk h3 em{color:#eacb9a;font-weight:400}.cs-stat{display:flex;justify-content:space-between;border-bottom:1px solid #ffffff28;padding:9px 0;font-size:12px;color:#d7e7dd}.cs-stat strong{color:#fff;font-variant-numeric:tabular-nums}.cs-deskline{height:1px;background:#ffffff23;margin:21px 0}.cs-tip-title{font-size:10px;letter-spacing:.1em;color:#e7bf84;font-weight:850}.cs-desk p{font-size:12px;line-height:1.7;color:#dfebe2}.cs-desk-note{display:block;font-size:10px;color:#a8bfb1;margin-top:18px}.cs-extras{margin:20px 0 38px}.cs-details{background:white;border:1px solid var(--line);border-radius:11px;margin:8px 0;overflow:hidden}.cs-details summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:17px 19px;cursor:pointer;color:#244539}.cs-details summary::-webkit-details-marker{display:none}.cs-details summary strong{display:block;font-size:14px}.cs-details summary small{display:block;color:#708277;margin-top:5px;font-size:11px}.cs-details summary>span:last-child{font-size:23px;color:#ab8c59}.cs-detailsbody{border-top:1px solid var(--line);padding:18px}.cs-detailsbody input{width:100%;border:1px solid #cddccf;border-radius:8px;padding:11px}.cs-lexicon{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}.cs-lexitem{border:1px solid #dbe5da;border-radius:9px;padding:10px;background:#fbfcfa}.cs-lexitem strong{display:block;font-size:13px;color:#174839}.cs-lexitem small{display:block;font-size:11px;color:#677b6c;line-height:1.4;margin-top:5px}.cs-lexitem button{margin-top:8px;border:0;background:#e6f0e7;border-radius:6px;color:#215b43;font-size:11px;padding:7px 9px;font-weight:800}.cs-more{margin-top:5px}.cs-grammar p{font-size:13px;line-height:1.8;max-width:850px;color:#4b6053}.cs-grammar a{color:#245d46}.cs-detailsbody>p{line-height:1.6;color:#556b59}footer{border-top:1px solid var(--line);padding:20px 0;color:#738175;font-size:11px;display:flex;justify-content:space-between;gap:12px}@media(max-width:920px){.cs-layout{grid-template-columns:1fr}.cs-desk{display:none}.cs-lexicon{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.cs-shell{padding:0 12px}.cs-header{height:44px}.cs-header-tag{font-size:9px}.cs-brand{font-size:13px}.cs-logo{width:24px;height:24px;font-size:17px}.cs-hero{padding:12px 0 10px}.cs-hero h1{font-size:25px;margin:4px 0}.cs-hero p{font-size:11px;line-height:1.25}.cs-eyebrow{font-size:9px}.cs-modes{gap:2px;padding:3px}.cs-modes button{font-size:10px;min-height:33px;padding:4px 3px}.cs-filters{padding:7px 0;gap:4px}.cs-session{gap:3px}.cs-session button{font-size:10px;padding:6px 7px}.cs-topiclabel{font-size:0;gap:0}.cs-topiclabel select{max-width:98px;font-size:10px;padding:6px 4px}.cs-cardtop{padding:9px 13px 7px;font-size:9px}.cs-progress-track{margin:0 13px}.cs-lesson{padding:11px 13px 9px}.cs-lesson h2{font-size:21px;min-height:44px;margin:7px 0}.cs-lesson p{font-size:11px;margin:4px 0}.cs-kicker{font-size:9px}.cs-options{padding:0 13px 7px;gap:6px}.cs-option{min-height:39px;padding:7px 9px;font-size:12px}.cs-option.selected{padding:6px 8px}.cs-entry{padding:0 13px 7px}.cs-actions{padding:6px 13px 12px;gap:5px}.cs-actions button{min-height:40px;padding:8px 9px;font-size:11px}.cs-feedback{margin:0 13px 8px}.cs-lexicon{grid-template-columns:1fr}.cs-details summary{padding:13px}.cs-detailsbody{padding:13px}.cs-extras{margin:14px 0 25px}footer span{display:none}}@media(max-width:340px){.cs-hero h1{font-size:23px}.cs-header-tag{display:none}.cs-topiclabel select{max-width:87px}.cs-session button{font-size:9px;padding:6px 6px}.cs-actions button{font-size:10px;padding:7px}}

/* V0.813 second pass: save-and-study belowfold workspace */
.cs-studyset{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;margin:14px 0 6px;border:1px solid #cfded0;background:#f2f7f2;border-radius:11px;flex-wrap:wrap}
.cs-studyset strong{display:block;color:#154335;font-size:13px}.cs-studyset strong span{font-weight:600;color:#53765f;margin-left:8px}.cs-studyset small{display:block;color:#66786b;font-size:11px;line-height:1.5;margin-top:4px;max-width:520px}.cs-studyset-actions{display:flex;align-items:center;gap:7px}.cs-studyset-actions button{min-height:40px;justify-content:center;white-space:nowrap}.cs-studyset-actions button:disabled{opacity:.48;cursor:not-allowed}.cs-saved-message{min-height:15px;font-size:11px;color:#3f674e}.cs-lex-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.cs-lexitem .cs-bookmark{background:#f1e7d5;color:#725321}.cs-lexitem .cs-bookmark[aria-pressed=true]{background:#d8ede0;color:#176043}
@media(max-width:520px){.cs-studyset{padding:12px;gap:10px}.cs-studyset-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.cs-studyset-actions button{font-size:11px;white-space:normal;min-width:0}.cs-lex-actions{display:grid;grid-template-columns:1fr 1fr}}

/* V0.813 third pass: optional below-the-fold real error-correction clinic */
.cs-clinic-header{display:flex;gap:14px;justify-content:space-between;align-items:start}.cs-clinic-header h3{font-family:Georgia,serif;font-size:24px;margin:4px 0;color:var(--forest)}.cs-clinic-header p{font-size:12px;color:var(--muted);max-width:540px;line-height:1.5;margin:6px 0 14px}.cs-clinic-meter{text-align:right;white-space:nowrap}.cs-clinic-meter strong,.cs-clinic-meter small{display:block}.cs-clinic-meter strong{font-size:20px;color:var(--forest)}.cs-clinic-meter small{font-size:11px;color:var(--muted)}.cs-clinic-card{background:#f4f8f3;border:1px solid #cfdfd2;border-radius:13px;padding:17px}.cs-clinic-question{font-family:Georgia,serif;font-size:clamp(19px,2.6vw,26px);line-height:1.4;color:var(--deep);margin:10px 0 17px}.cs-clinic-question mark{background:#f9dfb0;color:#533d24;border-radius:4px;padding:1px 3px}.cs-clinic-card label{display:block;font-weight:760;font-size:11px;margin:0 0 7px;color:#375c48}.cs-clinic-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.cs-clinic-entry input{min-width:0}.cs-clinic-entry button{white-space:nowrap;padding:10px 14px}.cs-clinic-buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.cs-clinic-buttons button{min-height:38px;padding:8px 13px}.cs-clinic-feedback{border-radius:9px;background:white;padding:11px 13px;border:1px solid #d0ddce;color:#264f3e;font-size:12px;line-height:1.6;margin:14px 0 0}.cs-clinic-feedback.wrong{border-color:#ebcbba;background:#fff7f3;color:#854335}.cs-clinic-finished{border-radius:12px;background:#e8f2e9;padding:18px}.cs-clinic-finished h3{font-family:Georgia,serif;font-size:24px;color:var(--forest);margin:0 0 8px}.cs-clinic-footnote{font-size:11px;color:#637b69;margin:12px 0 0}@media(max-width:500px){.cs-clinic-card{padding:12px}.cs-clinic-header h3{font-size:22px}.cs-clinic-entry button{font-size:11px;padding:8px 10px}.cs-clinic-question{font-size:19px;margin:8px 0 13px}}

/* V0813 context transfer: five legible firstfold modes without wrapping at 320px */
.cs-modes button{min-width:0}
@media(max-width:500px){.cs-modes button{font-size:9px;letter-spacing:-.01em;padding:5px 2px}}
@media(max-width:340px){.cs-modes button{font-size:8.5px;padding:4px 1px}}

/* V0813 production recall: independent, collapsed after primary workbench */
.cs-production-header{display:flex;align-items:start;justify-content:space-between;gap:12px}.cs-production-header h3{font-family:Georgia,serif;font-size:24px;color:var(--forest);margin:4px 0}.cs-production-header p{font-size:12px;color:var(--muted);max-width:530px;line-height:1.55;margin:6px 0 14px}.cs-production-meter{text-align:right;white-space:nowrap}.cs-production-meter strong{font-size:20px;color:var(--forest)}.cs-production-meter small{display:block;font-size:11px;color:var(--muted)}.cs-production-card{border:1px solid #d2decf;border-radius:13px;padding:17px;background:#f5f8f2}.cs-production-question{font-family:Georgia,serif;font-size:clamp(19px,2.3vw,26px);line-height:1.4;color:var(--deep);margin:12px 0 17px}.cs-production-card label{display:block;font-weight:750;color:#365a49;font-size:11px;margin-bottom:7px}.cs-production-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.cs-production-entry input{min-width:0}.cs-production-entry button{padding:9px 12px;white-space:nowrap}.cs-production-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.cs-production-buttons button{min-height:38px}.cs-production-feedback{margin-top:13px!important}.cs-production-shortcut{color:#5a7663;font-size:11px}.cs-production-card input:disabled{opacity:.65}@media(max-width:500px){.cs-production-header h3{font-size:20px}.cs-production-header p{margin-bottom:12px}.cs-production-card{padding:12px}.cs-production-entry button{font-size:11px;padding:8px 10px}.cs-production-question{font-size:19px}}

/* WIP: topic progress that never crowds the primary game. */
.cs-topicmap-note{font-size:12px;color:#556f61;line-height:1.6;margin:0 0 12px}.cs-topicmap-summary{font-size:12px;font-weight:750;color:#224a3c;margin-bottom:13px}.cs-topicmap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cs-topicmap-item{padding:13px;border:1px solid #d4e1d3;background:#fafcf9;border-radius:10px;min-width:0}.cs-topicmap-item strong{display:block;font-size:13px;color:#1c4939}.cs-topicmap-item p{font-size:11px;line-height:1.5;color:#567060;min-height:34px}.cs-topicmap-item button{min-height:36px;padding:7px 10px;margin-top:11px;font-size:11px;max-width:100%}.cs-topicmap-meter{height:7px;background:#e3eee4;border-radius:8px;overflow:hidden}.cs-topicmap-meter span{display:block;height:100%;background:#2a7860;border-radius:inherit}@media(max-width:850px){.cs-topicmap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.cs-topicmap-grid{grid-template-columns:1fr}.cs-topicmap-item p{min-height:0}}
