:root {
  --y: #ffd600;
  --b: #3b63e6;
  --k: #111111;
  --paper: #f4f3ee;
  --card: #ffffff;
  --cream: #fffbe8;
  --green: #35e08a;
  --lime: #6cff5c;
  --red: #f43f5e;
  --orange: #ffa63d;
  --muted: #5d5d57;
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --line: 3px solid var(--k);
  --shadow: 5px 5px 0 var(--k);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--k);
  font: 15px/1.45 var(--sans);
  background-color: var(--paper);
  background-image: radial-gradient(#d2d0c6 1.6px, transparent 1.6px);
  background-size: 26px 26px;
}
body.auth {
  background-color: #e4e4e4;
  background-image:
    linear-gradient(#d3d3d3 1px, transparent 1px),
    linear-gradient(90deg, #d3d3d3 1px, transparent 1px);
  background-size: 40px 40px;
}
h1, h2, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.offscreen { position: fixed; left: -9999px; top: 0; }
.ic { display: inline-flex; vertical-align: middle; }

/* ───────── Logo ───────── */
.logo {
  font-family: var(--sans);
  font-weight: 700;
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: var(--y);
  text-shadow:
    -2px -2px 0 var(--k), 2px -2px 0 var(--k), -2px 2px 0 var(--k), 2px 2px 0 var(--k),
    4px 4px 0 var(--k);
  white-space: nowrap;
}
.logo.sm { font-size: 1.45rem; }

/* ───────── Tombol & form ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: #fff;
  border: var(--line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--k);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--k); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.block { display: flex; width: 100%; }
.btn.blue { background: var(--b); color: #fff; }
.btn.yellow { background: var(--y); }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { padding: 6px 10px; font-size: 0.74rem; border-radius: 9px; box-shadow: 2px 2px 0 var(--k); border-width: 2px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .icon-btn:focus-visible {
  outline: 3px solid var(--b);
  outline-offset: 2px;
}

.lbl {
  display: block;
  margin: 0 0 7px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.lbl-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.lbl-row .lbl { margin: 0; }
.tag {
  padding: 3px 8px;
  background: var(--b);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
}
input, select, textarea {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 13px 14px;
  background: var(--cream);
  border: var(--line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--k);
  font-weight: 500;
}
input::placeholder, textarea::placeholder { color: #8b8b84; }
textarea { resize: vertical; font-family: var(--mono); font-size: 0.92rem; }
select { font-family: var(--mono); font-weight: 700; color: #107a3a; appearance: auto; }
.field { position: relative; }
.field input { padding-right: 62px; }
.field .icon-btn { position: absolute; right: 8px; top: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #fff;
  border: 2px solid var(--k);
  border-radius: 9px;
  box-shadow: 2px 2px 0 var(--k);
  cursor: pointer;
}
.icon-btn.xs { width: 26px; height: 26px; border-radius: 7px; box-shadow: 1px 1px 0 var(--k); }
.hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.empty { padding: 20px 0; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }

/* ───────── Login ───────── */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login {
  width: 100%;
  max-width: 400px;
  padding: 28px 22px 24px;
  background: #fff;
  border: 4px solid var(--k);
  border-radius: 22px;
  box-shadow: 9px 9px 0 var(--k);
}
.brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--b);
  border: 4px solid var(--k);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--k);
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  transform: rotate(-4deg);
}
.brand h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(transparent 62%, var(--y) 62%);
  display: inline-block;
}
.brand p { margin-top: 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-tag {
  padding: 5px 10px;
  background: #ffe36b;
  border: 2px solid var(--k);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--k);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.chip-tag.blue { background: var(--b); color: #fff; }
.dash { border: 0; border-top: 3px dashed var(--k); margin: 0 0 18px; }

/* ───────── Shell ───────── */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 14px 0;
  padding: 10px 14px;
  background: #fff;
  border: 4px solid var(--k);
  border-radius: 30px;
  box-shadow: 0 5px 0 var(--k);
}
.burger {
  display: grid;
  place-items: center;
  width: 46px;
  height: 36px;
  background: var(--y);
  border: 3px solid var(--k);
  border-radius: 18px;
  cursor: pointer;
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 0 14px 14px;
}
.head h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1.05; }
.head .sub { margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.rule { max-width: 732px; margin: 0 auto 18px; border: 0; border-top: 3px solid var(--k); }
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 11px;
  background: var(--cream);
  border: 3px solid var(--k);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--k);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  transform: rotate(2deg);
}
.dot { width: 9px; height: 9px; background: #10b981; border: 2px solid var(--k); border-radius: 50%; }

main { max-width: 760px; margin: 0 auto; padding: 0 14px 110px; }

.card {
  margin-bottom: 22px;
  padding: 22px 20px;
  background: var(--card);
  border: 4px solid var(--k);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--k);
}
.card.yellow { background: var(--y); }
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--k);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pill-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -34px 0 16px;
  padding: 9px 16px;
  background: #fff;
  border: 3px solid var(--k);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--k);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
