/* The Company Office on the front page (office.js). Its own file, so that a
   visitor with yesterday's site.css in the cache still gets these rules. */
.office{margin-top:36px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}
.office-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.office-bar h3{font-size:19px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.office-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ok);background:var(--ok-bg);padding:3px 10px;border-radius:999px}
.office-live i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:officePulse 1.6s ease-in-out infinite}
.office.paused .office-live{color:var(--plan);background:var(--plan-bg)}
.office.paused .office-live i{animation:none}
@keyframes officePulse{0%,100%{opacity:1}50%{opacity:.3}}
.office-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.office-legend{display:flex;gap:14px;font-size:13.5px;color:var(--muted)}
.office-legend span{display:inline-flex;align-items:center;gap:6px}
.office-legend i{width:10px;height:10px;border-radius:50%}
.office-legend .lg-agent{background:#3F74A3;box-shadow:0 0 0 2px var(--blue-soft)}
.office-legend .lg-person{background:#3B3230;box-shadow:0 0 0 2px var(--line)}
.office-pause{font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:999px;min-height:38px;padding:0 16px;cursor:pointer}
.office-pause:hover{border-color:var(--blue)}
.office-pause:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.office-body{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;align-items:stretch}
.office-stage{position:relative;flex:999 1 560px;min-width:0;aspect-ratio:940/600;background:var(--bg-2);border-radius:14px;overflow:hidden}
.office-stage svg{position:absolute;inset:0;width:100%;height:100%}
.office-note{position:absolute;left:14px;top:10px;margin:0;font-size:12px;color:var(--muted)}
.office-log{flex:1 1 250px;min-width:0;background:var(--bg);border:1px solid var(--line-2);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;overflow:hidden}
.office-log-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.office-log-head h4{margin:0;font-size:15px;font-weight:650}
.office-log-head span{font-family:var(--mono);font-size:11px;color:var(--muted)}
.office-log ol{list-style:none;margin:6px 0 0;padding:0;flex:1 1 0;min-height:0;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 82%,transparent);mask-image:linear-gradient(to bottom,#000 82%,transparent)}
.ev{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid var(--line-2)}
.ev-new{animation:evIn .45s ease-out}
@keyframes evIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.ev-mark{flex:none;width:12px;display:flex;justify-content:center;padding-top:4px}
.ev-mark i{width:8px;height:8px;border-radius:50%;margin-top:1px}
.ev-text{font-size:13.5px;line-height:1.35;color:var(--ink)}
.ev-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-family:var(--mono);font-size:11px;line-height:1.4;color:var(--muted);margin-top:4px}
.ev-change{color:var(--ink-2);background:var(--bg-2);border:1px solid var(--line-2);border-radius:6px;padding:0 6px}
.ev-refused .ev-text{color:#B4432F}
.ev-timer .ev-text{color:var(--wip)}
.ev-empty{font-size:13px;color:var(--muted);padding:10px 0}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .ev-refused .ev-text{color:#E58A73}}
:root[data-theme="dark"] .ev-refused .ev-text{color:#E58A73}
@media (max-width:860px){.office-log ol{flex:none;max-height:330px}}
@media (max-width:600px){.office{padding:12px}.office-note{font-size:11px;left:10px;top:6px}}
@media (prefers-reduced-motion: reduce){.office-live i,.ev-new{animation:none}}
