:root{font-family:Arial,Helvetica,sans-serif;font-size:16px;color:#173c57;background:#f8f6ef;--blue:#356899;--line:#b8c7d3;--cream:#ffe5ac}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ce7612}button{cursor:pointer;border:1px solid #b4bdc6;border-radius:3px;background:linear-gradient(#fff,#e3e6e8);color:#25475c;padding:7px 13px;font-size:.875rem}button:hover{background:#e1eef8;border-color:#527da6}button:disabled{opacity:.5;cursor:not-allowed}a{color:#245d94}.top{min-height:82px;max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 20px;background:#fff0d3;border-bottom:1px solid #d7cdb5;padding:14px 24px}.brand{text-decoration:none;font-family:Cambria,Georgia,serif;font-size:1.6rem;color:#256283}.philosophy{font-family:Cambria,Georgia,serif;font-size:1.125rem}.quiet{margin-left:auto}.workspace{max-width:1440px;margin:auto;display:grid;grid-template-columns:225px minmax(0,1fr);gap:26px;padding:22px 26px;min-height:calc(100vh - 82px)}.sidebar{padding-top:3px}.side-heading h2{font-size:.875rem;margin:0 0 10px;font-weight:400;color:#526b79}.lesson-button{display:block;width:100%;text-align:center;padding:7px 8px;border-radius:0;min-height:32px;margin-top:-1px;line-height:1.2}.lesson-button.topic{border:1px solid #6f97b9;color:#27617d;font-weight:600;background:linear-gradient(#fff,#e2e9ec);position:relative}.lesson-button span.play{display:none}.lesson-group{padding:8px 6px;background:var(--cream);border:1px solid #bfad8a;margin:0;text-align:center;font-size:.875rem;font-family:Cambria,Georgia,serif;color:#31617a}.side-foot{font-size:.75rem;color:#677c86;line-height:1.6;margin-top:16px}main{min-width:0}.lab{display:flex;flex-direction:column}.panel{background:white;border:1px solid var(--line)}.editor-panel{border:1px dotted #987d85}.editor-toolbar{min-height:48px;background:linear-gradient(#fafafa,#e9eaeb);display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;border-bottom:1px solid #c9c9c9}.editor-toolbar h2{font-family:Cambria,Georgia,serif;font-size:1rem;font-weight:400;margin:0}.editor-toolbar>span{font:.75rem Consolas,monospace;color:#566d79}.editor-toolbar>div{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}.editor-toolbar button{font-size:.75rem;padding:6px 8px}.code-area{position:relative;display:flex;height:clamp(360px,53vh,630px);overflow:hidden;background:white}#line-numbers{font:.9375rem/1.6 Consolas,'Courier New',monospace;width:43px;flex-shrink:0;white-space:pre;text-align:right;padding:17px 8px 17px 0;background:#f7f8f9;color:#97a3ad;overflow:hidden;border-right:1px solid #eceef0}#editor{font:.9375rem/1.6 Consolas,'Courier New',monospace;width:100%;min-width:0;border:0;border-radius:0;padding:17px 14px;color:#17224e;white-space:pre;resize:none;background:white;tab-size:4}#editor:focus{outline:none;box-shadow:inset 0 0 0 2px #cfdfed}#study-code{position:absolute;inset:0;overflow:auto;padding:17px 20px;background:white;font:1rem/1.7 Cambria,Georgia,serif;white-space:pre-wrap}#study-code button{display:inline;border:0;background:none;color:#293095;text-decoration:underline;font:inherit;padding:0;white-space:pre-wrap;text-align:left}#study-code button:hover{color:#a14f19}.editor-status{font-size:.75rem;color:#687b89;display:flex;justify-content:space-between;padding:7px 11px;border-top:1px solid #e0e4e7;background:#fbfcfd}.action-bar{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;background:var(--blue);padding:7px 12px;margin-top:13px}.action-bar button{min-width:88px;padding:6px 13px}.action-bar label{display:flex;align-items:center;background:var(--cream);font-size:.8125rem;padding:6px 9px;color:#485563;gap:5px}.action-bar input{width:auto;margin:0}.builder{padding:16px 18px;background:#fcfcfb;border-top:0;min-height:145px}.builder-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.builder-top h2{font:1rem Cambria,Georgia,serif;margin:0}.select-label{font-size:.8125rem;color:#5b7282}.builder-top select{max-width:310px;flex:1}.lesson-link{margin-left:auto}.guidance{font-size:.8125rem;color:#5f7280;line-height:1.55;margin:10px 0 13px}select,input,textarea{padding:8px 10px;border:1px solid #b9c5ce;border-radius:3px;background:white;color:#203749;font-size:.9375rem}#generator-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}#fields{display:flex;flex:1;gap:12px;flex-wrap:wrap}.field{flex:1 1 140px;min-width:125px}.field label{display:block;font-size:.8125rem;margin-bottom:5px}.field input,.field select,.field textarea{width:100%}.field textarea{min-height:75px;resize:vertical}.primary{background:var(--blue);border:1px solid #244e78;color:white;text-decoration:none;display:inline-block;border-radius:3px;padding:9px 16px;font-size:.9375rem}.primary:hover{background:#285984;color:white}.generate{padding:9px 21px}.error{color:#a32936;font-size:.875rem;line-height:1.5;margin:0;width:100%}.error:empty{display:none}.fragment-row{display:flex;gap:15px;align-items:center;margin-top:13px}.fragment-row>div{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.fragment-row>div>span{font-size:.75rem;color:#697c88;text-align:center}pre{font:.8125rem/1.55 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #d8e0e6;background:#f3f6f9;padding:10px;margin:0;max-height:160px;overflow:auto;flex:1;min-width:0}.insert{color:#244e78;border-color:#86a5bf}.feedback{font-size:.8125rem;line-height:1.6;padding:10px 0 5px;white-space:pre-wrap;color:#3a627e}.run-note{font-size:.75rem;color:#73818a;margin:6px 0}footer{text-align:center;font-family:Cambria,Georgia,serif;font-size:.8125rem;color:#8b938f;margin:18px 0 0}dialog{border:1px solid #9eafbd;border-radius:6px;max-width:580px;width:calc(100% - 32px);padding:26px;color:#25475c;box-shadow:0 15px 65px #1c354855}dialog::backdrop{background:#122b4570}dialog h2{font:1.6rem Cambria,Georgia,serif;margin:16px 0}dialog p,dialog li{font-size:1rem;line-height:1.7;color:#536d7d}dialog li{margin-bottom:9px}.eyebrow{font-size:.75rem;letter-spacing:1px}.dialog-top{display:flex;justify-content:space-between;align-items:center}.close{border:0;background:none;font-size:25px;padding:0 7px}.small{font-size:.875rem!important}.url-row{display:flex;gap:8px}.url-row input{width:100%;min-width:0;font-size:.8125rem}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.skip{position:fixed;top:-100px;left:12px;padding:12px;background:white;z-index:10}.skip:focus{top:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#study-code button{background:#edf5fc;padding:1px 4px;margin-left:-4px;border-radius:3px;text-decoration:none}#study-code button:hover{background:#fff0d3;text-decoration:none}#lesson-player{position:absolute;inset:0;z-index:3;background:#102332;display:flex;flex-direction:column;padding:12px}#lesson-player[hidden]{display:none}.player-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:white;padding:3px 3px 11px}.player-bar div{display:flex;flex-direction:column;gap:3px}.player-bar span{font-size:.65rem;letter-spacing:1.3px;color:#8fcfd4}.player-bar strong{font:1rem Cambria,Georgia,serif}.player-bar button{flex-shrink:0}#lesson-video{width:100%;min-height:0;flex:1;background:#000;object-fit:contain}#player-status{color:#fff;margin:8px 3px 0;font-size:.8rem}
@media(max-width:1050px){.workspace{grid-template-columns:190px minmax(0,1fr);gap:16px;padding:18px}.top{justify-content:flex-start}.philosophy{font-size:.9375rem}.editor-toolbar>div{margin-left:0}.action-bar button{min-width:70px}.builder{padding:13px}.builder-top h2{display:none}}
@media(max-width:720px){.workspace{grid-template-columns:1fr;gap:14px;padding:14px}.sidebar{min-width:0}.side-heading,.side-foot{display:none}#lessons{display:flex;gap:5px;overflow:auto;padding:4px 0}.lesson-group{display:none}.lesson-button{width:auto;flex-shrink:0;margin:0;border-radius:3px}.top{padding:12px 16px;gap:6px 12px}.brand{font-size:1.35rem}.philosophy{order:3;width:100%;font-size:.875rem}.quiet{font-size:.75rem}.code-area{height:360px}.action-bar{gap:5px}.action-bar button{min-width:0;padding:6px 10px}.fragment-row{flex-direction:column;align-items:stretch}.fragment-row>div{flex-direction:row;justify-content:space-between;align-items:center}.builder-top select{max-width:none;min-width:170px}.builder-top .select-label{display:none}.lesson-link{font-size:.75rem;padding:7px}.field{flex-basis:140px}.url-row{flex-wrap:wrap}.editor-toolbar button{font-size:.75rem}}
