/* Fase 1: presence agen + meja persetujuan (gaya Cozy: kayu + perkamen). */
#fz1-bar {
  position: fixed; left: 16px; bottom: 12px; z-index: 2100;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg,#FFFDF4,#F6EACB);
  border: 3px solid #6B4226; border-radius: 14px; padding: 7px 10px;
  box-shadow: 0 4px 0 #46301B, 0 10px 24px rgba(43,30,17,.35);
  font-family: "Nunito","DejaVu Sans",sans-serif; max-width: 44vw;
}
.fz1-lbl { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #8B5E34; }
.fz1-agents { display: flex; gap: 6px; flex-wrap: wrap; }
.fz1-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF8E6; border: 2px solid #C9A96A; border-radius: 999px;
  padding: 3px 9px; font-size: 11.5px; font-weight: 700; color: #3A2A1A;
}
.fz1-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 -1px 2px rgba(0,0,0,.25); }
.fz1-st { font-size: 10px; color: #7A6550; font-weight: 600; }
#fz1-appr-btn {
  cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(180deg,#FFFDF4,#F1E2BC); color: #3A2A1A;
  border: 2.5px solid #6B4226; border-radius: 999px; padding: 5px 12px;
  box-shadow: 0 3px 0 #46301B);
}
#fz1-appr-btn.has { background: linear-gradient(180deg,#FFD968,#E8A33D); animation: fz1pulse 1.6s infinite; }
@keyframes fz1pulse { 50% { box-shadow: 0 3px 0 #46301B, 0 0 14px rgba(232,163,61,.9); } }

#fz1-desk {
  /* RONDE 3 / S2(a): posisi dibuka DIATUR DINAMIS oleh presence_v1.js
     (positionDesk) menyusul posisi tombol Persetujuan — di ATAS tombol bila
     muat, else di bawah; toggle tidak pernah ketutup mejanya sendiri
     (pelajaran R1 ronde 2). Nilai left/bottom di sini hanya default awal. */
  position: fixed; left: 24px; bottom: 186px; z-index: 2100; width: 340px; max-width: 92vw;
  max-height: 46vh; overflow: auto; display: none;
  background: linear-gradient(180deg,#FFFDF4,#F6EACB);
  border: 3px solid #6B4226; border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 6px 0 #46301B, 0 16px 40px rgba(43,30,17,.4);
  font-family: "Nunito","DejaVu Sans",sans-serif;
}
#fz1-desk.open { display: block; }
#fz1-desk h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: 1px; color: #4A2F0E; display: flex; align-items: center; }
/* RONDE 3 / S2(a): tombol ✕ penutup darurat di judul meja */
#fz1-desk .fz1-x {
  margin-left: auto; flex: none; cursor: pointer;
  width: 26px; height: 26px; border-radius: 8px; padding: 0;
  border: 2.5px solid #6B4226; background: #FFF8E6; color: #6B4226;
  font-size: 13px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
#fz1-desk .fz1-x:active { transform: translateY(2px); }
.fz1-sub { font-size: 11px; color: #7A6550; margin-bottom: 10px; }
.fz1-list { display: flex; flex-direction: column; gap: 10px; }
.fz1-item { background: #FFF8E6; border: 2px solid #C9A96A; border-radius: 12px; padding: 9px 10px; }
.fz1-ticket { font-size: 10.5px; color: #8B5E34; font-weight: 800; letter-spacing: .5px; }
.fz1-task { font-size: 12.5px; color: #3A2A1A; margin: 3px 0 8px; }
.fz1-row { display: flex; gap: 8px; }
.fz1-ok, .fz1-no {
  flex: 1; cursor: pointer; font-size: 12px; font-weight: 800; padding: 7px 0;
  border-radius: 10px; border: 2.5px solid #6B4226;
}
.fz1-ok { background: linear-gradient(180deg,#BFE8B0,#7BC96F); color: #1E4D16; box-shadow: 0 3px 0 #2E6B23; }
.fz1-no { background: linear-gradient(180deg,#F2B8B0,#DE7A6E); color: #5E1A12; box-shadow: 0 3px 0 #8C2F24; }
.fz1-ok:active, .fz1-no:active { transform: translateY(2px); box-shadow: none; }
.fz1-ok:disabled, .fz1-no:disabled { opacity: .6; cursor: wait; }
.fz1-empty { text-align: center; font-size: 12px; color: #7A6550; padding: 14px 6px; }

@media (max-width: 1000px) {
  #fz1-bar { left: 10px; bottom: 148px; max-width: 70vw; padding: 6px 8px; }
  #fz1-desk { left: 10px; bottom: 244px; }
}

/* === v2 (Roshi, 2026-10-14, perintah langsung Bos): presence di kartu kru === */
/* titik presence di avatar kartu PARTY */
.pz-wrap { position: relative; display: inline-flex; flex: none; }
.pz-dot {
  position: absolute; right: -3px; bottom: -3px; z-index: 2;
  width: 15px; height: 15px; border-radius: 50%;
  border: 3px solid #FFF8E6; pointer-events: none;
}
.pz-dot.online { background: #35C26E; box-shadow: 0 0 7px rgba(53,194,110,.9); animation: pz-ping 2s infinite; }
.pz-dot.idle { background: #9AA0A6; }
.pz-dot.needs-appr { background: #E8A33D; box-shadow: 0 0 7px rgba(232,163,61,.95); animation: pz-ping 1.1s infinite; }
@keyframes pz-ping { 50% { transform: scale(1.28); } }
/* badge jumlah persetujuan di avatar — klik buka meja */
.pz-badge {
  position: absolute; top: -9px; right: -9px; z-index: 3;
  min-width: 24px; height: 24px; border-radius: 999px; padding: 0 6px;
  background: linear-gradient(180deg,#FFD968,#E8A33D); color: #4A2F0E;
  border: 2.5px solid #6B4226; box-shadow: 0 2px 0 #46301B;
  font: 800 11px "Nunito","DejaVu Sans",sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pz-badge:active { transform: translateY(2px); box-shadow: none; }
/* RONDE 3 / S2: tombol Persetujuan PINDAH ke dalam kartu denah (#sideLeft)
   — aturan lama "tombol di header panel PARTY" DIHAPUS (penempatan + gaya
   kini di gamehud.css). */
/* item meja persetujuan: SIAPA + APA, jelas */
.fz1-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fz1-whoav {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; border: 2px solid #6B4226;
}
.fz1-who b { font-size: 13.5px; color: #3A2A1A; }
.fz1-who .fz1-ticket { margin-left: auto; }
