/* A bounded workspace: map, media and controls share one viewport. */
html{height:100%;overflow:hidden}
body{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.sidebar{width:190px;height:100%;position:relative;flex-shrink:0;padding:24px 14px;overflow:hidden}
.sidebar .brand{font-size:23px;margin-bottom:28px}.sidebar .brand svg{width:27px}.sidebar .workspace{font-size:12px}.sidebar #people{min-height:0;overflow:auto}.sidebar .my-profile{flex-shrink:0}
.app{height:100%;min-height:0;overflow:hidden}
.app>header{height:72px;min-height:72px;flex-shrink:0;padding:0 24px;flex-wrap:nowrap;gap:16px}
.heading h1{font-size:25px;letter-spacing:-.7px}.heading{gap:20px}.heading .online{display:flex;font-size:12px}.header-actions{gap:12px;width:auto;justify-content:flex-end}.session-chip{gap:10px}.session-chip>span{display:inline}.header-actions .invite{display:flex}
.app>main{position:relative;display:flex;flex:1;min-width:0;min-height:0;overflow:hidden;flex-wrap:nowrap}
.office{width:100%;height:100%;flex:1;min-height:0;min-width:0;display:grid;grid-template-rows:25px 55px minmax(0,1fr) 76px;gap:0;padding:0 20px;overflow:hidden}
.connection-strip{padding:4px 2px 0;min-height:0;font-size:11px;line-height:1.3}.testing-label{font-size:10px;letter-spacing:.4px}
.map-tools{height:auto;min-height:0;gap:14px}.map-tools #floor-select{font-size:13px}.map-hint{font-size:12px;color:#938a9f}.map-tools .my-door{margin-left:auto;font-size:12px;white-space:nowrap}.map-tools .room-panel-toggle{display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #dfd8e9;border-radius:8px;background:#fff;color:#6d617c;padding:8px 10px;font-size:12px;font-weight:600}.room-panel-toggle[aria-expanded=true]{border-color:#af95e2;background:#eee7fa;color:#7050bb}.room-panel-toggle .icon{width:15px;height:15px}
.office-stage{--dock-width:clamp(260px,26vw,350px);display:grid;grid-template-columns:minmax(0,1fr) var(--dock-width);gap:20px;min-width:0;min-height:0;overflow:hidden}
.office-map{display:grid;grid-template-rows:minmax(0,1fr) 32px;min-width:0;min-height:0;position:relative;border-radius:12px;background:#ecebf2}
.map-viewport{display:flex;align-items:safe center;justify-content:safe center;flex:initial;width:100%;height:100%;min-width:0;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}
.floorplan{min-width:0;min-height:0;width:100%;max-width:1100px;transition:none;border-width:7px;container-type:inline-size}
.floorplan .room-label{font-size:clamp(8px,2.1cqw,13px);padding:4px 6px;max-width:94%;gap:4px;white-space:nowrap}.floorplan .room-label .icon{width:1.1em;height:1.1em}.floorplan .room-person .avatar{width:clamp(24px,6cqw,43px);height:clamp(24px,6cqw,43px);border-width:2px}.floorplan .room-person .name{font-size:clamp(8px,1.8cqw,12px);padding:2px 5px}.floorplan .hallway>span{font-size:clamp(6px,1.5cqw,10px);letter-spacing:.35em}.floorplan .plant{width:clamp(12px,4cqw,26px);height:clamp(12px,4cqw,26px)}.floorplan .plant.small{width:clamp(10px,3cqw,18px);height:clamp(10px,3cqw,18px)}
.map-bottom{height:32px;padding:0 13px 5px;gap:8px}.map-caption{display:block;font-size:10px;color:#a094ad}.zoom{gap:7px}.zoom button{width:24px;height:24px}.zoom #zoom-label{font-size:10px}
.live-call{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;padding:0;background:#fff;border:1px solid #e2dcea;border-radius:12px;overflow:hidden;box-shadow:0 3px 10px #3c215808;position:relative;flex-shrink:1}
.live-call-heading{min-height:88px;flex-shrink:0;padding:18px 16px 12px;align-items:flex-start;border-bottom:1px solid #f1edf5;gap:8px}.live-call-heading>div:first-child{min-width:0}.live-call-heading small{font-size:10px;letter-spacing:1.7px}.live-call h2{font-size:18px;letter-spacing:-.4px;margin:5px 0}.live-call-heading p{font-size:11px;line-height:1.5;color:#9b90a7;margin:0;max-width:245px}.call-view-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.call-view-actions .icon-button{width:29px;height:29px;border:1px solid #eae4f1;background:#faf8fd;border-radius:7px;color:#8b7b9d}.call-view-actions .text-button{font-size:11px;white-space:nowrap;padding:5px}.playback-button{font-size:12px;margin:8px 12px 0;flex-shrink:0}
.media-canvas{position:relative;min-height:0;min-width:0;flex:1;display:grid;padding:12px;overflow:hidden}
.media-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);gap:10px;min-height:0;min-width:0;overflow:hidden;height:100%}.media-grid:empty{display:none}
.media-tile{min-width:0;min-height:0;aspect-ratio:auto;border-radius:9px;position:relative;overflow:hidden;background:#27232f;outline-offset:-3px}.media-tile video{width:100%;height:100%;max-height:100%;object-fit:contain}.media-tile>span{font-size:11px;bottom:8px;left:8px;padding:4px 7px;max-width:calc(100% - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.media-tile[data-kind=camera],.media-tile[data-kind=screen]{cursor:zoom-in}.media-tile:focus-visible{outline:2px solid #b695ff}
.audio-tile{min-height:0;background:#f5f1fa;border:1px solid #eee6f6;display:flex;align-items:center;justify-content:center;flex-direction:column}.audio-tile>span{position:static;white-space:normal;color:#736282;margin:0;text-align:center}.audio-mark{font-size:11px;margin:5px 10px;color:#658674}.media-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;padding:22px 16px;border:0;background:radial-gradient(ellipse at center,#f2edf9,#faf8fc 70%);border-radius:9px;min-width:0;min-height:0;color:#93839f}.media-empty .empty-camera-icon{width:27px;height:27px;color:#b6a6c7;margin:18px 0 1px}.media-empty p{font-size:17px;font-weight:600;letter-spacing:-.3px;color:#766285;margin:10px 0 7px}.media-empty small{font-size:12px;line-height:1.7;max-width:200px}.call-roster{display:flex;justify-content:center;gap:0;min-height:45px}.call-roster .avatar{width:52px;height:52px;border:3px solid white;box-shadow:0 5px 12px #79658a18}.call-roster .avatar+.avatar{margin-left:-11px}
.call-diagnostics{flex-shrink:0;min-height:0;padding:0 14px 10px;position:relative}.device-error{font-size:11px;max-height:58px;overflow:auto;line-height:1.5;margin:0 0 6px}.device-details{font-size:11px;margin:0;padding:8px 0 0;border-top:1px solid #eee8f3}.device-details summary{color:#a196ae;font-weight:500;list-style:none;cursor:pointer}.device-details summary:before{content:'+';display:inline-block;margin-right:6px}.device-details[open]{position:absolute;bottom:8px;left:8px;right:8px;border:1px solid #ddd3e8;border-radius:9px;padding:12px;background:white;box-shadow:0 -8px 28px #3f29451c;z-index:5;max-height:min(330px,60vh);overflow:auto}.device-details[open] summary:before{content:'−'}.device-details p{font-size:11px;line-height:1.6}.device-checks{font-size:11px;gap:10px}
.office-stage.media-focused{grid-template-columns:minmax(170px,23%) minmax(0,1fr)}.media-focused .office-map{grid-template-rows:minmax(0,1fr) 32px}.media-focused .map-viewport{padding:8px}.media-focused .map-caption{display:none}.media-focused .map-bottom{justify-content:center}.media-focused .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr) minmax(0,24%);grid-auto-rows:minmax(0,24%)}.media-focused .media-tile.is-featured{grid-column:1/-1;grid-row:1;cursor:default}.media-focused .media-tile:only-child{grid-row:1/-1;grid-column:1/-1}.media-focused .live-call-heading{min-height:76px;padding:14px 18px}.media-focused #focus-call{display:none}.media-focused .media-empty{grid-column:1/-1}
.callbar{position:static;bottom:auto;grid-row:4;align-self:center;justify-self:stretch;display:flex;align-items:center;justify-content:center;gap:16px;margin:0;width:auto;height:56px;padding:8px 16px;border-radius:12px;box-shadow:0 2px 8px #3e245409;z-index:10;min-width:0;flex-wrap:nowrap}.callbar .location{flex:1;font-size:11px;min-width:0;border:0;padding-right:0;gap:8px}.location>span:last-child{display:flex;flex-direction:column;gap:3px;color:#a297ad}.location strong{font-size:13px;color:#6c5f7a}.media-buttons{gap:8px}.media-buttons .media{width:36px;height:36px;flex-shrink:0}.callbar .home-button{margin-left:auto;font-size:12px}.callbar .call-demo{display:block;font-size:10px;max-width:none;white-space:nowrap;color:#9d91a9}.media.enabled{box-shadow:0 2px 6px #7754d82b}
.request-inbox{position:absolute;top:80px;left:32px;right:calc(clamp(260px,26vw,350px) + 52px);max-height:min(220px,35%);z-index:16;overflow:auto;pointer-events:none;padding:0}.request-inbox:empty{display:none}.request-inbox>*{pointer-events:auto}.knock-notice{box-shadow:0 6px 16px #4b30601a;background:#fff;border-color:#d9cbea;font-size:12px}.knock-notice small{font-size:11px}.knock-notice .primary,.knock-notice .text-button{font-size:11px;white-space:nowrap}
.room-drawer.panel{position:absolute;top:80px;bottom:76px;left:20px;right:auto;width:min(340px,calc(100% - 40px));height:auto;min-height:0;min-width:0;z-index:14;padding:0 18px 16px;display:flex;flex-direction:column;gap:0;border:1px solid #dfd3eb;border-radius:12px;box-shadow:0 12px 36px #3b284b24;background:white;overflow:auto}.drawer-top{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:43px;border-bottom:1px solid #eee7f4;margin-bottom:16px}.drawer-top>span{font-size:10px;letter-spacing:1.5px;font-weight:600;color:#a394b1}.drawer-top .icon-button{font-size:23px;width:26px;height:26px}.room-drawer .panel-heading{flex-shrink:0;padding:0;margin-bottom:14px}.room-drawer h2{font-size:18px}.room-drawer #occupants{max-height:100px;overflow:auto;flex-shrink:0}.room-drawer #occupants .person{padding:6px 0}.room-drawer .person .avatar{width:30px;height:30px}.room-drawer .door-hint{font-size:11px;margin:9px 0}.room-drawer .room-actions{flex-shrink:0}.room-drawer .room-actions .primary,.room-drawer .room-actions .secondary{font-size:12px;padding:9px}.room-drawer .chat{flex:1;min-height:130px;display:flex;flex-direction:column;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #eee8f3;border-left:0}.room-drawer .chat-heading{flex-shrink:0;margin:0 0 8px}.room-drawer .chat-heading h3{font-size:13px}.room-drawer #messages{min-height:30px;flex:1;overflow:auto}.room-drawer #chatform{flex-shrink:0}.room-drawer .demo-note{display:none}
.notification-popups{top:88px;right:30px;width:300px;max-height:calc(100dvh - 200px)}.notification-popup{box-shadow:0 12px 30px #32214524}.notification-popup p{font-size:12px}
button:focus-visible,summary:focus-visible{outline:2px solid #8d67d7;outline-offset:3px}.icon-button:active,.room-panel-toggle:active{transform:scale(.97)}
@media(max-width:1200px){.sidebar{width:164px;padding-inline:11px}.sidebar .brand{font-size:20px}.sidebar .workspace{font-size:10px}.sidebar .nav{font-size:12px}.office{padding-inline:15px;grid-template-rows:25px 50px minmax(0,1fr) 70px}.office-stage{--dock-width:280px;gap:15px}.app>header{height:66px;min-height:66px;padding-inline:20px}.heading h1{font-size:22px}.heading .online{font-size:10px}.header-actions{gap:7px}.map-hint{display:none}.map-tools .my-door{margin-left:auto}.callbar .call-demo{display:none}.room-drawer.panel{left:15px;top:75px;bottom:70px}.request-inbox{top:75px;left:25px;right:310px}.media-focused .map-bottom{padding:0 4px 5px}.media-focused .zoom{gap:3px}}
@media(max-width:960px){body{height:100dvh;min-height:0;overflow:hidden}.sidebar{width:64px;height:100%;position:relative;padding:20px 8px}.sidebar .brand{font-size:0;margin-bottom:22px}.sidebar .brand svg{width:27px}.sidebar .workspace,.sidebar .team-heading,.sidebar .search,.sidebar #people,.sidebar .my-profile{display:none}.sidebar .nav{font-size:0;padding:12px 10px}.sidebar .nav .icon{width:20px;height:20px}.app>main{flex-wrap:nowrap}.office{min-height:0;overflow:hidden;grid-template-rows:24px 48px minmax(0,1fr) 68px}.office-stage{--dock-width:260px;gap:12px}.map-viewport{height:100%;min-height:0;min-width:0;padding:10px}.panel{width:auto;display:flex}.map-bottom .map-caption{display:none}.map-bottom{justify-content:center}.app>header{height:62px;min-height:62px;padding:0 16px;flex-wrap:nowrap}.heading .online{display:none}.header-actions{width:auto;gap:7px}.header-actions>.icon-button{display:inline-flex}.header-actions .invite{font-size:11px;padding:8px}.header-actions .session-chip{display:flex}.callbar{height:53px;gap:12px;padding:8px 12px}.room-drawer.panel{top:72px;bottom:68px}.request-inbox{top:72px;right:290px}.media-focused .floorplan .room-label{font-size:7px}}
@media(max-width:700px){.sidebar{width:52px;padding:18px 5px}.sidebar .brand svg{width:25px}.sidebar .nav{padding:11px 8px}.app>header{height:54px;min-height:54px;padding:0 12px;gap:5px}.heading h1{font-size:20px;white-space:nowrap}.header-actions{gap:4px}.header-actions .invite,.header-actions #settings,.session-chip>span{display:none}.session-chip button{font-size:10px;padding:4px}.header-actions .icon-button{width:28px;height:28px}.office{padding:0 10px;grid-template-rows:22px 42px minmax(0,1fr) 64px}.connection-strip{font-size:10px;padding-top:2px}.testing-label{display:none}.map-tools{gap:7px}.map-tools #floor-select{font-size:11px;gap:5px}.map-tools #floor-select .icon{width:14px;height:14px}.map-tools .my-door{font-size:10px;padding:6px;gap:4px}.map-tools .my-door .icon{width:12px;height:12px}.map-tools #help{display:none}.map-tools .room-panel-toggle{font-size:0;gap:0;width:30px;height:29px;justify-content:center;padding:0}.room-panel-toggle .icon{width:16px;height:16px}.office-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,48%) minmax(0,1fr);gap:10px}.office-map{grid-template-rows:minmax(0,1fr) 22px}.map-viewport{padding:6px}.map-bottom{height:22px;padding:0 6px 3px}.zoom{gap:6px}.zoom button{width:20px;height:20px}.floorplan{border-width:4px}.floorplan .room-label{font-size:clamp(7px,2.6cqw,10px);padding:2px 3px;gap:2px}.floorplan .room-label .icon{display:none}.floorplan .room-person .avatar{width:clamp(20px,8cqw,30px);height:clamp(20px,8cqw,30px)}.floorplan .room-person .name{font-size:8px;padding:1px 4px}.floorplan .hallway>span{font-size:6px}.live-call-heading{min-height:58px;padding:10px 12px 8px}.live-call-heading small{font-size:8px;letter-spacing:1.4px}.live-call h2{font-size:14px;margin:3px 0}.live-call-heading p{display:none}.call-view-actions .icon-button{width:25px;height:25px}.media-canvas{padding:7px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:7px}.media-tile:only-child{grid-column:1/-1}.media-tile>span{font-size:9px;padding:3px 5px;bottom:5px;left:5px}.media-empty{padding:8px;flex-direction:row;flex-wrap:wrap;column-gap:12px;align-content:center}.call-roster{min-height:30px}.call-roster .avatar{width:34px;height:34px;border-width:2px}.media-empty .empty-camera-icon{display:none}.media-empty p{font-size:13px;margin:0}.media-empty small{font-size:10px;line-height:1.5;flex-basis:100%;max-width:none;margin-top:6px}.call-diagnostics{padding:0 10px 6px}.device-details{padding-top:4px;font-size:10px}.device-error{font-size:10px;max-height:42px}.audio-mark{font-size:9px;margin:3px 6px}.audio-tile>span{font-size:10px}.callbar{height:52px;padding:6px 8px;gap:7px;justify-content:space-between;flex-wrap:nowrap}.callbar .location{font-size:0;gap:0;flex:1}.callbar .location>.icon{display:none}.location>span:last-child{font-size:0;gap:0}.location strong{font-size:10px;line-height:1.4;max-width:60px}.media-buttons{gap:5px}.media-buttons .media{width:30px;height:30px}.media-buttons .media .icon{width:16px;height:16px}.callbar .home-button{display:none}.callbar .call-demo{display:none}.office-stage.media-focused{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.media-focused .office-map{display:none}.media-focused .live-call-heading{min-height:64px;padding:10px 12px}.media-focused .live-call-heading p{display:block;font-size:10px}.media-focused .media-grid{grid-template-rows:minmax(0,1fr) minmax(0,24%)}.room-drawer.panel{top:64px;bottom:64px;left:10px;width:calc(100% - 20px);padding:0 14px 12px}.request-inbox{top:64px;left:18px;right:18px;max-height:34%;}.knock-notice{padding:10px;gap:8px;flex-wrap:wrap}.knock-notice>div{flex:1;min-width:100px}.knock-notice strong{font-size:11px}.knock-notice small{font-size:10px}.notification-popups{top:65px;right:12px;width:calc(100% - 76px);max-height:40dvh}.notification-popup{padding:10px}.notification-popup strong{font-size:12px}.notification-popup p{font-size:11px}.notification-popup small{font-size:9px}}
@media(max-height:650px) and (min-width:701px){.app>header{height:56px;min-height:56px}.office{grid-template-rows:22px 42px minmax(0,1fr) 62px}.map-tools{gap:8px}.live-call-heading{min-height:70px;padding:10px 12px}.live-call-heading p{font-size:10px}.live-call h2{font-size:16px}.callbar{height:49px}.sidebar{padding-top:16px}.sidebar .brand{margin-bottom:16px}.sidebar .nav{padding-top:10px;padding-bottom:10px}.room-drawer.panel{top:64px;bottom:62px}.request-inbox{top:64px}.media-empty small{font-size:11px}.call-roster .avatar{width:40px;height:40px}.media-empty .empty-camera-icon{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.icon-button:active,.room-panel-toggle:active{transform:none}}
.audio-tile.audio-has-camera{display:none}.office-stage:not(.media-focused) .media-grid[data-tile-count="3"],.office-stage:not(.media-focused) .media-grid[data-tile-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.login-card .brand{font-size:24px}.device-details[open]{max-height:min(300px,calc(100dvh - 220px))}
/* Keep the room drawer's input visible while its history scrolls. */
.room-drawer.panel{overflow:hidden}.room-drawer .drawer-top{height:32px;margin-bottom:8px}.room-drawer .panel-heading{margin-bottom:6px}.room-drawer .panel-heading h2{margin:0 0 5px;line-height:1.25}.room-drawer .panel-heading p{margin:0;font-size:11px;line-height:1.5}.room-drawer #occupants{max-height:76px}.room-drawer #occupants .person{padding:4px 0;gap:8px}.room-drawer #occupants .person-location{display:none}.room-drawer #occupants strong{font-size:12px;line-height:1.3}.room-drawer #occupants small{font-size:10px;line-height:1.2}.room-drawer .door-hint{margin:7px 0;font-size:10px}.room-drawer .room-actions{margin:5px 0 8px;gap:6px}.room-drawer #join:disabled{display:none}.room-drawer .door-action{padding:4px;margin:0;font-size:11px}.room-drawer .chat{min-height:90px;margin-top:6px;padding-top:10px}.room-drawer #chatform{margin-top:8px}.room-drawer #message{font-size:12px}.room-drawer .chat-message{display:flex;align-items:flex-start}.room-drawer #messages{display:block}.room-drawer .chat-message .avatar{width:24px;height:24px}
.office-stage:not(.media-focused) .media-grid[data-tile-count="3"] [data-kind="screen"]{grid-column:1/-1;grid-row:1}
