
:root{
 --bg:#f6f9fa;--surface:#fff;--text:#18353b;--muted:#71878b;--line:#e3ecee;
 --primary:#0081a7;--primary2:#00afb9;--soft:#e5f5f5;--shadow:0 12px 32px rgba(25,60,65,.07);
 --radius:18px;--sidebar:238px;
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}
button,input{font:inherit}button{cursor:pointer}.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);padding:28px 20px;display:flex;flex-direction:column;z-index:30}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-size:20px;font-weight:800;margin:0 10px 34px}.brandmark{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white}
nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;gap:13px;align-items:center;padding:11px 13px;border-radius:10px;color:#60777b;text-decoration:none;font-size:14px}.nav-link span{width:18px;text-align:center}.nav-link:hover,.nav-link.active{background:var(--soft);color:#087d85;font-weight:700}.quote{margin-top:auto;background:var(--soft);padding:17px;border-radius:14px;font-size:13px;line-height:1.5}.logout{border:0;background:transparent;color:var(--muted);text-align:left;padding:15px 12px 0}
main{margin-left:var(--sidebar)}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 5vw;position:sticky;top:0;z-index:20}.search{height:42px;background:#f1f5f6;border-radius:10px;display:flex;align-items:center;gap:8px;padding:0 13px;max-width:430px;width:42%;}.search input{border:0;outline:0;background:transparent;width:100%;color:var(--text)}.wide{width:100%;max-width:none;background:#fff;border:1px solid var(--line);margin-bottom:28px}.icon-btn{margin-left:auto;border:0;background:transparent}.profile{display:flex;gap:9px;align-items:center}.profile small,.profile strong{display:block}.profile small{font-size:11px;color:var(--muted)}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:#087d85;font-weight:800}
.page{padding:44px 5vw 80px;max-width:1500px}.page h1{font-size:31px;margin:0 0 7px}.page h2{font-size:19px;margin:26px 0 14px}.page p{color:var(--muted);line-height:1.55}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}.pagehead p{margin:0}.hero{background:linear-gradient(125deg,var(--primary),var(--primary2));color:white;padding:38px;border-radius:24px;display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.hero h1{font-size:38px}.hero p{color:rgba(255,255,255,.85)}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:800}.hero-orb{width:75px;height:75px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:32px}
.grid.two{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.mt{margin-top:24px}.task-feature{padding:27px}.tag{font-size:10px;letter-spacing:.1em;font-weight:800;color:#07858c}.primary,.secondary{border-radius:10px;padding:11px 16px;font-weight:700}.primary{border:0;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white}.secondary{border:1px solid var(--line);background:white;color:var(--text)}.full{width:100%;margin-top:10px}.list>div{display:grid;grid-template-columns:150px 1fr auto;gap:14px;align-items:center;padding:15px 4px;border-bottom:1px solid var(--line)}.list>div:last-child{border:0}.list span,.list small{color:var(--muted)}.big>div{padding:20px 7px}.clickable{cursor:pointer}.clickable:hover{background:#f8fbfb}.schedule{display:grid;grid-template-columns:60px 1fr;gap:16px;padding-top:10px}.schedule span{color:var(--muted)}.progress{height:8px;background:#edf2f2;border-radius:20px;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--primary2))}
.tabs{display:flex;gap:7px;margin-bottom:22px}.tabs button{border:0;background:transparent;color:var(--muted);padding:8px 12px;border-radius:9px}.tabs button.active{background:var(--soft);color:#087d85;font-weight:700}
.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.subject-card{min-height:155px;text-align:left;border:0;border-radius:18px;padding:22px;color:white;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:var(--shadow)}.subject-card h3{font-size:18px;margin:15px 0 5px}.subject-card p,.subject-card small{color:rgba(255,255,255,.82)}.subject-icon{font-size:20px}.compact .subject-card{min-height:125px}
.drawer{position:fixed;z-index:60;right:-540px;top:0;width:min(500px,90vw);height:100vh;background:white;box-shadow:-20px 0 50px rgba(20,50,55,.16);padding:46px 38px;transition:.28s ease;overflow:auto}.drawer.open{right:0}.drawer:before{content:"";position:absolute;inset:0 0 auto;height:9px;background:linear-gradient(90deg,var(--primary),var(--primary2))}.close{position:absolute;right:25px;top:25px;border:0;background:#f2f6f6;border-radius:50%;width:34px;height:34px;font-size:22px}.drawer h2{font-size:27px}.drawer-links{display:grid;margin-top:25px}.drawer-links a{padding:17px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text);font-weight:700}.file-row{padding:17px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:5px}.file-row span{color:var(--muted);font-size:13px}
.messages{padding:0;display:grid;grid-template-columns:330px 1fr;min-height:590px;overflow:hidden}.threads{border-right:1px solid var(--line)}.thread{padding:20px;border-bottom:1px solid var(--line)}.thread.active{background:var(--soft)}.thread p{margin:5px 0;font-size:13px}.thread small{color:var(--muted)}.chat{padding:25px;display:flex;flex-direction:column}.chat h3{border-bottom:1px solid var(--line);padding-bottom:18px}.chat h3 small{display:block;color:var(--muted);font-weight:400}.bubble{max-width:68%;padding:13px 16px;border-radius:15px;margin:8px 0;background:#f1f5f6}.bubble.me{align-self:flex-end;background:var(--soft)}.composer{margin-top:auto;display:flex;gap:8px}.composer input{flex:1;border:1px solid var(--line);border-radius:10px;padding:12px}
.calendar{padding:0;overflow:hidden}.cal-head,.cal-grid{display:grid;grid-template-columns:repeat(5,1fr)}.cal-head b{padding:17px;border-right:1px solid var(--line);text-align:center}.cal-head .today{background:var(--soft)}.cal-grid>div{min-height:350px;border-right:1px solid var(--line);padding:13px}.event{display:block;background:var(--soft);padding:12px;border-radius:9px;margin-bottom:9px;font-size:13px}.event.soft{background:#f4f1fa}
.file-subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.file-subject{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;text-align:left;display:grid;gap:9px;color:var(--text)}.file-subject>span{color:#0a969e;font-size:22px}.file-subject small{color:var(--muted)}.notice{background:var(--soft);padding:15px 18px;border-radius:12px;margin-bottom:20px;color:#52777a;font-size:13px}.assessment{background:#f8fbfb;border-radius:14px;padding:18px;margin-top:25px}
.resource-search{background:var(--soft);border-radius:20px;padding:24px;margin-bottom:28px}.resource-search h2{margin-top:0}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips span{background:white;padding:7px 10px;border-radius:20px;font-size:12px;color:var(--muted)}
.settings-grid,.help-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.bigicon{font-size:25px;color:#07949b}.linkbtn{border:0;background:transparent;padding:0;color:#07858c;font-weight:700}.palette-row{display:flex;gap:10px;margin-top:15px}.palette{width:36px;height:36px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px var(--line)}.p1{background:linear-gradient(135deg,#0081a7,#00afb9)}.p2{background:linear-gradient(135deg,#0f3d3a,#3c8d79)}.p3{background:linear-gradient(135deg,#7161a8,#a78bca)}.faq details{padding:14px 0;border-bottom:1px solid var(--line)}.faq summary{font-weight:700;cursor:pointer}
.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eef8f8,#f8fbfb)}.login-wrap{width:min(440px,90vw)}.login-card{background:white;border:1px solid var(--line);border-radius:24px;padding:38px;box-shadow:var(--shadow)}.login-brand{margin:0 0 30px}.login-card h1{font-size:30px;margin-bottom:7px}.login-card p{color:var(--muted)}.login-card label{display:grid;gap:7px;margin:18px 0;font-size:13px;font-weight:700}.login-card input{padding:13px;border:1px solid var(--line);border-radius:10px;outline:none}.demo-hint{background:var(--soft);border-radius:12px;padding:14px;margin-top:20px;font-size:12px;line-height:1.55}.error{color:#a33;font-size:13px;min-height:18px}
@media(max-width:900px){:root{--sidebar:78px}.brand span:last-child,.nav-link:not(.active){font-size:0}.nav-link.active{font-size:0}.nav-link span{font-size:17px}.quote,.logout{display:none}.sidebar{padding:25px 13px}.brand{margin-left:8px}.grid.two,.subject-grid,.file-subject-grid,.settings-grid,.help-grid{grid-template-columns:1fr}.messages{grid-template-columns:1fr}.threads{display:none}.page{padding:30px}.profile div:last-child{display:none}}

/* Skoleblikk icon system */
.nav-icon{width:20px!important;height:20px;display:grid;place-items:center;flex:0 0 20px}
.nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.subject-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.16)}
.subject-icon svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Approved Skoleblikk home dashboard */
.home-page{background:#f7f2e9}
.home-page .topbar{display:none}
.home-page .page{padding:0;max-width:none}
.home-page .sidebar{background:linear-gradient(180deg,#0d4b43 0%,#155b4e 72%,#0d4b43 100%);border:0;color:#fff}
.home-page .brand,.home-page .nav-link,.home-page .logout{color:#fff}
.home-page .brandmark{background:linear-gradient(135deg,#f3b65b,#f6e6c7);color:#0d4b43}
.home-page .nav-link:hover,.home-page .nav-link.active{background:rgba(255,255,255,.18);color:#fff}
.home-page .quote{background:transparent;color:#fff;font-family:Georgia,serif;font-style:italic;font-size:15px;border-top:1px solid rgba(255,255,255,.25);border-radius:0;padding:22px 5px}
.home-cover{height:210px;position:relative;padding:55px 42px 30px;overflow:hidden;background:
linear-gradient(90deg,rgba(247,231,204,.68),rgba(255,194,145,.44)),
radial-gradient(circle at 78% 20%,#ffe5b8 0 7%,transparent 24%),
linear-gradient(160deg,#d9ded2 0 42%,#a3b2a4 43% 49%,#637d6e 50% 56%,#33594c 57% 100%)}
.home-cover:after{content:"";position:absolute;left:0;right:0;bottom:0;height:50px;background:linear-gradient(165deg,transparent 0 48%,rgba(38,80,68,.65) 49% 58%,rgba(25,68,57,.82) 59%);opacity:.6}
.home-cover-copy{position:relative;z-index:2}.home-cover-copy h1{font-size:48px;margin:7px 0 0;color:#073e35}.home-cover-copy p{margin:0;color:#123f38;font-size:18px;font-weight:700}.cover-search{position:absolute;z-index:3;right:90px;top:20px;width:330px;background:rgba(255,255,255,.92)}.cover-note{position:absolute;z-index:3;right:38px;bottom:30px;color:white;font-family:Georgia,serif;font-style:italic;font-size:18px;transform:rotate(-5deg);text-align:center}
.home-dashboard{display:grid;grid-template-columns:minmax(600px,1.65fr) minmax(300px,.9fr);gap:18px;padding:16px 22px 40px;background:linear-gradient(135deg,#faf7f0,#fff9f1)}
.home-panel{background:rgba(255,255,255,.9);border:1px solid #eee7dc;border-radius:17px;padding:14px;box-shadow:0 5px 18px rgba(60,50,35,.05)}
.panel-title-row{display:flex;align-items:center;gap:18px;margin-bottom:10px}.panel-title-row h2{font-size:26px;margin:0}.panel-title-row>a{margin-left:auto;text-decoration:none;color:#0d594d;font-size:12px;font-weight:700}.mini-progress{width:210px;height:10px;border-radius:20px;background:#eee8df;overflow:hidden;display:flex}.mini-progress i{width:40%;background:#0f594c}.mini-progress b{width:25%;background:#efb64e}
.today-task{display:grid;grid-template-columns:46px minmax(230px,1fr) auto auto 30px;align-items:center;gap:12px;min-height:72px;border-radius:12px;margin:7px 0;padding:10px 12px;border-left:7px solid}.today-task.green{background:#e7f1ec;border-color:#4f9d77}.today-task.yellow{background:#fff0cf;border-color:#e9a61d}.today-task.coral{background:#fbe1dc;border-color:#e96b58}.today-task.sand{background:#f6eee3;border-color:#e8b85b}.today-task.blue{background:#e1f1f2;border-color:#6ebbc3}.today-task b{display:block}.today-task p{margin:3px 0;color:#18353b;font-size:13px}.today-task small{color:#657c7d}.today-task>button{border:0;background:transparent}.task-check{width:34px;height:34px;border:2px solid #173e3b;border-radius:50%;display:grid;place-items:center}.task-check.checked{background:#0e6655;border-color:#0e6655;color:#fff;font-size:20px}.task-status{background:#d5e9db;padding:9px 15px;border-radius:9px;color:#275e4e;font-size:12px}.deadline{background:#ffd7d0;color:#d24434;padding:8px 11px;border-radius:9px;font-size:11px;text-align:center}.open-task{background:#0d594d;color:#fff;text-decoration:none;padding:12px 18px;border-radius:9px;font-weight:700}.open-task.pale{background:#efe1cb;color:#173e3b}
.upcoming{margin-top:14px}.upcoming>div:not(.panel-title-row){display:grid;grid-template-columns:18px 100px 1fr auto;gap:8px;align-items:center;padding:9px;border-top:1px solid #eee7dc}.upcoming p{margin:0;font-size:12px}.dot{display:inline-block;width:11px;height:11px;border-radius:50%}.coral-dot{background:#df6554}.yellow-dot{background:#eda33c}.green-dot{background:#146858}.blue-dot{background:#6db4bf}
.home-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.shortcut{min-height:122px;border-radius:10px;padding:18px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-size:12px;font-weight:700}.shortcut span{font-size:26px;margin-bottom:10px}.shortcut b{font-size:18px;margin-top:6px}.sc-green{background:#155b4e;color:#fff}.sc-yellow{background:#efb552;color:#172f2d}.sc-coral{background:#df705d;color:#fff}.sc-sand{background:#f0dcc1;color:#172f2d}
.home-right{display:flex;flex-direction:column;gap:13px}.week-days{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.week-days span{background:#f6f1ea;border-radius:9px;padding:9px;text-align:center;font-size:10px}.week-days b{display:block;font-size:14px;margin-top:4px}.week-days .active{background:#165d50;color:white}.week-list p{margin:0;padding:7px 0;border-bottom:1px solid #eee7dc;color:#344d4b;font-size:11px}.week-list .dot{margin-right:7px}.week-list small{float:right}.effort-card{background:linear-gradient(135deg,#ffe0a6,#f7bd68);border-radius:15px;padding:20px 22px;min-height:125px}.effort-card h3{margin:0;font-size:18px}.effort-card p{color:#34504c;font-size:12px;max-width:270px}.messages-mini>div:not(.panel-title-row){display:grid;grid-template-columns:40px 1fr auto;gap:9px;align-items:center;padding:8px 0;border-top:1px solid #eee7dc}.messages-mini p{margin:0;font-size:11px}.messages-mini small{display:block}.messages-mini time{font-size:10px}.person{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:white}.p1{background:#0c6b58}.p2{background:#4c8068}.p3{background:#d8493b}.guardian h2{margin:0}.guardian a{color:#0d594d;text-decoration:none;font-weight:700;font-size:11px}.home-handwritten{text-align:center;font-family:Georgia,serif;font-style:italic;font-size:18px;transform:rotate(-4deg);padding:8px}
@media(max-width:1100px){.home-dashboard{grid-template-columns:1fr}.home-right{display:grid;grid-template-columns:1fr 1fr}.home-shortcuts{grid-template-columns:repeat(2,1fr)}}

/* v4: Home uses the same simple palette as the rest of Skoleblikk */
.home-page{background:var(--bg)}
.home-page .sidebar{background:#fff;border-right:1px solid var(--line);color:var(--text)}
.home-page .brand,.home-page .nav-link,.home-page .logout{color:var(--text)}
.home-page .brandmark{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff}
.home-page .nav-link:hover,.home-page .nav-link.active{background:var(--soft);color:#087d85}
.home-page .quote{background:var(--soft);color:var(--text);font-family:inherit;font-style:normal;border:0;border-radius:14px;padding:17px}
.home-cover{height:190px;background:linear-gradient(120deg,#eef8f8 0%,#f7fbfb 55%,#e6f5f5 100%);padding:48px 42px 28px}
.home-cover:after{display:none}
.home-cover-copy h1{color:var(--text)}
.home-cover-copy p{color:var(--text)}
.cover-search{background:#fff}
.cover-note{color:#6b8b8e;font-family:inherit;font-style:normal;font-size:14px;transform:none}
.home-dashboard{background:var(--bg);padding:18px 22px 40px}
.home-panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.today-task.green,.today-task.yellow,.today-task.coral,.today-task.sand,.today-task.blue{background:#f8fbfb;border-color:var(--primary2)}
.today-task.done{background:var(--soft)}
.task-check.checked{background:var(--primary);border-color:var(--primary)}
.task-status{background:var(--soft);color:#28747a}
.deadline{background:#fff0ed;color:#c95445}
.open-task{background:linear-gradient(135deg,var(--primary),var(--primary2))}
.open-task.pale{background:var(--soft);color:#17666c}
.mini-progress{background:#edf2f2}.mini-progress i{background:var(--primary)}.mini-progress b{background:var(--primary2)}
.sc-green,.sc-yellow,.sc-coral,.sc-sand{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff}
.week-days span{background:#f5f8f8}.week-days .active{background:var(--primary);color:#fff}
.effort-card{background:var(--soft)}
.effort-card p{color:var(--muted)}
.p1,.p2,.p3{background:var(--primary)}
.home-handwritten{font-family:inherit;font-style:normal;transform:none;color:var(--muted)}

/* v5 richer demo content */
.recent-files{margin-top:14px}.recent-file{display:grid;grid-template-columns:1.6fr .8fr auto;gap:12px;padding:12px 5px;border-top:1px solid var(--line);font-size:12px}.recent-file span,.recent-file small{color:var(--muted)}
.day-plan>div:not(.panel-title-row){display:grid;grid-template-columns:55px 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--line)}.day-plan time{font-weight:700;color:var(--primary)}.day-plan p{margin:0;font-size:12px;color:var(--text)}.day-plan small{display:block;color:var(--muted);margin-top:2px}
.latest-feedback h3,.next-event h3{margin:8px 0 4px}.latest-feedback p,.next-event p{font-size:12px}.latest-feedback>small{color:var(--muted)}
.home-page .profile{display:flex!important;position:absolute;right:26px;top:18px;z-index:10}

.home-user{position:absolute;right:28px;top:78px;z-index:5;display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.9);padding:8px 12px;border-radius:12px}.home-user strong,.home-user small{display:block}.home-user small{font-size:10px;color:var(--muted)}

/* v6: simplified home hierarchy */
.home-right .day-plan{margin-top:0}

/* v7 Settings: real icons + five working themes */
.settings-card{position:relative;min-height:205px}
.settings-icon{width:46px;height:46px;border-radius:13px;background:var(--soft);display:grid;place-items:center;color:var(--primary);margin-bottom:18px}
.settings-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.settings-card h3{font-size:20px;margin:0 0 7px}.settings-card p{margin:0 0 18px}
.appearance-card{grid-column:1/-1;min-height:auto}
.theme-options{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:22px}
.theme-choice{border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px;text-align:left;display:flex;align-items:center;gap:11px;color:var(--text);transition:.18s}
.theme-choice:hover,.theme-choice.selected{border-color:var(--primary);box-shadow:0 0 0 2px var(--soft)}
.theme-choice span,.theme-choice b,.theme-choice small{display:block}.theme-choice small{color:var(--muted);font-size:10px;margin-top:2px}
.theme-preview{width:42px;height:42px;border-radius:12px;display:block;flex:0 0 42px}
.ocean-preview{background:linear-gradient(135deg,#0081a7,#00afb9)}
.forest-preview{background:linear-gradient(135deg,#0f3d3a,#3c8d79)}
.lavender-preview{background:linear-gradient(135deg,#7161a8,#a78bca)}
.elegance-preview{background:linear-gradient(135deg,#090909,#454545)}
.ochre-preview{background:linear-gradient(135deg,#b56d0b,#e0a52b)}
@media(max-width:1100px){.theme-options{grid-template-columns:repeat(2,1fr)}}

/* v8 — restore original Settings layout, with safe compact SVG icons */
.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.settings-original-card{min-height:205px;padding:22px}
.settings-original-card h3{font-size:20px;margin:15px 0 7px}
.settings-original-card p{margin:0 0 18px}
.settings-small-icon{display:block;width:28px;height:28px;color:var(--primary)}
.settings-small-icon svg{display:block;width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.compact-palettes{display:flex;gap:10px;margin-top:15px}
.compact-palettes .palette{display:block;width:36px!important;height:36px!important;min-width:36px;min-height:36px;padding:0;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}
.compact-palettes .palette.selected{box-shadow:0 0 0 2px var(--primary)}
.p1{background:linear-gradient(135deg,#0081a7,#00afb9)}
.p2{background:linear-gradient(135deg,#0f3d3a,#3c8d79)}
.p3{background:linear-gradient(135deg,#7161a8,#a78bca)}
.p4{background:linear-gradient(135deg,#111111,#505050)}
.p5{background:linear-gradient(135deg,#a9650a,#d99a24)}
/* v7 elements are no longer used */
.theme-options{display:none!important}
@media(max-width:900px){.settings-grid{grid-template-columns:1fr}}

/* v9 calendar: timetable + classwork + tasks */
.calendar-legend{display:flex;gap:18px;align-items:center;margin:-4px 0 14px;font-size:12px;color:var(--muted)}
.calendar-legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:9px;height:9px;border-radius:50%}.lesson-dot{background:#dfe7e8}.classwork-dot{background:var(--primary)}.todo-dot{background:#d6a33b}.deliver-dot{background:#dc6859}
.calendar-rich{overflow:hidden;padding:0}.rich-grid{min-height:570px}.rich-grid>div{padding:12px 10px!important}
.day-column{display:flex;flex-direction:column;gap:9px;background:#fff}.selected-day{background:var(--soft)!important}
.lesson-card{background:#f7f9f9;border:1px solid var(--line);border-radius:11px;padding:10px;display:flex;flex-direction:column;gap:3px}.lesson-time{font-size:11px;font-weight:800;color:var(--primary)}.lesson-card>b{font-size:13px}.lesson-card>small{font-size:9px;color:var(--muted)}
.classwork{margin-top:7px;padding-top:7px;border-top:1px solid var(--line);font-size:10px;line-height:1.35}.classwork span{display:block;font-size:8px;font-weight:800;letter-spacing:.06em;color:var(--primary);margin-bottom:2px}
.day-actions{margin-top:auto;padding-top:6px}.day-actions h4{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0 0 6px}
.calendar-task{width:100%;text-align:left;border:0;border-radius:9px;padding:8px 9px;margin:0 0 6px;font:inherit;color:var(--text);font-size:10px;background:#f7f4ed}.calendar-task span{display:block;font-size:8px;font-weight:800;letter-spacing:.05em;margin-bottom:2px}.calendar-task small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.calendar-task.todo{border-left:3px solid #d6a33b}.calendar-task.todo span{color:#a87614}.calendar-task.deliver{background:#fff2ef;border-left:3px solid #dc6859}.calendar-task.deliver span{color:#c45143}
@media(max-width:1100px){.calendar-rich{overflow-x:auto}.cal-head,.rich-grid{min-width:1050px}}

/* v10 clean full-week timetable with lesson accordions */
.tt-week{display:grid;grid-template-columns:repeat(5,minmax(185px,1fr));background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.tt-day{min-height:610px;border-right:1px solid var(--line);padding:0 10px 14px}.tt-day:last-child{border-right:0}.tt-day>h3{text-align:center;font-size:14px;margin:0 -10px 12px;padding:15px 8px;border-bottom:1px solid var(--line);background:#fff}.tt-day.tt-today{background:var(--soft)}.tt-day.tt-today>h3{background:var(--primary);color:#fff}
.tt-lesson{background:#fff;border:1px solid var(--line);border-radius:11px;margin:9px 0;overflow:hidden}.tt-summary{width:100%;min-height:82px;border:0;background:#fff;padding:10px;text-align:left;display:grid;grid-template-columns:1fr 18px;gap:5px;cursor:pointer;color:var(--text)}.tt-time{grid-column:1/-1;font-size:10px;font-weight:800;color:var(--primary)}.tt-subject b{display:block;font-size:13px}.tt-subject small{display:block;color:var(--muted);font-size:9px;margin-top:4px;line-height:1.3}.tt-chevron{align-self:center;font-size:18px;color:var(--muted);transition:.2s}
.tt-details{display:none;border-top:1px solid var(--line);padding:9px 10px;background:#fafcfc}.tt-details.open{display:block}.tt-details>div+div{margin-top:9px;padding-top:8px;border-top:1px solid var(--line)}.tt-details span{font-size:7px;font-weight:800;letter-spacing:.08em;color:var(--primary)}.tt-details p{font-size:10px;line-height:1.35;margin:3px 0 0}.tt-summary[aria-expanded="true"] .tt-chevron{transform:rotate(180deg)}
.tt-hint{font-size:11px;color:var(--muted);margin:12px 4px}
@media(max-width:1150px){.tt-week{overflow-x:auto;grid-template-columns:repeat(5,220px)}}

/* v11 subject colors retained + accordions shown open */
.tt-lesson{border-left:5px solid var(--primary2)}
.tt-lesson.sub-norsk{border-left-color:#198a78}.tt-lesson.sub-norsk .tt-time,.tt-lesson.sub-norsk .tt-details span{color:#198a78}
.tt-lesson.sub-matte{border-left-color:#e0a126}.tt-lesson.sub-matte .tt-time,.tt-lesson.sub-matte .tt-details span{color:#b77b08}
.tt-lesson.sub-engelsk{border-left-color:#df6c5b}.tt-lesson.sub-engelsk .tt-time,.tt-lesson.sub-engelsk .tt-details span{color:#c85748}
.tt-lesson.sub-samf{border-left-color:#d69a45}.tt-lesson.sub-samf .tt-time,.tt-lesson.sub-samf .tt-details span{color:#a87325}
.tt-lesson.sub-natur{border-left-color:#62b5bf}.tt-lesson.sub-natur .tt-time,.tt-lesson.sub-natur .tt-details span{color:#378e99}
.tt-lesson.sub-kropp{border-left-color:#7698c8}.tt-lesson.sub-kropp .tt-time,.tt-lesson.sub-kropp .tt-details span{color:#5678a9}
.tt-lesson.sub-program{border-left-color:#8a79b8}.tt-lesson.sub-program .tt-time,.tt-lesson.sub-program .tt-details span{color:#6e5b9f}
.tt-details.open{animation:ttOpen .18s ease-out}@keyframes ttOpen{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* v12: colors describe ACTION TYPE, not subject */
.tt-lesson,
.tt-lesson.sub-norsk,.tt-lesson.sub-matte,.tt-lesson.sub-engelsk,
.tt-lesson.sub-samf,.tt-lesson.sub-natur,.tt-lesson.sub-kropp,.tt-lesson.sub-program{
  border-left:1px solid var(--line);
}
.tt-lesson .tt-time,
.tt-lesson.sub-norsk .tt-time,.tt-lesson.sub-matte .tt-time,.tt-lesson.sub-engelsk .tt-time,
.tt-lesson.sub-samf .tt-time,.tt-lesson.sub-natur .tt-time,.tt-lesson.sub-kropp .tt-time,.tt-lesson.sub-program .tt-time{
  color:var(--primary);
}
.tt-details>div:first-child{
  background:var(--soft);
  border-left:4px solid var(--primary2);
  border-radius:8px;
  padding:8px 9px;
}
.tt-details>div:first-child span,
.tt-lesson.sub-norsk .tt-details>div:first-child span,.tt-lesson.sub-matte .tt-details>div:first-child span,
.tt-lesson.sub-engelsk .tt-details>div:first-child span,.tt-lesson.sub-samf .tt-details>div:first-child span,
.tt-lesson.sub-natur .tt-details>div:first-child span,.tt-lesson.sub-kropp .tt-details>div:first-child span,
.tt-lesson.sub-program .tt-details>div:first-child span{color:var(--primary)}
.tt-details>div+div{
  margin-top:7px;padding:8px 9px;border-top:0;
  background:#fff3df;border-left:4px solid #d99a24;border-radius:8px;
}
.tt-details>div+div span,
.tt-lesson.sub-norsk .tt-details>div+div span,.tt-lesson.sub-matte .tt-details>div+div span,
.tt-lesson.sub-engelsk .tt-details>div+div span,.tt-lesson.sub-samf .tt-details>div+div span,
.tt-lesson.sub-natur .tt-details>div+div span,.tt-lesson.sub-kropp .tt-details>div+div span,
.tt-lesson.sub-program .tt-details>div+div span{color:#a9650a}

/* v13 – readable, action-based accordions */
.tt-day{padding:0 12px 18px}
.tt-day>h3{font-size:16px;padding:17px 10px}
.tt-lesson{margin:12px 0;border:1px solid var(--line);border-radius:13px}
.tt-summary{min-height:98px;padding:14px 14px;grid-template-columns:1fr 24px}
.tt-time{font-size:13px!important;margin-bottom:3px}
.tt-subject b{font-size:17px;line-height:1.25}
.tt-subject small{font-size:12px;line-height:1.4;margin-top:5px}
.tt-chevron{font-size:22px}

.tt-details{padding:12px;background:#fff}
.tt-details>div:first-child,
.tt-details>div+div{
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  border-radius:10px;
  overflow:hidden;
}
.tt-details>div+div{margin-top:10px!important}

/* each action is its own colored accordion-like panel */
.tt-details>div:first-child{
  background:#e2f4f2!important;
  border:1px solid #b9dfda!important;
}
.tt-details>div+div{
  background:#fff0d6!important;
  border:1px solid #efd39d!important;
}
.tt-details span{
  display:block;
  padding:10px 12px 5px;
  font-size:11px!important;
  font-weight:800;
  letter-spacing:.045em;
}
.tt-details p{
  padding:0 12px 11px;
  margin:0!important;
  font-size:14px!important;
  line-height:1.45!important;
  color:var(--text);
}
.tt-details>div:first-child span{color:#16766d!important}
.tt-details>div+div span{color:#99620c!important}

.tt-week{grid-template-columns:repeat(5,minmax(220px,1fr))}
.tt-hint{font-size:13px;line-height:1.5;margin-top:14px}
@media(max-width:1300px){.tt-week{overflow-x:auto;grid-template-columns:repeat(5,245px)}}

/* v15 current lesson emphasis */
.tt-lesson.current-lesson{
  box-shadow:0 0 0 2px var(--primary);
}
.tt-lesson.current-lesson .tt-summary{
  background:var(--soft);
}

/* v17 – assignment links from timetable */
.tt-task-link{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:calc(100% - 24px);margin:0 12px 11px;padding:9px 0 0;
  border:0;border-top:1px solid rgba(0,0,0,.08);background:transparent;
  font:inherit;font-size:13px;font-weight:750;color:var(--primary);
  cursor:pointer;text-align:left;
}
.tt-task-link span{display:inline!important;padding:0!important;font-size:17px!important;color:inherit!important}
.tt-task-link:hover{text-decoration:underline}
.tt-details>div+div .tt-task-link{color:#8d5a08}

/* v20 school-year week navigation */
.week-nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.week-title{display:flex;align-items:baseline;gap:10px;margin:0 0 14px 2px}
.week-title strong{font-size:18px}.week-title span{font-size:14px;color:var(--muted)}
.not-published{font-style:italic;color:var(--muted)!important}
.future-week[hidden],#currentWeek[hidden]{display:none!important}
@media(max-width:900px){.calendar-pagehead{align-items:flex-start}.week-nav{justify-content:flex-start}}

/* v21 school holidays */
.school-break{margin:12px 0;padding:20px 12px;border-radius:12px;background:var(--soft);border:1px solid var(--line);text-align:center}
.school-break strong{display:block;font-size:16px;color:var(--primary);margin-bottom:5px}
.school-break span{font-size:13px;color:var(--muted)}

/* v22 – home: full interactive day timetable in right column */
.home-timetable{padding-bottom:12px}
.home-timetable .panel-title-row{margin-bottom:8px}
.home-lesson{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff;margin-top:10px}
.home-lesson-summary{width:100%;border:0;background:#fff;display:grid;grid-template-columns:92px 1fr 22px;gap:10px;align-items:center;padding:13px 14px;text-align:left;color:var(--text);cursor:pointer}
.home-lesson-summary time{font-size:13px;font-weight:800;color:var(--primary)}
.home-lesson-summary span b{display:block;font-size:15px;line-height:1.25}
.home-lesson-summary span small{display:block;font-size:11px;color:var(--muted);margin-top:3px;line-height:1.35}
.home-lesson-summary i{font-style:normal;font-size:20px;color:var(--muted);transition:transform .18s ease;text-align:center}
.home-lesson-summary[aria-expanded="true"] i{transform:rotate(180deg)}
.home-lesson.current-lesson{box-shadow:0 0 0 2px var(--primary)}
.home-lesson.current-lesson .home-lesson-summary{background:var(--soft)}
.home-lesson-details{display:none;padding:10px;border-top:1px solid var(--line);background:#fff}
.home-lesson-details.open{display:block;animation:ttOpen .18s ease-out}
.home-action{border-radius:10px;padding:10px 11px;border:1px solid}
.home-action+.home-action{margin-top:8px}
.home-action.in-class{background:#e2f4f2;border-color:#b9dfda}
.home-action.own-work{background:#fff0d6;border-color:#efd39d}
.home-action strong{display:block;font-size:10px;letter-spacing:.045em;margin-bottom:4px}
.home-action.in-class strong{color:#16766d}.home-action.own-work strong{color:#99620c}
.home-action p{margin:0;font-size:13px;line-height:1.4;color:var(--text)}
.home-action a{display:inline-block;margin-top:7px;font-size:12px;font-weight:800;color:var(--primary);text-decoration:none}
.home-action.own-work a{color:#8d5a08}
.home-action a:hover{text-decoration:underline}

/* v24 – home: weekly own work + settings profile link */
.profile-link,.home-user{color:inherit;text-decoration:none}
.profile-link:hover,.home-user:hover{box-shadow:0 0 0 2px var(--soft)}
.week-task-group{margin:13px 2px 5px;border-top:1px solid var(--line);padding-top:10px}
.week-task-group:first-of-type{margin-top:8px;border-top:0;padding-top:0}
.week-task-label{font-size:11px;font-weight:800;letter-spacing:.07em;color:var(--muted)}
.deadline.neutral{background:var(--soft);color:var(--text);white-space:nowrap}
.weekly-own-work .today-task{min-height:68px}

/* v29 – home task rows: give copy the width it needs */
.weekly-own-work .today-task{
  grid-template-columns:46px minmax(0,1fr) auto auto 30px;
  column-gap:14px;
}
.weekly-own-work .today-task.plan-only{
  grid-template-columns:minmax(0,1fr) auto;
  padding-left:16px;
}
.weekly-own-work .today-task.plan-only > div{
  min-width:0;
}
.weekly-own-work .today-task > div{
  min-width:0;
}
.weekly-own-work .today-task p,
.weekly-own-work .today-task small{
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.weekly-own-work .today-task p{
  font-size:14px;
  line-height:1.4;
}
.weekly-own-work .today-task small{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.4;
}
.weekly-own-work .deadline{
  min-width:76px;
}


/* v30 – home: task type icons replace misleading completion circles */
.weekly-own-work .task-type-icon{
  width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  background:var(--soft);color:var(--primary);flex:0 0 34px;
}
.weekly-own-work .task-type-icon svg{
  width:19px!important;height:19px!important;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}


/* v35 – calmer home: full day timetable + notification lamp */
.home-notification{position:absolute;right:176px;top:84px;z-index:6;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.94);display:grid;place-items:center;color:var(--text);text-decoration:none;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.home-notification:hover{box-shadow:0 0 0 2px var(--soft)}
.home-notification svg{width:20px!important;height:20px!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notification-dot{position:absolute;right:8px;top:7px;width:8px;height:8px;border-radius:50%;background:#e85b4a;border:2px solid #fff}
.home-right{align-self:start}
.home-right .home-timetable{width:100%}
@media(max-width:1100px){.home-right{display:block}.home-notification{right:176px}}

/* v36: tydelig varselknapp ved profil */
.home-notification{right:176px;top:78px;width:44px;height:44px;border:1px solid var(--line);background:var(--surface);color:var(--p);box-shadow:0 3px 12px rgba(20,50,45,.08)}
.home-notification svg{width:21px!important;height:21px!important;stroke-width:2!important}
.notification-dot{position:absolute;right:8px;top:7px;width:9px;height:9px;border-radius:50%;background:#e85d4a;border:2px solid #fff;box-sizing:content-box}

/* v37 – calmer header, notification center and school info */
.home-cover .cover-search{height:46px;padding:0 16px;gap:11px}
.cover-search .search-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;color:var(--text)}
.cover-search .search-icon svg{width:21px!important;height:21px!important;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.home-notification{right:181px;top:80px;width:42px;height:42px;border-radius:11px;cursor:pointer}
.home-user{right:28px;top:78px}
.notification-panel{position:absolute;right:28px;top:128px;width:330px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 35px rgba(20,40,40,.14);z-index:30;padding:8px}
.notification-panel[hidden]{display:none}
.notification-head{display:flex;justify-content:space-between;align-items:center;padding:10px 11px 9px}.notification-head span{font-size:11px;color:var(--muted)}
.notification-panel a{display:block;text-decoration:none;color:var(--text);padding:11px;border-top:1px solid var(--line);border-radius:8px}.notification-panel a:hover{background:var(--soft)}
.notification-panel b,.notification-panel small{display:block}.notification-panel b{font-size:13px;margin-bottom:3px}.notification-panel small{font-size:11px;color:var(--muted);line-height:1.4}
.info-feed{padding:4px 22px}.info-item{display:grid;grid-template-columns:86px 1fr;gap:18px;padding:22px 4px;border-bottom:1px solid var(--line)}.info-item:last-child{border-bottom:0}.info-item h3{margin:0 0 7px;font-size:18px}.info-item p{margin:0 0 9px;color:var(--text);line-height:1.5}.info-item small{color:var(--muted)}.info-tag{font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--p);padding-top:4px}.info-tag.neutral{color:var(--muted)}

/* v38 – align home search with profile on the right */
.home-cover .cover-search{right:28px}


/* v39 – search below profile + later-this-week as its own calm panel */
.home-cover .cover-search{right:28px;top:132px;width:330px;height:42px}
.home-cover .home-user{right:28px;top:72px}
.home-cover .home-notification{right:181px;top:73px}
.home-cover .cover-note{display:none}
.home-main{display:flex;flex-direction:column;gap:14px}
.later-week-panel{margin-top:0}
.later-week-title{margin-bottom:8px}
.later-week-title h2{margin:0}

/* v40 – compact confirmation of today's submitted work */

/* v41 – delivered work stays in context; status replaces the deadline */
.weekly-own-work .deadline.delivered-status{background:#e8f3ed;color:#2f725a;min-width:142px;font-weight:750;white-space:nowrap}
.weekly-own-work .delivered-icon{background:#e8f3ed;color:#2f725a}
.weekly-own-work .delivered-task{opacity:.94}

/* v42 – improved readability / universal design for room and teacher */
.home-lesson-summary span small{
  font-size:13px;
  font-weight:600;
  color:var(--text);
  opacity:.78;
  margin-top:5px;
  line-height:1.45;
}


/* v43 – clear clock icon for deadlines */
.weekly-own-work .deadline:not(.neutral):not(.delivered-status){display:inline-flex;align-items:center;gap:6px}
.weekly-own-work .deadline-clock{width:16px!important;height:16px!important;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* v44 – align home heading inset with Skoleblikk logo inset */
.home-cover{padding-left:30px}

/* v45 — align home heading vertically with Skoleblikk logo */
.home-page .page{padding-top:0}
.home-page .home-cover{padding-top:28px;padding-left:42px}

/* v46 – align right-side home tools vertically with raised heading */
.home-page .home-cover .home-user{top:52px}
.home-page .home-cover .home-notification{top:53px}
.home-page .home-cover .cover-search{top:112px}

/* v47 – notification dropdown must stay above dashboard cards */
.home-page .home-cover{overflow:visible;z-index:50}
.home-page .notification-panel{z-index:100}
.home-page .home-body{position:relative;z-index:1}

/* v48 – assignments open in the shared slide-in drawer */
.task-slide,.task-inline-link{font:inherit}.task-slide{border:0;cursor:pointer}.task-inline-link{display:inline-flex;align-items:center;border:0;background:transparent;padding:0;margin-top:6px;color:var(--primary);font-weight:800;cursor:pointer;text-decoration:none}.calendar-task-link{font-size:13px}.drawer.open{z-index:1000}.notification-panel{z-index:1100}

/* v49 – keep slide-in buttons visually identical to the original links */
.weekly-own-work .today-task > button.open-task{
  background:var(--soft);
  color:#17666c;
  padding:12px 18px;
  border-radius:9px;
  font-family:inherit;
  font-size:inherit;
  font-weight:700;
  line-height:normal;
}


/* v50 – clear assignment status inside slide-in */
.drawer-task-status{margin-top:14px;padding:13px 15px;border-radius:10px;background:#fff0ed;color:#d95d4f;display:flex;align-items:center;gap:9px;font-weight:800;font-size:14px}
.drawer-task-status .drawer-status-icon{width:18px!important;height:18px!important;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.drawer-task-status.is-delivered{background:#eaf6ef;color:#39825f}

/* v52 – calm, consistent widths for status and action controls */
.weekly-own-work .today-task .deadline{
  width:150px;
  min-width:150px;
  box-sizing:border-box;
  justify-content:center;
}
.weekly-own-work .today-task .deadline.delivered-status{
  width:150px;
  min-width:150px;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.weekly-own-work .today-task > .open-task,
.weekly-own-work .today-task > button.open-task{
  width:86px;
  min-width:86px;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}


/* v53 – drawer can be closed by clicking outside, close button, or Escape */
.drawer-backdrop{position:fixed;inset:0;background:rgba(24,53,59,.16);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease;z-index:950}
.drawer-backdrop.open{opacity:1;visibility:visible;pointer-events:auto}
.drawer.open{z-index:1000}

/* v54 – calmer profile typography */
.home-page .home-user strong{
  font-size:14px;
  font-weight:600;
  line-height:1.25;
}
.home-page .home-user small{
  font-size:11px;
  font-weight:400;
  line-height:1.3;
  margin-top:2px;
}

/* v54 – calmer profile + wider, stable task actions */
.home-page .home-user strong{font-size:13px;font-weight:600;line-height:1.2}
.home-page .home-user small{font-size:10.5px;font-weight:400;line-height:1.25;margin-top:2px}
.weekly-own-work .today-task > .open-task,
.weekly-own-work .today-task > button.open-task{
  width:104px;
  min-width:104px;
  white-space:nowrap;
  gap:6px;
}
.task-slide.drawer-trigger-active{position:relative;z-index:1100}

/* v55 – visibly calmer home profile card */
.home-page .home-user{
  padding:7px 10px;
  gap:8px;
}
.home-page .home-user .avatar{
  width:32px;
  height:32px;
  min-width:32px;
  font-size:13px;
  font-weight:600;
}
.home-page .home-user strong{
  font-size:12px;
  font-weight:500;
  line-height:1.2;
  letter-spacing:0;
}
.home-page .home-user small{
  font-size:10px;
  font-weight:400;
  line-height:1.2;
  margin-top:2px;
}

/* v56 – lighter, calmer home hero typography */
.home-page .home-cover-copy .eyebrow{
  font-size:10px;
  font-weight:650;
  letter-spacing:.11em;
}
.home-page .home-cover-copy h1{
  font-size:40px;
  font-weight:650;
  line-height:1.05;
  letter-spacing:-.025em;
  margin:8px 0 5px;
}
.home-page .home-cover-copy p{
  font-size:16px;
  font-weight:500;
  line-height:1.35;
}


/* v57 – assessed historical assignment */
.drawer-assessment{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.drawer-assessment[hidden]{display:none!important}
.drawer-assessment .tag{display:inline-block;margin-bottom:10px}
.drawer-assessment .assessment-grade{font-size:22px;font-weight:750;color:var(--text);margin-bottom:14px}
.drawer-assessment h3{font-size:14px;margin:0 0 7px;font-weight:700}
.drawer-assessment p{font-size:14px;line-height:1.55;margin:0 0 12px;color:var(--text)}
.drawer-assessment small{font-size:12px;color:var(--muted)}
.assessed-history small{color:#39825f!important;font-weight:700}

/* v58 – make the historical assessed example unmistakably findable */
.assessed-heading{margin-bottom:4px}
.assessed-intro{margin:0 0 12px;color:var(--muted);font-size:15px}
.assessed-list .assessed-history{background:var(--soft)}
.file-history-item{margin-top:8px;border:1px solid var(--line);border-radius:12px;padding:14px!important;background:var(--soft)}
.file-history-item[hidden]{display:none!important}

/* v59 – mobile-first responsive layer */
@media (max-width:700px){
  :root{--sidebar:0px}
  body{padding-bottom:74px;overflow-x:hidden}
  main{margin-left:0;min-width:0}
  .sidebar{inset:auto 0 0 0;width:100%;height:70px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);display:block;overflow-x:auto;overflow-y:hidden;z-index:1200;box-shadow:0 -8px 24px rgba(25,60,65,.06)}
  .sidebar .brand,.sidebar .quote,.sidebar .logout{display:none}
  .sidebar nav{height:100%;display:flex;flex-direction:row;gap:3px;min-width:max-content}
  .sidebar .nav-link,.sidebar .nav-link.active,.sidebar .nav-link:not(.active){font-size:10px!important;min-width:64px;height:56px;padding:6px 8px;gap:3px;flex-direction:column;justify-content:center;border-radius:10px;white-space:nowrap}
  .sidebar .nav-link span{font-size:inherit;width:20px}
  .nav-icon{width:20px!important;height:20px!important}
  .nav-icon svg{width:19px!important;height:19px!important}

  .topbar{display:none}
  .page,.home-page .page{padding:22px 16px 34px;max-width:none}
  .page h1{font-size:27px}.page h2{font-size:18px}
  .pagehead{display:block;margin-bottom:20px}.pagehead>*+*{margin-top:12px}
  .hero{padding:25px 20px;border-radius:18px}.hero h1{font-size:30px}.hero-orb{display:none}
  .card{padding:17px;border-radius:15px}
  .tabs{overflow-x:auto;white-space:nowrap;padding-bottom:3px}
  .list>div,.big>div{grid-template-columns:1fr;gap:5px;padding:15px 2px}

  .subject-grid,.file-subject-grid{grid-template-columns:1fr 1fr;gap:10px}
  .subject-card{min-height:132px;padding:17px}.subject-card h3{font-size:16px}
  .file-subject{padding:16px;min-height:112px}
  .settings-grid,.help-grid{grid-template-columns:1fr}
  .settings-original-card{min-height:0}

  .drawer{top:auto;bottom:-100%;right:0;width:100%;height:min(82vh,720px);padding:40px 20px 26px;border-radius:22px 22px 0 0;transition:bottom .28s ease;box-shadow:0 -18px 50px rgba(20,50,55,.18)}
  .drawer.open{right:0;bottom:0}.drawer .close{right:18px;top:18px}.drawer h2{font-size:24px;padding-right:38px}

  .messages{display:block;min-height:0}.threads{display:block;border-right:0}.chat{padding:18px}.bubble{max-width:86%}.composer{position:sticky;bottom:0;background:#fff;padding-top:12px}

  .calendar-pagehead{display:block}.week-nav{margin-top:14px;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto}.week-nav button{white-space:nowrap}
  .tt-week{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;border-radius:14px}
  .tt-day{min-width:88vw;scroll-snap-align:start;border-right:1px solid var(--line)}
  .tt-summary{min-height:84px}.tt-subject b{font-size:15px}.tt-subject small{font-size:12px}.tt-time{font-size:12px}

  .home-page .page{padding:0 0 28px}
  .home-page .home-cover{min-height:auto;padding:24px 16px 18px!important;overflow:visible;display:grid;grid-template-columns:1fr auto;gap:12px;background:var(--surface)}
  .home-page .home-cover-copy{grid-column:1/-1;padding-right:50px}
  .home-page .home-cover-copy h1{font-size:34px;margin-top:7px}.home-page .home-cover-copy p{font-size:15px;margin:4px 0 0}
  .home-page .home-user{position:static!important;grid-column:1;grid-row:2;width:max-content;max-width:100%;padding:7px 9px}
  .home-page .home-notification{position:absolute!important;top:26px!important;right:16px!important}
  .home-page .cover-search{position:static!important;grid-column:1/-1;grid-row:3;width:100%!important;max-width:none!important;margin:0;height:44px}
  .home-page .notification-panel{position:absolute!important;top:70px!important;right:16px!important;left:16px!important;width:auto!important;max-width:none!important}
  .home-dashboard{display:block;padding:14px 12px 28px}
  .home-main,.home-right{display:block}.home-right{margin-top:14px}
  .home-panel{border-radius:15px;padding:15px}
  .panel-title-row{flex-wrap:wrap;gap:7px}.panel-title-row h2{font-size:18px}
  .weekly-own-work .today-task,.weekly-own-work .today-task.plan-only{grid-template-columns:34px minmax(0,1fr)!important;gap:9px;padding:12px 10px;min-height:0}
  .weekly-own-work .today-task.plan-only{grid-template-columns:1fr!important;padding-left:14px}
  .weekly-own-work .task-type-icon{grid-column:1;grid-row:1}
  .weekly-own-work .today-task>div{grid-column:2;grid-row:1}.weekly-own-work .today-task.plan-only>div{grid-column:1}
  .weekly-own-work .deadline{grid-column:2;grid-row:2;justify-self:start;width:auto!important;min-width:0!important;text-align:left;white-space:normal!important}
  .weekly-own-work .today-task.plan-only .deadline{grid-column:1;grid-row:2}
  .weekly-own-work .today-task>.open-task,.weekly-own-work .today-task>button.open-task{grid-column:2;grid-row:3;width:auto!important;min-width:92px!important;justify-self:start;padding:10px 14px}
  .weekly-own-work .today-task>button:last-child:not(.open-task){display:none}
  .weekly-own-work .today-task p{font-size:14px;line-height:1.35}.weekly-own-work .today-task small{font-size:12px;line-height:1.35}
  .home-lesson-summary{grid-template-columns:78px 1fr 18px;padding:13px 9px}.home-lesson-summary time{font-size:12px}.home-lesson-summary small{font-size:12px;line-height:1.35}
  .home-action{padding:12px!important}

  .info-feed{padding:2px 15px}.info-item{grid-template-columns:1fr;gap:5px;padding:18px 0}
  .recent-file{grid-template-columns:1fr auto}.recent-file>*:nth-child(2){grid-column:1}
  .resource-search{padding:18px;border-radius:16px}
}

@media (max-width:390px){
  .subject-grid,.file-subject-grid{grid-template-columns:1fr}
  .home-page .home-cover-copy h1{font-size:31px}
  .sidebar .nav-link,.sidebar .nav-link.active,.sidebar .nav-link:not(.active){min-width:61px}
}

/* v60 – mobile home header: profile beside notifications + cleaner search */
@media (max-width:700px){
  .home-page .home-cover{
    display:block;
    padding:24px 16px 18px!important;
  }
  .home-page .home-cover-copy{
    padding-right:116px;
  }
  .home-page .home-user{
    position:absolute!important;
    top:24px!important;
    right:66px!important;
    width:44px!important;
    height:44px;
    min-width:44px;
    padding:0!important;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
    display:grid;
    place-items:center;
    box-shadow:0 3px 12px rgba(20,50,45,.08);
  }
  .home-page .home-user .avatar{
    width:32px;
    height:32px;
    min-width:32px;
    margin:0;
  }
  .home-page .home-user>div:last-child{display:none}
  .home-page .home-notification{
    top:24px!important;
    right:16px!important;
    width:44px;
    height:44px;
    border-radius:12px;
  }
  .home-page .cover-search{
    position:relative!important;
    top:auto!important;
    right:auto!important;
    width:100%!important;
    height:48px!important;
    margin-top:24px!important;
    padding:0 15px!important;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--surface);
    box-shadow:0 4px 14px rgba(20,50,45,.055);
    gap:10px;
  }
  .home-page .cover-search:focus-within{
    border-color:var(--primary);
    box-shadow:0 0 0 3px var(--soft);
  }
  .home-page .cover-search input{
    width:100%;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    font-size:15px;
    color:var(--text);
  }
  .home-page .cover-search input::placeholder{color:var(--muted);opacity:.82}
  .home-page .cover-search .search-icon{color:var(--muted);flex:0 0 20px}
  .home-page .cover-search .search-icon svg{width:20px!important;height:20px!important}
  .home-page .notification-panel{top:76px!important}
}

/* v61 – mobile drawer: keep the originating task button behind the open sheet */
@media (max-width:700px){
  .task-slide.drawer-trigger-active{
    position:static!important;
    z-index:auto!important;
  }
}

/* v62 – keep mobile home intro on one line */
@media (max-width:700px){
  .home-page .home-cover-copy p{
    white-space:nowrap;
    font-size:14px;
    letter-spacing:-.01em;
  }
}
@media (max-width:390px){
  .home-page .home-cover-copy p{font-size:13px}
}
