@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* palet utama "Arang + Koral": netral gelap + aksen koral. Sengaja TIDAK hijau (beda dari Qola) */
  --bg: #f6f6f7;
  --surface: #ffffff;
  --line: #e6e6ea;
  --line-strong: #d1d1d8;
  --ink: #17171c;
  --ink-2: #3a3a44;
  --muted: #6b6b78;
  --faint: #a4a4ae;

  --brand: #e4572e;          /* aksen utama: koral */
  --brand-ink: #b8401c;
  --brand-soft: #fdede7;
  --night: #18181d;          /* bar atas */
  --night-2: #2a2a31;
  --hero-bg: #1f1f25;        /* blok angka utama */
  --hero-sub: #b9b9c4;
  --warm: #e4572e;           /* penanda nilai terbaik & peringkat 1–3 */
  --on-brand: #fff; --on-warm: #fff; /* warna teks di atas brand/warm */
  --brand-text: #b8401c;     /* aksen sebagai teks (link, tab aktif) */
  --range: #a9a9b4; --seg: #b9b9c4; --btn-line: #3a3a44;
  --sk-a: #ececef; --sk-b: #f6f6f8;
  --hover-row: #fafafb;
  --shadow: rgba(20, 20, 28, .16);

  --ig: #c13584; --fb: #1877f2; --x: #14171a; --tt: #fe2c55; --yt: #e62117;

  --radius: 10px;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* warna utama platform: Jingga (#f05a28) + arang. Jingga tua (#c2410c) untuk permukaan bertulisan putih (kontras ≥ 4,5:1). */
:root { --brand: #f05a28; --brand-strong: #c2410c; --brand-ink: #c2410c; --brand-soft: #fff0ea; --brand-text: #c2410c; --on-brand: #fff; --warm: #c2410c; --on-warm: #fff; --night: #17171c; --night-2: #2a2a31; --hero-bg: #fff0ea; --hero-sub: #6b3a26; --on-hero: #17171c; --bg: #f6f6f7; --line: #e6e6ea; --line-strong: #d1d1d8; --ink: #17171c; --ink-2: #3a3a44; --muted: #6b6b78; --faint: #a4a4ae; --range: #a9a9b4; --seg: #b9b9c4; --btn-line: #3a3a44; --sk-a: #ececef; --sk-b: #f6f6f8; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 500 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand-text, var(--brand)); text-decoration: none; }
a:hover { color: var(--brand-ink); }
.num, td, .stat b, .kv b { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- bar atas ---------- */
.topbar { background: var(--night); color: #f1f1f4; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: -.01em; font-size: 15px; }
.logo:hover { color: #fff; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); box-shadow: inset -7px -7px 0 0 rgba(255,255,255,.28); }

.switcher { position: relative; }
.switch-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--night-2); background: var(--night-2); color: #fff; cursor: pointer; }
.switch-btn:hover { border-color: var(--btn-line); }
.switch-panel { position: absolute; top: 44px; left: 0; z-index: 30; width: 340px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px var(--shadow); padding: 8px; }
.group-name { color: var(--muted); font-size: 12px; font-weight: 600; padding: 8px 8px 4px; }
.acc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 6px; text-align: left; cursor: pointer; }
.acc:hover { background: var(--bg); }
.acc.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.add-form { display: flex; gap: 6px; border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 4px 4px; }
.add-form input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 10px; }
.add-form button { height: 34px; border: 0; border-radius: 6px; padding: 0 14px; background: var(--brand-strong); color: var(--on-brand); font-weight: 600; cursor: pointer; }

.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.range { display: flex; align-items: center; gap: 6px; color: var(--range); }
.range input { height: 36px; border-radius: 8px; border: 1px solid var(--night-2); background: var(--night-2); color: #fff; padding: 0 10px; color-scheme: dark; }
.seg { display: inline-flex; background: var(--night-2); border-radius: 8px; padding: 3px; }
.seg button { height: 30px; min-width: 42px; border: 0; background: none; color: var(--seg); border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; }
.seg button.on { background: #fff; color: var(--night); }
.btn-light { height: 36px; border-radius: 8px; border: 1px solid var(--btn-line); background: none; color: #fff; padding: 0 14px; cursor: pointer; font-weight: 600; }
.btn-light:hover { background: var(--night-2); }

/* logo platform asli (Simple Icons), warna resmi tiap merek */
.plat { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; flex: none; color: var(--muted); }
.plat svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.plat.instagram { color: #ff0069; } .plat.facebook { color: #0866ff; } .plat.x { color: #000; } .plat.tiktok { color: #000; } .plat.youtube { color: #ff0000; }
.switch-btn .plat { width: 16px; height: 16px; }
.switch-btn .plat.x, .switch-btn .plat.tiktok { color: #fff; }

/* ---------- strip profil ---------- */
.profilebar { background: var(--surface); border-bottom: 1px solid var(--line); }
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0; }
.profile .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg); border: 1px solid var(--line); }
.profile h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.profile h1 { display: flex; align-items: center; gap: 8px; }
.verified { display: inline-flex; width: 20px; height: 20px; flex: none; }
.verified svg { width: 100%; height: 100%; fill: var(--verified, #1d9bf0); }
.handle { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--ink-2); font-weight: 600; }
.handle:hover { color: var(--brand); }
.handle span[aria-hidden] { color: var(--muted); font-size: 13px; }
.profile .bio { color: var(--ink-2); margin-top: 6px; max-width: 640px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; }
.kv { display: flex; gap: 28px; }
.kv div { text-align: right; }
.kv b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.kv span { color: var(--muted); font-size: 12px; }

/* ---------- tab ---------- */
.tabs { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.tabs-inner { display: flex; align-items: center; gap: 16px; }
.tab-list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tab-list a, .tab-list span { white-space: nowrap; padding: 14px 12px 12px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tab-list a:hover { color: var(--ink); }
.tab-list a.active { color: var(--ink); border-bottom-color: var(--brand); }
.tab-list span.soon { color: var(--faint); font-weight: 500; cursor: default; }
.tab-list span.soon sup { font-size: 10px; margin-left: 3px; }
.tab-list .sep { width: 1px; background: var(--line); margin: 12px 6px; padding: 0; border: 0; }
.tab-tools { display: flex; align-items: center; gap: 12px; }
.inline-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.inline-field select { height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 8px; background-color: var(--surface); color: var(--ink); }

/* ---------- konten ---------- */
.view { padding-top: 24px; padding-bottom: 40px; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.head p { margin: 0; color: var(--muted); }
h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.stack { display: grid; gap: 16px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.note { color: var(--muted); font-size: 12px; margin: 10px 0 0; font-weight: 400; }

/* sorotan: angka besar kiri + statistik kecil kanan */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; padding: 0; overflow: hidden; }
.hero-main { padding: 22px 24px; background: var(--hero-bg); color: var(--on-hero, #fff); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.hero-main .label { color: var(--hero-sub); font-size: 13px; font-weight: 600; }
.hero-main .big { color: var(--brand-text); font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-main .row { display: flex; gap: 28px; }
.hero-main .row b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.hero-main .row span { color: var(--hero-sub); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 18px 20px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.stats .stat:nth-child(-n+3) { border-top: 0; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.stat small { color: var(--muted); font-size: 12px; font-weight: 400; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 0; overflow: hidden; }
.strip .stat { border-top: 0; }
.strip .stat:first-child { border-left: 0; }

.insight span { color: var(--muted); font-size: 12px; font-weight: 600; }
.insight b { display: block; font-size: 18px; margin: 4px 0 2px; letter-spacing: -.01em; }
.insight p { margin: 0; color: var(--muted); font-weight: 400; font-size: 13px; }

/* grafik */
.chart { width: 100%; display: block; }
.chart .bar { fill: var(--brand); }
.chart .bar:hover { fill: var(--brand-ink); }
.chart .bar.instagram { fill: var(--ig); } .chart .bar.facebook { fill: var(--fb); } .chart .bar.x { fill: var(--x); } .chart .bar.tiktok { fill: var(--tt); } .chart .bar.youtube { fill: var(--yt); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); font-weight: 500; }
.chart .grid { stroke: var(--line); }

/* heatmap hari */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { border-radius: 8px; padding: 10px 8px; text-align: center; background: var(--brand-soft); color: var(--ink); }
.day span { display: block; font-size: 12px; font-weight: 600; }
.day b { display: block; font-size: 16px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.day small { font-size: 11px; font-weight: 400; }

/* tabel */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
td.n, th.n { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
.hbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.hbar i { display: block; height: 6px; background: var(--brand); border-radius: 3px; min-width: 2px; }
.best { color: var(--warm); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.acct-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* daftar postingan berperingkat */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1; min-width: 220px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; background: var(--surface); }
.toolbar select { height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; background-color: var(--surface); }
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.toggle a { padding: 7px 12px; color: var(--muted); font-weight: 600; background: var(--surface); }
.toggle a.on { background: var(--ink); color: #fff; }
.count { color: var(--muted); margin-bottom: 10px; font-size: 13px; }

.rank-list { padding: 4px 0; }
.rp { display: grid; grid-template-columns: 36px 56px minmax(0, 1fr) repeat(4, 92px); gap: 14px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--ink); }
.rp:first-child { border-top: 0; }
.rp:hover { background: var(--hover-row); color: var(--ink); }
.rp .rk { font-weight: 700; color: var(--muted); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.rp .rk.top { color: var(--warm); }
.rp .th { width: 56px; height: 56px; border-radius: 8px; background: var(--bg) center/cover no-repeat; border: 1px solid var(--line); }
.rp .cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.rp .sub { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; gap: 8px; align-items: center; font-weight: 400; }
.rp .m { text-align: right; font-variant-numeric: tabular-nums; }
.rp .m b { display: block; font-weight: 700; }
.rp .m span { color: var(--muted); font-size: 11px; }
.rp-head { display: grid; grid-template-columns: 36px 56px minmax(0, 1fr) repeat(4, 92px); gap: 14px; padding: 12px 20px 8px; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.rp-head span:nth-child(n+4) { text-align: right; }

/* grid postingan */
.grid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.gp:hover { border-color: var(--line-strong); color: var(--ink); }
.gp .img { position: relative; aspect-ratio: 1; background: var(--bg) center/cover no-repeat; }
.gp .rk { position: absolute; left: 10px; top: 10px; background: var(--surface); border-radius: 6px; padding: 1px 8px; font-weight: 700; font-size: 13px; }
.gp .rk.top { background: var(--warm); color: var(--on-warm); }
.gp .body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.gp .cap { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; font-weight: 400; }
.gp .ms { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 13px; }
.gp .ms span { color: var(--muted); font-size: 11px; display: block; }

.fetch-card { max-width: 640px; }
.fetch-card p { color: var(--ink-2); font-weight: 400; margin: 0 0 16px; }
.fetch-card .plat { width: 16px; height: 16px; vertical-align: -3px; }
.btn-primary { height: 38px; border: 0; border-radius: 8px; padding: 0 16px; background: var(--brand-strong); color: var(--on-brand); font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: #a8380a; }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.empty, .error, .loading { padding: 48px 0; color: var(--muted); text-align: center; }
.error { color: #b42318; }
.foot { color: var(--faint); font-size: 12px; padding-bottom: 32px; font-weight: 400; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.theme-pick { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.theme-pick select { height: 30px; border: 1px solid var(--line-strong); border-radius: 6px; background-color: var(--surface); padding: 0 6px; }

/* tooltip penjelasan angka */
.lab { display: inline-flex; align-items: center; gap: 5px; }
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; font-size: 9px; font-weight: 700; font-style: normal; line-height: 1; opacity: .55; cursor: help; flex: none; text-transform: none; letter-spacing: 0; }
.tip:hover, .tip:focus { opacity: 1; outline: none; }
.hero-main .tip { color: var(--on-hero, #fff); }
#tooltip { position: fixed; z-index: 100; max-width: 280px; padding: 9px 11px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 400; line-height: 1.5; box-shadow: 0 10px 28px rgba(0,0,0,.2); pointer-events: none; opacity: 0; transition: opacity .12s; }
#tooltip.show { opacity: 1; }

/* select seragam: chevron sendiri, fokus berwarna palet */
select { -webkit-appearance: none; appearance: none; background-color: var(--surface); color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%2362746e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px !important; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 600; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
select:hover { border-color: var(--muted); }
select:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
select:disabled { opacity: .55; cursor: not-allowed; }
.range input:focus, .switch-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }

/* pemilih periode */
.picker { position: relative; }
.range-panel { position: absolute; right: 0; top: 44px; z-index: 40; width: 560px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.rp-body { display: grid; grid-template-columns: 170px 1fr; }
.rp-presets { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--line); }
.preset { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.preset:hover:not(:disabled) { background: var(--bg); }
.preset.on { background: var(--brand-soft); color: var(--brand-ink); }
.preset:disabled { color: var(--faint); cursor: not-allowed; font-weight: 500; }
.rp-cal { padding: 12px 16px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 14px; }
.cal-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink-2); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-dow span { text-align: center; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 0; }
.day-btn { height: 34px; border: 0; background: none; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); border-radius: 0; }
.day-btn:hover:not(:disabled) { background: var(--bg); border-radius: 8px; }
.day-btn:disabled { color: var(--line-strong); cursor: not-allowed; font-weight: 400; text-decoration: line-through; text-decoration-color: var(--line); }
.day-btn.in { background: var(--brand-soft); color: var(--brand-ink); }
.day-btn.start, .day-btn.end { background: var(--brand-strong); color: var(--on-brand); }
.day-btn.start { border-radius: 8px 0 0 8px; } .day-btn.end { border-radius: 0 8px 8px 0; } .day-btn.start.end { border-radius: 8px; }
.day-btn.today:not(.start):not(.end) { box-shadow: inset 0 -2px 0 var(--brand); }
.rp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 400; flex-wrap: wrap; }
.rp-foot b { color: var(--ink); font-weight: 600; }
.rp-btns { display: flex; gap: 8px; margin-left: auto; }
.linkish { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; font-size: 12px; }
.btn-secondary { height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 16px; background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }
.btn-secondary:hover { background: var(--bg); }
.rp-foot .btn-primary, .rp-foot .btn-secondary { height: 34px; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* tampilan kosong */
.empty-state { max-width: 620px; margin: 24px auto; text-align: center; padding: 36px 32px 28px; }
.es-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.es-icon svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-2); font-weight: 400; margin: 0 0 18px; }
.es-list { display: inline-block; margin-top: 10px; text-align: left; color: var(--muted); font-size: 13px; line-height: 1.9; }
.es-list .plat { width: 14px; height: 14px; vertical-align: -2px; }
.es-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty-state .note { margin-top: 14px; }

@media (max-width: 720px) {
  .rp-body { grid-template-columns: 1fr; }
  .rp-presets { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .range-panel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}

/* ekspor */
.export { position: relative; }
.btn-sm { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.menu-panel { position: absolute; right: 0; top: 40px; z-index: 30; width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px var(--shadow); padding: 6px; }
.menu-panel button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.menu-panel button:hover:not(:disabled) { background: var(--bg); }
.menu-panel button:disabled { cursor: progress; opacity: .7; }
.menu-panel b { display: block; font-weight: 600; }
.menu-panel span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.growth-head { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 8px; }
.growth-head b { font-size: 22px; }
.growth-head span { color: var(--muted); font-size: 13px; }
#credits b { color: var(--ink-2); }

.report-frame { width: 100%; height: calc(100vh - 150px); min-height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #d9d9de; display: block; }
a.btn-secondary { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }

/* performa & pilar */
.chip.perf-hit { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.chip.perf-up { background: var(--brand-soft); border-color: #ffd0bf; color: var(--brand-text); }
.chip.perf-mid { color: var(--muted); }
.chip.perf-down { color: var(--faint); border-style: dashed; }
.rp .sub .chip + .chip { margin-left: -2px; }
.kw { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.kw .chip { font-size: 11px; }
.callout-card { background: var(--brand-soft); border-color: #ffd0bf; font-weight: 500; }
.callout-card b { color: var(--brand-text); }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mini-post { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); }
.mini-post .th { width: 44px; height: 44px; border-radius: 6px; background: var(--bg) center/cover no-repeat; }
.mini-post .cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.mini-post .sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; }
.insights .insight { padding-left: 12px; border-left: 2px solid var(--line); }

.type-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.type-filter a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13px; }
.type-filter a:hover { border-color: var(--muted); color: var(--ink); }
.type-filter a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.type-filter a b { font-weight: 700; opacity: .75; margin-left: 2px; }

/* skeleton */
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk { background: linear-gradient(90deg, var(--sk-a) 25%, var(--sk-b) 50%, var(--sk-a) 75%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; border-radius: 6px; }
.sk-line { height: 12px; max-width: 100%; }
.sk-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); }
.sk-row:first-child { border-top: 0; }
.hero-main.sk-hero { background: var(--brand-soft); }
.hero-main.sk-hero .sk { --sk-a: rgba(0,0,0,.07); --sk-b: rgba(0,0,0,.03); }
.profile .avatar.sk { border: 0; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

@media (max-width: 1000px) {
  .hero, .cols-main, .cols-3 { grid-template-columns: 1fr; }
  .rp, .rp-head { grid-template-columns: 28px 48px minmax(0, 1fr) 80px 70px; }
  .rp .m.x2, .rp-head .x2 { display: none; }
  .rp .th { width: 48px; height: 48px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top-right { margin-left: 0; width: 100%; }
  .profile { grid-template-columns: auto minmax(0, 1fr); }
  .kv { grid-column: 1 / -1; justify-content: space-between; }
  .kv div { text-align: left; }
  .cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .stats .stat:nth-child(-n+2) { border-top: 0; }
  .stats .stat:nth-child(odd) { border-left: 0; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tab-tools .inline-field { display: none; }
  .rp, .rp-head { grid-template-columns: 24px 44px minmax(0, 1fr) 72px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .rp .m.x1, .rp-head .x1 { display: none; }
  .rp .th { width: 44px; height: 44px; }
  .switch-panel { width: calc(100vw - 32px); }
}

.hero-main { border-right: 1px solid var(--line); }
