/* Approved Cub Den visual layout, based on the teacher-provided reference. */
body{background:#020914;padding:0;margin:0}.cub-frame{max-width:1360px;margin:0 auto;background:linear-gradient(180deg,#06111f,#071523);border:5px solid #1685ff;border-radius:18px;box-shadow:0 0 0 2px #0a3f75 inset,0 16px 50px rgba(0,0,0,.45);overflow:hidden}.den-banner{display:grid;grid-template-columns:minmax(0,1fr) 350px;align-items:center;gap:22px;max-width:none;margin:0;padding:14px 24px;border-bottom:12px solid #0d5fb6;background:radial-gradient(circle at 52% 5%,rgba(30,115,255,.14),transparent 42%),#06101c}.banner-brand{display:flex;align-items:center;gap:18px}.banner-brand img{width:205px;height:185px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.4))}.banner-brand h1{font-size:clamp(58px,7vw,96px);line-height:.88;letter-spacing:-.04em;margin:0;font-weight:950;text-shadow:0 4px 0 rgba(0,0,0,.25)}.banner-brand h1 span{color:#1585ff}.banner-brand p{font-size:28px;color:#ffbe18;margin:10px 0 0;font-weight:950;font-style:italic}.promise-card{border:1px solid #4b5d71;border-radius:14px;padding:17px 20px;background:rgba(3,12,22,.88);box-shadow:inset 0 0 24px rgba(0,0,0,.28)}.promise-card h2{color:#ffc123;font-size:18px;margin:0 0 10px}.promise-card p{font-size:12px;line-height:1.4;margin:7px 0;color:#f4f6f8}.den-layout{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:auto}.help-rail{position:static;height:auto;overflow:visible;background:#05111f;border-right:1px solid #1678de;padding:25px 26px 20px}.rail-title{font-size:19px;padding:14px 10px;background:linear-gradient(#0c4f9b,#092f60);border-color:#1481f4}.help-grid{border-color:#1481f4}.help-card{padding:15px 12px;gap:12px;background:#081421}.help-card strong{font-size:16px}.help-card small{font-size:13px}.help-icon{width:48px;height:48px;flex-basis:48px;font-size:21px}.den-main{width:auto;max-width:none;min-width:0}.coach-zone{max-width:none;margin:0;padding:28px 24px 0}.coach-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 10px 18px}.coach-intro h2{font-size:22px;color:#ffbf21}.coach-intro p{font-size:18px;margin-top:6px}.guide-button{display:inline-flex;align-items:center;justify-content:center;border:2px solid #0e7cff;border-radius:28px;color:#58a8ff;text-decoration:none;font-weight:900;font-size:14px;padding:12px 20px;background:#061321;white-space:nowrap}.subject-strip{display:none}.workspace{max-width:none;margin:0;border:1px solid #2f455e;border-radius:15px;background:linear-gradient(180deg,#071523,#06121f);padding:0 0 18px;min-height:520px}.workspace-head,.selected-strip{display:none}.messages{height:205px;padding:24px 20px 4px;overflow:auto}.message{gap:15px}.avatar{width:48px;height:48px;flex-basis:48px;border-radius:12px;font-size:16px}.bubble{max-width:68%;padding:16px 18px;border-radius:10px 16px 16px 16px}.bubble strong{font-size:13px}.bubble p{font-size:15px;line-height:1.55;margin-top:6px}.quick-actions{display:none}.start-cue{margin:0 68px 8px 0;text-align:right;color:#1684ff;font-size:30px;font-weight:950;font-style:italic;transform:rotate(-5deg);white-space:nowrap}.turn-label{margin:0 0 -15px 24px;padding:10px 18px;font-size:13px;border-radius:13px;background:#ffc21e;color:#06101d;box-shadow:0 5px 18px rgba(0,0,0,.32)}.composer{margin:0 22px;min-height:185px;padding:26px 22px;border:4px solid #ffbf21;outline:4px solid #087cff;border-radius:30px;background:#fff;box-shadow:0 0 0 7px rgba(2,12,22,.94),0 0 32px rgba(17,126,255,.32)}.composer textarea{min-height:120px;font-size:22px;color:#152333;background:#fff;padding:8px 4px}.composer textarea::placeholder{color:#b2b5bb}.send-btn{width:64px;height:64px;flex-basis:64px;border-radius:50%;font-size:28px}.ask-note{font-size:16px;margin:18px 18px 4px}.ask-note strong{font-size:17px}.composer-note{font-size:11px;color:#9aa9b8;padding-bottom:0}.success-strip{max-width:none;margin:22px 24px 24px;grid-template-columns:245px repeat(4,1fr);border-color:#1781ee;border-radius:12px}.success-strip>strong{font-size:16px;font-style:italic;background:linear-gradient(90deg,#0d5cb6,#0f74d9)}.success-strip>span{padding:18px 16px;font-size:13px}.success-strip b{font-size:15px}.success-strip small{font-size:11px}.cub-frame footer{display:flex;justify-content:center;gap:24px;align-items:center;padding:16px 20px;border-top:1px solid #115898;background:linear-gradient(90deg,#08204a,#0b2f68,#08204a);font-size:14px}.cub-frame footer strong{color:#fff}.cub-frame footer span{color:#8fa8c7}.learning-library{max-width:1180px;margin:24px auto 40px;border:1px solid #147ef1;border-radius:18px;background:#061523;color:#fff;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.25)}.learning-library>summary{position:relative;cursor:pointer;list-style:none;min-height:116px;padding:24px 74px 24px 120px;display:flex;align-items:center;color:#fff;font-size:clamp(21px,2vw,30px);font-weight:950;letter-spacing:.01em;text-transform:uppercase;background:linear-gradient(110deg,#071829 0%,#082542 55%,#071727 100%);border:3px solid #1685ff;border-radius:16px;box-shadow:0 0 0 2px rgba(16,109,216,.25) inset,0 0 28px rgba(22,133,255,.18);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}.learning-library>summary::-webkit-details-marker{display:none}.learning-library>summary::before{content:"📖";position:absolute;left:28px;top:50%;transform:translateY(-50%);width:68px;height:68px;display:grid;place-items:center;border-radius:50%;font-size:34px;background:radial-gradient(circle at 35% 30%,#27a8ff,#075fd3 65%,#043b8c);border:2px solid #2ab0ff;box-shadow:0 7px 16px rgba(0,0,0,.35),inset 0 0 18px rgba(255,255,255,.16)}.learning-library>summary::after{content:"Explore lessons, guides, and resources to level up your learning.  ›";position:absolute;left:120px;right:28px;bottom:22px;color:#c4d4e4;font-size:14px;font-weight:500;letter-spacing:0;text-transform:none}.learning-library>summary:hover{transform:translateY(-2px);border-color:#53b2ff;background:linear-gradient(110deg,#09203a 0%,#0b3158 55%,#09203a 100%);box-shadow:0 0 0 2px rgba(16,109,216,.28) inset,0 0 34px rgba(22,133,255,.32)}.learning-library>summary:focus-visible{outline:4px solid #ffbf21;outline-offset:4px}.learning-library[open]>summary{border-radius:16px 16px 0 0;border-bottom-color:#0f5fae}.learning-library[open]>summary::after{content:"Learning Library is open. Select a resource below. ⌄"}.library-inner{padding:18px}.library-top{display:flex;justify-content:space-between;gap:14px;align-items:center}.library-top h2{font-size:16px;margin:0}.library-top p{font-size:10px;color:#a7b7c8}.resource-search{display:flex;gap:6px;min-width:270px}.resource-search input{flex:1;border:1px solid #31526f;border-radius:7px;background:#0a1a2a;color:#fff;padding:8px 9px}.primary-btn{border:0;border-radius:7px;background:#1677ff;color:#fff;padding:0 12px;font-weight:800}.resource-filters{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.filter{border:1px solid #31526f;border-radius:7px;background:#0b1b2c;color:#b3c3d4;padding:7px 9px;font-size:10px;font-weight:800}.filter.active{background:#1677ff;color:#fff;border-color:#1677ff}.resource-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media(max-width:1100px){body{padding:0}.cub-frame{border-radius:0;border-left:0;border-right:0}.den-banner{grid-template-columns:1fr 300px}.banner-brand img{width:150px;height:140px}.banner-brand h1{font-size:62px}.banner-brand p{font-size:21px}.den-layout{grid-template-columns:205px minmax(0,1fr)}.help-rail{padding:18px 14px}.help-card strong{font-size:14px}.help-card small{font-size:11px}.coach-intro h2{font-size:18px}.coach-intro p{font-size:14px}.composer{min-height:150px}.composer textarea{font-size:18px;min-height:92px}.success-strip{grid-template-columns:180px repeat(4,1fr)}}
@media(max-width:820px){.cub-frame{border-top-width:4px;border-bottom-width:4px}.den-banner{grid-template-columns:1fr;padding:14px 16px;border-bottom-width:6px}.banner-brand img{width:92px;height:92px}.banner-brand h1{font-size:48px}.banner-brand p{font-size:17px}.promise-card{display:none}.den-layout{display:block}.help-rail{padding:12px 14px;border-right:0;border-bottom:1px solid #147ef1}.rail-title{font-size:15px;border-radius:9px}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);border:0;gap:7px;margin-top:8px}.help-card{border:1px solid #244565!important;border-radius:8px;padding:8px}.help-icon{width:34px;height:34px;flex-basis:34px;font-size:15px}.help-card strong{font-size:12px}.help-card small{font-size:9px}.coach-zone{padding:18px 14px 0}.coach-intro{display:block;text-align:center;padding-bottom:14px}.guide-button{margin-top:10px;font-size:11px;padding:8px 14px}.workspace{min-height:460px}.messages{height:190px;padding:18px 14px 4px}.bubble{max-width:82%}.bubble p{font-size:13px}.start-cue{text-align:left;margin:3px 18px 8px;font-size:22px;transform:none}.composer{margin:0 14px;min-height:130px;padding:16px;border-radius:22px}.composer textarea{font-size:16px;min-height:78px}.send-btn{width:50px;height:50px;flex-basis:50px}.success-strip{margin:18px 14px;grid-template-columns:1fr 1fr}.success-strip>strong{grid-column:1/-1;padding:12px}.learning-library{margin:16px 14px 28px}.learning-library>summary{min-height:102px;padding:20px 54px 20px 92px;font-size:19px}.learning-library>summary::before{left:18px;width:56px;height:56px;font-size:27px}.learning-library>summary::after{left:92px;right:16px;bottom:18px;font-size:12px}.resource-results{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.banner-brand img{width:70px;height:70px}.banner-brand h1{font-size:38px}.banner-brand p{font-size:14px}.help-grid{grid-template-columns:repeat(2,1fr)}.coach-intro h2{font-size:15px}.coach-intro p{font-size:12px}.messages{height:210px}.avatar{width:38px;height:38px;flex-basis:38px}.bubble{max-width:86%;padding:12px}.bubble p{font-size:12px}.turn-label{margin-left:14px}.composer{margin:0 10px;border-width:3px;outline-width:3px}.composer textarea{font-size:15px}.ask-note{font-size:12px}.ask-note strong{font-size:13px}.success-strip{grid-template-columns:1fr}.success-strip>strong{grid-column:auto}.resource-results{grid-template-columns:1fr}.library-top{display:block}.resource-search{min-width:0;margin-top:10px}.learning-library>summary{min-height:94px;padding:18px 44px 18px 76px;font-size:16px;line-height:1.08}.learning-library>summary::before{left:12px;width:48px;height:48px;font-size:23px}.learning-library>summary::after{left:76px;right:12px;bottom:15px;font-size:10px;line-height:1.25}}

/* Learning Library clarity pass for classroom displays */
.library-inner{padding:28px}.library-top{gap:24px;align-items:flex-start}.library-top h2{font-size:clamp(22px,2vw,28px);line-height:1.15;color:#fff}.library-top p{margin-top:7px;font-size:15px;line-height:1.45;color:#c2d1e1}.resource-search{min-width:360px;gap:10px}.resource-search input{min-height:46px;padding:11px 14px;font-size:14px;border-width:2px}.primary-btn{min-height:46px;padding:0 19px;font-size:14px;border:2px solid #3c9cff}.resource-filters{gap:9px;margin:20px 0}.filter{min-height:40px;padding:9px 14px;font-size:13px;border-width:2px}.resource-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.resource-section-title{padding:14px 2px 9px;margin-top:3px}.resource-section-title strong{font-size:18px}.resource-section-title span{font-size:12px;line-height:1.4}.resource-item{min-height:182px;padding:17px;border-width:2px;border-radius:12px}.resource-top{gap:10px}.resource-emoji{font-size:30px}.resource-type{font-size:9px;line-height:1.3;letter-spacing:.06em}.resource-item strong{font-size:16px;line-height:1.25;margin-top:12px}.resource-item span{font-size:12.5px;line-height:1.5;margin-top:7px;color:#c0cfdf}.resource-item em{font-size:10px;margin-top:13px;letter-spacing:.03em}.video-duration{font-size:10px;padding:5px 8px;margin-top:9px}.empty{padding:30px;font-size:14px}.learning-library>summary::after{font-size:15px;line-height:1.35}
@media(max-width:1000px){.library-inner{padding:22px}.resource-results{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-search{min-width:310px}.resource-item{min-height:175px}}
@media(max-width:700px){.library-inner{padding:18px}.library-top{display:block}.library-top h2{font-size:22px}.library-top p{font-size:14px}.resource-search{min-width:0;width:100%;margin-top:15px}.resource-results{grid-template-columns:1fr}.resource-item{min-height:0}.resource-section-title{align-items:flex-start;flex-direction:column}.resource-section-title span{text-align:left}.learning-library>summary::after{font-size:11px}}


/* Cub Coach guided starter choices */
.coach-intro>div{min-width:0}.coach-starters{display:flex;gap:11px;flex-wrap:wrap;margin-top:15px}.coach-starter{min-height:44px;padding:10px 15px;border:2px solid #2877bd;border-radius:999px;background:#0a2036;color:#fff;font-size:14px;font-weight:900;line-height:1.2;box-shadow:0 5px 14px rgba(0,0,0,.2)}.coach-starter:hover,.coach-starter:focus-visible{transform:translateY(-1px);outline:3px solid rgba(255,191,33,.28);outline-offset:2px}.visual-starter{border-color:#31a0ff;color:#bfe2ff}.video-starter{border-color:#ffbf21;color:#ffe18a;background:#2b2109}@media(max-width:820px){.coach-starters{justify-content:center}.coach-starter{font-size:13px}}@media(max-width:520px){.coach-starters{display:grid}.coach-starter{width:100%;font-size:12px}}


/* High-clarity controls for classroom displays */
.coach-starter{min-height:50px;padding:12px 19px;font-family:Arial,"Segoe UI",sans-serif;font-size:16px;font-weight:800;letter-spacing:0;text-shadow:none;-webkit-font-smoothing:antialiased}.visual-starter{color:#fff;background:#0b3155;border-color:#2fa5ff}.video-starter{color:#fff1ad;background:#332707;border-color:#ffc21c}.speech-controls{gap:9px;margin-top:12px;padding-top:11px}.speech-controls button{min-height:34px;padding:7px 12px;border-width:2px;border-radius:8px;background:#0b2238;color:#fff;font-family:Arial,"Segoe UI",sans-serif;font-size:12px;font-weight:800;letter-spacing:0;text-shadow:none;-webkit-font-smoothing:antialiased}.speech-controls button:disabled{opacity:.7;color:#b8c8d8;background:#0a1b2c;border-color:#38556f}.speech-controls.speaking [data-speech-action="play"]{color:#fff}.speech-controls.paused [data-speech-action="pause"]{color:#04101f}@media(max-width:820px){.coach-starter{font-size:15px}}@media(max-width:520px){.coach-starter{font-size:14px}.speech-controls button{font-size:12px;padding:7px 10px}}
