:root{font:15px/1.5 Inter,Arial,sans-serif;color:#263b38;background:#dce4e6;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a,textarea{font:inherit}button{border:1px solid #c6d5ce;background:#ffffffba;border-radius:10px;padding:9px 13px;color:inherit;cursor:pointer}button:hover:not(:disabled){background:#e3efe8}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #49896e;outline-offset:3px}canvas{display:block;position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;left:24px;right:24px;top:20px;display:flex;align-items:center;gap:22px;pointer-events:none}header>*{pointer-events:auto}header>span{font-size:12px;letter-spacing:.13em;font-weight:700;text-shadow:0 1px 8px #fff}header small{display:block;font-weight:400;letter-spacing:.03em}header button{margin-left:auto;background:#fffffff0}.brand{font-size:34px;font-weight:700;text-decoration:none;color:#183e34;letter-spacing:-3px}.brand sup{font-size:15px;vertical-align:super;letter-spacing:0}aside{position:fixed;left:24px;top:96px;bottom:126px;width:290px;overflow:auto;padding:24px;background:#fbfcf5ed;border:1px solid #fff;border-radius:20px;box-shadow:0 12px 35px #193b3010;scrollbar-width:thin}.eyebrow{font-size:9px;font-weight:700;letter-spacing:.16em;color:#617e70}h1{font-size:31px;line-height:1.12;letter-spacing:-1px;font-weight:500;margin:20px 0}.intro{font-size:13px;color:#687e74}h2{font-size:12px;margin:25px 0 10px}.view-actions,.floors{display:flex;gap:6px}.floors button{flex:1}.room{width:100%;text-align:left;margin:4px 0;padding:10px 12px;border:0;background:transparent;border-bottom:1px solid #dfe6df;border-radius:0}.room small{display:block;color:#728179;font-size:11px}.note{font-size:10px;color:#718076}.room.selected{background:#dfebe1}.room b{font-size:12px;font-weight:500}footer{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#fffffff0;border:1px solid #fff;border-radius:16px;padding:10px 20px;box-shadow:0 4px 30px #0001;text-align:center;white-space:nowrap}footer p{font-size:13px;margin:0;color:#294f41}footer span{font-size:10px;color:#6c7e75}.touch{display:none}dialog{width:min(440px,calc(100vw - 30px));border:1px solid #d3ded7;border-radius:20px;padding:24px;background:#fcfdf9;color:#263b38;box-shadow:0 20px 100px #1236}dialog::backdrop{background:#16392e55;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:21px;margin:4px 0}.dialog-head small{font-size:10px;letter-spacing:.15em}#connection{font-size:12px;background:#eaf0e8;padding:10px;border-radius:8px}#messages{max-height:32vh;overflow:auto;white-space:pre-wrap;font-size:14px}.message{padding:10px;border-radius:9px;background:#edf1e9}.message.user{background:#e0ece4}form{display:flex;gap:8px;align-items:stretch}textarea{resize:vertical;min-width:0;flex:1;border:1px solid #c6d5ce;border-radius:9px;padding:10px;background:white;color:inherit}.sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}[hidden]{display:none!important}@media(max-width:700px){header{left:16px;right:16px;top:10px}aside{left:12px;top:78px;width:255px;bottom:142px;padding:18px}h1{font-size:27px}footer{bottom:10px;white-space:normal;width:calc(100% - 24px);padding:8px}footer span{display:none}.touch{display:flex;justify-content:center;gap:10px;margin-top:5px}.touch button{padding:5px 18px}header>span{font-size:10px}dialog{padding:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.workflow-open{font-size:11px;padding:4px 10px;margin:0 0 8px 10px;background:transparent}#collaboration-open{margin-top:12px;font-size:12px}#workflow-dialog{width:min(650px,calc(100vw - 30px));max-height:88vh;overflow:auto}#workflow-dialog h3{font-size:14px;margin:20px 0 6px}#workflow-dialog li{margin:7px 0;font-size:13px}#workflow-dialog p{font-size:13px}.workflow-picker{display:block;font-size:12px;margin:14px 0}.workflow-picker select{display:block;width:100%;margin-top:5px;font:inherit;font-size:14px;padding:10px;border:1px solid #c6d5ce;border-radius:8px;background:white;color:inherit}.workflow-state{padding:10px;background:#eaf0e8;border-radius:8px}#conversation-workflow{font-size:12px;margin-bottom:10px}

#owner-access-dialog{max-width:440px}#owner-access-dialog label{display:grid;gap:8px;margin:16px 0}#owner-access-dialog input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #9faeaa;border-radius:8px;background:#fff;color:#243a35}#office-voice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}#office-voice p{flex-basis:100%;font-size:13px}#office-voice input{width:auto}#owner-access{margin-left:auto}

/* Keep every office control reachable on narrow screens. */
header{gap:12px;flex-wrap:wrap;z-index:2}header>span{flex:1;min-width:120px}header button,#owner-access{margin-left:0;white-space:nowrap;font-size:12px;padding:8px 11px}
#office-cameras-dialog{width:min(680px,calc(100vw - 30px));max-height:85dvh;overflow:auto}#office-cameras-dialog>div:not(.dialog-head){display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:center}#office-cameras-dialog p{font-size:13px}#office-cameras-dialog .room{white-space:normal;font-size:13px}
#office-camera-controls{padding:12px;border:1px solid #b7ccbf;border-radius:12px;background:#e5efe8;margin-bottom:18px}#office-camera-controls p{margin:0 0 8px;font-size:13px}#office-camera-controls button{font-size:12px;margin:3px;padding:7px}
body[data-office-view="camera"] #conversation,body[data-office-view="camera"] .vi1-room-discussion{position:fixed;inset:90px 20px 105px auto;margin:0;width:min(470px,calc(100vw - 30px));max-height:calc(100dvh - 195px);overflow:auto;box-shadow:0 8px 35px #1234}
body[data-office-view="camera"] #conversation::backdrop,body[data-office-view="camera"] .vi1-room-discussion::backdrop{background:transparent;backdrop-filter:none}
@media(max-width:1000px){header{gap:8px}header>span{flex-basis:calc(100% - 70px)}header button{flex:1}aside{top:124px}}
@media(max-width:700px){header{left:12px;right:12px;gap:6px}header>span{font-size:10px;min-width:0}header button,#owner-access{font-size:11px;padding:8px 5px}aside{top:126px}body[data-office-view="camera"] #conversation,body[data-office-view="camera"] .vi1-room-discussion{inset:auto 10px 10px 10px;width:auto;max-height:58dvh}#office-cameras-dialog>div:not(.dialog-head){grid-template-columns:minmax(0,1fr) auto}#office-cameras-dialog>div:not(.dialog-head)>button:first-child{grid-column:1/-1}#owner-access-dialog form{flex-direction:column}#owner-access-dialog label{margin:10px 0}}

/* Owner task-board form layout: scoped to avoid changing chat composers. */
.vi1-taskboard form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.vi1-taskboard form>label{display:block;min-width:0;overflow-wrap:anywhere}.vi1-taskboard form input,.vi1-taskboard form select,.vi1-taskboard form textarea{min-width:0;max-width:100%}.vi1-taskboard form>button{grid-column:1/-1;justify-self:start}@media(max-width:520px){.vi1-taskboard form{grid-template-columns:minmax(0,1fr)}}

/* Touch-first conversation: readable history above a bottom composer. */
#conversation[open]{display:flex;flex-direction:column;width:min(760px,calc(100vw - 24px));height:min(820px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:20px;overflow:hidden;box-sizing:border-box}
#conversation .dialog-head,#conversation #connection,#conversation #conversation-workflow,#conversation #chat-form,#conversation>.note{flex-shrink:0}
#conversation #messages{flex:1 1 auto;min-height:100px;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px 4px}
#conversation .message{white-space:pre-wrap;overflow-wrap:anywhere;max-width:90%;padding:12px 16px;border-radius:16px;line-height:1.55}
#conversation .message.user{margin-left:auto;background:#e5efe9;color:#193f35}
#conversation .message.delivery{font-size:13px;background:transparent;color:#557466}
#conversation #chat-form{display:flex;align-items:flex-end;gap:10px;padding:12px 0 0;margin:0;border-top:1px solid #d3dfd7}
#conversation #message{flex:1;min-width:0;resize:vertical;max-height:130px;min-height:48px;font-size:16px;border-radius:14px;padding:12px}
#conversation button,#conversation select{min-height:44px;touch-action:manipulation}
#conversation .live-talk{background:#1d5f4e;color:white;border:1px solid #174e3f;border-radius:24px;font-weight:700;padding:10px 18px}
#conversation #office-voice{max-height:210px;overflow:auto;flex-shrink:0}
#conversation #office-voice>p{font-size:12px;margin:6px 0}
@media(max-width:620px){#conversation[open]{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;margin:0;border-radius:0;padding:12px}#conversation #office-voice{max-height:165px}#conversation #messages{min-height:70px}#conversation #connection{font-size:12px}#conversation .dialog-head h2{font-size:17px}#conversation>.note{font-size:10px;margin:5px 0}}

/* Override inherited dock positioning without extending beyond the viewport. */
body #conversation[open],body[data-office-view="camera"] #conversation[open]{inset:12px 12px auto auto;margin:0;width:min(760px,calc(100vw - 24px));height:min(820px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:auto}
body #conversation[open] #chat-form{bottom:0;z-index:2}
@media(max-width:620px){body #conversation[open],body[data-office-view="camera"] #conversation[open]{inset:0;margin:0;width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:12px}}
@media(max-height:480px){body #conversation[open] #office-voice{max-height:96px}body #conversation[open] #messages{flex-shrink:0;min-height:80px}body #conversation[open] .dialog-head{position:static}}
