/* Calm navigation and a single utility bar. Does not hide mathematical explanations. */
:root{background:#f8fafc;--line:#e1e7ee;--blue:#285ecb}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sidebar{width:228px;padding:30px 18px 20px;background:#f0f4fa;color:#253a55;border-right:1px solid var(--line);overflow-y:auto;z-index:20}
.sidebar .brand{font-size:18px;gap:10px;padding:0 9px}
.sidebar .logo{background:#edf3fc;border:0;color:#325d9f;border-radius:10px;width:36px;height:36px;font-size:27px;flex-shrink:0}
.sidebar .logo span{font-size:14px;top:2px}
.sidebar .brand small{font-size:8px;letter-spacing:1px;color:#66768b;margin-top:5px}
.sidebar .side-label,.sidebar .topic,.sidebar .side-note,.sidebar .profile{display:none}
.sidebar nav{margin:36px 0 24px;gap:5px;display:grid}
.sidebar nav button{font-size:14px;min-height:46px;padding:11px 12px;gap:12px;color:#53637b;border-radius:7px;flex:initial;justify-content:flex-start}
.sidebar nav button span{font-size:13px;line-height:1.5}
.sidebar nav button svg{width:18px;height:18px;flex-shrink:0;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.sidebar nav button:hover{background:#f4f6f9;color:#243e60}
.sidebar nav button.selected{background:#dde9fa;color:#254f8c;box-shadow:inset 3px 0 #6c95d0;font-weight:600}
.sidebar .local-label{margin-top:auto;align-self:flex-start;background:none;color:#69788a;font-size:11px;padding:16px 12px 0}
#workspace-menu{display:none}
main{margin-left:228px;width:calc(100% - 228px);max-width:1560px;padding:0 clamp(24px,4vw,64px)}
main>header{height:76px;min-height:0;padding:0;flex-wrap:nowrap;gap:18px;justify-content:flex-end;font-size:12px}
main>header>div:first-child{margin-right:auto;min-width:0}
main>header>div:first-child span{margin:0 10px}
main>header .math-break-button{background:#fff0bd;box-shadow:none;border:1px solid #e9d48d;border-radius:7px;color:#665024;padding:9px 12px;margin-left:0;font-size:12px;min-height:40px;white-space:nowrap;transform:none}
main>header .math-break-spark{background:none;border:0;width:auto;height:auto;font-size:17px;color:#977338}
main>header .math-break-button:hover,main>header .math-break-button:active{background:#fff5dc;border-color:#e0d2af;color:#5d4c2c;box-shadow:none;transform:none}
.heading{padding:34px 0 28px;gap:16px}
.heading .eyebrow,.heading .chapter{display:none}
.heading h1{font-size:clamp(26px,2.5vw,32px);font-weight:600;letter-spacing:-.8px;line-height:1.25;margin:0 0 10px}
.heading #subtitle{font-size:14px;line-height:1.65;color:#65748a}
.card{box-shadow:none}
main>footer{font-size:11px;letter-spacing:0;padding:26px 0;color:#77869a}
.workspace-account{position:relative;flex-shrink:0}
.workspace-account>summary{cursor:pointer;list-style:none;min-height:40px;display:flex;align-items:center;gap:9px;padding:9px 12px;font-size:12px;color:#4d607a;border-radius:7px;border:1px solid var(--line);background:#fff}
.workspace-account>summary::-webkit-details-marker{display:none}
.workspace-account>summary::after{content:'⌄';font-size:15px}
.workspace-account>summary:focus-visible{outline:3px solid #6699ff;outline-offset:3px}
.workspace-account[open]>summary{background:#edf3fc}
.workspace-account #cloud-account{position:absolute;z-index:30;top:calc(100% + 8px);right:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;width:250px;max-width:calc(100vw - 32px);padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #19354d15}
#cloud-account #cloud-user{color:#54647a;line-height:1.6;padding:2px 0 10px;font-size:13px}
#cloud-account button{text-align:left;min-height:44px}
/* The private library already has a page title; do not repeat a second hero. */
body[data-workspace-view="tasks"] .task-banner{display:none}
@media(max-width:1120px) and (min-width:901px){.sidebar{width:210px;padding-inline:12px}main{margin-left:210px;width:calc(100% - 210px);padding-inline:28px}}
@media(max-width:900px){
 body,body:has(#cloud-account){display:block}
 .sidebar{position:relative;inset:auto;width:100%;padding:15px 20px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;align-items:center;overflow:visible}
 .sidebar .brand{padding:0;font-size:17px}.sidebar .brand small{display:none}
 .workspace-ready #workspace-menu{display:block;min-height:42px;padding:9px 13px;font-size:13px}
 .sidebar nav{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:6px;margin:16px 0 2px;padding-top:12px;border-top:1px solid var(--line)}
 .workspace-ready .sidebar:not([data-menu-open="true"]) nav{display:none}
 .sidebar nav button{min-height:48px;padding:10px;font-size:13px}
 .sidebar nav button span{font-size:13px}.sidebar nav button svg{width:17px;height:17px}
 .sidebar .local-label{display:none}
 main{margin:0;width:100%;max-width:none;padding:0 22px}
 main>header{height:62px;gap:10px}
 main>header>div:first-child{font-size:11px;line-height:1.5}
 main>header>div:first-child span{margin:0 6px}
 .heading{padding:25px 0}.heading h1{font-size:27px}.heading #subtitle{font-size:14px}
 .workspace,.practice-layout{grid-template-columns:1fr}
 .chapter{display:none}
}
@media(max-width:560px){
 main{padding-inline:18px}.sidebar{padding-inline:18px}
 main>header{justify-content:space-between;gap:12px}
 main>header>div:first-child{display:none}
 main>header .math-break-button{padding:9px 11px;font-size:12px}
 .heading h1{font-size:26px;letter-spacing:-.6px}.heading #subtitle{max-width:38ch}
 main>footer span:last-child{display:none}
 input,textarea,select{font-size:16px}
}