.card.list-card { padding-top: 34px; }
.card .sep { margin: 0 0 16px; border: 0; border-top: 3px solid var(--k); }

/* search */
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 14px; }
.search input { padding-left: 42px; font-family: var(--mono); font-size: 0.85rem; background: #fff; }

/* ───────── Stat ───────── */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.stat {
  padding: 16px 14px 0;
  background: #fff;
  border: 4px solid var(--k);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--k);
  overflow: hidden;
}
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
.ibox {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--k);
  border-radius: 11px;
  box-shadow: 2px 2px 0 var(--k);
  color: #fff;
}
.ibox.sm { width: 36px; height: 36px; border-width: 2px; border-radius: 9px; }
.c-blue { background: var(--b); }
.c-green { background: #10b981; }
.c-purple { background: #8b5cf6; }
.c-cyan { background: #06b6d4; }
.c-red { background: var(--red); }
.c-yellow { background: var(--y); color: var(--k); }
.stat-tag {
  padding: 3px 7px;
  background: var(--cream);
  border: 2px solid var(--k);
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
}
.stat-num { font-size: 2.3rem; font-weight: 700; line-height: 1; }
.stat-cap { margin: 6px 0 12px; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; color: var(--muted); }
.stat-bar { height: 7px; margin: 0 -14px; }
.stat-bar.blue { background: var(--b); }
.stat-bar.green { background: #10b981; }

.sc-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; }
.sc-card .ibox { background: var(--y); color: var(--k); width: 52px; height: 52px; }
.sc-body { flex: 1 1 180px; min-width: 0; }
.sc-body .lbl { margin-bottom: 8px; color: var(--muted); }
.sc-body input { margin: 0; padding: 10px 12px; font-family: var(--mono); letter-spacing: 0.1em; }
.sc-actions { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 190px;
  padding: 10px 8px;
  background: var(--cream);
  background-image: linear-gradient(#ece6c8 1px, transparent 1px);
  background-size: 100% 40px;
  border: 3px solid var(--k);
  border-radius: 14px;
}
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.bubble {
  padding: 1px 7px;
  background: var(--k);
  color: var(--y);
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.74rem;
}
.bar-fill { width: 100%; border: 3px solid var(--k); border-radius: 6px 6px 3px 3px; background: var(--b); }
.col:nth-child(even) .bar-fill { background: var(--y); }
.chart-labels { display: flex; gap: 5px; padding: 8px 8px 0; }
.chart-labels span { flex: 1; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 0.62rem; text-transform: uppercase; color: var(--muted); }
.chart-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.chart-foot .up { padding: 7px 12px; background: var(--k); color: #fff; border-radius: 8px; font-weight: 700; }

/* ───────── Tabel ───────── */
.tbl { background: #fff; border: 4px solid var(--k); border-radius: 18px; overflow: hidden; }
.stripe { height: 13px; background: repeating-linear-gradient(135deg, var(--y) 0 12px, var(--b) 12px 24px); border-bottom: 3px solid var(--k); }
.tscroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 15px 14px;
  background: var(--b);
  color: #fff;
  border-bottom: 3px solid var(--k);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td { padding: 12px 14px; border-top: 2px solid var(--k); border-right: 2px solid var(--k); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
td:last-child { border-right: 0; }
td.num { font-family: var(--mono); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
td .by { display: block; margin-top: 2px; font-family: var(--sans); font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.stack.row { flex-direction: row; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 4px 11px;
  border: 2px solid var(--k);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--k);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.active { background: #3ee08c; }
.badge.perm { background: var(--lime); }
.badge.blacklist { background: var(--red); color: #fff; }
.badge.expired { background: var(--orange); }
.badge.off { background: #d9d9d2; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  background: #fff;
  border: 2px solid var(--k);
  border-radius: 9px;
  box-shadow: 2px 2px 0 var(--k);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.chip .blur { filter: blur(4px); user-select: none; }
.chip .icon-btn { width: 22px; height: 22px; border: 0; box-shadow: none; background: none; border-radius: 4px; }

/* ───────── Drawer ───────── */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(84vw, 330px);
  padding: 20px;
  background: #fff;
  border-right: 6px solid var(--k);
  transform: translateX(-105%);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 3px solid var(--k); }
.drawer-label { margin: 22px 0 10px 6px; font-family: var(--mono); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8a84; }
.nav { display: flex; flex-direction: column; gap: 12px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #fff;
  border: 3px solid var(--k);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--k);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.nav-item.on { background: var(--k); color: #fff; box-shadow: 4px 4px 0 var(--y); }
.drawer-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 3px solid var(--k); }
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: #fafaf6;
  border: 3px solid var(--k);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--k);
}
.me .av { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; background: var(--k); color: #fff; border-radius: 8px; font-weight: 700; }
.me strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { display: block; color: var(--b); font-family: var(--mono); font-weight: 700; font-size: 0.66rem; text-transform: uppercase; }

/* ───────── FAB & bantuan ───────── */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--y);
  border: 4px solid var(--k);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--k);
  cursor: pointer;
}
.fab:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--k); }
.help {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 20;
  width: min(86vw, 330px);
  padding: 14px;
  background: #fff;
  border: 4px solid var(--k);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--k);
}
.help[hidden] { display: none; }
.help-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--k); font-family: var(--mono); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; }
.help-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  background: var(--cream);
  border: 3px solid var(--k);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--k);
  color: inherit;
  text-decoration: none;
}
.help-item .grow { flex: 1; min-width: 0; }
.help-item strong { display: block; }
.help-item small { color: var(--muted); }
.help .empty { padding: 14px 4px; }

