:root { --bg:#f5f6f8; --card:#fff; --ink:#1b2430; --muted:#6b7480; --line:#e3e6ea; --brand:#1E4D7B; --red:#b43a3a; --amber:#b07a00; }
@media (prefers-color-scheme: dark) { :root { --bg:#12161c; --card:#1b2129; --ink:#e7ebf0; --muted:#98a2ad; --line:#2b333d; --brand:#5b9bd5; } }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--brand); }
.top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; padding:10px 16px; background:var(--card); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.top .brand { font-weight:700; text-decoration:none; color:var(--ink); }
.top nav { display:flex; gap:14px; overflow-x:auto; white-space:nowrap; }
.top nav a { text-decoration:none; color:var(--muted); }
main { max-width:1100px; margin:0 auto; padding:16px; }
h1 { font-size:22px; margin:8px 0 16px; } h2 { font-size:17px; margin:0 0 10px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:12px; }
.card.danger { border-color:var(--red); }
.narrow { max-width:420px; margin:40px auto; } .center { text-align:center; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:12px; }
.row { display:flex; gap:10px; align-items:center; } .between { justify-content:space-between; } .wrap { flex-wrap:wrap; }
.btn { display:inline-block; border:0; border-radius:8px; padding:9px 14px; background:var(--brand); color:#fff; font:inherit; cursor:pointer; text-decoration:none; }
.btn.ghost { background:transparent; color:var(--brand); border:1px solid var(--line); }
.btn.red { background:var(--red); } .btn.fb { background:#1877F2; padding:12px 18px; margin:12px 0; }
label { display:block; margin:8px 0; font-size:14px; color:var(--muted); }
input, select, textarea { width:100%; font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:8px; margin-top:4px; }
input[type=checkbox] { width:auto; margin:0 6px 0 0; } input[type=color] { height:40px; padding:2px; }
.row label { flex:1; min-width:140px; } .check { display:flex; align-items:center; color:var(--ink); }
.checks { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); }
.filters { display:flex; gap:8px; margin-bottom:12px; } .filters select { width:auto; }
.tag { font-size:12px; padding:2px 8px; border-radius:99px; background:var(--bg); border:1px solid var(--line); }
.tag.aduan, .tag.negatif, .tag.spam { color:var(--red); border-color:var(--red); }
.stats { display:flex; gap:8px; margin:10px 0; } .stats a { flex:1; text-align:center; text-decoration:none; background:var(--bg); border-radius:8px; padding:8px; color:var(--ink); }
.stats b { display:block; font-size:22px; } .stats span { font-size:12px; color:var(--muted); }
.muted { color:var(--muted); } .small { font-size:13px; } .warn { color:var(--amber); }
.flash { background:#e8f3ea; color:#1f5f2e; border-radius:8px; padding:10px 14px; margin-bottom:12px; }
.reply { border-left:3px solid var(--brand); padding-left:10px; } .pre { white-space:pre-wrap; }
.post img { width:100%; border-radius:8px; margin:8px 0; }
.bar { height:6px; background:var(--bg); border-radius:3px; margin-top:6px; width:220px; } .bar span { display:block; height:100%; background:var(--brand); border-radius:3px; }
.qr svg { width:220px; height:220px; background:#fff; padding:8px; border-radius:8px; }
.table-wrap { overflow-x:auto; } table { width:100%; border-collapse:collapse; background:var(--card); }
th, td { text-align:left; padding:8px; border-bottom:1px solid var(--line); font-size:14px; }
code { background:var(--bg); padding:2px 6px; border-radius:4px; }

/* Kalendar */
.legend { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; }
.cal { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:4px; }
.cal .dow { font-size:12px; color:var(--muted); text-align:center; padding:4px 0; }
.cal .day { background:var(--card); border:1px solid var(--line); border-radius:8px; min-height:110px; padding:6px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.cal .day.out { opacity:.45; } .cal .day.today { border-color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand); }
.cal .day.over { background:var(--bg); border-style:dashed; }
.cal .dnum { font-size:12px; font-weight:600; color:var(--muted); } .cal .dname { display:none; }
.chip { display:block; font-size:12px; line-height:1.3; padding:4px 6px; border-radius:6px; text-decoration:none; color:var(--ink);
  border-left:3px solid var(--muted); background:var(--bg); overflow:hidden; text-overflow:ellipsis; overflow-wrap:anywhere; }
.legend .chip { display:inline-block; }
.chip[draggable] { cursor:grab; } .chip .pg { color:var(--muted); }
.chip.idea { border-left-color:#8a6fd1; } .chip.draft, .chip.generating { border-left-color:var(--amber); }
.chip.approved { border-left-color:#2e8b57; } .chip.published { border-left-color:var(--brand); opacity:.8; }
.chip.failed, .chip.skipped { border-left-color:var(--red); opacity:.7; }
@media (max-width:760px) {
  .cal { display:flex; flex-direction:column; }
  .cal .dow, .cal .day.empty, .cal .day.out { display:none; }
  .cal .day { min-height:0; } .cal .dname { display:inline; }
}
/* Pratonton gaya Facebook */
.fbprev { border:1px solid var(--line); border-radius:10px; background:var(--card); margin:10px 0; overflow:hidden; max-width:500px; }
.fbprev-head { display:flex; gap:8px; align-items:center; padding:10px 12px 6px; }
.fbprev-av { width:36px; height:36px; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:700; }
.fbprev-text { padding:0 12px 8px; white-space:pre-wrap; font-size:14px; }
.fbprev img { width:100%; display:block; margin:0; border-radius:0; }
.fbprev-bar { display:flex; justify-content:space-around; border-top:1px solid var(--line); padding:6px; }
