/* =====================================================================
   /office2 — prototipe "AI Office" gaya droid-office
   HUD gelap-hangat: panel kaca, aksen oranye, terminal hijau.
   ===================================================================== */

:root {
  /* PALET DISAMAKAN DENGAN /office (assets/css/beranda.css → --of-*).
     Sebelumnya /office2 memakai interior gelap-hangat (oranye #ff6b2c) sehingga
     dua halaman terlihat seperti dua produk berbeda. Nilai di bawah diambil
     apa adanya dari --of-*: navy gelap + aksen sian/pink neon. */
  --o2-bg: #0b1220;                      /* --of-bg */
  --o2-bg2: #172337;                     /* --of-bg2 */
  --o2-panel: rgba(14, 18, 30, 0.82);    /* sama dengan .of-card */
  --o2-panel-solid: #10141f;             /* --of-kartu */
  --o2-panel-2: #151a28;                 /* --of-kartu2 */
  --o2-line: #1e2536;                    /* --of-garis */
  --o2-line-strong: rgba(120, 160, 255, 0.22);
  --o2-text: #e9eef8;                    /* --of-ink */
  --o2-muted: #8b98ad;                   /* --of-muted */
  --o2-faint: #5d6880;                   /* --of-faint */
  --o2-accent: #ec4899;                  /* --of-pink */
  --o2-accent-soft: rgba(236, 72, 153, 0.14);
  --o2-cyan: #38d9f5;                    /* --of-cyan */
  --o2-blue: #60a5fa;                    /* --of-biru */
  --o2-purple: #a78bfa;                  /* --of-ungu */
  --o2-green: #34d399;                   /* --of-hijau */
  --o2-amber: #fbbf24;                   /* --of-kuning */
  --o2-radius: 14px;
  --o2-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--o2-bg);
  color: var(--o2-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.o2 { position: fixed; inset: 0; }

#o2Canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#o2Canvas.is-drag { cursor: grabbing; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------------------------------------------------------------- bar */

.o2-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  z-index: 30;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.92), rgba(5, 7, 12, 0.28) 70%, transparent);
  pointer-events: none;
}

.o2-bar > * { pointer-events: auto; }

.o2-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--o2-text);
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  background: var(--o2-panel);
  border: 1px solid var(--o2-line);
  backdrop-filter: blur(14px);
}

.o2-brand__dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, #9befff, transparent 55%),
    linear-gradient(145deg, #38d9f5, #1c6f9c);
  box-shadow: 0 0 22px rgba(255, 107, 44, 0.45);
}

/* LOGO TOKO ASLI (28 Okt 2026)
   Sebelumnya header hanya memakai .o2-brand__dot — kotak gradasi CSS — jadi
   tidak ada logo yang benar-benar dimuat. Logo asli (`brand_logo`, sumber
   sama dengan nota & beranda) sekarang ditampilkan di sini.
   `object-fit: contain` dipakai supaya logo persegi/bulat tidak terpotong
   saat kotaknya dibuat 34×34. */
.o2-brand__logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 18px rgba(56, 217, 245, 0.28);
}

.o2-brand strong { display: block; font-size: 15px; letter-spacing: 0.01em; }
.o2-brand small {
  display: block;
  font-size: 11px;
  color: var(--o2-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.o2-stats { display: flex; gap: 8px; flex-wrap: wrap; }

.o2-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--o2-panel);
  border: 1px solid var(--o2-line);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  color: var(--o2-text);
  white-space: nowrap;
}

.o2-chip i { color: var(--o2-accent); font-size: 11px; }

.o2-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.o2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--o2-line);
  background: var(--o2-panel);
  backdrop-filter: blur(14px);
  color: var(--o2-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.o2-btn:hover { border-color: var(--o2-line-strong); transform: translateY(-1px); }
.o2-btn i { font-size: 12px; color: var(--o2-muted); }
.o2-btn.is-on { border-color: var(--o2-accent); background: var(--o2-accent-soft); }
.o2-btn.is-on i { color: var(--o2-accent); }

.o2-btn--cta {
  background: linear-gradient(145deg, #ec4899, #9d174d);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 44, 0.28);
}
.o2-btn--cta i { color: #fff; }

.o2-icon { width: 38px; padding: 0; justify-content: center; }

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

.o2-side {
  position: fixed;
  top: 82px;
  bottom: 96px;
  width: 286px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  z-index: 20;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.o2-side::-webkit-scrollbar { width: 6px; }
.o2-side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 8px; }

.o2-side--left { left: 18px; }
.o2-side--right { right: 18px; width: 306px; }

.o2-card {
  background: var(--o2-panel);
  border: 1px solid var(--o2-line);
  border-radius: var(--o2-radius);
  padding: 14px 14px 12px;
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.o2-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8d3e6;
  font-weight: 700;
}

.o2-card h2 i { color: var(--o2-accent); font-size: 11px; }

.o2-hint {
  margin: -4px 0 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--o2-muted);
}

.o2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.o2-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s;
}

.o2-list li:hover { background: rgba(255, 255, 255, 0.055); }
.o2-list b { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; }
.o2-list small { grid-column: 2 / -1; font-size: 11px; color: var(--o2-muted); margin-top: -3px; }
.o2-list em {
  grid-column: 3;
  grid-row: 1;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--o2-accent);
  border: 1px solid rgba(255, 107, 44, 0.4);
  background: rgba(255, 107, 44, 0.1);
  border-radius: 999px;
  padding: 2px 7px;
}

