/* DRW Social — token warna di :root, mode gelap dipilih (bukan dibalik otomatis). */
:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --border: #e2e1dc;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #7a7974;
  --accent: #c2185b;
  --accent-ink: #ffffff;
  --accent-soft: #fce4ee;
  --series-1: #c2185b;  /* terbayar */
  --series-2: #eb6834;  /* belum lunas */
  --bar: #c2185b;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --good-soft: #e3f4e3; --warning-soft: #fdf1d6; --serious-soft: #fbe6dd; --critical-soft: #f8e0e0;
  --status-ink: #0b0b0b;
  --grid: #e8e7e3;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --radius: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --border: #2f2f2c;
    --text: #ffffff; --text-2: #c3c2b7; --muted: #9a998f;
    --accent: #f06292; --accent-ink: #2a0614; --accent-soft: #3b1626;
    --series-1: #f06292; --series-2: #d95926; --bar: #f06292;
    --good-soft: #17301a; --warning-soft: #3a2e12; --serious-soft: #3b2418; --critical-soft: #3d1a1a;
    --status-ink: #ffffff; --grid: #2a2a27;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --border: #2f2f2c;
  --text: #ffffff; --text-2: #c3c2b7; --muted: #9a998f;
  --accent: #f06292; --accent-ink: #2a0614; --accent-soft: #3b1626;
  --series-1: #f06292; --series-2: #d95926; --bar: #f06292;
  --good-soft: #17301a; --warning-soft: #3a2e12; --serious-soft: #3b2418; --critical-soft: #3d1a1a;
  --status-ink: #ffffff; --grid: #2a2a27;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.boot { padding: 40px; color: var(--muted); }
.hidden { display: none !important; }

