:root {
  --navy:#18324a; --ink:#203044; --cream:#fffaf0; --paper:#ffffff;
  --yellow:#ffd166; --teal:#5cc8be; --coral:#ff7b72; --blue:#72a7ff;
  --purple:#9b7ede; --green:#7bc47f; --muted:#64748b; --line:#dce5ec;
  font-family: Inter, ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink); background:var(--cream); font-size:16px;
}
*{box-sizing:border-box} body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% 0%,#fff3ca 0,transparent 28%),var(--cream)}
[hidden]{display:none!important}
button{font:inherit;color:inherit}button:focus-visible,[contenteditable]:focus-visible{outline:4px solid #f5b700;outline-offset:3px}
.topbar{min-height:76px;padding:10px 22px;display:flex;align-items:center;gap:20px;background:var(--navy);color:white;box-shadow:0 5px 18px #18324a33;position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;white-space:nowrap}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--yellow);color:var(--navy);font-size:1.35rem;box-shadow:inset 0 -3px 0 #d9a51b}
.tabs{display:flex;align-self:stretch;gap:4px;overflow-x:auto;flex:1}.tab{border:0;background:transparent;color:#dfeaf3;padding:0 15px;font-weight:700;border-radius:12px;cursor:pointer;white-space:nowrap}.tab:hover,.tab.active{background:#ffffff18;color:white}.tab.active{box-shadow:inset 0 -4px 0 var(--yellow)}
.settings-button{background:var(--yellow);border:0;border-radius:12px;padding:11px 15px;font-weight:900;cursor:pointer;white-space:nowrap}
main{width:min(1500px,100%);margin:auto;padding:28px clamp(18px,3vw,44px) 42px}.view{display:none}.view.active{display:block}
.rotation-header{display:grid;grid-template-columns:80px 1fr auto;align-items:center;gap:20px}.rotation-heading{text-align:center}.eyebrow{font-size:.82rem;letter-spacing:.16em;font-weight:900;color:#587083;margin:0 0 6px}.rotation-heading h1,.page-heading h1{font-size:clamp(2rem,4vw,3.8rem);line-height:1;margin:0;color:var(--navy)}.rotation-time{font-size:1.35rem;font-weight:800;color:var(--muted);margin:9px 0 0}
.round-button,.next-button{border:0;cursor:pointer;box-shadow:0 5px 0 #18324a25;transition:transform .15s}.round-button:active,.next-button:active{transform:translateY(3px);box-shadow:0 2px 0 #18324a25}.round-button{width:64px;height:64px;border-radius:50%;background:white;font-size:2rem}.next-button{background:var(--navy);color:white;border-radius:18px;padding:18px 22px;font-size:1.1rem;font-weight:900}.next-button span{font-size:1.4rem;margin-left:8px}
.progress{height:9px;background:#dfe8ee;border-radius:999px;margin:22px auto 26px;max-width:760px;overflow:hidden}.progress span{display:block;height:100%;width:16.66%;background:linear-gradient(90deg,var(--teal),#23a99d);border-radius:inherit;transition:width .35s ease}
.center-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.center-card{background:white;border:3px solid transparent;border-radius:24px;min-height:215px;padding:20px;box-shadow:0 8px 24px #28445718;position:relative;overflow:hidden}.center-card::before{content:"";position:absolute;inset:0 0 auto;height:9px;background:var(--accent)}.center-title{display:flex;align-items:center;gap:13px;margin-bottom:18px}.center-icon{font-size:2.25rem}.center-title h2{margin:0;font-size:1.55rem;color:var(--navy)}.center-title p{margin:2px 0 0;color:var(--muted);font-weight:700}.students{display:flex;gap:10px;flex-wrap:wrap}.student-pill{background:color-mix(in srgb,var(--accent) 20%,white);border:2px solid color-mix(in srgb,var(--accent) 45%,white);border-radius:999px;padding:10px 15px;font-weight:900;font-size:1.05rem}.solo-badge{display:inline-block;background:#fff1f0;color:#a8322a;border-radius:999px;padding:5px 9px;font-size:.76rem;font-weight:900;margin-left:7px}.empty-group{color:var(--muted);font-style:italic}.keyboard-tip{text-align:center;color:var(--muted);font-weight:700;margin:22px 0 0}kbd{background:white;border:1px solid #ccd6df;border-bottom-width:3px;border-radius:7px;padding:3px 8px;color:var(--navy)}
.page-heading{text-align:center;margin:10px 0 30px}.page-heading.compact{margin-bottom:22px}.big-date{font-size:1.45rem;font-weight:800;color:var(--muted)}.editable{border-bottom:3px dashed #b7c5d0;min-width:80px;cursor:text}.edit-tip{text-align:center;color:var(--muted);font-weight:700}
.meeting-header{display:grid;grid-template-columns:80px 1fr auto;align-items:center;gap:20px}.meeting-count{font-size:1.15rem;font-weight:850;color:var(--muted);margin:9px 0 0}.meeting-progress{display:flex;gap:7px;justify-content:center;margin:20px auto}.meeting-progress button{width:13px;height:13px;border:0;border-radius:50%;padding:0;background:#cbd7df;cursor:pointer}.meeting-progress button.done{background:#88d8d0}.meeting-progress button.active{background:var(--navy);transform:scale(1.4)}
.meeting-stage{max-width:1180px;min-height:480px;margin:auto;background:white;border-radius:28px;box-shadow:0 10px 32px #2844571c;padding:clamp(22px,4vw,52px);display:grid;place-items:center}.stage-content{text-align:center;width:100%}.stage-icon{display:block;font-size:clamp(4rem,9vw,7rem);line-height:1}.stage-content h2{font-size:clamp(2.2rem,5vw,4.4rem);line-height:1.05;color:var(--navy);margin:16px 0}.stage-prompt{font-size:clamp(1.1rem,2vw,1.55rem);font-weight:750;color:var(--muted);margin:8px auto 26px;max-width:800px}.song-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.song-button,.link-button,.counter-button{border:0;border-radius:16px;padding:16px 22px;font-weight:900;cursor:pointer}.song-button{background:var(--coral);color:white;font-size:1.2rem;box-shadow:0 5px 0 #b74d47}.link-button{background:#e9f0f4;color:var(--navy)}
.attendance-board{display:grid;grid-template-columns:1fr 1fr;gap:22px;width:100%;text-align:left}.attendance-side{min-height:340px;border-radius:24px;padding:22px;background:#eef5fb;border:3px dashed #9bbbd1}.attendance-side.school{background:#ebfaf4;border-color:#7acbab}.attendance-side h3{text-align:center;font-size:1.65rem;margin:0 0 18px;color:var(--navy)}.cloud-list{display:flex;flex-wrap:wrap;gap:12px;align-content:flex-start}.student-cloud{border:2px solid #b9cad7;background:white;border-radius:50% 50% 44% 44%;padding:13px 18px;font-weight:900;font-size:1.05rem;cursor:pointer;box-shadow:0 4px 0 #b9cad777}.student-cloud::before{content:attr(data-initial);display:inline-grid;place-items:center;width:31px;height:31px;border-radius:50%;margin-right:8px;background:var(--yellow);color:var(--navy)}
.calendar-wrap{width:min(780px,100%)}.calendar-toolbar{display:flex;justify-content:center;align-items:center;gap:22px;margin-bottom:16px}.calendar-toolbar h2{font-size:2.2rem;margin:0;min-width:300px}.calendar-toolbar button{border:0;background:#edf3f6;border-radius:50%;width:48px;height:48px;font-size:1.4rem;cursor:pointer}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.calendar-grid strong{padding:7px;color:var(--muted)}.calendar-day{min-height:58px;display:grid;place-items:center;border-radius:13px;background:#f4f7f9;font-size:1.2rem;font-weight:850}.calendar-day.today{background:var(--yellow);color:var(--navy);box-shadow:0 0 0 4px #ffe8a3}.calendar-day.empty{background:transparent}
.days-number{font-size:clamp(7rem,18vw,14rem);font-weight:950;color:var(--navy);line-height:.9;margin:20px}.counter-controls{display:flex;justify-content:center;gap:16px}.counter-button{width:68px;height:68px;border-radius:50%;font-size:2rem;background:var(--teal);color:var(--navy)}.date-display{display:flex;gap:18px;justify-content:center;align-items:stretch;flex-wrap:wrap}.date-part{background:#f0f6f8;border-radius:22px;padding:22px 30px;font-size:clamp(1.8rem,5vw,4rem);font-weight:950;color:var(--navy)}
.weather-choices{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:20px}.weather-choice{border:3px solid transparent;border-radius:20px;background:#f2f6f8;padding:15px 20px;font-size:2.7rem;cursor:pointer}.weather-choice span{display:block;font-size:1rem;font-weight:900}.weather-choice.selected{border-color:var(--navy);background:#fff3c7;transform:translateY(-3px)}
.focus-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;width:100%}.focus-tile{border-radius:20px;padding:20px;background:#eef8f7}.focus-tile:nth-child(2){background:#fff3c7}.focus-tile:nth-child(3){background:#f4edff}.focus-tile:nth-child(4){background:#ffeceb}.focus-tile:nth-child(5){background:#eaf2ff}.focus-tile:nth-child(6){background:#eef9e9}.focus-tile h3{margin:0;color:var(--muted);font-size:1rem;text-transform:uppercase;letter-spacing:.08em}.focus-tile p{font-size:clamp(1.55rem,3vw,2.7rem);font-weight:950;margin:10px 0 0;color:var(--navy)}
.schedule-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 16px;max-width:1100px;margin:auto}.schedule-list div{display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center;background:white;border-radius:15px;padding:13px 16px;box-shadow:0 3px 12px #28445712}.schedule-list .highlight{background:#e8f8f6;border:2px solid #8bdad2}.schedule-list time{font-weight:900;color:var(--navy)}.schedule-list span{font-weight:750}
.story-board{display:grid;grid-template-columns:1fr 1.4fr;gap:22px;max-width:1100px;margin:auto}.book-card,.question-stack article{background:white;border-radius:24px;box-shadow:0 7px 22px #28445716}.book-card{display:grid;place-items:center;text-align:center;padding:40px;min-height:420px;border:4px solid var(--yellow)}.book-card>span{font-size:6rem}.book-card h2{font-size:2rem;margin:12px}.book-card p{font-size:1.3rem;font-weight:800}.question-stack{display:grid;grid-template-columns:1fr 1fr;gap:18px}.question-stack article{padding:28px;border-left:8px solid var(--teal)}.question-stack article:nth-child(2){border-color:var(--coral)}.question-stack article:nth-child(3){border-color:var(--blue)}.question-stack article:nth-child(4){border-color:var(--purple)}.question-stack strong{font-size:1.45rem;color:var(--navy)}.question-stack p{font-size:1.15rem;font-weight:700}
.story-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.media-card{position:relative;background:white;border-radius:25px;min-height:300px;padding:28px;box-shadow:0 8px 24px #28445718;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;border-bottom:8px solid var(--teal)}.media-card:nth-child(2){border-color:var(--green)}.media-card:nth-child(3){border-color:var(--blue)}.story-number{position:absolute;top:16px;left:17px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:white;font-weight:950}.media-icon{font-size:4.5rem}.media-card h2{font-size:1.7rem;color:var(--navy);margin:13px 0 22px;min-width:65%}.media-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.story-prompts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.story-prompts span{background:#eef5f7;border-radius:14px;padding:13px;text-align:center;font-weight:850;color:var(--navy)}
.transition-layout{display:grid;grid-template-columns:1fr 1.25fr;gap:20px;max-width:1120px;margin:auto}.timer-card{background:var(--navy);color:white;border-radius:28px;padding:30px;text-align:center;box-shadow:0 9px 24px #18324a33}.timer-label{font-size:1.25rem;font-weight:850;margin:0}.timer-display{font-variant-numeric:tabular-nums;font-size:clamp(5rem,11vw,8rem);font-weight:950;line-height:1.15;color:var(--yellow)}.timer-actions{display:flex;justify-content:center;gap:12px}.transition-steps{display:grid;gap:13px}.transition-steps article{display:flex;align-items:center;gap:18px;background:white;border-radius:19px;padding:18px 22px;box-shadow:0 5px 16px #28445715}.transition-steps span{width:47px;height:47px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);font-size:1.35rem;font-weight:950;color:var(--navy)}.transition-steps strong{font-size:1.35rem;color:var(--navy)}.transition-song{grid-column:1/-1;min-height:230px;border-color:var(--purple)}.transition-song p{font-weight:750;color:var(--muted);margin-top:-8px}
.movement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1000px;margin:auto}.movement-grid button{border:0;border-radius:26px;background:white;min-height:180px;box-shadow:0 8px 0 #18324a18;font-size:4rem;cursor:pointer}.movement-grid button:nth-child(2n){background:#e9f8f6}.movement-grid button:nth-child(3n){background:#fff0ef}.movement-grid button span{display:block;font-size:1.35rem;font-weight:900;margin-top:12px}
dialog{border:0;border-radius:26px;padding:0;width:min(720px,92vw);max-height:88vh;box-shadow:0 24px 80px #0f203066}dialog::backdrop{background:#10283acc;backdrop-filter:blur(4px)}.dialog-card{padding:26px}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.dialog-heading h2{font-size:2rem;margin:0;color:var(--navy)}.close-button{border:0;background:#edf2f5;border-radius:50%;width:44px;height:44px;font-size:1.8rem;cursor:pointer}.dialog-copy{color:var(--muted);font-weight:650}.student-editor{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin:20px 0}.student-row{display:flex;justify-content:space-between;align-items:center;background:#f5f8fa;border-radius:12px;padding:10px 12px;font-weight:800}.student-row select{font:inherit;border:2px solid #c9d5dd;border-radius:9px;padding:7px;background:white}.safety-note{background:#fff5d7;border-left:6px solid var(--yellow);border-radius:10px;padding:12px 14px;line-height:1.45}.dialog-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.secondary-button,.save-button{border:0;border-radius:12px;padding:12px 18px;font-weight:900;cursor:pointer}.secondary-button{background:#edf2f5}.save-button{background:var(--navy);color:white;min-width:120px}
@media(max-width:1000px){.topbar{flex-wrap:wrap}.brand{flex:1}.tabs{order:3;width:100%;height:50px}.center-grid{grid-template-columns:repeat(2,1fr)}.schedule-list{grid-template-columns:1fr}.story-slots{grid-template-columns:1fr}.media-card{min-height:220px}.story-prompts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){main{padding:20px 14px}.rotation-header,.meeting-header{grid-template-columns:50px 1fr 50px}.round-button{width:48px;height:48px}.next-button{width:50px;height:50px;padding:0;font-size:0;border-radius:50%}.next-button span{font-size:1.5rem;margin:0}.center-grid,.movement-grid,.focus-grid{grid-template-columns:1fr}.center-card{min-height:170px}.story-board,.transition-layout{grid-template-columns:1fr}.question-stack{grid-template-columns:1fr}.student-editor{grid-template-columns:1fr}.keyboard-tip{display:none}.settings-button{padding:9px 12px}.brand{font-size:.92rem}.schedule-list div{grid-template-columns:110px 1fr}.tab{padding:0 12px}.meeting-stage{min-height:520px}.attendance-board{grid-template-columns:1fr}.attendance-side{min-height:230px}.calendar-toolbar h2{font-size:1.45rem;min-width:180px}.calendar-day{min-height:40px}.date-part{width:100%}.story-prompts{grid-template-columns:1fr}.timer-display{font-size:5.5rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.staff-photo{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid var(--accent);background:white}.center-editor-row{grid-template-columns:1.1fr 1fr auto auto}
.center-transition{grid-column:1/-1;min-height:470px;background:var(--navy);color:white;border-radius:30px;padding:34px;display:grid;grid-template-columns:1fr 1.4fr;gap:28px;align-items:center;text-align:center;box-shadow:0 12px 34px #18324a40}.center-transition .timer-display{color:var(--yellow)}.center-transition h2{font-size:clamp(2.2rem,5vw,4.3rem);margin:0 0 14px}.center-transition .transition-steps article{color:var(--ink);text-align:left}.center-transition .transition-song-cue{font-size:1.15rem;font-weight:750;color:#dce8ef}.center-transition .next-center{font-size:1.2rem;font-weight:900;color:var(--yellow);margin-top:18px}
.calendar-day{position:relative;border:0;cursor:pointer;color:var(--ink)}.calendar-day.empty{cursor:default}.calendar-day.marked::after{content:"";position:absolute;inset:5px;border:4px solid var(--coral);border-radius:50%;pointer-events:none}.calendar-day.marked::before{content:"★";position:absolute;right:1px;top:-10px;color:var(--coral);font-size:1.15rem;z-index:1}
dialog{width:min(760px,92vw)}.dialog-card{max-height:88vh;overflow:auto}.editor-section-title{color:var(--navy);margin:24px 0 4px}.center-editor{display:grid;gap:10px;margin:14px 0 24px}.center-editor-row{display:grid;grid-template-columns:1.2fr 1fr auto;gap:10px;align-items:center;background:#f5f8fa;border-radius:13px;padding:11px}.center-editor-row strong{color:var(--navy)}.center-editor-row input[type="text"]{width:100%;font:inherit;border:2px solid #c9d5dd;border-radius:9px;padding:8px}.photo-label{background:#e6eef3;border-radius:9px;padding:9px 11px;font-weight:850;cursor:pointer;white-space:nowrap}.photo-label input{display:none}
@media(max-width:650px){.center-transition{grid-template-columns:1fr;padding:22px}.center-editor-row{grid-template-columns:1fr}}
.rotation-timer-panel{width:max-content;max-width:100%;margin:0 auto 22px;display:flex;align-items:center;gap:12px;background:white;border-radius:18px;padding:10px 12px 10px 18px;box-shadow:0 6px 20px #28445716}.rotation-timer-panel>span{font-weight:850;color:var(--muted)}.rotation-timer-panel strong{font-size:2rem;font-variant-numeric:tabular-nums;color:var(--navy);min-width:98px}.rotation-timer-panel.warning{background:#fff0ef;box-shadow:0 0 0 4px #ff7b7277}.rotation-timer-panel.warning strong{color:#b5332b}.rotation-timer-panel .song-button,.rotation-timer-panel .link-button{padding:10px 15px}
.video-dialog{width:min(1000px,94vw);max-height:92vh;background:#071a29}.video-shell{padding:18px}.video-heading{display:flex;align-items:center;justify-content:space-between;color:white;margin-bottom:14px}.video-heading h2{margin:0;font-size:1.5rem}.video-frame-wrap{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:16px;overflow:hidden}.video-frame-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.video-message{color:white;text-align:center;font-weight:750}.video-dialog .close-button{background:white;color:var(--navy)}
@media(max-width:650px){.rotation-timer-panel{width:100%;flex-wrap:wrap;justify-content:center}.rotation-timer-panel strong{font-size:1.6rem}.video-shell{padding:10px}}
