/* Shared spacing, readable controls and a responsive student expedition. */
.tv-guardian-scene{display:block;position:relative;aspect-ratio:1.6;overflow:hidden;width:100%;border-radius:14px;background:#16231f;isolation:isolate}.tv-guardian-scene img{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:initial!important;border-radius:0!important;display:block}.tv-guardian-scene.thumb{aspect-ratio:1;border-radius:12px}.tv-guardian-scene.thumb img{width:155%!important;left:-22%!important;top:0!important}.tv-guardian-placeholder{display:grid;place-items:center;width:100%;height:100%;background:#f7cd68;color:#25352b;font:700 25px Georgia,serif}
#studentDetailPane .character-orb{width:180px!important;height:auto!important;aspect-ratio:1.6;align-self:center;border-radius:16px}#studentDetailPane .character-panel{grid-template-columns:180px minmax(0,1fr)!important}#studentDetailPane .character-orb>.tv-guardian-scene{height:auto!important;min-height:0!important;aspect-ratio:1.6}
.directory-student .tv-roster-photo{padding:0!important;width:44px;height:44px;border:1px solid #cab478;border-radius:12px;overflow:hidden}.parent-child-avatar{width:100px!important;height:100px!important;flex-shrink:0;overflow:hidden}#studentPortal .tv-guardian-portrait{aspect-ratio:auto!important;align-self:center;min-height:0;padding:0;border-radius:18px}#studentPortal .tv-guardian-card{min-height:340px;align-items:center}.tv-parent-effects{padding:20px 0 0}.tv-parent-effects h3{color:#ffe3a0;font-size:18px}.tv-parent-effects p{font-size:12px;line-height:1.6}
.tv-level-progress{margin:22px 0 0;font-size:12px}.tv-level-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.tv-level-progress small{display:block;margin-top:9px;color:#bcbeb2;font-size:11px}.tv-level-meter{height:9px;margin-top:10px;background:#ffffff20;border-radius:20px;overflow:hidden}.tv-level-meter i{display:block;height:100%;background:linear-gradient(90deg,#d29930,#ffe78e);border-radius:inherit}.tv-level-progress span{color:#f2d791}
.tv-scoped-powers{max-width:1200px;margin:auto;padding:36px 24px;color:#f8efd5}.tv-scoped-powers>h1{font:700 40px Georgia,serif}.tv-scoped-powers>p{font-size:15px;line-height:1.6;max-width:760px;color:#c7cbbb}.tv-class-power-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:30px}.tv-class-power-grid article{display:flex;flex-direction:column;gap:16px;padding:26px;border:1px solid #576447;border-radius:22px;background:radial-gradient(circle at top right,#d3b86822,transparent),#1c2621}.tv-class-power-grid h2{font:700 23px Georgia,serif;margin:0;color:#ffe09b}.tv-class-power-grid p{font-size:14px;line-height:1.7;flex:1;margin:0}.tv-class-power-grid article>span{font-size:12px;color:#d6d7c0}.tv-class-power-grid .tv-power-emblem{font-size:34px}.tv-class-power-grid button{background:#ffcc63;color:#202d23;border:0;border-radius:10px;padding:13px;font-weight:800}.tv-class-power-grid button:disabled{opacity:.45}.tv-power-target-dialog{width:min(520px,calc(100% - 40px));border:1px solid #ac9a6b;border-radius:22px;padding:28px;background:#f8f5ed;color:#242c25}.tv-power-target-dialog::backdrop{background:#0a151bbf}.tv-power-target-dialog h2{font:700 26px Georgia,serif}.tv-power-target-dialog p{font-size:14px;line-height:1.6}.tv-power-target-dialog>div{display:grid;gap:10px;max-height:50vh;overflow:auto}.tv-power-target-dialog [data-target-uid]{display:grid;grid-template-columns:52px 1fr;gap:14px;text-align:left;align-items:center;padding:12px;background:white;border:1px solid #d6cfbc;border-radius:12px}.tv-power-target-dialog b,.tv-power-target-dialog small{display:block}.tv-power-target-dialog small{margin-top:6px;font-size:12px;color:#687361}.tv-power-target-dialog [data-cancel]{padding:12px 20px;margin-top:20px;border:1px solid #d6cfbc;border-radius:10px;background:white}
#workspace .settings-panel>label{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0;font-size:14px}#workspace .settings-panel>label>input[type=number]{width:110px;max-width:40%;padding:12px;border:1px solid #cdc6b6;border-radius:9px;font-size:15px}#workspace .settings-panel p{font-size:13px;line-height:1.65;color:#6b6c64}#workspace .tv-setting-switch b,#workspace .tv-setting-switch small{display:block}#workspace .tv-setting-switch small{font-size:12px;line-height:1.5;margin-top:7px;color:#6b6c64}#workspace .tv-setting-switch input{width:22px;height:22px;flex-shrink:0;accent-color:#a47712}
@media(max-width:800px){.tv-class-power-grid{grid-template-columns:1fr}.tv-scoped-powers{padding:26px 16px}.tv-scoped-powers>h1{font-size:32px}#studentDetailPane .character-panel{grid-template-columns:1fr!important}#studentDetailPane .character-orb{width:min(100%,260px)!important;justify-self:center}.parent-child-avatar{width:80px!important;height:80px!important}}
.tv-avatar-choice-art,.tv-avatar-preview-art,.tv-awaken-guardian,.teacher-avatar-tile,.teacher-avatar-ready{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}
.avatar img,.directory-student img,.student-row img{object-fit:contain!important;object-position:center!important;background:#19221d}
#studentPortal .tv-bazaar{max-width:1220px;margin:auto;padding:32px 24px 60px;color:#f7eed7}
#studentPortal .tv-bazaar>header{position:static;top:auto;height:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px!important;background:radial-gradient(ellipse at top right,#aa80493b,transparent 70%),#202720;border:1px solid #60573e;border-radius:24px}
.tv-bazaar h1{font:700 clamp(28px,4vw,44px)/1.15 Georgia,serif;color:#ffe099;margin:14px 0}.tv-bazaar p{font-size:14px;line-height:1.65;color:#c7c9be}.tv-bazaar>header>strong{white-space:nowrap;padding:14px 18px;border-radius:40px;background:#ffce5720;color:#ffda80;font-size:18px}
.tv-loadout{padding:28px 0}.tv-loadout h2{font:700 25px Georgia,serif}.tv-loadout-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.tv-loadout-slots article{padding:16px;border:1px solid #454740;border-radius:18px;background:#202520}.tv-loadout-slots article.selected{border-color:#ffcc62;box-shadow:0 0 0 2px #ffcc6220}.tv-loadout-slots article>button:first-child{display:grid;width:100%;gap:10px;color:#f8efd8;background:transparent;border:0;text-align:left;cursor:pointer}.tv-loadout-slots button>span{font-size:32px}.tv-loadout-slots b{font-size:16px}.tv-loadout-slots small{font-size:12px;line-height:1.5;color:#c4c7ba}.tv-loadout .tv-unequip{margin-top:14px;padding:8px 12px;background:#ffffff10;border:1px solid #ffffff22;color:#ddd4bf;border-radius:8px}
.tv-shop-filters{display:flex;gap:10px;flex-wrap:wrap}.tv-shop-filters button{padding:10px 18px;background:#252927;border:1px solid #474b43;border-radius:30px;color:#ddd8c9;font-size:13px}.tv-shop-filters button[aria-pressed=true]{background:#ffcf63;color:#191e1b}.tv-bazaar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tv-bazaar-grid>article{display:flex;flex-direction:column;min-width:0;padding:24px;background:linear-gradient(145deg,#2b2a25,#1a211f);border:1px solid #444a3e;border-radius:22px}.tv-bazaar-grid>article.equipped{border-color:#bba457}.tv-item-art{display:grid;place-items:center;height:110px;font-size:56px;margin-bottom:20px;background:radial-gradient(circle,#d2ab5630,transparent 67%)}.tv-bazaar-grid h2{font:700 23px Georgia,serif;color:#f4deb0}.tv-bazaar-grid p{flex:1}.tv-bazaar-grid footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;font-size:12px}.tv-bazaar-grid button,.tv-event-choice button,#tvPendingEvents button{padding:12px 16px;border:0;border-radius:10px;background:#ffcf63;color:#1b211d;font-weight:800;cursor:pointer}.tv-bazaar button:disabled{opacity:.5;cursor:default}.tv-bazaar button:focus-visible,.tv-event-choice button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.tv-event-choice{max-width:1180px;margin:24px auto;padding:24px;border:1px solid #c7a458;border-radius:22px;background:#202b24;color:#fff0c9;animation:tvEventAppear .4s ease-out}.tv-event-choice p{font-size:15px;line-height:1.6}.tv-event-choice button{margin:10px 10px 0 0}.tv-event-choice select,#tvPendingEvents select{padding:12px;border:1px solid #b1a588;border-radius:9px;max-width:100%}.tv-event-choice label{display:block;margin:12px 0}#tvPendingEvents{padding:24px 0 0}#tvPendingEvents article{padding:20px;margin-top:14px;border:1px solid #ddd2b9;border-radius:15px;background:#fffbf1}#tvPendingEvents article p{font-size:14px;line-height:1.6}#tvPendingEvents button{margin:8px 8px 0 0}#tvPendingEvents h4{font:700 20px Georgia,serif;margin:0}.tv-oracle-history{margin-top:20px}.tv-oracle-history summary{font-weight:700;cursor:pointer;padding:14px;background:#eee7d6;border-radius:9px}.tv-oracle-history h4{margin:16px 0 0;font-size:12px}
@media(max-width:900px){.tv-bazaar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-loadout-slots{grid-template-columns:1fr}.tv-loadout-slots article>button:first-child{grid-template-columns:40px 1fr}.tv-loadout-slots small{grid-column:2}}
@media(max-width:560px){#studentPortal .tv-bazaar{padding:18px 12px 40px}#studentPortal .tv-bazaar>header{padding:22px!important;flex-direction:column;align-items:start}.tv-bazaar-grid{grid-template-columns:1fr}.tv-event-choice{margin:14px 12px;padding:20px}}
#studentPortal .tv-journey-hero{position:relative;top:auto;z-index:0;height:auto;padding:38px!important}
#studentPortal .tv-student-buzzer>header,#studentPortal .tv-student-challenge .tv-oracle-live>header{position:static;top:auto;height:auto;min-height:0;padding:0!important;background:transparent}
#studentPortal .tv-student-buzzer.is-open .tv-buzz-button{animation:tvBuzzerLight 1.2s ease-in-out infinite;scroll-margin-top:160px}
@keyframes tvBuzzerLight{50%{filter:brightness(1.15);box-shadow:0 14px 0 #aa7200,0 0 35px #ffd46655}}
#studentDetailPane .side-panel,#studentDetailPane .quest-panel{grid-column:auto!important}
#studentDetailPane .side-panel{display:block}
#studentDetailPane .side-panel .power{width:100%!important;box-sizing:border-box}
#studentDetailPane .side-panel .power>span{min-width:0;width:auto;grid-column:2}
#studentPortal .tv-journey .tv-back{background:transparent;color:#e3d5b2;padding:10px 0}
@media(max-width:720px){#studentPortal>header{height:auto!important;min-height:68px;flex-wrap:wrap;gap:10px;padding:12px!important}#studentPortal>header .student-nav{order:5;flex:1 1 100%;display:flex;justify-content:space-between;gap:5px;margin:0;max-width:100%;overflow:auto}#studentPortal>header .student-nav button{min-height:40px;white-space:nowrap;font-size:11px!important;flex-shrink:0}#studentPortal>header>[data-student-exit]{margin-left:auto;font-size:12px}#studentPortal>header>.tv-active-class{max-width:110px}#studentPortal .tv-journey-hero{padding:24px!important}}
#studentCampaignMain .tv-journey{max-width:1180px;margin:0 auto;padding:30px 24px 60px;color:#f8f4e8}
.tv-back{padding:10px 0;border:0;background:transparent;color:#d9cba5;font-size:14px;font-weight:700}
.tv-journey-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:22px 0;padding:38px;border:1px solid #65542d;border-radius:24px;background:radial-gradient(ellipse at top right,#b58a2438,transparent 60%),linear-gradient(135deg,#242820,#15191e)}
.tv-journey h1{font:700 clamp(30px,4vw,50px)/1.1 Georgia,serif;margin:14px 0;color:#ffe199;overflow-wrap:anywhere}
.tv-journey p{color:#c5c7be;font-size:15px;line-height:1.6}
.tv-journey-rewards{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.tv-journey-rewards span{padding:9px 14px;background:#ffffff09;border:1px solid #ffffff16;border-radius:50px;font-size:13px}
.tv-journey-orb{width:134px;aspect-ratio:1;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(closest-side,#22261f 84%,transparent 86%),conic-gradient(#ffd466 var(--progress),#ffffff15 0)}
.tv-journey-orb b{font:700 32px Georgia,serif;color:#ffe199}.tv-journey-orb span{font-size:9px;letter-spacing:.16em;margin-top:5px}
.tv-journey-next{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:24px 28px;background:#ffe0990a;border:1px solid #e4b65155;border-radius:18px}.tv-journey-next h2{font-size:21px;margin:9px 0;color:#fff2ce}.tv-journey-next p{margin-bottom:0}.tv-journey-next button{min-height:52px;padding:14px 23px;white-space:nowrap;border-radius:12px;font-size:14px}
.tv-journey-trail{list-style:none;padding:15px 0;margin:22px 0}.tv-journey-trail li{position:relative;display:grid;grid-template-columns:54px 1fr;gap:22px;align-items:center;padding:12px 0}.tv-journey-trail li:not(:last-child):before{content:'';position:absolute;width:2px;background:#49483d;left:26px;top:50%;bottom:-50%;z-index:0}.tv-trail-marker{position:relative;z-index:1;display:grid;place-items:center;width:52px;height:52px;border:1px solid #777057;border-radius:50%;background:#20241e;color:#ffdc81;font-size:21px}.tv-journey-trail button{display:grid;gap:8px;width:100%;padding:24px;text-align:left;border:1px solid #ffffff1e;border-radius:16px;background:linear-gradient(110deg,#252821,#1b1f22);color:#f8f1df;transition:transform .15s,border-color .15s}.tv-journey-trail button b{font-size:19px}.tv-journey-trail button>span:not(.eyebrow){font-size:13px;color:#c5c7be}.tv-journey-trail button em{font-style:normal;font-size:13px;color:#f9d581;margin-top:5px}.tv-journey-trail .current button{border-color:#e0b64d;background:linear-gradient(110deg,#514020,#242820)}.tv-journey-trail .current .tv-trail-marker{background:#ffd466;color:#28231b;box-shadow:0 0 0 7px #ffd46613}.tv-journey-trail .done .tv-trail-marker{color:#7ae0b9;border-color:#559f83}.tv-journey-trail button:not(:disabled):hover{transform:translateX(4px);border-color:#ffe199}.tv-journey-trail .locked{opacity:.55}.tv-journey-trail button:disabled{cursor:not-allowed}.tv-journey-foot{text-align:center;color:#9fa99b;font-size:13px;padding-top:16px}
#studentCampaignMain .tv-student-challenge{max-width:1180px;margin:24px auto;padding:28px;border:1px solid #ffffff18;border-radius:24px;background:#181c20;color:#f5f0e5}
#studentCampaignMain .tv-student-challenge h1{font-size:clamp(28px,4vw,42px);line-height:1.2}#studentCampaignMain .tv-student-challenge p{font-size:15px;line-height:1.7}.tv-student-challenge .tv-quest-card-live,.tv-student-challenge .boss-answer-card{padding:26px;border-radius:18px}.tv-student-challenge textarea{width:100%;min-height:180px;padding:18px!important;box-sizing:border-box;font-size:17px!important;line-height:1.7;resize:vertical}.tv-student-challenge button{min-height:44px;font-size:14px!important}.tv-student-challenge .tv-oracle-live{padding:22px;margin-top:22px}.tv-student-challenge .tv-oracle-input{gap:12px}.tv-student-challenge .tv-oracle-input input{font-size:15px!important;min-height:48px}.tv-student-options label,.tv-boss-options label{padding:18px!important;font-size:16px!important}.tv-quest-review article{padding:24px;margin:20px 0;background:#242922;border:1px solid #53603f;border-radius:18px}.tv-quest-review p{white-space:pre-wrap}
#studentPortal>.tv-student-buzzer{margin:20px auto 0;width:min(1124px,calc(100% - 48px));padding:22px;box-sizing:border-box;border-radius:18px}#studentPortal .tv-student-buzzer h2{font-size:25px}#studentPortal .tv-buzzer-stage{grid-template-columns:180px 1fr;margin-top:16px}#studentPortal .tv-buzz-button{min-height:94px;font-size:34px;border-radius:18px}#studentPortal .tv-buzzer-message{padding:16px}#studentPortal .tv-buzzer-message span{font-size:13px}
/* Teacher roster: one aligned summary, then balanced panels. */
#workspace .student-directory{display:grid!important;grid-template-columns:240px minmax(0,1fr)!important;gap:24px!important;align-items:start;max-width:1440px;margin:auto}
#workspace .directory-list{position:sticky;top:18px;min-height:0!important;height:auto!important;max-height:calc(100vh - 125px);overflow:auto;border-radius:18px}
#workspace .directory-list-head{padding:20px}#workspace .directory-list-head h2{font-size:24px}#workspace .directory-student{padding:15px 16px;gap:12px}#workspace .directory-student b{font-size:14px;overflow-wrap:anywhere}#workspace .directory-student small{font-size:10px;line-height:1.5}#workspace .directory-student .mini-stats{font-size:10px}
#studentDetailPane{min-width:0}#studentDetailPane>.work-head{align-items:center;margin:0 0 20px;gap:16px}#studentDetailPane>.work-head h1{font-size:30px}#studentDetailPane>.work-head p{font-size:12px;line-height:1.5}
#studentDetailPane .dashboard-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;margin:0!important;align-items:start}
#studentDetailPane .panel{padding:24px!important;margin:0!important;border-radius:18px!important;min-width:0}#studentDetailPane .panel h3{font-size:19px;margin:0 0 18px!important}
#studentDetailPane .character-panel{grid-column:1/-1;display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;align-items:center!important;gap:26px!important;min-height:0!important;padding:26px!important}
#studentDetailPane .character-orb{width:150px!important;height:210px!important;min-height:0!important;margin:0!important;border-radius:16px;overflow:hidden}#studentDetailPane .character-orb>div{width:100%!important;height:100%!important;min-height:0!important}#studentDetailPane .character-info{min-width:0}#studentDetailPane .character-info h2{font-size:30px;margin:10px 0}#studentDetailPane .character-info>p{font-size:12px;line-height:1.6}
#studentDetailPane .statline{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px;margin:20px 0 14px}#studentDetailPane .statline>div{padding:13px 12px;min-width:0}#studentDetailPane .statline small{font-size:10px}#studentDetailPane .statline b{font-size:20px;margin-top:4px}
#studentDetailPane .quick-awards{display:flex!important;flex-wrap:wrap;gap:8px}#studentDetailPane .quick-awards button{min-height:40px;padding:10px 14px;font-size:11px;flex:1;white-space:nowrap}
#studentDetailPane .power{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important;padding:14px 0;align-items:center!important}#studentDetailPane .power b{font-size:13px}#studentDetailPane .power small{font-size:11px;line-height:1.6}#studentDetailPane .power>button{grid-column:2;justify-self:start;min-width:130px;min-height:36px;white-space:nowrap;padding:8px 14px;font-size:11px!important;border-radius:9px}
#studentDetailPane .quest-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#studentDetailPane .quest-row span{flex:1;min-width:120px}#studentDetailPane .quest-row b{font-size:12px}#studentDetailPane .quest-row small{font-size:11px;line-height:1.5}
#studentDetailPane .tv-teacher-live-effects{grid-column:1/-1}#studentDetailPane .tv-teacher-live-effects .work-head{gap:16px;align-items:start}#studentDetailPane .tv-teacher-live-effects .work-head p{font-size:12px;line-height:1.5}#studentDetailPane .tv-live-effect-summary{margin:16px 0}#studentDetailPane .tv-power-live-row{grid-template-columns:65px minmax(0,1fr) 36px;gap:12px;padding:14px}#studentDetailPane .tv-power-live-row b{font-size:12px}#studentDetailPane .tv-power-live-row small{font-size:11px;line-height:1.5}#studentDetailPane .tv-learning-feedback{box-sizing:border-box;width:100%;padding:24px;margin:18px 0 0;border-radius:18px}#studentDetailPane .tv-learning-feedback h3{font-size:20px;margin:0 0 16px}
.tv-event-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:24px}.tv-event-tool-grid label{display:block;font-size:13px;font-weight:700;margin-bottom:10px}.tv-event-tool-grid select{width:100%;padding:14px;border:1px solid #d3ccbc;border-radius:12px;background:#fff;font-size:14px}.tv-event-tool-grid p{font-size:14px!important;line-height:1.6}.tv-event-tool-grid button{padding:14px 18px;margin:8px 8px 8px 0;font-size:13px;min-height:46px}.tv-event-reveal{text-align:center;border-radius:20px;padding:26px;background:radial-gradient(circle at top,#a583393f,transparent 70%),#21241f;color:#f3e8c7;overflow:hidden}.tv-event-reveal img{width:90px;height:90px;object-fit:contain;display:block;margin:0 auto 15px;filter:drop-shadow(0 0 20px #ffe39a33)}.tv-event-reveal h2{font:700 25px Georgia,serif;color:#ffe3a0}.tv-event-reveal.rolling img{animation:tvPortalRoll .35s ease-in-out infinite alternate}.tv-event-reveal.rolling{box-shadow:inset 0 0 60px #ffd46644}.tv-event-celebration{position:fixed;bottom:24px;left:24px;width:min(400px,calc(100vw - 48px));box-sizing:border-box;padding:26px;border:1px solid #f3d17b;border-radius:22px;background:radial-gradient(circle at top right,#7d602950,transparent 60%),#1d2622;color:#fff5da;box-shadow:0 20px 70px #0009;z-index:16000;animation:tvEventAppear .5s ease-out;overflow:hidden}.tv-event-celebration.challenge{background:#30232c;border-color:#dd9f8e}.tv-event-celebration h2{font:700 28px Georgia,serif;color:#ffdf91;margin:14px 0}.tv-event-celebration p{font-size:14px;line-height:1.6}.tv-event-celebration strong{display:block;font-size:20px;margin:18px 0 8px}.tv-event-celebration small{font-size:12px;color:#cdd4c6}.tv-event-celebration>button{position:absolute;right:12px;top:10px;z-index:2;background:transparent;border:0;color:#fff;font-size:24px;cursor:pointer}.tv-event-sparks{position:absolute;inset:0;pointer-events:none}.tv-event-sparks i{position:absolute;left:calc(var(--n)*8%);top:-10px;width:5px;height:10px;background:#fadd81;animation:tvEventSpark 2s calc(var(--n)*-.13s) ease-in infinite;opacity:.5}@keyframes tvEventSpark{to{transform:translateY(400px) rotate(240deg);opacity:0}}@keyframes tvPortalRoll{to{transform:scale(1.13) rotate(8deg);filter:drop-shadow(0 0 30px #ffe39a)}}@keyframes tvEventAppear{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
@media(max-width:1100px){#workspace .student-directory{grid-template-columns:200px minmax(0,1fr)!important;gap:18px!important}#studentDetailPane .dashboard-grid{grid-template-columns:1fr!important}#studentDetailPane .character-panel{grid-template-columns:120px minmax(0,1fr)!important;gap:18px!important}#studentDetailPane .character-orb{width:120px!important;height:180px!important}#studentDetailPane .panel{padding:20px!important}.tv-event-tool-grid{grid-template-columns:1fr}}
@media(max-width:720px){#workspace .student-directory{grid-template-columns:1fr!important}#workspace .directory-list{position:relative;top:0;max-height:260px}.tv-journey-hero{padding:24px;gap:18px}.tv-journey-orb{width:86px}.tv-journey-orb b{font-size:24px}.tv-journey-hero h1{font-size:30px}.tv-journey-next{flex-direction:column;align-items:stretch;padding:22px}.tv-journey-trail li{grid-template-columns:36px 1fr;gap:12px}.tv-trail-marker{width:34px;height:34px;font-size:16px}.tv-journey-trail li:not(:last-child):before{left:17px}.tv-journey-trail button{padding:20px}.tv-journey-trail button b{font-size:17px}#studentCampaignMain .tv-journey{padding:18px 12px 40px}#studentCampaignMain .tv-student-challenge{padding:16px;margin:18px 0}.tv-student-challenge .tv-quest-card-live{padding:16px}.tv-student-challenge .tv-quest-actions,.tv-student-challenge .tv-oracle-input{display:flex;flex-direction:column;align-items:stretch}#studentPortal .tv-buzzer-stage{grid-template-columns:100px 1fr}#studentPortal>.tv-student-buzzer{width:calc(100% - 24px);padding:16px}#studentPortal .tv-buzz-button{font-size:23px;min-height:80px}.tv-journey-hero>div:first-child{min-width:0}}
@media(max-width:430px){#studentDetailPane .character-panel{grid-template-columns:1fr!important}#studentDetailPane .character-orb{justify-self:center}#studentDetailPane .statline{gap:6px}.tv-journey-orb{display:none}.tv-student-challenge .tv-game-hud{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.tv-event-celebration,.tv-event-sparks i,.tv-event-reveal.rolling img{animation:none!important}.tv-journey-trail button{transition:none}}
#teacherConsole #studentDetailPane .character-panel{grid-template-columns:220px minmax(0,1fr)!important}


#studentPortal .tv-guardian-portrait .tv-guardian-scene img{height:auto!important;width:100%!important;object-fit:initial!important;object-position:initial!important;border-radius:0!important}
#studentPortal .tv-guardian-portrait .tv-guardian-scene{min-height:0;aspect-ratio:1.6}
@media(max-width:1100px){#teacherConsole #studentDetailPane .character-panel{grid-template-columns:160px minmax(0,1fr)!important}}
@media(max-width:800px){#teacherConsole #studentDetailPane .character-panel{grid-template-columns:1fr!important}}
.tv-guardian-scene img,.tv-guardian-scene.thumb img,#studentPortal .tv-guardian-portrait .tv-guardian-scene img{top:var(--art-top,0%)!important}
/* Keep roster summaries inside the available workspace, including tablet widths. */
#teacherConsole main,#teacherConsole #workspace,#teacherConsole .student-directory,#teacherConsole .student-detail-pane{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#teacherConsole #studentDetailPane .character-panel,#teacherConsole #studentDetailPane .character-info{width:auto!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#teacherConsole #studentDetailPane .character-panel{grid-template-columns:minmax(120px,220px) minmax(0,1fr)!important}
#teacherConsole #studentDetailPane .character-info .statline{width:100%!important;min-width:0!important}
#teacherConsole #studentDetailPane .character-info h2{overflow-wrap:anywhere}
.tv-portrait-frame{display:flex;width:100%;height:100%;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse,#38463a,#15241f);border-radius:14px}
.tv-portrait-art{display:block;width:100%;height:auto;max-height:100%;overflow:hidden;flex:none}
.tv-portrait-frame.compact{border-radius:10px}.tv-portrait-frame.compact .tv-portrait-art{height:100%;width:100%}
#studentPortal .tv-guardian-portrait{aspect-ratio:auto!important;min-height:0!important;padding:0!important;align-self:center}
#studentPortal .tv-guardian-portrait .tv-portrait-frame{height:auto;min-height:180px}
#studentPortal .tv-avatar-choice-art,#studentPortal .tv-avatar-preview-art{display:flex!important;align-items:center;justify-content:center;background:#15241f!important;min-height:0!important;height:auto!important;aspect-ratio:1.5!important;overflow:hidden}
#studentPortal .tv-avatar-preview-card{grid-template-columns:minmax(200px,.75fr) minmax(0,1.25fr)!important;align-items:center!important}
#studentPortal .tv-avatar-choice-art .tv-portrait-art,#studentPortal .tv-avatar-preview-art .tv-portrait-art{height:auto!important;width:100%!important}
#studentPortal .tv-avatar-choice{min-width:0!important}.tv-avatar-onboarding{padding-top:32px!important}
.tv-world-scroll{overflow:auto;border:1px solid #947b36;border-radius:24px;margin:28px 0;background:#15271f}
.tv-world-board{position:relative;isolation:isolate;min-width:760px;overflow:hidden}
.tv-world-board>.tv-map-background{position:absolute;inset:0;z-index:-2}
.tv-world-board>svg{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.tv-world-caption{position:absolute;top:24px;left:28px;max-width:80%;padding:14px 20px;border:1px solid #e7c97855;border-radius:14px;background:#12221ee8;color:#ffedb7;box-shadow:0 5px 22px #0003}
.tv-world-caption span,.tv-world-caption b{display:block}.tv-world-caption span{font-size:9px;letter-spacing:2px}.tv-world-caption b{font:24px Georgia;margin-top:6px}
.tv-world-stop{position:absolute;transform:translate(-50%,-20%);width:150px;display:flex;flex-direction:column;align-items:center;padding:0;border:0;background:transparent;color:white;cursor:pointer;text-align:center}
.tv-world-stop i{display:grid;place-items:center;width:48px;height:48px;border:2px solid #f2d78a;border-radius:50%;background:#283c32;color:#ffe39b;font:bold 20px Georgia;box-shadow:0 4px 12px #0008}
.tv-world-stop b{display:block;margin-top:8px;padding:8px 10px;border-radius:9px;background:#12221eeb;border:1px solid #f8dc9233;font-size:12px;line-height:1.4;max-width:100%;box-shadow:0 4px 14px #0004}
.tv-world-stop small{padding:4px 8px;background:#17231ceb;color:#f2d99b;border-radius:0 0 8px 8px;font-size:10px}.tv-world-stop.current i{background:#ffcf53;color:#283526;box-shadow:0 0 0 8px #ffe49933,0 0 35px #ffd55577}.tv-world-stop.done i{background:#346d54;color:white}.tv-world-stop.locked{filter:saturate(.45);cursor:not-allowed}.tv-world-stop:focus-visible{outline:3px solid #fff5c7;outline-offset:8px;border-radius:15px}.tv-world-stop:not(:disabled):hover i{scale:1.12;transition:scale .2s}
.tv-world-legend{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:10px 18px;background:#12221eeb;color:#ffedb7;border-radius:20px;white-space:nowrap;font-size:12px}
.tv-quest-list{border:1px solid #ffffff20;border-radius:18px;padding:20px}.tv-quest-list>summary{cursor:pointer;font-size:16px;color:#ffdf96}.tv-quest-list .tv-journey-trail{margin-top:24px}
@media(max-width:1100px){#teacherConsole #studentDetailPane .character-panel{grid-template-columns:1fr!important}#teacherConsole #studentDetailPane .statline{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:700px){#studentPortal .tv-avatar-preview-card{grid-template-columns:1fr!important}#studentPortal .tv-avatar-preview-art{max-height:240px}.tv-world-scroll{border-radius:16px}.tv-world-caption{max-width:65%}#teacherConsole #studentDetailPane .statline{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
#studentCampaignMain .tv-world-stop{background:transparent!important;border:0!important;padding:0!important;min-height:0!important;box-shadow:none!important;color:white!important}
#studentCampaignMain .tv-world-stop.locked{opacity:.8!important}
#teacherConsole .tv-roster-photo{background-image:none!important}
#teacherConsole .tv-roster-photo .tv-portrait-art{height:100%!important;width:100%!important}
.tv-portrait-art image{width:revert!important;height:revert!important;max-width:none!important;max-height:none!important}
#teacherConsole .tv-portrait-frame .tv-portrait-art,#studentPortal .tv-portrait-frame .tv-portrait-art,.parent-child-avatar .tv-portrait-art{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important}
#studentPortal .student-home-head{height:auto!important;min-height:0!important;position:static!important;padding:24px!important;margin-bottom:22px!important;gap:20px;align-items:center!important}
#studentPortal .student-home-head h1{font-size:clamp(30px,4vw,46px)!important;line-height:1.15!important;margin:10px 0!important}
#studentPortal .student-home-head p{margin:0!important;line-height:1.6!important}
/* Large collectible Guardian portraits replace the horizontal thumbnail layout. */
#teacherConsole #studentDetailPane .character-panel{grid-template-columns:minmax(260px,42%) minmax(0,1fr)!important;gap:32px!important;align-items:center!important;padding:28px!important}
#teacherConsole #studentDetailPane .character-orb{width:100%!important;height:450px!important;max-width:380px!important;aspect-ratio:3/4!important;border-radius:22px!important;box-shadow:0 18px 45px #0005,0 0 0 1px #d9b96666!important}
#teacherConsole #studentDetailPane .character-orb .tv-portrait-frame{height:100%!important;width:100%!important;border-radius:22px!important;background:radial-gradient(ellipse at 50% 35%,#486044,#11251c 75%)!important}
#teacherConsole #studentDetailPane .statline{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
#teacherConsole #studentDetailPane .statline>div{padding:18px!important;border:1px solid #ffffff0b;border-radius:13px!important}
#teacherConsole #studentDetailPane .statline b{font-size:28px!important}
#teacherConsole #studentDetailPane .character-info h2{font-size:38px!important}
#teacherConsole .directory-student .tv-roster-photo{width:60px!important;height:72px!important;flex-shrink:0!important;border-radius:12px!important}
#teacherConsole .directory-student{grid-template-columns:60px minmax(0,1fr) auto!important;gap:10px!important;padding:14px 12px!important}
#studentPortal .tv-student-dashboard-grid{grid-template-columns:1fr!important}
#studentPortal .tv-guardian-card{grid-template-columns:minmax(280px,380px) minmax(0,1fr)!important;gap:40px!important;padding:30px!important;min-height:510px!important}
#studentPortal .tv-guardian-portrait{width:100%!important;height:480px!important;aspect-ratio:3/4!important;max-width:380px!important;border-radius:24px!important;border:1px solid #d9b96666!important;box-shadow:0 18px 45px #0005!important}
#studentPortal .tv-guardian-portrait .tv-portrait-frame{height:100%!important;min-height:0!important;background:radial-gradient(ellipse at 50% 35%,#486044,#11251c 75%)!important}
#studentPortal .tv-guardian-copy{min-width:0!important}#studentPortal .tv-guardian-copy h2{font-size:clamp(36px,4vw,56px)!important}
#studentPortal .tv-guardian-story{font-size:16px!important;line-height:1.7!important}
#studentPortal .tv-home-side{grid-template-columns:1fr 1fr!important}
#studentPortal .tv-avatar-choice-art{aspect-ratio:3/4!important;height:240px!important;background:#152a20!important}
#studentPortal .tv-avatar-preview-art{aspect-ratio:3/4!important;height:380px!important;max-height:none!important}
#studentPortal .tv-avatar-choice-art .tv-restored-art,#studentPortal .tv-avatar-preview-art .tv-restored-art,.tv-portrait-frame .tv-restored-art{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:0!important;position:static!important}
#teacherConsole .tv-portrait-frame.compact .tv-restored-art{object-fit:cover!important;object-position:50% 20%!important}
#studentPortal .tv-avatar-choice-art svg,#studentPortal .tv-avatar-preview-art svg{width:100%!important;height:100%!important}
@media(max-width:1050px){#teacherConsole #studentDetailPane .character-panel{grid-template-columns:1fr!important}#teacherConsole #studentDetailPane .character-orb{justify-self:center!important;height:440px!important;max-width:330px!important}#studentPortal .tv-guardian-card{grid-template-columns:minmax(240px,320px) minmax(0,1fr)!important;gap:26px!important}#studentPortal .tv-guardian-portrait{height:420px!important}}
@media(max-width:760px){#studentPortal .tv-guardian-card{grid-template-columns:1fr!important;padding:20px!important}#studentPortal .tv-guardian-portrait{height:420px!important;justify-self:center!important;max-width:320px!important}#studentPortal .tv-home-side{grid-template-columns:1fr!important}#teacherConsole #studentDetailPane .character-panel{padding:20px!important}#teacherConsole #studentDetailPane .character-orb{height:400px!important;max-width:300px!important}#studentPortal .tv-avatar-choice-art{height:200px!important}}
.tv-login-export-dialog{width:min(620px,calc(100% - 32px));padding:36px;border:1px solid #ba9c51;border-radius:24px;background:linear-gradient(140deg,#223d30,#12241c);color:#fff5dc;box-shadow:0 30px 100px #0008}.tv-login-export-dialog::backdrop{background:#07150dcc;backdrop-filter:blur(5px)}.tv-login-export-dialog h2{font:700 34px/1.15 Georgia;margin:14px 0}.tv-login-export-dialog>p{font-size:15px;line-height:1.6;color:#c8d5c9}.tv-pdf-export-options{display:grid;gap:12px;margin:24px 0}.tv-pdf-export-options button{padding:22px;border:1px solid #d7b55c;border-radius:14px;background:#f5d27c;color:#18382a;text-align:left;cursor:pointer}.tv-pdf-export-options b,.tv-pdf-export-options small{display:block}.tv-pdf-export-options b{font-size:18px}.tv-pdf-export-options small{font-size:12px;margin-top:6px}.tv-pdf-export-options button:disabled{opacity:.55;cursor:wait}.tv-login-export-dialog [data-export-close]{padding:12px 20px;border:1px solid #789580;border-radius:10px;background:transparent;color:white;cursor:pointer}.tv-pdf-export-status{min-height:24px}

.tv-release-label{display:block;color:#d9c17d;font-size:10px;letter-spacing:.5px;margin:8px 0 12px}
/* Assessment builder: readable controls and a compact, complete preview. */
#workspace .tv-boss-design-grid{align-items:start!important;grid-template-columns:minmax(0,1fr) minmax(360px,1fr)!important;gap:24px!important}
#workspace .tv-boss-design-grid .boss-card{min-height:0!important;height:auto!important;align-self:start!important;display:flex!important;flex-direction:column!important;background:#201f24!important}
#workspace .tv-boss-design-grid #bossImage{position:static!important;width:100%!important;height:340px!important;object-fit:contain!important;background:#17191b!important;opacity:1!important}
#workspace .tv-boss-design-grid .boss-overlay{position:static!important;inset:auto!important;padding:24px!important;background:linear-gradient(130deg,#29262c,#17191b)!important}
#workspace .tv-boss-design-grid .boss-overlay h2{font-size:30px!important;line-height:1.2!important}
#workspace .tv-boss-design-grid .boss-overlay p{font-size:14px!important;line-height:1.6!important}
#workspace .tv-boss-design-grid .boss-stats{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
#workspace .tv-boss-design-grid .boss-stats span{font-size:12px!important;padding:8px!important}
#workspace .tv-boss-publish-form label{font-size:12px!important;letter-spacing:.02em!important}
#workspace .tv-boss-publish-form select,#workspace .tv-boss-publish-form #bossPrompt,#workspace .tv-boss-publish-form input{font-size:14px!important;min-height:46px!important}
#workspace .tv-boss-publish-form .tv-boss-field-help,#workspace .tv-boss-publish-form .grader-note{font-size:12px!important;line-height:1.5!important}
#workspace .tv-rubric-objective header>div{flex:1;min-width:0}
#workspace .tv-rubric-objective label,#workspace .tv-tier-strip label{display:block;font-size:13px;line-height:1.5}
#workspace .tv-rubric-objective input,#workspace .tv-tier-strip input,#workspace .tv-rubric-objective textarea,#workspace .tv-tier-strip textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cfc5b5;border-radius:10px;background:white;color:#28252a;font:14px/1.5 Arial;margin-top:6px}
#workspace .tv-rubric-objective textarea{min-height:145px;resize:vertical}#workspace .tv-tier-strip textarea{min-height:115px;resize:vertical}
#workspace .tv-rubric-level b,#workspace .tv-tier-strip b{font-size:14px}#workspace .tv-rubric-levels{grid-template-columns:repeat(2,minmax(0,1fr))}#workspace .tv-tier-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
.tv-rubric-save-status{padding:14px;border-radius:10px;background:#edf6ef;color:#285b43;font-size:14px}
.tv-rubric-results{display:grid;gap:12px;margin-top:18px}.tv-rubric-results>section{padding:18px;border:1px solid #d9d2c1;border-radius:12px;background:#fffef8}.tv-rubric-results section>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.tv-rubric-results strong{color:#276649}.tv-rubric-results progress{width:100%;height:12px;margin:12px 0;accent-color:#3c8262}.tv-rubric-results p,.tv-rubric-results summary{font-size:14px!important;line-height:1.5!important}.tv-rubric-results .achieved{padding:10px;background:#e9f5e9;border-left:4px solid #368253}.tv-rubric-results summary{cursor:pointer;color:#345d48}
@media(max-width:900px){#workspace .tv-boss-design-grid{grid-template-columns:1fr!important}#workspace .tv-boss-design-grid #bossImage{height:300px!important}}
@media(max-width:560px){#workspace .tv-rubric-levels,#workspace .tv-tier-strip{grid-template-columns:1fr}#workspace .tv-boss-design-grid .boss-overlay h2{font-size:25px!important}}
#workspace .tv-boss-design-grid #tvBossVisual{position:relative!important;inset:auto!important;flex:none!important;width:100%!important;height:340px!important;min-height:340px!important;border-radius:0!important}
#workspace .tv-boss-wizard-nav{position:relative!important;top:auto!important}
@media(max-width:900px){#workspace .tv-boss-design-grid #tvBossVisual{height:300px!important;min-height:300px!important}}
/* Desktop teacher workspace: readable navigation and bounded content columns. */
@media(min-width:1101px){
 #teacherConsole .console:not(.projector){grid-template-columns:248px minmax(0,1fr)!important}
 #teacherConsole .game-nav{padding:24px 16px!important}
 #teacherConsole .game-nav .game-link{font-size:16px!important;line-height:1.35!important;min-height:50px!important;padding:12px!important;gap:12px!important;color:#ece8f0}
 #teacherConsole .game-nav .game-link.active{color:#211b13}
 #teacherConsole .game-nav .game-link i{font-size:20px!important;flex:0 0 24px}
 #teacherConsole .game-nav .nav-label{font-size:11px!important;line-height:1.5!important;color:#bdb3c4!important;margin:22px 12px 10px!important;letter-spacing:.08em!important}
 #teacherConsole #workspace .student-directory{max-width:1480px!important;width:100%!important;margin:0 auto!important;grid-template-columns:260px minmax(0,1fr)!important;gap:24px!important}
 #teacherConsole #studentDetailPane .character-panel{grid-template-columns:330px minmax(0,1fr)!important;gap:28px!important;padding:24px!important}
 #teacherConsole #studentDetailPane .character-orb{width:330px!important;max-width:100%!important;height:440px!important}
 #teacherConsole #studentDetailPane .character-info{align-self:center}
}
#teacherConsole .directory-student b{font-size:16px!important;line-height:1.35!important}
#teacherConsole .directory-student small{font-size:12px!important;line-height:1.5!important}
#teacherConsole .directory-list-head input{font-size:15px!important;min-height:44px}
#teacherConsole .directory-list-head button{font-size:13px!important;min-height:40px}
#teacherConsole #studentDetailPane .character-info>p,#teacherConsole #studentDetailPane .work-head p{font-size:14px!important;line-height:1.5!important}
#teacherConsole #studentDetailPane .statline small{font-size:12px!important}
#teacherConsole #studentDetailPane .quick-awards button,#teacherConsole #studentDetailPane .power button{font-size:13px!important;min-height:42px!important}
#teacherConsole #studentDetailPane .power b,#teacherConsole #studentDetailPane .quest-row b{font-size:15px!important}
#teacherConsole #studentDetailPane .power small,#teacherConsole #studentDetailPane .quest-row small{font-size:13px!important;line-height:1.5!important}
@media(min-width:1101px) and (max-width:1400px){#teacherConsole #workspace .student-directory{grid-template-columns:230px minmax(0,1fr)!important;gap:20px!important}#teacherConsole #studentDetailPane .character-panel{grid-template-columns:1fr!important}#teacherConsole #studentDetailPane .character-orb{justify-self:center!important}}
#teacherConsole #studentDetailPane .side-panel{min-height:0!important}
#teacherConsole #studentDetailPane .power{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important}
#teacherConsole #studentDetailPane .power button{grid-column:3!important;grid-row:1!important;margin:0!important;width:auto!important}
@media(max-width:760px){#teacherConsole #studentDetailPane .power{grid-template-columns:36px minmax(0,1fr)!important}#teacherConsole #studentDetailPane .power button{grid-column:2!important;grid-row:2!important;justify-self:start}}
/* Roster follows the available workspace instead of a centered page width. */
#teacherConsole #workspace:has(>.student-directory){padding:24px!important}
#teacherConsole #workspace .student-directory{width:100%!important;max-width:none!important;margin:0!important;grid-template-columns:clamp(250px,20vw,360px) minmax(0,1fr)!important;gap:24px!important;align-items:start!important}
#teacherConsole .student-directory>.directory-list{position:sticky!important;top:0!important;display:flex!important;flex-direction:column!important;height:calc(100dvh - 118px)!important;max-height:calc(100dvh - 118px)!important;min-height:360px;overflow:hidden!important}
#teacherConsole .directory-list-head{flex:none;padding:20px!important}
#teacherConsole .directory-students{flex:1;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
#teacherConsole .directory-student{width:100%;min-width:0}
#teacherConsole .directory-student>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:1200px) and (min-width:1001px){#teacherConsole #workspace .student-directory{grid-template-columns:250px minmax(0,1fr)!important;gap:20px!important}}
@media(max-width:1000px){
 #teacherConsole #workspace .student-directory{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 #teacherConsole .student-directory>.directory-list{position:relative!important;height:auto!important;max-height:none!important;min-height:0!important}
 #teacherConsole .directory-list-head{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1fr);gap:10px 16px;align-items:center}
 #teacherConsole .directory-list-head .eyebrow{grid-column:1/-1}
 #teacherConsole .directory-list-head h2{margin:0!important}
 #teacherConsole .directory-list-head #directorySearch{margin:0!important;width:100%}
 #teacherConsole .directory-students{display:flex!important;gap:10px;padding:12px;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scrollbar-gutter:auto}
 #teacherConsole .directory-student{flex:0 0 240px;max-width:240px;border:1px solid #e4dccd!important;border-radius:12px;scroll-snap-align:start}
}
@media(max-width:560px){#teacherConsole #workspace:has(>.student-directory){padding:16px!important}#teacherConsole .directory-list-head{display:block!important;padding:16px!important}#teacherConsole .directory-list-head h2{margin:6px 0 12px!important}#teacherConsole .directory-list-head #directorySearch{margin-bottom:10px!important}#teacherConsole .directory-student{flex-basis:220px;max-width:220px}}
/* Boss answers remain legible in every selection state. */
#studentPortal .tv-boss-option{background:#fffdf6!important;color:#202c30!important;border:2px solid #d1d6d2!important;border-radius:14px!important;display:flex!important;gap:14px!important;align-items:center!important;padding:20px!important;cursor:pointer}
#studentPortal .tv-boss-option span{font-family:Arial,sans-serif!important;font-size:18px!important;line-height:1.6!important;font-weight:500!important;color:#202c30!important;opacity:1!important}
#studentPortal .tv-boss-option i{flex:0 0 38px;background:#263b35!important;color:#fff!important;font:700 18px Arial!important;border-radius:10px!important;display:grid;place-items:center;height:38px}
#studentPortal .tv-boss-option input{accent-color:#276b4f;width:20px;height:20px;flex:none}
#studentPortal .tv-boss-option:has(input:checked){background:#e4f4e9!important;border-color:#3c9361!important;box-shadow:0 0 0 2px #3c936133}
#studentPortal .tv-boss-option:focus-within{outline:3px solid #e8b849;outline-offset:3px}
#studentPortal #bossStudentAnswer{background:#fffdf6!important;color:#202c30!important;font:18px/1.6 Arial,sans-serif!important;padding:18px!important;min-height:160px}#studentPortal #bossStudentAnswer::placeholder{color:#626e70!important}
#studentPortal .tv-battle-layout{display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;gap:24px!important;max-width:1280px!important}
#studentPortal .tv-battle-layout>#backFromBoss,#studentPortal .tv-battle-layout>.student-boss-hero{grid-column:1/-1}
#studentPortal .tv-battle-layout>.boss-answer-card{margin:0!important;min-width:0;align-self:start}
.tv-battle-player{align-self:start;padding:20px;border:1px solid #ddbd6355;border-radius:20px;background:#1e2927;color:#faf5e5;min-width:0}
.tv-battle-portrait{height:280px;max-width:210px;margin:0 auto 20px;border:1px solid #d9b663;border-radius:16px;overflow:hidden}.tv-battle-portrait .tv-portrait-frame{height:100%!important}.tv-battle-portrait img{width:100%!important;height:100%!important;object-fit:contain!important}
#studentPortal .tv-battle-player h2{font:700 25px Georgia;margin:10px 0}#studentPortal .tv-battle-player h3{font:700 17px Arial;margin:22px 0 12px}
.tv-battle-vitals{display:flex;gap:12px;flex-wrap:wrap}.tv-battle-vitals span{padding:10px;background:#ffffff0c;border-radius:10px}
.tv-battle-equipment{display:grid;gap:10px}.tv-battle-equipment>div{display:flex;gap:10px;padding:12px;background:#ffffff08;border-radius:10px}.tv-battle-equipment i{font-style:normal;font-size:24px}.tv-battle-equipment b,.tv-battle-equipment small{display:block}.tv-battle-equipment small{font-size:12px;line-height:1.5;color:#cfdbd4;margin-top:6px}
#studentPortal .tv-battle-help,#studentPortal .tv-battle-powers p,.tv-battle-power-status{font:13px/1.5 Arial;color:#cddbd3}.tv-battle-powers{display:grid;gap:10px}.tv-battle-powers article{padding:14px;background:#101c18;border-radius:12px}.tv-battle-powers button{width:100%;min-height:42px;background:#f5cd63!important;color:#183528!important;font-size:14px!important}.tv-battle-powers button:disabled{opacity:.6;cursor:not-allowed}.tv-battle-buffs{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}.tv-battle-buffs span{font-size:12px;background:#285644;padding:7px;border-radius:8px}
@media(max-width:900px){#studentPortal .tv-battle-layout{grid-template-columns:1fr!important}.tv-battle-player{display:block}.tv-battle-portrait{float:left;width:140px;height:187px;margin:0 20px 14px 0}.tv-battle-equipment{clear:both;grid-template-columns:repeat(3,minmax(0,1fr))}.tv-battle-powers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.tv-battle-equipment,.tv-battle-powers{grid-template-columns:1fr}#studentPortal .tv-boss-option{padding:14px!important;gap:10px!important}#studentPortal .tv-boss-option span{font-size:17px!important}.tv-battle-portrait{width:110px;height:147px}}
#studentPortal .tv-battle-layout>.student-boss-hero{min-height:200px!important;padding:24px 28px 24px 220px!important;text-align:left}
#studentPortal .tv-battle-layout .tv-student-boss-portrait{position:absolute;left:20px;top:20px;width:160px;height:160px;margin:0;border-radius:18px;border-width:2px}
#studentPortal .tv-battle-layout .student-boss-hero h1{font-size:30px!important;margin:16px 0!important}
#studentPortal .tv-battle-layout .student-boss-health{max-width:none;margin:16px 0}
#studentPortal .tv-battle-layout>#backFromBoss{justify-self:start;padding:10px 16px;border:1px solid #ffffff33;border-radius:10px;background:#ffffff08;color:#faf5e5}
#studentPortal [data-battle-clue]{margin-top:12px;padding:12px;background:#f5cd63;color:#183528;border:0;border-radius:10px;font:600 14px Arial}
@media(max-width:560px){#studentPortal .tv-battle-layout>.student-boss-hero{padding:18px!important;min-height:0!important}#studentPortal .tv-battle-layout .tv-student-boss-portrait{position:relative;left:auto;top:auto;width:100px;height:100px;float:left;margin:0 14px 12px 0}#studentPortal .tv-battle-layout .student-boss-hero h1{font-size:24px!important}#studentPortal .tv-battle-layout .student-boss-health{clear:both}}
.tv-battle-kit{clear:both;margin-top:18px}.tv-battle-kit>summary{padding:12px 0;color:#f5cd63;font:600 15px Arial;cursor:pointer}.tv-battle-kit>summary:focus-visible{outline:2px solid #f5cd63;outline-offset:3px}

.tv-roster-class-access{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:18px;padding:20px 24px}.tv-roster-class-access code{display:block;margin-top:8px;font:700 22px ui-monospace,monospace;user-select:text;color:#29212c}.tv-roster-class-access button{min-height:44px;padding:10px 18px}

#workspace.tv-roster-access-scene{min-width:0;max-width:100%;box-sizing:border-box}#workspace.tv-roster-access-scene>.work-head{display:block;min-width:0;margin-bottom:20px}#workspace.tv-roster-access-scene>.work-head p{white-space:normal;overflow-wrap:anywhere;line-height:1.5}@media(max-width:720px){#workspace.tv-roster-access-scene{width:100vw;max-width:100vw;padding:20px 16px}.tv-roster-class-access{padding:18px}.tv-roster-access-scene .tv-roster-hero{padding:24px 20px}.tv-roster-access-scene .tv-roster-hero h3{font-size:25px}.tv-roster-access-scene .tv-roster-actions{justify-content:flex-start}.tv-roster-access-scene .tv-roster-row{padding:20px}}
