:root{--paper:#f8f6ef;--white:#fffefa;--ink:#25372f;--muted:#606d65;--green:#234f43;--soft:#e7ede4;--line:#d8ded3;--orange:#9a451e;--peach:#f8e9dc;--red:#a22f34;--radius:12px;font-family:Segoe UI,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ae651d;outline-offset:3px}a{color:var(--green)}[hidden]{display:none!important}button{min-height:44px}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,serif;font-weight:400}h1{font-size:clamp(2.15rem,3.5vw,3.2rem);line-height:1.13;letter-spacing:-.045em}h2{font-size:1.5rem;line-height:1.25}h3{font-size:1rem}label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.9rem}input,select,textarea{width:100%;min-height:44px;border:1px solid #aeb9ac;background:var(--white);border-radius:8px;padding:10px 12px;color:var(--ink)}textarea{resize:vertical}button{border:0;border-radius:8px;padding:10px 16px;line-height:1.35;background:transparent;color:var(--ink)}.primary{background:var(--green);color:white;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:10px}.primary:hover{background:#163d32}.secondary{border:1px solid #a4b5a1;background:var(--white)}.secondary:hover,.quiet:hover{background:var(--soft)}.quiet{color:var(--green);font-size:.88rem;padding:8px 10px}.muted,.help{color:var(--muted)}.help{font-weight:400;font-size:.78rem}.fineprint{font-size:.8rem;color:var(--muted)}.form-error{color:var(--red);font-size:.9rem;min-height:1em}.danger{color:var(--red)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip{position:fixed;top:-100px;left:12px;background:white;z-index:30;padding:12px}.skip:focus{top:10px}.wordmark{font:600 3.1rem/1 Georgia,serif;letter-spacing:-.07em;text-decoration:none}.brand-dot{color:#aa542e}.brand-caption{font-size:.8rem;color:var(--muted);margin:7px 0 0}.login-shell{min-height:95vh;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:8vw;max-width:1150px;padding:70px 50px;margin:auto}.login-intro h1{margin:65px 0 25px}.login-intro>p:not(.brand-caption){color:var(--muted);line-height:1.9}.login-note{margin-top:45px;padding-top:22px;border-top:1px solid var(--line);font-size:.9rem}.login-form{padding:36px;background:var(--white);border:1px solid var(--line);border-radius:18px;display:grid;gap:20px}.login-form h2{font-size:1.9rem}.login-form>p{color:var(--muted)}#demo-banner{text-align:center;background:#ece5cf;color:#554625;padding:8px 18px;font-size:.8rem;border-bottom:1px solid #d8ceaf}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:15px 22px;border-radius:10px;max-width:min(90vw,650px);z-index:100;box-shadow:0 5px 25px #25372f20}#notice.error{background:#852f32}.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 37px)}.sidebar{padding:35px 24px 20px;background:#eef0e8;border-right:1px solid var(--line);display:flex;flex-direction:column}.sidebar .wordmark{font-size:2.7rem}.student-switch{margin:40px 0 28px}.student-switch label{font-size:.73rem;font-weight:400;margin-bottom:8px}.student-switch select{font-weight:600;font-size:1.04rem;background:#fffefa}.student-switch p{margin:7px 0 0 12px;font-size:.8rem;color:var(--muted)}nav{display:grid;gap:5px}.nav-button{display:flex;gap:12px;text-align:left;padding:11px 12px;font-size:.88rem;align-items:center}.nav-button>span{font-size:1.2rem;width:20px;text-align:center}.nav-button:hover{background:#e0e7dc}.nav-button.active{background:var(--green);color:white}.sidebar-bottom{margin-top:auto;padding-top:40px;font-size:.8rem;color:var(--muted)}.sidebar-bottom .quiet{padding-left:0}main{padding:45px clamp(24px,3.5vw,64px) 24px;max-width:1550px;width:100%;margin:auto;align-self:start}.page-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:30px}.date-heading{font-size:.8rem;color:var(--muted);margin-bottom:12px}.page-header h1{margin-bottom:12px}.page-header>div>p:last-child{color:var(--muted);font-size:.95rem}.page-header .primary{flex-shrink:0}.daily-strip{border-top:1px solid #b5c4b0;border-bottom:1px solid #b5c4b0;padding:20px 0;margin-bottom:34px;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}.daily-copy{display:flex;gap:16px;align-items:center}.daily-mark{font-family:Georgia,serif;font-size:2.8rem;color:var(--green);line-height:1}.daily-copy h2{font-family:inherit;font-size:.97rem;font-weight:600}.daily-copy p{color:var(--muted);font-size:.81rem;margin-top:4px}.daily-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.daily-controls input{width:145px;font-size:.8rem}.daily-controls select{width:225px;font-size:.8rem}.daily-controls button{font-size:.8rem}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:38px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px;padding-bottom:15px;border-bottom:1px solid var(--line)}.section-heading h2{font-size:1.7rem}.section-heading p{font-size:.8rem;color:var(--muted)}.task-row{display:flex;gap:15px;align-items:flex-start;padding:22px 0;border-bottom:1px solid var(--line)}.task-check{flex:0 0 44px;height:44px;border:1px solid #9aab98;border-radius:50%;padding:0;margin-top:9px;color:var(--green);font-size:1.2rem}.task-check:hover{background:var(--soft)}.task-check.completed{background:var(--green);color:white}.task-body{min-width:0;flex:1}.task-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.75rem;color:var(--muted);margin-bottom:6px}.kind{font-size:.7rem;border-radius:4px;padding:2px 6px;background:var(--soft);color:#365642}.kind.exam{background:var(--peach);color:var(--orange)}.task-title{padding:0;min-height:32px;border-radius:3px;display:block;font-size:1rem;line-height:1.45;font-weight:600;text-align:left;overflow-wrap:anywhere}.task-title:hover{text-decoration:underline}.task-notes{font-size:.82rem;color:var(--muted);margin-top:5px;overflow-wrap:anywhere;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.task-bottom{display:flex;gap:12px;flex-wrap:wrap;font-size:.75rem;margin-top:9px;color:var(--muted)}.overdue{color:var(--red)}.in-progress{color:var(--green);font-weight:600}.empty-state{padding:50px 12px 55px;text-align:center}.empty-symbol{font-family:Georgia,serif;font-size:2.8rem;color:var(--green);margin-bottom:15px}.empty-state h2{margin-bottom:12px}.empty-state p{max-width:380px;margin:0 auto 20px;color:var(--muted);font-size:.9rem}.upcoming{padding-left:24px;border-left:1px solid var(--line)}.upcoming h2{font-size:1.4rem;margin-bottom:8px}.upcoming>p{font-size:.8rem;color:var(--muted)}.deadline{display:grid;grid-template-columns:39px 1fr;gap:13px;padding:20px 0;border-bottom:1px solid var(--line)}.deadline-date{font:1.65rem/1 Georgia,serif;color:var(--orange)}.deadline-date span{display:block;font: .67rem/1.4 Segoe UI,system-ui,sans-serif;color:var(--muted);margin-top:5px}.deadline h3{font-size:.84rem;line-height:1.5;overflow-wrap:anywhere}.deadline p{font-size:.73rem;color:var(--muted);margin-top:5px}.upcoming-note{font-size:.82rem;color:var(--muted);padding-top:26px;line-height:1.8}.page-footer{margin-top:45px;padding-top:17px;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between;color:var(--muted);font-size:.76rem}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:30px}.week-day{border:1px solid var(--line);background:var(--white);display:flex;flex-direction:column;align-items:center;padding:12px 2px;gap:2px;font-size:.72rem}.week-day strong{font:1.5rem Georgia,serif}.week-day.selected{background:var(--green);color:white;border-color:var(--green)}.week-day small{font-size:.62rem}.group-date{font-family:inherit;font-weight:600;font-size:.85rem;padding:24px 0 0;color:var(--green)}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;background:var(--white);color:var(--ink);width:min(580px,calc(100vw - 24px));max-height:90vh;overflow:auto}dialog::backdrop{background:#182e2866}#task-form{display:grid;gap:18px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-heading h2{font-size:1.9rem}.icon-button{font-size:1.6rem;padding:0;min-width:44px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px}.form-actions .danger{margin-right:auto}.settings-section{padding:24px 0;border-bottom:1px solid var(--line)}.settings-section h2{margin-bottom:10px}.settings-section>p{font-size:.9rem;color:var(--muted);margin-bottom:20px}.settings-form{display:grid;gap:14px;max-width:450px}.connection-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.connection-row p{font-size:.8rem;color:var(--muted)}.secret-result{margin:15px 0;padding:15px;background:var(--soft);border-radius:8px}.secret-result p{margin-bottom:10px;font-size:.85rem}.secret-result textarea{font-family:monospace;font-size:.8rem;word-break:break-all}.history-row{padding:18px 0;border-bottom:1px solid var(--line)}.history-row p{font-size:.82rem;color:var(--muted);margin-top:5px}.history-row h3{overflow-wrap:anywhere}.content-grid:has(.settings-section),.content-grid:has(.history-list){grid-template-columns:1fr}.filter-row{margin:12px 0;display:flex;justify-content:flex-end}
@media(min-width:1600px){.content-grid{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:1100px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:28px 16px}.content-grid{grid-template-columns:1fr}.upcoming{border-left:0;border-top:1px solid var(--line);padding:25px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.upcoming h2,.upcoming>p,.upcoming-note{grid-column:1/-1}.page-header{align-items:flex-start}.page-header h1{font-size:2.25rem}}
@media(max-width:720px){.login-shell{grid-template-columns:1fr;padding:35px 22px;gap:30px}.login-intro h1{margin-top:30px}.login-note{display:none}.login-form{padding:25px}.app-shell{grid-template-columns:1fr}.sidebar{padding:18px 20px 0;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:4px 15px}.sidebar .wordmark{font-size:2.4rem;align-self:end}.sidebar>.brand-caption{grid-column:1;grid-row:2;margin:0 0 14px}.student-switch{grid-column:2;grid-row:1/3;margin:0;align-self:center}.student-switch label{font-size:.65rem}.student-switch p{display:none}.student-switch select{padding:8px;font-size:.9rem}.sidebar nav{grid-column:1/-1;display:flex;overflow:auto;gap:5px;padding:8px 0 12px;scrollbar-width:thin}.nav-button{flex-shrink:0;padding:10px 12px;font-size:.78rem;gap:6px}.nav-button>span{display:none}.sidebar-bottom{grid-column:1/-1;margin:0;padding:0;display:flex;justify-content:space-between;align-items:center}.sidebar-bottom p{font-size:.7rem}.sidebar-bottom button{font-size:.72rem}main{padding:28px 20px 18px}.page-header{gap:12px;margin-bottom:22px}.page-header h1{font-size:2.2rem}.page-header .primary{font-size:.8rem;padding:10px;max-width:116px;align-self:center}.page-header .primary span{display:none}.page-header>div>p:last-child{font-size:.82rem}.date-heading{font-size:.72rem}.daily-strip{padding:18px 0;margin-bottom:26px}.daily-copy p{font-size:.75rem}.daily-mark{display:none}.daily-controls{width:100%;display:grid;grid-template-columns:1fr auto}.daily-controls input{width:100%;grid-column:1/-1}.daily-controls select{width:100%}.content-grid{gap:25px}.task-row{gap:11px;padding:18px 0}.task-check{flex-basis:44px}.task-title{font-size:.95rem}.section-heading h2{font-size:1.55rem}.section-heading p{font-size:.72rem}.week-strip{gap:4px}.week-day{font-size:.65rem}.week-day strong{font-size:1.3rem}.week-day small{font-size:.55rem}.page-footer{align-items:flex-start;margin-top:25px;flex-direction:column}.page-footer .quiet{padding-left:0}.form-grid{grid-template-columns:1fr}dialog{padding:22px}.dialog-heading h2{font-size:1.6rem}.form-actions{flex-wrap:wrap}.upcoming{grid-template-columns:1fr}.connection-row{align-items:flex-start}.login-intro>p:not(.brand-caption){font-size:.9rem}}
.is-busy{cursor:progress}.loading-copy{padding:35px 0;color:var(--muted)}.section-heading p{white-space:nowrap;flex-shrink:0}h1{letter-spacing:-.035em}.wordmark{letter-spacing:-.04em}.task-title{min-height:44px}input::placeholder,textarea::placeholder{color:#677168;opacity:1}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
