:root { color-scheme: dark; scrollbar-gutter: stable; font-family: "Segoe UI", system-ui, sans-serif; background: #13191d; color: #f5f0e7; --edge: #3c4547; --muted: #bfc7c5; --panel: #20282d; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1550px; padding: clamp(12px, 2.4vw, 28px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 700; letter-spacing: -.055em; }
h2 { font-size: 1.4rem; line-height: 1.2; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 14px; }
.bar p, .role { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.bar p { margin-top: 4px; }
.bar-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
#office-actions { justify-self: end; }
.view-switch { display: flex; align-items: center; gap: 5px; padding: 4px; background: #20282d; border: 1px solid var(--edge); border-radius: 13px; }
.view-switch button { display: inline-flex; align-items: center; gap: 7px; background: transparent; border-color: transparent; white-space: nowrap; }
.view-switch button[aria-pressed="true"] { color: #ffe0a8; background: #41372b; border-color: #84694d; }
.view-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
button, select, .switch { min-height: 44px; border: 1px solid var(--edge); border-radius: 10px; color: inherit; background: #263036; padding: 8px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #eac487; outline-offset: 2px; }
button:hover { background-color: #34434a; }
button:disabled, textarea:disabled { opacity: .55; cursor: default; }
.switch { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.switch input { accent-color: #a6debe; }
#office-view { --office-height: clamp(360px, calc(100dvh - 190px), 730px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 325px); align-items: start; gap: 14px; }
#office-view[hidden], #chat-view[hidden], #office-actions[hidden] { display: none; }
#office-view:not([hidden]), #chat-view:not([hidden]) { animation: view-slide 180ms ease-out; }
@keyframes view-slide { from { opacity: .5; transform: translateX(9px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { #office-view:not([hidden]), #chat-view:not([hidden]) { animation: none; } }
.scene { position: relative; overflow: hidden; min-width: 0; height: var(--office-height); border: 1px solid var(--edge); border-radius: 16px; background: radial-gradient(ellipse at 50% 46%, #384741, #252f31 52%, #1a2328); }
.expanded-report { min-width: 0; height: var(--office-height); overflow: auto; padding: clamp(20px, 4vw, 52px); border: 1px solid var(--edge); border-radius: 16px; background: #202a30; overflow-wrap: anywhere; }
.plan-header p, .plan-context h3 { color: #f3ca93; font-weight: 650; font-size: .875rem; }
.plan-header h2 { margin-top: 7px; font-size: clamp(1.6rem, 3vw, 2.55rem); }
.plan-text { max-width: 60ch; margin-top: 20px; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.55; }
.plan-context { max-width: 68ch; border-top: 1px solid var(--edge); padding-top: 17px; margin-top: clamp(22px, 4vw, 42px); }
.plan-context p { color: var(--muted); margin-top: 7px; line-height: 1.5; }
canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
canvas:active { cursor: grabbing; }
.gesture { position: absolute; left: 12px; top: 11px; pointer-events: none; background: #1a2328ee; color: var(--muted); border-radius: 8px; padding: 7px 9px; font-size: .75rem; }
.camera { position: absolute; bottom: 11px; right: 11px; display: flex; gap: 6px; }
.camera button { min-width: 44px; background: #20292fee; }
.camera button:first-child, .camera button:nth-child(2) { font-size: 1.3rem; }
.details { min-width: 0; max-height: var(--office-height); overflow: auto; display: grid; align-content: start; gap: 14px; border: 1px solid var(--edge); background: var(--panel); border-radius: 14px; padding: 14px; }
.report-pickers, .room-report { min-width: 0; display: grid; gap: 7px; }
.report-pickers label { color: var(--muted); font-size: .82rem; }
.report-pickers select { width: 100%; min-width: 0; }
.room-report { padding-top: 12px; border-top: 1px solid var(--edge); overflow-wrap: anywhere; }
.room-report-heading { display: grid; gap: 3px; }
.room-report h2 { font-size: 1.16rem; }
.room-report p, dialog p { line-height: 1.45; }
.report-place { margin-top: 3px; }
.status { font-size: .8rem; font-weight: 650; }
.status[data-state="working"] { color: #93e5b9; }
.status[data-state="testing"] { color: #f8ca80; }
.status[data-state="idle"] { color: #f3a6a0; }
.status[data-state="reserved"], .status[data-state="paused"] { color: #c8bdcf; }
.status[data-state="planned"] { color: #b6d8f4; }
.primary { justify-self: start; border-color: #c4a673; background: #4b3e2d; }
dialog { color: inherit; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 16px; }
dialog::backdrop { background: #0c141ad0; }
dialog header { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
dialog header h2 { margin: 0; }
dialog article { border-top: 1px solid var(--edge); padding: 10px 0; }
dialog article h3 { margin-bottom: 4px; }
dialog label { display: block; margin-top: 12px; color: var(--muted); }
textarea { margin: 6px 0 10px; width: 100%; background: #172126; border: 1px solid var(--edge); border-radius: 8px; color: inherit; padding: 9px; font: inherit; }
.chat-layout { width: min(960px, 100%); height: max(400px, calc(100dvh - 125px)); margin: auto; padding: clamp(12px, 3vw, 28px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #1a2429; border: 1px solid var(--edge); border-radius: 16px; }
.chat-header { padding-bottom: 12px; border-bottom: 1px solid var(--edge); margin-bottom: 0; }
.chat-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
#conversation { list-style: none; padding: 16px 3px; margin: 0; overflow: auto; }
#conversation li { max-width: 92%; padding: 13px 16px; margin: 0 0 12px; background: #28343a; border-radius: 12px; }
#conversation li[data-author="Sen"] { width: fit-content; background: #3f392e; margin-left: auto; }
#conversation li p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; }
.chat-bottom { border-top: 1px solid var(--edge); padding-top: 10px; }
.speech-controls { display: flex; flex-wrap: wrap; gap: 7px; }
#speech-caption { min-height: 1.4em; margin-top: 6px; color: #f4ce95; }
#chat-status { color: var(--muted); min-height: 1.4em; margin-top: 5px; }
#chat-form label { display: block; margin-top: 9px; color: var(--muted); }
#microphone { display: inline-flex; align-items: center; gap: 7px; }
#microphone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
#microphone[aria-pressed="true"] { color: #ffddd2; background: #633e36; border-color: #d88a74; }
#mic-status { margin: 0; color: var(--muted); font-size: .88rem; }
a { color: #f4ce95; }
@media (max-width: 760px) {
  .bar { display: flex; flex-wrap: wrap; justify-content: space-between; }
  #office-view { grid-template-columns: minmax(0, 1fr); }
  .scene { height: clamp(280px, 49dvh, 445px); }
  .expanded-report { height: auto; min-height: 290px; overflow: visible; }
  .details { max-height: none; overflow: visible; }
}
@media (max-width: 465px) {
  .bar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .scene { height: 42dvh; min-height: 275px; }
}
