*{box-sizing:border-box}.web-page{position:relative;overflow:hidden;background-size:cover;background-position:center;font-family:Inter,Arial,sans-serif;color:#e6f1f5;--web-accent:#ffb52b}.web-element{position:absolute;overflow:auto;border:1px solid;padding:16px;scrollbar-width:thin;scrollbar-color:#325567 transparent}.web-element button,.web-element select,.web-element input{font:inherit;color:inherit;background:#102b39;border:1px solid #375c6d;border-radius:8px;min-height:44px;padding:10px;max-width:100%}.web-element button{cursor:pointer}.web-element button:hover{border-color:var(--web-accent)}.web-element button:disabled{opacity:.45;cursor:default}.web-element button:focus-visible,.web-element input:focus-visible{outline:3px solid #50c4ff;outline-offset:2px}.web-text{display:flex;align-items:center;justify-content:center;width:100%;height:100%;white-space:pre-wrap;text-align:center;overflow-wrap:anywhere}.web-type-text,.web-type-image,.web-type-status{border:0;padding:0;display:flex;align-items:center;justify-content:center}.web-type-image img{width:100%;height:100%;object-fit:contain}.web-type-frame{pointer-events:none}.web-type-navigation{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}.web-type-navigation button{flex:1;font-size:16px;white-space:nowrap}.web-type-button,.web-type-source,.web-type-receiver,.web-type-room{padding:0;border:0;background:transparent!important}.web-type-button>button,.web-type-source>button,.web-type-receiver>button,.web-type-room>button{width:100%;height:100%;background:inherit;color:inherit}.web-active{border-color:var(--web-accent)!important;color:var(--web-accent)!important;background:#1a394b!important}.web-online{font-size:14px;color:#78dc9b}.web-pending{outline:2px dashed #4bbfff;outline-offset:-3px}.web-type-confirm{display:flex;gap:12px;border:0;padding:0;align-items:stretch}.web-type-confirm input{width:40%;min-width:0}.web-type-confirm button{flex:1;background:#84cf97;color:#061722;font-weight:700}.web-type-confirm .web-cancel{flex:0 0 44px;background:#163848;color:white}.web-route-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.web-route-columns>div{min-width:0}.web-route-columns button{display:block;width:100%;min-height:64px;margin:12px 0;font-size:18px}.web-route-target{display:flex;flex-direction:column;justify-content:center;gap:8px}.web-element h3{font-size:18px;letter-spacing:.04em;color:var(--web-accent);margin:12px 0}.web-element small{font-size:13px;color:#a7c0cc}.web-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.web-room-card{border:1px solid #37525f;padding:12px;border-radius:8px;min-width:0}.web-room-card>h3{text-align:center}.web-device-row{padding:8px 0;border-bottom:1px solid #203c4b}.web-device-row>strong{display:block;font-size:14px;text-align:center}.web-device-controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:6px 0}.web-device-controls input[type=range]{width:100%;padding:0;min-height:24px;accent-color:var(--web-accent)}.web-device-controls button{font-size:16px}.web-device-controls .web-arrow{width:50px;height:50px;font-size:28px;border-color:var(--web-accent)}.web-device-controls .web-stop{min-height:30px;padding:3px 8px;font-size:12px}.web-shutter{width:48px;height:58px;flex:none}.web-room-plan{height:72%;position:relative;margin-bottom:16px}.web-room-tile{position:absolute;border:2px solid #708591;display:grid;place-items:center;text-align:center;font-weight:700;background:#0a213066}.web-joins{display:flex;flex-wrap:wrap;gap:8px}.web-joins button{flex:1;font-size:14px}.web-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:1000;padding:16px 24px;color:white;background:#16394b;border:1px solid #51c2ff;border-radius:10px;box-shadow:0 12px 50px #0009;white-space:pre-wrap}.web-page[data-view=mobile] .web-element{padding:8px}.web-page[data-view=mobile] .web-element:not(.web-type-text){font-size:16px!important}.web-page[data-view=mobile] .web-type-text,.web-page[data-view=mobile] .web-type-confirm{padding:0}.web-page[data-view=mobile] .web-type-navigation{gap:4px}.web-page[data-view=mobile] .web-type-navigation button{font-size:12px;padding:5px;min-height:30px}.web-page[data-view=mobile] .web-route-columns{gap:8px}.web-page[data-view=mobile] .web-route-columns button{font-size:14px}.web-page[data-view=mobile] .web-control-grid{gap:6px}.web-page[data-view=mobile] .web-room-card{padding:6px}.web-page[data-view=mobile] .web-device-controls{gap:4px}.web-page[data-view=mobile] .web-arrow{width:34px;height:40px}.web-page[data-view=mobile] .web-shutter{width:32px;height:44px}.web-page[data-view=mobile] h3{font-size:13px}.web-page[data-view=mobile] .web-type-confirm{gap:6px}.web-page[data-view=mobile] .web-type-confirm button{font-size:13px}
.web-room-card>.web-device-controls>button{flex:1;font-size:24px;padding:4px}.web-type-navigation{padding:6px}.web-type-status{background:transparent!important}.web-type-button>button,.web-type-source>button,.web-type-receiver>button,.web-type-room>button{border-radius:inherit;border-color:inherit;background:var(--element-bg,#102b39)}
.web-type-lights,.web-type-shutters,.web-type-manual{display:flex;flex-direction:column;gap:8px}.web-type-lights>select,.web-type-shutters>select,.web-type-manual>select{align-self:flex-start;flex:none}.web-control-grid{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}.web-room-card{overflow:auto;scrollbar-width:thin;padding:8px}.web-room-card>h3{margin:4px 0 8px}.web-single-device>.web-device-row>strong{display:none}.web-room-card .web-device-row{padding:4px 0}.web-room-card>.web-device-controls>button{min-height:32px;font-size:22px}.web-single-device .web-device-controls{margin:2px 0}
/* Hotel layout, with no decorative background selected by default. */
.web-hotel-page{border:0;border-radius:0}.web-type-brand{border:0;padding:0;display:flex;align-items:center;overflow:hidden}.web-type-brand img{object-fit:contain;width:100%;height:100%}.web-type-brand strong{font-size:24px;line-height:1.2;overflow-wrap:anywhere}.web-type-homeMenu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:20px;border:0;padding:0!important}.web-home-tile{display:flex;align-items:center;gap:24px;text-align:left;background:transparent!important;border-color:var(--web-accent)!important;border-radius:20px!important;padding:24px!important}.web-home-copy{display:flex;flex-direction:column;gap:12px;min-width:0}.web-home-copy b{font-size:24px;line-height:1.2}.web-home-copy small{font-size:16px;line-height:1.5}.web-menu-icon{width:26px;height:26px;flex:none;color:var(--web-accent)}.web-home-tile .web-menu-icon{width:44px;height:44px}.web-type-homeLink{border:0;padding:0!important;display:grid;place-items:center}.web-home-link{border:0!important;background:transparent!important;border-radius:50%!important;padding:0!important;width:48px;height:48px;display:grid;place-items:center}.web-home-link .web-menu-icon{color:#62df59;width:100%;height:100%;display:block}.web-system-admin{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:200;min-width:130px;height:42px;background:#091c29;color:#e6f1f5;border:1px solid var(--web-accent);border-radius:8px;font:16px Arial,sans-serif;cursor:pointer}.web-system-admin:focus-visible{outline:3px solid #50c4ff}.web-type-status{gap:10px}.web-type-status time{font-size:20px}.web-type-navigation button{display:flex;align-items:center;justify-content:center;gap:10px;background:transparent}.web-page[data-view=desktop] .web-type-navigation{flex-direction:column;flex-wrap:nowrap;border-radius:0!important;padding:0}.web-page[data-view=desktop] .web-type-navigation button{flex:none;justify-content:flex-start;border:0;border-radius:0;min-height:62px;font-size:16px;padding:12px}.web-route-desktop{grid-template-columns:.65fr 1fr 1.1fr;height:100%}.web-route-desktop>div{border:1px solid #315261;border-radius:10px;padding:12px;overflow:auto}.web-hotel-page .web-type-video,.web-hotel-page .web-type-audio{padding:0!important;border:0;overflow:hidden}.web-hotel-page .web-type-confirm input{background:transparent;border-color:#4cba70}.web-page[data-view=mobile] .web-type-homeMenu,.web-page[data-view=portrait] .web-type-homeMenu{grid-template-columns:repeat(2,minmax(0,1fr))}.web-page[data-view=mobile] .web-home-tile{flex-direction:column;justify-content:center;gap:10px;padding:12px!important;text-align:center}.web-page[data-view=mobile] .web-home-copy{gap:6px}.web-page[data-view=mobile] .web-home-copy b{font-size:17px}.web-page[data-view=mobile] .web-home-copy small{font-size:12px}.web-page[data-view=mobile] .web-home-tile .web-menu-icon{width:30px;height:30px}.web-page[data-view=mobile] .web-type-status{gap:5px}.web-page[data-view=mobile] .web-type-status time{font-size:14px}.web-page[data-view=mobile] .web-type-status .web-online{font-size:11px}.web-page[data-view=mobile] .web-type-navigation button{flex-direction:column;gap:3px;min-width:calc(100% / 6 - 8px);padding:4px 1px}.web-page[data-view=mobile] .web-type-navigation .web-menu-icon{width:20px;height:20px}.web-page[data-view=mobile] .web-type-brand strong{font-size:18px}.web-page[data-view=mobile] .web-home-link{width:38px;height:38px;min-height:38px}.web-page[data-view=mobile] .web-system-admin{bottom:20px;height:40px;min-width:105px}.web-hotel-page .web-type-navigation{background:transparent!important}
.web-page:not([data-view=desktop]) .web-type-navigation{flex-wrap:nowrap;gap:0;padding:0}.web-page:not([data-view=desktop]) .web-type-navigation button{flex:1;min-width:0;flex-direction:column;gap:4px;white-space:normal;font-size:12px;border-radius:0;padding:4px}.web-page:not([data-view=desktop]) .web-type-navigation .web-menu-icon{width:22px;height:22px}.web-page[data-view=mobile] .web-type-navigation button{font-size:10px}

/* Direction glyphs match Manual on 2.19; button actions and outer sizes stay intact. */
.web-shutter-direction{display:block;width:26px;height:26px;max-width:100%;flex:none;color:inherit;transform-origin:center}
.web-shutter-direction.down{transform:rotate(180deg)}
.web-device-controls .web-arrow{display:inline-flex;align-items:center;justify-content:center;padding:4px}
.web-room-card>.web-device-controls>button{display:inline-flex;align-items:center;justify-content:center}
.web-shutter-command{display:flex;align-items:center;justify-content:center;gap:10px}
/* Manual is a set of room cards, with only the installed equipment in each card. */
.web-type-manual{overflow:hidden;border-color:transparent!important}
.web-manual-grid{display:grid;grid-template-columns:repeat(var(--manual-columns,4),minmax(0,1fr));gap:12px;flex:1;min-height:0;overflow:auto;align-items:start}
.web-manual-card{border:1px solid #37525f;border-radius:10px;min-width:0;min-height:0;max-height:100%;display:flex;flex-direction:column;overflow:hidden}
.web-manual-card>h3{flex:none;text-align:center;margin:0;padding:10px 6px;border-bottom:1px solid #37525f;color:inherit;font-size:20px;text-transform:uppercase}
.web-manual-body{padding:8px;overflow:auto;min-height:0;scrollbar-width:thin}
.web-manual-section+ .web-manual-section{margin-top:8px}
.web-manual-section .web-device-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 0;min-width:0}
.web-manual-section .web-device-row>strong{font-size:12px;text-align:left;min-width:0;overflow-wrap:anywhere;flex:1}
.web-manual-section .web-device-controls{gap:4px;margin:0;flex:none;max-width:70%}
.web-manual-section .web-device-controls button{min-height:32px;min-width:32px;padding:4px;font-size:12px}
.web-manual-section .web-device-controls .web-arrow{width:32px;height:32px;font-size:24px}
.web-manual-section .web-shutter-direction{width:24px;height:24px}
.web-manual-section .web-device-controls input[type=range]{min-height:26px}
.web-manual-section[data-section=lights] .web-device-row,.web-manual-section[data-section=audio] .web-device-row{flex-wrap:wrap}
.web-manual-section[data-section=lights] .web-device-controls,.web-manual-section[data-section=audio] .web-device-controls{max-width:100%;width:100%}
.web-manual-section .web-device-controls output{font-size:12px;margin-right:auto}
.web-page[data-view=portrait] .web-manual-grid,.web-page[data-view=mobile] .web-manual-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start}
.web-page[data-view=portrait] .web-manual-body,.web-page[data-view=mobile] .web-manual-body{overflow:visible}
.web-page[data-view=mobile] .web-manual-grid{gap:6px}
.web-page[data-view=mobile] .web-manual-body{padding:6px}
.web-page[data-view=mobile] .web-manual-card>h3{font-size:16px}
.web-page[data-view=mobile] .web-manual-section .web-device-row{flex-direction:column;align-items:stretch}
.web-page[data-view=mobile] .web-manual-section .web-device-controls{max-width:100%;justify-content:flex-start}
/* Portrait tablet: both rows of rooms share the available height. */
.web-page[data-view=portrait] .web-manual-grid{grid-auto-rows:minmax(0,1fr);align-content:stretch;align-items:stretch;overflow:hidden;gap:8px}
.web-page[data-view=portrait] .web-manual-card{height:100%}
.web-page[data-view=portrait] .web-manual-card>h3{padding:6px;font-size:18px}
.web-page[data-view=portrait] .web-manual-body{flex:1;overflow:hidden;padding:6px}
.web-page[data-view=portrait] .web-manual-content{transform-origin:top center;display:flow-root}
.web-page[data-view=portrait] .web-manual-section+ .web-manual-section{margin-top:4px}
.web-page[data-view=portrait] .web-manual-section .web-device-row{padding:2px 0}
/* Phone Manual follows the hotel panel: full-width, vertically scrolling room cards. */
.web-phone-manual .web-type-navigation{border-radius:0!important}
.web-phone-manual .web-type-navigation button{font-size:9px!important;color:#c4cfd5;gap:5px!important}
.web-phone-manual .web-type-navigation .web-menu-icon{color:inherit;width:18px!important;height:18px!important}
.web-phone-manual .web-type-navigation .web-active{background:transparent!important}
.web-page[data-view=mobile] .web-type-manual{padding:20px 0 0!important}
.web-page[data-view=mobile] .web-manual-grid{grid-template-columns:minmax(0,1fr);gap:16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding:0 1px}
.web-page[data-view=mobile] .web-mobile-room{max-height:none;border-color:#ac7416;border-radius:13px;background:transparent}
.web-page[data-view=mobile] .web-mobile-room>h3{font-size:18px;color:var(--web-accent);padding:6px 4px 24px;border:0}
.web-mobile-equipment{display:flex;flex-direction:column;gap:9px;padding:0 7px 10px}
.web-mobile-equipment-row{border:1px solid #254858;border-radius:9px;min-height:54px;padding:10px 8px;display:flex;align-items:center;gap:5px;min-width:0}
.web-mobile-section-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1;font-size:12px;font-weight:400}
.web-mobile-section-title>span{min-width:0;overflow-wrap:anywhere}
.web-mobile-section-title>b{margin-left:auto;font-size:10px;color:var(--web-accent);white-space:nowrap}
.web-mobile-icon{width:22px;height:22px;flex:none;color:var(--web-accent)}
.web-mobile-icon.down{transform:rotate(180deg)}
.web-mobile-projector .web-mobile-section-title{font-size:10px;font-weight:700;gap:5px}
.web-mobile-projector .web-mobile-section-title .web-mobile-icon{width:19px;height:19px}
.web-mobile-motion{display:flex;align-items:center;gap:3px;flex:none}
.web-mobile-motion>button{padding:2px;min-height:30px;width:25px;border-radius:6px;background:transparent;display:grid;place-items:center}
.web-mobile-motion .web-mobile-icon{width:21px;height:23px;color:#d5e2e7}
.web-mobile-motion .web-mobile-box-arrow .web-mobile-icon{color:#69df48}
.web-mobile-motion .web-mobile-blind-arrow .web-mobile-icon{color:var(--web-accent)}
.web-element .web-mobile-power{position:relative;flex:none;display:flex;align-items:center;justify-content:flex-end;gap:3px;min-height:24px;height:24px;width:48px;padding:2px 3px;font-size:9px;border-radius:16px;border-color:#4a5c64;background:#30424c}
.web-mobile-power>i{position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 4px #0008}
.web-element .web-mobile-power.is-on{justify-content:flex-start;background:linear-gradient(#60c649,#2a9d29);border-color:#428837}
.web-mobile-power.is-on>i{left:auto;right:2px}
.web-mobile-lights,.web-mobile-blinds,.web-mobile-audio{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.web-mobile-lights>.web-mobile-section-title,.web-mobile-blinds>.web-mobile-section-title{flex:none;min-height:20px}
.web-mobile-light-points{display:grid;grid-template-columns:repeat(3,20px);gap:18px 26px;justify-content:center;align-content:center;min-height:116px;padding:16px 0}
.web-element .web-mobile-light-point{width:14px;height:14px;min-height:14px;padding:0;border-radius:50%;border:1px solid #60737b;background:#344a54;justify-self:center;align-self:center}
.web-element .web-mobile-light-point.is-on{background:#fff0a2;border-color:#ffe685;box-shadow:0 0 16px #ffe48a77}
.web-mobile-light-points:has(>.web-mobile-light-point:only-child){grid-template-columns:20px}
.web-mobile-dimmer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 8px;width:100%;font-size:10px;padding:0 3px}
.web-mobile-dimmer output{font-size:11px;font-weight:700;color:#e6d764}
.web-mobile-dimmer input[type=range]{grid-column:1/-1;width:100%;min-height:18px;height:18px;margin:0;padding:0;accent-color:var(--web-accent);background:transparent;border:0}
.web-mobile-blind-row{display:grid;grid-template-columns:13px minmax(0,1fr) 4px;gap:6px;align-items:center;font-size:11px}
.web-mobile-blind-row .web-mobile-motion{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.web-mobile-blind-row .web-mobile-motion>button{width:100%;height:32px;min-height:32px;border-radius:4px}
.web-mobile-blind-row .web-mobile-icon{height:24px;width:24px}
.web-mobile-blind-status{display:block;width:4px;height:28px;border-radius:3px;background:linear-gradient(to top,#67dc8a var(--blind-open,0%),#344c58 var(--blind-open,0%))}
/* Menu content scales as one unit when its editor container is resized. */
.web-page .web-type-navigation{overflow:hidden}
.web-page .web-type-navigation>button{min-width:0;min-height:0;overflow:hidden}
.web-nav-content{display:flex;align-items:center;justify-content:center;gap:10px;flex:none;width:max-content;font-size:16px;line-height:1.2;transform-origin:center}
.web-nav-content>span{white-space:nowrap}
.web-page[data-view=desktop] .web-type-navigation>button{flex:1 1 0;min-height:0;padding:var(--nav-row-padding,10px) 12px}
.web-page[data-view=desktop] .web-nav-content{transform-origin:left center}
.web-page:not([data-view=desktop]) .web-type-navigation>button{padding:4px;min-height:0;gap:0!important}
.web-page:not([data-view=desktop]) .web-nav-content{flex-direction:column;gap:4px;font-size:12px}
.web-page:not([data-view=desktop]) .web-nav-content .web-menu-icon{width:22px!important;height:22px!important}
/* Fit actual room extents, preserving their proportions and centering both axes. */
.web-type-rooms{display:flex;flex-direction:column;gap:12px}
.web-room-plan{flex:1;min-height:0;height:auto;margin:0;overflow:hidden}
.web-room-map{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.web-joins{flex:none;justify-content:center;gap:8px}
.web-joins>button{flex:0 1 auto;min-width:100px;max-width:160px;min-height:42px;padding:6px 10px;display:flex;flex-direction:column;justify-content:center;gap:3px;white-space:normal;overflow-wrap:anywhere}
.web-joins>button>strong{font-size:13px;font-weight:600}
.web-joins>button>span{font-size:11px;color:#afc6d1}
.web-page[data-view=mobile] .web-joins{gap:6px}
.web-page[data-view=mobile] .web-joins>button{flex-basis:calc(50% - 3px);min-width:0;max-width:160px;padding:5px 8px}
.web-page[data-view=portrait] .web-manual-grid{grid-template-columns:repeat(var(--manual-portrait-columns,2),minmax(0,1fr))}.web-empty-rooms{margin:auto;text-align:center;color:#a7c0cc}
/* Room Config: an editable floor plan and a single integrated approval panel. */
.web-page .web-type-rooms{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,20%);gap:16px;padding:0!important;border:0!important;background:transparent!important;overflow:hidden;container-type:size;container-name:room-config}
.web-type-rooms .web-room-plan{position:relative;min-width:0;min-height:0;border:3px solid #758791;border-radius:10px;padding:18px;overflow:visible}
.web-type-rooms .web-room-map{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.web-room-edges{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#71848e;stroke-width:2;pointer-events:none}
.web-room-edges line{vector-effect:non-scaling-stroke}
.web-type-rooms .web-room-tile{border:0;background:none;pointer-events:none;font-size:calc(20px * var(--room-unit,1));color:#eef3f5}
.web-room-tile>strong{position:relative;text-transform:uppercase;text-shadow:0 2px 3px #000;max-width:90%;overflow-wrap:anywhere}
.web-room-furniture{position:absolute;width:76%;height:76%;left:12%;top:12%}
.web-element .web-wall-join{position:absolute;z-index:2;transform:translate(-50%,-50%);width:calc(72px * var(--room-unit,1));height:calc(58px * var(--room-unit,1));min-height:0;max-width:none;padding:0;border:0;border-radius:0;background:none;color:var(--web-accent);overflow:visible;display:flex;align-items:center;justify-content:center;flex-direction:column}
.web-join-circle{position:relative;display:grid;place-items:center;width:calc(56px * var(--room-unit,1));height:calc(56px * var(--room-unit,1));flex:none;border:calc(2.5px * var(--room-unit,1)) solid var(--web-accent);border-radius:50%;background:#061b27}
.web-join-circle>svg{width:48%;height:48%}
.web-join-caption{position:absolute;top:calc(100% + 5px * var(--room-unit,1));font-size:calc(13px * var(--room-unit,1));font-weight:700;line-height:1.2;white-space:nowrap}
.web-wall-join.is-open .web-join-circle{color:#64dc72}.web-wall-join.is-open .web-join-caption{color:#e6f1f5}
.web-wall-join.has-draft .web-join-circle{outline:2px dashed #4bbfff;outline-offset:3px}
.web-wall-join.web-join-all .web-join-circle{width:calc(63px * var(--room-unit,1));height:calc(63px * var(--room-unit,1))}
.web-join-circle>small{position:absolute;font-size:calc(10px * var(--room-unit,1));color:#fff;line-height:1}
.web-join-circle .top-left{top:14%;left:18%}.web-join-circle .top-right{top:14%;right:18%}.web-join-circle .bottom-left{bottom:14%;left:18%}.web-join-circle .bottom-right{bottom:14%;right:18%}
.web-room-summary{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:clamp(8px,2cqh,22px);min-width:0;min-height:0;border:1px solid #294c5d;border-radius:14px;padding:clamp(12px,1.2cqw,24px);text-align:center;font-size:clamp(12px,1.2cqw,19px);overflow:auto}
.web-joined-badge{display:grid;place-items:center;align-self:center;width:clamp(50px,11cqh,94px);aspect-ratio:1;flex:none;border:3px solid var(--web-accent);border-radius:50%;color:#64dc72;margin-bottom:clamp(0px,1cqh,12px)}
.web-joined-badge svg{width:50%;height:50%}
.web-room-summary h3{margin:0;color:var(--web-accent);font-size:clamp(16px,1.75cqw,26px);font-weight:500;letter-spacing:.19em;line-height:1.6}
.web-joined-list{margin:clamp(0px,1.5cqh,20px) 0 0;overflow:auto;max-height:25%;min-height:2.5em;flex-shrink:0}
.web-joined-list p{margin:0;line-height:1.45;color:#c0cbd1;overflow-wrap:anywhere}
.web-element .web-join-every-room{border-color:#50cd65;color:#78e988;background:#0b2a20;line-height:1.45;font-size:inherit;border-radius:7px;padding:8px;min-height:40px;flex:none}
.web-room-save-state{color:#78e988;font-size:.85em;line-height:1.3;margin:0}.web-room-save-state.is-pending{color:#60c4ff}
.web-room-confirm{display:flex;flex-direction:column;gap:8px;flex:none;min-width:0}
.web-room-confirm input{width:100%;min-width:0;border-color:#50cd65;background:transparent}
.web-room-confirm button:not(.web-cancel){background:#84cf97;color:#061722;font-weight:600;border:0;min-height:46px;font-size:inherit;padding:10px 4px}
.web-room-confirm .web-cancel{padding:3px;min-height:24px;font-size:12px;background:transparent}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-type-rooms{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-room-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;overflow:visible;font-size:12px}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-room-summary>.web-joined-badge,.web-page:is([data-view=mobile],[data-view=portrait]) .web-room-summary>h3{display:none}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-joined-list{max-height:52px;min-height:0;margin:0;align-self:center}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-room-save-state{grid-column:1/-1}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-room-confirm{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-room-confirm .web-cancel{grid-column:1/-1}
.web-page[data-view=mobile] .web-room-plan{padding:10px;border-width:2px}
.web-page[data-view=mobile] .web-room-confirm input,.web-page[data-view=mobile] .web-room-confirm button{font-size:12px;min-height:40px}
@container room-config (max-height:460px){
 .web-room-summary{gap:6px;padding:10px;font-size:12px}
 .web-room-summary>.web-joined-badge{display:none}
 .web-room-summary h3{font-size:16px;line-height:1.3;letter-spacing:.12em}
 .web-joined-list{margin:0;max-height:48px;flex-shrink:1}
 .web-room-summary .web-join-every-room{padding:6px;min-height:40px}
 .web-room-confirm{gap:6px}
}
/* Only the inherited image is filtered; controls and text remain sharp. */
.web-page{isolation:isolate}
.web-client-background{position:absolute;inset:0;z-index:-1;background-position:center;background-size:cover;background-repeat:no-repeat;pointer-events:none}
.web-route-columns{position:relative}
.web-route-columns>.web-routing-links{position:absolute;inset:0;z-index:3;pointer-events:none;border:0!important;padding:0!important;overflow:visible}
.web-routing-links>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.web-routing-path{fill:none;stroke:#32b9f3;stroke-width:3;stroke-linecap:round}
.web-routing-path.is-pending{stroke-dasharray:7 6;animation:web-route-dashes 1s linear infinite}
.web-routing-path.is-removing{stroke:#e77b83}
.web-routing-end{fill:#32b9f3}.web-routing-end.is-removing{fill:#e77b83}
.web-route-columns button.web-route-connected{border-color:#2cbaff;box-shadow:inset 0 0 18px #1b9adb14}
@keyframes web-route-dashes{to{stroke-dashoffset:-26}}
@media(prefers-reduced-motion:reduce){.web-routing-path.is-pending{animation:none}}
/* Same stationary, pulsing approval ring as the installed 2.19 panel. */
.web-type-confirm{overflow:visible}
.web-element button.web-confirm-pending{position:relative;overflow:visible;border-color:#f5a415;opacity:1}
.web-confirm-pending::after{content:"";position:absolute;z-index:5;inset:-3px;display:block;border:1px solid #f5a415;border-radius:inherit;pointer-events:none;animation:web-confirm-pending-ring 1.75s ease-in-out infinite}
@keyframes web-confirm-pending-ring{0%,100%{opacity:.72;box-shadow:0 0 5px #f5a41580,0 0 10px #f5a41538}50%{opacity:1;box-shadow:0 0 11px #ffb33bd0,0 0 23px #f5a41582}}
@media(prefers-reduced-motion:reduce){.web-confirm-pending::after{animation-duration:3.5s}}
.web-element button.web-source-with-icon{display:flex;align-items:center;justify-content:center;gap:12px}
.web-route-columns button.web-source-with-icon{justify-content:flex-start;text-align:left}
.web-source-icon{display:flex;align-items:center;justify-content:center;flex:0 0 27px;width:27px;color:#1caaf1}
.web-source-icon svg{display:block;width:26px;height:26px;fill:currentColor}
.web-source-icon:has(img){flex-basis:32.4px;width:32.4px}
.web-source-icon img{display:block;width:32.4px;max-height:16.8px;object-fit:contain;filter:brightness(0) invert(1)}
.web-source-label{min-width:0;overflow-wrap:anywhere}
/* Configurable components shared by editor and client. */
.web-element{gap:var(--component-gap);padding:var(--component-padding)}
.web-element .web-menu-icon{width:var(--component-icon,26px);height:var(--component-icon,26px)}
.web-titled-section{overflow:visible!important}
.web-section-title{position:absolute;top:-11px;left:50%;transform:translateX(-50%);max-width:90%;margin:0;padding:0 12px;background:#061722;color:var(--web-accent);font-size:14px;font-weight:500;letter-spacing:.16em;white-space:nowrap;z-index:5}
.web-section-frame{pointer-events:none}
.web-type-tile{padding:0!important;border:0;display:flex}
.web-type-tile>.web-home-tile{width:100%;height:100%;background:rgba(4,20,31,var(--component-opacity,.85))!important}
.web-type-homeMenu{grid-template-columns:repeat(var(--component-columns,3),minmax(0,1fr));gap:var(--component-gap,12px)}
.web-page:is([data-view=mobile],[data-view=portrait]) .web-type-homeMenu{grid-template-columns:repeat(var(--component-columns,2),minmax(0,1fr))}
.web-type-homeMenu[data-variant=hotel] .web-home-tile{background:#051622dc!important;border-radius:14px!important}
.web-type-motion{display:flex;padding:0!important;border:0;align-items:stretch}
.web-type-motion>button{flex:1;display:grid;place-items:center;padding:4px;min-width:0}
.web-type-power,.web-type-lightPoint{display:grid;place-items:center;border:0;padding:0!important}
.web-element.web-type-lightPoint>.web-mobile-light-point{width:22px;height:22px;min-height:22px}
.web-page .web-hide-room-summary .web-room-summary{display:block;padding:0;border:0;overflow:visible}
.web-hide-room-summary .web-room-summary>:not(.web-room-confirm){display:none!important}
.web-hide-room-summary .web-room-confirm{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.web-page .web-hide-room-summary{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
.web-hide-room-summary .web-room-confirm input,.web-hide-room-summary .web-room-confirm button{min-height:40px}
.web-page .web-type-video[data-variant=hotel],.web-page .web-type-audio[data-variant=hotel]{border:1px solid #315261;padding:18px 10px 10px!important;border-radius:10px;overflow:auto}
.web-element[data-variant=hotel] .web-route-columns{gap:36px}
.web-element[data-variant=hotel] .web-route-columns button{font-size:11px;min-height:38px!important;margin:6px 0;padding:6px;border-radius:8px}
.web-element[data-variant=hotel] .web-route-columns h3{font-size:11px;font-weight:500;margin:6px 0}
.web-element[data-variant=hotel] .web-route-target small{display:none}
.web-element[data-variant=hotel] [data-route-target]{display:flex;align-items:center;justify-content:space-between;gap:6px;background:linear-gradient(135deg,#1c293a,#0c1725)}
.web-element[data-variant=hotel] .web-route-target{flex:1;min-width:0}
.web-element[data-variant=hotel] [data-route-target] .web-mobile-icon{color:#8996a6;width:17px;height:17px}
.web-element[data-variant=hotel] .web-source-with-icon{gap:8px}
.web-selection-dot{width:9px;height:9px;border:1px solid #91a5b1;border-radius:50%;flex:none}
.web-active .web-selection-dot{background:#27b2f8;border-color:#27b2f8}
.web-selection-check{width:17px;height:17px;flex:none;border:2px solid #91a5b1;border-radius:4px}
.web-route-connected .web-selection-check{background:#26b8ef}
.web-element[data-variant=hotel] .web-route-powers button{font-size:11px;min-height:44px!important;border-color:#399cbe;background:#0c3346}
.web-page .web-type-navigation[data-variant=hotel] .web-menu-icon{color:inherit}
.web-page .web-type-navigation[data-variant=hotel] button{color:#c4cfd5;background:#020d16;border:1px solid #23404f}
.web-page .web-type-navigation[data-variant=hotel] .web-active{color:var(--web-accent);background:#102b39!important}
.web-element[data-variant=plan]{padding:12px!important;border:2px solid #73858e;display:flex;flex-direction:column;gap:10px}
.web-spatial-plan{position:relative;flex:1;min-height:180px}
.web-spatial-room{position:absolute;border:1px solid #3c5360;display:flex;flex-direction:column;align-items:stretch;padding:6px;min-width:0;min-height:0;background:#08202c55}
.web-spatial-room h3{text-align:center;color:inherit!important;margin:0 0 4px!important;font-size:11px!important;flex:none}
.web-plan-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:6px;flex:1;padding:18px 10px;min-height:0}
.web-plan-points .web-mobile-light-point{width:8px;height:8px;min-height:8px}
.web-plan-points .web-empty-rooms{grid-column:1/-1;font-size:12px}
.web-plan-blinds{display:flex;flex-direction:column;justify-content:space-evenly;gap:4px;flex:1;min-height:0;overflow:auto}
.web-plan-blind{display:flex;align-items:center;justify-content:center;gap:6px;flex:none}
.web-plan-blind>button{display:grid;place-items:center;min-height:32px;width:34px;padding:2px;border-color:var(--web-accent);background:#152b36}
.web-plan-blind .web-shutter{width:26px!important;height:36px!important}
.web-plan-blind .web-shutter-direction{width:24px;height:24px}
.web-plan-group{display:flex;justify-content:center;gap:8px;flex:none;margin-top:4px}
.web-plan-group>button{min-height:30px;padding:2px 12px;border-radius:20px}
.web-plan-dimmer{display:grid;grid-template-columns:1fr auto;font-size:10px;gap:4px}
.web-plan-dimmer input{grid-column:1/-1;min-height:20px!important;padding:0!important;width:100%;accent-color:#e7bf3d}
.web-plan-off{font-size:11px!important;min-height:30px!important;border-radius:20px!important}
.web-control-grid{grid-auto-rows:max-content;align-content:start;overflow:auto;flex:1}
.web-control-grid .web-room-card{overflow:visible}
.web-page .web-type-manual.web-page-scroll{overflow:visible}
.web-page .web-page-scroll .web-manual-grid{overflow:visible;flex:none;max-height:none}
.web-page:has(.web-page-scroll){overflow:visible}
.web-page .web-page-scroll .web-manual-card{max-height:none}
.web-xlr-icon{width:26px;height:26px;flex:none;color:#82dc4a}
.web-type-status{white-space:nowrap;overflow:visible}
.web-type-status .web-online{white-space:nowrap}
.web-home-copy small{white-space:pre-line}
.web-page[data-view=mobile] .web-type-text[data-variant=hotel]{letter-spacing:.3em;font-weight:700}
.web-type-brand,.web-type-status,.web-type-homeLink{padding:0!important}
.web-page:not([data-view=desktop]) .web-type-navigation .web-menu-icon{width:var(--component-icon,22px)!important;height:var(--component-icon,22px)!important}
.web-blind-room .web-room-furniture{z-index:0;opacity:.55;pointer-events:none}
.web-spatial-room>:not(.web-room-furniture){position:relative;z-index:1}
.web-plan-points.web-positioned-points{display:block;position:relative;padding:0}
.web-positioned-points>.web-mobile-light-point{transform:translate(-50%,-50%)}
.web-joined-light-plan .web-spatial-room{border-color:transparent;background:transparent}
.web-joined-light-plan .web-spatial-room>h3{opacity:.2;position:absolute;top:50%;left:40%;font-size:24px!important;pointer-events:none}
.web-light-plan-edge{position:absolute;border-top:1px solid #657f8b;border-left:1px solid #657f8b;z-index:2;pointer-events:none}
.web-light-group-label{position:absolute;font-size:11px;font-weight:700;padding:5px;z-index:3;pointer-events:none}
.web-reference-page .web-system-admin{left:16px;transform:none;font-size:12px;min-width:86px;height:32px}
.web-element[style*="--component-icon"] .web-mobile-icon,.web-element[style*="--component-icon"] .web-menu-icon,.web-element[style*="--component-icon"] .web-shutter-direction,.web-element[style*="--component-icon"] .web-mobile-light-point{width:var(--component-icon)!important;height:var(--component-icon)!important;min-height:var(--component-icon)!important}
.web-element[style*="--component-gap"] .web-route-columns,.web-element[style*="--component-gap"] .web-home-menu,.web-element[style*="--component-gap"] .web-plan-points,.web-element[style*="--component-gap"] .web-manual-grid{gap:var(--component-gap)!important}
/* Video target selection and power are separate controls in one projector card. */
.web-projector-row{display:flex;align-items:stretch;gap:0;margin:6px 0;border:1px solid #64717d;border-radius:9px;background:linear-gradient(135deg,#1c293a,#0c1725);overflow:hidden}
.web-page .web-route-columns .web-projector-row>button{margin:0!important;border:0;border-radius:0;background:transparent;min-width:0}
.web-page .web-route-columns .web-projector-route{display:flex;align-items:center;gap:8px;flex:1;width:auto;text-align:left;padding:8px}
.web-page .web-projector-route>.web-mobile-icon{flex:none;width:22px;height:22px;color:#9ba4ae}
.web-page .web-route-columns .web-projector-power{flex:0 0 44px;width:44px;display:grid;place-items:center;color:#929ba5;box-shadow:none;background:#17232e;transition:color .18s,box-shadow .18s,background .18s}
.web-projector-power>.web-mobile-icon{width:23px;height:23px;filter:none}
.web-page .web-route-columns .web-projector-power.is-on{color:#71ff86;background:#143a29;box-shadow:inset 0 0 14px #3fff6e66,inset 0 0 3px #8aff9c99}
.web-projector-power.is-on>.web-mobile-icon{filter:drop-shadow(0 0 3px #57ff74) drop-shadow(0 0 7px #36ed5d)}
.web-page .web-route-columns .web-projector-power:hover{outline:1px solid currentColor;outline-offset:-2px}

.web-page .web-element[data-variant=hotel] .web-projector-row>[data-route-target]{background:transparent}
.web-projector-power>.web-mobile-icon{color:inherit!important}

/* Every screen uses a continuous viewport backdrop without an outer page frame. */
.web-home-page.web-hotel-page{border:0;border-radius:0}
.web-runtime-background #panel{background:transparent!important;border:0;border-radius:0}
.web-runtime-background #panel>.web-client-background{display:none}
/* Keep artwork in document flow: Safari can extend it beneath browser chrome. */
#viewport-background{position:absolute;inset:0;z-index:-1;pointer-events:none;background-size:cover;background-position:center;background-repeat:no-repeat}
#viewport-background[hidden]{display:none}

/* Power is a square control; only confirmed ON receives a steady green border. */
.web-page .web-route-columns button.web-projector-power{position:relative;align-self:center;height:44px;min-height:44px!important;flex:0 0 44px;width:44px;border:1px solid #64717d;border-radius:7px;margin:4px!important}
.web-page .web-route-columns button.web-projector-power.is-on{border-color:#71ff86;box-shadow:0 0 8px #3fff6e66,inset 0 0 14px #3fff6e66,inset 0 0 3px #8aff9c99}
.web-page .web-route-columns button.web-projector-power.web-pending{outline:none;border-color:transparent}
.web-projector-power.web-pending::after{content:"";position:absolute;inset:0;border-radius:6px;pointer-events:none;background:repeating-linear-gradient(90deg,#4bbfff 0 6px,transparent 6px 12px) top left/200% 2px no-repeat,repeating-linear-gradient(180deg,#4bbfff 0 6px,transparent 6px 12px) top right/2px 200% no-repeat,repeating-linear-gradient(90deg,#4bbfff 0 6px,transparent 6px 12px) bottom right/200% 2px no-repeat,repeating-linear-gradient(180deg,#4bbfff 0 6px,transparent 6px 12px) bottom left/2px 200% no-repeat;animation:web-power-dashes .8s linear infinite}
@keyframes web-power-dashes{from{background-position:0 0,100% 0,0 100%,0 0}to{background-position:12px 0,100% 12px,-12px 100%,0 -12px}}
@media(prefers-reduced-motion:reduce){.web-projector-power.web-pending::after{animation:none}}
/* The routing disconnect hit target stays usable, but its visible status is a small dot. */
.web-type-video .web-routing-remove:disabled{opacity:1}

.web-type-audio .web-route-desktop{height:auto;min-height:180px}

.web-page:not([data-view=desktop]) .web-type-video>.web-route-rooms,.web-page:not([data-view=desktop]) .web-type-audio>.web-route-rooms{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;align-items:center}
.web-page:not([data-view=desktop]) .web-route-rooms>h3{width:100%;margin:0 0 2px}
.web-page:not([data-view=desktop]) .web-route-rooms>button{flex:1 1 100px;min-height:44px;font-size:13px;padding:6px}


/* Keep a touch target around the smaller visible disconnect circle. */
.web-page .web-element .web-route-columns button.web-routing-remove{position:absolute;transform:translate(-50%,-50%);width:24px;height:24px;min-height:24px!important;max-height:24px;max-width:none;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;font-size:var(--disconnectCrossSize,21.6px);line-height:24px;display:grid;place-items:center;pointer-events:auto;box-shadow:none;isolation:isolate}
.web-page .web-routing-remove::before{content:"";position:absolute;z-index:-1;width:var(--disconnectDiameter,19.2px);height:var(--disconnectDiameter,19.2px);box-sizing:border-box;border:1px solid #ffafb4;border-radius:50%;background:#b92e41;box-shadow:0 0 9px #cf354455}
.web-type-video .web-routing-remove::before{border-color:#a5ffb2;background:#237b39;box-shadow:0 0 4px #57e87566}

.web-route-columns .web-routing-path{stroke:var(--routeLineColor,#6bcbef);stroke-width:var(--routeLineWidth,2px)}
.web-route-columns .web-routing-path.is-pending{stroke:var(--routePendingColor,#ffd36b);animation-duration:var(--routePendingDuration,1s)}
.web-page .web-route-columns button.web-projector-power.is-on{color:var(--powerOnColor,#71ee87);border-color:var(--powerOnColor,#71ee87);box-shadow:0 0 var(--powerGlow,10px) color-mix(in srgb,var(--powerOnColor,#71ee87) 45%,transparent),inset 0 0 var(--powerGlow,10px) color-mix(in srgb,var(--powerOnColor,#71ee87) 40%,transparent)}
.web-projector-power.is-on>.web-mobile-icon{filter:drop-shadow(0 0 var(--powerGlow,10px) var(--powerOnColor,#71ee87))}

/* Repeated control taps must not trigger Safari's double-tap zoom. */
.web-page button,.web-page input[type=range],.web-page .web-type-lightPoint,.web-page .web-type-shutter,.web-page .web-type-lights,.web-page .web-type-shutters,.web-page .web-type-manual{touch-action:manipulation}

.web-source-group{position:relative}
.web-program-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 6px;align-items:stretch;position:relative}
.web-source-room-label{display:block;grid-column:1/-1;font-size:10px;color:#a8bec7;margin:4px 0 0;line-height:14px}
.web-route-columns .web-program-pair button.web-source-with-icon{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;overflow:hidden}
.web-program-pair .web-source-icon{flex:0 0 auto;min-height:16px}
.web-program-pair .web-source-label{max-width:100%;font-size:10px;line-height:12px;text-align:center;white-space:normal}
.web-program-pair .web-selection-dot{position:absolute;left:5px;top:5px}
.web-program-pair button{position:relative}
.web-route-columns .web-program-pair button.web-source-with-icon{padding:3px!important;gap:2px}
.web-program-pair .web-source-icon svg{height:16px;width:23px}
.web-program-pair .web-source-icon{min-height:16px;max-height:16px}

/* Desktop routing uses a compact room column and vertically ordered sources. */
.web-route-columns.web-route-desktop{grid-template-columns:var(--routing-room-width,140px) minmax(0,1fr) minmax(0,1.1fr)}
.web-route-desktop>.web-route-rooms{min-width:0}
.web-route-desktop>.web-route-rooms>button{white-space:nowrap;padding-left:var(--room-label-padding,12px);padding-right:var(--room-label-padding,12px)}
.web-desktop-source-stack .web-program-pair{grid-template-columns:minmax(0,1fr)}
.web-desktop-source-stack .web-route-columns .web-program-pair button.web-source-with-icon{flex-direction:row;justify-content:flex-start;gap:8px;padding:6px 10px!important}
.web-desktop-source-stack .web-program-pair .web-source-icon svg{width:26px;height:26px}
.web-desktop-source-stack .web-program-pair .web-source-icon{min-height:26px;max-height:26px}
.web-desktop-source-stack .web-program-pair .web-selection-dot{position:static;flex:none}
.web-desktop-source-stack .web-program-pair .web-source-label{font-size:11px;line-height:14px}
.web-page .web-dimmed-container{background-color:rgba(4,15,23,var(--container-dim,0))!important}
.web-dimmed-container .web-spatial-room{background:transparent}
.web-joined-light-plan .web-spatial-room>h3{opacity:.65}
