@font-face{font-family:Geist;src:url('/art/geist-sans-variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{font-family:Geist,Arial,sans-serif;color:#292635;font-synthesis:none;--ink:#302a3a;--border:1.7px solid var(--ink);--muted:#625e6a;--purple:#e9dffc}
*{box-sizing:border-box}body{margin:0;background-color:#faf9f5;background-image:radial-gradient(#d9d5ce .75px,transparent .85px);background-size:13px 13px;font-size:16px}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button{background:none;border:0}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7846ca;outline-offset:3px}button{transition:background .15s,transform .15s}header{background:#fffefa;border-bottom:var(--border)}.top{height:73px;max-width:1352px;padding:0 4.6%;margin:0 auto;display:flex;align-items:center;gap:5.1%}.brand{padding:0;display:flex;align-items:center;gap:10px;font-weight:870;letter-spacing:-1.6px;font-size:27px;color:#282334;white-space:nowrap}.brand img{width:42px;height:42px}.top nav{display:flex;gap:6px}.top nav button{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:640;border-radius:8px;padding:10px 14px}.top nav svg{width:17px;height:17px}.top nav .selected{background:#eae0fb}.top nav button:hover,.iconbtn:hover,.secondary:hover{background:#eee9f3}.classpick{position:relative;margin-left:auto;display:flex;gap:9px;align-items:center;background:#fffefa;border:1.4px solid #c9c5cc;border-radius:8px;padding:8px 11px;font-size:14px;font-weight:630}.classpick select{appearance:none;border:0;background:transparent;padding:0 23px 0 0;outline-offset:1px}.classpick>svg:last-child{position:absolute;right:11px;pointer-events:none}
main{max-width:1352px;padding:30px 4.6% 55px;margin:0 auto}.hero,.panel,.stat{border:var(--border);border-radius:15px;box-shadow:3px 3px 0 #393240}.hero{position:relative;overflow:hidden;background-color:#ffe6a1;background-image:radial-gradient(ellipse at 78% 40%,#ffdf86 0%,transparent 43%);display:flex;align-items:center;justify-content:space-between;padding:24px 34px;min-height:213px;isolation:isolate}.hero-copy{position:relative;z-index:1}.eyebrow{display:flex;gap:8px;align-items:center;font-size:12px;letter-spacing:1.65px;font-weight:790}.eyebrow span{border:1.5px solid var(--ink);width:14px;height:11px;background:#b491e9;transform:rotate(-8deg);border-radius:2px;box-shadow:2px 2px 0 #fff4c9}h1,h2,p{margin:0}h1{font-size:clamp(37px,3.9vw,57px);line-height:1.05;font-weight:830;letter-spacing:-2.9px;margin:9px 0 8px}.hero p{font-size:16px;color:#47404a;margin-bottom:19px}
.brand-wrap{display:flex;align-items:center;gap:9px;min-width:0}
.language-help{display:flex;align-items:center;gap:6px;flex:none}
.about-help{flex:none;display:grid;place-items:center;width:25px;height:25px;padding:0;border:1.5px solid #8f70b8;border-radius:50%;background:#f4ecfb;color:#5b3f7c;font-size:14px;font-weight:800;line-height:1}
.about-help:hover{background:#e8dafa}
.worm{position:absolute;width:32%;height:94%;object-fit:contain;right:5%;top:3%;z-index:-1;transform:rotate(-2deg)}.primary,.secondary,.allreaders{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:650;padding:10px 16px;border-radius:8px}.primary{background:#302a3b;border:1px solid #302a3b;color:white;box-shadow:0 2px 0 #15121a}.primary:hover{background:#514161;transform:translateY(-1px)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:23px 0 27px}.stat{display:grid;grid-template-columns:49px 1fr;grid-template-rows:auto auto;column-gap:15px;align-items:center;text-align:left;padding:16px 19px;min-height:93px;border-radius:12px;box-shadow:2px 3px 0 #393240}.stat-icon{grid-row:span 2;display:grid;place-items:center;width:47px;height:47px;border:var(--border);border-radius:11px;transform:rotate(-5deg)}.stat-icon svg{width:26px;height:26px;stroke-width:1.9}.stat-num{font-size:32px;letter-spacing:-1.8px;font-weight:820;line-height:1.05}.stat-name{font-size:14px;font-weight:600}.stat:hover{transform:translateY(-2px)}.purple{background:#e9dffa}.purple .stat-icon{background:#c2a4ec}.mint{background:#dcf0de}.mint .stat-icon{background:#9ed7ac}.blue{background:#ddeefa}.blue .stat-icon{background:#a1cbed}.peach{background:#ffdfd4}.peach .stat-icon{background:#f5aa92}
.panels{display:grid;grid-template-columns:minmax(0,1.98fr) minmax(285px,1fr);gap:23px;align-items:start}.panel{overflow:hidden;background:#fffefa;box-shadow:2.5px 3px 0 #393240}.section-head,.leaderhead{padding:21px 21px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.heading{display:flex;gap:10px;align-items:center}.headingicon,.heading>svg{width:25px;height:25px;stroke-width:1.9}.headingicon{color:#645085;fill:#e9dbf9}.heading h2,.modalhead h2{font-size:24px;font-weight:775;letter-spacing:-1.1px;line-height:1.2}.iconbtn{width:33px;height:33px;display:grid;place-items:center;border-radius:8px;border:1px solid #d8d3d7;background:#fffefa}.iconbtn.active{background:#e8dafa}.filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 21px 16px}.filters button{font-size:13px;font-weight:610;border:1px solid #d9d5d9;background:#fffefa;border-radius:7px;padding:6px 11px;display:flex;align-items:center;gap:6px}.filters button.chosen{border-color:#44384f;background:#ede3fa}.filters button:hover{background:#f2edf5}.filters small{font-size:11px;background:#ffded2;color:#863f31;min-width:17px;padding:0 4px;border-radius:5px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;letter-spacing:.55px;text-transform:uppercase;color:#655e69;font-weight:660;background:#f6f4ef;border-top:1px solid #dcd7da;border-bottom:1px solid #dcd7da;padding:11px 9px;white-space:nowrap}th:first-child,td:first-child{padding-left:21px}td:last-child,th:last-child{padding-right:19px}td{padding:11px 9px;font-size:14px;white-space:nowrap;border-bottom:1px solid #e8e4e3}tr:last-child td{border-bottom:none}.bookcell{display:flex;align-items:center;gap:11px;padding:0;text-align:left;white-space:normal}.bookcell:hover b,.shelfbook:hover b{text-decoration:underline}.bookcell>span,.shelfbook>span:not(.cover){display:flex;flex-direction:column;gap:3px}.bookcell b,.shelfbook b{font-size:15px;font-weight:690;line-height:1.25}.bookcell small,.shelfbook small,.bookdetails small{font-size:13px;color:var(--muted)}.cover{flex:none;display:block;width:33px;height:47px;object-fit:cover;border-radius:3px;border:1px solid #51474e;box-shadow:1px 2px 0 #ddd5cf}.chip{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:650;border-radius:6px;padding:4px 7px;line-height:1.25}.chip svg{width:13px;height:13px}.red{color:#8b392a;background:#ffdfd5}.green{color:#2a6848;background:#ddf0df}.yellow{color:#795b22;background:#ffedc0}.neutral{background:#eae5ee;color:#594964}
.leaderhead{position:relative;background:#e4d3f6;border-bottom:var(--border);padding:20px 20px;overflow:hidden}.leaderhead:after{content:"";position:absolute;right:-15px;top:-20px;width:109px;height:90px;background-image:radial-gradient(#a693bd 1.2px,transparent 1.5px);background-size:7px 7px;opacity:.5;transform:rotate(-13deg);mask-image:linear-gradient(70deg,transparent,#000)}.trophy{fill:#ffd376}.doodle{transform:rotate(15deg);fill:#fff5c7;z-index:1}.leaderbody{padding:16px 18px 17px}.ranktabs{display:flex;gap:3px;background:#f3f0f3;padding:3px;border:1px solid #dcd5df;border-radius:8px}.ranktabs button{flex:1;padding:6px 5px;font-size:13px;font-weight:610;border:1px solid transparent;border-radius:5px;color:#605864}.ranktabs .on{border-color:#9a8ca5;background:#fffefa;color:var(--ink);box-shadow:0 1px 1px #d4cadb}ol{list-style:none;margin:8px 0 10px;padding:0}.leaders li{display:flex;align-items:center;gap:9px;min-height:52px;border-bottom:1px dashed #dad5d8}.leaders li:last-child{border:0}.position{display:grid;place-items:center;width:22px;height:24px;font-size:13px;font-weight:720}.pos0,.pos1,.pos2{border:1px solid #9a792e;border-radius:50%;width:23px;height:23px;color:#72521e;background:#ffe09a}.pos1{color:#576575;background:#e3e9ee;border-color:#a2acb6}.pos2{color:#805a45;background:#f4d3bd;border-color:#c69e80}.face{width:34px;height:34px;flex:none}.leaders li b{font-size:15px;font-weight:660}.score{margin-left:auto;font-size:15px;font-weight:720;white-space:nowrap}.score small{font-size:13px;color:#655c69;font-weight:500}.allreaders{width:100%;border:1px solid #92869c;background:#f9f5fc;padding:8px}.allreaders:hover{background:#e9ddf3}.empty{padding:21px;text-align:center;color:var(--muted);font-size:15px}.inset{margin:0 20px 13px}.find{display:flex;align-items:center;gap:6px;border:1px solid #d2ccd4;border-radius:8px;background:white;padding:7px 10px;max-width:100%}.find input{border:0;outline:0;min-width:0;width:150px;font-size:14px;background:transparent}.find:focus-within{outline:2px solid #a585c3}.find button{padding:0;display:grid;place-items:center}.shelfpanel,.readerspanel{margin-top:24px}.shelfpanel .filters{padding-top:5px}.count{font-size:13px;background:#e9def6;padding:3px 8px;border-radius:8px}.bookgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:0 21px 22px}.shelfbook{border:1px solid #d8d1d8;border-radius:9px;display:flex;gap:13px;align-items:center;text-align:left;padding:15px;background:#fff}.shelfbook .cover,.bookdetails .cover{width:48px;height:69px}.shelfempty{display:none}.bookgrid:empty+.shelfempty{display:block}.rankcontrols{width:300px;max-width:100%;padding:0 20px 16px}.readername,.bookdetails{display:flex;align-items:center;gap:12px}.custom{display:grid;place-items:center;background:#d4c2ed;border-left-width:4px}.custom.c1{background:#a7cdc0}.custom.c2{background:#f4bf95}.custom.c3{background:#9bc2e0}
dialog{color:var(--ink);border:var(--border);border-radius:16px;box-shadow:4px 5px 0 var(--ink);padding:0;background:#fffdf8;width:min(425px,calc(100% - 36px));max-height:90dvh;overflow-y:auto}dialog::backdrop{background:#29223564}.modalpad{padding:22px}.modalhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}.modalhead .iconbtn{flex:none}form label{display:block;font-weight:630;font-size:14px;margin:13px 0}form label small{font-weight:400}form input,form select{width:100%;border:1px solid #ada3b0;background:white;border-radius:7px;padding:9px 10px;margin-top:6px;font-size:16px}form select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23443a4b' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.modalactions{display:flex;justify-content:flex-end;gap:8px;margin-top:21px}.secondary{border:1px solid #c6beca;background:white}.error{background:#ffdfd6;color:#893623;padding:10px;border-radius:7px;margin:12px 0;font-size:14px}.error button{text-decoration:underline}.bookdetails small{display:block;margin-top:5px}.wide{width:100%;margin-top:12px}.avail{display:flex;gap:7px;align-items:center;margin:18px 0 0;color:#35734f}dl{display:grid;grid-template-columns:1fr auto;gap:10px;margin:20px 0 6px;font-size:14px}dt{color:var(--muted)}dd{text-align:right;margin:0;font-weight:600}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 17px;display:flex;align-items:center;gap:8px;color:#fff;background:#302a3b;border-radius:9px;z-index:2;font-size:15px}
@media(min-width:1500px){.top,main{padding-left:45px;padding-right:45px}.hero{min-height:235px}}
@media(max-width:1000px){.top,main{padding-left:3%;padding-right:3%}.top{gap:3%}.panels{grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:14px}.section-head,.leaderhead{padding-left:14px;padding-right:14px}.filters{padding-left:14px}.leaderbody{padding:14px 12px}.stat{padding:13px 12px;column-gap:9px}.stats{gap:12px}.bookcell{gap:7px}th:first-child,td:first-child{padding-left:12px}td:last-child,th:last-child{padding-right:12px}td,th{padding-left:6px;padding-right:6px}.hero{min-height:197px}.bookgrid{grid-template-columns:1fr 1fr}}
@media(max-width:780px){.panels{grid-template-columns:1fr}.top{flex-wrap:wrap;height:auto;padding-top:10px;gap:5px}.top nav{order:3;width:100%;padding:4px 0 8px}.top nav button{flex:1;justify-content:center}.hero{padding:22px}.worm{width:31%;right:1%}.stat{grid-template-columns:36px 1fr;min-height:77px;padding:11px 8px}.stat-icon{width:33px;height:37px;border-radius:8px}.stat-icon svg{width:21px}.stat-num{font-size:25px}.stat-name{font-size:12px}.stats{gap:8px}.leaderbody{padding:15px 20px}.bookcell b{font-size:14px}}
@media(max-width:550px){main{padding:17px 13px 40px}.top{padding-left:13px;padding-right:13px}.brand{font-size:24px}.brand img{width:35px;height:35px}.classpick{font-size:13px}.top nav button{padding:8px 4px}.hero{padding:19px 16px;min-height:187px}.hero-copy{max-width:77%}.eyebrow{font-size:10px;letter-spacing:1.15px}h1{font-size:34px;letter-spacing:-1.9px}.hero p{font-size:14px;max-width:220px;line-height:1.4;margin-bottom:13px}.worm{right:-11px;top:46%;height:50%;width:33%}.hero .primary{font-size:13px;padding:9px 11px}.stats{grid-template-columns:repeat(2,1fr);margin:15px 0 18px;gap:10px}.stat{grid-template-columns:39px 1fr;column-gap:12px;padding:10px 13px;min-height:67px}.stat-icon{width:38px;height:38px}.stat-name{font-size:13px}.stat-num{font-size:25px}.section-head,.leaderhead{padding:15px 13px 13px}.heading h2{font-size:22px}.filters{gap:5px;padding-bottom:12px}.bookcell .cover{width:25px;height:36px}.bookcell{gap:6px}.bookcell b{font-size:13px}.bookcell small{font-size:12px}td,th{padding:10px 4px;font-size:12px}th{font-size:10px;letter-spacing:.1px;white-space:normal}td:first-child,th:first-child{padding-left:9px}td:last-child,th:last-child{padding-right:6px}.chip{font-size:11px;padding:4px;gap:2px}.chip svg{width:11px}.shelfpanel .section-head,.readerspanel .section-head{flex-wrap:wrap}.bookgrid{grid-template-columns:1fr;padding:0 12px 15px}.readerspanel table td{white-space:normal}.find{max-width:100%}.face{width:30px;height:30px}}

.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.hero-actions .secondary{border:var(--border);background:#fffdf8}.desk-hero{background:#e9ddfa;background-image:radial-gradient(ellipse at 78% 40%,#d7c2f2,transparent 45%)}.desk-panel{margin-top:24px}.desk-top,.desk-filters{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px}.desk-top{background:#f7f3fb;border-bottom:1px solid #d9cfde}.desk-tabs{display:flex;gap:5px}.desk-tabs button{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid transparent;border-radius:8px;font-weight:650;font-size:15px}.desk-tabs button[aria-pressed=true]{background:#e7d8fa;border-color:#806991}.desk-tabs button span{font-size:12px;min-width:20px;text-align:center;border-radius:5px;background:#ffffffa6;padding:2px 4px}.desk-filters h2{font-size:22px;letter-spacing:-.8px}.desk-filters .filters{padding:0}.desk-filters .filters span{color:var(--muted)}.desk-list{list-style:none;padding:0;margin:0}.desk-list li{display:grid;grid-template-columns:minmax(140px,1fr) minmax(95px,17%) auto;align-items:center;gap:18px;border-top:1px solid #e4dfe3;padding:11px 22px}.desk-entry{display:flex;align-items:center;gap:12px;min-width:0;overflow-wrap:anywhere}.desk-entry .face{width:28px;height:28px;flex:none}
.desk-entry .cover{width:32px;height:45px}.desk-entry b{font-size:15px}.desk-entry small{display:block;font-size:13px;color:var(--muted);margin-top:3px}.desk-state{justify-self:start;font-size:13px;font-weight:590;color:#42654e;background:#e4f1e4;padding:4px 8px;border-radius:6px}.desk-state.borrowed{background:#e4eef8;color:#405774}.desk-actions{display:flex;align-items:center;gap:7px}.desk-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:14px;font-weight:600;border:1px solid #d1c9d4;border-radius:7px;padding:7px 10px;background:#fffdf9}.desk-action svg{width:15px;height:15px}.desk-action:hover{background:#f4edf9}.desk-action.remove{color:#8a473b}.desk-action.remove:hover{background:#ffebe2}.removal-note .secondary{display:flex;text-align:left;margin:10px 0 0}.modalpad p{line-height:1.5}
@media(max-width:900px) and (min-width:781px){.top{gap:1%}.top nav{gap:0}.top nav button{padding:9px 8px}}
@media(max-width:620px){.desk-top,.desk-filters{padding:12px;flex-wrap:wrap}.desk-top .find{flex:1}.desk-top .find input{width:100%}.desk-tabs button{padding:7px}.desk-list li{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:12px}.desk-entry{grid-column:1/-1}.desk-actions{justify-self:end}.desk-state{font-size:12px}.desk-action{font-size:13px}.top nav{gap:1px}.top nav button{gap:4px;font-size:12px}.top nav button svg{width:15px}.desk-hero .hero-copy{max-width:85%}.desk-hero .secondary{font-size:13px;padding:9px 11px}.desk-hero .worm{height:46%;width:26%;right:-1%}}
[hidden]{display:none!important}#content{margin-top:23px}.stats{margin-top:0}.brand{font-size:25px}.top{gap:4%}.top nav button{white-space:nowrap}.classpick select{max-width:180px}.panel+.panel,.ranklist{margin-top:20px}.actions,.row-actions,.tabs,.tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tools{justify-content:space-between;padding:16px 20px}.tabs button{font-weight:620;font-size:14px;border:1px solid #cdc5d2;border-radius:7px;padding:6px 10px}.tabs button.on{background:#e9dcf8;border-color:#675875}.tools input{font-size:14px;padding:8px;border:1px solid #c6beca;border-radius:7px;max-width:165px}.hero .secondary{background:#fffdf7}.desk-list li{grid-template-columns:minmax(130px,1fr) auto}.desk-entry small{overflow-wrap:anywhere}.full{padding:19px 21px}.full p{margin:10px 0 15px}.cover-tools{border:1px solid #d7cedb;border-radius:9px;padding:12px;margin:10px 0}.cover-tools .secondary{font-size:13px;padding:7px}.cover-tools .help,.help{font-size:14px;color:#61566b;line-height:1.45}.previewcover{display:block;height:65px;max-width:58px;object-fit:contain;margin:4px auto}.ui-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.heading h2,.section-head h2,.leaderhead h2{letter-spacing:-1px;font-size:23px}.pos0{background:#ffdfa1}.desk-entry>div{min-width:0}.full-rank{margin-top:20px}button:disabled{cursor:default}.loan-info{margin:10px 0}.panel .heading{min-width:0}.leaders ol{margin:12px 0}.bookcell{text-align:left}.error{font-size:14px}.bookgrid:empty{padding-bottom:0}
@media(max-width:650px){.top{gap:4px}.brand{font-size:20px}.classpick select{max-width:120px}.top nav button{font-size:14px}.desk-list li{display:flex;flex-wrap:wrap;justify-content:space-between}.tools{padding:12px}.hero-actions{max-width:80%}.desk-hero .worm{opacity:.35}.hero h1{font-size:clamp(29px,7vw,39px)}}

.preferences{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
#language{font:inherit;font-size:14px;font-weight:630;color:var(--ink);background:#fffefa;border:1.4px solid #c9c5cc;border-radius:8px;padding:8px 5px;cursor:pointer}
@media(max-width:1000px){.top{gap:10px}.preferences{gap:4px}}
@media(max-width:780px){.top nav{order:1;width:100%}.top{gap:5px}.preferences{max-width:100%}}
@media(max-width:480px){.classpick{padding:7px 4px}.classpick select{max-width:85px;padding-right:0}.brand{font-size:18px}#language{font-size:13px;padding:7px 2px}}

.add-class{flex:none;width:34px;height:34px;border:1.4px solid #9b88b2;border-radius:8px;background:#eee4ff;font-size:22px;line-height:1;color:#432868}
.add-class:hover{background:#ddc9ff}
.book-space{display:none}
:is(.overview-hero,.shelf-hero){background:radial-gradient(ellipse at 74% 80%,#374878 0,transparent 48%),radial-gradient(ellipse at 100% 0%,#713fa1 0,transparent 52%),#21243f;color:#fffaf5;min-height:229px;box-shadow:3px 4px 0 #b5a1da}
.overview-hero .worm{display:none}
:is(.overview-hero,.shelf-hero) .hero-copy{width:59%;max-width:59%}
:is(.overview-hero,.shelf-hero) .eyebrow{color:#c6f4e8}
:is(.overview-hero,.shelf-hero) .eyebrow span{background:#aef6dd;border-color:#93e4cd;box-shadow:2px 2px 0 #9283de}
:is(.overview-hero,.shelf-hero) p{color:#e4e1f6}
.overview-hero .primary{background:#bef5dc;color:#1c3933;border-color:#aeefd2;box-shadow:0 3px 0 #749f9f}
.overview-hero .primary:hover{background:#d4ffe9}
.overview-hero .book-space{position:absolute;display:block;width:min(40%,440px);height:95%;right:2%;top:0;pointer-events:none}
.book-space:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 13% 27%,#e5dfff 1px,transparent 2px),radial-gradient(circle at 71% 19%,#ffe098 1px,transparent 2px),radial-gradient(circle at 89% 68%,#abf6e2 1px,transparent 2px),radial-gradient(circle at 28% 80%,#e5dfff 1px,transparent 2px)}
.orbit{position:absolute;top:55%;left:50%;width:86%;height:35%;border:1px solid #b6a5f577;border-radius:50%;transform:translate(-50%,-50%) rotate(-17deg)}
.orbit-inner{width:69%;height:27%;transform:translate(-50%,-50%) rotate(12deg);border-color:#9bfce455}
.spark{position:absolute;color:#ffe49c;font:normal 29px/1 Georgia,serif}
.spark-a{left:17%;top:27%}.spark-b{right:17%;top:11%;font-size:30px;color:#b8f6e2}.spark-c{right:9%;top:69%;font-size:17px}
.floating-book{position:absolute;left:50%;top:51%;width:52%;max-width:220px;aspect-ratio:1.9;transform:translate(-50%,-50%) rotate(-11deg);filter:drop-shadow(3px 15px 8px #14132c88);animation:book-float 6s ease-in-out infinite}
.leaf{position:absolute;inset:0 50% 0 0;border:2px solid #fff5db;border-radius:8% 23% 0 10%;background:linear-gradient(110deg,#fffbed,#e7e2f9 73%,#ada1d4);transform:skewY(15deg);box-shadow:0 3px #c9b9e6,0 5px #ede6f4,0 7px #bfa8d5,0 11px #9174e4,0 14px #5c428c}
.leaf-r{inset:0 0 0 50%;transform:skewY(-15deg);border-radius:23% 8% 10% 0;background:linear-gradient(90deg,#cdc0e5,#fff8dc 25%,#fff9df)}
.leaf i{position:absolute;inset:21% 18% 25%;background:repeating-linear-gradient(to bottom,#9e8eb180 0 2px,transparent 2px 17%);border-radius:7%}
.leaf-r:after{content:"";position:absolute;top:0;right:16%;width:13%;height:53%;background:#ec956d;clip-path:polygon(0 0,100% 0,100% 100%,50% 84%,0 100%)}
@keyframes book-float{50%{transform:translate(-50%,-55%) rotate(-8deg)}}
@media(prefers-reduced-motion:reduce){.floating-book{animation:none}}
.overview-widgets{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:16px;margin:-5px 0 24px}
.overview-widgets>div,.pulse-widget{min-width:0;border:1px solid #d9d3e0;border-radius:13px;padding:16px 18px;text-align:left;background:#fffefa}
.availability h2,.pulse-widget span{font-size:16px;font-weight:700;letter-spacing:-.3px}
.availability p,.pulse-widget small{font-size:14px;color:#595063}
.availability p{margin:5px 0 9px}
.availability progress{display:block;width:100%;height:8px;border:none;border-radius:1em;overflow:hidden;accent-color:#418e79;background:#ece7ef}
.availability progress::-webkit-progress-bar{background:#ece7ef}.availability progress::-webkit-progress-value{background:#418e79;border-radius:1em}.availability progress::-moz-progress-bar{background:#418e79}
.pulse-widget{display:grid;grid-template-columns:1fr auto;align-content:center;gap:6px}
.pulse-widget strong{grid-column:2;grid-row:1/3;align-self:center;font-size:30px;line-height:1;color:#4d3e6b}
.pulse-widget:hover{border-color:#9e82bd;background:#f8f3ff}
@media(max-width:920px){.top{flex-wrap:wrap;height:auto;min-height:70px;padding-block:9px}.top nav{order:1;width:100%;justify-content:center}}
@media(max-width:650px){:is(.overview-hero,.shelf-hero){min-height:192px}:is(.overview-hero,.shelf-hero) .hero-copy{width:68%;max-width:68%}.overview-hero .book-space{right:-5%;width:40%}.overview-widgets{grid-template-columns:1fr 1fr;gap:9px}.availability{grid-column:1/-1}.pulse-widget,.overview-widgets>div{padding:12px}.pulse-widget strong{font-size:24px}.floating-book{width:68%}}
@media(max-width:430px){.brand img{width:29px;height:29px}.brand{gap:4px}.add-class{width:27px;height:31px}.classpick select{max-width:72px}.top{padding-inline:8px}.preferences{gap:3px}.overview-widgets{gap:7px}.pulse-widget{grid-template-columns:1fr}.pulse-widget strong{grid-column:1;grid-row:2}.pulse-widget small{grid-row:3}}

.pending-panel{scroll-margin-top:14px}.pending-panel .section-head h2{display:flex;align-items:center;gap:9px}
.star-name{min-width:0;overflow-wrap:anywhere}.star-name small{display:block;color:var(--muted);font-size:13px;margin:3px 0;line-height:1.5}
.rank-search{margin-top:12px}.rank-search input{width:100%;padding:8px 10px;border:1px solid #c6beca;border-radius:7px}

/* Classroom totals and loan list. */
:is(.overview-hero,.shelf-hero){min-height:190px}
.stat:has(.shelf-meter){position:relative;overflow:hidden}
.shelf-meter{position:absolute;bottom:0;left:0;width:100%;height:4px;border:0;appearance:none;background:#d3e5d7}
.shelf-meter::-webkit-progress-bar{background:#d3e5d7}
.shelf-meter::-webkit-progress-value{background:#509273}
.shelf-meter::-moz-progress-bar{background:#509273}
.dash-head{display:flex;align-items:center;gap:10px;padding:14px 16px;min-height:71px;border-bottom:1px solid var(--edge);background:linear-gradient(110deg,var(--tint) 35%,#fffefa)}
.dash-emblem{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:10px;background:#ffffffb8;color:var(--accent);border:1px solid var(--edge);box-shadow:0 2px 0 var(--edge)}
.dash-emblem svg{width:21px;height:21px}
.dash-head h2{margin:0;min-width:0;font-size:clamp(18px,1.65vw,23px);line-height:1.14;letter-spacing:-.7px;overflow-wrap:anywhere}
.dash-count{margin-left:auto;flex:none;padding:3px 8px;min-width:27px;text-align:center;border:1px solid var(--edge);border-radius:20px;font-size:14px;font-weight:680;background:#fffefa;color:var(--accent);font-variant-numeric:tabular-nums}
.dash-filter{padding:12px 14px;border-bottom:1px solid #eae6ec}
.loan-rows{margin:0;padding:0;list-style:none}
.loan-rows li+li{border-top:1px solid #eae6ec}
.loan-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;width:100%;padding:11px 15px}
.loan-row:hover{background:#f0f5fc}.loan-row:focus-visible{outline-offset:-3px}
.loan-copy,.loan-timing{display:flex;flex-direction:column;gap:3px;min-width:0}
.loan-copy b{font-size:15px;line-height:1.22;overflow-wrap:anywhere}
.loan-copy small,.loan-timing small{font-size:13px;line-height:1.3;color:#5c5766;overflow-wrap:anywhere}
.loan-timing{align-items:flex-end;text-align:right}.loan-timing .chip{font-size:12px;border-radius:6px;white-space:normal}
@media(min-width:701px) and (max-width:1050px){.dash-loans{grid-column:1/-1}}
@media(max-width:700px){.dash-head{min-height:59px}.dash-head h2{font-size:21px}.loan-row{padding-inline:13px}}
@media(max-width:370px){.loan-row{gap:7px}.dash-filter{padding-inline:9px}}

.desk-scene{display:none}
.desk-hero{background:radial-gradient(ellipse at 84% 60%,#5d488b 0,transparent 46%),linear-gradient(110deg,#272640,#353650 75%,#695484);color:#fffaf5;box-shadow:3px 4px 0 #b5a1da;min-height:195px}
.desk-hero .worm{display:none}
.desk-hero .hero-copy{width:64%;max-width:64%}
.desk-hero p{color:#e9e5f6}.desk-hero .eyebrow{color:#c6f4e8}
.desk-hero .primary{background:#c2f1da;color:#254a3e;border-color:#b0dec5}.desk-hero .secondary{color:#352d48}
.desk-hero .desk-scene{position:absolute;display:grid;place-items:center;right:3%;top:5%;width:34%;height:90%;pointer-events:none}
.desk-scene .orbit{top:76%;width:83%;height:26%}.desk-scene .spark-a{top:18%;left:15%;font-size:20px}
.mini-desk{position:relative;width:68%;max-width:235px;aspect-ratio:1.45;transform:rotate(-4deg);filter:drop-shadow(3px 10px 7px #15142866)}
.mini-desk i{display:block;position:absolute}
.desk-leg{top:60%;height:36%;width:5%;border-radius:0 0 3px 3px;background:linear-gradient(90deg,#9e729c,#d5aacc 65%,#87648f)}
.left-leg{left:9%;transform:skewX(-5deg)}.right-leg{right:12%;transform:skewX(5deg)}
.desk-drawers{top:59%;left:43%;right:12%;height:24%;border-radius:3px 3px 9px 6px;background:linear-gradient(177deg,#c0a0de 45%,#886ba4 46% 50%,#af91d0 51%);border:2px solid #8a74a4;box-shadow:5px -2px 0 #7d6894}
.desk-drawers:before,.desk-drawers:after{content:"";position:absolute;left:38%;width:23%;height:9%;border-radius:2px;background:#f9ddac}
.desk-drawers:before{top:21%}.desk-drawers:after{top:68%}
.desk-surface{left:3%;right:1%;top:48%;height:15%;transform:skewX(-20deg);border:2px solid #f9cd9f;border-radius:6px;background:linear-gradient(165deg,#ffe6bb,#e8b084);box-shadow:0 6px #bc8669,2px 8px #806082}
.desk-books{left:14%;top:42%;width:26%;height:5%;background:#c6ebde;border-left:5px solid #85bda7;border-radius:3px;box-shadow:1px -5px 0 #c09bdd,-1px -9px 0 #efd4af,0 3px 0 #98bbac;transform:rotate(3deg)}
.desk-paper{left:46%;top:50%;width:20%;height:6%;transform:skewX(-30deg);background:#fff7df;border-radius:2px;box-shadow:1px 2px #c5adab}
.desk-lamp{right:18%;top:19%;height:31%;width:4%;transform:skewX(9deg);background:linear-gradient(90deg,#a4b7d0,#efe1df);border-radius:6px}
.desk-lamp:after{content:"";position:absolute;bottom:-4%;left:-130%;width:370%;height:12%;border-radius:60% 60% 15% 15%;background:#a3dbc6;box-shadow:0 2px #5d9286}
.lamp-shade{right:16%;top:12%;width:16%;height:12%;transform:rotate(-22deg);border-radius:20px 20px 3px 3px;background:linear-gradient(120deg,#e2ffeb,#84c8ae);border-bottom:3px solid #ffe2aa;box-shadow:0 3px 8px #ffe2aa50}
@media(max-width:650px){.desk-hero .desk-scene{right:-1%;width:32%;height:72%;top:12%}.mini-desk{width:85%}.desk-hero .hero-copy{width:70%;max-width:70%}.desk-hero .hero-actions{max-width:100%}}

.shelf-scene{display:none}
.shelf-hero .shelf-scene{position:absolute;display:grid;place-items:center;right:3%;top:5%;width:35%;height:90%;pointer-events:none}
.shelf-scene .orbit{top:78%;width:88%;height:24%}
.shelf-scene .spark-b{right:12%;top:7%;font-size:24px}
.mini-shelf{position:relative;display:grid;grid-template-rows:1fr 1fr;width:60%;max-width:195px;aspect-ratio:1.55;transform:perspective(560px) rotateY(-14deg) rotateZ(-4deg);border:5px solid #e3b28f;border-top-color:#ffe0bb;border-left-color:#f7cfab;border-radius:5px;background:linear-gradient(125deg,#4f3b65,#77577c);box-shadow:5px 3px 0 #a47980,9px 10px 16px #1c183d66}
.shelf-tier{display:flex;align-items:flex-end;gap:4%;padding:2% 8% 0;min-height:0;border-bottom:4px solid #edc49f;box-shadow:inset 3px 4px 4px #26172c3d}
.shelf-tier:last-child{border-bottom:0}
.shelf-tier i{width:11%;height:76%;position:relative;border-radius:2px 3px 1px 1px;box-shadow:inset -3px 0 #0002,2px 0 2px #211e3944;background:#a4dccb}
.shelf-tier i:before,.shelf-tier i:after{content:"";position:absolute;left:21%;right:21%;height:2px;top:18%;background:#fff9daab}
.shelf-tier i:after{top:auto;bottom:12%}
.shelf-tier i:nth-child(2){background:#c1a8df;height:87%}.shelf-tier i:nth-child(3){height:65%;background:#eeb391}.shelf-tier i:nth-child(4){background:#b8d6ed;height:78%;margin-left:6%;transform:rotate(-15deg);transform-origin:left bottom}
.shelf-tier:last-child{flex-direction:row-reverse}.shelf-tier:last-child i:nth-child(1){height:62%;background:#ffe0a5}
@media(max-width:650px){.shelf-hero .shelf-scene{width:31%;right:0}.mini-shelf{width:89%;border-width:3px}.shelf-tier{border-bottom-width:2px}.shelf-tier i:before,.shelf-tier i:after{height:1px}}

.hero-about{display:none}
.overview-hero .hero-about{display:block;max-width:45ch;line-height:1.45;color:#f3efff;margin:.3rem 0 .9rem}
.overview-hero #intro{margin-bottom:.3rem}
.reading-circle{position:relative;margin:1.4rem auto;padding:clamp(18px,4vw,44px) 12px 24px;border:1px solid #d7ccea;border-radius:32px;text-align:center;background:radial-gradient(ellipse at top,#e8ddff,transparent 67%),#fffcf7}
.reading-circle .leaderbody{max-width:620px;margin:auto;padding:0}
.reading-circle .tabs{justify-content:center}
.reading-circle ol{list-style:none;margin:15px 0;padding:0;display:grid;gap:6px}
.reading-circle li{border:1px solid #ddd2ea!important;background:#fffcf9;border-radius:24px;padding:7px 16px;text-align:left}
.reading-circle .rank-search{margin-top:15px}
.reading-circle .allreaders{width:auto;padding:8px 22px;border-radius:24px}
.book-notes{margin-top:1rem;border-top:1px solid #d8d1dc;padding-top:10px}
.book-notes h3{margin:0 0 8px}.book-notes ul{list-style:none;padding:0;margin:0 0 10px}
.book-notes li{background:#f4edf8;margin:7px 0;padding:10px 14px;border-radius:12px}
.book-notes li p{white-space:pre-wrap;overflow-wrap:anywhere;margin:3px 0}
#form textarea{width:100%;resize:vertical;border:1px solid #9b90a4;border-radius:8px;padding:8px}
#content>.dash-loans{--tint:#e7f0fd;--accent:#355f89;--edge:#cbdcee;margin:16px 0}

/* The class total stays readable while the surrounding storybook moves. */
.reading-stage,.scene-motion{display:none}
.hero.overview-hero{
 display:flex;justify-content:center;align-items:center;text-align:center;padding:24px 16px 23px;isolation:isolate;
 background:
  radial-gradient(ellipse at 50% 53%,#654b90 0%,transparent 48%),
  radial-gradient(ellipse at 90% 5%,#40395f,transparent 48%),
  linear-gradient(135deg,#171f36,#292642 55%,#1b253e);
}
.overview-hero::before{
 content:"";position:absolute;inset:0;z-index:-1;opacity:.64;pointer-events:none;
 background-image:radial-gradient(1px 1px at 19px 26px,#fff4c9 95%,transparent),
 radial-gradient(1.4px 1.4px at 39px 44px,#c5d2fa 95%,transparent),
 radial-gradient(1px 1px at 65px 8px,#e6def8 95%,transparent);
 background-size:113px 109px,173px 151px,197px 183px;
}
.hero.overview-hero .hero-copy{width:100%;max-width:100%;display:flex;align-items:center;flex-direction:column;flex:1}
.overview-hero .hero-copy::after{content:"";margin-top:auto}
.overview-hero .eyebrow{margin:clamp(6px,1vh,10px) auto auto;justify-content:center;text-align:center;max-width:95%;overflow-wrap:anywhere}
.hero.overview-hero h1{margin:9px 0 0;max-width:100%;font-size:clamp(32px,5vw,62px);line-height:1.04;letter-spacing:-.045em;color:#fff9e7}
.overview-hero .reading-stage{display:block;position:relative;width:min(100%,680px);height:clamp(250px,32vw,317px);isolation:isolate}
/* Only the illustration is projected. The total and its label stay on the screen plane. */
.overview-hero .reading-stage{perspective:900px;perspective-origin:50% 52%}
.reading-sky{
 position:absolute;inset:0;pointer-events:none;transform-style:preserve-3d;
 transform-origin:50% 56%;
 animation:camera-drift 21s cubic-bezier(.45,.05,.55,.95) infinite alternate;
 will-change:transform;
}
/* Deep glow and dust sit at the farthest depths so the camera move reads as parallax. */
.scene-haze{position:absolute;border-radius:50%;opacity:.62;pointer-events:none;transform:translateZ(-210px)}
.haze-violet{width:74%;height:92%;left:-14%;top:-26%;background:radial-gradient(ellipse,#8a69bf55 0%,transparent 68%);animation:haze-a 26s ease-in-out infinite alternate}
.haze-mint{width:62%;height:78%;right:-12%;bottom:-30%;background:radial-gradient(ellipse,#66b8b044 0%,transparent 68%);animation:haze-b 31s ease-in-out infinite alternate}
.scene-dust{
 position:absolute;inset:-12% -8%;opacity:.75;transform:translateZ(-70px);
 background:
  radial-gradient(1.5px 1.5px at 18px 34px,#ffe9bd88 50%,transparent),
  radial-gradient(1px 1px at 72px 96px,#cbd8ff77 50%,transparent),
  radial-gradient(1.6px 1.6px at 128px 22px,#f1dcff88 50%,transparent),
  radial-gradient(1px 1px at 44px 148px,#bdecd977 50%,transparent);
 background-size:160px 170px;
 animation:dust-float 34s linear infinite alternate;
}
.comet{
 position:absolute;left:-8%;top:16%;width:130px;height:2px;border-radius:2px;
 background:linear-gradient(90deg,transparent,#ffe7a0,#fffdf2);
 opacity:0;transform:translate3d(-40px,10px,-95px) rotate(-19deg) scaleX(.5);
 animation:comet-fly 16s cubic-bezier(.35,.05,.6,.95) infinite;
}
.distant-stars{
 position:absolute;inset:-8% -14%;transform:translate3d(0,0,-156px);
 animation:starfield-parallax 28s ease-in-out infinite alternate;
 background:
  radial-gradient(2px 2px at 10% 40%,#f6dba6 50%,transparent),
  radial-gradient(3px 3px at 24% 25%,#d1d8ff 45%,transparent),
  radial-gradient(2px 2px at 32% 65%,#d8caf3 60%,transparent),
  radial-gradient(2px 2px at 65% 18%,#fff3c1 50%,transparent),
  radial-gradient(3px 3px at 76% 74%,#b8eadc 50%,transparent),
  radial-gradient(2px 2px at 87% 31%,#ece3ff 50%,transparent);
}
.reading-total{text-align:center;position:absolute;top:4%;left:50%;transform:translateX(-50%);display:grid;justify-items:center;width:max-content;max-width:80%;z-index:2;color:#fff2c1;line-height:1.1}
.reading-total strong{font-size:clamp(48px,6.8vw,78px);letter-spacing:-.055em;font-weight:800;text-shadow:0 2px 0 #3f2f52,0 0 24px #f4d69840;font-variant-numeric:tabular-nums}
.reading-total span{font-size:clamp(14px,2vw,19px);margin-top:2px;font-weight:600}
.star-orbit{
 --ring-z:-34px;--ring-x:50deg;--ring-tilt:-12deg;--ring-speed:72s;
 position:absolute;left:50%;top:55%;width:80%;height:86%;border:1.5px solid #d3b9e95e;
 border-radius:50%;transform-style:preserve-3d;
 transform:translate(-50%,-50%) translateZ(var(--ring-z)) rotateX(var(--ring-x)) rotateZ(var(--ring-tilt));
 animation:orbit-turn var(--ring-speed) linear infinite;
}
.orbit-far{--ring-z:-115px;--ring-x:49deg;--ring-tilt:16deg;--ring-speed:96s;width:85%;height:90%;border-color:#b5d7e23b}
.star-orbit::after{content:"";position:absolute;top:11%;left:16%;width:6px;height:6px;border-radius:50%;background:#ffe2aa;box-shadow:0 0 10px #ffdb90}
.orbit-far::after{left:auto;right:8%;top:24%;background:#adf3db}
.orbit-book,.prize-star{
 --depth:0px;--tilt:0deg;--drift-x:6px;--drift-y:-5px;
 --star-shape:polygon(50% 0,61% 35%,98% 35%,68% 57%,80% 92%,50% 71%,20% 92%,32% 57%,2% 35%,39% 35%);
 position:absolute;width:36px;aspect-ratio:1;transform-style:preserve-3d;
 transform:translateZ(var(--depth)) rotateZ(var(--tilt)) rotateY(-16deg) scale(.96);
 animation:
  star-drift var(--period,8s) cubic-bezier(.42,0,.58,1) var(--offset,0s) infinite alternate,
  star-twinkle calc(var(--period,8s) * .62) ease-in-out var(--offset,0s) infinite alternate;
}
.prize-star::before,.prize-star::after{content:"";position:absolute;inset:0;clip-path:var(--star-shape)}
.prize-star::before{background:#a86e42;transform:translate3d(1px,2px,-3px)}
.prize-star::after{
 background:conic-gradient(from 0deg at 50% 50%,#ffe8a1 0 36deg,#e8ab58 36deg 72deg,#fff0c2 72deg 108deg,#d99349 108deg 144deg,#f4be68 144deg 180deg,#b9753f 180deg 216deg,#ffda88 216deg 252deg,#dca35d 252deg 288deg,#fff4c9 288deg 324deg,#ffd27c 324deg);
 transform:translateZ(1px);
}
.orbit-book{aspect-ratio:4/5;border-radius:12% 8% 8% 12%;background:linear-gradient(90deg,#0003 12%,transparent 13%),var(--cover,#ce735e);box-shadow:1px 2px 0 #342640}
.orbit-book::before{content:"";position:absolute;inset:22% 17% auto 28%;height:16%;border-block:1px solid #ffedbc}
.orbit-book::after{content:"";position:absolute;inset:auto 3% 2% 9%;height:12%;border-radius:4px 0 0 4px;background:#fff0ca;box-shadow:inset 0 -1px #bcab91}
.orbit-book.star-east{--cover:#58969d}
.orbit-book.star-small{--cover:#a786be}
.star-west{left:15%;top:32%;--depth:24px;--tilt:-16deg;--period:8.1s;--offset:-3s}
.star-east{right:13%;top:42%;width:45px;--depth:66px;--tilt:13deg;--drift-x:-7px;--period:9.7s;--offset:-6.5s}
.star-small{left:27%;top:75%;width:19px;--depth:-39px;--tilt:9deg;--drift-x:3px;--period:10s;--offset:-4s}
.star-distant{right:25%;top:15%;width:13px;--depth:-118px;--period:13s;--drift-y:-3px;--offset:-5s}
.star-mint{left:10%;top:67%;width:11px;--depth:-84px;--period:11s;--offset:-8s}
.star-mint::after{background:conic-gradient(#f2fae6,#84bbad,#def9ea,#97c5cf,#f2fae6)}
.book-light{
 position:absolute;bottom:-2%;left:50%;width:46%;height:25%;
 background:radial-gradient(ellipse,#29223f9c 4%,#b096c959 33%,transparent 70%);
 transform:translateX(-50%) translateZ(-46px) rotateX(52deg);
 animation:light-pulse 7s ease-in-out infinite alternate;
}
.book-flight{
 position:absolute;left:50%;bottom:calc(2% + 10px);width:clamp(172px,27vw,234px);height:clamp(78px,11vw,96px);
 transform-style:preserve-3d;transform:translate3d(-50%,0,24px);
 animation:book-glide 7.2s cubic-bezier(.4,0,.6,1) infinite;
 will-change:transform;
}
.story-book{
 position:absolute;inset:0;transform-style:preserve-3d;
 transform:rotateX(38deg) rotateY(-9deg) rotateZ(-6deg);
 animation:book-tumble 12s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.story-leaf,.turning-sheet{position:absolute;top:0;bottom:0;width:50%;border:1px solid #ffefcf;background:linear-gradient(95deg,#d4bfd1,#fff3d4 25%,#fff9e9 80%,#f4debd);border-radius:4% 10% 8% 2%;transform-origin:left center}
.story-leaf{box-shadow:0 3px #dbccac,0 5px #fff4dd,0 7px #b6a1b7,0 10px #9e7cc0,0 14px #523866}
.story-left{left:0;transform-origin:right center;transform:rotateY(16deg);border-radius:10% 4% 2% 8%;background:linear-gradient(90deg,#ffefcd,#fcf2da 65%,#c8aec4)}
.story-right{left:50%;transform:rotateY(-16deg)}
.story-leaf::before,.turning-sheet::before{content:"";position:absolute;inset:22% 17%;background:repeating-linear-gradient(to bottom,#997e994f 0 2px,transparent 2px 15%);border-radius:8%}
.story-left::after{content:"✦";position:absolute;left:22%;top:22%;color:#866ba5;font-size:28px;background:#fff1d3;padding:0 4px;line-height:1.1}
.turning-sheet{left:50%;transform:rotateY(-18deg);animation:page-turn 6s ease-in-out infinite;will-change:transform}
.story-ribbon{position:absolute;right:14%;top:-1%;width:9%;height:55%;background:#de936e;clip-path:polygon(0 0,100% 0,100% 100%,50% 85%,0 100%);transform:translateZ(12px)}
@keyframes page-turn{
 0%,16%{transform:rotateY(-18deg);animation-timing-function:cubic-bezier(.45,0,.8,.5)}
 52%{transform:rotateY(-90deg);animation-timing-function:cubic-bezier(.2,.5,.55,1)}
 66%,78%{transform:rotateY(-158deg)}
 100%{transform:rotateY(-18deg)}
}
@keyframes light-pulse{
 from{opacity:.62;transform:translateX(-50%) translateZ(-46px) rotateX(52deg) scale(.94)}
 to{opacity:1;transform:translateX(-50%) translateZ(-46px) rotateX(52deg) scale(1.08)}
}
@keyframes book-glide{
 0%,100%{transform:translate3d(-50%,3px,24px)}
 50%{transform:translate3d(-50%,-8px,42px)}
}
@keyframes book-tumble{
 from{transform:rotateX(42deg) rotateY(-15deg) rotateZ(-7deg)}
 to{transform:rotateX(33deg) rotateY(3deg) rotateZ(-2deg)}
}
@keyframes star-drift{
 from{transform:translate3d(0,0,var(--depth)) rotateZ(var(--tilt)) rotateY(-16deg) scale(.96)}
 to{transform:translate3d(var(--drift-x),var(--drift-y),calc(var(--depth) + 8px)) rotateZ(calc(var(--tilt) + 8deg)) rotateY(14deg) scale(1.06)}
}
@keyframes star-twinkle{from{opacity:.72}to{opacity:1}}
@keyframes camera-drift{
 from{transform:translate3d(-7px,3px,-10px) rotateX(2.6deg) rotateY(-5.2deg) rotateZ(-.35deg)}
 to{transform:translate3d(7px,-4px,16px) rotateX(-2.6deg) rotateY(5.2deg) rotateZ(.35deg)}
}
@keyframes starfield-parallax{
 from{transform:translate3d(-9px,4px,-156px)}
 to{transform:translate3d(9px,-5px,-156px)}
}
@keyframes orbit-turn{
 from{transform:translate(-50%,-50%) translateZ(var(--ring-z)) rotateX(var(--ring-x)) rotateZ(var(--ring-tilt))}
 to{transform:translate(-50%,-50%) translateZ(var(--ring-z)) rotateX(var(--ring-x)) rotateZ(calc(var(--ring-tilt) + 360deg))}
}
@keyframes haze-a{
 from{transform:translate3d(-14px,6px,-210px) scale(1)}
 to{transform:translate3d(18px,-11px,-210px) scale(1.14)}
}
@keyframes haze-b{
 from{transform:translate3d(12px,-8px,-210px) scale(1.1)}
 to{transform:translate3d(-16px,9px,-210px) scale(.96)}
}
@keyframes dust-float{
 from{transform:translate3d(-8px,6px,-70px)}
 to{transform:translate3d(12px,-10px,-70px)}
}
@keyframes comet-fly{
 0%,58%{opacity:0;transform:translate3d(-40px,10px,-95px) rotate(-19deg) scaleX(.5)}
 62%{opacity:.95;transform:translate3d(60px,-12px,-95px) rotate(-19deg) scaleX(1)}
 74%,100%{opacity:0;transform:translate3d(560px,-140px,-95px) rotate(-19deg) scaleX(1.15)}
}
.overview-hero #intro{max-width:65ch;margin:4px 0 0;font-weight:650;color:#f4eaf9}
.hero.overview-hero .hero-about{max-width:59ch;font-size:14px;margin:5px 0 12px;color:#dfdcef}
.overview-hero .hero-actions{justify-content:center}
.overview-hero .scene-motion{display:grid;place-items:center;position:absolute;bottom:12px;right:12px;width:38px;height:38px;padding:0;border:1px solid #a59bb7;border-radius:50%;background:#26253e;color:#fff4db;z-index:3}
.scene-motion span{width:10px;height:12px;border-inline:3px solid currentColor}
.scene-paused .scene-motion span{width:0;height:0;border:0;border-left:10px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:2px}
.scene-paused .reading-sky,.scene-paused .reading-sky *{animation-play-state:paused}
.reading-circle h2{margin:0 0 14px;font-size:clamp(20px,3vw,28px)}
.shelfbook,.shelf-copy{min-width:0}
.shelf-copy{overflow-wrap:anywhere}
.approval-badge{display:inline-flex;align-items:center;align-self:flex-start;gap:5px;max-width:100%;padding:4px 8px;margin-top:4px;border:1px solid #e4c893;border-radius:9px;background:#fff4db;color:#70490e;font-size:.78rem;font-weight:650;line-height:1.35;text-align:start}
.approval-badge .ui-icon{width:15px;height:15px;flex:none}
.approval-detail{margin-top:16px;border-top:1px solid #e5ddd2;padding-top:10px}
.approval-detail p{margin:6px 0 0;color:var(--muted);font-size:.9rem}

@media(prefers-reduced-motion:reduce){.reading-sky,.reading-sky *{animation:none!important}.hero .scene-motion{display:none}}
@media(max-width:480px){.hero.overview-hero{padding:18px 10px}.star-east{right:5%;width:32px;height:32px}.star-west{left:6%;width:25px;height:25px}.hero.overview-hero .hero-about{max-width:31ch}.star-orbit{width:96%}}

.hero.overview-hero{flex-direction:column}
.personal-collection{margin:16px 0;padding:16px 20px;border:1px solid #cfc5df;background:#f8f3fc;border-radius:16px}
.collection-head,.collection-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.collection-actions{border-top:1px solid #dfd6e7;margin-top:14px;padding:14px 0 4px}
.collection-actions p{margin:0;color:#584d62;font-size:.9rem}
.personal-collection li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
.collection-head h2{margin:0;font-size:1.3rem}
.collection-head select{max-width:100%;background:#fff;border:1px solid #a99cb7;padding:8px;border-radius:8px;font:inherit}
.personal-collection ul{list-style:none;margin:12px 0;padding:0}
.personal-collection li{padding:8px 0;border-top:1px solid #dfd6e7}
.personal-collection li .cover{width:32px;height:45px;flex:none}
.personal-collection li div{min-width:0;overflow-wrap:anywhere}
.personal-collection li small{display:block;color:#554b61}
.personal-collection li button{margin-left:auto}

@media(max-width:600px){.personal-collection{padding:12px}.collection-head select,.collection-actions button{width:100%}.personal-collection li{grid-template-columns:auto minmax(0,1fr)}.personal-collection li button{grid-column:2;justify-self:start;margin:0}}

/* Keep the daily snapshot together; the full reader list and introduction can expand. */
main:has(>.overview-hero){display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"scene" "stats" "error";gap:14px;padding-top:18px;padding-bottom:20px}
main:has(>.overview-hero)>#content{display:contents}
main:has(>.overview-hero)>#error{grid-area:error;margin:0}
main>.hero.overview-hero{grid-area:scene;padding:15px 12px;border-radius:20px}
.hero.overview-hero h1{font-size:clamp(29px,3.4vw,46px);margin:5px 0 0}
.overview-hero .reading-stage{height:clamp(172px,24vh,224px);width:min(100%,515px)}
.overview-hero .reading-total strong{font-size:clamp(36px,4vw,54px)}
.overview-hero .reading-total span{font-size:15px}
.overview-hero .book-flight{width:clamp(135px,17vw,185px);height:clamp(53px,8vh,74px)}
.overview-hero #intro{font-size:14px;margin:0 0 9px;line-height:1.35}
main:has(>.overview-hero) .reading-circle{grid-area:readers;border-radius:20px;margin:0;padding:15px clamp(12px,2vw,24px);min-width:0}
.reading-circle h2{margin:0 0 8px;font-size:clamp(20px,2.2vw,26px)}
.reading-circle ol{gap:4px;margin:9px 0}
.reading-circle li{min-height:36px;padding:3px 12px}
.reading-circle li .face{width:28px;height:28px}
.reading-circle .allreaders{padding:6px 16px}
main:has(>.overview-hero) .stats{grid-area:stats;margin:0;gap:12px}
main:has(>.overview-hero) .stat{min-height:68px;padding-block:8px}
.classpick::after,.langpick::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:rotate(45deg);flex:none}

/* Use the same control height, inset and disclosure mark across the header. */
.preferences{align-items:center;gap:6px}
.preferences .classpick,.preferences .langpick{position:relative;display:flex;align-items:center;padding:0;margin:0;border:0;background:none;color:#614b74}
.preferences .classpick::after,.preferences .langpick::after{position:absolute;right:13px;top:calc(50% - 5px);pointer-events:none}
.preferences #classes,.preferences #language,.preferences .add-class{height:40px;border:1px solid #c9bcd4;border-radius:10px;background:#fffcfa;color:#43354f;font-weight:650;font-size:.875rem;line-height:1.2}
.preferences #classes,.preferences #language{appearance:none;padding:0 32px 0 12px;text-overflow:ellipsis}
.preferences #classes{max-width:min(22vw,15rem)}
.preferences .add-class{width:38px;background:#eee4fa;font-size:1.3rem}
.preferences .langpick{margin-inline-start:4px}
.preferences select:hover,.preferences .add-class:hover{border-color:#9175a4;background:#f5effa}

/* Give spare desktop height to the reading scene and the five reader rows. */
.overview-hero #intro{display:none}
.hero.overview-hero h1{font-size:clamp(2.15rem,4.2vw,4.15rem);text-wrap:balance}
.overview-hero .reading-stage{width:min(100%,630px);height:clamp(200px,34svh,370px)}
.overview-hero .reading-total strong{font-size:clamp(3.1rem,7.8svh,5.4rem)}
.overview-hero .reading-total span{font-size:clamp(1rem,1.5vw,1.25rem)}
.overview-hero .book-flight{width:clamp(156px,22vw,240px);height:clamp(70px,10.5svh,112px)}
.reading-circle h2{font-size:clamp(1.75rem,3.1vw,3rem);letter-spacing:-.035em;line-height:1.1;margin:0 0 12px}
.reading-circle .leaderbody{width:100%}
.reading-circle .star-name b,.reading-circle .score{font-size:clamp(1rem,1.4vw,1.25rem)}
@media(min-width:801px){
 main:has(>.overview-hero){grid-template-areas:"scene" "stats";grid-template-rows:auto auto;min-height:calc(100svh - 74px);align-content:start}
 main:has(>.overview-hero):has(>#error:not([hidden])){grid-template-areas:"scene" "stats" "error"}
 main:has(>.overview-hero) .reading-circle{display:flex;flex-direction:column;justify-content:center;padding:clamp(14px,2.3svh,27px) clamp(16px,2.4vw,32px)}
 .reading-circle ol{gap:clamp(4px,.8svh,10px);margin:clamp(9px,1.6svh,18px) 0}
 .reading-circle li{min-height:clamp(39px,6.1svh,72px);padding-inline:15px;gap:12px}
 .reading-circle li .face{width:clamp(30px,4.6svh,45px);height:clamp(30px,4.6svh,45px)}
}
@media(max-width:800px){
 main:has(>.overview-hero){grid-template-columns:minmax(0,1fr);grid-template-areas:"scene" "stats" "error";gap:10px}
 .overview-hero .reading-stage{height:195px}
}
@media(max-width:600px){
 .top{display:grid;grid-template-columns:1fr auto;gap:6px 8px}
 .top .brand{justify-self:start}
 .top nav{grid-column:1/-1;grid-row:2}
 .preferences{gap:3px}
 .preferences #classes{max-width:clamp(76px,25vw,130px)}
 .preferences #classes,.preferences #language{padding:0 21px 0 6px;font-size:.8125rem}
 .preferences .classpick::after,.preferences .langpick::after{right:8px}
 .preferences .langpick{margin-inline-start:0}
 .preferences .add-class{width:30px}
}
@media(max-width:390px){.top{grid-template-columns:1fr}.top .preferences{justify-self:stretch;margin-left:0}.preferences .classpick{flex:1}.preferences #classes{width:100%;max-width:none}.top nav{grid-row:3}}
/* The overview reads as an illustrated spread, with a single quiet totals strip. */
body:has(.overview-hero){background:#f8f6fa}
main:has(>.overview-hero){--paper:#fffdfb;--line:#e1dbe7;--plum:#604977;--wash:#f2edf6;column-gap:0}
main>.hero.overview-hero{box-shadow:none;border:1px solid #423951}
main:has(>.overview-hero) .reading-circle{background:var(--paper);border:1px solid var(--line);box-shadow:none}
.reading-circle .leaderbody{margin:0 auto}
.reading-circle .tabs{display:inline-flex;background:var(--wash);padding:3px;border-radius:10px;gap:2px}
.reading-circle .tabs button{border:0;border-radius:8px;color:#695c72;background:transparent}
.reading-circle .tabs button.on{background:white;box-shadow:0 1px 4px #4536532b;color:#493256}
.reading-circle #star-list li{border:0!important;border-radius:0;background:transparent;border-bottom:1px solid var(--line)!important}
.reading-circle #star-list li:last-child{border-bottom:0!important}
.reading-circle .position{background:transparent;border:0;color:#756b7e;font-variant-numeric:tabular-nums}
.reading-circle .score{color:var(--plum);font-variant-numeric:tabular-nums}
.reading-circle .allreaders{background:var(--wash);border:1px solid transparent;color:var(--plum)}
.reading-circle .allreaders:hover,.reading-circle .tabs button:hover{background:#e9dff1}
main:has(>.overview-hero) .stats{gap:0;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:16px}
main:has(>.overview-hero) .stat{position:relative;background:transparent;border:0;border-radius:11px;box-shadow:none;min-width:0;grid-template-columns:auto minmax(0,1fr);padding:10px clamp(10px,2.2vw,30px);column-gap:14px}
main:has(>.overview-hero) .stat:hover{background:var(--wash);transform:none}
main:has(>.overview-hero) .stat-icon{width:38px;height:38px;transform:none;border:0;border-radius:50%;background:var(--wash);color:var(--plum)}
main:has(>.overview-hero) .stat-icon svg{width:21px;height:21px}
main:has(>.overview-hero) .stat.peach .stat-icon{color:#944b36;background:#fae8df}
main:has(>.overview-hero) .stat-num{font-size:clamp(1.5rem,2.1vw,2rem);letter-spacing:-.035em;text-align:left;font-weight:820;font-variant-numeric:tabular-nums;color:#3f3052;line-height:1.05}
main:has(>.overview-hero) .stat-name{color:#655b6c;text-align:left}
main:has(>.overview-hero) .shelf-meter{display:none}
@media(min-width:801px){
 main>.hero.overview-hero{border-radius:22px}
 main:has(>.overview-hero) .reading-circle{border-radius:0 22px 22px 0;border-left:0}
 .reading-circle h2{margin-bottom:clamp(12px,2.3svh,22px)}
 main:has(>.overview-hero) .stat+.stat::before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:1px;background:var(--line)}
}
@media(max-width:480px){main:has(>.overview-hero) .stat{padding:8px;column-gap:8px}}
.overview-notices{position:relative;overflow:visible;display:flex;flex-direction:column;min-width:0;padding-top:22px}
.notice-key{flex:none;padding:0 12px 10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.overview-notices .back{--ink:#235679;--tint:#e7f2fa;--edge:#bfd8e9}
.overview-notices .lend{--ink:#68468c;--tint:#f2ebfa;--edge:#ddccea}
.reminder-key:hover{border-color:var(--ink)}
.reminder-key[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--ink);border-color:var(--ink)}
.reminder-key:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.reminder-key{min-width:0;border:1px solid var(--edge);text-align:center;display:flex;gap:9px;align-items:center;justify-content:center;padding:10px;border-radius:12px;background:var(--tint);color:var(--ink)}
.reminder-key .ui-icon{width:24px;height:24px;flex:none}
.reminder-key strong,.reminder-key small{display:block;line-height:1.3}
.reminder-key strong{font-size:.95rem}
.reminder-key small{margin-top:3px;font-size:.8rem}
@media(max-width:420px){.reminder-key{flex-direction:column;gap:4px}}
.notice-list{list-style:none;margin:0;padding:0 10px 12px;display:grid;align-content:start;gap:6px}
.notice-kid{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border:1px solid #e6ddeb;border-radius:11px;background:#fdfaff}
.notice-kid .face{width:38px;height:38px;flex:none}
.notice-kid .kid-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.kid-name-line{display:flex;align-items:center;gap:8px;min-width:0}
.kid-name-line b{font-size:15px;overflow-wrap:anywhere}
.notice-kid .kid-info small{font-size:12px;color:var(--muted);line-height:1.3}
.notice-alerts{display:flex;align-items:center;gap:6px;flex:none}
.alert-bubble{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:48px;min-height:44px;padding:0 7px;border:1px solid var(--edge);border-radius:12px;background:var(--tint);color:var(--ink);font-size:15px;line-height:1;touch-action:manipulation}
.alert-bubble .ui-icon{width:18px;height:18px}
.alert-bubble.empty{background:#faf9fb;border-color:#e4e0e7;color:#716b77}
.alert-bubble.late{box-shadow:0 0 0 2px #c23b26}
.alert-bubble:not(.empty){cursor:pointer;transition:transform .15s}
.alert-bubble:not(.empty):hover{transform:translateY(-1px)}
#modal.notices-dialog{width:min(620px,calc(100% - 28px))}
#modal.notices-dialog .help{font-size:15px;line-height:1.55;margin-bottom:16px;color:#5c5166}
.notices{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.notices li{display:flex;align-items:flex-start;gap:15px;padding:16px 18px;border:1px solid #e3dbe9;border-left:5px solid #e3dbe9;border-radius:14px;background:#fbf7fd}
.notices li.lend{border-left-color:#8b5cb8}
.notices li.back{border-left-color:#5b8db0}
.notices li.ok{background:#f3fbf5}
.notices li.late{background:#fff3f0;border-left-color:#c23b26}
.notices .notice-cover{display:block;flex:none;width:34px;height:48px}
.notices .notice-cover .cover{width:34px;height:48px;object-fit:cover;border-radius:4px}
.notices .notice-cover .cover.custom .ui-icon{width:19px;height:19px}
.notices .notice-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.notices b{font-size:18px;line-height:1.25;color:#3f3052}
.notices p{margin:0;font-size:15px;line-height:1.55;color:#51475a}
.notices .notice-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:4px;padding-top:11px;border-top:1px solid #e7e0eb;font-size:14px;font-weight:600;color:#5e5268}
.notices .chip{font-size:13px;padding:5px 10px;margin:0}

/* Covers for books without an uploaded image. */
.cover.custom{display:grid;place-items:center;background:#eee7f5;color:#6b4c90}
.cover.custom.c0{background:#e7dff7;color:#614684}
.cover.custom.c1{background:#dcecf3;color:#3c6f86}
.cover.custom.c2{background:#f6e6d8;color:#8a5a3c}
.cover.custom.c3{background:#dfeee2;color:#3f7757}
.cover.custom .ui-icon{width:16px;height:16px}

/* Statistics dialog, opened from the link beside the hero book. */
.stats-dialog{width:min(600px,calc(100% - 28px))}
.stats-dialog .modalhead{margin-bottom:14px}
#modal.about-dialog{width:min(560px,calc(100% - 28px))}
.about-info{color:#4a414f;font-size:14px;line-height:1.5}
.about-info p{margin:0 0 9px}
.about-lead{font-size:16px;font-weight:650;color:#3f3052}
.stats-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.stats-summary span{flex:1;min-width:110px;padding:8px 10px;border:1px solid #ddd4e5;border-radius:9px;background:#fbf8fd;font-size:12px;color:#64596c}
.stats-summary b{display:block;margin-top:2px;font-size:19px;color:#3f3052;font-variant-numeric:tabular-nums}
.stat-table{border:1px solid #ddd4e5;border-radius:12px;overflow:hidden;background:#fffefa}
.stat-head,.stat-rows li{display:grid;grid-template-columns:minmax(110px,1.5fr) repeat(3,minmax(68px,.7fr)) minmax(90px,.95fr);align-items:center;gap:6px;padding:9px 11px}
.stat-head{background:#f1ebf7;color:#5e5268;font-size:10px;font-weight:700;letter-spacing:0;text-transform:uppercase}
.stat-head span{min-width:0;text-align:center;line-height:1.25;overflow-wrap:anywhere}
.stat-head span:first-child{text-align:left}
.stat-head span:last-child{text-align:right}
.stat-rows{list-style:none;margin:0;padding:0;max-height:min(52svh,380px);overflow:auto}
.stat-rows li+li{border-top:1px dashed #e4dceb}
.stat-who{display:flex;align-items:center;gap:8px;min-width:0}
.stat-who .face{width:28px;height:28px;flex:none}
.stat-who b{font-size:14px;overflow-wrap:anywhere}
.stat-rows .stat-num{font-size:14px;font-weight:680;text-align:center;font-variant-numeric:tabular-nums;color:#443a4e}
.stat-state{display:flex;justify-content:flex-end}
.stat-state .chip{font-size:11px;white-space:nowrap}
@media(max-width:520px){
 .stat-head{display:none}
 .stat-rows li{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .stat-who,.stat-state{grid-column:1/-1}
 .stat-state{justify-content:flex-start}
 .stat-rows .stat-num{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:3px 7px;border-radius:6px;background:#f7f3fa;font-size:12px}
 .stat-rows .stat-num::before{content:attr(data-label);font-size:11px;font-weight:600;color:#6b5f75}
}

/* Overview split screen: illustrated hero beside per-child notifications. */
.stats-link{position:absolute;left:50%;translate:-50% 0;bottom:12px;z-index:4;display:none;align-items:center;gap:7px;padding:8px 13px;border:1px solid #c2b0d6;border-radius:999px;background:#fffcfaeb;color:#3f3052;font-size:13px;font-weight:700;box-shadow:2px 3px 0 #6d5a8a;backdrop-filter:blur(4px)}
.overview-hero .stats-link{display:inline-flex}
.stats-link:hover{background:#fff;transform:translateY(-2px)}
.stats-link .ui-icon{width:17px;height:17px;color:#7b4fa8}
main:has(>.overview-hero){grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr);grid-template-areas:"scene notices" "stats stats" "error error"}
main:has(>.overview-hero):has(>#error:not([hidden])){grid-template-areas:"scene notices" "stats stats" "error error"}
main>.hero.overview-hero{grid-area:scene}
main:has(>.overview-hero) .overview-notices{grid-area:notices;border:1px solid var(--line,#e1dbe7);border-radius:20px;background:var(--paper,#fffdfb);box-shadow:none}
main:has(>.overview-hero) .stats{grid-area:stats}
main:has(>.overview-hero)>#error{grid-area:error}
@media(min-width:901px){
 main>.hero.overview-hero{border-radius:22px 0 0 22px}
 main:has(>.overview-hero) .overview-notices{border-radius:0 22px 22px 0;border-left:0;max-height:clamp(360px,64svh,640px)}
}
@media(max-width:900px){
 main:has(>.overview-hero){grid-template-columns:minmax(0,1fr);grid-template-areas:"scene" "notices" "stats" "error"}
 main:has(>.overview-hero):has(>#error:not([hidden])){grid-template-areas:"scene" "notices" "stats" "error"}
 main:has(>.overview-hero) .overview-notices{max-height:none}
 .notice-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stats-link{transform:none;padding:6px 11px;font-size:12px}
 .stats-link:hover{transform:translateY(-2px)}
}
@media(max-width:480px){.notice-list{grid-template-columns:minmax(0,1fr)}}

.shelf-tabs{display:flex;gap:4px;padding:4px;margin-bottom:16px;border:1px solid #d9cfdf;border-radius:15px;background:#eee9f2}
.shelf-tabs #tab-collection{margin-inline-start:auto}
.shelf-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 16px;border:0;border-radius:11px;background:transparent;color:#55485e;font:inherit;font-weight:700;cursor:pointer}
.shelf-tabs button[aria-selected="true"]{background:#493458;color:#fff;box-shadow:0 2px 5px #31213826}
.shelf-tabs button:focus-visible{outline:3px solid #9360ae;outline-offset:2px}
.request-total{padding:1px 7px;border-radius:12px;background:#fff;color:#493458;font-size:.82em}
@media(max-width:600px){.shelf-tabs button{min-width:0;gap:4px;padding-inline:5px;font-size:.875rem;line-height:1.2}.shelf-tabs button span{overflow-wrap:anywhere}.shelf-tabs img{width:18px;height:18px}}
.pending-panel .section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.request-date{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:8px;background:#f5f0f7;color:#55485e;font-size:.8125rem;line-height:1.5}
.desk-hero .hero-actions{display:grid;justify-items:start;max-width:100%;gap:12px}
.desk-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}
.desk-assignment{border-block:1px solid #ffffff38;padding-block:10px;width:100%}
.desk-hero .librarian-identity{margin:0;color:#493458;max-width:100%}
@media(max-width:600px){.desk-hero .hero-copy{width:100%;max-width:100%}.desk-hero .desk-scene{display:none}}
.librarian-identity{max-width:100%;margin:0;padding:8px 12px;border-radius:10px;background:#f5f0f7;color:#493458;font-size:1rem;line-height:1.45;overflow-wrap:anywhere}
.librarian-identity strong{font-weight:750}

#first-class{
 display:grid;justify-items:center;text-align:center;
 max-width:38rem;margin:clamp(1rem,6vh,4rem) auto;
 padding:clamp(2rem,5vw,3.75rem) clamp(1rem,5vw,3rem);
 background:linear-gradient(170deg,#f3edfb,#fffefa 65%);
 border:1px solid #d8cbe2;border-radius:22px;box-shadow:0 4px 0 #e7deec;
}
#first-class h1{margin:18px 0 0;color:#392d46;font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.15;letter-spacing:-.035em}
#first-class p{max-width:34ch;margin:10px 0 22px;color:var(--muted);line-height:1.5}
#first-class .primary{min-height:46px;padding-inline:24px;border-radius:11px;font-size:1rem}

.site-footer{margin:16px auto 0;width:94%;max-width:1200px;padding:0 0 20px;text-align:center;color:#675f6c;font-size:.8rem}
.site-footer::before{content:"";display:block;width:60%;margin:0 auto 14px;border-top:1px solid #d9d4dd}
.site-footer a{color:inherit;text-underline-offset:3px}
.site-footer a:hover,.site-footer a:focus-visible{color:#493458}

.top .classroom-controls{padding-inline:10px;border-inline:1px solid #d9d4dd}
.top .language-help{margin-left:0}
@media(max-width:920px){
 .top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand brand" "menu menu" "classroom language";gap:6px 10px}
 .top .brand-wrap{grid-area:brand}
 .top nav{grid-area:menu;order:0}
 .top .classroom-controls{grid-area:classroom;justify-self:end;margin:0}
 .top .language-help{grid-area:language}
}

#modal.about-dialog{width:min(660px,calc(100% - 28px))}
.how-to-guide{display:grid;gap:10px}
.guide-role{border:1px solid #dbd1e3;border-radius:12px}
.guide-role summary,.guide-about summary{cursor:pointer;padding:12px 14px;font-weight:700;color:#493458}
.guide-role summary{background:#f5eff8;border-radius:12px}
.guide-flow{margin:0 14px;padding:14px 0}
.guide-flow+.guide-flow{border-top:1px solid #e6dfeb}
.guide-flow h4,.guide-flow p{margin:0}
.guide-flow p{font-size:.9rem;line-height:1.5}
.guide-flow ol{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;list-style:none;padding:0;margin:7px 0;font-size:.82rem;font-weight:650;color:#355e52}
.guide-flow li{display:inline-flex;align-items:center;gap:7px}
.guide-flow li+li::before{content:"→";color:#746781}
.guide-about{margin-top:10px}

.pin-pad{margin:4px 0 12px}
.pin-pad summary{width:fit-content;padding:8px 0;color:#594568;cursor:pointer}
.pin-pad>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:300px}
.pin-pad button{min-height:48px;border:1px solid #d3c6dc;border-radius:9px;background:#f6f0fa;font-size:1.15rem;touch-action:manipulation}
.pin-pad button:last-child{grid-column:span 2}
.pin-pad button:active{background:#e7d9ef}
.shared-pin-fields:has(.pin-pad[open][data-input="pin"]) input[name="pin"],
.shared-pin-fields:has(.pin-pad[open][data-input="repeat"]) input[name="repeat"]{border-color:#755188;background:#faf6ff}

.catalog-filters{flex-wrap:wrap}
.catalog-filters .filter-count{font-size:.78em;font-variant-numeric:tabular-nums}
.bookgrid .shelfbook{--tone:#4f5864;--wash:#edf0f3;align-items:flex-start;min-width:0;border-radius:13px;padding:14px}
.shelfbook.shelf-free{--tone:#226448;--wash:#e4f4eb}
.shelfbook.shelf-out{--tone:#365981;--wash:#e8f0fa}
.shelfbook.shelf-late{--tone:#913c2d;--wash:#fceae3;border-color:#d9a899}
.shelfbook.shelf-pending{--tone:#775011;--wash:#fff2d4}
.shelfbook .shelf-state{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;margin-bottom:4px;padding:4px 8px;border-radius:8px;background:var(--wash);color:var(--tone);font-size:.78rem;font-weight:700}
.shelf-state .ui-icon{width:16px;height:16px;flex:none}
.shelfbook .shelf-people{margin-top:5px;color:#493e50;font-size:.9rem;line-height:1.4}
.shelfbook .shelf-due{color:var(--tone);font-size:.8rem;font-weight:650}
.shelfbook .cover{flex-shrink:0}

/* The expanded overview gives the class list four fifths of the banner. */
.notice-size{position:absolute;inset-block-start:-21px;inset-inline-end:-16px;z-index:1;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#706478;touch-action:manipulation}
@media(max-width:550px){.notice-size{inset-inline-end:-13px}}
.notice-size .ui-icon{box-sizing:border-box;width:30px;height:30px;padding:6px;border:1px solid #ded7e2;border-radius:50%;background:#fffefa;box-shadow:0 2px 4px #49345818}
@media(hover:hover){.notice-size:hover .ui-icon{color:#513767;background:#f4ecfa}}
.notice-size:focus-visible{outline:2px solid #704c87;outline-offset:-4px}
.notice-size:active .ui-icon{background:#eee5f3}
#student-reminders{min-height:0;overflow:auto;border-radius:0 0 20px 20px}
main.notices-expanded .notice-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:10px;padding:0 12px 12px}
.notices-expanded .notice-kid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 10px;padding:12px;background:#fffdfb}
.notices-expanded .kid-name-line b{font-size:clamp(1.1rem,1.4vw,1.35rem)}
.notices-expanded .notice-alerts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.notices-expanded .alert-bubble{white-space:normal;text-align:start;gap:5px;line-height:1.2}
.notices-expanded .alert-bubble span{font-size:.8rem}
.notices-expanded .alert-bubble b{font-size:1.05rem}
.notices-expanded .overview-hero .reading-sky,.notices-expanded .overview-hero .scene-motion{display:none}
.notices-expanded .overview-hero .reading-stage{height:auto;margin:14px auto}
.notices-expanded .reading-total{position:static;transform:none;margin:auto}
.notices-expanded .overview-hero h1{font-size:clamp(1.35rem,2vw,2rem)}
.notices-expanded .overview-hero .stats-link{position:static;translate:none;margin:6px auto}
@media(min-width:901px){
 body:has(>main.notices-expanded){display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100vh;height:100dvh}
 main.notices-expanded:has(>.overview-hero){width:100%;max-width:none;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,4fr);grid-template-rows:minmax(0,1fr) auto auto;align-content:stretch}
 main.notices-expanded .overview-notices{min-height:0;max-height:none}
}
@media(max-width:900px){
 main.notices-expanded .overview-notices{max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px);scroll-margin-top:16px}
 main.notices-expanded>.overview-hero{min-height:0;padding-block:10px}
 .notices-expanded .overview-hero .reading-stage{margin:4px auto}
 .notices-expanded .reading-total{display:flex;align-items:baseline;gap:6px}
 .notices-expanded .overview-hero .reading-total strong{font-size:1.55rem}
}
.inventory-controls,.inventory-owner{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}
.inventory-owner{font-size:14px;font-weight:620}
.inventory-owner select{max-width:min(100%,18rem);font:inherit;font-weight:400;background:white;border:1px solid #c6beca;border-radius:7px;padding:7px 8px}