/* ───────── Dialog ───────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(3px);
}
.dialog {
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px;
  background: #fff;
  border: 4px solid var(--k);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--k);
}
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 3px solid var(--k); font-size: 1.1rem; overflow-wrap: anywhere; }
.dialog .btn { margin-bottom: 12px; }
.dialog hr { margin: 6px 0 14px; border: 0; border-top: 3px dashed var(--k); }

/* ───────── Toast ───────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 80;
  max-width: 90vw;
  padding: 11px 16px;
  background: var(--k);
  color: #fff;
  border: 3px solid var(--k);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--y);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  transform: translateX(-50%);
}
.toast.bad { background: var(--red); box-shadow: 4px 4px 0 var(--k); }

code.box {
  display: block;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--cream);
  border: 3px solid var(--k);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: no-preference) {
  .drawer { transition: transform 0.22s ease; }
  .scrim { transition: opacity 0.2s ease; }
  .btn, .fab { transition: transform 0.08s, box-shadow 0.08s; }
}
@media (max-width: 380px) {
  .head h1 { font-size: 1.6rem; }
  .stat-num { font-size: 2rem; }
}

/* ───────── Logo gambar, informasi, chat global, upload ───────── */
.logo { overflow: hidden; text-overflow: ellipsis; max-width: 62vw; padding: 2px 8px 6px 2px; }
.logo-img { display: block; height: 38px; max-width: 190px; object-fit: contain; }
.logo-img.sm { height: 32px; max-width: 150px; }
.avatar-img {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  object-fit: cover;
  background: #fff;
  border: 4px solid var(--k);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--k);
  transform: rotate(-4deg);
}
.brand h1 { overflow-wrap: anywhere; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--y);
  border: 4px solid var(--k);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--k);
}
.notice .ibox { background: #fff; color: var(--k); flex: 0 0 auto; }
.notice strong { font-family: var(--mono); text-transform: uppercase; font-size: 0.8rem; }
.notice p, .ann-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ann-text { margin-bottom: 16px; }

button.help-item { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.help-head .grow { flex: 1; }
.help-head { gap: 8px; }
.help.chat { width: min(92vw, 380px); }
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: min(46vh, 340px);
  margin-bottom: 10px;
  padding: 10px;
  overflow-y: auto;
  background: var(--cream);
  border: 3px solid var(--k);
  border-radius: 14px;
}
.msg {
  align-self: flex-start;
  max-width: 90%;
  padding: 7px 10px;
  background: #fff;
  border: 2px solid var(--k);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--k);
}
.msg.own { align-self: flex-end; background: var(--y); }
.msg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 3px; font-size: 0.78rem; }
.msg-role {
  padding: 1px 6px;
  background: #fff;
  border: 2px solid var(--k);
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.58rem;
  text-transform: uppercase;
}
.r-developer { background: var(--red); color: #fff; }
.r-owner { background: var(--b); color: #fff; }
.r-pt { background: #8b5cf6; color: #fff; }
.msg-time { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 0.62rem; }
.msg-del { padding: 0 6px; background: none; border: 0; color: var(--red); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.msg-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-form input { flex: 1; margin: 0; padding: 10px 12px; }

.check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; padding: 0; flex: 0 0 auto; box-shadow: none; accent-color: var(--b); }

.logo-box { margin-bottom: 8px; }
.logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.logo-prev {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border: 3px solid var(--k);
  border-radius: 12px;
}
.empty-prev { display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 0.66rem; text-align: center; }
.file-in { margin-bottom: 8px; padding: 8px; background: #fff; font-size: 0.8rem; box-shadow: none; }

/* ───────── Musik ───────── */
.fab.playing::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border: 3px solid var(--k);
  border-radius: 50%;
}
.now { margin-bottom: 10px; font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; }
.controls { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vol { flex: 1; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; accent-color: var(--b); }
.track-list { max-height: min(40vh, 300px); overflow-y: auto; padding: 2px 4px 2px 2px; }
.track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: var(--cream);
  border: 3px solid var(--k);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--k);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.track.on { background: var(--y); }
.track .grow { overflow-wrap: anywhere; }

/* ───────── Logo + nama, foto profil ───────── */
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-lockup .logo-img { flex: 0 0 auto; }
.brand-lockup .logo { max-width: 42vw; font-size: 1.35rem; }
.brand-lockup .logo.sm { font-size: 1.15rem; max-width: 34vw; }
.me .av-img { object-fit: cover; background: #fff; }
.msg-av {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: cover;
  background: var(--y);
  border: 2px solid var(--k);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
}
.profile-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.profile-prev {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  object-fit: cover;
  background: #fff;
  border: 3px solid var(--k);
  border-radius: 50%;
}
.profile-prev.ph { display: grid; place-items: center; background: var(--y); font-size: 2rem; font-weight: 700; }

/* ───────── Pengumuman resmi ───────── */
.c-sky { background: #229ed9; }
.ibox.dark { background: var(--k); color: var(--y); width: 48px; height: 48px; flex: 0 0 auto; }
.dialog.ann { padding: 0; max-width: 400px; overflow: hidden; }
.ann-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 30px 16px 14px;
  background: repeating-linear-gradient(135deg, #ffe36b 0 14px, #fff1a6 14px 28px);
  border-bottom: 4px solid var(--k);
}
.ann-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(135deg, var(--y) 0 12px, var(--b) 12px 24px);
  border-bottom: 3px solid var(--k);
}
.ann-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.03em; text-transform: uppercase; }
.ann-head p { font-size: 0.82rem; color: var(--muted); }
.ann-body { padding: 16px; }
.ann-card {
  margin-bottom: 14px;
  padding: 14px;
  background: #fff;
  border: 3px solid var(--k);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--k);
}
.ann-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 3px dashed #cfcfc6; }
.ann-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--y);
  border: 2px solid var(--k);
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
}
.ann-date { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.ann-body .btn { margin-bottom: 0; }

/* ───────── Menu bantuan: musik ───────── */
.help-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* ───────── Halaman chat global ───────── */
main.chat-main { padding-bottom: 0; }
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 190px);
  height: calc(100dvh - 190px);
  min-height: 380px;
  background: #fff;
  border: 4px solid var(--k);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--k);
  overflow: hidden;
}
.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  background-color: var(--paper);
  background-image: radial-gradient(#d2d0c6 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}
.cmsg { display: flex; gap: 12px; margin-bottom: 16px; }
.cm-av {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #e4e4e0;
  border: 3px solid var(--k);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--k);
  font-weight: 700;
}
.cm-main { flex: 1; min-width: 0; }
.cm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 0.85rem; }
.cm-meta strong { color: #333; overflow-wrap: anywhere; }
.cm-time { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 0.64rem; }
.cm-act { display: inline-flex; padding: 2px; background: none; border: 0; color: #777; cursor: pointer; }
.bubble-msg {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 3px solid var(--k);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--k);
  overflow-wrap: anywhere;
}
.bubble-msg.own { background: #fff1a6; }
.quote { margin-bottom: 8px; padding: 6px 8px; background: rgba(0, 0, 0, 0.06); border-left: 4px solid var(--b); border-radius: 6px; font-size: 0.78rem; }
.quote strong { display: block; }
.chat-img { display: block; max-width: 100%; max-height: 260px; margin-bottom: 6px; border: 2px solid var(--k); border-radius: 10px; cursor: zoom-in; }
.voice { display: block; width: min(250px, 100%); height: 40px; }
.zoom { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border: 3px solid var(--k); border-radius: 12px; }

.msg-role { box-shadow: 1px 1px 0 var(--k); }
.r-owner { background: var(--y); color: var(--k); }
.r-reseller { background: #10b981; color: #fff; }
.r-pt { background: #8b5cf6; color: #fff; }
.r-developer { background: var(--red); color: #fff; }

.chat-foot { padding: 12px; background: #fff; border-top: 4px solid var(--k); }
.reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--cream);
  border: 3px solid var(--k);
  border-left: 8px solid var(--b);
  border-radius: 10px;
  font-size: 0.82rem;
}
.reply-bar[hidden] { display: none; }
.reply-bar .grow { overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-form input { flex: 1; min-width: 0; margin: 0; padding: 12px; }
.tool-btn, .send-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 3px solid var(--k);
  border-radius: 12px;
  cursor: pointer;
}
.tool-btn { width: 44px; height: 44px; background: #fff; box-shadow: 2px 2px 0 var(--k); }
.send-btn { width: 48px; height: 48px; background: var(--b); color: #fff; box-shadow: 3px 3px 0 var(--k); }
.send-btn:disabled { opacity: 0.55; }
.rec-dot { flex: 0 0 auto; width: 12px; height: 12px; background: var(--red); border: 2px solid var(--k); border-radius: 50%; }
.rec-label { font-family: var(--mono); font-weight: 700; }
.hidden-file { display: none; }
