#office-floor {
  color-scheme:light dark;
  --paper:light-dark(#faf8f2,#202722); --panel:light-dark(#fffdf7,#2c342e);
  --ink:light-dark(#233b32,#f2f3e9); --sub:light-dark(#536458,#c1cbbf);
  --line:light-dark(#d7dbcd,#4a584d); --wash:light-dark(#edf0e7,#343e35);
  --green:light-dark(#385d48,#a8c5a4); --glass:#263a32; --cream:#fffcec;
  padding:clamp(12px,2.2vw,26px);border:1px solid var(--line);border-radius:18px;
  background:var(--paper);color:var(--ink);min-width:0;container-type:inline-size;
  font:14px/1.45 "DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
:root[data-theme="light"] #office-floor {color-scheme:light}
:root[data-theme="dark"] #office-floor {color-scheme:dark}
#office-floor *,#office-floor *::before,#office-floor *::after {box-sizing:border-box}
#office-floor [hidden] {display:none!important}
#office-floor button,#office-floor select {font:inherit;letter-spacing:normal;text-transform:none;cursor:pointer}
#office-floor button:focus-visible,#office-floor select:focus-visible,#office-floor .demo:focus-visible+.switch-track {
  outline:3px solid light-dark(#23745c,#a3dfc7);outline-offset:3px;
}
#office-floor .office-head {
  display:flex;align-items:center;justify-content:space-between;gap:13px 24px;flex-wrap:wrap;
  position:static;margin:0;padding:0;background:transparent;color:var(--ink);border:0;box-shadow:none;
}
#office-floor .office-title {
  color:var(--ink);font:500 clamp(28px,4cqw,43px)/1.05 "Iowan Old Style","Palatino Linotype",Georgia,serif;
  letter-spacing:-.045em;margin:0;
}
#office-floor .caption {display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;margin-top:7px;color:var(--sub);font-size:12px}
#office-floor .viewname {font-weight:650;color:var(--ink)}
#office-floor .count {border-inline-start:1px solid var(--line);padding-inline-start:10px;font-variant-numeric:tabular-nums}
#office-floor .controls,#office-floor .demo-control,#office-floor .motion,#office-floor .room-picker {display:inline-flex;align-items:center}
#office-floor .controls {gap:5px;flex-wrap:wrap}
#office-floor .demo-control,#office-floor .motion {
  padding:7px 10px;min-height:35px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);
  font:600 12px/1.2 "DM Sans",system-ui,sans-serif;gap:7px;margin:0;box-shadow:none;
}
#office-floor .demo-control {cursor:pointer;position:relative}
#office-floor .demo {position:absolute;inset:0;z-index:1;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
#office-floor .switch-track {display:inline-block;width:25px;height:15px;background:light-dark(#748174,#69776b);border-radius:30px;position:relative;pointer-events:none}
#office-floor .switch-track::after {content:"";position:absolute;left:3px;top:3px;width:9px;height:9px;background:#fffdf4;border-radius:50%;transition:transform .16s ease}
#office-floor .demo:checked+.switch-track {background:#3a7555}
#office-floor .demo:checked+.switch-track::after {transform:translateX(10px)}
#office-floor .motion-glyph {font:700 13px/1 system-ui;min-width:10px;text-align:center}
#office-floor .motion:disabled {cursor:default;color:var(--sub)}
#office-floor .view-tools {display:flex;align-items:center;justify-content:space-between;gap:5px 12px;flex-wrap:wrap;margin:15px 0 8px;border-top:1px solid var(--line);padding-top:8px}
#office-floor .room-picker {gap:7px;margin:0;color:var(--sub);min-width:0;max-width:100%;font-size:12px}
#office-floor .room-picker select {width:auto;max-width:100%;min-height:32px;padding:4px 6px;border:1px solid transparent;border-radius:6px;background:var(--paper);color:var(--ink);font-weight:650;font-size:13px}
#office-floor .room-picker select:hover {border-color:var(--line)}
#office-floor .hint {font-size:12px;color:var(--sub)}
#office-floor .floor-plan {position:relative;aspect-ratio:3 / 2;width:100%;overflow:hidden;isolation:isolate;background:#b5a488;border-radius:9px;box-shadow:0 1px 3px #292b2424}
#office-floor .scene,#office-floor .interior,#office-floor .hall,#office-floor .hall canvas,#office-floor .room-layer {position:absolute;display:block}
#office-floor .scene {inset:auto;width:100%;height:100%;left:0;top:0}
#office-floor .interior,#office-floor .hall,#office-floor .room-layer {inset:0;width:100%;height:100%;max-width:none}
#office-floor .interior {pointer-events:none;user-select:none;object-fit:fill}
#office-floor .hall,#office-floor .hall canvas {pointer-events:none}
#office-floor .hall canvas {image-rendering:auto;max-width:none}
#office-floor .room-layer,#office-floor .room {pointer-events:none}
#office-floor .room {position:static;margin:0;padding:0;border:0;box-shadow:none;background:none}
#office-floor .room-title,#office-floor .seat {position:absolute;pointer-events:auto;margin:0;min-width:0;min-height:0;max-width:none;white-space:normal}
#office-floor .room-title {
  z-index:2;transform:translate(-50%,-50%);padding:4px 11px 5px;background:var(--glass);color:var(--cream);
  border:1px solid #96a98d;border-radius:3px;box-shadow:0 2px 3px #16170e6b;
  font:600 clamp(11px,1.45cqw,15px)/1.13 "DM Sans",system-ui,sans-serif;letter-spacing:.003em;text-align:center;
}
#office-floor .room-title:hover {background:#3e5547}
#office-floor[data-focused="true"] .room-title {display:none}
#office-floor .seat {transform:translate(-50%,-100%);display:block;padding:0;border:0;border-radius:28% 28% 8px 8px;background:transparent;box-shadow:none;color:#22352b}
#office-floor .seat-tag {
  display:flex;align-items:center;justify-content:center;gap:0;position:absolute;bottom:0;left:50%;transform:translate(-50%,25%);
  border-radius:18px;background:transparent;white-space:nowrap;
}
#office-floor .marker {
  display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:50%;width:16px;height:16px;
  border:1px solid #f8f6dc;line-height:1;font:700 10px/1 system-ui,sans-serif;
}
#office-floor .marker[data-state="run"] {background:#246646;color:#fff}
#office-floor .marker[data-state="ready"] {background:#375d50;color:#fff}
#office-floor .marker[data-state="wait"],#office-floor .marker[data-state="idle"] {background:#edecd8;color:#364f3c;border-color:#59664c}
#office-floor .marker[data-state="blocked"] {background:#a44b1f;color:#fff}
#office-floor .marker[data-state="pilot"] {background:#6b5a78;color:#fff}
#office-floor .marker[data-state="unknown"] {background:#eae7db;color:#514f4b;border-color:#736d60}
#office-floor .marker[data-state="off"] {background:#50544e;color:#fff}
#office-floor .seat .marker {box-shadow:0 1px 3px #292b2466}
#office-floor .seat-name {display:none}
#office-floor .seat:is(:hover,:focus-visible) {z-index:4;background:#fff6d224;outline:2px solid #fcf4cf;outline-offset:0;box-shadow:0 1px 4px #63503258}
#office-floor .seat:is(:hover,:focus-visible) .seat-tag,#office-floor[data-focused="true"] .seat-tag {
  background:#fffbed;color:#22352b;box-shadow:0 1px 5px #292b245e;padding:2px 6px 2px 3px;gap:4px;
}
#office-floor .seat:is(:hover,:focus-visible) .seat-name,#office-floor[data-focused="true"] .seat-name {display:block;font:600 12px/1.16 "DM Sans",system-ui,sans-serif}
#office-floor .office-foot {margin:11px 0 0;padding:0;background:none;border:0}
#office-floor .legend {display:flex;align-items:center;gap:5px 14px;flex-wrap:wrap;color:var(--sub)}
#office-floor .key {display:inline-flex;align-items:center;gap:5px;font-size:12px}
#office-floor .legend .marker {width:15px;height:15px}
#office-floor .directory {margin-top:15px;border-top:1px solid var(--line);padding-top:12px}
#office-floor .directory-group {margin:0 0 12px;padding:0;background:none;border:0}
#office-floor .directory-group:last-child {margin-bottom:0}
#office-floor .directory-group h3 {font:600 15px/1.3 "DM Sans",system-ui,sans-serif;color:var(--ink);margin:0 0 6px}
#office-floor .directory-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:4px 12px}
#office-floor .directory-seat {display:grid;grid-template-columns:17px 1fr;gap:1px 7px;align-content:center;text-align:left;min-height:44px;padding:4px 6px;margin:0;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px;box-shadow:none}
#office-floor .directory-seat:hover,#office-floor .motion:hover:not(:disabled) {background:var(--wash)}
#office-floor .directory-seat .marker {grid-row:span 2;align-self:center}
#office-floor .row-name {font-weight:600;font-size:13px}
#office-floor .row-state {color:var(--sub);font-size:12px}
#office-floor dialog {
  position:fixed;inset:0;margin:auto;width:min(435px,calc(100% - 24px));max-width:435px;max-height:90%;overflow:auto;
  padding:20px 22px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 25px 80px #15251d63;
}
#office-floor dialog::backdrop {background:#17201987}
#office-floor .card-top,#office-floor .card-state,#office-floor .card-person {display:flex;align-items:center}
#office-floor .card-top {justify-content:space-between;gap:8px}
#office-floor .department,#office-floor .card-source {margin:0;color:var(--sub);font-size:12px}
#office-floor .department {font-weight:650}
#office-floor .dismiss {background:var(--wash);color:var(--ink);border:1px solid var(--line);width:34px;height:34px;padding:0;min-width:0;min-height:0;border-radius:50%;font:400 24px/1 system-ui;box-shadow:none}
#office-floor .card-person {gap:14px;margin:12px 0 8px}
#office-floor .portrait {flex:none;display:block;width:79px;height:79px;padding:3px;background:var(--wash);border-radius:10px}
#office-floor dialog h2 {margin:0 0 6px;color:var(--ink);font:500 clamp(23px,4vw,31px)/1.13 "Iowan Old Style",Georgia,serif;letter-spacing:-.032em}
#office-floor .card-state {gap:6px;font-size:13px;font-weight:650}
#office-floor .job {margin:14px 0;font-size:15px;line-height:1.5}
#office-floor dl {margin:0}
#office-floor .card-detail {display:grid;grid-template-columns:minmax(96px,.8fr) minmax(0,1.4fr);gap:10px;padding:8px 0;border-top:1px solid var(--line)}
#office-floor dt {color:var(--sub);font-size:12px}
#office-floor dd {margin:0;color:var(--ink);font-size:13px;overflow-wrap:anywhere}
#office-floor .card-source {border-top:1px solid var(--line);padding-top:10px;margin-top:2px}
#office-floor[data-compact="true"][data-focused="false"] .seat {display:none}
#office-floor[data-compact="true"][data-focused="false"] .room-title {width:max-content;max-width:28%;min-height:44px;padding:0 4px;display:grid;align-content:center;border:0;box-shadow:none;background:transparent;isolation:isolate;font-size:11px}
#office-floor[data-compact="true"][data-focused="false"] .room-title::before {position:absolute;content:"";inset:50% 0 auto;transform:translateY(-50%);height:calc(100% - 13px);min-height:26px;z-index:-1;background:#263a32ed;border-radius:3px;border:1px solid #9ca78c}
#office-floor[data-compact="true"][data-focused="false"] .room:nth-child(-n+3) .room-title {margin-top:14px}
@container(max-width:619px) {
  #office-floor .seat:is(:hover,:focus-visible) .seat-name,#office-floor[data-focused="true"] .seat-name {font-size:11px}
  #office-floor .motion,#office-floor .demo-control,#office-floor .room-picker select {min-height:44px}
  #office-floor .office-head {gap:11px}
  #office-floor .view-tools {margin-top:10px}
  #office-floor .dismiss {width:44px;height:44px}
}
@container(max-width:415px) {
  #office-floor[data-focused="true"] .seat:not(:focus-visible) .seat-name {display:none}
  #office-floor[data-focused="true"] .seat:not(:focus-visible) .seat-tag {background:transparent;box-shadow:none;padding:0}
  #office-floor .view-tools {gap:0;justify-content:flex-start}
  #office-floor .hint {width:100%;margin:0 0 5px}
  #office-floor .legend {gap:5px 9px}
}
@media (prefers-reduced-motion:reduce) {#office-floor .switch-track::after {transition:none}}
#tabs [data-tab="agent-office"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 12h8m4 0h6M10 4v8m4 0v8'/%3E%3C/svg%3E")}

#office-floor .office-insights{display:grid;gap:.5rem;margin:0 0 1rem}
#office-floor .office-insights[hidden],#office-floor .office-evidence[hidden]{display:none}
#office-floor .office-insights details,#office-floor .office-evidence details{border:1px solid var(--line,#bac4ca);border-radius:.45rem;padding:.55rem .7rem;min-width:0;overflow-wrap:anywhere}
#office-floor .office-insights summary,#office-floor .office-evidence summary{cursor:pointer;font-weight:600}
#office-floor .office-evidence{display:grid;gap:.55rem;padding:.6rem 0;overflow-wrap:anywhere}
#office-floor .office-evidence h3,#office-floor .office-evidence p{margin:.15rem 0}
#office-floor .office-form{display:flex;flex-wrap:wrap;align-items:end;gap:.45rem;margin:.5rem 0}
#office-floor .office-form label{display:grid;gap:.2rem;max-width:100%}
#office-floor .office-form input{box-sizing:border-box;min-width:0;max-width:100%;font:inherit;color:inherit;background:transparent;border:1px solid var(--line,#9aa5ac);padding:.45rem}
#office-floor .office-action{justify-self:start}
#office-floor .office-evidence a{color:inherit;text-decoration:underline}

#office-floor .office-task-choice:not([hidden]){display:grid;gap:.45rem;margin:.25rem 0 .8rem}
#office-floor .office-task-choice p{margin:0;color:var(--muted);font-size:.88rem}
#office-floor .office-task-choice label{display:grid;gap:.25rem}
#office-floor .task-select{width:100%;min-width:0;padding:.45rem;font:inherit;color:inherit;background:var(--card,Canvas);border:1px solid var(--line,#708182);border-radius:.4rem}
