.classroom-workspace{border:1px solid #dfe7f3;border-radius:15px;background:#fff;overflow:clip}.classroom-commandbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 24px;border-bottom:1px solid #e6ecf5;background:#fff}.classroom-context{display:flex;align-items:center;gap:12px;min-width:0}.classroom-context-icon{width:37px;height:37px;background:#eef4ff;border-radius:10px;display:grid;place-items:center;color:#5780c3;flex:none}.classroom-context-icon svg{width:21px;height:21px}.classroom-context>label{font-size:10px;display:flex;flex-direction:column;gap:5px;color:#8b9bb1}.classroom-context select{font:inherit;font-size:16px;font-weight:600;background:#fff;border:0;color:#385579;padding:0 23px 0 0;max-width:200px;cursor:pointer}.classroom-connection{font-size:10px;display:flex;align-items:center;gap:5px;white-space:nowrap;color:#97a6ba}.classroom-command-actions{display:flex;gap:9px;align-items:center}.classroom-command-actions>.button{font-size:12px;min-height:36px}.classroom-save-state{font-size:10px;color:#91a2b9;margin-right:7px;white-space:nowrap}.classroom-save-state.unsaved{color:#b08249}.classroom-modebar{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;background:#f9fbff;padding:13px 24px;border-bottom:1px solid #e6edf7}.classroom-modebar :is(button,a){display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:9px;padding:12px 16px;font-size:13px;font-weight:600;background:transparent;color:#7186a5;cursor:pointer;white-space:nowrap;text-decoration:none;font-family:inherit}.classroom-modebar :is(button,a) svg{width:18px;height:18px}.classroom-modebar :is(button,a) small{font-size:10px;font-weight:400;color:#a0aec2;margin-left:8px}.classroom-modebar :is(button,a)[aria-selected=true]{color:#3867b4;background:#fff;border-color:#d9e4f5;box-shadow:0 2px 5px #36598406}.classroom-modebar>span{margin-left:auto;align-self:center;font-size:10px;color:#a5b1c3}.classroom-edit-shell{display:grid;grid-template-columns:163px minmax(0,1fr);height:max(570px,calc(100dvh - 330px));background:#fff}.classroom-section-nav{padding:25px 14px;background:#fcfdff;border-right:1px solid #e8edf5;display:flex;flex-direction:column;gap:5px}.classroom-section-nav>span{font-size:10px;color:#a0aec2;margin:0 10px 10px}.classroom-section-nav>button{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 12px;border:1px solid transparent;background:transparent;color:#7b90ae;border-radius:8px;cursor:pointer;font-size:12px;text-align:left}.classroom-section-nav>button svg{width:13px;height:13px;color:#b1bfd1}.classroom-section-nav>button[aria-current=page]{color:#416fba;background:#edf4ff;border-color:#e2ebfb;font-weight:600}.classroom-section-nav>p{font-size:10px;color:#a1aec1;line-height:1.9;border-top:1px solid #e8edf5;padding:18px 10px 0;margin-top:auto}.classroom-form-area{display:flex;flex-direction:column;min-width:0;min-height:0}.classroom-form-area>header{padding:24px 28px 19px;border-bottom:1px solid #edf1f7;flex:none}.classroom-form-area>header h2{font-size:17px;font-weight:600;color:#385579;margin:0}.classroom-form-area>header p{font-size:11px;color:#92a3bc;margin:7px 0 0}.classroom-form-area iframe{border:0;width:100%;flex:1;min-height:0;background:#fff}.classroom-layout-note{display:flex;justify-content:space-between;gap:20px;padding:15px 24px;font-size:10px;line-height:1.7;color:#8a9db8;border-bottom:1px solid #e7edf6}.classroom-layout-note>span:first-child{display:flex;align-items:center;gap:8px;color:#6683a9}.classroom-layout-note svg{width:15px;height:15px;flex:none}.classroom-layout-frame{display:block;border:0;width:100%;height:max(620px,calc(100dvh - 345px));background:#f1f5fa}.classroom-preview-dialog{width:min(1380px,calc(100vw - 36px));max-width:none;height:min(850px,calc(100dvh - 36px));padding:0;overflow:hidden}.classroom-preview-dialog[open]{display:flex;flex-direction:column}.classroom-preview-dialog>header{padding:15px 23px;border-bottom:1px solid #e3eaf6;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff}.classroom-preview-dialog strong{font-size:14px;color:#516e96}.classroom-preview-dialog small{display:block;font-size:10px;color:#a0afc4;margin-top:5px}.classroom-preview-dialog iframe{border:0;flex:1;min-height:0;width:100%;background:#eef3fa}.classroom-leave-dialog .modal-footer{gap:12px}.classroom-leave-dialog .text-button{font-size:11px;color:#ad8b6b}.classroom-command-actions button:disabled{opacity:.5;cursor:default}.classroom-leave-dialog [role=status]{color:#af765e;font-size:12px;margin-top:10px}
@media(max-width:1080px){.classroom-commandbar{flex-wrap:wrap}.classroom-command-actions{margin-left:auto}.classroom-modebar{gap:5px}.classroom-modebar :is(button,a){padding:11px 12px}.classroom-modebar :is(button,a) small{display:none}.classroom-modebar>span{font-size:9px}.classroom-edit-shell{grid-template-columns:139px minmax(0,1fr)}}
@media(max-width:760px){.classroom-commandbar{padding:15px;gap:16px}.classroom-context{gap:10px}.classroom-context select{font-size:14px}.classroom-command-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}.classroom-command-actions>.button{font-size:11px;min-height:35px}.classroom-save-state{margin-right:auto;font-size:9px}.classroom-modebar{padding:10px 12px;gap:5px}.classroom-modebar :is(button,a){font-size:12px;padding:10px;gap:7px}.classroom-modebar>span{display:none}.classroom-edit-shell{display:flex;flex-direction:column;height:720px}.classroom-section-nav{flex-direction:row;flex:none;overflow:auto;padding:10px;border-right:0;border-bottom:1px solid #e8edf5;gap:4px;max-width:100%}.classroom-section-nav>span,.classroom-section-nav>p,.classroom-section-nav svg{display:none}.classroom-section-nav>button{white-space:nowrap;padding:10px 12px;font-size:12px}.classroom-form-area{flex:1}.classroom-form-area>header{padding:20px 16px 15px}.classroom-form-area>header h2{font-size:16px}.classroom-layout-note{padding:13px 16px}.classroom-layout-note>span:last-child{display:none}.classroom-layout-frame{height:640px}.classroom-preview-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.classroom-preview-dialog>header{padding:12px 15px}.classroom-leave-dialog .modal-footer{flex-wrap:wrap;justify-content:flex-end}.classroom-leave-dialog .modal-footer>button{margin-right:auto}}

/* Keep the classroom's context and only save action in sight while editing. */
#main:has(.classroom-workspace)>.page-heading{margin-bottom:19px}
#main:has(.classroom-workspace)>.page-heading .eyebrow{display:none}
.classroom-workspace-header{position:sticky;top:68px;z-index:14;background:#fff;box-shadow:0 2px 8px #294f7b04}
.classroom-workspace iframe:focus-visible{outline:none}
@media(max-width:760px){.classroom-workspace-header{top:62px}.classroom-connection{margin-left:5px}.classroom-commandbar{gap:12px}.classroom-command-actions>.button{font-size:12px}.classroom-modebar{padding:10px 12px}}

.classroom-section-picker{display:none}
@media(max-width:760px){.classroom-section-nav{display:none}.classroom-section-picker{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:11px;color:#8c9eb8}.classroom-section-picker select{min-width:160px;border:1px solid #dce5f3;border-radius:8px;padding:9px 13px;background:#f8fbff;color:#385b8b;font-size:14px;font-weight:600}.classroom-form-area>header h2{display:none}.classroom-form-area>header p{margin-top:13px}}

/* Keep the workspace focused on its controls, with one preview indicator. */
.home-preview-link{font-size:11px;color:#6f86a7;white-space:nowrap;padding:5px 0}
.home-preview-link:hover{color:var(--blue)}
.page-heading{margin-bottom:23px;min-height:38px}
.page-heading>.actions:empty{display:none}
.panel-heading{margin-bottom:17px}
.panel-heading h2{font-size:15px}
.sender-selector{padding-block:13px}
.sender-preview{margin-top:15px}
.classroom-section-nav{padding-top:14px}
.classroom-form-area>header{padding-block:18px!important}
.classroom-modebar{min-height:52px}
.classroom-modebar :is(button,a){padding-block:15px}
.classroom-save-state:empty{display:none}
.classroom-edit-shell{height:max(570px,calc(100dvh - 264px))}
.classroom-layout-frame{height:max(620px,calc(100dvh - 270px))}
@media(max-width:720px){.home-preview-link{font-size:10px}.topbar-actions{gap:9px}.preview-label{display:none}.classroom-edit-shell{height:auto}.classroom-form-area{height:720px}.classroom-layout-frame{height:640px}.classroom-modebar :is(button,a){padding-block:14px}}
@media(max-width:420px){.topbar-actions{gap:5px}.role-switch button{padding-inline:7px}.home-preview-link{font-size:9px}.breadcrumb .slash,.breadcrumb strong{display:none}}

/* Keep explanations next to the decision they clarify, not beneath every title. */
.page-heading{margin-bottom:24px;min-height:38px}.page-heading h1{font-size:25px}.panel-heading{margin-bottom:18px}.panel-heading h2{font-size:15px}.home-preview-link{color:#7891b5;font-size:11px;white-space:nowrap}.home-preview-link:hover{color:var(--blue)}.sender-selector{margin-bottom:16px}.sender-selector label{display:flex;align-items:center;gap:12px}.sender-preview{margin-top:15px}.table-foot:has(>span:only-child){justify-content:flex-start}.classroom-modebar :is(button,a){min-height:46px}.classroom-form-area>header{min-height:64px;padding-bottom:14px}.classroom-section-nav{padding-top:14px}.classroom-layout-frame{border-top:1px solid var(--line)}.classroom-section-nav button:first-of-type{margin-top:0}.topbar-actions{gap:13px}
@media(max-width:700px){.home-preview-link{font-size:10px}.topbar-actions{gap:7px}.preview-label{display:none}.page-heading{margin-bottom:19px}.page-heading h1{font-size:23px}.classroom-form-area>header{min-height:69px}}

.modal-header p:empty,.drawer-header p:empty{display:none}.modal-header:has(p:empty){align-items:center}.modal-header h2{margin-bottom:0}
.classroom-workspace .button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.live-classroom-icon{font-size:18px;font-weight:400;line-height:1;display:inline-block}.classroom-modebar :is(button,a){display:flex;align-items:center}.classroom-save-state{min-width:25px}.classroom-leave-dialog{width:min(540px,calc(100vw - 32px));padding:0}.classroom-leave-dialog .modal-header{padding:25px 25px 5px}.classroom-leave-dialog .modal-header h2{font-size:21px;margin:0 0 12px}.classroom-leave-dialog .modal-header p{font-size:13px;color:#8a9bb4;line-height:1.8}.classroom-leave-dialog .modal-body{padding:0 25px}.classroom-leave-dialog .modal-footer{padding:20px 25px;display:flex;align-items:center;justify-content:space-between}.classroom-leave-dialog .modal-footer>div{display:flex;gap:9px}.classroom-leave-dialog .button{border:1px solid #dbe5f3;background:white;min-height:38px;padding:9px 14px;border-radius:8px;cursor:pointer;font-size:12px}.classroom-leave-dialog .button.primary{background:#3e70de;border-color:#3e70de;color:#fff}.classroom-preview-dialog .button{border:1px solid #dbe5f3;background:white;padding:9px 14px;border-radius:8px}.classroom-workspace .classroom-context-icon{font-size:23px}.classroom-commandbar{flex:none}.classroom-section-nav .live-classroom-icon{margin-left:auto;color:#9eb2cf}.classroom-section-nav button{cursor:pointer}

/* Copy is a primary classroom operation, visible in both editing modes. */
.classroom-command-actions{flex-wrap:wrap;justify-content:flex-end}
.classroom-copy-button{white-space:nowrap;flex:none}
.classroom-command-actions>.button{white-space:nowrap}
@media(min-width:761px) and (max-width:1200px){.classroom-commandbar{align-items:flex-start}.classroom-command-actions{row-gap:10px}.classroom-save-state{align-self:center}}
@media(max-width:760px){.classroom-copy-button{order:1}.classroom-command-actions>.classroom-save-state{flex-basis:100%;text-align:right}.classroom-command-actions>.button{flex:1 1 auto}.classroom-command-actions>.classroom-copy-button{flex:1 1 auto}}
.classroom-layout-target{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:11px;color:#8b9db6;min-width:0}.classroom-layout-target select{max-width:300px;font-size:12px;color:#4b6c9d;background:#fff;border:1px solid #dae5f5;border-radius:8px;padding:9px 12px;min-width:0}@media(max-width:960px){.classroom-modebar{flex-wrap:wrap}.classroom-layout-target{margin-left:0;flex:1 1 100%;padding-top:5px}.classroom-layout-target select{max-width:100%;flex:1}}
.classroom-layout-target{white-space:nowrap}.classroom-layout-target select{white-space:normal;flex:1;min-width:120px}

.classroom-layout-frame.template-editor-expanded{position:fixed;inset:0;z-index:3000;width:100vw;height:100dvh;min-height:0;border:0;border-radius:0;background:#f5f7fb}
/* Per-room desktop display settings */
.desktop-display-editor{display:grid;grid-template-columns:minmax(320px,1.05fr) minmax(300px,1fr);gap:32px;padding:30px;background:#fff;overflow:auto;min-height:0}.desktop-display-controls{min-width:0}.desktop-display-controls>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.desktop-display-controls h2{margin:0;font-size:19px}.desktop-cloud-switch{display:flex;align-items:center;gap:8px;font-size:13px;color:#496182}.desktop-cloud-switch input{width:18px;height:18px;accent-color:#396dd0}.desktop-display-scope{font-size:12px;line-height:1.7;color:#7a899e;margin:12px 0 25px}.desktop-display-controls fieldset{border:0;margin:0 0 26px;padding:0;min-width:0}.desktop-display-controls legend{font-size:14px;font-weight:650;margin-bottom:16px}.desktop-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.desktop-theme{position:relative;display:flex;flex-direction:column;gap:8px;cursor:pointer;border:1px solid #dce4ef;border-radius:11px;padding:9px;color:#52657e;font-size:12px;text-align:center;min-width:0}.desktop-theme:has(input:checked){border-color:#396dd0;box-shadow:0 0 0 2px #396dd025;color:#396dd0;background:#f5f8ff}.desktop-theme:focus-within{outline:2px solid #396dd0;outline-offset:2px}.desktop-theme input{position:absolute;opacity:0;width:1px;height:1px}.desktop-theme-swatch{background:var(--swatch-bg);border-radius:5px;height:53px;padding:10px 8px 6px;display:grid;grid-template-columns:1.5fr 1fr;gap:4px;position:relative}.desktop-theme-swatch i{height:3px;background:var(--swatch-ink);width:40%;grid-column:1/-1;border-radius:2px}.desktop-theme-swatch b{background:var(--swatch-panel);border-radius:3px}.desktop-theme-swatch em{position:absolute;bottom:12px;left:13px;width:22%;height:3px;background:var(--swatch-accent)}.desktop-custom-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.desktop-custom-colors label{display:grid;gap:7px;font-size:12px;color:#607087}.desktop-color-input{display:flex;align-items:center;border:1px solid #dce4ef;border-radius:8px;overflow:hidden;background:#fff;padding:5px 8px;gap:8px;min-width:0}.desktop-color-input input[type=color]{border:0;width:30px;height:30px;padding:0;cursor:pointer;background:transparent;flex-shrink:0}.desktop-color-input input[type=text]{border:0;padding:0;box-shadow:none;background:transparent;font:12px ui-monospace,monospace;min-width:0;width:100%;color:#24374f}.desktop-color-error{font-size:12px;color:#b84449;margin:10px 0 0}.desktop-color-error:empty{display:none}.desktop-range-field{display:grid;grid-template-columns:100px minmax(70px,1fr) 76px;gap:14px;align-items:center;font-size:13px;color:#496182;margin:0 0 17px}.desktop-range-field input[type=range]{padding:0;margin:0;min-width:0;width:100%;height:22px;accent-color:#396dd0;border:0;background:transparent;box-shadow:none}.desktop-number{display:flex;align-items:center;border:1px solid #dce4ef;border-radius:7px;background:#f8faff;padding:0 8px;color:#7a899e}.desktop-number input{width:100%;min-width:0;padding:7px 0;border:0;background:transparent;box-shadow:none;color:#24374f;font-size:13px}.desktop-display-preview{position:sticky;top:0;align-self:start;min-width:0;padding:16px;border-radius:12px;background:#f4f7fc;border:1px solid #e2e9f2}.desktop-display-preview>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:8px;font-size:13px}.desktop-display-preview>header span{font-size:11px;color:#7a899e;font-variant-numeric:tabular-nums}.desktop-display-stage{overflow:hidden;border-radius:6px;background:#e9eef6;position:relative}.desktop-display-stage iframe{position:absolute;left:0;top:0;border:0;transform-origin:top left;pointer-events:none}.desktop-display-preview>p{font-size:12px;color:#7a899e;margin:12px 0 0}.classroom-workspace[data-mobile-view=screen]{height:auto;overflow:visible}.classroom-workspace[data-mobile-view=screen] .mobile-classroom-choices,.classroom-workspace[data-mobile-view=screen] .mobile-classroom-selected,.classroom-workspace[data-mobile-view=screen] .mobile-classroom-select-all,.classroom-workspace[data-mobile-view=screen] .mobile-classroom-batch-note{display:none!important}
@media(max-width:1000px){.desktop-display-editor{grid-template-columns:1fr}.desktop-display-preview{position:static;grid-row:1}.desktop-display-stage{max-height:300px}.desktop-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.desktop-display-editor{padding:18px;gap:24px}.desktop-display-preview{padding:12px}.desktop-display-controls>header{align-items:start}.desktop-display-controls h2{font-size:17px}.desktop-cloud-switch{font-size:12px}.desktop-range-field{grid-template-columns:90px minmax(45px,1fr) 70px;gap:10px}.classroom-workspace[data-mobile-view=screen] .classroom-context{display:flex!important}.classroom-workspace[data-mobile-view=screen] .classroom-context label{display:block!important}.classroom-workspace[data-mobile-view=screen] .classroom-commandbar{display:flex;flex-wrap:wrap}.classroom-workspace[data-mobile-view=screen] .classroom-command-actions{width:100%}.classroom-workspace[data-mobile-view=screen] .mobile-classroom-heading{display:flex}.desktop-custom-colors{gap:10px}}

.classroom-workspace .desktop-display-editor .desktop-number input{width:100%;min-width:0;min-height:0;height:34px;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;font-size:13px;appearance:textfield}.desktop-number input::-webkit-inner-spin-button,.desktop-number input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.classroom-workspace .desktop-display-editor .desktop-color-input input[type=text]{min-height:0;height:30px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;font-size:12px}.classroom-workspace .desktop-display-editor .desktop-color-input input[type=color]{width:30px;min-height:0;height:30px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important}.classroom-workspace .desktop-display-editor .desktop-cloud-switch input{width:18px;height:18px;min-height:0;margin:0;padding:0}

.desktop-display-room-picker{display:none}@media(max-width:680px){.classroom-workspace[data-mobile-view=screen] .classroom-context{display:none!important}.desktop-display-room-picker{display:flex;gap:8px;flex-wrap:wrap;width:100%}.desktop-display-room-picker button{flex:1;min-height:42px;border:1px solid #dce4ef;border-radius:9px;background:#fff;color:#607087;font-size:14px;padding:9px 12px}.desktop-display-room-picker button[aria-pressed=true]{border-color:#396dd0;background:#edf3ff;color:#396dd0;font-weight:650}}

.desktop-upgrade-note{padding:12px 14px;border:1px solid #ecd6ad;background:#fff9eb;border-radius:9px;color:#8c642b;font-size:12px;line-height:1.7;margin:0 0 22px}.desktop-upgrade-note a{margin-left:6px;color:inherit;font-weight:650}
@media(max-width:680px){.classroom-workspace .desktop-display-editor .desktop-number input,.classroom-workspace .desktop-display-editor .desktop-color-input input[type=text]{font-size:16px}.desktop-display-controls input[type=range]{min-height:34px}}

/* Editing modes and frequent configuration actions share one visible row. */
.classroom-mode-tabs{display:contents}
.classroom-modebar :is(button,a):hover{color:#3867b4;background:#eef4ff}
.classroom-modebar :is(button,a):focus-visible{outline:2px solid #739af0;outline-offset:2px}

.desktop-preview-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 12px;font-size:12px;color:#526781}.desktop-preview-context span{min-width:0;overflow-wrap:anywhere}.desktop-preview-context button{border:0;background:transparent;padding:4px 0;color:#396dd0;white-space:nowrap;font:inherit;cursor:pointer}.desktop-preview-context button:focus-visible{outline:2px solid #396dd0;outline-offset:3px}
