/* Overlay & label untuk tampilan 3D gedung Kantor AI (office3d.js) */

.o3d-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #1b2440 0%, var(--bg, #0b0e14) 70%);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
.o3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.o3d-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.o3d-labels > * { pointer-events: none; }

/* ---------- UI overlay ---------- */
.o3d-ui { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.o3d-ui > * { pointer-events: auto; }

.o3d-hud {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: min(520px, calc(100% - 24px));
  padding: 9px 13px;
  border-radius: var(--radius, 12px);
  background: color-mix(in srgb, var(--panel, #121826) 82%, transparent);
  border: 1px solid var(--line, #263042);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  pointer-events: none !important;
}
.o3d-hud-title { font-weight: 700; color: var(--text, #e6e9ef); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o3d-hud-hint { color: var(--muted, #8b95a7); font-size: 12px; margin-top: 2px; }

/* Panel lift */
.o3d-lift {
  position: absolute;
  left: 12px;
  top: 78px;
  width: 196px;
  max-height: calc(100% - 140px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel, #121826) 90%, transparent), color-mix(in srgb, var(--panel2, #182033) 88%, transparent));
  border: 1px solid var(--line, #263042);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.o3d-lift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #8b95a7);
  border-bottom: 1px solid var(--line, #263042);
  margin-bottom: 2px;
}
.o3d-lift-ind {
  font: 700 15px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: #fbbf24;
  background: #0a0d14;
  border: 1px solid #2a2f3a;
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 36px;
  text-align: center;
  text-shadow: 0 0 8px rgba(251, 191, 36, .7);
  letter-spacing: 0;
}
.o3d-lift-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
  scrollbar-width: thin;
}
.o3d-lift-btn {
  --c: var(--accent, #7c5cff);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--line, #263042);
  background: color-mix(in srgb, var(--panel2, #182033) 80%, transparent);
  color: var(--text, #e6e9ef);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  flex-shrink: 0;
}
.o3d-lift-btn:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--panel2, #182033)); }
.o3d-lift-btn:active { transform: scale(.98); }
.o3d-lift-btn:focus-visible { outline: 2px solid var(--accent2, #22d3ee); outline-offset: 1px; }
.o3d-lift-btn.is-current {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 26%, var(--panel2, #182033));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 0 14px color-mix(in srgb, var(--c) 30%, transparent);
}
.o3d-lift-num {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--c) 60%, var(--line, #263042));
  background: #0c1019;
  font: 700 11px/1 ui-monospace, Consolas, monospace;
  color: var(--c);
}
.o3d-lift-btn.is-current .o3d-lift-num { background: var(--c); color: #0b0e14; box-shadow: 0 0 10px var(--c); }
.o3d-lift-name { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; white-space: normal; word-break: break-word; }
.o3d-lift-dot {
  flex: none;
  min-width: 8px;
  height: 8px;
  border-radius: 99px;
  background: transparent;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  color: #052e16;
  font-weight: 700;
}
.o3d-lift-btn.is-working .o3d-lift-dot { min-width: 16px; height: 16px; padding: 0 4px; background: var(--ok, #22c55e); box-shadow: 0 0 8px var(--ok, #22c55e); animation: o3d-pulse 1.6s infinite; }
.o3d-lift-btn.is-awaiting .o3d-lift-num { box-shadow: 0 0 0 2px #f5c542; }
.o3d-lift-ext { --c: var(--accent2, #22d3ee); flex-shrink: 0; }
.o3d-k-penthouse { --c: #f5c542; }
.o3d-k-lobby { --c: #94a3b8; }

/* Legenda */
.o3d-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel, #121826) 80%, transparent);
  border: 1px solid var(--line, #263042);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  color: var(--muted, #8b95a7);
  pointer-events: none !important;
  max-width: calc(100% - 240px);
}
.o3d-legend span { display: inline-flex; align-items: center; gap: 5px; }
.o3d-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.st-working.o3d-legend i, .o3d-legend i.st-working { background: var(--ok, #22c55e); box-shadow: 0 0 6px var(--ok, #22c55e); }
.o3d-legend i.st-queued { background: var(--warn, #f59e0b); }
.o3d-legend i.st-error { background: var(--err, #ef4444); }
.o3d-legend i.st-relax { background: #64748b; }
.o3d-legend i.st-rest { background: #38bdf8; }
.o3d-legend i.st-sleep { background: #6366f1; }
.o3d-legend i.st-eat { background: #f59e0b; box-shadow: inset 0 0 0 2px #7c2d12; }

/* Tooltip */
.o3d-tip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--panel, #121826);
  border: 1px solid var(--accent, #7c5cff);
  color: var(--text, #e6e9ef);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.o3d-tip[hidden], .o3d-lost[hidden] { display: none; }
.o3d-lost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 14, .7);
  color: var(--text, #e6e9ef);
  font-size: 14px;
}

/* ---------- Label lantai (eksterior) ---------- */
.o3d-floor-label {
  --c: var(--accent, #7c5cff);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  padding: 3px 9px 3px 3px;
  border-radius: 99px;
  background: rgba(11, 14, 20, .78);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--text, #e6e9ef);
  font-size: 11.5px;
  white-space: nowrap;
  pointer-events: auto !important;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s, transform .15s, box-shadow .15s;
}
/* garis penunjuk dimatikan: label menjorok ke dalam siluet gedung */
.o3d-floor-label::before {
  content: none;
  position: absolute;
  left: -10px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: color-mix(in srgb, var(--c) 70%, transparent);
}
.o3d-floor-label:hover, .o3d-floor-label.is-hover {
  background: color-mix(in srgb, var(--c) 35%, rgba(11, 14, 20, .9));
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 50%, transparent);
}
.o3d-fl-num {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--c);
  color: #0b0e14;
  font: 700 10.5px/1 ui-monospace, Consolas, monospace;
}
.o3d-fl-name { font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.o3d-fl-act { color: var(--muted, #8b95a7); font-size: 10.5px; }
.o3d-floor-label.is-active .o3d-fl-act { color: var(--ok, #22c55e); }
.o3d-floor-label.is-awaiting { border-color: #f5c542; box-shadow: 0 0 10px rgba(245, 197, 66, .45); }

/* ---------- Label karyawan ---------- */
.o3d-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 8px 5px;
  border-radius: 9px;
  background: rgba(11, 14, 20, .82);
  border: 1px solid var(--line, #263042);
  color: var(--text, #e6e9ef);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 190px;
  text-align: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: border-color .2s, box-shadow .2s;
}
.o3d-lname { font-weight: 700; display: flex; align-items: center; gap: 5px; max-width: 176px; overflow: hidden; text-overflow: ellipsis; }
.o3d-lrole { color: var(--muted, #8b95a7); font-size: 10px; max-width: 176px; overflow: hidden; text-overflow: ellipsis; }
.o3d-lskill {
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent, #7c5cff) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #7c5cff) 45%, transparent);
  font-size: 9.5px;
  max-width: 176px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o3d-stars { color: #fbbf24; letter-spacing: -1px; }
.o3d-dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; flex: none; }
.o3d-bubble {
  position: relative;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--panel2, #182033);
  border: 1px solid var(--line, #263042);
  color: var(--text, #e6e9ef);
  font-size: 10px;
  max-width: 176px;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.o3d-label.st-working { border-color: var(--ok, #22c55e); box-shadow: 0 0 12px rgba(34, 197, 94, .35); }
.o3d-label.st-working .o3d-dot { background: var(--ok, #22c55e); box-shadow: 0 0 6px var(--ok, #22c55e); animation: o3d-pulse 1.2s infinite; }
.o3d-label.st-working .o3d-bubble { border-color: color-mix(in srgb, var(--ok, #22c55e) 60%, transparent); }
.o3d-label.st-error { border-color: var(--err, #ef4444); animation: o3d-blink 1s infinite; }
.o3d-label.st-error .o3d-dot { background: var(--err, #ef4444); }
.o3d-label.st-error .o3d-bubble { border-color: var(--err, #ef4444); color: #fecaca; }
.o3d-label.st-queued { border-color: var(--warn, #f59e0b); }
.o3d-label.st-queued .o3d-dot { background: var(--warn, #f59e0b); }
.o3d-label.st-rest .o3d-dot { background: #38bdf8; }
.o3d-label.st-sleep { opacity: .82; }
.o3d-label.st-sleep .o3d-dot { background: #6366f1; }
.o3d-label.st-rest .o3d-bubble, .o3d-label.st-sleep .o3d-bubble { color: var(--muted, #8b95a7); font-style: italic; }
.o3d-label.is-involved:not(.st-working) { border-color: var(--accent, #7c5cff); box-shadow: 0 0 12px rgba(124, 92, 255, .45); }
.o3d-label.is-awaiting { border-color: #f5c542; box-shadow: 0 0 12px rgba(245, 197, 66, .5); }
.o3d-label.is-head .o3d-lname::after { content: 'Kepala'; font-size: 8.5px; font-weight: 700; padding: 0 4px; border-radius: 4px; background: #f5c542; color: #1c1404; }
.o3d-label.o3d-owner {
  border-color: #f5c542;
  background: linear-gradient(180deg, rgba(40, 30, 6, .9), rgba(11, 14, 20, .9));
  box-shadow: 0 0 16px rgba(245, 197, 66, .45);
}
.o3d-label.o3d-owner .o3d-lname { color: #fde68a; font-size: 12px; }
.o3d-label.o3d-owner .o3d-lrole { color: #f5c542; }

/* Papan nama zona divisi */
.o3d-zone-label {
  --c: var(--accent, #7c5cff);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(11, 14, 20, .78);
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  border-top: 3px solid var(--c);
  color: var(--text, #e6e9ef);
  font-size: 11.5px;
  white-space: nowrap;
  text-align: center;
  backdrop-filter: blur(3px);
}
.o3d-zone-label b { font-weight: 700; }
.o3d-zone-label span { font-size: 10px; color: var(--muted, #8b95a7); }
.o3d-zone-label.is-open { border-top-width: 1px; opacity: .8; }
.o3d-zone-label.is-active { box-shadow: 0 0 16px color-mix(in srgb, var(--c) 65%, transparent); background: color-mix(in srgb, var(--c) 28%, rgba(11, 14, 20, .85)); }

.o3d-room-label {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(11, 14, 20, .6);
  color: var(--muted, #8b95a7);
  font-size: 10.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.o3d-room-label.o3d-room-strong { color: var(--text, #e6e9ef); font-weight: 600; }
.o3d-room-label.o3d-room-gold { color: #fde68a; border: 1px solid rgba(245, 197, 66, .6); }
.o3d-room-lift { color: #86efac; }

/* ---------- Fallback ---------- */
.o3d-fallback {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 20px;
  color: var(--text, #e6e9ef);
}
.o3d-fb-head {
  max-width: 720px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius, 12px);
  background: var(--panel, #121826);
  border: 1px solid var(--line, #263042);
}
.o3d-fb-head p { margin: 6px 0 0; color: var(--muted, #8b95a7); font-size: 13px; }
.o3d-fb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.o3d-fb-emp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line, #263042);
  background: var(--panel2, #182033);
  color: var(--text, #e6e9ef);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.o3d-fb-emp:hover { border-color: var(--accent, #7c5cff); }
.o3d-fb-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 12px; }
.o3d-fb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.o3d-fb-txt b, .o3d-fb-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o3d-fb-txt small { color: var(--muted, #8b95a7); }
.o3d-fb-st { flex: none; font-size: 10.5px; padding: 2px 7px; border-radius: 99px; background: #1f2937; color: var(--muted, #8b95a7); }
.o3d-fb-st.st-working { background: color-mix(in srgb, var(--ok, #22c55e) 25%, transparent); color: var(--ok, #22c55e); }
.o3d-fb-st.st-error { background: color-mix(in srgb, var(--err, #ef4444) 25%, transparent); color: var(--err, #ef4444); }
.o3d-fb-st.st-queued { color: var(--warn, #f59e0b); }
.o3d-fb-empty { color: var(--muted, #8b95a7); }

@keyframes o3d-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes o3d-blink { 0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); } 50% { box-shadow: 0 0 14px rgba(239, 68, 68, .7); } }

@media (max-width: 720px) {
  .o3d-lift { width: 148px; bottom: auto; max-height: calc(100% - 130px); }
  .o3d-lift-name { font-size: 11.5px; }
  .o3d-hud { max-width: calc(100% - 24px); }
  .o3d-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .o3d-label.st-working .o3d-dot, .o3d-lift-btn.is-working .o3d-lift-dot, .o3d-label.st-error { animation: none; }
}

/* ---------- Tambahan: lift ciut, papan pintu, level up, label ringkas ---------- */
.o3d-labels > *:not([style*="translate"]) { display: none !important; }
.o3d-lift-toggle {
  margin-left: 6px;
  width: 24px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line, #263042);
  background: var(--panel2, #182033);
  color: var(--text, #e6e9ef);
  font: 700 13px/1 system-ui, sans-serif;
  cursor: pointer;
}
.o3d-lift-toggle:hover { border-color: var(--accent, #7c5cff); }
.o3d-lift-head > span:first-child { flex: 1; }
.o3d-lift.is-collapsed { width: auto; }
.o3d-lift.is-collapsed .o3d-lift-name,
.o3d-lift.is-collapsed .o3d-lift-dot { display: none; }
.o3d-lift.is-collapsed .o3d-lift-btn { justify-content: center; padding: 5px; }
.o3d-lift.is-collapsed .o3d-lift-head > span:first-child { display: none; }

.o3d-door-sign {
  --c: var(--accent, #7c5cff);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 11px 5px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(11, 14, 20, .92), rgba(11, 14, 20, .8));
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent), inset 0 -2px 0 var(--c);
  color: #f8fafc;
  font-size: 11.5px;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent);
}
.o3d-door-sign b { font-weight: 700; letter-spacing: .02em; }
.o3d-door-sign span { font-size: 9.5px; color: var(--muted, #8b95a7); text-shadow: none; }
.o3d-door-sign.is-active { background: color-mix(in srgb, var(--c) 35%, rgba(11, 14, 20, .9)); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 75%, transparent), inset 0 -2px 0 var(--c); }

.o3d-label.is-compact { padding: 2px 7px; gap: 0; font-size: 10px; border-radius: 99px; }
.o3d-label.is-compact .o3d-lname { font-size: 10px; }
.o3d-label.st-eat .o3d-dot { background: #f59e0b; }
.o3d-label.st-eat .o3d-bubble { color: #fcd34d; font-style: italic; }

.o3d-levelup { pointer-events: none; }
.o3d-levelup-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #3b2300;
  font: 900 15px/1.1 system-ui, sans-serif;
  letter-spacing: .06em;
  box-shadow: 0 0 24px rgba(250, 204, 21, .8);
  animation: o3d-pop 2.5s ease-out forwards;
  white-space: nowrap;
}
.o3d-levelup-in small { font-size: 10px; font-weight: 700; letter-spacing: 0; }
@keyframes o3d-pop {
  0% { transform: scale(.4); opacity: 0; }
  12% { transform: scale(1.15); opacity: 1; }
  22% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Kantor Pusat (HQ) & status "perlu otak" */
.o3d-k-hq { --c: #f5c542 !important; }
.o3d-lift-btn.o3d-k-hq { background: linear-gradient(90deg, rgba(245, 197, 66, .16), color-mix(in srgb, var(--panel2, #182033) 80%, transparent)); }
.o3d-floor-label.o3d-k-hq { border-color: #f5c542; }
.o3d-hq-cmd { pointer-events: auto !important; }
.o3d-hq-btn {
  pointer-events: auto;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid #f5c542;
  background: linear-gradient(180deg, rgba(60, 44, 6, .95), rgba(20, 16, 6, .95));
  color: #fde68a;
  font: 700 11px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(245, 197, 66, .45);
}
.o3d-hq-btn:hover { background: #f5c542; color: #1c1404; }
.o3d-label.is-nobrain { opacity: .7; filter: grayscale(.7); }
.o3d-nobrain {
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px dashed #94a3b8;
  color: #cbd5e1;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* QA 3: papan ringkas, kontras label ruangan */
.o3d-door-sign.is-compact span, .o3d-zone-label.is-compact span { display: none; }
.o3d-door-sign.is-compact { padding: 3px 9px; }
.o3d-room-label { background: rgba(11, 14, 20, .82); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, .35); }
.o3d-room-label.o3d-room-lux { color: #fde68a; border-color: rgba(245, 197, 66, .55); background: rgba(30, 22, 6, .85); }

/* ---------- Redesain kantor 3D: lift di kiri (default ciut), papan ruangan menempel dinding, OB, sosmed ---------- */
.o3d-lift { opacity: .92; transition: opacity .2s, width .2s; }
.o3d-lift:hover, .o3d-lift:focus-within { opacity: 1; }
.o3d-lift.is-collapsed { width: 58px; padding: 6px; opacity: .78; }
.o3d-lift.is-collapsed .o3d-lift-head { flex-direction: column; gap: 4px; padding: 2px 0 6px; }
.o3d-lift.is-collapsed .o3d-lift-toggle { margin-left: 0; }
.o3d-lift.is-collapsed .o3d-lift-ind { min-width: 0; padding: 3px 5px; font-size: 13px; }
.o3d-lift.is-collapsed .o3d-lift-num { margin: 0 auto; }
.o3d-door-sign { pointer-events: none; }
.o3d-door-sign.is-open { border-style: dashed; opacity: .9; }
.o3d-label.is-ob { border-color: #38bdf8; background: linear-gradient(180deg, rgba(8, 47, 73, .92), rgba(11, 14, 20, .88)); }
.o3d-label.is-ob .o3d-lname { color: #bae6fd; }
.o3d-label.is-ob small { color: #7dd3fc; font-weight: 500; margin-left: 4px; }
.o3d-social { pointer-events: none; }
.o3d-social-in {
  padding: 5px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #04110a;
  font: 800 12.5px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(34, 197, 94, .7);
  animation: o3d-pop 2.6s ease-out forwards;
}

/* ---------- QA 5 ---------- */
/* CSS2DRenderer memberi z-index per label: jadikan layer label stacking context sendiri di BAWAH UI */
.o3d-labels { z-index: 1; }
.o3d-ui { z-index: 5; }
.o3d-ui .o3d-lift.is-collapsed { width: 58px !important; }
.o3d-ui .o3d-lift.is-collapsed .o3d-lift-name,
.o3d-ui .o3d-lift.is-collapsed .o3d-lift-dot,
.o3d-ui .o3d-lift.is-collapsed .o3d-lift-head > span:first-child { display: none !important; }
.o3d-ui .o3d-lift.is-collapsed .o3d-lift-btn { justify-content: center; padding: 5px 2px; }
/* papan pintu: menempel di papan fisik, latar warna divisi */
.o3d-door-sign {
  background: color-mix(in srgb, var(--c) 78%, #0b0e14);
  border: 1px solid color-mix(in srgb, var(--c) 55%, #ffffff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  padding: 2px 9px 3px;
  border-radius: 5px;
  font-size: 11px;
}
.o3d-door-sign span { color: rgba(255, 255, 255, .82); }
.o3d-door-sign.is-compact { padding: 1px 8px; font-size: 10.5px; }
/* chip nama kecil; detail hanya saat hover */
.o3d-label.is-compact { padding: 1px 6px; font-size: 9.5px; opacity: .92; }
.o3d-label.is-compact .o3d-lname { font-size: 9.5px; }
.o3d-label.is-full { font-size: 10.5px; max-width: 190px; }/* ciut = hanya kepala panel (indikator lantai + tombol +), daftar lantai disembunyikan */
.o3d-ui .o3d-lift.is-collapsed .o3d-lift-list,
.o3d-ui .o3d-lift.is-collapsed .o3d-lift-ext { display: none !important; }
.o3d-ui .o3d-lift.is-collapsed .o3d-lift-head { border-bottom: 0; margin: 0; padding: 0; }

/* ---------- QA 9: Mode Tata Meja / Undo / perintah CoS (kanan atas), lift ramping ---------- */
.o3d-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.o3d-tools[hidden], .o3d-tool[hidden] { display: none !important; }
.o3d-tool {
  font: 600 12px/1 system-ui, sans-serif; padding: 7px 11px; border-radius: 9px;
  border: 1px solid var(--line, #263042); background: color-mix(in srgb, var(--panel, #121826) 86%, transparent);
  color: var(--text, #e6e9ef); cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.o3d-tool:hover:not(:disabled) { border-color: var(--accent, #7c5cff); }
.o3d-tool:disabled { opacity: .45; cursor: default; }
.o3d-tool:focus-visible { outline: 2px solid var(--accent2, #22d3ee); outline-offset: 1px; }
.o3d-arrange.is-on { background: var(--accent, #7c5cff); color: #fff; border-color: transparent; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #7c5cff) 40%, transparent), 0 6px 18px rgba(0, 0, 0, .3); }
.o3d-hqcmd { border-color: #f5c542; color: #f5c542; }
.o3d-hqcmd:hover { background: #f5c542; color: #1c1404; }
.o3d-arranging .o3d-canvas { outline: 2px dashed color-mix(in srgb, var(--accent, #7c5cff) 70%, transparent); outline-offset: -4px; }
.o3d-ui .o3d-lift:not(.is-collapsed) { width: 164px; max-height: min(62%, calc(100% - 140px)); opacity: .96; }
.o3d-ui .o3d-lift:not(.is-collapsed) .o3d-lift-list { overflow-y: auto; }
.o3d-zone-label { font-size: 10px; opacity: .9; }