.o2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.o2-num { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #cfd8e6; }

.o2-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--o2-line);
  font-size: 11.5px;
  color: var(--o2-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.o2-total b { font-size: 18px; color: var(--o2-text); letter-spacing: 0; }

.o2-list--tight li { padding: 6px 8px; }

.o2-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--o2-green);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
}

.o2-list .o2-avatar + b { grid-column: 2; }
.o2-list .o2-avatar ~ small { grid-column: 3; grid-row: 1; text-align: right; margin: 0; }
.o2-list .o2-avatar ~ em { grid-column: 3; grid-row: 2; justify-self: end; }

/* Foto tim dari tabel users (menggantikan huruf inisial kalau ada). */
.o2-list li.o2-li--tim { grid-template-columns: 26px 1fr auto; }

.o2-avatar--foto {
  object-fit: cover;
  object-position: center top;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
}

.o2-fotobaris {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.o2-fotobaris__foto {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid rgba(243, 183, 62, 0.55);
  object-fit: cover;
  object-position: center top;
  background: rgba(255, 255, 255, 0.06);
}
.o2-fotobaris b { display: block; font-size: 13px; }
.o2-fotobaris small { color: var(--o2-muted, #8c98ab); font-size: 11.5px; }

.o2-mini {
  grid-column: 3;
  width: 54px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.o2-mini i { display: block; height: 100%; background: linear-gradient(90deg, #38d9f5, #a5f3fc); }

.o2-legend {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--o2-line);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--o2-muted);
}

/* --------------------------------------------------------------- hint */

.o2-hintbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--o2-panel);
  border: 1px solid var(--o2-line);
  backdrop-filter: blur(16px);
  z-index: 30;
  max-width: calc(100vw - 36px);
  overflow-x: auto;
  scrollbar-width: none;
}
.o2-hintbar::-webkit-scrollbar { display: none; }

.o2-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--o2-muted);
  white-space: nowrap;
}

.o2-key kbd {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--o2-line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #d9e2ef;
}

.o2-quick { display: flex; gap: 6px; padding: 0 4px; border-left: 1px solid var(--o2-line); border-right: 1px solid var(--o2-line); }

.o2-quick button {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  color: #cfd8e6;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.16s;
}
.o2-quick button:hover { background: var(--o2-accent-soft); color: #ffd1e8; }

.o2-chat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #25d366, #139a4b);
  color: #04170c;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------- drawer */

.o2-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 372px;
  max-width: 92vw;
  z-index: 60;
  transform: translateX(103%);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
  background: linear-gradient(180deg, rgba(13, 16, 23, 0.98), rgba(8, 10, 15, 0.98));
  border-left: 1px solid var(--o2-line-strong);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
}

.o2-drawer.is-open { transform: none; }

.o2-drawer__head { display: flex; align-items: flex-start; gap: 10px; }

.o2-drawer h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.o2-drawer__sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--o2-accent);
}

.o2-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--o2-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--o2-muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.o2-close:hover { color: #fff; border-color: var(--o2-line-strong); }

.o2-drawer__body { margin-top: 18px; overflow-y: auto; }

.o2-dl { display: flex; flex-direction: column; gap: 10px; }
.o2-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}
.o2-dl span { color: var(--o2-muted); }
.o2-dl b { text-align: right; font-weight: 600; }

.o2-note {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--o2-muted);
}

