/* Ekzestean interface — clean, precise and lightly Cloudflare-inspired. */
:root{
  color-scheme:light;
  --ink:#16263f; --ink-strong:#0c1d36; --muted:#687994; --subtle:#91a0b6;
  --blue:#236cf1; --blue-dark:#1656d3; --blue-pale:#eaf2ff; --blue-soft:#f3f7ff;
  --line:#e4eaf4; --line-strong:#d9e2ef; --bg:#f7f9fd; --surface:#fff;
  --shadow:0 9px 26px rgba(23,49,99,.035); --shadow-hover:0 18px 40px rgba(36,79,154,.08);
  --radius:14px;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink);background:var(--bg);font-synthesis:none;-webkit-font-smoothing:antialiased
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
input,textarea,select{color:var(--ink)}
h1,h2,h3,p{overflow-wrap:anywhere}
h1,h2,h3{margin:0}
p{line-height:1.68}
::selection{background:#cbdfff;color:#15366f}
:focus-visible{outline:3px solid #79aaff;outline-offset:3px}
.skip-link{position:fixed;top:-100px;left:20px;z-index:1000;background:var(--blue);color:white;padding:10px 18px;border-radius:10px}
.skip-link:focus{top:15px}
.button{display:inline-flex;gap:15px;align-items:center;justify-content:center;border-radius:9px;border:1px solid transparent;padding:12px 18px;min-height:45px;font-size:13px;font-weight:700;line-height:1.25;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s;white-space:normal;text-align:center}
.button:hover{transform:translateY(-1px)}
.button-primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 3px 7px rgba(35,108,241,.16)}
.button-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark);box-shadow:0 7px 16px rgba(35,108,241,.19)}
.button-secondary{background:#fff;color:#1e559f;border-color:#d6e2f5}
.button-secondary:hover{background:#f3f7ff;border-color:#a7c5f3}
.button-light{background:#fff;border-color:#fff;color:#194ba7}
.button-light:hover{background:#ebf2ff}
.button-sm{padding:9px 14px;min-height:38px;font-size:12px}
.full-width{width:100%}
.text-link,.subtle-link{font-size:13px;font-weight:700;color:#2463c4}
.text-link:hover,.subtle-link:hover{text-decoration:underline;text-underline-offset:3px}
.muted{color:var(--muted)}
.lead{font-size:14px;color:var(--muted);line-height:1.75;max-width:660px;margin:10px 0 0}
.eyebrow{display:inline-flex;align-items:center;gap:9px;color:#3777c8;font-weight:800;font-size:10px;letter-spacing:.14em;line-height:1.4}
.section-space{margin-top:26px}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:21px;font-weight:800;letter-spacing:-.065em;color:#132848}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(150deg,#2d88ff,#1a54ce);font-family:Georgia,serif;font-weight:700;font-style:italic;font-size:27px;color:#fff;line-height:1;padding-bottom:4px;letter-spacing:-2px;box-shadow:0 4px 10px rgba(40,102,222,.17)}
.brand-dot{color:var(--blue)}
/* Public site */
.public-header{height:78px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.93);position:sticky;top:0;z-index:30;backdrop-filter:blur(14px)}
.public-header-inner{max-width:1250px;padding:0 34px;margin:0 auto;height:100%;display:flex;align-items:center;justify-content:space-between}
.public-nav{display:flex;align-items:center;gap:32px;font-size:13px;font-weight:650;color:#49617c}
.public-nav>a:not(.button):hover{color:var(--blue)}
.public-content{max-width:100%;margin:auto}
.hero{max-width:1340px;min-height:650px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,1fr);align-items:center;gap:48px;padding:78px 55px 82px}
.hero-content{position:relative;z-index:1}
.hero .eyebrow{color:#3376dd}
.eyebrow-spark{width:8px;height:8px;background:#3e8cff;box-shadow:0 0 0 5px #e8f1ff;border-radius:50%;display:inline-block;margin:0 5px}
.hero h1,.auth-description h1{font-size:clamp(52px,5vw,77px);font-weight:760;letter-spacing:-.076em;line-height:1.075;margin:22px 0 23px;color:var(--ink-strong)}
.gradient-text{color:#246ce6;background:linear-gradient(105deg,#2868e7,#42a5fa);background-clip:text;-webkit-text-fill-color:transparent}
.hero-lead{max-width:570px;color:#677890;font-size:17px;line-height:1.85;margin:0}
.hero-actions{display:flex;align-items:center;gap:27px;flex-wrap:wrap;margin-top:31px}
.hero-caption{display:flex;align-items:center;gap:10px;font-size:12px;color:#8d9bb0;margin-top:70px}
.caption-line{height:1px;width:34px;background:#9ab4db}
.hero-visual{height:475px;min-width:0;position:relative;display:flex;align-items:center}
.visual-glow{position:absolute;inset:4% 4% 0 1%;background:radial-gradient(ellipse at center,#d9e9ff 0%,rgba(225,238,255,.55) 44%,transparent 77%);filter:blur(15px);z-index:0}
.visual-window{position:relative;background:#fff;border:1px solid #d8e5f8;border-radius:16px;width:100%;min-height:348px;box-shadow:0 27px 75px rgba(29,78,162,.12),0 3px 15px rgba(40,90,160,.045);overflow:hidden;transform:perspective(1000px) rotateY(-5deg) rotateX(1deg)}
.window-toolbar{height:40px;border-bottom:1px solid #edf1f8;display:flex;gap:5px;padding:0 18px;align-items:center;background:#fbfdff}
.window-dot{width:7px;height:7px;background:#d8e0eb;border-radius:50%}
.window-title{font-size:10px;color:#9eabc0;margin-left:20px}
.window-body{display:flex;min-height:306px}
.window-side{width:88px;background:#f8fbff;border-right:1px solid #edf1f8;padding:18px 13px;display:flex;flex-direction:column;align-items:start;gap:16px}
.visual-logo{background:#286fee;border-radius:6px;color:#fff;font-family:Georgia,serif;font-size:18px;font-style:italic;width:22px;height:22px;text-align:center}
.side-bar{height:7px;background:#dbe5f2;border-radius:15px;width:49px}.side-bar.short{width:30px}.side-bar.is-current{background:#679af8}
.window-centre{flex:1;padding:27px 30px;min-width:0}
.visual-kicker{font-size:8px;font-weight:800;letter-spacing:.12em;color:#70a0eb}
.visual-title{font-size:18px;font-weight:750;letter-spacing:-.04em;margin:9px 0}
.visual-small-line{height:7px;width:50%;border-radius:10px;background:#e9eef7;margin-bottom:21px}
.visual-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.visual-card{border:1px solid #e5ebf4;border-radius:9px;padding:13px 12px;display:flex;flex-direction:column;gap:8px;box-shadow:0 3px 6px rgba(50,88,137,.025)}
.visual-card-icon{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;background:#eff4fd;color:#2e6bca;font-size:16px}
.visual-card-icon.blue{background:#e9f5ff;color:#2485e2}
.visual-card b{font-size:10px;color:#2b3f5b}
.visual-card i,.visual-task i{width:87%;height:5px;background:#e9eef6;display:block;border-radius:10px}
.visual-card i.short{width:56%}
.visual-task{margin-top:14px;border:1px solid #e9edf6;border-radius:9px;padding:12px;display:flex;gap:12px;align-items:center}
.visual-task-icon{border-radius:7px;background:#e8f1ff;color:#2873df;width:29px;height:29px;display:grid;place-items:center}
.visual-task>div{flex:1;display:flex;flex-direction:column;gap:7px}
.visual-task b{font-size:10px}.visual-task i{max-width:90px}
.visual-task>span:last-child{color:#638bb7}
.visual-float{position:absolute;right:-15px;bottom:33px;z-index:1;background:#fff;padding:12px 18px;display:flex;align-items:center;gap:10px;border:1px solid #e0eaf9;border-radius:10px;font-size:12px;font-weight:700;box-shadow:0 12px 30px rgba(23,79,155,.1)}
.visual-float span{display:grid;place-items:center;width:23px;height:23px;background:#e5f5f1;border-radius:7px;color:#18896e}
.public-section{border-top:1px solid var(--line);background:white;padding:95px max(32px,calc((100vw - 1160px)/2))}
.section-intro{max-width:690px}
.section-intro h2{font-size:clamp(31px,3.4vw,44px);margin:15px 0;letter-spacing:-.055em;line-height:1.23}
.muted-heading{color:#8191a9}
.section-intro p{color:#75849b;margin:0 0 39px}
.public-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.public-feature{border:1px solid var(--line);border-radius:14px;padding:27px 26px;min-height:248px;box-shadow:var(--shadow)}
.feature-icon{width:43px;height:43px;display:grid;place-items:center;background:#eff5ff;color:#296ad4;border-radius:10px;font-size:21px;margin-bottom:31px}
.public-feature>span{color:#4584da;font-size:9px;letter-spacing:.14em;font-weight:850}
.public-feature h3{font-size:20px;letter-spacing:-.035em;margin:11px 0}
.public-feature p{font-size:13px;color:var(--muted);margin:0}
.public-cta{max-width:1160px;margin:76px auto;background:linear-gradient(110deg,#1555c9,#2d82f0);border-radius:20px;padding:49px 56px;display:flex;justify-content:space-between;align-items:center;gap:24px;color:white;box-shadow:0 21px 46px rgba(28,91,197,.15)}
.public-cta .eyebrow{color:#cce4ff}
.public-cta h2{font-size:36px;letter-spacing:-.055em;margin:12px 0}
.public-cta p{color:#d6e9ff;font-size:14px;margin:0}
.public-footer{border-top:1px solid var(--line);padding:28px max(35px,calc((100vw - 1160px)/2));display:flex;justify-content:space-between;gap:20px;color:#8190a6;font-size:12px;background:white}
.public-footer>span:first-child{font-size:16px;font-weight:800;letter-spacing:-.04em;color:var(--ink)}
/* Authentication */
.auth-layout{max-width:1100px;margin:0 auto;padding:115px 30px;display:grid;grid-template-columns:1fr 430px;gap:105px;align-items:start;min-height:calc(100vh - 175px)}
.auth-description h1{font-size:70px;margin:18px 0}
.auth-description>p{color:var(--muted);max-width:400px}
.auth-art{margin-top:42px;height:155px;width:300px;background:linear-gradient(125deg,#e4efff,#f5f9ff);border:1px solid #e2ecfa;border-radius:15px;position:relative;overflow:hidden;padding:25px}
.auth-art>span{font-size:31px;color:#3b87eb}
.auth-art-line{margin-top:12px;height:7px;border-radius:10px;background:#c7dcf9;width:165px}
.auth-art-line.small-line{width:105px;margin-top:9px}
.auth-art-symbol{font-size:120px;color:#c2d8fa;font-weight:900;position:absolute;right:4px;bottom:-52px;letter-spacing:-.1em}
.auth-panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:34px;box-shadow:0 18px 50px rgba(37,72,125,.06)}
.auth-panel-top{display:flex;gap:10px;align-items:center;font-size:12px;font-weight:750;color:#587296}
.auth-mark{width:24px;height:24px;background:#2670e9;color:white;border-radius:7px;font-family:Georgia,serif;font-size:20px;font-style:italic;text-align:center;line-height:23px}
.auth-panel h2{margin:32px 0 9px;font-size:25px;letter-spacing:-.04em}
.auth-panel>p{font-size:13px;margin-bottom:26px}
.auth-help{font-size:12px;color:#8a99ae;margin-top:24px;border-top:1px solid var(--line);padding-top:19px;line-height:1.6}
/* Application shell */
.workspace{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid var(--line);height:100vh;position:sticky;top:0;padding:27px 16px 18px;display:flex;flex-direction:column;min-width:0}
.sidebar .brand{margin-left:9px}
.sidebar-caption{font-size:11px;color:#97a4b7;margin:9px 0 50px 51px}
.sidebar-heading{font-size:10px;font-weight:800;letter-spacing:.13em;color:#9ba9bd;margin:0 12px 10px}
.sidebar-heading-secondary{margin-top:33px}
.sidebar-nav{display:flex;flex-direction:column;gap:4px}
.nav-item{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:9px;font-weight:630;color:#63748c;font-size:13px;min-height:41px;transition:background .15s,color .15s}
.nav-item:hover{background:#f4f8ff;color:#215ab7}
.nav-item.is-active{background:#edf4ff;color:#1f60cc;font-weight:770}
.nav-symbol{width:21px;flex:0 0 21px;display:inline-grid;place-items:center;font-size:18px;color:#788aa7}
.nav-item.is-active .nav-symbol{color:#2b70dd}
.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:19px 8px 5px}
.profile{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.avatar{display:grid;place-items:center;background:linear-gradient(135deg,#dbe8ff,#c7dcff);border:1px solid #c1d9ff;color:#2b61b5;border-radius:10px;font-weight:790;flex-shrink:0;width:39px;height:39px;font-size:15px}
.profile-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.profile-copy strong{font-size:13px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.profile-copy span{font-size:11px;color:#8b9aaf}
.signout{border:0;background:transparent;color:#687d9c;font-weight:650;width:100%;padding:10px 5px;font-size:12px;display:flex;justify-content:space-between}
.signout:hover{color:var(--blue)}
.workspace-content{min-width:0;display:flex;flex-direction:column}
.appbar{height:70px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;gap:20px}
.appbar-location{display:flex;gap:13px;align-items:center;font-weight:700;color:#334b6c;font-size:12px;min-width:0}
.appbar-location span:last-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.appbar-root,.appbar-separator{color:#a3b0c1}
.appbar-right{display:flex;gap:17px;align-items:center}
.workspace-tag{font-size:11px;padding:7px 11px;border:1px solid #e1e9f6;border-radius:6px;color:#637c9e;background:#f8fbff}
.small-avatar{width:30px;height:30px;border-radius:9px;font-size:12px}
.main-content{flex:1;width:100%;max-width:1390px;padding:43px 44px 90px;margin:0 auto}
.app-footer{text-align:center;font-size:11px;color:#98a6ba;padding:23px}
.app-footer span{padding:0 7px;color:#c4ccda}
.page-heading{display:flex;justify-content:space-between;align-items:end;gap:23px;margin:0 0 28px}
.page-heading h1,.material-top h1{font-weight:780;font-size:clamp(29px,3.2vw,39px);line-height:1.25;letter-spacing:-.055em;color:var(--ink-strong);margin:8px 0 5px}
.heading-period{color:var(--blue)}
.page-heading>.button{margin-bottom:4px;flex-shrink:0}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow);min-width:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}
.section-heading h2{margin:6px 0 0;font-size:19px;letter-spacing:-.04em}
.section-heading .subtle-link{white-space:nowrap}
.counter{display:inline-flex;font-size:11px;color:#73869f;border:1px solid var(--line);border-radius:6px;padding:6px 9px;white-space:nowrap}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:21px}
.stat-grid-student{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat-card{min-width:0;position:relative;padding:22px 23px 17px;display:flex;flex-direction:column;align-items:flex-start;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.stat-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#eef5ff;color:#2a70df;font-size:18px;margin-bottom:14px}
.stat-label{font-size:12px;color:#7c8aa0;font-weight:650}
.stat-card>strong{font-size:33px;letter-spacing:-.055em;line-height:1.5;font-weight:780}
.stat-card a{display:flex;justify-content:space-between;width:100%;font-size:12px;font-weight:690;color:#306bd0;border-top:1px solid var(--line);padding-top:13px;margin-top:8px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:19px;align-items:start}
.resource-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #edf1f6;min-width:0}
.resource-row:last-child{border-bottom:0}
a.resource-row:hover .resource-text strong,a.homework-row:hover .resource-text strong{color:var(--blue)}
.resource-icon{display:grid;place-items:center;width:41px;height:41px;border-radius:10px;color:#2f6bd0;background:#f0f5ff;flex-shrink:0;font-size:19px}
.resource-icon.tinted{background:#eff8fb;color:#3281aa}
.resource-text{min-width:0;display:flex;flex:1;flex-direction:column;gap:5px}
.resource-text strong{font-size:13px;font-weight:700;line-height:1.3;min-width:0;transition:color .15s}
.resource-text small{font-size:11px;color:#92a0b4;line-height:1.4;overflow-wrap:anywhere}
.row-arrow{color:#a8b6ca;font-size:18px;flex-shrink:0}
.status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:30px;padding:6px 9px;font-size:10px;font-weight:800;white-space:nowrap;border:1px solid transparent}
.status-pill.waiting{background:#fff6e8;color:#a77029;border-color:#fce9cb}
.status-pill.correct{background:#eaf7f2;color:#2e8670;border-color:#d4f0e5}
.status-pill.retry{background:#fff0f1;color:#b76574;border-color:#f7dadd}
.empty-state{text-align:center;padding:68px 22px;display:flex;align-items:center;flex-direction:column;justify-content:center}
.empty-state.compact{padding:38px 12px}
.empty-glyph{display:grid;place-items:center;font-size:24px;color:#5989d5;border-radius:14px;width:58px;height:58px;background:#f1f6ff;margin-bottom:20px}
.empty-state h3{font-size:17px;letter-spacing:-.025em}
.empty-state p{font-size:12px;color:#8b9bb1;max-width:275px;margin:9px auto 0}
.empty-state .button{margin-top:20px}
.notice{padding:15px 18px;border-radius:10px;background:#eaf4ff;border:1px solid #cce0fb;color:#285b9c;font-size:13px;line-height:1.65;margin-bottom:25px}
.notice.important{background:#fff9e8;border-color:#ffe9b7;color:#785827}
.credentials{display:flex;gap:20px;margin-top:12px;flex-wrap:wrap}
.credentials code{font-size:13px;word-break:break-all}
.back-link{font-size:12px;font-weight:750;color:#4379cc;display:inline-flex;gap:10px;margin-bottom:23px}
.back-link:hover{text-decoration:underline}
/* Forms */
.form-stack{display:flex;flex-direction:column;gap:17px}
label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#435570}
input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;border:1px solid #d9e2f0;width:100%;background:#fff;border-radius:9px;padding:12px 13px;min-height:43px;transition:border-color .15s,box-shadow .15s;line-height:1.45;font-size:13px}
input::placeholder,textarea::placeholder{color:#a0acc0}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:#78a9f7;box-shadow:0 0 0 3px rgba(80,146,250,.11);outline:0}
input[type=file]{padding:10px;font-size:11px}
textarea{resize:vertical}
.label-optional{font-weight:400;color:#9ba9bc}
.form-intro{font-size:12px;line-height:1.7;margin:0 0 20px}
.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-panel{max-width:850px}
.form-panel .form-stack>.button{align-self:flex-start}
.check-option{display:flex;flex-direction:row;align-items:center;gap:9px;line-height:1.5}
.check-option input{accent-color:var(--blue);width:15px;height:15px;flex-shrink:0}
.tip{font-size:12px;color:#617c9f;background:#f2f7ff;border:1px solid #e2edff;border-radius:10px;padding:15px;margin-top:20px;line-height:1.65}
/* Library */
.library-panel{padding-bottom:32px}
.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.library-card{display:flex;align-items:center;gap:16px;padding:14px;border:1px solid #e5ebf4;border-radius:11px;transition:border-color .16s,box-shadow .16s;min-width:0}
.library-card:hover{border-color:#b0cdf6;box-shadow:0 7px 22px rgba(44,106,210,.065)}
.library-cover{position:relative;width:90px;min-height:119px;flex:0 0 90px;border-radius:8px;background:linear-gradient(148deg,#dceaff,#eff7ff);border:1px solid #d2e4fd;padding:13px;display:flex;justify-content:space-between;flex-direction:column;overflow:hidden}
.library-card:nth-child(3n+2) .library-cover{background:linear-gradient(145deg,#deebf3,#f1f8fc)}
.library-card:nth-child(3n+3) .library-cover{background:linear-gradient(145deg,#e4e9ff,#f5f6ff)}
.cover-lines{width:35px;height:2px;background:#a8c2e9;box-shadow:0 5px 0 #b9d2ef,0 10px 0 #b9d2ef}
.cover-monogram{font-size:33px;line-height:1;font-weight:810;letter-spacing:-.07em;color:#548ad7;opacity:.8}
.cover-monogram span{color:#93b8ea}
.cover-footer{font-size:9px;color:#86a8d6;align-self:flex-end}
.library-info{min-width:0;flex:1}
.library-info>strong{display:block;font-size:14px;line-height:1.35;margin-bottom:6px}
.library-info p{color:#8998ac;font-size:11px;margin:0 0 13px;line-height:1.6}
.library-meta{display:flex;gap:7px;flex-wrap:wrap}
.library-meta span,.meta-chip{font-size:10px;padding:5px 8px;background:#f4f7fc;color:#6f85a3;border:1px solid #e7edf6;border-radius:6px;white-space:nowrap}
.library-open{align-self:flex-start;color:#9cb2cf}
/* Learners, homework and reviews */
.learners-layout{grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)}
.learner-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid #edf1f6;padding:14px 0}
.learner-row:last-child{border-bottom:0}
.list-avatar{width:37px;height:37px;border-radius:9px;font-size:13px}
.meta-number{font-size:10px;color:#8494ab;white-space:nowrap}
.homework-row{display:flex;align-items:center;gap:15px;border-bottom:1px solid #edf1f6;padding:15px 0}
.homework-row:last-child{border-bottom:0}
.reviews-wrap{max-width:960px;display:flex;flex-direction:column;gap:17px}
.review-card{padding:27px 31px}
.review-head{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding-bottom:18px}
.review-identity{display:flex;align-items:center;gap:13px}
.review-identity>div{display:flex;flex-direction:column;gap:5px}
.review-identity strong{font-size:13px}
.review-identity small{color:#8b9bb0;font-size:11px}
.review-prompt{padding:18px 0 14px}
.review-prompt h3{margin-top:7px;font-size:16px}
.answer-box{background:#f7f9fd;border-radius:9px;border:1px solid #ecf0f7;padding:16px 18px;margin-bottom:20px}
.answer-box p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:10px 0 0}
.review-actions{display:flex;gap:10px;justify-content:flex-end}
/* Book workspace */
.book-heading{margin-bottom:29px}
.book-layout{display:grid;grid-template-columns:minmax(0,1fr) 322px;gap:21px;align-items:start}
.book-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.book-section{padding:28px}
.book-tools{display:flex;flex-direction:column;gap:18px;min-width:0}
.sidebar-panel{padding:22px}
.sidebar-panel h2{font-size:18px;letter-spacing:-.04em;margin:9px 0 8px}
.sidebar-panel>p{font-size:12px;margin:0 0 20px}
.page-entry{display:flex;align-items:center;gap:14px;border:1px solid #e6ecf7;border-radius:10px;padding:13px;margin:11px 0;min-width:0}
.page-entry:hover{background:#f8fbff;border-color:#b9d3f8}
.page-entry-icon{width:38px;height:44px;border-radius:7px;display:grid;place-items:center;background:#edf5ff;color:#417fcf;flex-shrink:0;font-size:19px}
.page-entry .row-arrow{margin-left:auto}
.access-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #eef2f8;padding:12px 0}
.access-row:last-child{border-bottom:0}
.access-row>strong{font-size:11px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.access-row .list-avatar{width:29px;height:29px;font-size:11px}
.access-button{border:1px solid #d9e4f4;background:#f7faff;color:#316ac7;padding:6px 9px;border-radius:7px;font-size:10px;font-weight:750;white-space:nowrap}
.access-button:hover{background:#ecf3ff}
.access-button.active{color:#31755e;background:#ebf8f3;border-color:#d6efe4}
.create-exercise>summary,.pdf-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:#2865c6;font-size:13px;font-weight:800}
.create-exercise>summary::-webkit-details-marker,.pdf-details>summary::-webkit-details-marker{display:none}
.create-exercise[open]>summary{padding-bottom:20px}
.pdf-details>summary{padding:14px 16px;border:1px solid #dbe7f9;border-radius:9px;background:#f5f9ff}
.pdf-details[open] summary{margin-bottom:15px}
.pdf-frame{width:100%;height:570px;max-height:80vh;min-height:370px;border:1px solid #dfe8f6;border-radius:10px;background:#fff}
.exercise-card{border:1px solid #e4ebf6;border-radius:11px;padding:22px 23px;margin:14px 0 0}
.exercise-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.exercise-number{font-size:10px;font-weight:800;color:#3f7bd3;letter-spacing:.08em;text-transform:uppercase}
.exercise-card>h3{font-size:16px;line-height:1.6;letter-spacing:-.022em;margin:0 0 16px;font-weight:700;white-space:pre-wrap}
.exercise-card>.muted{font-size:11px}
.answer-key{font-size:12px;color:#617f9e;background:#f4f8fe;border-radius:7px;padding:10px}
.assign-form{display:flex;align-items:end;gap:9px;margin:15px 0}
.assign-form>label{flex:1;min-width:0}
.assignment-chip{display:inline-flex;align-items:center;gap:10px;border-radius:7px;padding:5px 8px;background:#f5f8fe;margin:4px 6px 3px 0;font-size:11px;color:#67819f}
.assignment-chip button{border:0;background:transparent;color:#b25b70;font-size:10px;font-weight:800;padding:4px}
.exercise-response{margin-top:18px}
.exercise-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.choice-group{margin:0;padding:15px;border:1px solid #dce6f4;border-radius:9px}
.choice-group legend{font-size:12px;font-weight:750;padding:0 5px}
.choice{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13px;font-weight:500;padding:9px 3px}
.choice>input{accent-color:var(--blue);width:16px;height:16px}
.teacher-feedback{background:#f0f7ff;border-left:3px solid #4e8be7;padding:13px 16px;margin-top:18px;border-radius:0 8px 8px 0}
.teacher-feedback strong{font-size:11px;color:#306cb5}.teacher-feedback p{font-size:12px;margin:5px 0 0;white-space:pre-wrap}
/* Lesson pages */
.material-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:4px 0 31px}
.material-top .muted{font-size:12px}
.material-actions{display:flex;align-items:center;gap:10px}
.paper-sheet{max-width:820px;margin:0 auto;background:white;border:1px solid #e1e8f2;box-shadow:0 11px 40px rgba(30,56,91,.06);border-radius:4px;min-height:680px;padding:64px 68px 40px;display:flex;flex-direction:column}
.paper-meta,.paper-bottom{display:flex;justify-content:space-between;gap:15px;font-size:9px;font-weight:800;letter-spacing:.12em;color:#87a0c5}
.paper-rule{height:3px;background:linear-gradient(to right,#2c77e6 24%,#e6edf8 24%);margin:16px 0 58px}
.paper-sheet h2{font-size:35px;letter-spacing:-.055em;line-height:1.2;margin-bottom:35px}
.paper-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:2;color:#354960}
.paper-placeholder{color:#9eafc2;font-size:14px}
.paper-bottom{border-top:1px solid var(--line);margin-top:auto;padding-top:24px}
.material-bottom{max-width:820px;margin:23px auto 0;display:flex;align-items:center;justify-content:space-between;gap:15px}
.editor-layout,.settings-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:20px;align-items:start}
.editor-panel textarea{min-height:350px}
.editor-side p,.account-note{font-size:12px}
.editor-side h2{font-size:19px;letter-spacing:-.04em;margin:10px 0}
.editor-actions{display:flex;align-items:center;gap:12px}
.profile-large{display:flex;align-items:center;gap:16px;margin:21px 0}
.profile-avatar{width:65px;height:65px;font-size:24px;border-radius:14px}
.profile-large h2{font-size:19px;margin-bottom:6px}
.profile-large p{font-size:12px;margin:0}
.account-note{margin-top:24px}
@media (max-width:1180px){
  .appbar{padding:0 28px}.main-content{padding:35px 28px 80px}
  .book-layout{grid-template-columns:minmax(0,1fr) 285px}
  .sidebar-panel{padding:19px}
  .hero{padding-left:35px;padding-right:35px;gap:25px}
}
@media (max-width:980px){
  .workspace{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}
  .sidebar-caption{margin-left:49px}.public-section{padding:65px 35px}.public-cta{margin:55px 35px}
  .content-grid,.book-layout,.learners-layout,.editor-layout,.settings-layout{grid-template-columns:1fr}
  .book-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .book-tools>.sidebar-panel:last-child{grid-column:1/-1}
  .library-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .workspace{display:block}.sidebar{position:relative;height:auto;padding:13px 18px 5px;border-right:0;border-bottom:1px solid var(--line)}
  .sidebar .brand{margin:0 0 14px}.sidebar-caption,.sidebar-heading,.sidebar-bottom{display:none}
  .sidebar-nav{display:flex;flex-direction:row;gap:7px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap;padding:0 0 9px}
  .sidebar-nav .nav-item{padding:8px 10px;min-height:36px;flex-shrink:0}
  .sidebar-nav .nav-symbol{display:none}
  .sidebar-nav[aria-label="Account navigation"]{display:none}
  .appbar{height:48px;padding:0 19px}.appbar-location{font-size:11px}.workspace-tag{display:none}
  .main-content{padding:27px 19px 65px}.page-heading{align-items:start;flex-direction:column;gap:19px}
  .page-heading h1{font-size:32px}.page-heading>.button{margin:0}
  .stat-grid,.stat-grid-student{grid-template-columns:repeat(2,minmax(0,1fr))}
  .book-tools{grid-template-columns:1fr}
  .book-tools>.sidebar-panel:last-child{grid-column:auto}
  .public-header{height:70px}.public-header-inner{padding:0 18px}.public-nav{gap:10px}.public-nav>a:not(.button){display:none}
  .hero{grid-template-columns:1fr;padding:61px 23px 70px;min-height:unset}.hero-content h1{font-size:56px}.hero-visual{height:360px;max-width:540px;width:100%;margin:auto}
  .hero-caption{margin-top:35px}
  .public-feature-grid{grid-template-columns:1fr}.public-feature{min-height:auto}
  .public-section{padding:67px 23px}.public-cta{margin:35px 18px;padding:38px 27px;flex-direction:column;align-items:start}
  .public-cta h2{font-size:30px}.public-footer{padding:27px 20px}
  .auth-layout{grid-template-columns:1fr;gap:28px;padding:53px 22px;min-height:unset}
  .auth-description h1{font-size:55px}.auth-art{display:none}.auth-panel{padding:26px}
  .form-columns{grid-template-columns:1fr}
  .paper-sheet{padding:40px 30px;min-height:600px}
}
@media (max-width:510px){
  .public-nav .button{font-size:11px;min-height:37px;padding:9px 11px}
  .brand{font-size:19px}
  .hero h1{font-size:49px}.hero-lead{font-size:15px}.hero-actions{align-items:start;flex-direction:column;gap:20px}
  .hero-visual{height:310px}.visual-window{min-height:260px}
  .window-centre{padding:20px 15px}.window-side{width:52px;padding:13px 8px}
  .side-bar{width:28px}.side-bar.short{width:18px}
  .visual-float{right:2px;bottom:8px}
  .stat-grid,.stat-grid-student{grid-template-columns:1fr;gap:12px}
  .stat-card{padding:16px 20px}.stat-card>strong{font-size:29px}
  .panel,.book-section{padding:20px}
  .library-card{gap:11px;padding:11px}.library-cover{width:73px;flex-basis:73px;min-height:104px}
  .library-info>strong{font-size:13px}
  .resource-row{gap:9px}.resource-icon{width:35px;height:35px;font-size:15px}
  .status-pill{font-size:9px}
  .homework-row{flex-wrap:wrap}.homework-row .resource-text{flex-basis:calc(100% - 55px)}
  .material-top{flex-direction:column;align-items:start}.material-actions{flex-wrap:wrap}
  .paper-sheet{padding:30px 22px;min-height:550px}.paper-sheet h2{font-size:28px}.paper-meta,.paper-bottom{font-size:8px}
  .editor-actions{flex-direction:column;align-items:stretch}.editor-actions .button{width:100%}
  .review-head{align-items:start;flex-direction:column}
  .review-actions{justify-content:stretch}.review-actions .button{flex:1}
  .appbar-root{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button,.nav-item,.library-card,.resource-text strong{transition:none}.button:hover{transform:none}}

/* Small identity mark rather than repeated wordmarks in every view. */
.sidebar-caption{margin-left:9px}
@media(max-width:760px){.sidebar-caption{display:none}}

/* Compact, keyboard-accessible language switcher on both headers. */
.language-picker{position:relative;flex-shrink:0;color:var(--text,#20344b);font-size:12px;z-index:40}
.language-trigger{display:flex;gap:7px;align-items:center;justify-content:center;cursor:pointer;list-style:none;border:1px solid var(--line,#dbe5f2);background:#fff;color:#334b6c;padding:7px 9px;border-radius:9px;min-height:34px;font-weight:750;line-height:1}
.language-trigger::-webkit-details-marker{display:none}
.language-trigger:hover,.language-picker[open] .language-trigger{border-color:#8cb8f5;background:#f7fbff}
.language-trigger:focus-visible,.language-option:focus-visible{outline:2px solid #2475dc;outline-offset:2px}
.language-globe{font-size:17px;color:#5780b3;line-height:1}
.language-chevron{font-size:13px;color:#71839b}
.language-options{position:absolute;top:calc(100% + 7px);right:0;min-width:205px;background:#fff;padding:5px;border:1px solid var(--line,#dae5f3);box-shadow:0 14px 38px rgba(16,41,78,.15);border-radius:11px;z-index:50}
.language-options form{margin:0}
.language-option{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-radius:7px;padding:10px 11px;color:#304966;font:inherit;font-size:12px;cursor:pointer}
.language-option:hover,.language-option.is-selected{background:#eff6ff;color:#225bad}
@media(max-width:510px){.language-options{min-width:190px}.language-trigger{padding:7px 8px}.public-header .public-nav{gap:7px}}

.error-panel{max-width:680px;margin:72px auto}

/* Internal radar, same visual vocabulary as the teaching workspace. */
.radar-panel{overflow:hidden}
.radar-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:0 0 20px}
.radar-filters label,.radar-triage label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#49617c}
.radar-filters input,.radar-filters select,.radar-triage input,.radar-triage select{min-height:37px;border:1px solid #dce5f1;border-radius:7px;padding:7px 9px;background:#fff;color:#263d56;font:inherit}
.radar-filters input{min-width:175px}
.radar-lead{padding:19px 0;border-bottom:1px solid #e7edf5}
.radar-lead:first-of-type{border-top:1px solid #e7edf5}
.radar-lead-top{display:flex;gap:14px;align-items:center;justify-content:space-between}
.radar-lead-top>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.radar-lead-info{margin:10px 0;font-size:12px}
.radar-facts{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65}
.radar-triage{display:flex;align-items:end;gap:11px;flex-wrap:wrap;margin-top:12px}
.radar-note{flex:1;min-width:180px}
.radar-list{max-height:520px;overflow:auto}
.radar-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e8edf4;padding:12px 0}
.radar-row strong{font-size:12px}
.radar-row small{display:block;margin-top:5px;font-size:11px}
.radar-updated{margin:22px 0;font-size:11px}
@media(max-width:760px){.radar-triage>*{flex-grow:1}.radar-filters label{flex:1;min-width:130px}.radar-row{align-items:flex-start}}

/* Eight uploaded artworks: transparent lossless WebP alpha masks inherit
   the surrounding text colour and follow active, hover and theme states. */
.site-icon{
  display:inline-block;
  width:1em;
  height:1em;
  flex:0 0 auto;
  background-color:currentColor;
  -webkit-mask-image:var(--site-icon);
  mask-image:var(--site-icon);
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-size:contain;
  mask-size:contain;
  vertical-align:-.1em;
}
.site-icon--overview{--site-icon:url("icons/overview.webp")}
.site-icon--library{--site-icon:url("icons/library.webp")}
.site-icon--homework{--site-icon:url("icons/homework.webp")}
.site-icon--student{--site-icon:url("icons/student.webp")}
.site-icon--review{--site-icon:url("icons/review.webp")}
.site-icon--answer{--site-icon:url("icons/answer.webp")}
.site-icon--account{--site-icon:url("icons/account.webp")}
.site-icon--globe{--site-icon:url("icons/globe.webp")}
.nav-symbol.site-icon{display:inline-block;width:21px;height:21px;flex:0 0 21px;color:#788aa7;background-color:currentColor}
.nav-item.is-active .nav-symbol.site-icon{color:#2b70dd}
.nav-item:hover .nav-symbol.site-icon{color:var(--blue)}
.language-globe.site-icon{width:17px;height:17px;color:#5780b3}
.stat-icon .site-icon{font-size:19px}
.resource-icon .site-icon{font-size:20px}
.empty-glyph .site-icon{font-size:27px}
.page-entry-icon .site-icon{font-size:19px}
.visual-card-icon .site-icon,.visual-task-icon .site-icon{font-size:16px}
.feature-icon .site-icon{font-size:23px}
@media(max-width:760px){.sidebar-nav .nav-symbol.site-icon{display:none}}
