/* Vizier agent office. Semua aturan ada di bawah .vzo (dipasang main.js di #office-root) supaya aman
   dimuat di halaman mana pun; nama keyframes diberi awalan vzo-. Tinggi bawaan 100dvh, bisa diganti lewat
   style="height:..." di #office-root atau variabel --office-height. */

#office-root,
.vzo {
  display: block;
  position: relative;
  width: 100%;
  height: var(--office-height, 100dvh);
  min-height: 420px;
}
@supports not (height: 100dvh) {
  #office-root, .vzo { --office-height: 100vh; }
}

.vzo {
  --bg: #0a0908;
  --panel: #0f0e0b;
  --line: #2c2618;
  --text: #efeadf;
  --muted: #9a927f;
  --gold: #d4af5a;
  --gold-light: #f2d98d;
  --teal: #2dd4bf;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f43f5e;
  --purple: #c084fc;
  --serif: 'Cinzel', Georgia, serif;
  --brand-font: 'Prata', Georgia, 'Times New Roman', serif;
  --vz-fg: #EAE1CF;
  --vz-seal: #B08D57;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  overflow: hidden;
  container: vzo / inline-size;
  isolation: isolate;
  background: radial-gradient(120% 90% at 35% 40%, #1d1910 0%, #0b0a08 55%, #050504 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.vzo *, .vzo *::before, .vzo *::after { box-sizing: border-box; }
.vzo [hidden] { display: none !important; }
.vzo button { font: inherit; color: inherit; margin: 0; letter-spacing: inherit; text-transform: none; -webkit-tap-highlight-color: transparent; }
.vzo p { margin: 0; }
.vzo svg.ico { display: inline-block; vertical-align: middle; flex: none; }

.vzo .vzo-app { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; transition: opacity .45s ease; }
.vzo .vzo-app.is-booting { opacity: 0; }

/* ------------------------------------------------------------ panggung */

.vzo .stage { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.vzo .stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 80% at 50% 50%, transparent 60%, rgba(0, 0, 0, .6) 100%);
}
.vzo .scene, .vzo .office-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vzo .office-svg { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.vzo .office-svg.dragging { cursor: grabbing; }
.vzo .office-svg [data-actor] { cursor: pointer; }

.vzo .overlay { position: absolute; z-index: 2; pointer-events: none; }
.vzo .brand-tl { top: 22px; left: 26px; max-width: calc(100% - 230px); }
.vzo .brand-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vzo .brand { font-family: var(--brand-font); font-weight: 400; font-size: 36px; line-height: 1.05; letter-spacing: -.01em; color: var(--vz-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vzo .tagline { margin-top: 4px; font-size: 12px; letter-spacing: .32em; color: #b5a679; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vzo .demo-badge {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; letter-spacing: .14em;
  color: var(--amber); border: 1px solid rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08);
}
.vzo .clock-tr { top: 22px; right: 26px; text-align: right; }
.vzo .clock { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: .06em; color: #f6efdc; line-height: 1; white-space: nowrap; }
.vzo .date { margin-top: 6px; font-size: 13px; color: #cfc6ae; letter-spacing: .04em; }
.vzo .hint { margin-top: 8px; font-size: 12px; color: #8a826e; letter-spacing: .04em; }
.vzo .legend { left: 22px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: #c4baa0; max-width: calc(100% - 140px); }
.vzo .legend span { display: inline-flex; align-items: center; gap: 7px; }
.vzo .legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.vzo .zoom { right: 18px; bottom: 16px; display: grid; gap: 8px; justify-items: center; pointer-events: auto; }
.vzo .zoom button {
  width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid #3a3120; background: rgba(16, 14, 10, .88);
  color: #efeadf; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px);
}
.vzo .zoom button:hover { border-color: var(--gold); color: var(--gold-light); }
.vzo .zoom button:focus-visible, .vzo .btn:focus-visible, .vzo .drawer-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vzo .zoom-pct { font-size: 11px; color: #9a927f; font-family: var(--mono); }
.vzo .conn {
  bottom: 70px; left: 50%; transform: translateX(-50%); background: rgba(127, 29, 29, .9); color: #fee2e2; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; border: 1px solid #f87171; z-index: 4;
}
.vzo .drawer-toggle {
  display: none; position: absolute; left: 12px; bottom: 12px; z-index: 3; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(212, 175, 90, .55); background: rgba(16, 14, 10, .92);
  color: var(--gold-light); font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.vzo .drawer-toggle b:empty { display: none; }
.vzo .drawer-toggle b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(212, 175, 90, .18); color: var(--gold-light); font-size: 11px; display: grid; place-items: center; }

/* ------------------------------------------------------------ pesan pengganti kantor (401/403/404) */

.vzo .gate { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; }
.vzo .gate-card { max-width: 380px; text-align: center; color: #d9cfb4; font-size: 15px; line-height: 1.6; }
.vzo .gate-card .seal { width: 64px; margin: 0 auto 18px; }
.vzo .gate-card .seal-v { font-size: 24px; }

/* ------------------------------------------------------------ popover */

.vzo .popover {
  position: absolute; z-index: 5; width: 300px; max-height: calc(100% - 24px); overflow: auto; text-align: left;
  background: rgba(14, 13, 10, .97); border: 1px solid rgba(212, 175, 90, .35); border-radius: 16px;
  padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); font-size: 13px;
  animation: vzo-popin .18s ease-out;
}
.vzo .pop-close {
  position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.vzo .pop-close:hover { background: #221e14; color: var(--text); }
.vzo .pop-head { display: flex; align-items: center; gap: 10px; margin: 0 26px 10px 0; }
.vzo .pop-head > svg { flex: none; padding: 6px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); box-sizing: content-box; }
.vzo .pop-head .badge, .vzo .pop-head .tag { margin-left: auto; flex: none; }
.vzo .pop-titles { min-width: 0; }
.vzo .pop-ava {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 30%, #1b1610), #100d09);
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent);
}
.vzo .pop-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.vzo .pop-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.vzo .pop-task { padding: 8px 10px; background: #1b1812; border-radius: 10px; margin-bottom: 10px; color: #e2d9c3; overflow-wrap: anywhere; }
.vzo .pop-error { padding: 8px 10px; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .4); border-radius: 10px; margin: 0 0 10px; color: #fecdd3; font-size: 12px; overflow-wrap: anywhere; }
.vzo .pop-section { margin: 12px 0 6px; font-size: 11px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.vzo .pop-li { padding: 6px 0; border-bottom: 1px solid #25211a; font-size: 12.5px; overflow-wrap: anywhere; }
.vzo .pop-note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.vzo .pop-quote { margin-top: 6px; font-family: var(--brand-font); font-size: 17px; color: var(--vz-fg); text-align: center; padding: 10px 0 4px; }
.vzo .kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #29241a; font-size: 12.5px; }
.vzo .kv span { color: var(--muted); }
.vzo .kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.vzo .muted { color: var(--muted); }
.vzo .badge { font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; }
.vzo .badge.st-working { color: var(--green); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .45); }
.vzo .badge.st-standby { color: var(--amber); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .4); }
.vzo .badge.st-error { color: #fb7185; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .5); }
.vzo .badge.st-offline { color: #94a3b8; background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .35); }

/* ------------------------------------------------------------ panel samping */

/* Panel bergulir sebagai satu kesatuan; baris tab & footer menempel supaya selalu terjangkau. */
.vzo .panel {
  background: linear-gradient(180deg, #100f0c, #090807); border-left: 1px solid var(--line);
  box-shadow: inset 1px 0 0 rgba(212, 175, 90, .18); display: flex; flex-direction: column; min-height: 0; min-width: 0;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3120 transparent;
}
.vzo .panel > * { flex: none; }
.vzo .p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 20px 18px 14px; }
.vzo .p-brand { min-width: 0; }
.vzo .p-title { font-family: var(--brand-font); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--vz-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vzo .p-sub { font-size: 10.5px; letter-spacing: .2em; color: #a3997f; margin-top: 2px; text-transform: uppercase; }
.vzo .p-actions { display: flex; gap: 6px; flex: none; }
.vzo .btn {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 10px; cursor: pointer;
  border: 1px solid #3a3120; background: #16140f; font-size: 12.5px; color: #e2d9c3; white-space: nowrap;
}
.vzo .btn:hover { border-color: #6b5a33; }
.vzo .btn-auto.on { color: var(--gold-light); border-color: rgba(212, 175, 90, .8); background: rgba(212, 175, 90, .1); }
.vzo .btn-close { display: none; padding: 0 9px; }

.vzo .boss {
  margin: 0 14px 10px; padding: 14px; border-radius: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer;
  background: linear-gradient(135deg, rgba(212, 175, 90, .1), rgba(20, 18, 13, .92)); border: 1px solid rgba(212, 175, 90, .4);
}
.vzo .boss:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vzo .boss:empty { display: none; }
.vzo .boss.st-online { border-color: rgba(212, 175, 90, .7); }
.vzo .boss.st-away { border-color: #3a3120; background: #14120e; }
.vzo .boss-avatar { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #3a2f1a, #120f0a); border: 2px solid rgba(212, 175, 90, .7); overflow: hidden; }
.vzo .boss-info { flex: 1; min-width: 0; }
.vzo .boss-name { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vzo .boss-status { font-size: 12.5px; color: #c4baa0; margin: 2px 0 7px; }
.vzo .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vzo .chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #1d1a13; border: 1px solid #3a3120; color: #d9cfb4; }
.vzo .chip.warn { color: var(--amber); border-color: rgba(251, 191, 36, .45); }
.vzo .dot.on { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 6px var(--green); }

.vzo .workers { padding: 0 14px; display: grid; grid-auto-rows: max-content; gap: 8px; }
.vzo .worker {
  --accent: #888; position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%;
  text-align: left; padding: 11px 12px 15px; border-radius: 14px; cursor: pointer; overflow: hidden; color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, #14120e), #14120e 60%);
  border: 1px solid #2c2618; border-left: 3px solid var(--accent);
}
.vzo .worker:hover { border-color: color-mix(in srgb, var(--accent) 60%, #2c2618); border-left-color: var(--accent); }
.vzo .worker:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vzo .w-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 14%, #0c0b08); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.vzo .w-main { min-width: 0; display: grid; gap: 2px; }
.vzo .w-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vzo .w-task { font-size: 12px; color: #ad9f84; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vzo .w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font-size: 11px; color: #8f846b; margin-top: 2px; }
.vzo .w-tier { margin-left: 6px; font-size: 10.5px; font-weight: 500; color: #b9a77c; letter-spacing: .02em; }
.vzo .ch { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 999px; border: 1px solid #3a3120; color: #d9cfb4; font-size: 10.5px; }
.vzo .ch i { width: 6px; height: 6px; border-radius: 50%; background: #64748b; display: inline-block; }
.vzo .ch.ok i { background: var(--green); box-shadow: 0 0 5px var(--green); }
.vzo .ch.wait i { background: var(--amber); animation: vzo-blink 1.2s steps(2) infinite; }
.vzo .ch.bad i { background: #fb7185; animation: vzo-blink 1s steps(2) infinite; }
.vzo .w-badge { font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.vzo .st-working .w-badge { color: var(--green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .45); }
.vzo .st-standby .w-badge { color: var(--amber); background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .4); }
.vzo .st-error .w-badge { color: #fb7185; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .5); animation: vzo-blink 1.2s infinite; }
.vzo .st-offline .w-badge { color: #94a3b8; border: 1px solid rgba(148, 163, 184, .35); }
.vzo .worker.st-error { border-color: rgba(244, 63, 94, .45); border-left-color: var(--accent); box-shadow: 0 0 22px rgba(244, 63, 94, .12); }
.vzo .worker.st-offline { opacity: .7; }
.vzo .w-bar { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 3px; background: #2a2519; overflow: hidden; }
.vzo .w-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .6s ease; }
.vzo .st-working .w-bar i { background-image: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff), var(--accent)); background-size: 200% 100%; animation: vzo-shimmer 1.6s linear infinite; }
.vzo .worker.st-soon { opacity: .62; border-style: dashed; border-left-style: solid; border-left-color: #6e6450; background: #12100c; }
.vzo .worker.st-soon:hover { opacity: .85; }
.vzo .st-soon .w-badge { color: #cbbf9f; border: 1px dashed rgba(203, 191, 159, .5); }

.vzo .pet-line {
  display: flex; align-items: center; gap: 10px; margin: 10px 14px 0; width: calc(100% - 28px); padding: 6px 12px 6px 8px; text-align: left;
  border-radius: 12px; border: 1px dashed rgba(224, 168, 90, .35); background: rgba(224, 168, 90, .06); color: #e6d3b0; font-size: 12.5px; cursor: pointer;
}
.vzo .pet-line:hover { border-color: rgba(224, 168, 90, .6); }
.vzo .pet-ava { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.vzo .pet-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vzo .tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 14px 14px 0; border-bottom: 1px solid var(--line); background: #0d0c0a; }
.vzo .tabs button { background: none; border: 0; padding: 11px 0 12px; cursor: pointer; color: #a3997f; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vzo .tabs button.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.vzo .panel > .tab-body { flex: 1 0 auto; min-height: 160px; padding: 4px 14px 10px; }

.vzo .feed { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 10px 2px; border-bottom: 1px solid #1d1a13; }
.vzo .feed .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 6px currentColor; }
.vzo .feed-text { font-size: 13px; line-height: 1.45; color: #e2d9c3; overflow-wrap: anywhere; }
.vzo .feed-text b { font-weight: 600; }
.vzo .feed.lvl-err .feed-text { color: #fecdd3; }
.vzo .feed-time { font-size: 11.5px; color: #8a7f66; margin-top: 2px; }
.vzo .tag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px; border-radius: 6px; vertical-align: 1px; }
.vzo .tag.light { color: #6ee7b7; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); }
.vzo .tag.agent { color: #e9d5ff; background: rgba(192, 132, 252, .12); border: 1px solid rgba(192, 132, 252, .4); }

.vzo .fl { padding: 11px 2px; border-bottom: 1px solid #1d1a13; cursor: pointer; }
.vzo .fl:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.vzo .fl-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.vzo .fl-top b { color: var(--purple); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vzo .fl-state { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.vzo .fl-state.ok { color: var(--green); }
.vzo .fl-state.run { color: var(--teal); }
.vzo .fl-state.err { color: #fb7185; }
.vzo .fl-state.off { color: #94a3b8; }
.vzo .fl-job { font-size: 12.5px; color: #d8cfb7; margin-top: 3px; overflow-wrap: anywhere; }
.vzo .fl-meta { font-size: 11.5px; color: #8a7f66; margin-top: 2px; }
.vzo .empty { padding: 30px 0; text-align: center; color: var(--muted); font-size: 13px; }
.vzo .empty.small { padding: 10px 0 4px; }

.vzo .convo { margin: 10px 0; padding: 10px 12px 8px; border-radius: 14px; background: #14120e; border: 1px solid #2c2618; }
.vzo .convo-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8a7f66; margin-bottom: 6px; }
.vzo .convo-line { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 4px 0; font-size: 13px; line-height: 1.45; color: #e2d9c3; }
.vzo .convo-line b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vzo .convo-note { padding: 8px 2px 14px; font-size: 11px; color: #7a705b; text-align: center; }

.vzo .p-foot { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); background: #090807; font-size: 11.5px; color: #958b73; }
.vzo .p-foot .src { white-space: nowrap; }

/* ------------------------------------------------------------ segel Vizier: dua belah ketupat berputar, huruf V diam */

.vzo .seal { position: relative; width: 42px; aspect-ratio: 1; flex: none; color: var(--vz-seal); }
.vzo .seal svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vzo .seal .ring-outer { animation: vzo-spin 14s linear infinite; }
.vzo .seal .ring-inner { animation: vzo-spinRev 10s linear infinite; }
.vzo .seal-v { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 3px; font-family: var(--brand-font); font-size: 16px; line-height: 1; color: var(--vz-fg); }
.vzo .emblem .ring-a, .vzo .seal-frame .ring-a { animation: vzo-spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.vzo .emblem .ring-b, .vzo .seal-frame .ring-b { animation: vzo-spinRev 10s linear infinite; transform-box: fill-box; transform-origin: center; }

/* ------------------------------------------------------------ animasi SVG */

.vzo .chibi .eyes { animation: vzo-blinkEye 5.2s infinite; transform-box: fill-box; transform-origin: center; }
.vzo .actor:nth-child(3n) .chibi .eyes { animation-delay: 1.7s; }
.vzo .actor:nth-child(3n+1) .chibi .eyes { animation-delay: 3.1s; }
.vzo .chibi .bob { animation: vzo-breathe 3.4s ease-in-out infinite; }
.vzo .pose-type .hand-l { animation: vzo-typeKey .3s ease-in-out infinite alternate; }
.vzo .pose-type .hand-r { animation: vzo-typeKey .3s ease-in-out infinite alternate-reverse; }
.vzo .pose-type .bob { animation: none; }
.vzo .walking .leg-l { animation: vzo-legA .38s ease-in-out infinite alternate; }
.vzo .walking .leg-r { animation: vzo-legA .38s ease-in-out infinite alternate-reverse; }
.vzo .walking .bob { animation: vzo-walkBob .19s ease-in-out infinite alternate; }
.vzo .pose-phone .phone-screen { animation: vzo-glow 2s ease-in-out infinite; }
.vzo .hand-r.wave { animation: vzo-wave .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0% 100%; }
.vzo .mood-error .head { animation: vzo-shake 2.4s ease-in-out infinite; }

.vzo .gem-inner { animation: vzo-gemFloat 2.6s ease-in-out infinite; }
.vzo .gem-body { fill: #94a3b8; }
.vzo .gem-working .gem-body { fill: #34d399; }
.vzo .gem-standby .gem-body { fill: #fbbf24; }
.vzo .gem-error .gem-body { fill: #f43f5e; }
.vzo .gem-offline .gem-body { fill: #64748b; }
.vzo .gem-error .gem-inner { animation: vzo-gemFloat 2.6s ease-in-out infinite, vzo-blink .8s steps(2) infinite; }

.vzo .bubble-inner { animation: vzo-popin .25s ease-out; transform-box: fill-box; transform-origin: 50% 100%; }
.vzo .bubble.typing .dot { animation: vzo-typingDot 1s ease-in-out infinite; }
.vzo .bubble.typing .dot.d1 { animation-delay: .15s; }
.vzo .bubble.typing .dot.d2 { animation-delay: .3s; }
.vzo .zzz .z { animation: vzo-zfloat 3.2s ease-in-out infinite; opacity: 0; }
.vzo .zzz .z1 { animation-delay: 1s; }
.vzo .zzz .z2 { animation-delay: 2s; }

.vzo .beacon { opacity: 0; transition: opacity .4s; }
.vzo .beacon.on { opacity: 1; }
.vzo .beacon.on .beacon-glow { animation: vzo-pulse .7s ease-in-out infinite alternate; }
.vzo .beacon.on .beacon-bulb { animation: vzo-blink .7s steps(2) infinite; }

.vzo .flicker { animation: vzo-flicker 5s ease-in-out infinite; }
.vzo .twinkle { animation: vzo-blink 3s ease-in-out infinite; }
.vzo .sway { animation: vzo-sway 7s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.vzo .spin-slow { animation: vzo-spin 50s linear infinite; transform-box: fill-box; transform-origin: center; }
.vzo .vault-wheel { animation: vzo-spin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
.vzo .radar-sweep { animation: vzo-spin 3.6s linear infinite; transform-box: fill-box; transform-origin: 0% 100%; }
.vzo .blip { animation: vzo-blink 2.4s ease-in-out infinite; }
.vzo .blip-1 { animation-delay: .6s; }
.vzo .blip-2 { animation-delay: 1.2s; }
.vzo .blip-3 { animation-delay: 1.8s; }
.vzo .bar-now { animation: vzo-glow 2.2s ease-in-out infinite; }
.vzo .ticker-run { animation: vzo-ticker 38s linear infinite; transform-box: fill-box; }
.vzo .ripple { animation: vzo-ripple 3.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.vzo .ripple-1 { animation-delay: 1.2s; }
.vzo .ripple-2 { animation-delay: 2.4s; }
.vzo .beam { animation: vzo-glow 3s ease-in-out infinite; }
.vzo .holo { animation: vzo-holoFloat 4.5s ease-in-out infinite; }
.vzo .steam { animation: vzo-steam 2.8s ease-in-out infinite; }
.vzo .blink { animation: vzo-blink 1s steps(2) infinite; }
.vzo .blink-slow { animation: vzo-blink 2.4s ease-in-out infinite; }
.vzo .screen-halo { animation: vzo-glow 4s ease-in-out infinite; }
.vzo .phone-glow { animation: vzo-glow 2.2s ease-in-out infinite; }
.vzo .led { animation: vzo-led var(--led-speed, 1.6s) steps(2) infinite; }
.vzo .led-1 { animation-delay: .4s; }
.vzo .led-2 { animation-delay: .9s; }

.vzo .flow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 9; animation: vzo-flowDash .9s linear infinite; opacity: .9; }
.vzo .flow-glow { fill: none; stroke-width: 7; opacity: .14; }

.vzo .elevator .door { transition: transform .9s cubic-bezier(.6, 0, .3, 1); }
.vzo .elevator.open .door-l { transform: translateX(-88px); }
.vzo .elevator.open .door-r { transform: translateX(88px); }
.vzo .elevator .elev-light { opacity: 0; transition: opacity .6s; }
.vzo .elevator.open .elev-light { opacity: .7; }
.vzo .elevator.open .elev-num { fill: #ffffff; }
.vzo .elevator.open .elev-btn { animation: vzo-blink .5s steps(2) infinite; }

/* Cahaya ruangan: lapisan warna di atas perabot & karakter (di bawah label dan balon). */
.vzo .light-overlay polygon { opacity: .1; mix-blend-mode: soft-light; }
.vzo .light-overlay.light-daylight polygon { opacity: .14; }
.vzo .light-overlay.light-evening polygon { opacity: .42; mix-blend-mode: multiply; }
.vzo .office-svg.light-daylight .glow { fill-opacity: .35; }
.vzo .office-svg.light-evening .glow { fill-opacity: 1; }
.vzo .kiosk-glow { animation: vzo-glow 3s ease-in-out infinite; }
.vzo .fish { animation: vzo-swim 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.vzo .fish-1 { animation-duration: 9s; animation-delay: -3s; }
.vzo .fish-2 { animation-duration: 6s; animation-delay: -1.5s; }
.vzo .bubble-rise { animation: vzo-rise 3.2s linear infinite; }

.vzo .fade-in { animation: vzo-fadeIn .7s ease-out; }
.vzo .fade-out { animation: vzo-fadeOut .9s ease-in forwards; }

.vzo .walking .cat-leg-a { animation: vzo-legA .26s ease-in-out infinite alternate; }
.vzo .walking .cat-leg-b { animation: vzo-legA .26s ease-in-out infinite alternate-reverse; }
.vzo .cat .cat-tail { animation: vzo-tailSway 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 100% 100%; }
.vzo .cat.pose-sit .cat-tail, .vzo .cat.pose-groom .cat-tail { transform-origin: 0% 50%; animation-duration: 3.4s; }
.vzo .cat.pose-sleep .cat-tail { animation: none; }
.vzo .cat.pose-sleep .cat-body { animation: vzo-catBreath 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.vzo .cat.pose-groom .cat-paw { animation: vzo-groom .45s ease-in-out infinite alternate; }
.vzo .cat .cat-eye { animation: vzo-blinkEye 4.6s infinite; transform-box: fill-box; transform-origin: center; }

@keyframes vzo-blinkEye { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes vzo-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.9px); } }
@keyframes vzo-typeKey { from { transform: translateY(0); } to { transform: translateY(-1.8px); } }
@keyframes vzo-legA { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes vzo-walkBob { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
@keyframes vzo-wave { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes vzo-shake { 0%, 86%, 100% { transform: translateX(0); } 89% { transform: translateX(-1px); } 92% { transform: translateX(1px); } 95% { transform: translateX(-1px); } }
@keyframes vzo-gemFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes vzo-popin { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes vzo-zfloat { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -10px); } }
@keyframes vzo-pulse { from { opacity: .45; } to { opacity: 1; } }
@keyframes vzo-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes vzo-flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: .95; } 70% { opacity: .86; } }
@keyframes vzo-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes vzo-spin { to { transform: rotate(360deg); } }
@keyframes vzo-spinRev { to { transform: rotate(-360deg); } }
@keyframes vzo-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes vzo-ripple { from { transform: scale(.4); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
@keyframes vzo-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes vzo-holoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes vzo-steam { 0% { opacity: 0; transform: translateY(2px); } 40% { opacity: .55; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes vzo-led { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes vzo-flowDash { to { stroke-dashoffset: -28; } }
@keyframes vzo-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vzo-fadeOut { to { opacity: 0; } }
@keyframes vzo-shimmer { to { background-position: -200% 0; } }
@keyframes vzo-typingDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2.5px); } }
@keyframes vzo-tailSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes vzo-catBreath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.06); } }
@keyframes vzo-groom { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes vzo-swim { 0% { transform: translateX(0) scaleX(1); } 48% { transform: translateX(30px) scaleX(1); } 52% { transform: translateX(30px) scaleX(-1); } 96% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0) scaleX(1); } }
@keyframes vzo-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-34px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .vzo *, .vzo *::before, .vzo *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ------------------------------------------------------------ lebar sedang */

@container vzo (max-width: 1100px) {
  .vzo .vzo-app { grid-template-columns: minmax(0, 1fr) 340px; }
  .vzo .brand { font-size: 30px; }
  .vzo .legend { font-size: 11px; gap: 4px 12px; }
}

/* ------------------------------------------------------------ layar sempit: panel jadi laci dari bawah */

@container vzo (max-width: 820px) {
  .vzo .vzo-app { display: block; position: relative; }
  .vzo .stage { position: absolute; inset: 0; }
  .vzo .panel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; max-height: 82%; overflow-y: auto; overscroll-behavior: contain;
    border-left: 0; border-top: 1px solid rgba(212, 175, 90, .35); border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .6); transform: translateY(102%); visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
  }
  .vzo .drawer-open .panel { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .vzo .panel > .tab-body { min-height: 120px; }
  .vzo .drawer-toggle { display: inline-flex; }
  .vzo .btn-close { display: inline-flex; }
  .vzo .p-head { padding: 16px 16px 12px; }
  .vzo .brand-tl { top: 14px; left: 16px; max-width: calc(100% - 150px); }
  .vzo .brand { font-size: 26px; }
  .vzo .seal { width: 34px; }
  .vzo .gate-card .seal { width: 56px; }
  .vzo .tagline { font-size: 10px; letter-spacing: .2em; }
  .vzo .clock-tr { top: 14px; right: 16px; }
  .vzo .clock { font-size: 24px; }
  .vzo .date { font-size: 11.5px; }
  .vzo .hint, .vzo .legend { display: none; }
  .vzo .zoom { right: 12px; bottom: 12px; }
  .vzo .conn { bottom: 64px; font-size: 12px; }
  .vzo .popover { width: min(300px, calc(100% - 24px)); }
  .vzo .convo-line { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@container vzo (max-width: 440px) {
  .vzo .p-actions .btn span { display: none; }
  .vzo .brand { font-size: 22px; }
  .vzo .brand-row { gap: 10px; }
  .vzo .seal { width: 30px; }
  .vzo .seal-v { font-size: 13px; }
  .vzo .tagline { letter-spacing: .14em; }
  .vzo .date { display: none; }
  .vzo .clock { font-size: 20px; }
  .vzo .boss { gap: 10px; padding: 12px; }
  .vzo .worker { gap: 10px; padding: 10px 10px 14px; }
}