/* ── Kerangka ── */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; white-space: nowrap; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav a { padding: 7px 11px; border-radius: 8px; color: var(--text-2); white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.user { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); object-fit: cover; }
.main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Komponen ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.kpi { padding: 14px 16px; }
.kpi .label { color: var(--text-2); font-size: 12px; font-weight: 500; }
.kpi .value { font-size: 22px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .foot { color: var(--muted); font-size: 12px; margin-top: 2px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--critical); }
.btn.sm { padding: 4px 8px; font-size: 12px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.icon { width: 16px; height: 16px; flex: none; }

input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox] { width: auto; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 550; }
label.f .help { font-weight: 400; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters > * { width: auto; }
.filters input[type=search] { min-width: 220px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; color: var(--text-2); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td .sub { color: var(--muted); font-size: 12px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 560;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.good { background: var(--good-soft); color: var(--status-ink); } .badge.good .dot { background: var(--good); }
.badge.warning { background: var(--warning-soft); color: var(--status-ink); } .badge.warning .dot { background: var(--warning); }
.badge.serious { background: var(--serious-soft); color: var(--status-ink); } .badge.serious .dot { background: var(--serious); }
.badge.critical { background: var(--critical-soft); color: var(--status-ink); } .badge.critical .dot { background: var(--critical); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 550; }

.alerts { display: flex; flex-direction: column; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.alert:last-child { border-bottom: 0; }
.alert:hover { background: var(--surface-2); text-decoration: none; }
.alert .sev { flex: none; margin-top: 2px; }
.alert.critical .sev { color: var(--critical); } .alert.serious .sev { color: var(--serious); } .alert.warning .sev { color: var(--warning); }

.note { padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--text); font-size: 13px; }
.note.warn { background: var(--warning-soft); }
.note ul { margin: 6px 0 0; padding-left: 18px; }

/* Kartu metode pembayaran */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pm { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pm .pan { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; letter-spacing: .08em; }
.pm.inactive { opacity: .6; }

/* Detail */
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.dl dt { color: var(--muted); font-size: 12px; padding-top: 1px; }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { .dl { grid-template-columns: minmax(0, 1fr); } .dl dd { margin-bottom: 6px; } }

/* Chart */
.chart { position: relative; padding: 8px 16px 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 16px 0; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); padding: 8px 10px; font-size: 12px; min-width: 160px; z-index: 5; }
.tip .row { display: flex; justify-content: space-between; gap: 12px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.hbars { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.hbar .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hbar .track { height: 8px; background: var(--surface-2); border-radius: 4px; margin-top: 4px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: calc(100vw - 32px); }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); max-width: 420px; }
.toast.err { background: var(--critical); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 8px 12px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; }

/* Login — dua kolom: panel brand (gelap, statis di kedua tema) + kartu masuk. */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.auth-hero { position: relative; overflow: hidden; color: #fce8f1;
  background: radial-gradient(700px 420px at 15% 0%, rgba(236,72,153,.38), transparent 60%),
              radial-gradient(600px 400px at 100% 100%, rgba(251,146,60,.22), transparent 60%), #1a0b14; }
.auth-hero::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 75%); }
.auth-hero-in { position: relative; height: 100%; display: flex; flex-direction: column; gap: 36px; padding: 44px 56px; max-width: 640px; }
.auth-mark { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
.auth-mark .logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); box-shadow: 0 6px 20px rgba(221,42,123,.45); }
.auth-copy { margin-top: auto; }
.auth-eyebrow { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #f9a8d4;
  padding: 4px 10px; border: 1px solid rgba(249,168,212,.3); border-radius: 999px; background: rgba(249,168,212,.08); }
.auth-copy h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; font-weight: 750; letter-spacing: -.025em; margin: 18px 0 14px; color: #fff; }
.auth-copy h2 em { font-style: normal; background: linear-gradient(90deg, #f9a8d4, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy p { margin: 0; color: #d3a9bd; font-size: 15px; line-height: 1.6; max-width: 460px; }
.auth-preview { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px 20px;
  backdrop-filter: blur(8px); box-shadow: 0 20px 60px rgba(0,0,0,.35); max-width: 420px; }
.ap-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #d3a9bd; }
.ap-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(74,222,128,.14); color: #86efac; font-weight: 600; }
.ap-chip .icon { width: 12px; height: 12px; }
.ap-amt { font-size: 26px; font-weight: 750; color: #fff; margin: 6px 0 12px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ap-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.ap-bars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(249,168,212,.35); }
.ap-rows { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #eacbd9; }
.ap-rows div { display: flex; align-items: center; gap: 8px; }
.ap-rows b { margin-left: auto; color: #fff; }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; }
.auth-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-feats li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #eacbd9; }
.auth-feats .icon { color: #f9a8d4; width: 18px; height: 18px; }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); }
.auth-mark-sm { display: none; color: var(--text); margin-bottom: 28px; }
.auth-card h1 { font-size: 30px; font-weight: 750; letter-spacing: -.025em; margin: 0 0 10px; }
.auth-lead { margin: 0 0 24px; color: var(--text-2); line-height: 1.6; font-size: 15px; }
.auth-lead.small { font-size: 13px; }
.g-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; font-size: 15px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.05); transition: transform .12s, box-shadow .12s, border-color .12s; }
.g-btn:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 10px 26px rgba(194,24,91,.16); transform: translateY(-1px); }
.g-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-logo { width: 20px; height: 20px; flex: none; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 28px 0 18px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.auth-points .icon { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-top: -5px; }
.auth-points b { color: var(--text); font-weight: 650; }
.auth-wait { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--warning-soft); margin-bottom: 18px; }
.auth-wait .icon { width: 26px; height: 26px; color: var(--text); }
.auth-foot { text-align: center; font-size: 12px; color: var(--muted); margin: 40px 0 0; }
.login-err { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 16px; border-radius: 10px;
  background: var(--critical-soft); color: var(--status-ink); font-size: 13px; }
.login-err .icon { color: var(--critical); margin-top: 2px; }
.login-actions { display: flex; gap: 8px; }
.login-actions .btn { flex: 1; justify-content: center; padding: 11px; border-radius: 10px; }
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { display: none; }
  .auth-mark-sm { display: flex; }
  .auth-main { background: radial-gradient(700px 360px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); }
}
@media (max-width: 480px) { .auth-main { padding: 32px 16px; justify-content: flex-start; padding-top: 12vh; } .auth-card h1 { font-size: 26px; } }


/* ── DRW Social ── */
.logo { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.pf { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 650; color: #fff; white-space: nowrap; }
.pf.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 60%, #8134af); }
.pf.facebook { background: #1877f2; }
.pf.threads { background: #111; }
:root[data-theme="dark"] .pf.threads { background: #444; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pf.threads { background: #444; } }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.acc { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.acc-top { display: flex; gap: 10px; align-items: center; }
.acc-top img, .acc-top .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.acc.off { opacity: .6; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Kalender */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal .dh { background: var(--surface-2); padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.cal .day { background: var(--surface); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal .day.out { background: var(--bg); }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal .dn { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.cal .ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); border-left: 3px solid var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev:hover { text-decoration: none; filter: brightness(.97); }
.ev.st-scheduled { border-left-color: var(--accent); background: var(--accent-soft); }
.ev.st-review { border-left-color: var(--warning); }
.ev.st-published { border-left-color: var(--good); }
.ev.st-failed, .ev.st-partial { border-left-color: var(--critical); }
@media (max-width: 760px) { .cal { grid-template-columns: minmax(0, 1fr); } .cal .dh { display: none; } .cal .day.out { display: none; } .cal .day { min-height: 0; } }

/* Editor post */
.editor { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: minmax(0, 1fr); } }
.media-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.media-item { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .ctl { position: absolute; top: 3px; right: 3px; display: flex; gap: 2px; }
.media-item .ctl button { border: 0; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 5px; cursor: pointer; }
.media-item .idx { position: absolute; left: 4px; bottom: 3px; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; padding: 0 4px; }
.drop { width: 96px; height: 96px; border: 2px dashed var(--border); border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--muted); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--accent); }
.counter { font-size: 11px; color: var(--muted); text-align: right; margin-top: -2px; }
.counter.over { color: var(--critical); font-weight: 650; }
.preview { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.preview .ph-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; font-weight: 600; font-size: 13px; }
.preview .ph-head .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.preview .ph-img { aspect-ratio: 4/5; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.preview .ph-img img, .preview .ph-img video { width: 100%; height: 100%; object-fit: cover; }
.preview .ph-cap { padding: 10px 12px 14px; font-size: 13px; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.targets { display: flex; flex-direction: column; gap: 6px; }
.targets label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; }
.targets label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.issues { margin: 0; padding-left: 18px; color: var(--text); }
.result-line { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; flex-wrap: wrap; }

/* Komentar */
.cm { padding: 14px 16px; display: grid; gap: 8px; border-bottom: 1px solid var(--border); }
.cm:last-child { border-bottom: 0; }
.cm-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.cm-text { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.cm-ctx { font-size: 12px; color: var(--muted); }
.cm textarea { min-height: 56px; }
.cm .reply-done { font-size: 13px; background: var(--good-soft); padding: 8px 10px; border-radius: 8px; }

/* Panduan */
.guide { max-width: 920px; }
.guide h2 { margin: 28px 0 10px; font-size: 18px; }
.guide h3 { margin: 18px 0 6px; }
.guide p, .guide li { line-height: 1.65; }
.guide code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; word-break: break-all; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.steps > li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.steps > li b:first-child { display: block; margin-bottom: 2px; }
.steps ul { margin: 6px 0 0; padding-left: 18px; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cmp th, .cmp td { font-size: 13px; }
.ok { color: var(--good); font-weight: 700; } .no { color: var(--critical); font-weight: 700; }
.opt { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; display: flex; gap: 10px; align-items: flex-start; }
.opt p { margin: 0; flex: 1; white-space: pre-wrap; }
label.f .pf { align-self: flex-start; }

/* Login: kunci setinggi layar di desktop (tanpa scrollbar halaman); panel kiri dipadatkan bila layar pendek. */
@media (min-width: 961px) {
  .auth { height: 100vh; height: 100dvh; overflow: hidden; }
  .auth-main { overflow-y: auto; }
  .auth-hero-in { padding: 36px 48px; gap: 28px; justify-content: center; }
  .auth-copy { margin-top: 0; }
}
@media (min-width: 961px) and (max-height: 900px) {
  .auth-hero-in { gap: 20px; padding: 28px 44px; }
  .auth-copy h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 12px 0 10px; }
  .auth-preview { padding: 14px 16px; }
  .ap-amt { font-size: 22px; margin: 4px 0 8px; }
  .ap-bars { height: 40px; }
}
@media (min-width: 961px) and (max-height: 760px) { .auth-feats { display: none; } }
@media (min-width: 961px) and (max-height: 620px) { .auth-preview { display: none; } }
