:root{--ink:#34304b;--muted:#777389;--purple:#7763ab;--purple-dark:#594487;--lavender:#efebfa;--mint:#dcefe7;--paper:#fffdf9;--line:#e8e3ee;--red:#a0404a;--shadow:0 8px 30px #55406c08;font-family:'Noto Sans KR',system-ui,sans-serif;color:var(--ink);background:#f8f6f2;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7661b1;outline-offset:4px}button{border:0;border-radius:12px;padding:11px 17px;background:transparent;color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-1.2px;line-height:1.4}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:16px}p{line-height:1.8;color:var(--muted)}.hidden{display:none!important}.app-shell{max-width:1200px;margin:auto;padding:0 30px}.topbar{display:flex;justify-content:space-between;align-items:center;height:96px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-weight:800;font-size:19px;line-height:1.2}.brand-icon{width:42px;height:44px;background:var(--lavender);border-radius:14px;display:grid;place-items:center;font-size:31px;color:var(--purple)}.brand-small{display:block;font-size:11px;font-weight:500;margin-top:5px;letter-spacing:1px;color:var(--muted)}.top-actions{display:flex;gap:8px;align-items:center}.pill{display:inline-flex;background:var(--lavender);color:var(--purple-dark);padding:7px 12px;border-radius:20px;font-size:12px;font-weight:600}.quiet{font-size:12px;color:var(--muted)}.notice{padding:13px 17px;border:1px solid #cbded2;background:#edf6ed;border-radius:12px;margin:18px 0;line-height:1.6}.notice.error{border-color:#e9c8cb;background:#fff0f0;color:#8e3844}.login-screen{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:55px;min-height:690px}.eyebrow{display:block;color:var(--purple);font-size:11px;font-weight:700;letter-spacing:1.2px;margin-bottom:12px}.intro>h1{font-size:43px;line-height:1.4;margin-bottom:17px}.intro>p{font-size:15px}.login-card{background:white;padding:22px;border:1px solid var(--line);border-radius:18px;max-width:410px;margin-top:26px;box-shadow:var(--shadow)}.login-card h2{font-size:17px;margin-bottom:8px}.login-card p{font-size:12px}.check{display:flex;align-items:center;gap:7px;margin:16px 0;font-size:12px;color:var(--muted)}input[type=checkbox]{accent-color:var(--purple);width:16px;height:16px}.primary{background:var(--purple);color:white;font-weight:600}.primary:hover:not(:disabled){background:var(--purple-dark)}.login-card .primary{width:100%}.secondary{background:white;border:1px solid var(--line);font-weight:500}.text-button{font-size:13px;color:var(--purple);padding-left:0}.fine{font-size:11px!important;margin:13px 0 0;line-height:1.6}.welcome-art{position:relative;height:410px;background:radial-gradient(ellipse at center,#eae5f3 0,#f1edea 52%,transparent 70%);display:grid;place-items:center}.art-house{width:340px;height:290px;background:linear-gradient(#efe5cf 0 66%,#bca7b1 66%);position:relative;border:8px solid #d5c4ae;border-bottom:13px solid #a89a8b;border-radius:6px;box-shadow:15px 17px 0 #e8e1d7;transform:rotate(-3deg)}.art-window{position:absolute;left:24px;top:32px;width:75px;height:78px;background:linear-gradient(90deg,transparent 47%,#faf7ef 47% 53%,transparent 53%),linear-gradient(transparent 47%,#faf7ef 47% 53%,transparent 53%),#c7e3de;border:6px solid #faf7ef;font-size:30px;color:#fff;text-align:center}.art-board{position:absolute;top:30px;right:25px;width:155px;height:86px;background:#829b8b;border:7px solid #af8d66;color:#fff4dd;text-align:center;padding:9px;line-height:1.7;font-weight:700}.art-board small{font-size:11px;font-weight:400}.art-desk{position:absolute;left:115px;top:159px;width:117px;height:21px;background:#b98b65;box-shadow:0 7px #8f715c;z-index:3;border-radius:3px}.art-desk:before,.art-desk:after{content:'';position:absolute;top:21px;width:8px;height:55px;background:#8f715c}.art-desk:after{right:0}.art-chair{position:absolute;left:143px;top:198px;width:61px;height:30px;background:#ac99c7;border:5px solid #9383b0;z-index:4;box-shadow:0 17px 0 -9px #736580;border-radius:4px}.art-books{position:absolute;right:20px;bottom:37px;width:58px;background:#bba182;color:#e4efe1;font-size:22px;border-bottom:9px solid #927759}.art-plant{position:absolute;left:35px;bottom:33px;font-size:60px;color:#6e9279;z-index:3}.art-rug{position:absolute;bottom:9px;left:58px;width:200px;height:55px;background:#e2d2e9;border:6px solid #c7b7d5;border-radius:50%}.art-caption{position:absolute;bottom:3px;font-size:12px;color:#8b7f95}.art-cloud{position:absolute;background:white;width:67px;height:20px;border-radius:20px;z-index:4}.art-cloud:before{content:'';position:absolute;width:28px;height:25px;border-radius:50%;background:white;left:15px;top:-12px}.art-cloud.one{top:25px;left:0}.art-cloud.two{top:80px;right:0;transform:scale(.7)}.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:30px;margin:35px 0}.panel form{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:25px 0}.panel form label{font-weight:600}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff2d3;color:#795e23;padding:12px 18px;border-radius:12px;margin-top:20px;font-size:12px}.demo-banner .text-button{color:#795e23;flex-shrink:0}.greeting{display:flex;justify-content:space-between;align-items:center;padding:33px 0 24px}.greeting h1{margin:0 0 6px}.greeting p{font-size:13px;margin:0}.date-card{width:70px;text-align:center;border:1px solid var(--line);border-radius:13px;background:white;padding:7px;box-shadow:var(--shadow);display:flex;flex-direction:column;font-size:10px;color:var(--muted)}.date-card strong{font-size:25px;line-height:1.3;color:var(--purple)}.tabs{display:flex;border-bottom:1px solid var(--line);gap:10px;margin-bottom:25px}.tab{padding:14px 20px;border-radius:10px 10px 0 0;color:var(--muted);font-weight:600;border-bottom:3px solid transparent}.tab.active{background:var(--lavender);color:var(--purple-dark);border-bottom-color:var(--purple)}.home-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:22px}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:23px;box-shadow:var(--shadow);min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.card-head h2{margin:0}.small-note{font-size:11px;color:var(--muted)}.room{position:relative;min-height:375px;background:linear-gradient(#ede5d6 0 64%,#dac9b8 64%);border:8px solid #f5eee4;border-radius:12px;overflow:hidden}.room:after{content:'';position:absolute;left:0;right:0;bottom:0;height:34%;background:repeating-linear-gradient(0deg,transparent 0 28px,#bda68f45 29px 30px),repeating-linear-gradient(90deg,transparent 0 75px,#bda68f35 76px 77px);pointer-events:none}.room-object{position:absolute;z-index:2;border-radius:4px;padding:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;box-shadow:3px 4px #48394c18;font-size:11px;font-weight:600}.room-object:hover{transform:translateY(-3px)}.room-object .obj-icon{font-size:29px;line-height:1.1}.room-object.board{background:#839b8c;border:6px solid #ba936a;color:#fff8e5;left:29%;top:8%;width:45%;height:90px}.room-window{position:absolute;left:5%;top:9%;width:17%;height:85px;border:6px solid #f7f2e8;background:linear-gradient(90deg,transparent 45%,#f7f2e8 45% 55%,transparent 55%),linear-gradient(transparent 45%,#f7f2e8 45% 55%,transparent 55%),#bcdedc}.room-object.books{left:6%;top:46%;width:24%;height:95px;background:#bca187;border:6px solid #a18770;color:#fff}.room-object.desk{left:39%;top:51%;width:29%;height:76px;background:#b799cb;border:6px solid #9d82b1;color:white}.room-object.folder{right:5%;top:45%;width:20%;height:88px;background:#d8b795;border:6px solid #bd9a77;color:#5b4639}.room-object.calendar{right:4%;top:9%;background:#fffdf5;border-top:10px solid #bd9dc7;width:17%;height:82px;color:#6c5b7a}.room-plant{position:absolute;left:6%;bottom:4%;z-index:2;font-size:49px;color:#689078}.room-rug{position:absolute;width:47%;height:65px;border-radius:50%;bottom:1%;left:32%;background:#eee3d2;border:7px solid #bcb5cc;z-index:1}.room-caption{font-size:11px;margin:12px 0 0}.summary-list{display:grid;gap:13px}.summary-item{padding:16px;border-radius:12px;background:#f8f6fc}.summary-item.mint{background:#edf6f1}.summary-item.sand{background:#fbf4e9}.summary-item .summary-label{font-size:12px;color:var(--muted);display:block;margin-bottom:7px}.summary-value{font-size:24px;font-weight:800;color:var(--ink)}.summary-value small{font-size:12px;font-weight:500;margin-left:4px;color:var(--muted)}.summary-item p{font-size:11px;margin:4px 0 0}.coming-card{margin-top:20px;padding:17px;background:#faf9f5;border-radius:12px;border:1px dashed #ddd7e3}.coming-card h3{font-size:13px;margin-bottom:7px}.coming-card p{font-size:11px;margin:0}.controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:18px;background:#f0edf7;border-radius:14px;margin-bottom:20px}.controls label,.teacher-controls label{display:flex;flex-direction:column;font-size:11px;gap:7px;font-weight:600;color:var(--muted)}select,input[type=number],input[type=file]{border:1px solid #dcd5e5;border-radius:8px;padding:9px 11px;background:white;color:var(--ink);max-width:100%}select{min-height:42px}.controls select{min-width:150px}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.chart-wrap{overflow:hidden}.chart{display:block;width:100%;height:auto;min-height:210px}.chart text{fill:#7d778b;font-size:11px;font-family:inherit}.chart .grid{stroke:#eee9f2}.chart .line{fill:none;stroke:#8270b1;stroke-width:3;stroke-linejoin:round}.chart .mean-line{fill:none;stroke:#70a593;stroke-width:2;stroke-dasharray:6 5}.chart .dot{fill:#8270b1;stroke:white;stroke-width:2}.chart .mean-dot{fill:#70a593;stroke:white;stroke-width:2}.chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-bottom:10px}.legend-line:before{content:'';display:inline-block;width:15px;height:3px;background:#8270b1;vertical-align:middle;margin-right:5px}.legend-mean:before{background:repeating-linear-gradient(90deg,#70a593 0 4px,transparent 4px 6px)}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:12px}th{padding:13px 12px;font-size:11px;color:var(--muted);background:#f8f6fb;font-weight:600}td{padding:14px 12px;border-bottom:1px solid #eee9f3}tbody tr:last-child td{border-bottom:0}.table-score{font-weight:700;color:var(--purple-dark)}.mean-input{width:82px;padding:7px!important}.table-note{font-size:11px;margin:12px 0 0}.empty{padding:45px 20px;text-align:center;background:#faf9fc;border:1px dashed #ddd6e7;border-radius:12px;color:var(--muted);line-height:1.8}.empty strong{display:block;color:var(--ink);margin-bottom:8px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.toolbar p{font-size:11px;margin:0}.teacher-panel{margin-top:24px;padding:20px;background:#ede9f5;border:1px solid #dfd7ec;border-radius:16px}.teacher-title{display:flex;align-items:center;gap:10px;margin-bottom:15px}.teacher-title h2{margin:0;font-size:16px}.teacher-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.teacher-controls select{min-width:190px}.subpanel{background:white;border-radius:12px;padding:18px;margin-top:16px}.subpanel p{font-size:12px}.import-preview{white-space:pre-wrap;font-family:inherit;font-size:12px;color:var(--muted);max-height:200px;overflow:auto}.request-row{padding:12px 0;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.request-row p{margin:0;flex:1;min-width:170px}.request-row small{display:block;color:var(--muted)}footer{display:flex;justify-content:space-between;padding:32px 0;margin-top:35px;color:#9991a2;font-size:10px;border-top:1px solid var(--line)}.skip{position:fixed;top:-100px;left:10px;background:white;padding:15px;z-index:100;color:var(--ink)}.skip:focus{top:10px}.badge{font-size:10px;color:#6e607e;background:#f0ecf5;padding:4px 7px;border-radius:5px}.section-note{font-size:12px;margin-bottom:17px}.metric-tip{font-size:11px;margin-top:10px;color:var(--muted)}
@media(max-width:800px){.app-shell{padding:0 20px}.login-screen{gap:12px;min-height:650px}.intro>h1{font-size:34px}.welcome-art{transform:scale(.8);margin-left:-25px;margin-right:-25px}.home-grid{grid-template-columns:1fr}.summary-list{grid-template-columns:repeat(3,1fr)}.summary-item{padding:13px}.summary-value{font-size:20px}.coming-card{margin-top:15px}.chart-grid{grid-template-columns:1fr}.chart{max-height:330px}.room{min-height:390px}}
@media(max-width:560px){.app-shell{padding:0 15px}.topbar{height:75px}.brand{font-size:16px}.brand-icon{height:36px;width:36px;font-size:26px}.top-actions .pill{display:none}.login-screen{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-top:30px}.intro>h1{font-size:33px}.intro>p{font-size:13px}.eyebrow{font-size:9px;letter-spacing:.8px}.login-card{max-width:none}.welcome-art{height:350px;transform:scale(.82);margin-top:-20px;margin-bottom:-35px}.greeting{padding:25px 0 20px}.greeting h1{font-size:24px}.greeting p{font-size:11px}.date-card{width:59px}.tabs{gap:0;justify-content:space-between;margin-bottom:18px}.tab{padding:12px 10px;font-size:13px;flex:1}.tab span{font-size:11px}.card{padding:16px;border-radius:15px}.card-head h2{font-size:16px}.small-note{font-size:10px}.room{min-height:305px;border-width:5px}.room-object{font-size:9px;padding:5px}.room-object .obj-icon{font-size:23px}.room-object.board{height:74px}.room-window{height:70px}.room-object.books{height:78px}.room-object.desk{height:65px}.room-object.folder{height:73px}.room-object.calendar{height:67px}.room-plant{font-size:38px}.summary-list{gap:8px}.summary-item{padding:12px 9px}.summary-item .summary-label{font-size:10px}.summary-value{font-size:18px}.summary-value small{font-size:9px}.summary-item p{font-size:9px}.controls{gap:12px;padding:14px}.controls label{flex:1;min-width:125px}.controls select{min-width:0;width:100%;font-size:12px}.chart-grid{gap:16px;margin:16px 0}.chart{min-height:180px}.toolbar{align-items:start}.toolbar .primary{white-space:nowrap;padding:10px 12px;font-size:12px}.teacher-panel{padding:15px}.teacher-controls{gap:10px}.teacher-controls label{width:100%}.teacher-controls button{font-size:12px}.demo-banner{align-items:start;font-size:10px;gap:8px;padding:10px}.demo-banner button{font-size:10px;white-space:nowrap;padding:0}.panel{padding:22px}.panel h1{font-size:24px}.panel p{font-size:12px}.panel form{gap:10px}.panel form select{min-width:100px}footer{font-size:9px;gap:10px}.room-caption{font-size:10px}.request-row select{max-width:180px}table{font-size:11px}td,th{padding:12px 10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.semester-charts{grid-template-columns:1fr}.semester-charts .chart{max-height:340px}.card-head{flex-wrap:wrap}.metric-tip{margin-bottom:0}

.revoke-button{color:var(--red);border-color:#e8ccd1}
/* Compact mobile-first shell and image-based classroom. */
.app-shell{max-width:1180px;padding:0 18px}.topbar{height:58px}.brand{font-size:16px;gap:8px}.brand-icon{height:34px;width:34px;font-size:25px;border-radius:10px}.brand-small{font-size:10px;margin-top:3px}.top-actions{gap:3px}.pill{padding:5px 9px}.login-screen{min-height:0;padding:28px 0;gap:26px}.intro>h1{font-size:30px;margin-bottom:8px}.intro>p{font-size:13px;margin-bottom:10px}.eyebrow{margin-bottom:5px}.login-card{margin-top:14px;padding:18px;max-width:440px}.login-card h2{margin-bottom:4px}.login-card p{margin-bottom:10px}.login-divider{font-size:11px;color:var(--muted);border-top:1px solid var(--line);margin:12px 0 9px;padding-top:10px}.login-card .secondary{width:100%;font-size:12px}.login-card .check{margin:10px 0 4px}.login-room-preview img{width:100%;display:block;border-radius:18px}.account-form{display:grid!important;gap:10px!important;margin:12px 0!important;max-width:440px}.account-form label{display:grid;gap:5px;font-size:12px;color:var(--muted)}input[type=email],input[type=password],input[type=url]{border:1px solid #dcd5e5;border-radius:8px;padding:10px;background:white;color:var(--ink);font:inherit;min-width:0;width:100%}input[readonly]{background:#f4f1f8}.panel{margin:18px 0;padding:20px}.panel h1{font-size:24px;margin-bottom:6px}.panel p{margin-bottom:8px}.teacher-panel{margin-top:10px;padding:12px}.teacher-title{margin-bottom:8px}.teacher-controls{gap:7px}.teacher-controls label{gap:4px}.teacher-controls button{padding:10px 12px;font-size:12px}.greeting{padding:14px 0 10px}.greeting h1{font-size:23px;margin-bottom:2px}.greeting p{font-size:11px}.date-card{width:auto;min-width:48px;padding:3px 8px;flex-direction:row;align-items:center;gap:5px}.date-card strong{font-size:19px}.date-card #date-month{display:none}.tabs{gap:4px;margin-bottom:12px}.tab{padding:10px 14px}.home-grid{grid-template-columns:minmax(0,1fr) 250px;gap:12px}.card{padding:14px;border-radius:14px}.card-head{margin-bottom:10px}.card-head h2{font-size:17px}.classroom-scene{position:relative;width:100%;isolation:isolate;overflow:hidden;border-radius:9px;background:#f5edda}.classroom-image{display:block;width:100%;height:auto;object-fit:contain}.room-hotspot{position:absolute;z-index:2;padding:0;border:2px solid #ffe484;border-radius:8px;box-shadow:0 0 0 1px #84662ca6,inset 0 0 10px #fff9c75c,0 0 10px #ffe57bbd;background:#fff8c209;filter:saturate(1.15);animation:object-glow 2.6s ease-in-out infinite;transition:background .16s,box-shadow .16s}.room-hotspot:hover,.room-hotspot:focus-visible{background:#fff3b43d;box-shadow:0 0 0 2px #b58524,0 0 17px #fff3b4}.hotspot-label{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:750;border:1px solid #997343;background:#fffcf0f2;color:#50391f;border-radius:5px;padding:3px 5px;line-height:1.3;box-shadow:0 2px 4px #4a33252b}.hotspot-sparkle{position:absolute;right:-8px;top:-13px;color:#fffbe1;text-shadow:0 0 3px #b87e00,0 0 8px #ffce43;font-size:23px;line-height:1;animation:room-sparkle 1.9s ease-in-out infinite}.room-hotspot:nth-of-type(2n) .hotspot-sparkle{animation-delay:.65s}.room-shortcuts{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.room-shortcuts button{font-size:11px;padding:7px 9px;min-height:36px}.summary-list{gap:8px}.summary-item{padding:12px}.summary-value{font-size:22px}.summary-item .summary-label{margin-bottom:3px;font-size:11px}.summary-item p{margin-top:2px}.controls{gap:10px;padding:12px;margin-bottom:12px}.controls label{gap:5px}.chart-grid{gap:12px;margin:12px 0}.chart{min-height:0}.chart-legend{margin-bottom:4px}.section-note{font-size:11px;margin-bottom:9px}.empty{padding:24px 15px}.toolbar{margin:12px 0}.metric-tip,.table-note{font-size:10px;margin-top:7px}th,td{padding:10px}.demo-banner{padding:9px 12px;margin-top:10px;gap:7px}.demo-banner .text-button{font-weight:700}.module-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.module-actions button{min-height:60px}.band-link{display:inline-block;text-decoration:none;padding:11px 15px;border-radius:10px}.subpanel{padding:12px;margin-top:10px}footer{padding:16px 0;margin-top:18px}.notice{margin:10px 0;padding:10px 12px}
@keyframes object-glow{0%,100%{border-color:#ffe484}50%{border-color:#fff9df;box-shadow:0 0 0 1px #84662ca6,inset 0 0 10px #fff9c775,0 0 14px #ffe57b}}@keyframes room-sparkle{0%,100%{opacity:.5;transform:scale(.8)}50%{opacity:1;transform:scale(1.12)}}
@media(max-width:850px){.home-grid{grid-template-columns:1fr}.summary-list{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr}.login-screen{grid-template-columns:1fr 1fr;gap:15px}.intro>h1{font-size:25px}}
@media(max-width:560px){.app-shell{padding:0 10px}.topbar{height:54px}.login-screen{display:block;padding:18px 0 8px}.intro>h1{font-size:25px}.intro>p{font-size:12px;line-height:1.6}.login-card{padding:15px;margin-top:12px;max-width:none}.login-room-preview{display:none}.top-actions .quiet{padding:9px 5px}.greeting{padding:11px 0 8px}.greeting h1{font-size:20px}.greeting .eyebrow{font-size:9px}.greeting p{font-size:10px}.tabs{margin-bottom:9px;gap:0}.tab{padding:9px 7px}.card{padding:10px}.card-head{gap:5px;margin-bottom:8px}.card-head h2{font-size:15px}.card-head .small-note{font-size:9px}.home-grid{gap:9px}.room-hotspot{border-width:1.5px;border-radius:5px}.hotspot-label{font-size:8px;padding:3px;bottom:-10px}.hotspot-sparkle{font-size:19px;top:-12px;right:-6px}.room-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:10px}.room-shortcuts button{padding:7px 3px;font-size:10px;min-height:36px}.summary-item{padding:9px 7px}.summary-value{font-size:19px}.summary-value small{font-size:9px}.summary-item .summary-label{font-size:9px}.summary-item p{font-size:9px;line-height:1.5}.teacher-panel{padding:10px;margin-top:8px}.teacher-title{margin-bottom:7px}.teacher-title h2{font-size:14px}.teacher-controls label{width:100%}.teacher-controls label select{width:100%;min-height:38px}.teacher-controls button{padding:9px 10px;font-size:11px;flex:1;min-width:110px}.controls{padding:10px;gap:8px}.controls label{min-width:110px}.controls select{font-size:11px;min-height:38px}.module-actions{grid-template-columns:1fr}.module-actions button{min-height:45px}.demo-banner{font-size:10px;align-items:center}.demo-banner .text-button{white-space:normal;min-width:90px;max-width:120px;font-size:10px;line-height:1.5}.panel{padding:16px;margin:12px 0}.panel h1{font-size:22px}.panel p{font-size:12px}.chart-grid{gap:10px;margin:10px 0}.chart{min-height:0}.table-scroll{margin:0 -2px}.table-note{line-height:1.6}.toolbar p{font-size:10px}.toolbar .primary{font-size:11px}.empty{padding:22px 12px}footer{margin-top:14px;font-size:9px;padding:13px 0}}
@media(prefers-reduced-motion:reduce){.room-hotspot,.hotspot-sparkle{animation:none}.room-hotspot{border-color:#ffe484}.hotspot-sparkle{opacity:1}.room-hotspot{transition:none}}

.classroom-layer{position:absolute;pointer-events:none;z-index:1;object-fit:contain}

/* Hover emphasizes the object itself; keyboard focus receives the same cue. */
.room-hotspot{transform-origin:center;transition:transform .18s ease,background .16s,box-shadow .16s}.room-hotspot:hover,.room-hotspot:focus-visible{transform:translateY(-2px) scale(1.035);animation-duration:1.1s;z-index:3}.room-hotspot:hover .hotspot-sparkle,.room-hotspot:focus-visible .hotspot-sparkle{animation-duration:.75s}.room-hotspot:hover .hotspot-label,.room-hotspot:focus-visible .hotspot-label{background:#fffef1;border-color:#755220;box-shadow:0 2px 8px #5136175c;color:#362313}
@media(prefers-reduced-motion:reduce){.room-hotspot:hover,.room-hotspot:focus-visible{transform:none;animation:none}.room-hotspot:hover .hotspot-sparkle,.room-hotspot:focus-visible .hotspot-sparkle{animation:none}.room-hotspot{transition:none}}

/* Exact object silhouettes keep the glow on the furniture, rather than a floating box. */
.room-hotspot{border:0;border-radius:0;background:transparent!important;box-shadow:none!important;animation:none;filter:none}.hotspot-art{position:absolute;inset:0;background-repeat:no-repeat;filter:brightness(1.06) saturate(1.17);pointer-events:none;transition:filter .18s}.hotspot-outline{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;filter:drop-shadow(0 0 3px #ffd968);animation:room-outline 2.6s ease-in-out infinite}.hotspot-outline polygon{stroke:#ffe78d;stroke-width:1.7;stroke-linejoin:round}.room-hotspot:hover .hotspot-art,.room-hotspot:focus-visible .hotspot-art{filter:brightness(1.18) saturate(1.28)}.room-hotspot:hover .hotspot-outline,.room-hotspot:focus-visible .hotspot-outline{animation-duration:1s;filter:drop-shadow(0 0 5px #ffcf43)}.hotspot-grade-paper .hotspot-label{bottom:-14px}.hotspot-grade-paper .hotspot-sparkle{right:-10px;top:-11px}
@keyframes room-outline{0%,100%{opacity:.7}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.hotspot-outline,.room-hotspot:hover .hotspot-outline,.room-hotspot:focus-visible .hotspot-outline{animation:none;opacity:1}.hotspot-art{transition:none}}
/* The classroom itself is the navigation; secondary pages have one return action. */
.app-shell{max-width:1120px;padding:0 10px}.topbar{height:46px}.brand-icon{width:27px;height:27px;font-size:21px}.brand-small{display:none}.top-actions .pill{display:none}.greeting{padding:6px 2px;gap:8px}.greeting h1{font-size:17px}.greeting p,.greeting .eyebrow,.date-card{display:none}.teacher-panel{padding:0 10px;margin-top:4px;background:#f1edf8}.teacher-panel>summary{cursor:pointer;padding:8px 0;font-size:12px;font-weight:700}.teacher-panel[open]{padding-bottom:10px}.teacher-controls{padding-top:3px}.classroom-scene{max-width:100%;margin:0 auto;border-radius:8px}.classroom-image{max-height:calc(100svh - 115px);object-fit:contain}.classroom-scene{width:min(100%,calc((100svh - 115px) * 1452 / 1083))}.back-room{padding:7px 0;margin-bottom:5px}.hotspot-teacher-shop .hotspot-label{bottom:-4px}.hotspot-teacher-shop .hotspot-sparkle{right:-1px;top:0}.lotus-shop{max-width:820px;margin:auto}.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.shop-heading h2{margin:0;font-size:20px}.lotus-balance{border-radius:20px;padding:7px 12px;background:#f2e7f8;color:#785384;font-size:13px;font-weight:700;white-space:nowrap}.shop-note{font-size:12px;margin:10px 0;color:var(--muted)}.shop-empty{text-align:center;background:#faf6fc;border:1px dashed #dfcee8;border-radius:12px;padding:22px 12px;margin:14px 0}.shop-empty strong{display:block;font-size:16px}.shop-empty p{font-size:12px;margin:8px 0 13px}.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.shop-item{border:1px solid var(--line);padding:12px;border-radius:12px}.shop-item h3{margin:8px 0;font-size:14px}.shop-item p{font-size:12px}.shop-preview{display:block;width:100%;height:110px;object-fit:contain;image-rendering:pixelated}.shop-item button{width:100%;font-size:12px}.shop-equipment{margin-top:16px}.shop-equipment h3{font-size:14px;margin:0 0 5px}.shop-slot{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:9px 0;font-size:12px}.shop-slot>span:first-child{width:85px;font-weight:600}.shop-slot>span:nth-child(2){flex:1;color:var(--muted)}.shop-slot button{font-size:11px;padding:5px 8px}footer{padding:8px 0;margin-top:8px}footer span{display:none}
@media(max-width:560px){.app-shell{padding:0 5px}.topbar{height:39px}.brand{font-size:13px}.brand-icon{display:none}.top-actions .quiet{font-size:10px;padding:6px}.greeting{padding:4px 2px}.greeting h1{font-size:14px}.classroom-scene{width:100%}.classroom-image{max-height:none}.classroom-scene .hotspot-label{font-size:8px}.teacher-panel>summary{padding:6px 0}.demo-banner{margin:3px 0;padding:5px 7px;font-size:9px}.demo-banner .text-button{padding:0}.shop-heading h2{font-size:18px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-empty{padding:18px 8px}.shop-note{font-size:11px}footer{font-size:8px;padding:6px 2px}}


.shop-room-preview{width:min(100%,420px)!important;margin:10px auto}.shop-room-preview .classroom-image{max-height:none}.shop-filters{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.shop-filters [aria-pressed=true]{background:#e5d8f5}.shop-item button+button{margin-top:6px}.hotspot-teacher-shop .hotspot-outline{display:none}.hotspot-teacher-shop:focus-visible{outline:2px dashed #a47ac1;outline-offset:3px}.notice-editor,.secret-character-form{display:grid;gap:8px;margin:10px 0}.notice-editor label{display:grid;gap:4px;font-size:12px}.notice-editor textarea{width:100%;min-height:100px;padding:9px;border:1px solid var(--line);border-radius:8px;font:inherit}.notice-editor input{width:100%}.notice-list{display:grid;gap:10px}.notice-post{padding:12px;border:1px solid var(--line);border-radius:10px}.notice-post h3{font-size:15px;margin:0 0 6px}.notice-post p{white-space:pre-wrap;font-size:12px}.notice-actions{display:flex;flex-wrap:wrap;gap:6px}.notice-actions button{font-size:12px;padding:8px 10px}.classroom-layer{transition:filter .15s}.classroom-scene:has(.hotspot-door:hover) .classroom-layer[data-slot="door"],.classroom-scene:has(.hotspot-mailbox:hover) .classroom-layer[data-slot="mailbox"],.classroom-scene:has(.hotspot-career-books:hover) .classroom-layer[data-slot="career-books"]{filter:brightness(1.15) saturate(1.12)}
/* Six empty desks are selectable floor cells; the student's seat is never removable. */
.shop-room-preview{width:min(100%,700px)!important;isolation:isolate}.desk-cell-toggle{position:absolute;z-index:3;transform:translate(-50%,-50%);width:24px;height:24px;min-height:0;padding:0;border:2px solid #fff;border-radius:50%;background:#765b9e;color:#fff;font-size:11px;box-shadow:0 1px 4px #0006}.desk-cell-toggle.is-cleared{background:#287e6a}.desk-cell-toggle:focus-visible{outline:3px solid #f2b541;outline-offset:2px}.layout-editor{padding:12px;border:1px solid #d8cce8;border-radius:12px;margin:10px 0;background:#faf7fd}.layout-editor h3{font-size:14px;margin:0}.layout-editor>button{margin:4px 6px 4px 0;font-size:12px}.layout-status{font-size:12px;color:#574471}.furniture-anchor{width:100%;padding:7px;border:1px solid var(--line);border-radius:7px;background:white;font-size:12px;margin:5px 0}.shop-item .shop-note{font-size:11px;line-height:1.5}.shop-preview{image-rendering:auto}.classroom-layer{object-fit:fill}
@media(max-width:560px){.desk-cell-toggle{width:20px;height:20px;font-size:10px}.layout-editor{padding:10px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-item{padding:9px}}

.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:15px}.calendar-grid>*{padding:12px;text-align:center;border:1px solid #e8e2ee;border-radius:5px}.room-hotspot .hotspot-label,.hotspot-sparkle{display:none!important}.account-form textarea{width:100%;padding:10px}

.timetable td{white-space:normal;overflow-wrap:anywhere;min-width:68px;line-height:1.5}.timetable th{white-space:nowrap}.timetable details{margin-top:18px}.timetable summary{cursor:pointer;font-weight:700}.timetable .table-scroll{max-width:100%}.timetable [role=tab][aria-selected=true]{background:#765b9e;color:#fff}
/* A stable aspect ratio keeps every overlay registered to the same image coordinates. */
.classroom-scene{aspect-ratio:1452/1083;background:transparent;overflow:visible;border-radius:0}.classroom-image{width:100%;height:100%;max-height:none;object-fit:fill}.classroom-layer{image-rendering:auto}.room-hotspot,.room-hotspot:hover{border:0!important;box-shadow:none!important;transform:none;outline:0}.room-hotspot:before{content:'';position:absolute;inset:18%;border-radius:50%;background:#fff3ac60;filter:blur(13px);opacity:.35;transition:opacity .2s;pointer-events:none}.room-hotspot:hover:before,.room-hotspot:focus-visible:before{opacity:1;background:#fff3aca6}.room-hotspot:focus-visible{outline:2px dotted #9676b8;outline-offset:3px}.hotspot-outline{display:none!important}
.student-management-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px}.student-management-grid button{white-space:nowrap;font-size:12px;padding:9px 6px;min-width:0;overflow:hidden;text-overflow:ellipsis}.classroom-gallery{margin-bottom:14px}.classroom-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:9px}.gallery-tile{padding:7px;background:#faf8f3;border:1px solid #ece5d8;border-radius:10px;min-width:0}.gallery-tile strong,.gallery-tile small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-tile strong{font-size:11px;margin-top:4px}.gallery-tile small{font-size:9px;color:#827b85}.thumbnail-frame{aspect-ratio:1452/1083;display:grid;place-items:center;font-size:10px;color:#8c8693}.room-thumbnail{display:block;width:100%;height:auto;object-fit:contain}.featured-caption{text-align:center;font-weight:700;margin:10px 0}.login-room-preview{display:block;min-width:0}.gallery-empty{grid-column:1/-1}
.lotus-shop{max-width:1000px;padding:20px;background:#fffcf4;border:1px solid #e8ddc6}.shop-heading{padding:8px 0 18px;border-bottom:2px solid #e4d4b6}.shop-heading h2{color:#705538}.lotus-balance{background:#efe7cf;color:#705538}.shop-filters{gap:5px;padding:12px 0;position:sticky;top:0;background:#fffcf4;z-index:5;flex-wrap:wrap}.shop-filters [role=tab]{border-radius:18px;font-size:12px;padding:8px 13px;border:1px solid #e1d5c1}.shop-filters [aria-selected=true]{background:#735c43;color:#fff;border-color:#735c43}.shop-item{background:white;border:1px solid #eadfcf;box-shadow:0 3px 9px #6d4b2710;display:flex;flex-direction:column;gap:4px;min-width:0}.shop-preview{background:radial-gradient(ellipse,#f7efdf,transparent 70%);height:125px}.shop-item h3{min-height:32px}.shop-item button{margin-top:auto}.shop-layout-details{border:1px solid #e2d5c2;border-radius:12px;margin:12px 0;padding:12px}.shop-layout-details summary{cursor:pointer;font-weight:700;color:#705538}.shop-room-preview{max-width:580px!important}.teacher-controls,.request-row{flex-wrap:wrap}input[type=text]{min-width:0;width:100%;padding:10px;border:1px solid #ddd5e5;border-radius:8px}.panel #join-form{display:grid}.classroom-gallery-grid .gallery-tile{max-width:220px}
@media(max-width:560px){.login-room-preview{display:block;margin-top:20px}.classroom-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.gallery-tile{padding:4px}.gallery-tile strong{font-size:10px}.gallery-tile small{font-size:8px}.lotus-shop{padding:12px}.shop-filters{position:static;gap:4px}.shop-filters [role=tab]{font-size:11px;padding:7px 10px}.student-management-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Desktop guide surrounds a deliberately small classroom; mobile keeps the scene alone. */
.room-guide,.room-guide-caption{display:none}
@media(min-width:1000px){
 .classroom-desktop{display:grid;grid-template-columns:minmax(185px,1fr) minmax(0,540px) minmax(185px,1fr);grid-template-areas:"top top top" "left room right" "bottom bottom bottom";align-items:center;gap:18px 16px;padding:20px 12px 16px;background:radial-gradient(ellipse at center,#ece6f4 0,transparent 68%);border-top:1px solid var(--line)}
 .room-guide{display:grid;gap:12px;min-width:0}
 .room-guide-top{grid-area:top;grid-template-columns:repeat(3,minmax(0,1fr))}
 .room-guide-left{grid-area:left}.room-guide-right{grid-area:right}
 .room-guide-bottom{grid-area:bottom;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,700px);justify-self:center}
 .room-guide-center{grid-area:room;min-width:0;width:100%}
 .room-guide-center>.classroom-scene{width:100%;max-width:540px;border-radius:16px;box-shadow:0 12px 30px #4c3c6220;border:1px solid #e8dfd2}
 .room-guide-center .classroom-image{max-height:none}
 .room-guide-card{display:flex;align-items:center;gap:12px;min-width:0;width:100%;padding:14px;text-align:left;background:#fffdfaf5;border:1px solid #e3dce9;border-radius:15px;box-shadow:0 3px 12px #57446306;transition:border-color .15s,box-shadow .15s}
 .room-guide-left .room-guide-card,.room-guide-right .room-guide-card{flex-direction:column;align-items:flex-start;gap:9px}
 .room-guide-card:hover,.room-guide-card.is-guided{border-color:#a28bbd;box-shadow:0 4px 18px #7763ab20;background:white}
 .room-guide-art{display:grid;place-items:center;width:58px;height:62px;flex-shrink:0;background:#f2edf5;border-radius:11px;overflow:hidden;padding:7px}
 .room-guide-art img{width:100%;height:100%;object-fit:contain;min-height:0}
 .room-guide-crop{display:block;width:100%;max-height:100%;background-repeat:no-repeat}
 .room-guide-copy{display:grid;gap:5px;min-width:0}.room-guide-copy strong{font-size:14px;line-height:1.4;color:#504061}
 .room-guide-description{font-size:11px;line-height:1.75;color:#7a7182;word-break:keep-all}
 .room-guide-action{font-size:10px;font-weight:600;color:#806496;margin-top:2px}
 .room-guide-caption{display:block;text-align:center;margin:12px 0 0;font-size:11px;color:#8b7d96;line-height:1.6}
 .room-hotspot.is-guided{outline:0;z-index:3}
 .room-hotspot.is-guided .hotspot-outline{filter:drop-shadow(0 0 5px #ffcf43)}
}

@media(max-width:999px){
 .classroom-desktop{display:flex;flex-direction:column}.room-guide-center{order:0;width:100%}
 .room-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;margin-top:7px}
 .room-guide-top{order:1}.room-guide-left{order:2}.room-guide-right{order:3}.room-guide-bottom{order:4}
 .room-guide-card{display:flex;gap:8px;align-items:center;text-align:left;padding:9px 8px;background:#fffdfb;border:1px solid var(--line);border-radius:10px;min-width:0;width:100%}
 .room-guide-art{display:grid;place-items:center;flex-shrink:0;width:31px;height:36px;overflow:hidden}.room-guide-art img{width:100%;height:100%;object-fit:contain}.room-guide-crop{display:block;width:100%;max-height:100%;background-repeat:no-repeat}
 .room-guide-copy{display:grid;gap:3px;min-width:0}.room-guide-copy strong{font-size:11px}.room-guide-description{font-size:10px;line-height:1.5;color:var(--muted)}.room-guide-action{display:none}
 .room-guide-top>.room-guide-card:last-child{grid-column:1/-1}
}
/* The scene never collapses; only the product browser scrolls. */
.lotus-shop{max-width:1100px;display:flex;flex-direction:column;height:calc(100svh - 125px);min-height:480px;padding:14px;overflow:hidden}
.lotus-shop .shop-heading{flex-shrink:0;padding-bottom:12px}.lotus-shop .shop-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:18px;min-height:0;flex:1;overflow:hidden}
.shop-preview-pane{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;background:#f6f1f8;border:1px solid #e8dfed;border-radius:14px;padding:12px;overflow:hidden}
.shop-preview-title{font-size:12px;margin:0;color:#7a6887}.lotus-shop .shop-room-preview{width:min(100%,calc((100svh - 240px) * 1452 / 1083))!important;max-width:580px!important;margin:0 auto;flex-shrink:0}.lotus-shop .shop-room-preview .classroom-image{max-height:none}
.shop-preview-pane>button{font-size:11px;padding:7px 12px;border:1px solid var(--line);background:white}
.shop-browser{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:0 5px 15px 0}
.lotus-shop .shop-filters{position:sticky;top:0;z-index:5;background:#fff;display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px;padding:4px 0 9px;border-bottom:1px solid var(--line)}
.lotus-shop .shop-filters button{font-size:11px;padding:6px 10px;border-radius:20px}.lotus-shop .shop-filters [aria-pressed=true]{background:#7763ab;color:white;border-color:#7763ab}
.lotus-shop .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:start}
.lotus-shop .shop-item{padding:8px;border-radius:10px;overflow:hidden}.lotus-shop .shop-preview{height:62px}.lotus-shop .shop-item h3{font-size:11px;line-height:1.5;margin:6px 0 3px;min-height:33px}.lotus-shop .shop-item p{font-size:10px;line-height:1.5;margin:0 0 6px}.lotus-shop .shop-item button{font-size:10px;padding:7px 3px;min-height:32px;border-radius:7px}.lotus-shop .shop-item select{font-size:10px;width:100%;min-width:0;min-height:32px;padding:5px}.lotus-shop .shop-note{font-size:10px;line-height:1.6;margin:6px 0}.layout-editor summary,.shop-equipment-panel summary{font-size:12px;font-weight:600;cursor:pointer;padding:5px 0}.shop-equipment-panel{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
@media(max-width:999px){
 .lotus-shop{height:calc(100svh - 112px);min-height:440px;padding:9px}.lotus-shop .shop-heading{padding-bottom:7px}.lotus-shop .shop-heading h2{font-size:16px}.lotus-balance{font-size:11px;padding:5px 9px}
 .lotus-shop .shop-body{display:flex;flex-direction:column;gap:8px}.shop-preview-pane{flex-shrink:0;padding:5px;gap:3px;border-radius:10px;position:relative}.shop-preview-title{font-size:10px}.lotus-shop .shop-room-preview{width:min(100%,calc(29svh * 1452 / 1083))!important;max-width:420px!important}.shop-preview-pane>button{position:absolute;right:6px;bottom:6px;padding:5px 7px;font-size:9px}.shop-browser{flex:1;padding-right:2px}.lotus-shop .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lotus-shop .shop-preview{height:52px}.lotus-shop .shop-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px}.lotus-shop .shop-filters button{flex-shrink:0;font-size:10px;padding:6px 9px}.lotus-shop .shop-item h3{font-size:10px;min-height:30px}.lotus-shop .shop-item{padding:6px}.lotus-shop .shop-item button{font-size:9px}.lotus-shop .layout-editor{margin:6px 0;padding:8px}
}
@media(max-width:350px){.lotus-shop .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.lotus-gift-form{display:grid;gap:12px;max-width:540px}.lotus-gift-form label{display:grid;gap:5px;font-size:12px}.lotus-gift-form input,.lotus-gift-form select,.lotus-gift-form textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit}.lotus-gift-form h3,.lotus-gift-form p{margin:0}.gift-status{font-size:12px;color:#547467;line-height:1.7}
.lotus-gift-dialog{border:1px solid #e5d8ed;border-radius:22px;padding:28px;width:min(440px,calc(100vw - 30px));max-height:calc(100svh - 40px);overflow:auto;text-align:center;color:var(--ink);background:#fffdfa;box-shadow:0 20px 80px #49305530}.lotus-gift-dialog::backdrop{background:#30233b75;backdrop-filter:blur(3px)}.gift-symbol{display:block;font-size:42px;color:#9b78bc}.lotus-gift-dialog h2{font-size:19px;margin:10px 0}.gift-amount{font-size:28px;font-weight:800;color:#7c5599;margin:14px 0}.gift-message{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#f3edf8;padding:17px;border-radius:13px;font-size:14px;color:#66536e}.lotus-gift-dialog>button{width:100%;margin-top:16px}.gift-failure{font-size:12px;color:var(--red)}

.room-guide-description-mobile{display:none}
@media(max-width:999px){.room-guide-card .room-guide-description{display:none}.room-guide-description-mobile{display:block;font-size:10px;line-height:1.5;color:var(--muted)}}


/* Compact cards stay independent of the older gallery shop's flex spacing. */
.lotus-shop .shop-item{display:block}.lotus-shop .shop-item h3{min-height:0;margin:4px 0;font-size:11px;line-height:1.45}.lotus-shop .shop-item p{margin:0 0 5px}.lotus-shop .shop-item button{width:100%;margin-top:4px;min-height:29px;padding:5px 3px}.lotus-shop .shop-item button+button{margin-top:4px}


/* Guide and object hover share the same light; use smooth fractional downsampling. */
.room-hotspot.is-guided:before{opacity:1;background:#fff3aca6}
.room-guide-card:hover,.room-guide-card.is-guided{border-color:#e3dce9;box-shadow:0 0 18px #ffda7045;background:#fffdf5}
.classroom-scene:has(.hotspot-door.is-guided) .classroom-layer[data-slot="door"],.classroom-scene:has(.hotspot-mailbox.is-guided) .classroom-layer[data-slot="mailbox"],.classroom-scene:has(.hotspot-career-books.is-guided) .classroom-layer[data-slot="career-books"]{filter:brightness(1.15) saturate(1.12)}

/* Grade overview: the report opens directly, with the same reading order on mobile. */
.grade-dashboard{display:grid;gap:12px}.grade-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.grade-heading h2{margin:0;font-size:21px}.grade-swap{font-size:12px;padding:8px 12px}.grade-table{width:100%;font-size:12px;min-width:660px;border-collapse:collapse}.grade-table th,.grade-table td{padding:9px 10px;border-bottom:1px solid #e8e2eb;text-align:center;white-space:nowrap}.grade-table th:first-child{text-align:left}.grade-table thead{background:#f1edf6;color:#5d4b71}.grade-dashboard>.table-scroll{border:1px solid #e5dce9;border-radius:12px;background:#fff}.grade-dashboard>.table-scroll td:last-child{font-weight:800;color:#713d9a;background:#f8f3fb}.grade-basis{font-size:12px;line-height:1.65;color:#6e6576;margin:0}.grade-periods,.grade-presets,.grade-subject-checks,.grade-exam-checks{display:flex;flex-wrap:wrap;gap:8px}.grade-periods button,.grade-presets button{font-size:12px;padding:7px 12px}.grade-periods button[aria-pressed=true]{background:#71558d;color:#fff;border-color:#71558d}.grade-selection{padding:13px 16px;background:#fcfaf7;border:1px solid #ebe2d6;border-radius:12px;display:grid;gap:10px}.grade-exam-checks{border-bottom:1px solid #e7ded1;padding-bottom:9px}.grade-check{display:inline-flex;align-items:center;gap:5px;font-size:12px;cursor:pointer;min-height:30px}.grade-check input{accent-color:#735292;width:15px;height:15px;margin:0}.grade-check:has(input:disabled){color:#9b939e}.grade-inquiry{display:flex;align-items:center;gap:8px;font-size:12px}.grade-inquiry select{max-width:100%;font-size:12px;padding:6px;border:1px solid #ddd1e5;border-radius:7px;background:white}.grade-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.grade-metrics strong{font-size:17px;color:#23696a}.grade-metrics span{font-size:12px;color:#665a6b}.grade-graphs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grade-graph{min-width:0;padding:18px;display:flex;flex-direction:column;gap:12px}.grade-graph h3{font-size:17px;margin:0}.grade-chart{width:100%;height:auto;display:block;overflow:visible}.grade-chart text{font-family:inherit;font-size:13px}.grade-legend{display:flex;flex-wrap:wrap;gap:7px 13px;font-size:11px}.grade-legend .is-faint{opacity:.65}.grade-values{font-size:12px;margin-top:12px}.grade-values summary{cursor:pointer;color:#746880}.grade-missing{margin:0;font-size:12px;line-height:1.6;color:#8a6842;background:#fff8e8;border-radius:8px;padding:9px 12px}.grade-detail-links{display:flex;gap:8px;flex-wrap:wrap}.grade-detail-links button{font-size:12px}.grade-graph .table-scroll{margin-top:auto}.grade-check:focus-within{outline:2px solid #86609b;outline-offset:3px}
@media(max-width:800px){.grade-graphs{grid-template-columns:1fr}.grade-heading{align-items:flex-start}.grade-heading h2{font-size:19px}.grade-swap{max-width:180px}.grade-graph{padding:13px}.grade-selection{padding:11px}.grade-check{min-height:38px}.grade-periods{display:grid;grid-template-columns:repeat(2,1fr)}.grade-inquiry{flex-wrap:wrap}.grade-table th,.grade-table td{padding:8px}.grade-metrics strong{font-size:16px}}

.elevator-hotspot{left:14.33%;top:51.43%;width:16.53%;height:36.93%;z-index:4;clip-path:polygon(0% 0%,100% 29%,100% 100%,0% 71%)}.elevator-hotspot:hover:before{inset:12%;opacity:1}.elevator-call-label{position:absolute;left:14%;top:45%;font-size:clamp(8px,1vw,12px);font-weight:700;color:#fff;background:#514955e8;border-radius:5px;padding:3px 5px;white-space:nowrap}.elevator-hotspot:disabled{opacity:1;cursor:default}.room-floor-dialog{border:1px solid #d8cce4;border-radius:18px;padding:24px;max-width:min(460px,calc(100vw - 30px));color:#3e354a;background:#fffcf8;box-shadow:0 20px 100px #0004}.room-floor-dialog::backdrop{background:#20172f66}.room-floor-dialog h2{font-size:20px;margin-top:0}.room-floor-dialog p{font-size:13px;line-height:1.7}.room-floor-dialog>button{display:block;width:100%;margin:10px 0}.grade-common h3{font-size:17px;margin:0 0 9px}

/* Compact right/bottom navigation; crop outer grid without moving room coordinates. */
.classroom-scene{clip-path:inset(0 5.3% 0 5.3%);transform-origin:center}
.room-guide-copy{display:block}.room-guide-description,.room-guide-description-mobile,.room-guide-action{display:none!important}
.room-guide-top,.room-guide-left{display:none!important}.room-guide-caption{display:none!important}
@media(min-width:1000px){
 .classroom-desktop{grid-template-columns:minmax(0,620px) 155px;grid-template-areas:"room right" "bottom bottom";justify-content:center;align-items:center;gap:8px;padding:8px 0;background:none;border:0;max-width:790px;margin:auto}
 .room-guide-center>.classroom-scene{max-width:620px;width:100%;border:0;box-shadow:none;border-radius:0}
 .room-guide-right{grid-template-columns:1fr;gap:6px}.room-guide-bottom{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .room-guide-card,.room-guide-right .room-guide-card{flex-direction:row;align-items:center;padding:6px 8px;gap:7px;min-height:43px;border-radius:9px;box-shadow:none}
 .room-guide-art{width:30px;height:30px;padding:2px;border-radius:5px}.room-guide-copy strong{font-size:11px;line-height:1.3}
}
@media(max-width:999px){.room-guide-right,.room-guide-bottom{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:5px}.room-guide-card{padding:5px;gap:4px;min-height:38px}.room-guide-art{width:25px;height:27px}.room-guide-copy strong{font-size:10px}}
.room-guide-center{overflow:hidden}
.room-guide-center>.classroom-scene{width:111.86%;max-width:none;margin-left:-5.93%}
.shop-preview-pane{overflow:hidden}
.shop-room-preview{width:111.86%!important;max-width:none;margin-left:-5.93%;margin-right:-5.93%}

/* Compact, keyboard-accessible contextual chart help. */
.grade-info{display:inline-block;position:relative;margin:0 .25rem;vertical-align:middle;text-align:left;font-size:.8rem;font-weight:400}
.grade-info>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;color:#5e5272}
.grade-info>summary::-webkit-details-marker{display:none}.grade-info>summary:focus-visible{outline:2px solid #713d9a}
.grade-info-content{position:absolute;z-index:10;right:0;top:100%;width:min(280px,65vw);white-space:normal;background:#fff;padding:12px;border:1px solid #d8cee1;box-shadow:0 4px 18px #30203d20;border-radius:10px;color:#403749;line-height:1.6}
.grade-swatch{width:13px;height:13px;display:inline-block;border-radius:3px;border:1px solid #0001}.grade-band-label{display:inline-flex;align-items:center;gap:4px}

.grade-info[open]{display:block}.grade-info-content{position:static;max-width:100%;box-sizing:border-box}


.room-pet{position:absolute;pointer-events:none;z-index:1;background-repeat:no-repeat;background-size:400% 200%;transform-origin:center 90%;will-change:transform;image-rendering:auto}
.room-pet[hidden]{display:none!important}
.room-pet-flap{position:absolute;pointer-events:none;z-index:1;background:linear-gradient(120deg,#aa9a8b,#77675d);border:2px solid #5e4d3f;clip-path:polygon(0 0,100% 25%,100% 100%,0 75%);transform-origin:50% 0;transition:transform .35s ease;backface-visibility:hidden}
@media(prefers-reduced-motion:reduce){.room-pet{will-change:auto}.room-pet-flap{transition:none}}


/* Mobile grade controls and school-rank rows fit without horizontal scrolling. */
.grade-legend{display:grid;gap:7px}.grade-band-key{display:flex;align-items:center;justify-content:space-between;gap:5px;white-space:nowrap}.grade-band-key .grade-info{margin:0;flex:0 0 auto}.grade-band-key .grade-info>summary{width:24px;height:30px}.grade-band-key .grade-info[open]{display:inline-block}.grade-band-key .grade-info-content{position:absolute;right:0;width:min(280px,75vw);max-width:none;background:#fff;box-shadow:0 4px 18px #30203d20}.grade-series-key{display:flex;flex-wrap:wrap;gap:7px 13px}
.grade-subject-checks{flex-wrap:nowrap;justify-content:space-between;gap:5px}.grade-subject-checks .grade-check{white-space:nowrap;min-width:0}.grade-rank-semesters{display:grid;gap:12px;margin-top:auto}.grade-rank-semester h4{margin:0 0 5px;font-size:12px;color:#665674}.grade-rank-table .grade-table{min-width:0;width:100%;table-layout:fixed}.grade-rank-table .grade-table th,.grade-rank-table .grade-table td{padding:7px 5px;white-space:normal}.grade-rank-table .grade-table th:first-child{width:28%}
@media(max-width:800px){.grade-subject-checks .grade-check{font-size:11px;gap:3px}.grade-subject-checks .grade-check input{width:14px;height:14px;flex:0 0 14px}.grade-band-key{font-size:11px;gap:3px}.grade-band-key .grade-band-label{gap:3px}.grade-band-key .grade-swatch{width:10px;height:10px;flex:0 0 10px}}


/* v20: readable per-exam values, including coincident subject lines. */
.grade-point-readout{display:flex;flex-wrap:wrap;gap:.35rem .8rem;padding:.6rem;background:#f7f5fa;border-radius:.6rem;font-size:.85rem}
.grade-point-readout[hidden]{display:none}
.grade-point-readout strong{flex-basis:100%}
.grade-chart-hit{cursor:pointer}
.grade-chart-hit:focus{outline:none;stroke:#746080;stroke-width:1;stroke-dasharray:3 4}

.grade-series-key button{background:none;border:0;padding:.15rem 0;font:inherit;text-align:left;cursor:pointer}.grade-series-key button[aria-pressed=true]{text-decoration:underline;text-underline-offset:4px;font-weight:700}


.admissions{max-width:1100px;margin:auto}.admissions form{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.admissions label{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 180px}.admissions input,.admissions select{width:100%;max-width:100%;box-sizing:border-box}.admissions button{margin:4px;white-space:normal}.admissions-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}.admissions p{overflow-wrap:anywhere}.admissions-card{margin:16px 0;padding:16px}.admissions details{padding:10px 0}.admissions-tabs{display:flex;gap:8px}
