:root{color-scheme:light;--ink:#15171b;--muted:#606672;--sub:#818794;--line:#e1e4e9;--wash:#f5f6f8;--blue:#285de5;--blue-wash:#edf2ff;--paper:#fff;--shadow:0 12px 35px #0c1d3c18,0 2px 6px #1723310c;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}[hidden]{display:none!important}body,h1,h2,h3,p,figure{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.46}input,select,button,textarea{border-radius:7px}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #6a94ff;outline-offset:2px}input:focus,textarea:focus,select:focus{outline:2px solid var(--blue);outline-offset:1px}a{color:var(--blue);text-underline-offset:3px}svg.icon{display:block;flex:none;width:17px;height:17px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.muted,.person-meta,.dialog-note,.settings-line,.empty-note{color:var(--muted)}.eyebrow{font-size:10px;text-transform:uppercase;font-weight:650;letter-spacing:.105em;line-height:1.4;color:var(--muted)}.blue-dash{display:inline-block;vertical-align:middle;width:19px;height:3px;background:var(--blue);margin-right:4px}.eyebrow-separator{color:#aab0ba;margin:0 3px}
.primary,.quiet-button,.icon-button,.channel-pill,.send,.chip-button,.roster-add,.starter{display:inline-flex;align-items:center;justify-content:center;gap:7px}.primary{background:var(--blue);color:white;padding:9px 15px;font-weight:600}.primary:hover,.send:not(:disabled):hover{background:#1343c1}.quiet-button,.chip-button,.roster-add{border:1px solid var(--line);background:white;padding:7px 12px;font-weight:550;font-size:13px}.quiet-button:hover,.chip-button:hover,.icon-button:hover,.channel-pill:hover,.roster-add:hover{background:var(--wash)}.icon-button{width:34px;height:34px;color:#4c525c;flex:none}.app-bar{height:54px;display:flex;align-items:center;padding:0 22px;gap:16px;border-bottom:1px solid var(--line);background:white;position:relative;z-index:3}.brand{display:inline-flex;align-items:center;gap:9px;font-size:20px;font-weight:730;letter-spacing:-.065em;line-height:1;text-decoration:none;color:var(--ink)}.brand img{width:29px;height:29px}.crumb{border-left:1px solid #d5d9df;padding-left:16px;font-size:12px;color:var(--muted)}.bar-right{margin-left:auto;display:flex;align-items:center;gap:6px}.channel-pill{font-size:12px;gap:7px;color:var(--muted);padding:5px 9px;border:1px solid var(--line);border-radius:7px}.dot,.live-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--sub)}.channel-pill.ready .dot,.live-dot{background:var(--blue)}.channel-pill.problem .dot{background:transparent;border:1px solid var(--sub)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(318px,28vw,450px);height:calc(100dvh - 54px);min-height:450px;width:100%}.floor-pane,.chat-pane{min-width:0;min-height:0}.floor-pane{display:flex;flex-direction:column;position:relative;background:white}.office-surface{position:relative;overflow:hidden;isolation:isolate;flex:1;min-height:0;background:#fff}#office-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#office-canvas.dragging{cursor:grabbing}.scene-top,.scene-bottom{position:absolute;left:clamp(14px,2vw,34px);right:clamp(14px,2vw,34px);display:flex;pointer-events:none;align-items:flex-start;justify-content:space-between;gap:8px}.scene-top{top:clamp(18px,2.3vw,36px)}.floor-caption{max-width:75%;color:var(--ink);text-shadow:0 1px 6px white,0 0 12px white}.floor-caption h1{font-size:clamp(22px,2.2vw,34px);letter-spacing:-.055em;line-height:1.1;font-weight:620;margin-top:5px;word-break:break-word}.scene-top button,.scene-tools{pointer-events:auto}.scene-top .quiet-button{border-color:#d9dce2;box-shadow:0 2px 5px #09192c06;margin-top:1px}.scene-top .quiet-button[aria-expanded=true]{border-color:var(--blue);color:var(--blue)}#office-count{display:inline-grid;place-items:center;min-width:20px;height:19px;background:var(--wash);font-size:11px;padding:0 3px;border-radius:4px;font-variant-numeric:tabular-nums}.scene-bottom{bottom:16px;align-items:flex-end}.scene-tools{display:inline-flex;align-items:center;padding:3px;background:#ffffffed;border:1px solid #d6dae1;border-radius:9px;box-shadow:0 3px 10px #12202c0a}.scene-tools span{width:1px;height:15px;background:var(--line);margin:0 2px}.scene-tools button{width:30px;height:29px;display:grid;place-items:center;border-radius:5px}.scene-tools button:hover{background:var(--wash)}.scene-tools button[aria-pressed=true]{color:var(--blue);background:var(--blue-wash)}.scene-tools .icon{width:16px;height:16px}.orbit-hint{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);background:#ffffffdb;border-radius:5px;padding:3px 5px}.orbit-hint .icon{width:14px;height:14px}.empty-office{position:absolute;text-align:center;top:45%;left:50%;transform:translateX(-50%);max-width:320px;background:white;padding:12px;border:1px solid var(--line);border-radius:7px;color:var(--muted)}
.floor-status{display:flex;align-items:center;gap:16px;min-height:43px;border-top:1px solid var(--line);padding:4px clamp(14px,2vw,34px);font-size:11px;color:var(--muted)}.floor-status .icon-button{margin-left:auto;width:26px;height:26px}.floor-status .icon{width:15px;height:15px}.floor-key{display:flex;align-items:center;gap:7px;white-space:nowrap;color:var(--ink);font-weight:600}.live-dot{border-radius:1px;width:6px;height:6px}#floor-stats{display:flex;align-items:center;flex-wrap:wrap;gap:14px;border-left:1px solid var(--line);padding-left:16px;font-variant-numeric:tabular-nums}#floor-stats b{font-weight:650;color:var(--ink);margin-right:3px}
.float-panel{z-index:2;position:absolute;right:clamp(14px,2vw,34px);top:76px;display:flex;flex-direction:column;width:min(326px,calc(100% - 28px));max-height:calc(100% - 133px);overflow:hidden;border:1px solid #dce0e6;border-radius:13px;background:white;box-shadow:var(--shadow)}.panel-head,.desk-head,.dialog-head,.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head{padding:13px 14px 8px}.panel-head h2,.desk-head h2,.dialog-head h2,.chat-heading h2{font-size:18px;font-weight:640;letter-spacing:-.035em;line-height:1.25}.panel-head small{font-size:12px;color:var(--muted);margin-left:3px}.search-box{display:flex!important;align-items:center;gap:8px!important;margin:4px 14px 8px;padding:0 8px;border:1px solid var(--line);border-radius:7px}.search-box .icon{width:14px;color:var(--muted)}.search-box input{background:transparent!important;border:0!important;padding:6px 0!important;font-size:13px!important}.search-box:focus-within{outline:2px solid #bfd0ff}.search-box input:focus{outline:0}#roster{overflow-y:auto;overscroll-behavior:contain;padding:0 5px;min-height:40px}.employee{width:100%;display:flex;align-items:center;gap:9px;padding:6px 9px;text-align:left;color:var(--ink);border-radius:5px;font-size:13px}.employee:hover,.task-row:hover{background:var(--wash)}.employee[aria-pressed=true]{background:var(--blue-wash)}.avatar-dot{display:grid;place-items:center;flex:none;border-radius:5px;height:25px;width:25px;background:#eff1f5;color:#3d4656;font-size:11px;font-weight:650}.employee .employee-state{margin-left:auto;font-size:10px;white-space:nowrap;color:var(--muted)}.employee .employee-state.attention{color:var(--blue)}.roster-add{margin:8px 12px 12px;align-self:stretch;font-size:12px;flex:none}.empty-note{font-size:12px;padding:8px 2px}.desk-card{padding:15px;overflow:auto}.desk-head{align-items:flex-start}.desk-head h2{font-size:18px;margin-top:3px}.person-meta{font-size:12px;line-height:1.45;margin-top:3px}.desk-actions,.form-actions,.inline-actions,.row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.desk-actions{margin:12px 0 4px}.desk-actions .chip-button{font-size:11px;padding:5px 7px}.desk-actions .icon{width:13px;height:13px}.task-row{display:flex;gap:6px;align-items:center;text-align:left;width:100%;padding:8px 2px;border-bottom:1px solid var(--line);border-radius:0;font-size:12px}.task-title{min-width:0;overflow-wrap:anywhere;flex:1}.status,.due{font-size:10px;white-space:nowrap;color:var(--muted)}.status{background:var(--wash);border-radius:4px;padding:2px 4px}.status.blocked,.due.over{color:var(--blue)}.danger-text,.form-error{color:#9d2941}
.chat-pane{display:flex;flex-direction:column;background:white;border-left:1px solid var(--line)}.chat-heading{flex:none;justify-content:flex-start;padding:15px 19px;border-bottom:1px solid var(--line);gap:10px}.assistant-mark{width:32px;height:32px;display:grid;place-items:center;background:#1a1c20;border:1px solid #101115;border-radius:8px;color:white}.assistant-mark .icon{width:18px;height:18px}.chat-heading h2{font-size:17px;line-height:1.1}.chat-kicker{font-size:11px;color:var(--muted)}.pane-switch{display:none}.thread{flex:1;min-height:0;overflow:auto;padding:18px clamp(14px,1.5vw,24px);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d1d5dc transparent}.welcome{min-height:190px;height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px}.welcome h3{font-size:clamp(22px,1.8vw,28px);font-weight:600;line-height:1.12;letter-spacing:-.055em}.welcome p{color:var(--muted);font-size:13px;max-width:34ch;margin-bottom:6px}.starter{background:white;border:1px solid var(--line);width:100%;text-align:left;justify-content:space-between;font-size:12px;padding:9px 10px}.starter .icon{width:14px;height:14px;color:var(--blue)}.starter:hover{border-color:#a5b9ee;background:#f8faff}.message{margin:0 0 19px;min-width:0}.message.user{display:flex;flex-direction:column;align-items:flex-end}.message-meta{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:11px;color:var(--muted);font-weight:550}.message-meta .icon{width:13px;height:13px}.edit-message{color:var(--muted);font-size:10px;padding:1px 3px}.edit-message:hover{text-decoration:underline}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.message.user .message-body{padding:8px 12px;border-radius:12px 12px 3px 12px;background:#f1f3f6;max-width:94%}.compose-zone{padding:10px 14px 10px}.composer{padding:8px;background:white;border:1px solid #cfd4dd;border-radius:12px;box-shadow:0 2px 5px #0a173309}.composer:focus-within{border-color:#879fcf}.composer textarea{width:100%;display:block;resize:vertical;border:0;background:transparent;outline:0;min-height:39px;max-height:150px;padding:4px 5px;font-size:14px}.compose-bar{display:flex;align-items:center;gap:3px}.compose-bar .icon-button{width:28px;height:28px}.model{font-size:10px;color:var(--muted)}.send{margin-left:auto;width:31px;height:30px;background:var(--blue);color:white;border-radius:7px}.send:disabled{background:#e6e9ee;color:#747c87;opacity:1}.keyhint{text-align:center;font-size:10px;color:var(--muted);margin-top:5px}.keyhint span{margin:0 3px}.attachments{display:flex;flex-wrap:wrap;gap:5px}.attachments:empty{display:none}.file-chip,.file-link,.action-note{display:inline-flex;align-items:center;gap:4px;font-size:12px}.file-chip,.file-link{border:1px solid var(--line);border-radius:5px;padding:3px 6px;overflow-wrap:anywhere}.file-chip button{padding:0 3px}.file-chip .icon,.file-link .icon,.action-note .icon{width:13px;height:13px}.message .attachments{margin-top:6px}#editing{display:flex;align-items:center;justify-content:space-between;font-size:11px;padding:1px 3px 5px;border-bottom:1px solid var(--line)}.compact-table{overflow:auto;margin-top:8px}.compact-table table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.compact-table td,.compact-table th{padding:5px 7px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.compact-table th{background:var(--wash)}.chat-chart{margin-top:10px}.chat-chart figcaption{font-size:12px;font-weight:600}.chart-row{display:grid;grid-template-columns:minmax(45px,1fr) minmax(40px,1.3fr) auto;align-items:center;gap:7px;font-size:12px;margin-top:3px}.bar-track{background:var(--wash);border-radius:2px;height:7px}.bar{height:100%;background:var(--blue);border-radius:2px}.action-note{display:flex;margin-top:5px;color:var(--blue)}.pending{color:var(--muted)}
dialog{width:min(460px,calc(100% - 26px));max-height:90dvh;overflow-y:auto;padding:20px;border:1px solid var(--line);background:white;color:var(--ink);border-radius:14px;box-shadow:var(--shadow)}dialog::backdrop{background:#11172355;backdrop-filter:blur(2px)}.dialog-head{margin-bottom:14px}.dialog-head h2{font-size:20px}#dialog-content,#login-form{display:grid;gap:12px}label:not(.sr-only){display:grid;gap:4px;font-weight:550;font-size:12px}input:not([type=color]):not([type=checkbox]):not([type=file]),select,textarea.field{width:100%;font-size:14px;border:1px solid #d4d8df;background:white;padding:9px 10px;min-width:0}input[type=color]{width:100%;height:38px;background:white;border:1px solid var(--line);padding:3px}input[type=file]{max-width:100%}.fields-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-actions{justify-content:flex-end;margin-top:17px}.form-error{font-size:13px}.form-error:empty{display:none}.dialog-note,.settings-line{font-size:13px}.settings-line b{color:var(--ink)}label.toggle-field{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:450}.toggle-field input{accent-color:var(--blue);margin-top:3px}details summary{cursor:pointer}details label{margin-top:8px}.minor-action{justify-self:start;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:3px 0}.minor-action:hover{color:var(--ink)}.archive-row,.legend-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:7px 0;font-size:13px}.archive-row>span{min-width:0;flex:1;overflow-wrap:anywhere}.legend-row{display:grid;grid-template-columns:105px 1fr;align-items:start}.legend-row span{color:var(--muted);font-size:12px}#dialog-error{margin-top:9px}
.entry,#boot{min-height:100dvh;background:white;display:grid;place-items:center;padding:20px}.entry-brand{position:absolute;top:22px;left:clamp(20px,4vw,70px)}.entry-inner{width:min(760px,100%);display:grid;grid-template-columns:1.12fr 1fr;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff}.entry-art{display:flex;flex-flow:column;justify-content:center;position:relative;background:#fff;padding:24px;border-right:1px solid var(--line)}.entry-art svg{width:100%;height:auto}.entry-art>span{position:absolute;left:23px;bottom:16px;font-size:9px;font-weight:650;letter-spacing:.12em;color:var(--muted)}.entry-info{padding:clamp(25px,3.2vw,48px)}.entry-info h1{font-size:34px;line-height:1.13;font-weight:620;letter-spacing:-.055em;margin:6px 0}.entry-info>p{color:var(--muted);font-size:13px}#login-form{margin-top:20px}#login-form .primary{margin-top:3px;justify-content:space-between}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:6;background:#1a1d24;color:white;box-shadow:var(--shadow);padding:9px 15px;max-width:calc(100% - 24px);border-radius:7px;font-size:13px}#toast:empty{display:none}
@media(min-width:1780px){.workspace{grid-template-columns:minmax(0,1fr) 470px}}
@media(max-width:900px) and (min-width:701px){.workspace{grid-template-columns:minmax(0,1fr) 300px}.floor-status{gap:8px}#floor-stats{gap:6px;padding-left:8px}.orbit-hint{display:none}.chat-heading{padding:12px 14px}}

/* Phones show one full workspace; a wide touch screen in landscape stays in phone mode. */
@media (max-width:700px), (pointer:coarse) and (max-height:550px) and (max-width:980px) {
  #app {
    display:flex; flex-direction:column; width:100%;
    height:100vh; height:var(--cabinet-height,100dvh);
    overflow:hidden;
  }
  .app-bar {
    flex:none; height:auto; min-height:60px; display:grid;
    grid-template-columns:auto minmax(0,1fr) auto; gap:8px;
    padding:calc(5px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 5px max(12px,env(safe-area-inset-left));
  }
  .app-bar .brand{font-size:19px;gap:6px}
  .app-bar .brand img{width:28px;height:28px}
  .crumb{display:none}
  .bar-right{margin:0;gap:1px}
  .bar-right .icon-button{width:40px;height:44px}
  .pane-switch {
    display:grid; grid-template-columns:1fr 1fr; justify-self:center; position:relative; isolation:isolate;
    padding:3px; background:#eff2f7; border-radius:999px;
  }
  .pane-switch::before {
    content:"";position:absolute;z-index:-1;inset:3px auto 3px 3px;width:calc((100% - 6px)/2);
    border-radius:999px;background:var(--blue);box-shadow:0 2px 5px #244fc132;
  }
  #app[data-pane="chat"] .pane-switch::before{transform:translateX(100%)}
  .pane-switch button {
    display:flex;align-items:center;justify-content:center;gap:6px;min-width:69px;
    min-height:44px;padding:0 10px;background:transparent;font-size:13px;font-weight:650;
    border-radius:999px;color:#495365;
  }
  .pane-switch button[aria-pressed="true"]{color:#fff}
  .pane-switch .icon{width:15px;height:15px}
  .workspace{display:flex;flex:1;min-height:0;height:auto}
  .workspace>.floor-pane,.workspace>.chat-pane{flex:1;min-width:0}
  #app[data-pane="office"] .chat-pane,#app[data-pane="chat"] .floor-pane{display:none}
  .chat-pane{border:0}
  .chat-heading{padding:12px max(17px,env(safe-area-inset-left));gap:9px}
  .chat-heading h2{font-size:17px}
  .thread{padding:16px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}
  .welcome{min-height:min-content;gap:10px;max-width:420px;margin:auto;padding:12px 0}
  .welcome h3{font-size:27px}.welcome p{margin-bottom:6px}
  .starter{min-height:44px;padding:9px 13px}
  .compose-zone{flex:none;padding:8px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .keyhint{display:none}.composer{padding:6px 8px}.composer textarea{resize:none;min-height:42px;height:48px;font-size:16px}
  .compose-bar .icon-button,.compose-bar .send{width:40px;height:40px}
  .scene-top{top:19px;left:max(15px,env(safe-area-inset-left));right:max(15px,env(safe-area-inset-right))}
  .floor-caption h1{font-size:24px}
  .scene-top .quiet-button{min-height:42px;font-size:12px;padding:6px 12px}
  .scene-bottom{left:max(13px,env(safe-area-inset-left));right:max(13px,env(safe-area-inset-right));bottom:12px}
  .orbit-hint{display:none}
  .scene-tools button{width:39px;height:40px}
  .floor-status{min-height:43px;gap:8px;padding:2px max(13px,env(safe-area-inset-right)) max(2px,env(safe-area-inset-bottom)) max(13px,env(safe-area-inset-left));font-size:11px}
  .floor-key{display:none}#floor-stats{border:0;padding:0;gap:9px;flex-wrap:nowrap}
  #floor-stats span{white-space:nowrap}.floor-status .icon-button{width:36px;height:36px}
  .float-panel{top:72px;right:max(13px,env(safe-area-inset-right));width:min(355px,calc(100% - 26px));max-height:calc(100% - 83px)}
  .employee,.roster-add,.desk-actions .chip-button{min-height:40px}
  .panel-head .icon-button,.desk-head .icon-button{height:40px;width:40px}
  .search-box input{font-size:16px!important}
  .search-box input:focus{outline:0}
  #dialog-content :is(input,select,textarea):not([type=checkbox]),#login-form input{font-size:16px}
  .entry-inner{max-width:370px;display:block}.entry-art{display:none}.entry-brand{top:16px;left:17px}
}
@media (max-width:600px){.app-bar .channel-pill{display:none}}
@media (max-width:370px){.app-bar .brand span{display:none}.app-bar{gap:4px}.floor-status{font-size:10px}}
@media (pointer:coarse) and (max-height:550px) and (max-width:980px){
  .app-bar{min-height:48px;padding-block:env(safe-area-inset-top) 0}
  .chat-heading{padding-block:6px}.compose-zone{padding-top:2px}
  .composer textarea{min-height:32px;height:32px}
  .scene-top{top:8px}.scene-bottom{bottom:6px}.floor-status{min-height:32px}
  .float-panel{top:4px;max-height:calc(100% - 8px)}
}
@media(prefers-reduced-motion:no-preference){
  .pane-switch::before{transition:transform .18s ease-out}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