.o2-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 16px;
}
.o2-track i { display: block; height: 100%; background: linear-gradient(90deg, #38d9f5, #a5f3fc); }

/* ------------------------------------------------------------ terminal */

.o2-term {
  position: fixed;
  left: 50%;
  bottom: 92px;
  width: min(700px, 92vw);
  z-index: 55;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: 0.26s;
  border-radius: 14px;
  border: 1px solid rgba(107, 255, 158, 0.22);
  background: rgba(4, 12, 8, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.o2-term.is-open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

.o2-term__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(107, 255, 158, 0.08);
  border-bottom: 1px solid rgba(107, 255, 158, 0.16);
}

.o2-term__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--o2-green); box-shadow: 0 0 12px var(--o2-green); }
.o2-term__title { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #bff7e6; }
.o2-term__head .o2-close { margin-left: auto; width: 26px; height: 26px; border-color: rgba(107, 255, 158, 0.25); }

.o2-term__body {
  height: 208px;
  overflow-y: auto;
  padding: 12px 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(140, 235, 178, 0.85);
  white-space: pre-wrap;
}

.o2-term__body .is-cmd { color: #7dd3fc; }
.o2-term__body .is-ok { color: #6ee7b7; }
.o2-term__body .is-err { color: #fda4af; }

/* --------------------------------------------------------------- toast */

.o2-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translate(-50%, -14px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--o2-green);
  background: rgba(6, 18, 12, 0.9);
  color: #c7f5e4;
  font-size: 12.5px;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.o2-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------------------------------------------- tip */

.o2-tip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(6, 8, 13, 0.92);
  border: 1px solid var(--o2-line-strong);
  font-size: 11.5px;
  color: #e6edf8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 45;
  white-space: nowrap;
}
.o2-tip.is-on { opacity: 1; }

/* ---------------------------------------------------------------- modal */

.o2-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(3, 5, 9, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.o2-modal.is-open { opacity: 1; pointer-events: auto; }

.o2-modal__box {
  width: min(420px, 92vw);
  border-radius: 18px;
  border: 1px solid var(--o2-line-strong);
  background: linear-gradient(180deg, #151a28, #10141f);
  padding: 20px;
  box-shadow: var(--o2-shadow);
}

.o2-modal__box h3 { margin: 0; font-size: 17px; }
.o2-modal__box p { margin: 6px 0 16px; font-size: 12px; color: var(--o2-muted); }

.o2-floor {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid var(--o2-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--o2-text);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}
.o2-floor:hover { border-color: rgba(255, 107, 44, 0.5); background: var(--o2-accent-soft); }
.o2-floor b { display: block; font-size: 13px; }
.o2-floor small { color: var(--o2-muted); font-size: 11px; }
.o2-floor span:last-child { margin-left: auto; font-family: ui-monospace, Menlo, monospace; font-size: 16px; color: var(--o2-accent); }
.o2-floor[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ------------------------------------------------------------- fallback */

.o2-fallback {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, #172337, #0b1220 70%);
  text-align: center;
}
.o2-fallback[hidden] { display: none; }
.o2-fallback h2 { margin: 0 0 8px; font-size: 20px; }
.o2-fallback p { margin: 0; color: var(--o2-muted); max-width: 460px; line-height: 1.6; font-size: 13px; }

/* ------------------------------------------------------------ responsif */

.o2-mobile-only { display: none; }

@media (max-width: 1180px) {
  .o2-side--right { display: none; }
  .o2-mobile-only { display: inline-flex; }
}

@media (max-width: 980px) {
  .o2-side--left { display: none; }
  .o2-brand small { display: none; }
  .o2-stats { display: none; }
}

@media (max-width: 1180px) {
  .o2-side.is-visible {
    display: flex;
    z-index: 40;
    background: rgba(5, 7, 12, 0.72);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 16px;
    width: 300px;
  }
  .o2-side--right.is-visible { right: 12px; }
  .o2-side--left.is-visible { left: 12px; }
}

@media (max-width: 720px) {
  .o2-bar { height: 60px; gap: 6px; padding: 0 8px; }
  .o2-brand { padding: 5px 8px; gap: 7px; }
  .o2-brand__dot { width: 26px; height: 26px; }
  .o2-brand__logo { width: 26px; height: 26px; flex-basis: 26px; }
  .o2-brand strong { font-size: 12px; line-height: 1.1; }
  .o2-actions { gap: 5px; }
  .o2-btn { height: 34px; padding: 0 8px; font-size: 12px; }
  .o2-btn span { display: none; }
  .o2-side { top: 70px; bottom: 120px; }
  .o2-hintbar { border-radius: 14px; }
  .o2-key { display: none; }
  .o2-term { bottom: 116px; }
  .o2-term__body { height: 160px; }
}

@media (max-width: 430px) {
  #o2Reset { display: none; }
  .o2-brand strong { display: none; }
  .o2-brand small { display: none; }
  .o2-brand { padding: 6px; }
}

/* --------------------------------------------------------- panel aksesori */
/* Muncul hanya setelah tombol "Atur aksesori" ditekan; dibuat di
   assets/js/office2/atur-aksesori.js. Gaya mengikuti kartu HUD lain. */
.o2-tune {
  position: fixed;
  right: 336px;          /* tidak menutupi panel Tim di kanan */
  bottom: 132px;
  z-index: 120;          /* di atas semua panel HUD saat disetel */
  width: 288px;
  padding: 12px 14px 10px;
  border-radius: 16px;
  border: 1px solid var(--o2-line-strong);
  background: var(--o2-panel-solid);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  font-size: 12px;
  color: var(--o2-text);
}

.o2-tune__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.o2-tune__head strong { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.o2-tune__head i { color: var(--o2-accent); font-size: 11px; }

.o2-tune__tutup {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--o2-line);
  background: transparent;
  color: var(--o2-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.o2-tune__tutup:hover { color: var(--o2-text); border-color: var(--o2-line-strong); }

.o2-tune__pilih {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--o2-muted);
}

.o2-tune__pilih select {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1px solid var(--o2-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--o2-text);
  font-size: 12px;
}

.o2-tune__row {
  display: grid;
  grid-template-columns: 62px 1fr 46px;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.o2-tune__row span { color: var(--o2-muted); }
.o2-tune__row b { font-family: ui-monospace, Menlo, monospace; font-size: 11px; text-align: right; color: #cfd8e6; }

.o2-tune__row input[type="range"] {
  width: 100%;
  height: 18px;
  accent-color: var(--o2-accent);
  cursor: pointer;
}

.o2-tune__aksi { display: flex; gap: 8px; margin-top: 10px; }
.o2-tune__aksi .o2-btn { flex: 1; justify-content: center; height: 30px; font-size: 11.5px; }

.o2-tune__catatan {
  margin: 8px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--o2-muted);
}

@media (max-width: 1180px) {
  .o2-tune { right: 18px; }
}

@media (max-width: 900px) {
  .o2-tune { right: 10px; left: 10px; width: auto; bottom: 118px; }
}

/* ------------------------------------------------- kendali layar sentuh */
/* Dibuat 1 Nov 2026. Pemilik: "wasd untuk gerakin di handphone kan ga ada
   gmana ya soalnya susah buat di atur".
   Sebelumnya layar sentuh hanya bisa memutar (seret); menggeser butuh WASD
   dan zoom butuh roda tikus — dua-duanya tidak ada di HP. Sekarang:
     · cubit dua jari  = zoom (ditangani di app.js)
     · panah di kiri bawah = geser (menulis ke tombol yang sama dengan WASD)
   Blok ini sengaja ditaruh PALING BAWAH supaya bisa menimpa aturan
   `.o2-key { display: none }` di @media (max-width: 720px). */

.o2-pad { display: none; }
.o2-key--sentuh { display: none; }

@media (hover: none) and (pointer: coarse) {
  /* Petunjuk papan tuts tidak berlaku di layar sentuh → ganti. */
  .o2-key { display: none; }
  .o2-key--sentuh { display: inline-flex; }

  .o2-pad {
    display: grid;
    grid-template-areas:
      ".      atas    ."
      "kiri   tengah  kanan"
      ".      bawah   .";
    gap: 6px;
    position: fixed;
    left: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 35;            /* di bawah terminal (55) & drawer (60) */
    padding: 7px;
    border-radius: 18px;
    background: rgba(10, 15, 26, 0.5);
    border: 1px solid var(--o2-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .o2-pad__btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--o2-line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: #d9e2ef;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    /* Jangan menggulir/memperbesar halaman saat tombol ditahan. */
    touch-action: none;
  }

  .o2-pad__btn.is-on {
    background: rgba(56, 217, 245, 0.26);
    border-color: var(--o2-cyan);
    color: #ecfeff;
  }

  .o2-pad__btn--tengah {
    background: rgba(255, 255, 255, 0.03);
    color: var(--o2-muted);
    font-size: 13px;
  }
}

.o2-pad__btn--atas { grid-area: atas; }
.o2-pad__btn--kiri { grid-area: kiri; }
.o2-pad__btn--tengah { grid-area: tengah; }
.o2-pad__btn--kanan { grid-area: kanan; }
.o2-pad__btn--bawah { grid-area: bawah; }

/* ------------------------------------------------------- keterangan tur */
/* Dibuat 1 Nov 2026 bersama perombakan tur kamera. Muncul di bawah bar atas,
   di tengah — area yang kosong di semua ukuran layar (panel kiri/kanan mulai
   di tepi, jadi tengah tetap lega). Tidak menangkap klik sama sekali. */
.o2-tourcap {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translate(-50%, -10px);
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px 9px;
  max-width: min(520px, calc(100vw - 32px));
  border-radius: 14px;
  border: 1px solid var(--o2-line-strong);
  background: rgba(8, 12, 20, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.o2-tourcap.is-on { opacity: 1; transform: translate(-50%, 0); }
.o2-tourcap b {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--o2-text);
}
.o2-tourcap span {
  font-size: 11px;
  line-height: 1.4;
  color: var(--o2-muted);
}

@media (max-width: 720px) {
  .o2-tourcap { top: 66px; padding: 6px 12px 7px; }
  .o2-tourcap b { font-size: 12px; }
  .o2-tourcap span { font-size: 10.5px; }
}
