:root {
  --navy: #1b2559;
  --navy-700: #2a3570;
  --blue: #2e5aac;
  --green: #2e8b2e;
  --green-600: #246b24;
  --leaf: #5bb030;
  --amber: #f59e0b;
  --red: #e5484d;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e8ef;
  --bg: #f4f6fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Header + Nav */
.site-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: #fff;
  padding: 10px 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(16,24,40,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.tagline { font-size: 11px; font-style: italic; opacity: .85; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-btn {
  font: inherit; font-size: 14px; font-weight: 600; color: #dfe4f5;
  background: transparent; border: none; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-btn:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-btn.active { background: #fff; color: var(--navy); }

/* Mode badge bar */
.mode-badge-bar {
  background: #fff6e6; color: #92600a; border-bottom: 1px solid #f6dca0;
  font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px;
}

/* Views */
.view { display: none; animation: fade .2s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.4px; color: var(--navy); }
.hero p { margin: 0; color: var(--muted); max-width: 720px; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin: 16px 0;
}
.card h2 { margin: 0 0 14px; font-size: 17px; color: var(--navy); }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--green); letter-spacing: -.5px; }
.stat-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }

/* Quick actions */
.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.qa-btn {
  text-align: left; font: inherit; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; gap: 2px;
}
.qa-btn:hover { border-color: var(--green); background: #f1f8f1; }
.qa-btn b { color: var(--navy); font-size: 15px; }
.qa-btn small { color: var(--muted); }

/* Mini list (history/recent) */
.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px;
  transition: background .12s;
}
.mini-row:hover { background: #f6f8fc; }
.mini-row:last-child { border-bottom: none; }
.mini-main { display: flex; flex-direction: column; min-width: 0; }
.mini-title { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 12px; color: var(--muted); }
.mini-score { font-size: 18px; font-weight: 800; flex: 0 0 auto; }
.badge-kind { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef2fb; color: var(--blue); text-transform: capitalize; }

/* Form */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; margin-bottom: 6px; }
label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--red); }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], textarea {
  font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfcfe; color: var(--ink); resize: vertical; width: 100%;
}
input[type=text]:focus, textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(46, 90, 172, .12);
}
.engines { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 0 4px; }
.engines-label { font-size: 13px; font-weight: 600; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; margin-top: 6px; }
.engine-note { font-size: 12px; color: var(--muted); }
.btn-primary {
  margin-top: 16px; width: 100%; font: inherit; font-size: 15px; font-weight: 700; color: #fff;
  background: var(--green); border: none; border-radius: 10px; padding: 13px 18px; cursor: pointer;
  transition: filter .15s, transform .05s;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary.inline { width: auto; margin-top: 0; padding: 11px 18px; white-space: nowrap; }
.btn-ghost {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--blue); background: #eef3fc;
  border: 1px solid #d7e2f7; border-radius: 9px; padding: 8px 13px; cursor: pointer; transition: background .15s;
}
.btn-ghost:hover { background: #e1ebfb; }
.disclaimer { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* Loading */
.loading { text-align: center; padding: 36px; }
.spinner {
  width: 38px; height: 38px; margin: 0 auto 14px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--green); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Score hero */
.score-hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.score-ring {
  --val: 0; --col: var(--green);
  width: 150px; height: 150px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--col) calc(var(--val) * 1%), var(--line) 0);
  display: grid; place-items: center;
}
.score-num {
  width: 116px; height: 116px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: 40px; font-weight: 800; color: var(--navy);
}
.score-num small { font-size: 15px; font-weight: 600; color: var(--muted); }
.score-meta { flex: 1; min-width: 240px; }
.score-grade { font-size: 22px; font-weight: 800; color: var(--navy); }
.score-for { color: var(--muted); margin-bottom: 14px; }
.subscores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.sub-label { font-size: 13px; color: var(--muted); }
.sub-val { font-size: 22px; font-weight: 700; color: var(--ink); }
.sub-val small { font-size: 13px; font-weight: 600; color: var(--muted); }
.bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; width: 0; }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .card { margin: 0; height: 100%; }
.summary { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.summary b { color: var(--ink); }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.pill.yes { background: #e6f7ee; color: #0c7a44; }
.pill.no { background: #fdeaea; color: #b42318; }

/* Check list */
.check-list { display: flex; flex-direction: column; gap: 4px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: none; }
.check-icon { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.ok { background: var(--green); }
.bad { background: var(--red); }
.warn { background: var(--amber); }
.check-text { font-size: 14px; }
.check-text small { display: block; color: var(--muted); font-size: 12px; }

/* Recommendations */
.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px; padding: 12px 14px; }
.rec.tinggi { border-left-color: var(--red); }
.rec.sedang { border-left-color: var(--amber); }
.rec.rendah { border-left-color: var(--green); }
.rec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rec-prio { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 6px; color: #fff; }
.rec.tinggi .rec-prio { background: var(--red); }
.rec.sedang .rec-prio { background: var(--amber); }
.rec.rendah .rec-prio { background: var(--green); }
.rec-title { font-weight: 700; font-size: 15px; }
.rec-detail { font-size: 13px; color: var(--muted); }

/* Result head / actions */
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.result-head h2 { margin: 0; }
.result-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gen-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #eef2fb; color: var(--blue); }

/* Content preview (rendered markdown) */
.content-preview { font-size: 14.5px; line-height: 1.7; }
.content-preview h1 { font-size: 22px; color: var(--navy); margin: 0 0 6px; }
.content-preview h2 { font-size: 17px; color: var(--navy); margin: 20px 0 8px; border: none; }
.content-preview h3 { font-size: 15px; color: var(--ink); margin: 14px 0 4px; }
.content-preview p { margin: 0 0 10px; }
.content-preview ul { margin: 0 0 10px; padding-left: 22px; }
.content-preview .lead { background: #f1f8f1; border-left: 4px solid var(--green); padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.content-preview .faq-q { font-weight: 700; color: var(--navy); margin-top: 12px; }

/* Schema CTA */
.schema-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.schema-cta h2 { margin: 0 0 4px; }
.schema-cta p { margin: 0; }

/* Code block */
.code-block {
  background: #0f1729; color: #e6edf6; border-radius: 10px; padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  line-height: 1.5; overflow-x: auto; white-space: pre; max-height: 460px; margin: 0 0 10px;
}

/* Tech tabs */
.tech-tabs { display: flex; gap: 6px; margin: 18px 0 4px; flex-wrap: wrap; }
.tech-tab {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: #eef1f7; border: 1px solid var(--line); border-radius: 9px; padding: 9px 16px; cursor: pointer;
}
.tech-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tech-panel { display: none; }
.tech-panel.active { display: block; }

/* Step list */
.step-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.step-list li { font-size: 14px; }
.step-list b { color: var(--navy); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 100; opacity: 0; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Footer */
.site-footer { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 0; }

/* Responsive */
@media (max-width: 820px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid, .two-col, .subscores { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .score-hero { justify-content: center; text-align: center; }
  .main-nav { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav-btn { padding: 7px 11px; font-size: 13px; }
}

/* --- Fase mandiri: isi-otomatis, kesiapan, benchmark --- */
.info-badge-bar {
  background: #eaf6ee; color: #1d6b3a; border-bottom: 1px solid #b7e0c4;
  font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px;
}
.autofill-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.autofill-row .muted { font-size: 12.5px; }

details.advanced {
  border: 1px solid var(--line); border-radius: 11px; padding: 4px 14px 12px;
  background: #fbfcfe; margin-bottom: 6px;
}
details.advanced > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--navy);
  padding: 10px 0; list-style: none; user-select: none;
}
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::before { content: "▸ "; color: var(--muted); }
details.advanced[open] > summary::before { content: "▾ "; }

.pill.warn-pill { background: #fef3e2; color: #92600a; }

.bench-chip {
  display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; background: #eef2fb; color: var(--blue); margin-bottom: 12px;
}

/* --- Mode toggle Bisnis/Perorangan --- */
.mode-toggle { display: inline-flex; gap: 4px; background: #eef1f7; border: 1px solid var(--line);
  border-radius: 11px; padding: 4px; margin-bottom: 14px; }
.mode-btn { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent;
  border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.mode-btn.active { background: var(--green); color: #fff; }

/* --- Fase 3: akun, pantau, langganan, feedback --- */
.auth-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; }
.auth-chip .chip-btn { font: inherit; font-size: 13px; font-weight: 600; color: var(--navy);
  background: #fff; border: none; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.auth-chip .chip-email { opacity: .9; }
.auth-chip .chip-tier { background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
.alert-badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 1px 6px; margin-left: 2px; }

.feedback-card { background: #f8fafc; }
.fb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; font-size: 14px; }
.fb-row input[type=text] { flex: 1; min-width: 160px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(16,24,40,.55); display: flex;
  align-items: center; justify-content: center; z-index: 200; padding: 18px; }
.modal { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 22px;
  width: 100%; max-width: 380px; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.plan.current { border: 2px solid var(--green); }
.plan h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.plan .price { font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.plan .price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.plan ul { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--muted); flex: 1; }
.plan ul li { margin-bottom: 3px; }
.plan button { margin-top: auto; }
.order-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--green); border-radius: 10px; background: #f1f8f1; font-size: 14px; }
@media (max-width: 720px) { .plans-grid { grid-template-columns: 1fr; } }

/* --- Form masukan --- */
select { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfcfe; color: var(--ink); width: 100%; }
.rating { display: flex; gap: 4px; }
.rating button { font-size: 26px; line-height: 1; color: #d3d7e0; background: none; border: none; cursor: pointer; padding: 0 2px; }
.rating button.on { color: var(--amber); }

/* --- Indikator progres / spinner tombol (proses menunggu) --- */
.btn-spinner { display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost .btn-spinner { border-color: rgba(46,139,46,.3); border-top-color: var(--green); }
.is-busy { cursor: progress; opacity: .92; }
.prog { display: inline-block; vertical-align: middle; width: 130px; height: 7px; background: var(--line);
  border-radius: 99px; overflow: hidden; margin-right: 9px; }
.prog i { display: block; width: 40%; height: 100%; background: var(--green); border-radius: 99px;
  animation: progslide 1.1s ease-in-out infinite; }
@keyframes progslide { 0% { margin-left: -42%; } 100% { margin-left: 100%; } }
.prog-label { font-size: 12.5px; color: var(--muted); vertical-align: middle; }

/* --- Catatan bahasa daerah pada pratinjau konten --- */
.lang-note { background: #fff7e6; border: 1px solid #ffe2a8; color: #8a5a00; border-radius: 9px;
  padding: 9px 12px; font-size: 13px; margin-bottom: 12px; }

/* --- Pembayaran DANA --- */
.order-head { font-size: 14px; margin-bottom: 8px; }
.dana-box { border: 1px solid #cfe8d6; background: #f3fbf5; border-radius: 10px; padding: 12px 14px; margin: 6px 0 12px; }
.dana-title { font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.dana-acct { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dana-num { font-size: 20px; font-weight: 800; letter-spacing: .5px; color: #118a3d;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.dana-name { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.dana-steps { margin: 0 0 4px; padding-left: 20px; font-size: 13.5px; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; }
.qris-box { border: 1px solid #cfe8d6; background: #f3fbf5; border-radius: 10px; padding: 14px; margin: 6px 0 12px; }
.qris-box .dana-title { text-align: left; }
.qris-img { width: 240px; max-width: 82%; height: auto; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 6px; margin: 10px auto; display: block; }

/* --- Status sistem + rekonsiliasi (admin) --- */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.status-chip { background: #f5f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.status-chip .sc-l { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.status-chip .sc-v { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 2px; word-break: break-word; }
#reconText { width: 100%; font: inherit; font-size: 13px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfcfe; margin-bottom: 8px; resize: vertical; }

/* --- Komunitas (umpan sosial) --- */
.avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; color: #fff;
  font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.composer { display: flex; gap: 12px; }
.composer-main { flex: 1; min-width: 0; }
.composer-main textarea { width: 100%; font: inherit; font-size: 15px; border: none; resize: vertical;
  outline: none; background: transparent; }
.composer-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.composer-actions .btn-primary.inline { margin-left: auto; }
.composer-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); }
.composer-foot a { color: var(--blue); }
.img-preview img { max-width: 100%; max-height: 240px; border-radius: 12px; border: 1px solid var(--line);
  display: block; margin: 8px 0 6px; }
.feed { display: flex; flex-direction: column; }
.post { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--card); }
.repost-tag { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.post-row { display: flex; gap: 12px; }
.post-main { flex: 1; min-width: 0; }
.post-head { font-size: 14px; }
.post-body { font-size: 15px; line-height: 1.5; margin: 4px 0; white-space: pre-wrap; word-wrap: break-word; }
.post-body a { color: var(--blue); }
.post-img img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-top: 6px; }
.post-actions { display: flex; gap: 18px; margin-top: 8px; }
.post-actions .pa { background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 2px 4px; border-radius: 6px; }
.post-actions .pa:hover { background: #f0f3f8; color: var(--navy); }
.post-actions .pa.on { color: var(--green); }
.reply-box { margin-top: 8px; display: flex; gap: 8px; }
.reply-box textarea { flex: 1; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; resize: vertical; background: #fbfcfe; }
.reply-box-actions { display: flex; flex-direction: column; gap: 6px; }

/* R-UX: daftar balasan (thread) di bawah induknya */
.reply-list { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; }
.reply-item .post-row { gap: 10px; }
.reply-item .post-body { font-size: 14px; }

/* R-UX: sorotan singkat saat kiriman baru muncul live (SSE) */
@keyframes pfFlashNew { from { background: #f1f8f1; } to { background: var(--card); } }
.flash-new { animation: pfFlashNew 1.2s ease; }

/* R-UX: tautan "Daftar"/"Masuk" di modal — jelas sebagai link, bukan cuma teks */
.link-accent { color: var(--green); font-weight: 600; text-decoration: none; cursor: pointer; }
.link-accent:hover, .link-accent:focus-visible { text-decoration: underline; color: var(--green-600); }

/* T3: kartu kutipan post asli (repost berkomentar) — di modal maupun feed/thread */
.quote-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; background: #fbfcfe; }
.quote-card .post-body { font-size: 14px; margin: 2px 0; }
.repost-quote-preview .quote-card { margin-top: 0; }

/* T3: area utama post — dapat diklik utk membuka thread (tombol aksi mengecualikan diri via JS) */
.post-click { cursor: pointer; }

/* T4: tampilan thread (post penuh) */
.post-body-lg { font-size: 17px; }
.post-img-full img { max-width: 100%; max-height: 520px; object-fit: contain; }
.post-actions .pa-static { font-size: 13px; font-weight: 600; color: var(--muted); padding: 2px 4px; }
.thread-back {
  position: sticky; top: var(--header-h, 64px); z-index: 40;
  background: var(--bg); margin: 0 0 10px; padding: 8px 0;
}

/* F3: kanal — pemilih + tombol buat kanal, di atas komposer Komunitas */
.channel-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; }
.channel-bar select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
.channel-bar .fb-row { width: 100%; }

/* T2 (realtime): teaser balasan ala X/FB di bawah kartu feed */
.reply-teaser { margin-top: 8px; padding: 6px 0 2px 12px; border-left: 2px solid var(--line);
  font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.reply-teaser .teaser-text b { color: var(--ink); }
.reply-teaser .teaser-link { color: var(--blue); text-decoration: none; font-weight: 600; white-space: nowrap; }
.reply-teaser .teaser-link:hover { text-decoration: underline; }
/* build: v17 */
