.hapster-office { min-width: 0; margin-top: 8px; --office-stage-bg: #e7e9e5; --office-label-bg: #fffffff0; --office-label-ink: #30483c; }
.dark .hapster-office { --office-stage-bg: #18241f; --office-label-bg: #20382fee; --office-label-ink: #e0eadf; }
.office-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 8px 0 22px; }
.office-kicker { color: var(--primary); font-size: 10px; font-weight: 650; letter-spacing: .14em; margin-bottom: 7px; }
.office-heading h2 { font-size: clamp(23px, 2.2vw, 30px); font-weight: 550; line-height: 1.2; }
.office-caption { color: var(--muted-foreground); font-size: 13px; line-height: 1.6; margin-top: 8px; }
.office-motion { flex-shrink: 0; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); padding: 10px 14px; font-size: 12px; color: var(--foreground); cursor: pointer; }
.office-motion:hover, .office-motion[aria-pressed="true"] { background: var(--accent); }
.office-departments { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 12px; }
.office-department { min-height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--muted-foreground); background: var(--card); font: inherit; font-size: 12px; cursor: pointer; }
.office-department:hover, .office-department[aria-pressed="true"] { background: var(--accent); border-color: var(--input); }
.office-department[aria-pressed="true"] { border-color: var(--ring); box-shadow: inset 0 0 0 1px var(--ring); }
.office-department b { color: var(--foreground); font-size: 13px; font-weight: 650; }
.office-department::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: #6f8796; }
.office-department:is([data-department="sales"], [data-department="living"])::before { background: #bf9a60; }
.office-department[data-department="kitchen"]::before { background: #7f9a6a; }
.office-department[data-department="product"]::before { background: #9484b8; }
.office-department[data-department="delivery"]::before { background: #6c9478; }
.office-department[data-department="leadership"]::before { background: #2c3e63; }
.office-room-hint { margin-top: 14px; color: var(--muted-foreground); font-size: 12px; line-height: 1.7; }
.office-stage { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--office-stage-bg); box-shadow: 0 12px 40px #183e2b07; }
.office-room { position: relative; height: clamp(470px, 57vw, 760px); width: 100%; overflow: hidden; }
.office-canvas { display: block; width: 100%; height: 100%; outline: none; }
.office-view-controls { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--office-label-bg); box-shadow: 0 3px 12px #18362a14; }
.office-view-controls button { min-width: 40px; height: 40px; border-radius: 7px; color: var(--foreground); cursor: pointer; font-size: 20px; }
.office-view-controls button:hover { background: var(--accent); }
.office-view-controls button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.office-view-controls button:disabled { opacity: .35; cursor: default; }
.office-view-controls .office-fit-view { padding: 0 11px; font-size: 12px; border-left: 1px solid var(--border); border-radius: 0 7px 7px 0; }
.office-zoom-value { min-width: 46px; text-align: center; font-size: 12px; color: var(--foreground); font-variant-numeric: tabular-nums; }
.office-room-label { position: absolute; top: 0; left: 0; z-index: 3; max-width: min(180px, calc(100% - 16px)); padding: 4px 7px; border: 1px solid #9cb1ab; border-left: 3px solid #42647b; border-radius: 5px; background: var(--office-label-bg); color: var(--office-label-ink); box-shadow: 0 3px 12px #18362a20; font: 600 11px/1.3 system-ui, sans-serif; text-align: center; pointer-events: none; }
.office-room-label[data-room-id="product"] { border-left-color: #8870a8; }
.office-room-label:is([data-room-id="sales"], [data-room-id="living"]) { border-left-color: #ad7c3b; }
.office-room-label[data-room-id="kitchen"] { border-left-color: #6a8a5f; }
.office-room-label[data-room-id="delivery"] { border-left-color: #5d8469; }
.office-room-label[data-room-id="leadership"] { border-left-color: #2c3e63; }
.office-stage-note { position: absolute; top: 22px; left: 25px; z-index: 2; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.office-stage-note b { color: var(--foreground); font-size: 9px; letter-spacing: .2em; font-weight: 650; }
.office-stage-note span { color: var(--muted-foreground); font-size: 10px; }
.office-company-brand { max-width: calc(100% - 50px); gap: 9px; }
.office-company-lockup { display: flex; align-items: center; gap: 12px; }
.office-company-lockup > div { min-width: 0; }
.office-company-lockup b { display: block; font-size: 18px; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.office-company-logo { display: block; flex-shrink: 0; width: 76px; height: 62px; object-fit: contain; padding: 7px; background: #fff; border: 1px solid #9cb1ab55; border-radius: 9px; }
.office-company-kind { display: block; margin-top: 3px; }
.office-world-label { position: absolute; z-index: 4; top: 0; left: 0; visibility: hidden; pointer-events: none; max-width: 180px; border-radius: 7px; padding: 5px 8px; background: var(--office-label-bg); color: var(--office-label-ink); border: 1px solid #6b8b6a26; box-shadow: 0 2px 8px #1a302c0d; font-size: 9px; line-height: 1.4; text-align: center; white-space: nowrap; }
.office-world-label [data-status] { display: block; color: var(--muted-foreground); font-size: 8px; }
.office-world-name { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.office-world-title { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-size: 8px; opacity: .8; }
.office-world-title[hidden] { display: none; }
.office-world-label[data-walking="true"] { border-color: #89aa7966; }
.office-loading, .office-fallback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(85%, 360px); text-align: center; color: var(--muted-foreground); font-size: 13px; line-height: 1.7; }
.office-loading::before { content: ''; display: block; width: 28px; height: 28px; margin: 0 auto 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; }
.office-empty { margin-top: 16px; color: var(--muted-foreground); text-align: center; font-size: 12px; }
.office-roster { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.office-station { flex: 1 1 210px; min-width: 0; }
.office-agent { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 68px; padding: 14px 16px; color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--aven-shadow); text-decoration: none; }
.office-agent:hover { background: var(--accent); border-color: var(--input); }
.office-identity { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.office-name { overflow-wrap: anywhere; color: var(--foreground); font-size: 13px; font-weight: 550; line-height: 1.4; }
.office-status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-foreground); font-size: 11px; line-height: 1.5; }
.office-status > i, .office-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7b9e83; }
:is(.office-station, .office-legend > span)[data-activity="working"] i { background: #48a56e; }
:is(.office-station, .office-legend > span)[data-activity="queued"] i { background: #a492bf; }
:is(.office-station, .office-legend > span)[data-activity="error"] i { background: #c7944d; }
:is(.office-station, .office-legend > span)[data-activity="paused"] i { background: #91a095; }
:is(.office-station, .office-legend > span)[data-activity="away"] i { background: transparent; box-shadow: inset 0 0 0 1.5px #91a095; }
.office-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 19px; margin-top: 18px; color: var(--muted-foreground); font-size: 11px; }
.office-legend > span { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: no-preference) { .office-loading::before { animation: office-load 1s linear infinite; } }
@keyframes office-load { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .hapster-office:not([data-focus]) .office-room-label { display: none; }
  .office-departments { flex-wrap: nowrap; overflow-x: auto; padding: 4px; gap: 8px; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .office-department { flex: 0 0 auto; white-space: nowrap; }
  .office-department:focus-visible { outline-offset: 1px; }
}
@media (max-width: 640px) {
  .office-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
  .office-heading h2 { font-size: 25px; }
  .office-caption { max-width: 34ch; font-size: 12px; }
  .office-motion { padding: 10px 12px; font-size: 12px; }
  .office-stage { border-radius: 16px; }
  .office-view-controls { right: 10px; bottom: 10px; }
  .office-view-controls button { min-width: 44px; height: 44px; }
  .office-room { height: 88vw; }
  .office-stage-note { top: 17px; left: 17px; }
  .office-stage-note b { font-size: 8px; }
  .office-stage-note span { font-size: 9px; max-width: 230px; }
  .office-company-brand { max-width: calc(100% - 34px); }
  .office-company-brand > span { display: none; }
  .office-company-lockup { gap: 9px; }
  .office-company-lockup b { font-size: 15px; }
  .office-company-logo { width: 60px; height: 50px; padding: 5px; }
  .office-room-label { max-width: 145px; }
  .office-station { flex-basis: 100%; }
  .office-legend { gap: 9px 13px; font-size: 11px; }
}
