:root {
 color-scheme: light;
 --paper:#fbf5e7; --cream:#eee5d6; --ink:#3f513d; --sage:#7b9365;
 --deep:#455d3e; --line:#c8cfb8; --soft:#e3e8d5; --muted:#5b6b4f;
 --gold:#ad9565; --serif:'Hahmlet',serif; --body:'Noto Sans KR',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}
body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.65 var(--body);-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{opacity:.48;cursor:default}a{color:inherit}
:where(button,a,input,textarea,select,summary,[tabindex]):focus-visible{outline:3px solid #594566;outline-offset:3px}
.academy-nav button:focus-visible,.chat-tabs button:focus-visible{outline-offset:-3px}
button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}
h1,h2,h3,p,dl,dd{margin:0}h1,h2,h3{font-family:var(--body)}h1{font-size:25px;font-weight:700;letter-spacing:-1px;line-height:1.4}h2{font-size:17px;font-weight:600;letter-spacing:-.5px}h3{font-size:15px;font-weight:600}small{font-size:12px}
.eyebrow,.nav-label,.card-corner{font-size:10px;letter-spacing:1.1px;color:var(--muted)}
.sr-only{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;white-space:nowrap}
.skip-link{position:fixed;top:-80px;left:12px;background:var(--paper);padding:10px;z-index:100}.skip-link:focus{top:10px}
.academy-top{height:64px;padding:0 25px;display:flex;align-items:center;gap:24px;background:#f7efdf;border-bottom:1px solid #d4cbb6;position:sticky;top:0;z-index:20}
.academy-brand{display:flex;gap:9px;align-items:center;text-decoration:none;white-space:nowrap;font-family:var(--serif);font-size:16px;letter-spacing:-.6px}
.academy-brand small{display:block;font:8px var(--body);letter-spacing:1px;margin-top:1px;color:var(--muted)}.brand-seal{font:32px/1 var(--serif);color:#70875b;width:32px;text-align:center}
.top-day{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}.top-resources{display:flex;gap:6px;align-items:center}.top-resources>span{background:#e6ddc9;padding:4px 10px;border:1px solid #d5ccb5;border-radius:3px;white-space:nowrap;font-size:12px}.top-resources b{font-size:13px;font-weight:600;margin-left:5px;font-variant-numeric:tabular-nums}
.icon-button{background:#eae2cf;border:1px solid #d2c9b3;border-radius:4px;height:34px;width:34px;min-width:34px;font-size:22px;line-height:1}
.connection-note:not(.error){position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.connection-note.error{background:#eed9c7;color:#785242;padding:8px 20px;font-size:13px;border-bottom:1px solid #d8bfa9;text-align:center}
.academy-layout{display:grid;grid-template-columns:174px minmax(0,1fr) 274px;gap:24px;max-width:1640px;margin:0 auto;padding:26px 25px 32px;align-items:start}
.academy-left{position:sticky;top:88px;min-width:0}.nav-label{padding:0 9px;margin:0 0 11px;font-size:11px;letter-spacing:1px}.academy-nav{display:grid;gap:3px}.academy-nav button{min-height:38px;background:none;display:flex;align-items:center;gap:10px;text-align:left;font-size:14px;padding:7px 10px;border-left:3px solid transparent;border-radius:0 3px 3px 0;white-space:nowrap}.academy-nav button>span{font-size:18px;width:19px;line-height:1;color:#70875b;text-align:center}.academy-nav button[aria-current=page]{background:#d3ddbc;border-left-color:#718850;font-weight:600;color:#34472d}
.student-card{border-top:1px solid #cbd0b8;margin:22px 0 0;padding:19px 9px 0;display:grid;grid-template-columns:31px minmax(0,1fr);column-gap:9px;text-align:left}.card-corner{grid-column:1/-1;font-size:11px;letter-spacing:0;margin-bottom:14px}.student-card .student-emblem{grid-column:1;grid-row:2/4;width:31px;height:34px;margin:0;font-size:25px;background:#dbe4c9;border:1px solid #bac9a2;border-radius:3px}.student-card h2{grid-column:2;grid-row:2;font-size:15px;font-weight:600;overflow-wrap:anywhere;line-height:1.5}.student-card p{grid-column:2;grid-row:3;font-size:11px;color:var(--muted);line-height:1.7;margin-top:3px}.student-level{grid-column:1/-1;display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:14px 0 5px;font-variant-numeric:tabular-nums}.meter{height:4px;background:#d6d9c4;overflow:hidden}.meter>i{height:100%;display:block;background:#809b64;min-width:0}.student-card>.meter{grid-column:1/-1}.student-vitals{grid-column:1/-1;display:flex;justify-content:space-between;font-size:11px;gap:8px;color:var(--muted);margin-top:11px}.student-vitals b{font-weight:500;margin-left:2px}.sidebar-stats{grid-column:1/-1;border-top:1px solid #d4d7c2;margin-top:15px;padding-top:11px;display:grid;gap:7px;font-size:12px}.sidebar-stats>div{display:flex;justify-content:space-between;gap:10px}.sidebar-stats dt{color:var(--muted)}.sidebar-stats dd{font-weight:600;font-variant-numeric:tabular-nums}.student-card>.text-button{grid-column:1/-1;text-align:left;margin-top:10px;font-size:11px}
.academy-main{min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 17px;gap:14px}.page-heading .eyebrow{display:block;font-size:9px;letter-spacing:1.1px;margin-bottom:5px}.small-pill{border:1px solid #c7ccb2;background:#e9e6d3;color:#5b6b4f;font-size:11px;border-radius:3px;padding:3px 8px;white-space:nowrap}.mobile-student{display:none}
.campus-notice{display:flex;gap:14px;align-items:center;border:1px solid #cecbb3;border-left:3px solid #9ba77e;border-radius:3px;background:#e7deca;min-height:43px;padding:7px 12px;margin-bottom:13px}.notice-label{font-size:11px;color:#536946;font-weight:600;white-space:nowrap}.campus-notice p{font-size:12px;flex:1;color:#5f6c53;line-height:1.7}.campus-notice .text-button{font-size:11px;white-space:nowrap}

/* Campus built with CSS; replaceable with the owner's pixel assets. */
.campus-scene{height:300px;border-radius:18px;position:relative;overflow:hidden;background:linear-gradient(#dbe5d0 0%,#e9e5cf 64%);border:1px solid #bdcba8;isolation:isolate}.scene-caption{position:absolute;top:15px;left:18px;right:18px;display:flex;align-items:center;gap:7px;font-size:11px;z-index:5;color:var(--muted)}.scene-dot{width:5px;height:5px;border-radius:50%;background:#9db889;box-shadow:0 0 0 4px #a6be951f}.scene-caption-right{margin-left:auto;font-size:10px;color:var(--muted)}.campus-sun{position:absolute;right:17%;top:38px;width:37px;height:37px;background:#fffce1;border-radius:50%;box-shadow:0 0 30px 13px #fffbe479}.campus-cloud{position:absolute;width:95px;height:15px;background:#ffffff73;clip-path:polygon(0 60%,15% 60%,15% 25%,40% 25%,40% 0,68% 0,68% 35%,85% 35%,85% 60%,100% 60%,100% 100%,0 100%)}.cloud-one{top:51px;left:14%}.cloud-two{top:85px;right:9%;width:66px;opacity:.7}.campus-hill{position:absolute;bottom:90px;border-radius:50% 50% 0 0;z-index:-1}.hill-one{left:-9%;height:100px;width:75%;background:#c6d2ad}.hill-two{right:-10%;height:77px;width:80%;background:#b5c59c}.campus-land{position:absolute;left:-5%;right:-5%;top:134px;bottom:-60px;background:repeating-linear-gradient(0deg,transparent 0 21px,#cbd8b31a 21px 22px),repeating-linear-gradient(90deg,#cdd8b3 0 23px,#c4d1a8 23px 24px);border-radius:50% 50% 0 0;transform:perspective(500px) rotateX(12deg);border-top:4px solid #b0c292}.campus-path{position:absolute;background:#f2ecd5;box-shadow:inset 0 2px #f8f3e1,inset 0 -3px #e4dec3}.path-horizontal{left:6%;right:6%;height:26px;top:100px;transform:rotate(-5deg)}.path-vertical{left:47%;top:20px;bottom:0;width:36px;transform:rotate(15deg)}.campus-bed{position:absolute;width:75px;height:25px;border:4px solid #bdcda6;background:radial-gradient(circle at 25% 40%,#faf5d2 0 3px,transparent 3.5px),radial-gradient(circle at 60% 60%,#d0b4bb 0 3px,transparent 3.5px),radial-gradient(circle at 80% 40%,#f9f7e4 0 3px,transparent 3.5px),#a9be8f;transform:skewX(-12deg)}.bed-one{left:22%;top:71px}.bed-two{right:20%;top:60px}.bed-three{left:27%;top:134px}.bed-four{right:22%;top:127px}.campus-tree{position:absolute;width:35px;height:40px;background:#86a370;clip-path:polygon(30% 0,70% 0,70% 15%,88% 15%,88% 35%,100% 35%,100% 75%,70% 75%,70% 90%,57% 90%,57% 100%,43% 100%,43% 90%,30% 90%,30% 75%,0 75%,0 35%,12% 35%,12% 15%,30% 15%);box-shadow:inset 9px -12px #718f5c}.tree-one{left:11%;top:40px}.tree-two{left:16%;top:63px;transform:scale(.7)}.tree-three{right:11%;top:23px}.tree-four{right:8%;top:92px}.tree-five{left:6%;top:117px}.tree-six{right:33%;top:133px;transform:scale(.7)}.campus-building{position:absolute;background:none;width:112px;min-height:95px;padding:0;bottom:82px;z-index:3;filter:drop-shadow(4px 7px 0 #90a07926)}.campus-building:hover:not(:disabled){transform:translateY(-3px);filter:drop-shadow(4px 10px 0 #90a07926)}.building-body{width:100%;height:61px;background:#eaddbe;border:2px solid #9da681;border-bottom:6px solid #b3bf9b;display:flex;gap:12px;justify-content:center;align-items:center;position:relative;box-shadow:inset -11px 0 #e6e5cd}.building-body i{width:13px;height:23px;background:#c6d8c2;border:2px solid #9cae95;position:relative}.building-body i:after{content:'';position:absolute;height:2px;left:0;right:0;top:8px;background:#a1b39a}.building-roof{display:block;width:120%;margin-left:-10%;height:39px;background:#9eaf83;clip-path:polygon(17% 0,83% 0,100% 100%,0 100%);box-shadow:inset 0 -8px #8f9e76;background:repeating-linear-gradient(0deg,#8ba373 0 5px,#7b9165 5px 7px)}.building-label{display:block;position:absolute;left:50%;transform:translateX(-50%);bottom:-32px;font-size:11px;white-space:nowrap;border:1px solid #d9e2cc;background:#fffef3d9;border-radius:9px;padding:2px 9px;box-shadow:0 2px 0 #bdcba54d}.building-library{left:13%;bottom:91px;width:92px}.building-library .building-roof{background:repeating-linear-gradient(0deg,#bac4a1 0 5px,#abb796 5px 7px)}.building-main{left:43%;bottom:112px;width:125px}.building-main .building-body{height:71px}.building-main .building-body b{position:absolute;bottom:0;left:calc(50% - 9px);width:18px;height:29px;background:#98aa8d;border:2px solid #86997b;border-radius:12px 12px 0 0}.main-tower{position:absolute;left:44px;top:-35px;width:36px;height:46px;border:2px solid #b2bb9d;background:#f6f0dd;z-index:1}.main-tower:before{content:'';position:absolute;top:-21px;left:-6px;width:44px;height:22px;background:#8f9f79;clip-path:polygon(50% 0,100% 100%,0 100%)}.main-tower i{display:block;border:1px solid #a5b192;background:#fffcef;border-radius:50%;width:21px;height:21px;margin:6px auto;position:relative}.main-tower i:after{content:'';position:absolute;width:6px;height:6px;top:4px;left:9px;border-left:1px solid #8b9f79;border-bottom:1px solid #8b9f79}.building-glass{right:9%;bottom:82px;width:100px}.glass-dome{display:block;border:2px solid #99b29b;border-bottom:0;height:52px;width:100%;border-radius:60px 60px 0 0;background:repeating-linear-gradient(90deg,transparent 0 22px,#abc2a8 22px 24px),linear-gradient(115deg,#eaf3dd 0,#d2e4c5 49%,#e7efcf 50%);box-shadow:inset -10px 0 #bdd3b65e}.building-glass .building-body{height:37px;background:#dae7ce;border-color:#a0b699;gap:20px}.building-glass i{height:21px;border-color:#9db696;background:#dceace}.campus-fountain{position:absolute;left:48%;bottom:43px;width:58px;height:23px;border-radius:50%;background:#b7d3c5;border:5px solid #eaf0db;box-shadow:0 4px 0 #c6cfb2;display:grid;place-items:center;z-index:4}.campus-fountain span{position:absolute;top:-22px;font-size:27px;line-height:1;color:#70875b;text-shadow:0 2px #f9fae9}.scene-footer{position:absolute;bottom:12px;left:17px;right:17px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);z-index:5}.scene-footer>span{font-size:7px;letter-spacing:1.4px}.scene-about{background:#fffdf0b3;border:1px solid #d3dfbd;border-radius:8px;padding:3px 9px;font-size:10px;color:var(--muted)}.campus-scene.evening{background:linear-gradient(#dbe1df,#ecece1)}.campus-scene.night{background:linear-gradient(#85968e,#bbc4af);border-color:#b6c3ad}.night .campus-sun{background:#f8f5da;box-shadow:0 0 25px #f7f5da5c}.night .scene-caption{color:#f0f2de}.night .campus-hill{filter:brightness(.85)}
/* Shared canvas and flat campus panels. */
.campus-scene{height:234px;border-radius:4px;border-color:#b9c6a5}.campus-land{top:103px;bottom:-88px}.building-main{bottom:70px;left:41%;width:115px}.building-library{bottom:52px;left:13%;width:89px}.building-glass{bottom:48px;right:10%;width:95px}.main-tower{left:39px}.campus-fountain{bottom:23px}.scene-caption{top:12px;left:15px;right:15px;font-size:10px}.scene-caption-right{font-size:9px}.building-label{border:0;border-radius:2px;box-shadow:none;background:#f6f0d9d9;padding:1px 6px;bottom:-24px;font-size:10px}.scene-footer{bottom:9px;left:14px;right:14px}.scene-about{border-radius:2px;font-size:9px;padding:2px 6px}.scene-footer>span{font-size:6px;letter-spacing:1px}
.bell-banner{display:flex;gap:9px;align-items:center;padding:9px 11px;margin:10px 0 17px;min-height:38px;border:1px solid #c7ccb4;background:#e4dfcc;border-radius:3px}.bell-stamp{font-size:17px;color:#6d8457;flex-shrink:0;line-height:1}.bell-banner>div{display:flex;gap:11px;align-items:baseline;min-width:0}.bell-banner b{font-size:11px;white-space:nowrap;color:#526947;font-weight:600}.bell-banner p{font-size:12px;line-height:1.8;color:#596a4c}
.home-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:17px;align-items:start}.paper-panel{background:var(--paper);border:1px solid #d1d1b9;border-radius:4px;padding:17px;box-shadow:none}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2{font-size:16px;white-space:nowrap}.subtle{font-size:10px;color:var(--muted);white-space:nowrap}.panel-intro{font-size:12px;color:var(--muted);margin:7px 0 15px}.timetable{display:grid;gap:10px}.schedule{background:#e6e7d3;border:1px solid #cbd1b6;border-radius:4px;padding:11px 12px 8px;min-width:0}.schedule.ready{background:#dce7c4;border-color:#9fb77f}.schedule.empty{background:#f2ecdb;border-style:solid;min-height:77px}.schedule-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.schedule-name{font-size:13px;font-weight:600;min-width:0;overflow-wrap:anywhere}.slot-tag{display:inline-block;font-size:10px;font-weight:400;color:#61784d;border:1px solid #b9c7a0;background:#e0e6cc;padding:0 4px;border-radius:2px;vertical-align:1px;margin-right:6px;white-space:nowrap}.schedule .meter{height:4px;margin:8px 0 5px}.schedule-bottom{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.schedule .text-button{font-size:11px;min-height:26px;padding:1px 0;white-space:nowrap}.schedule.empty p{font-size:11px;color:var(--muted);margin-top:5px}.time-left{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#526845}
.primary,.small-primary{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:9px 16px;border:1px solid #7c9562;border-radius:4px;background:#94ac78;color:#293c24;font-size:14px;font-weight:500;text-decoration:none;box-shadow:none}.small-primary{min-height:34px;font-size:12px;padding:5px 11px}.secondary{display:inline-flex;justify-content:center;align-items:center;min-height:40px;padding:8px 13px;border:1px solid #b8c8a0;border-radius:4px;background:#e3e8d5;font-size:14px;text-decoration:none}.text-button{background:none;color:#526b40;padding:3px 0;min-height:29px;font-size:12px;text-decoration:none;line-height:1.6}.full{width:100%}
.tiny-flower{font-size:19px;color:#7c9365}.daily-item{display:flex;gap:10px;padding-top:17px}.daily-item+.daily-item{border-top:1px solid #dedec8;margin-top:14px;padding-top:14px}.daily-symbol{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border:1px solid #c5ceb0;border-radius:3px;background:#e1e7ce;color:#6e8755;font-size:19px;line-height:1}.daily-symbol.pale-blue{background:#dbe6dc;border-color:#bdcebf;color:#628476}.daily-symbol.pale-gold{background:#ede2c8;border-color:#d6c7a6;color:#8b7748}.daily-item h3{font-size:13px;margin:1px 0 3px}.daily-item p{font-size:11px;color:var(--muted);line-height:1.8}.daily-item .text-button{font-size:11px;min-height:26px}
.campus-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:18px;padding:11px 0;border-top:1px solid #c6ccb4;border-bottom:1px solid #c6ccb4;gap:0}.shortcut-link{display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;padding:9px 5px;min-width:0;border-right:1px solid #d2d3bd}.shortcut-link:last-child{border-right:0}.shortcut-link>span{font-size:22px;line-height:1.2;color:#6d8556}.shortcut-link b{font-size:12px;font-weight:500;white-space:nowrap}.shortcut-link small{font-size:10px;color:var(--muted);white-space:nowrap}
.academy-right{position:sticky;top:88px;min-width:0;display:grid;gap:15px}.status-panel,.exam-status-panel{padding:13px 14px;background:#e6dfcc;border:1px solid #cac9b0;border-radius:3px}.rail-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.rail-heading h2{font-size:12px;font-weight:600;letter-spacing:.3px}.rail-heading>span{font-size:10px;color:#5b6b4f;font-variant-numeric:tabular-nums}.running-list{margin-top:9px}.running-row{display:flex;gap:8px;align-items:center;min-height:47px;padding:8px 0;border-bottom:1px solid #cfceb7}.running-row:last-child{border-bottom:0}.running-marker{width:23px;text-align:center;flex-shrink:0;font-size:18px;color:#6e8558}.running-row>span:nth-child(2){min-width:0}.running-row b{display:block;font-weight:500;font-size:11px}.running-row small{display:block;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px;margin-top:1px}.running-row em{font-style:normal;font-size:9px;color:#627450;white-space:nowrap;margin-left:auto;border:1px solid #c0c8aa;background:#e9ecd9;padding:1px 4px;border-radius:2px}.running-row.ready em{background:#d6e3bb;border-color:#a3b97e;color:#466036}.status-panel>.text-button,.exam-status-panel>.text-button{font-size:10px;min-height:24px;margin-top:5px}.status-dot{width:5px;height:5px;background:#8aa270;border-radius:50%}.exam-status-panel>strong{display:block;font-size:13px;font-weight:500;margin-top:11px;font-variant-numeric:tabular-nums}.exam-status-panel>p{font-size:11px;color:var(--muted);margin-top:5px}.rail-empty{font-size:11px;color:var(--muted);padding:11px 0}
.campus-chat{border:1px solid #c6ceb3;border-radius:3px;background:#f8f2e3;overflow:hidden}.chat-tabs{display:flex;border-bottom:1px solid #c9cfb6;background:#e3e5ce;padding:0;gap:0}.chat-tabs button{flex:1;min-height:35px;font-size:12px;background:none;border-bottom:2px solid transparent;border-radius:0;color:#5b6b4f}.chat-tabs button[aria-selected=true]{background:#f8f2e3;border-bottom-color:#7a925f;color:#3f5635;font-weight:500}.chat-scope{font-size:10px;color:var(--muted);padding:8px 12px 4px;border-bottom:1px solid #e0dfca;line-height:1.7}.chat-log{height:clamp(210px,calc(100dvh - 555px),350px);overflow-y:auto;overscroll-behavior:contain;padding:4px 12px 12px;scrollbar-width:thin;scrollbar-color:#aebb97 transparent}.empty-chat{font-size:11px;color:var(--muted);line-height:1.9;padding:14px 0}.chat-message{padding:10px 0;border-bottom:1px solid #e0dfca}.chat-message small{font-size:9px;color:var(--muted)}.chat-message small strong{font-weight:500;color:#4d6740;margin-right:7px}.chat-message p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}.chat-message.mine p{color:#526e40}.chat-form{padding:9px;background:#e9e5d2;border-top:1px solid #cbd0b6}.chat-form textarea{display:block;width:100%;min-height:63px;max-height:150px;resize:vertical;padding:9px;font-size:13px;line-height:1.8;background:#fbf5e7;border:1px solid #c4cdb0;border-radius:3px}.chat-form textarea::placeholder{color:#657457;font-size:11px}.chat-form>div{display:flex;justify-content:space-between;gap:7px;align-items:center;margin-top:7px}.chat-form small{font-size:9px;color:var(--muted);max-width:175px;line-height:1.7}
.content-panel{min-height:350px;padding:21px}.content-intro{font-size:14px;color:var(--muted);line-height:1.9;margin:10px 0 22px}.activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:19px}.activity{display:flex;flex-direction:column;gap:10px;min-width:0;padding:17px;border:1px solid #cdd2b9;background:#f4efde;border-radius:4px}.activity-icon{display:grid;place-items:center;width:34px;height:34px;font-size:24px;color:#6b8453;background:#e0e7cc;border:1px solid #c6d1b0;border-radius:3px}.activity h3{font-size:15px}.activity p{font-size:13px;line-height:1.9;color:var(--muted);flex:1}.activity-meta{font-size:11px;color:var(--muted)}.activity .secondary{width:100%;font-size:12px;margin-top:3px;min-height:37px}
.department-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.department{padding:21px;border:1px solid #c9d0b6;border-top:3px solid var(--dept,#90a16f);background:#f5f0e0;border-radius:3px}.department.ours{background:#e0e8ce;border-color:#a7ba8c;border-top-color:var(--dept,#7d9464)}.department>span{font-size:31px;color:var(--dept,#8da16e)}.department h3{font-size:17px;margin-top:9px}.department p{font-size:13px;color:var(--muted);line-height:1.9;margin-top:10px}.tag{display:inline-block;vertical-align:2px;background:#d4dfbd;border:1px solid #b8c99b;color:#4d693c;border-radius:2px;padding:1px 5px;font-size:10px;margin-left:7px;white-space:nowrap}
.student-emblem{display:grid;place-items:center;width:59px;height:59px;background:#dbe4c9;border:1px solid #b9c7a0;border-radius:4px;color:#70875b;font-size:37px;line-height:1}.pair-profile{display:flex;gap:17px;align-items:center;border:1px solid #c2cfaa;background:#e3e8d3;border-radius:4px;padding:21px;margin:20px 0}.pair-profile .student-emblem{flex-shrink:0}.pair-profile h3{font-size:20px}.pair-profile p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:5px}.button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.student-list{display:grid;gap:9px;margin-top:17px}.student-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #cbd2b8;background:#f5f0df;padding:14px;border-radius:3px}.student-row p{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.8}.student-row .secondary{font-size:12px;flex-shrink:0}.offer{padding:17px;border:1px solid #b9ca9c;border-left:3px solid #8fa773;background:#e8edd9;border-radius:3px;margin-top:13px;font-size:14px}
.exam-letter{padding:25px;border:1px solid #c6d0b0;border-radius:4px;background:#f5f0de;margin:20px 0}.exam-letter .eyebrow{display:block;text-align:center;font-size:9px}.exam-letter h3{text-align:center;font-size:21px;margin:15px 0 20px}.exam-letter p{font-size:14px;line-height:2;margin:13px 0}.exam-time{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #cdd1b7;border-bottom:1px solid #cdd1b7;padding:15px 0;margin:16px 0;font-size:13px}.exam-note{font-size:12px!important;color:var(--muted);line-height:1.9}.consent{display:flex;align-items:flex-start;gap:11px;font-size:13px;line-height:1.9;margin:21px 0}.consent input{accent-color:#809864;flex-shrink:0;width:18px;height:18px;margin-top:4px}.good-news{border:1px solid #c1cea9;background:#dce6c7;color:#496338;padding:11px 13px;border-radius:3px;margin-top:15px;font-size:13px;line-height:1.9}
.archive-entry{border-bottom:1px solid #ced3b9;padding:16px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9}.archive-entry small{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.record-controls{margin:19px 0}.record-snapshot{background:#e1e8cf;border:1px solid #c7d3b1;border-radius:3px;padding:13px;margin-top:12px;font-size:12px;line-height:1.9}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:21px 0}.profile-grid>div{border:1px solid #c9d3b6;background:#e1e8cf;border-radius:4px;padding:15px}.profile-grid small{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.profile-grid b{font-weight:500;font-size:14px;overflow-wrap:anywhere}
.academy-dialog{position:fixed;width:min(600px,calc(100vw - 32px));max-height:85dvh;border:1px solid #b5c49d;border-radius:8px;background:var(--paper);color:var(--ink);padding:32px;box-shadow:0 20px 90px #4e614026}.academy-dialog::backdrop{background:#35453540;backdrop-filter:blur(2px)}.dialog-close{position:absolute;right:10px;top:10px;width:35px;height:35px;background:#e0e7ce;border:1px solid #c4d0ae;border-radius:4px;color:#5b7249;font-size:23px;line-height:1}.academy-dialog h2{font-size:23px;margin-top:10px}.academy-dialog p{font-size:14px;color:var(--muted);line-height:1.9;margin-top:15px}.academy-dialog ul{font-size:14px;line-height:2;padding-left:20px}.form-label{display:block;font-size:13px;margin:18px 0 7px}input[type=text],input[type=password]{width:100%;min-height:46px;border:1px solid #b9c8a3;background:var(--paper);border-radius:4px;padding:11px 13px}.error-text{font-size:13px;color:#8d5e48;line-height:1.8;margin-top:12px}
#toast{position:fixed;z-index:80;bottom:23px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;max-width:calc(100vw - 32px);border:1px solid #adbf92;border-radius:5px;background:#f4f4e1;color:#3d5430;padding:12px 20px;box-shadow:0 5px 18px #5c704524;text-align:center;font-size:13px;transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translate(-50%,0)}
.academy-footer{display:flex;justify-content:space-between;gap:16px;margin-top:22px;padding-top:13px;border-top:1px solid #cbd0b7;color:var(--muted);font-size:9px}.academy-footer>span:first-child{font-size:8px;letter-spacing:1px}.ending-shell{max-width:650px;margin:65px auto;padding:35px;text-align:center}.ending-shell .student-emblem{margin:22px auto}.ending-shell h1{margin:18px 0}.ending-shell p{font-size:15px;color:var(--muted);line-height:2}.ending-shell .primary{margin-top:23px}
.entry-page{background:var(--cream)}.entry-layout{max-width:1120px;margin:54px auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.75fr);gap:60px;padding:0 27px 38px;align-items:start}.entry-intro{padding-top:12px}.entry-intro h1{font:500 35px/1.7 var(--serif);letter-spacing:-1.6px;margin:19px 0}.entry-intro>p{font-size:15px;line-height:2;color:var(--muted)}.entry-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:22px}.entry-chips span{border:1px solid #bdc9a7;border-radius:3px;background:#e0e6cf;padding:3px 9px;font-size:11px;color:#536d42}.entry-intro .campus-scene{margin-top:27px;height:250px}.entry-card{padding:29px;background:var(--paper);border:1px solid #c3cdb0;border-radius:5px;box-shadow:none}.entry-card h2{font-size:23px;margin:10px 0 17px}.entry-card>p{font-size:14px;line-height:1.9;color:var(--muted)}.entry-facts{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #d1d4bc;border-bottom:1px solid #d1d4bc;padding:15px 0;margin:23px 0}.entry-facts span{font-size:10px;color:var(--muted)}.entry-facts b{display:block;font-size:14px;font-weight:500;color:#476039;margin-top:6px}.entry-status{font-size:13px;color:#536c41;line-height:1.9}.entry-card .primary{margin-top:14px}.entry-card details{border-top:1px solid #ced3b9;padding-top:18px;margin-top:23px;font-size:12px;color:var(--muted)}.entry-card details p{margin-top:13px;line-height:2}.entry-card summary{cursor:pointer}.entry-intro>.entry-foot{font-size:11px;line-height:2;margin-top:19px}.loading-line{border:1px solid #c8d3b1;background:#e1e8d0;border-radius:3px;padding:16px;font-size:12px;color:var(--muted)}
@media(min-width:1600px){.academy-layout{grid-template-columns:185px minmax(0,1fr) 290px;gap:28px}.campus-scene{height:252px}.campus-land{top:118px}.building-main{bottom:83px}.building-library{bottom:60px}.building-glass{bottom:57px}.campus-fountain{bottom:31px}}
@media(max-width:1250px){.academy-top{padding:0 20px;gap:16px}.top-day{display:none}.top-resources{margin-left:auto}.academy-layout{grid-template-columns:154px minmax(0,1fr) 246px;gap:19px;padding:23px 20px}.academy-nav button{font-size:13px;gap:8px;padding-left:7px}.paper-panel{padding:15px}.home-grid{gap:13px;grid-template-columns:1fr}.daily-panel{display:none}.running-row small{max-width:117px}.campus-notice p{font-size:11px}.building-main{left:38%}.building-library{left:8%}.building-glass{right:7%}.shortcut-link small{font-size:9px}}
@media(max-width:1000px){.academy-layout{grid-template-columns:145px minmax(0,1fr);max-width:900px;gap:23px}.academy-main{grid-column:2;grid-row:1}.academy-left{grid-row:1/3}.academy-right{position:static;grid-column:2;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:15px}.status-panel,.exam-status-panel{display:none}.campus-chat{grid-column:1/-1}.chat-log{height:240px}.home-grid{grid-template-columns:1.1fr 1fr;gap:15px}.daily-panel{display:block}.top-resources>span{font-size:11px;padding:4px 8px}.top-resources b{font-size:12px}.entry-layout{gap:35px;margin-top:38px}.entry-intro h1{font-size:31px}.entry-card{padding:24px}.entry-intro .building-library{width:73px;left:8%}.entry-intro .building-main{width:94px;left:38%}.entry-intro .building-glass{width:76px;right:7%}.entry-intro .building-body{gap:7px}.entry-intro .building-body i{width:10px}.entry-intro .main-tower{left:28px}}
@media(max-width:760px){
 html{scroll-padding-top:126px}body{font-size:16px;line-height:1.7}.academy-top{height:58px;padding:0 14px;gap:9px}.academy-brand{gap:6px;font-size:14px}.academy-brand small{font-size:7px;letter-spacing:.7px}.brand-seal{width:27px;font-size:28px}.top-resources{gap:5px}.top-resources>span{font-size:11px;padding:3px 6px}.top-resources b{font-size:12px;margin-left:3px}.top-resources .resource-extra{display:none}.icon-button{width:31px;min-width:31px;height:33px;font-size:21px}.academy-layout{display:flex;flex-direction:column;gap:0;padding:0 14px 28px;width:100%;max-width:620px}.academy-left{position:sticky;top:58px;z-index:15;grid-row:auto;width:calc(100% + 28px);margin:0 -14px 19px;padding:7px 14px;background:#eee5d6f5;backdrop-filter:blur(8px);border-bottom:1px solid #c8cdb5}.nav-label,.student-card{display:none}.academy-nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin-right:-14px;padding-right:14px}.academy-nav button{flex-shrink:0;min-height:44px;font-size:13px;gap:6px;padding:7px 10px;border:1px solid transparent;border-radius:3px}.academy-nav button>span{font-size:18px;width:18px}.academy-nav button[aria-current=page]{background:#d3ddbc;border-color:#b3c397}.academy-main,.academy-right{width:100%;min-width:0}.page-heading{margin:0 0 14px}.page-heading h1{font-size:25px}.page-heading .eyebrow{font-size:8px;margin-bottom:5px;letter-spacing:.9px}.page-heading .small-pill{display:none}.mobile-student{display:flex;width:100%;align-items:center;justify-content:space-between;gap:11px;border:1px solid #becba7;background:#f8f1e1;padding:10px 12px;border-radius:4px;text-align:left;margin:0 0 13px}.mobile-student>span:first-child{min-width:0}.mobile-student b{display:block;font-size:15px;font-weight:500;overflow-wrap:anywhere}.mobile-student small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.mobile-student>span:nth-child(2){font-size:12px;white-space:nowrap;margin-left:auto;color:#516843}.mobile-student>span:last-child{font-size:15px;color:#667e52}.campus-notice{min-height:45px;padding:7px 10px;gap:8px;margin-bottom:12px;flex-wrap:wrap}.notice-label{font-size:10px}.campus-notice p{font-size:11px;flex:1;min-width:155px}.campus-notice .text-button{font-size:11px;min-height:28px;margin-left:auto}.campus-scene{height:224px;border-radius:4px}.campus-land{top:105px;left:-15%;right:-15%}.building-main{left:38%;bottom:67px;width:100px}.building-library{left:7%;bottom:47px;width:76px}.building-glass{right:6%;bottom:44px;width:78px}.main-tower{left:31px}.building-body{gap:7px}.building-body i{width:10px}.campus-fountain{bottom:22px}.building-label{font-size:9px;bottom:-22px;padding:1px 5px}.scene-caption{font-size:9px;top:11px;left:12px;right:12px}.scene-caption-right{font-size:8px}.scene-footer{bottom:8px;left:12px;right:12px}.scene-footer>span{font-size:5px;letter-spacing:.7px}.scene-about{font-size:8px}.bell-banner{padding:8px 10px;margin:10px 0 15px;gap:8px}.bell-banner>div{gap:8px;display:block}.bell-banner b{font-size:10px;float:left;margin:2px 8px 0 0}.bell-banner p{font-size:12px;line-height:1.9}.home-grid{grid-template-columns:1fr;gap:15px}.daily-panel{display:block}.paper-panel{padding:17px 15px;border-radius:4px}.section-heading h2{font-size:17px}.subtle{font-size:10px}.panel-intro{font-size:12px;margin-bottom:14px}.schedule{padding:12px 12px 9px;border-radius:4px}.schedule-name{font-size:14px}.slot-tag{font-size:10px}.schedule .time-left{font-size:11px}.schedule .text-button{font-size:12px;min-height:35px}.schedule-bottom{font-size:10px}.schedule.empty{min-height:83px}.schedule.empty p{font-size:12px}.schedule .meter{height:5px;margin-top:10px}.daily-item h3{font-size:14px}.daily-item p{font-size:12px}.daily-item .text-button{font-size:12px;min-height:34px}.daily-item{padding-top:15px}.daily-item+.daily-item{margin-top:13px;padding-top:13px}.daily-symbol{width:31px;height:31px;font-size:21px}.campus-shortcuts{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:15px;padding:7px 0}.shortcut-link{padding:9px 2px;gap:4px}.shortcut-link>span{font-size:21px}.shortcut-link b{font-size:10px}.shortcut-link small{display:none}.academy-footer{margin-top:17px;padding-top:11px;font-size:8px}.academy-footer>span:first-child{font-size:7px;letter-spacing:.6px}.academy-footer>span:last-child{font-size:8px}.academy-right{display:block;margin-top:20px}.chat-tabs button{min-height:44px;font-size:14px}.chat-scope{font-size:11px;padding:10px 13px 7px}.chat-log{height:270px;padding:5px 14px 14px}.chat-message small{font-size:11px}.chat-message p{font-size:16px;line-height:1.9}.empty-chat{font-size:13px}.chat-form{padding:12px}.chat-form textarea{font-size:16px;min-height:76px}.chat-form textarea::placeholder{font-size:13px}.chat-form small{font-size:10px;max-width:220px}.small-primary{min-height:44px;padding:7px 15px;font-size:14px}.content-panel{padding:18px 15px}.content-panel h2{font-size:19px}.content-intro{font-size:14px}.activity-grid{gap:11px;grid-template-columns:1fr 1fr}.activity{padding:15px 12px;gap:9px}.activity h3{font-size:15px}.activity p{font-size:13px}.activity-meta{font-size:11px}.activity .secondary{font-size:13px;min-height:44px}.primary,.secondary{min-height:44px}.text-button{min-height:36px;font-size:13px}.department-grid{gap:12px}.department{padding:18px 14px}.department h3{font-size:17px}.department p{font-size:13px}.pair-profile{padding:18px 14px;gap:13px}.pair-profile .student-emblem{width:49px;height:49px;font-size:32px}.pair-profile h3{font-size:19px}.pair-profile p{font-size:12px}.student-row{padding:13px 11px;gap:9px}.student-row p{font-size:11px}.student-row .secondary{font-size:12px;padding:7px 9px}.exam-letter{padding:21px 16px}.exam-letter h3{font-size:20px}.exam-time{flex-direction:column;gap:7px;font-size:13px}.exam-letter p{font-size:14px}.content-panel .button-row>*{flex:1}.consent{font-size:13px}.academy-dialog{padding:30px 21px}.academy-dialog h2{font-size:21px}.profile-grid{gap:9px}.profile-grid>div{padding:14px 12px}.archive-entry{font-size:14px}.entry-page .academy-top{justify-content:space-between}.entry-page .top-day{display:none}.entry-page .small-pill{font-size:9px}.entry-layout{grid-template-columns:1fr;gap:26px;max-width:560px;margin:24px auto;padding:0 20px 35px}.entry-intro{padding-top:5px}.entry-intro h1{font-size:31px;margin:16px 0;line-height:1.7}.entry-intro>p{font-size:14px}.entry-chips{margin-top:18px;gap:6px}.entry-chips span{font-size:10px}.entry-intro .campus-scene{height:234px;margin-top:24px}.entry-card{padding:25px 21px}.entry-card h2{font-size:22px}.entry-card>p{font-size:14px}.entry-facts span{font-size:10px}.entry-facts b{font-size:13px}.entry-status{font-size:13px}.entry-card details{font-size:12px}.ending-shell{padding:25px;margin:35px auto}.ending-shell h1{font-size:25px}
}
@media(max-width:380px){.academy-top{padding:0 10px;gap:7px}.academy-brand{font-size:12px}.academy-brand small{font-size:6px}.brand-seal{font-size:25px;width:25px}.top-resources{gap:4px}.top-resources>span{font-size:10px;padding:3px 4px}.top-resources b{font-size:11px;margin-left:2px}.icon-button{width:29px;min-width:29px;height:31px}.academy-layout{padding-left:12px;padding-right:12px}.academy-left{width:calc(100% + 24px);margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}.campus-notice p{font-size:10px}.building-library{width:65px;left:6%}.building-main{width:91px;left:36%;bottom:65px}.building-glass{width:67px;right:5%}.main-tower{left:27px}.scene-caption-right{display:none}.building-body{gap:5px}.building-body i{width:9px}.section-heading h2{font-size:16px}.subtle{font-size:9px}.shortcut-link b{font-size:9px}.department-grid{grid-template-columns:1fr}.activity-grid{grid-template-columns:1fr}.entry-intro h1{font-size:28px}.academy-footer>span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep the compact mobile layout readable. */
@media(max-width:760px){.activity p,.content-intro,.exam-letter p,.archive-entry,.consent,.academy-dialog p{font-size:15px}.activity .secondary,.primary,.secondary{font-size:15px}.schedule-name{font-size:15px}.schedule .text-button{font-size:13px}.schedule .time-left{font-size:12px}.daily-item h3{font-size:15px}.daily-item p{font-size:13px}.student-row p{font-size:12px}}
/* Learning progress stays inside the course list. */
.course-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.course-level{font-size:11px;color:var(--muted);border:1px solid #c1cbb0;background:#e8ead8;border-radius:2px;padding:1px 6px;white-space:nowrap}.course-mastery{font-size:11px;color:#597347;border-top:1px solid #d3d8c0;padding-top:9px}.reward-preview{font-size:11px;line-height:1.9;color:#4d6640;background:#e4e9d4;padding:8px 10px;border-left:2px solid #9db184}.dispatch-readiness{font-size:12px;color:#536d43}.dispatch-readiness b{font-weight:600}.dispatch-readiness small{display:block;font-size:10px;color:var(--muted);line-height:1.8;margin-top:3px}.unlock-note{font-size:11px;line-height:1.9;color:#7b6945;background:#eee6d2;border:1px solid #d5c9ac;padding:8px 10px;border-radius:2px}.activity.locked{background:#eee8d8;border-color:#d1cbb6}.study-report{font-size:13px!important;color:var(--muted);line-height:1.9;margin-top:8px}@media(max-width:760px){.course-level,.course-mastery{font-size:12px}.reward-preview,.unlock-note{font-size:12px}.dispatch-readiness{font-size:13px}.dispatch-readiness small{font-size:11px}.study-report{font-size:14px!important}}

.bell-banner.is-broadcast{border-left:3px solid #718850;background:#dfe6c9}.bell-banner.is-broadcast p{font-weight:600;color:#455d36}

/* Let content shrink and wrap inside its own panel, without hiding page overflow. */
.academy-layout>*,.entry-layout>*,.content-panel,.ending-shell{min-width:0}
.page-heading,.section-heading,.rail-heading{flex-wrap:wrap}
.page-heading>*,.section-heading>*,.rail-heading>*{min-width:0;max-width:100%}
.page-heading h1,.page-heading .eyebrow,.section-heading h2,.rail-heading h2{overflow-wrap:anywhere}
.section-heading h2,.page-heading .small-pill{white-space:normal}
.section-heading .subtle{white-space:normal;overflow-wrap:anywhere}
.department-grid,.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.department-grid>*,.profile-grid>*{min-width:0}
.content-intro,.activity h3,.activity p,.activity-meta,.department,.exam-letter,
.offer,.good-news,.record-snapshot,.loading-line,.error-text,.ending-shell{overflow-wrap:anywhere}
.button-row>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.primary,.secondary,.small-primary{min-width:0;max-width:100%;overflow-wrap:anywhere}
.record-controls{display:flex;flex-wrap:wrap;gap:8px}
.record-controls>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
:where(input,textarea,select){min-width:0;max-width:100%}
summary{overflow-wrap:anywhere}

/* Scrollable chat keeps focus visible inside the framed parent. */
.chat-log{min-width:0;max-width:100%;scrollbar-gutter:stable;scroll-padding:12px}
.chat-log:focus-visible{outline-offset:-3px}
.chat-message small,.chat-scope{overflow-wrap:anywhere}
.chat-form>div{flex-wrap:wrap}
.chat-form small{min-width:0;overflow-wrap:anywhere}

/* An unset progress value starts empty; excessive values stay inside the track. */
.meter{min-width:0;max-width:100%}
.meter>i{width:0;max-width:100%}

/* Long student records and archive dialogs remain reachable on short screens. */
.academy-dialog{
 min-width:0;
 max-width:calc(100vw - 32px);
 max-height:85vh;
 max-height:min(85dvh,calc(100dvh - 32px));
 overflow:auto;
 overscroll-behavior:contain;
 scrollbar-gutter:stable;
 scroll-padding-block:16px;
 overflow-wrap:anywhere;
}
.academy-dialog>:not(.dialog-close){min-width:0;max-width:100%}
.academy-dialog>div>:is(h2,.eyebrow):first-child{
 display:block;
 padding-inline-end:44px;
}

@media(max-width:480px){
 .department-grid,.profile-grid{grid-template-columns:minmax(0,1fr)}
 .academy-footer{flex-wrap:wrap}
}
