@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'Golos Text',system-ui,sans-serif;color:#233d39;background:#f7f7f2;font-size:15px;--ink:#233d39;--muted:#707b75;--line:#dfe4dc;--paper:#fff;--green:#2b6256;--orange:#c96745;--sage:#e2eee4;--apricot:#f8e6d5;--lilac:#eae5f3;--blue:#e4eef3}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #bf744f;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #6d9988;outline-offset:1px}button{min-height:44px}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand{font-family:'Manrope','Golos Text',sans-serif}h1{font-size:32px;line-height:1.2;letter-spacing:-1.2px;font-weight:700;margin-bottom:12px}h2{font-size:21px;letter-spacing:-.6px;margin-bottom:16px}h3{font-size:17px;line-height:1.35;margin-bottom:9px}p{line-height:1.65}small,.small{font-size:12px;line-height:1.5}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:10px;font-weight:700;color:#748177;margin-bottom:12px}.shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100dvh}.sidebar{background:#eef1e8;padding:30px 20px;display:flex;flex-direction:column;border-right:1px solid var(--line);position:sticky;top:0;height:100dvh}.brand{font-size:30px;font-weight:800;letter-spacing:-1.6px;display:flex;gap:10px;align-items:center}.brandmark{width:32px;height:32px;background:var(--ink);border-radius:11px 11px 11px 3px;display:inline-grid;place-items:center;color:#f7f7f2;font-family:Georgia,serif;font-size:25px}.brand small{font-family:'Golos Text';font-size:10px;letter-spacing:1px;font-weight:500;border:1px solid #bec9bc;border-radius:5px;padding:3px 5px;margin-left:2px}.nav{display:grid;gap:5px;margin-top:42px}.nav button{display:flex;align-items:center;gap:13px;background:none;border:0;text-align:left;padding:12px 13px;color:#67736a;border-radius:9px;font-size:14px;min-height:48px}.nav button.active{background:var(--ink);color:white}.nav button:hover:not(.active){background:#e3e8dc}.icon{width:20px;height:20px;flex:none;vertical-align:middle}.sidebar-bottom{margin-top:auto;display:grid;gap:18px}.profile{display:flex;gap:10px;align-items:center;padding-top:22px;border-top:1px solid #d4dcd0}.avatar{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:50%;font-weight:600;background:#dae6d6;color:#3d5848}.avatar.apricot{background:var(--apricot)}.avatar.sage{background:var(--sage)}.avatar.lilac{background:var(--lilac)}.prototype-btn{background:none;text-align:left;border:1px solid #cbd5c5;color:#5e7164;padding:12px;border-radius:10px;font-size:12px;display:flex;gap:10px;align-items:center}.main{min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);padding:0 40px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fbfbf7}.topbar .path{font-size:13px;color:var(--muted)}.topbar .path b{font-weight:500;color:var(--ink)}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:6px 10px;background:#eef1e9;color:#596b5e;font-size:11px;white-space:nowrap}.dot{height:6px;width:6px;background:#799b67;border-radius:50%;display:inline-block}.content{max-width:1300px;margin:auto;padding:36px 40px 60px}.heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:25px}.heading-row p{margin-bottom:0;color:var(--muted);font-size:14px;max-width:620px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #ccd6cb;border-radius:9px;padding:10px 16px;color:var(--ink);background:white;font-size:13px;font-weight:500;text-decoration:none}.btn.primary{background:var(--ink);border-color:var(--ink);color:white}.btn.warm{background:#c96f4e;border-color:#c96f4e;color:white}.btn.subtle{background:transparent;border-color:transparent;padding-left:8px;padding-right:8px;color:#607365}.btn.danger{color:#a54838}.btn:hover{filter:brightness(.96)}.btn:active{transform:translateY(1px)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px 22px;display:flex;justify-content:space-between;align-items:center}.stat strong{display:block;font-family:Manrope,sans-serif;font-size:29px;letter-spacing:-1px;margin-bottom:3px}.stat .icon{color:#8e9d8a;width:25px;height:25px}.stat span{font-size:12px;color:var(--muted)}.two-col{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:24px;min-width:0}.panel+.panel{margin-top:20px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel-title h2{margin:0}.quiet-link{border:0;background:none;color:var(--green);font-size:12px;min-height:44px;padding:0 5px}.student-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #edf0e9}.student-row:last-child{border:0;padding-bottom:0}.student-row .grow{flex:1}.student-row p{font-size:12px;color:var(--muted);margin:4px 0}.student-row strong{font-size:14px;font-weight:500}.text-btn{border:0;background:transparent;padding:0;color:inherit;text-align:left;font-weight:500}.pill{border:1px solid #dce3d7;border-radius:5px;font-size:10px;padding:4px 7px;color:#5e705f;font-weight:500}.welcome-art{background:var(--apricot);border:1px solid #eddac6;border-radius:13px;padding:26px;position:relative;overflow:hidden}.welcome-art h2{font-size:24px;max-width:230px;line-height:1.25}.welcome-art p{font-size:13px;max-width:240px;color:#775e4b;margin-bottom:22px}.sketch{height:104px;position:relative;margin-bottom:18px}.sketch .paper{position:absolute;left:12px;top:6px;width:150px;height:94px;background:#fffdf5;border:1px solid #c6b6a0;border-radius:6px;transform:rotate(-6deg);padding:15px;font-size:12px;color:#5f6c5a;box-shadow:4px 5px 0 #e4cdb5}.sketch .paper em{font-family:Georgia,serif;font-size:21px;font-style:italic}.sketch .paper:after{content:'';display:block;height:20px;margin-top:10px;border-top:1px solid #ddd8c9;border-bottom:1px solid #ddd8c9}.sketch .pencil{position:absolute;left:165px;top:4px;width:10px;height:90px;background:#c77b50;border-radius:2px;transform:rotate(24deg)}.sketch .pencil:after{content:'';position:absolute;bottom:-12px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:12px solid #4b5145}.section-space{margin-top:30px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cards.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.material-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white;display:flex;flex-direction:column}.card-art{height:122px;display:flex;justify-content:space-between;align-items:center;padding:22px 24px;position:relative;overflow:hidden}.card-art.sage{background:var(--sage)}.card-art.apricot{background:var(--apricot)}.card-art.blue{background:var(--blue)}.card-art.lilac{background:var(--lilac)}.card-art .scene{width:100px;height:90px;opacity:.8}.card-art .lesson-number{font-family:Georgia,serif;font-size:48px;color:rgba(35,61,57,.35);font-style:italic}.card-body{padding:21px 23px;flex:1}.card-body p{font-size:12px;color:var(--muted);margin:7px 0 16px}.card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 23px 15px}.card-meta{font-size:11px;color:#73806f}.toolbar{display:flex;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line)}.tab{border:0;background:transparent;padding:12px 15px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent}.tab.active{border-bottom-color:var(--ink);color:var(--ink);font-weight:600}.search{background:#fff;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;padding:0 12px;gap:8px;min-width:200px}.search input{border:0;outline:0;background:transparent;min-height:44px;width:180px;color:var(--ink)}.empty{padding:35px 20px;text-align:center;color:var(--muted);border:1px dashed #cad6c8;border-radius:12px}.empty h3{color:var(--ink)}.empty p{font-size:13px;max-width:440px;margin:0 auto 15px}.stack{display:grid;gap:16px}.block{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px}.block .block-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#7a877b;display:flex;align-items:center;gap:9px;margin-bottom:15px}.block-number{border:1px solid #ced9cb;border-radius:50%;height:24px;width:24px;display:inline-grid;place-items:center;font-size:11px;flex:none}.block h3{font-size:18px;line-height:1.6;white-space:pre-line}.reading{white-space:pre-line;line-height:1.9;font-size:16px;color:#4b6051}.notice{border:1px solid #dfddca;border-radius:9px;background:#f8f5e9;color:#776b45;font-size:12px;padding:13px 16px;line-height:1.6;margin:16px 0}.notice.green{background:#ecf4ed;border-color:#d1e3d4;color:#427155}.notice.error{background:#fff0e9;border-color:#edccbc;color:#9a4d31}.info-list{display:grid;gap:18px}.info-list dt{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:6px}.info-list dd{margin:0;line-height:1.65;font-size:13px}.subheading{margin:26px 0 12px;font-size:14px}.field{display:grid;gap:8px;margin-bottom:17px}.field label{font-size:12px;font-weight:500;color:#56695a}.field input,.field textarea,.field select,.answer-input{width:100%;padding:13px 14px;border:1px solid #ccd6c9;border-radius:8px;background:#fff;color:var(--ink);font-size:16px;min-height:46px}.field textarea{min-height:100px;resize:vertical;line-height:1.6}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.editor{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px}.editor-menu{position:sticky;top:20px;align-self:start}.editor-menu button{width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:8px;min-height:48px;padding:12px;color:var(--muted);font-size:12px;display:flex;gap:10px;align-items:center;margin-bottom:5px}.editor-menu button.active{background:var(--sage);color:var(--ink);border-color:#cedece}.editor-menu .add{border:1px dashed #b9c8b5;margin-top:14px;color:var(--ink)}.editor-tools{display:flex;justify-content:space-between;align-items:center;padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:20px;gap:10px}.checkline{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px}.checkline input{width:20px;height:20px;accent-color:var(--green)}.savebar{position:sticky;bottom:0;background:#f7f7f2ed;backdrop-filter:blur(10px);padding:14px 0;margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);z-index:3}.choice{display:flex;align-items:center;gap:12px;border:1px solid #d8e0d3;padding:14px;border-radius:8px;margin:10px 0;min-height:52px;cursor:pointer;line-height:1.5;font-size:15px}.choice:has(input:checked){background:#edf5ec;border-color:#72947a}.choice input{width:19px;height:19px;accent-color:var(--green);flex:none}.learner-shell{max-width:880px;margin:auto;padding:24px 28px 80px}.learner-top{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:34px}.learner-intro{margin-bottom:25px}.learner-intro h1{font-size:34px}.learner-intro p{font-size:14px;color:var(--muted)}.mode-switch{display:inline-flex;border:1px solid #d6dfd0;border-radius:8px;overflow:hidden;margin-bottom:14px}.mode-switch button{border:0;background:transparent;color:#6f7e70;padding:10px 14px;font-size:12px}.mode-switch .active{background:#e8f0e4;color:var(--ink)}.ink-wrap{background:#fcfcf7;border:1px solid #cbd7c5;border-radius:10px;overflow:hidden}.ink-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 10px;border-bottom:1px solid #dfe6d8;flex-wrap:wrap;background:#f4f6ef}.ink-tools .checkline{font-size:11px}.ink{width:100%;height:235px;display:block;touch-action:none;cursor:crosshair;background:repeating-linear-gradient(to bottom,transparent 0,transparent 34px,#e6eadd 35px,#e6eadd 36px);user-select:none;-webkit-user-select:none}.hint{padding:12px 15px;background:#f4f5ed;border-left:3px solid #a7b490;border-radius:0 7px 7px 0;font-size:13px;line-height:1.6;margin:12px 0}.progress-track{height:5px;background:#e4e9de;border-radius:5px;overflow:hidden;margin:12px 0}.progress-track div{height:100%;background:#648b71;transition:width .2s}.result-row{display:flex;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.result-row .grow{flex:1}.result-row p{margin:4px 0;font-size:12px;color:var(--muted)}.status{border-radius:6px;padding:6px 9px;font-size:11px;background:#fbeddc;color:#96662f}.status.done{background:#e5f1e4;color:#466d46}.result-answer{border-left:3px solid #b6c9b0;padding:10px 16px;background:#f5f7f0;white-space:pre-wrap;margin:12px 0;font-size:15px;line-height:1.7}.ink-static{width:100%;height:220px;background:#fafbf4;border:1px solid var(--line);border-radius:8px}.mono{font-variant-numeric:tabular-nums}.student-header{display:flex;gap:18px;align-items:center;margin-bottom:20px}.student-header .avatar{width:65px;height:65px;font-size:24px}.student-header h1{margin:0 0 7px}.mini{font-size:11px}.mobile-profile{display:none}dialog{border:1px solid #cfd9c9;border-radius:16px;padding:30px;max-width:560px;width:calc(100% - 36px);color:var(--ink);box-shadow:0 20px 90px #20382830;background:#fdfdf8}dialog::backdrop{background:#233c385e;backdrop-filter:blur(3px)}dialog h2{font-size:23px}dialog p{font-size:13px}dialog .actions{justify-content:flex-end;margin-top:24px}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.type-grid button{padding:18px 12px;text-align:left;background:white;border:1px solid #d7e0d1;border-radius:9px;color:var(--ink);font-size:13px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;padding:13px 23px;box-shadow:0 5px 25px #1b322328;z-index:50;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw}#toast.show{opacity:1}.text-area-small{min-height:70px!important}.spaced{margin-top:20px}.preserve{white-space:pre-line}.instruction{padding:14px 18px;border-radius:9px;background:#edf2e8;font-size:12px;line-height:1.65;color:#5b705d}.instruction strong{color:var(--ink)}.full{width:100%}.back{margin-bottom:18px}.result-card-title{display:flex;align-items:center;justify-content:space-between}.hand-badge{color:#9d6642;font-size:11px}.no-margin{margin:0}.demo-tag{font-size:10px;color:#8a957e;margin-left:8px}.selected-card{border-color:#789a78}.avatar-group{display:flex;margin-left:8px}.avatar-group .avatar{width:25px;height:25px;font-size:10px;border:2px solid white;margin-left:-6px}.list-meta{display:flex;align-items:center;gap:8px}.narrow{max-width:800px}.note-box{border:1px solid #dddcca;padding:20px;border-radius:10px;background:#faf7e8}.note-box textarea{border:0;background:transparent;width:100%;min-height:110px;resize:vertical;color:#736b45;font-size:14px;line-height:1.7}.student-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.student-card p{font-size:13px;color:var(--muted);min-height:64px}.student-card h3{margin-top:18px}.student-card .actions{margin-top:15px}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:7px;min-width:44px;color:var(--ink)}.canvas-note{font-size:11px;color:var(--muted);margin:8px 0 15px;line-height:1.6}.side-note{font-size:12px;color:var(--muted);line-height:1.65;margin-top:18px}
@media(min-width:1400px){.content{padding-top:45px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:25px 12px}.content{padding:28px 24px 60px}.topbar{padding:0 24px}.two-col{grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);gap:18px}.cards.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.cards.compact .material-card:last-child{display:none}.student-grid{grid-template-columns:repeat(2,1fr)}.editor{grid-template-columns:165px minmax(0,1fr);gap:14px}.heading-row h1{font-size:29px}.heading-row .actions{max-width:220px;justify-content:flex-end}.panel{padding:20px}}
@media(max-width:850px){.shell{display:block}.sidebar{position:sticky;z-index:10;top:0;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:12px 22px;display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:center}.brand{font-size:25px}.brandmark{width:28px;height:28px}.brand small{display:none}.nav{display:flex;margin:0;justify-content:flex-end;gap:4px}.nav button{font-size:11px;padding:10px;min-height:46px;gap:6px}.nav .icon{width:17px;height:17px}.sidebar-bottom{display:none}.topbar{height:54px}.content{padding:25px 24px 45px}.two-col{grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr)}.editor-menu{top:85px}.mobile-profile{display:block}.stat{padding:16px}.stat .icon{display:none}.stat-grid{gap:10px}.block{padding:20px}.learner-top .brand small{display:block}.card-art{height:104px}.card-body{padding:18px}.card-foot{padding:0 18px 12px}.cards{gap:14px}.heading-row{gap:12px}.heading-row .actions .btn{font-size:12px;padding:10px 12px}}
@media(max-width:650px){.sidebar{padding:10px 12px;grid-template-columns:1fr}.brand{display:none}.nav{justify-content:space-between}.nav button{flex:1;justify-content:center;flex-direction:column;font-size:10px;gap:5px}.topbar{padding:0 18px}.content{padding:25px 18px 40px}.heading-row{display:block}.heading-row .actions{margin-top:18px;max-width:none;justify-content:flex-start}.heading-row h1{font-size:28px}.stat-grid{gap:8px}.stat{padding:14px 10px}.stat strong{font-size:24px}.stat span{font-size:10px}.two-col,.student-grid{grid-template-columns:1fr}.welcome-art{padding:22px}.welcome-art .sketch{float:right;width:150px;transform:scale(.8);transform-origin:right center}.welcome-art h2{font-size:22px;max-width:220px}.cards,.cards.compact{grid-template-columns:1fr}.cards.compact .material-card:last-child{display:flex}.card-art{height:105px}.toolbar{gap:12px}.search{width:100%}.search input{width:100%}.editor{grid-template-columns:1fr}.editor-menu{position:static;display:flex;overflow:auto;gap:5px;padding-bottom:5px}.editor-menu button{width:auto;flex:none;max-width:180px}.editor-menu .add{margin-top:0}.field-grid{grid-template-columns:1fr;gap:0}.learner-shell{padding:18px 16px 60px}.learner-top{margin-bottom:25px;gap:10px}.learner-top .brand{display:flex;font-size:24px}.learner-intro h1{font-size:28px}.block{padding:20px 17px}.block h3{font-size:16px}.savebar{align-items:flex-start}.savebar .btn{padding:10px;font-size:12px}.result-row{align-items:flex-start;gap:10px;flex-wrap:wrap}.status{font-size:10px}.editor-tools{flex-wrap:wrap}.btn{min-height:46px}.tabs{width:100%;justify-content:space-between}.tab{padding:10px;font-size:12px}.ink{height:250px}.learner-top .badge{display:none}.profile{padding:0;border:0}.note-box{margin-top:20px}}
/* Handwriting controls: large tap targets, explicit tool and input state. */
.ink-wrap{touch-action:none;overscroll-behavior:contain;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.ink-tools{padding:10px;gap:10px}.ink-tools .actions{flex-wrap:wrap;gap:8px}.ink-tools .btn{min-height:44px;min-width:80px}.ink-tool[aria-pressed=true]{background:#29443d;color:#fff;border-color:#29443d}.ink-input-label{display:flex;align-items:center;gap:8px;font-size:12px}.ink-input-label select{min-height:44px;max-width:100%;border:1px solid #cbd7c5;border-radius:8px;background:#fff;padding:6px;color:#233d39}.ink-help{font-size:12px;line-height:1.5;padding:10px 12px;color:#53685d;border-bottom:1px solid #e5eadf}.ink.erasing{cursor:crosshair;background-color:#fff8ec}.ink{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
