.office-map {
  --of-canvas: #192225;
  --of-wall: #75888b;
  --of-route: #b5ba9a;
  --of-shadow: #ada8c5;
  --of-bright: #ffc295;
  --of-sealed: #9aded0;
  --of-block: #ffa49b;
  --of-rest: #a5afb0;
  width: 100%;
  min-width: 0;
  background: var(--of-canvas);
  color: #eef2e9;
}
.of-tools, .of-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 9px clamp(12px, 1.6vw, 25px);
  min-height: 44px;
  background: #1a2022;
  border-block: 1px solid #354043;
  font: 500 12px/1.4 Inter, "Segoe UI", sans-serif;
}
.of-tools { border-top: 0; }
.of-footer { color: #bbc6c3; border-bottom: 0; }
.of-route-key, .of-state-key, .of-route-key span, .of-state-key span, .of-navigation {
  display: flex;
  align-items: center;
}
.of-route-key, .of-state-key, .of-navigation { gap: 8px 18px; flex-wrap: wrap; }
.of-route-key span, .of-state-key span { gap: 7px; white-space: nowrap; }
.of-route-key i {
  width: 22px;
  height: 0;
  border-top: 2px solid var(--of-route);
  position: relative;
}
.of-route-key i::after {
  position: absolute;
  content: "";
  top: -3.5px;
  right: 0;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--of-route);
  border-top: 1.5px solid var(--of-route);
  transform: rotate(45deg);
}
.of-route-key .research { border-color: var(--of-shadow); border-top-style: dashed; }
.of-route-key .research::after { border-color: var(--of-shadow); }
.of-route-key .received { border-top-width: 3px; border-color: var(--of-sealed); }
.of-route-key .received::after { border-color: var(--of-sealed); }
.of-state-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--of-rest); }
.of-state-key .working i { background: var(--of-bright); }
.of-state-key .sealed i { background: var(--of-sealed); }
.of-state-key .gated i { background: var(--of-block); }
.of-navigation { flex-wrap: nowrap; gap: 7px; }
.of-navigation select, .of-scale {
  min-height: 31px;
  padding: 3px 9px;
  border: 1px solid #4a5658;
  border-radius: 5px;
  background: #21292b;
  color: #e5e9e2;
  font: inherit;
}
.of-navigation select { max-width: 210px; cursor: pointer; }
.of-scale { display: none; white-space: nowrap; }
.of-scale[aria-pressed="true"] { color: #f2cfad; border-color: #b69575; }
.of-navigation select:hover, .of-scale:hover { border-color: #9aa9a4; }
.of-scroll {
  overflow: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #667674 #1b2628;
  scrollbar-width: thin;
  position: relative;
  outline-offset: -3px;
}
.of-scroll:focus-visible, .of-navigation :focus-visible { outline: 2px solid var(--of-bright); }
.of-plan {
  display: block;
  width: 100%;
  min-width: 1050px;
  height: auto;
  font-family: Inter, "Segoe UI", sans-serif;
  user-select: none;
}
.of-plan .of-caption, .of-plan .of-room-code, .of-plan .of-person-code {
  font-family: var(--mono, Consolas, monospace);
}
.of-caption { fill: #cfd9d4; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; }
.of-caption-rule { stroke: var(--of-route); stroke-width: 3; }
.of-caption-rule.secondary { stroke: var(--of-shadow); stroke-dasharray: 5 2; }
.of-room-code { fill: #c2cdc6; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.of-room-name { font-size: 17px; font-weight: 630; letter-spacing: -.42px; fill: #f1f3e9; }
.of-room-note { font-size: 11.5px; font-weight: 450; fill: #c4d0c8; }
.of-journal-title { font-size: 16px; fill: #eee9ef; font-weight: 550; letter-spacing: -.2px; }
.of-room-outline { fill: none; stroke-width: 3; stroke: transparent; pointer-events: none; }
.of-chosen .of-room-outline { stroke: var(--of-bright); }
.of-route-bed { fill: none; stroke: #121b1d; stroke-width: 6; }
.of-route-line, .of-arrow { fill: none; stroke: var(--of-route); stroke-linecap: round; stroke-linejoin: round; }
.of-route-line { stroke-width: 2.3; }
.of-arrow { stroke-width: 2.1; }
.of-research-route .of-route-line, .of-research-arrow { stroke: var(--of-shadow); }
.of-research-route .of-route-line { stroke-dasharray: 5 5; }
.of-hall-route .of-route-line { stroke-dasharray: 2 3; }
.of-received .of-route-line, .of-received .of-arrow { stroke: var(--of-sealed); stroke-width: 3; }
.of-stop-sign { display: none; }
.of-stopped .of-stop-sign { display: inline; }
.of-stop-sign circle, .of-admission-stop circle { fill: #542f32; stroke: var(--of-block); stroke-width: 1.5; }
.of-stop-sign path, .of-admission-stop path { stroke: #ffc2b8; stroke-width: 1.8; stroke-linecap: round; }
.of-plan .office-actor {
  display: inline;
  cursor: pointer;
  outline: none;
  --actor-signal: var(--of-rest);
}
.of-plan .office-actor.working { --actor-signal: var(--of-bright); }
.of-plan .office-actor.sealed { --actor-signal: var(--of-sealed); }
.of-plan .office-actor.gated { --actor-signal: var(--of-block); }
.of-plan .office-actor.skipped { --actor-signal: #8a9899; }
.of-hit { fill: transparent; stroke: transparent; stroke-width: 1.5; }
.of-dot { fill: var(--actor-signal); }
.of-name-bg { fill: #1b292c; stroke: #657677; stroke-width: .8; }
.office-actor.working .of-name-bg, .office-actor.gated .of-name-bg { stroke: var(--actor-signal); }
.of-person-code { fill: #eef2e9; font-size: 11.2px; font-weight: 700; }
.of-person-role { fill: #d7dfd7; font: 500 11.3px Inter, "Segoe UI", sans-serif; }
.of-plan .office-actor.working .of-person-code { fill: #ffcca7; }
.of-plan .office-actor.gated .of-person-code { fill: #ffc0b4; }
.of-plan .office-actor:hover .of-hit, .of-plan .office-actor:focus-visible .of-hit {
  stroke: var(--of-bright);
  fill: #ffc78113;
}
.office-actor:focus-visible .of-name-bg, .office-actor:hover .of-name-bg { stroke: var(--of-bright); }
.of-steps { display: none; }
.office-actor[data-walking] .of-chair-back, .office-actor[data-walking] .of-legs { visibility: hidden; }
.office-actor[data-walking] .of-steps { display: inline; }
.of-courier { pointer-events: none; }
.of-courier-label { font: 700 8px var(--mono, Consolas, monospace); fill: #e3f1dc; letter-spacing: .3px; }
.of-courier-body { animation: of-step .32s ease-in-out 5 alternate; }
.of-stride-a, .of-stride-b { transform-origin: 0 -9px; }
.of-courier .of-stride-a, [data-walking] .of-stride-a { animation: of-stride .22s ease-in-out 7 alternate; }
.of-courier .of-stride-b, [data-walking] .of-stride-b { animation: of-stride .22s ease-in-out 7 alternate-reverse; }
@keyframes of-step { to { transform: translateY(-1.8px); } }
@keyframes of-stride { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
.of-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 1100px) {
  .of-scale { display: inline-block; }
  .of-overview .of-plan { min-width: 0; }
}
@media (max-width: 720px) {
  .of-tools, .of-footer { flex-wrap: wrap; gap: 9px; font-size: 11.5px; }
  .of-navigation { margin-left: auto; }
  .of-plan { min-width: 1190px; }
  .of-instruction { font-size: 11px; }
  .of-navigation select, .of-scale { min-height: 36px; }
}
@media (max-width: 490px) {
  .of-navigation { width: 100%; margin: 0; justify-content: space-between; }
  .of-navigation label { flex: 1; }
  .of-navigation select { width: 100%; max-width: none; }
  .of-route-key { gap: 12px; }
  .of-state-key { gap: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .office-map *, .office-map *::before, .office-map *::after { animation: none !important; scroll-behavior: auto; }
}
