/* Token warna & bentuk mengikuti upapkk.untan.ac.id */
:root {
  --navy: #0a2c55;
  --navy-700: #0d386b;
  --blue: #0f569f;
  --blue-600: #1667bd;
  --blue-50: #eaf2fb;
  --gold: #f4a900;
  --gold-600: #dd9400;
  --gold-50: #fff6e3;
  --red: #c62e23;
  --red-50: #fdecea;
  --green: #14784a;
  --green-50: #e6f6ee;
  --ink: #15202e;
  --muted: #5c6679;
  --faint: #8b93a3;
  --line: #e5e9f0;
  --card-line: #e8ecf3;
  --paper: #f4f6f9;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 18px 40px -24px rgba(10, 44, 85, .35);
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background-color: #fff;
  background-image:
    radial-gradient(40% 50% at 100% 0%, rgba(244, 169, 0, .06), transparent 70%),
    radial-gradient(45% 45% at 0% 12%, rgba(15, 86, 159, .06), transparent 70%);
  background-repeat: no-repeat;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 22px; padding-bottom: 32px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-weight: 800; font-size: 19px;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.brand-text { border-left: 2px solid var(--gold); padding-left: 10px; display: flex; flex-direction: column; line-height: 1.25; }
.brand-text small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-text strong { font-size: 14.5px; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
.brand-text em { color: var(--gold-600); font-style: normal; }

.topnav { display: none; gap: 24px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--blue); }
.topnav a.is-active { color: var(--navy); font-weight: 700; border-bottom-color: var(--gold); }
.count { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; margin-left: 2px; }

/* ---------- Navigasi bawah (ponsel) ---------- */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bnav a {
  flex: 1; min-width: 0; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 600;
}
.bnav a.is-active { color: var(--navy); font-weight: 700; }
.bnav a.is-active .bnav-ico { background: var(--gold-50); color: var(--gold-600); }
.bnav-ico { position: relative; display: grid; place-items: center; width: 46px; height: 28px; border-radius: 999px; }
.dot {
  position: absolute; top: -3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.has-bnav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cfe0; font-size: 13px; padding: 16px 0; }

/* ---------- Judul halaman ---------- */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 27px; font-weight: 700; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.hl { color: var(--blue); box-shadow: inset 0 -5px 0 rgba(244, 169, 0, .35); }
.section-title { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin: 28px 0 12px; }

/* ---------- Kartu ---------- */
.card {
  background: #fff;
  border: 2px solid var(--card-line);
  border-radius: var(--radius);
  padding: 18px;
}
.stack { display: grid; gap: 12px; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.meta { color: var(--muted); font-size: 13.5px; }
.meta.strong { font-weight: 600; margin-top: 8px; }
.desc { font-size: 14.5px; margin-top: 10px; overflow-wrap: anywhere; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.pill {
  display: inline-block; flex: none;
  font-size: 11.5px; font-weight: 700; line-height: 1.3;
  padding: 4px 10px; border-radius: 999px;
}
.pill-blue { background: var(--blue-50); color: var(--blue); }
.pill-gold { background: var(--gold-50); color: #9a6700; }
.pill-green { background: var(--green-50); color: var(--green); }
.pill-red { background: var(--red-50); color: var(--red); }
.pill-grey { background: #f1f4f8; color: var(--muted); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 18px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .12s, background-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 12px 22px -12px rgba(244, 169, 0, .8); }
.btn-gold:hover { background: var(--gold-600); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 22px -14px rgba(15, 86, 159, .9); }
.btn-blue:hover { background: var(--blue-600); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 7px 13px; font-size: 13.5px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-text { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--red); cursor: pointer; text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(15, 86, 159, .35);
  outline-offset: 2px;
}

/* ---------- Formulir ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--faint); }
input[type=text], input[type=password], input[type=url], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; /* 16px mencegah zoom otomatis di iPhone */
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.hint { font-size: 13px; color: var(--muted); }
.two-col { display: grid; gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.brief-box { background: var(--blue-50); color: var(--navy); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px; }
.brief-box[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: 9px 13px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--navy); background: #fff;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid rgba(15, 86, 159, .35); outline-offset: 2px; }

.upload {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; cursor: pointer;
  border: 1.5px dashed #c6d0de; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14px; font-weight: 500;
  overflow: hidden;
}
.upload:hover { border-color: var(--blue); color: var(--blue); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { border-color: var(--blue); }
.upload-preview { max-height: 180px; border-radius: 10px; margin-top: 8px; }
.upload-preview[hidden] { display: none; }

.fold { margin-top: 12px; }
.fold > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); padding: 4px 0; }
.fold[open] > summary { margin-bottom: 10px; }

/* ---------- Pesan ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; font-weight: 500; margin-bottom: 14px; }
.alert-success { background: var(--green-50); color: var(--green); }
.alert-error { background: var(--red-50); color: var(--red); }
.alert-info { background: var(--gold-50); color: #7a5300; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); font-size: 15px; }
.empty strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 6px; background: #f1f4f8; padding: 5px; border-radius: 15px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 9px 8px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs a.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(10, 44, 85, .1); }

/* ---------- Ringkasan angka ---------- */
.hero-points {
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 22px 20px;
  border-bottom: 6px solid var(--gold);
}
.hero-points small { display: block; color: #c3cfe0; font-size: 13.5px; font-weight: 500; }
.hero-points b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.hero-points b span { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--gold); margin-left: 4px; }
.hero-split { display: flex; gap: 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-split div strong { display: block; font-size: 19px; font-weight: 700; }
.hero-split div span { font-size: 12.5px; color: #c3cfe0; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--paper); border-radius: var(--radius-sm); padding: 11px 10px; text-align: center; }
.tile b { display: block; color: var(--navy); font-size: 18px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.25; }
.tile span { font-size: 12px; color: var(--muted); }

/* ---------- Daftar kontribusi ---------- */
.contrib-list { list-style: none; margin: 12px 0 0; padding: 0; }
.contrib-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.contrib-list .row-between { align-items: center; }
.contrib-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.points-tag { flex: none; font-size: 14px; font-weight: 700; color: var(--navy); }
.points-total { flex: none; text-align: right; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); line-height: 1.1; }
.points-total small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); }

.proofs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.proof-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.proof-link .ico { width: 17px; height: 17px; }
.proof-thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.review-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.fold .review-form { margin-top: 0; padding-top: 0; border-top: 0; }
.review-fields { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }

/* ---------- Rekap ---------- */
.period-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.period-nav strong { color: var(--navy); font-size: 17px; font-weight: 700; text-align: center; }
.period-nav a { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); background: #fff; flex: none; }
.pool-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.rekap-item > summary { list-style: none; cursor: pointer; display: block; }
.rekap-item > summary::-webkit-details-marker { display: none; }
.rank { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: 13px; font-weight: 800; }
.rekap-head { display: flex; align-items: center; gap: 10px; }
.rekap-name { flex: 1; min-width: 0; }
.rekap-name strong { display: block; color: var(--navy); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.rekap-name span { font-size: 12.5px; color: var(--muted); }
.rekap-reward { text-align: right; flex: none; }
.rekap-reward strong { display: block; color: var(--navy); font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.rekap-reward span { font-size: 12.5px; color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: #f1f4f8; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.rekap-detail { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.rekap-detail li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.rekap-detail b { flex: none; color: var(--navy); }
.total-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--paper); border-radius: var(--radius-sm); font-weight: 700; color: var(--navy); }

/* ---------- Tim ---------- */
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inline { display: inline; }
.type-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px auto; gap: 8px; align-items: center; }

/* ---------- Login ---------- */
.auth-body { background-color: var(--paper); }
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: 100%; max-width: 410px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; border-top: 6px solid var(--gold); }
.auth-card .brand { margin-bottom: 22px; }
.auth-card h1 { font-size: 25px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 4px; }
.auth-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

/* ---------- Layar lebar ---------- */
@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .tiles.tiles-wide .tile b { font-size: 22px; }
  .btn-row { display: flex; }
  .btn-row .btn { min-width: 130px; }
}

@media (min-width: 900px) {
  .topnav { display: flex; }
  .bnav { display: none; }
  .has-bnav { padding-bottom: 0; }
  .main { padding-top: 34px; padding-bottom: 48px; }
  .page-head h1 { font-size: 34px; }
  .narrow { max-width: 640px; }
}

/* Nama di baris pertama, tombol di baris kedua. */
.type-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.type-row:last-child { padding-bottom: 0; border-bottom: 0; }
.type-actions { display: flex; gap: 8px; }
.type-actions .btn { flex: 1; }

/* ---------- Tim ---------- */
:root { --team-sosmed: #1667bd; --team-desain: #dd9400; --series: #0a2c55; }
.key { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.pill .key { width: 8px; height: 8px; margin-right: 5px; }

.top-akun { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--navy); background: #f1f4f8; }
.top-akun.is-active { background: var(--gold-50); color: var(--gold-600); }

.team-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.team-pick legend { padding: 0; margin-bottom: 8px; }
.team-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-options label { position: relative; cursor: pointer; }
.team-options input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.team-options span {
  display: grid; place-items: center; min-height: 48px; padding: 8px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; color: var(--navy); background: #fff;
}
.team-options input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.team-options input:focus-visible + span { outline: 3px solid rgba(15, 86, 159, .35); outline-offset: 2px; }

.calc { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--paper); font-size: 13.5px; color: var(--muted); }
.calc strong { color: var(--navy); }
.tier-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.tier-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.tier-list li:first-child { border-top: 0; }
.tier-list b { color: var(--navy); }
.rekap-detail small { display: block; font-weight: 500; }

/* ---------- Rekap per tim ---------- */
.rekap-teams { display: grid; gap: 26px; }
.team-section { min-width: 0; scroll-margin-top: 74px; }
.team-heading { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }
.team-heading .key { width: 12px; height: 12px; margin-right: 8px; }
.total-row span:last-child { flex: none; }
.both-note { margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.both-note strong { color: var(--navy); }

/* ---------- Dashboard ---------- */
.filter-row { display: grid; gap: 4px; margin-bottom: 12px; }
.filter-row .tabs { margin-bottom: 0; }

.todo { background: var(--gold-50); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.todo h2 { font-size: 14px; font-weight: 700; color: #7a5300; margin-bottom: 4px; }
.todo ul { list-style: none; margin: 0; padding: 0; }
.todo li + li { border-top: 1px solid rgba(154, 103, 0, .18); }
.todo a { display: flex; align-items: center; gap: 6px; min-height: 42px; color: var(--navy); font-size: 14px; font-weight: 500; text-decoration: none; }
.todo a b { font-weight: 800; }
.todo a .ico { margin-left: auto; width: 16px; height: 16px; color: #9a6700; }

.kpi-hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px; border-bottom: 6px solid var(--gold); margin-bottom: 12px; }
.kpi-main small { display: block; color: #c3cfe0; font-size: 13.5px; font-weight: 500; }
.kpi-main b { display: block; font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; margin: 2px 0 4px; }
.delta { font-size: 13px; font-weight: 600; color: #c3cfe0; }
.delta.up { color: #7fe0ae; }
.delta.down { color: #ffb4ad; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.kpi-grid strong { display: block; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.kpi-grid span { font-size: 12.5px; color: #c3cfe0; }

.insight-card { margin-bottom: 12px; }
.insights { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14.5px; }
.insights li { position: relative; padding: 7px 0 7px 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.insights li:first-child { border-top: 0; }
.insights li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.insights strong { color: var(--navy); }

.dash-grid { display: grid; gap: 12px; }
.chart-card { min-width: 0; }
.chart-empty { color: var(--muted); font-size: 14px; padding: 26px 0; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* Column chart: tinggi wadah sudah termasuk label sumbu X. */
.cc { margin-top: 14px; }
.cc-plot { position: relative; height: var(--h); margin-left: 38px; border-bottom: 1px solid #d5dbe5; }
.cc-tick { position: absolute; left: 0; right: 0; border-top: 1px solid #edf0f5; }
.cc-tick span { position: absolute; right: 100%; margin-right: 7px; top: -8px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-cols { position: absolute; inset: 0; display: flex; }
.cc-col { flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; height: 100%; cursor: default; border-radius: 6px 6px 0 0; }
.cc-col:hover, .cc-col:focus { background: rgba(10, 44, 85, .05); outline: 0; }
.cc-stack { position: relative; display: flex; flex-direction: column; gap: 2px; width: min(24px, calc(100% - 2px)); min-height: 3px; }
.cc-stack i { display: block; min-height: 1px; }
.cc-stack i:first-of-type { border-radius: 4px 4px 0 0; }
.cc-mark { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.cc-labels { display: flex; margin: 6px 0 0 38px; }
.cc-labels span { flex: 1; min-width: 0; text-align: center; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: visible; }
.cc-labels .is-strong { color: var(--navy); font-weight: 700; }

/* Bar horizontal */
.hb { display: grid; gap: 4px; margin-top: 12px; }
.hb-row { padding: 6px; margin: 0 -6px; border-radius: 10px; cursor: default; }
.hb-row:hover, .hb-row:focus { background: rgba(10, 44, 85, .05); outline: 0; }
.hb-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hb-label span { min-width: 0; overflow-wrap: anywhere; }
.hb-label small { flex: none; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.hb-line { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.hb-bar { display: flex; gap: 2px; height: 12px; min-width: 0; }
.hb-bar i { display: block; height: 100%; min-width: 1px; }
.hb-bar i:first-child { border-radius: 0; }
.hb-bar i:last-child { border-radius: 0 4px 4px 0; }
.hb-line b { flex: none; font-size: 13px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.chart-table { margin-top: 10px; }
.chart-table > summary { font-size: 13px; }
.table-wrap { overflow-x: auto; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.chart-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid #f1f4f8; }

/* Bar segmen antar tim */
.seg { display: flex; gap: 2px; height: 28px; margin-top: 12px; }
.seg-part { display: flex; align-items: center; min-width: 4px; padding: 0 8px; border-radius: 4px; font-size: 12.5px; font-weight: 700; cursor: default; }
.seg-sosmed { background: var(--team-sosmed); color: #fff; }
.seg-desain { background: var(--team-desain); color: #15202e; }
.team-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.team-compare h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.team-compare dl { margin: 0; font-size: 13.5px; }
.team-compare dl div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.team-compare dt { color: var(--muted); }
.team-compare dd { margin: 0; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; text-align: right; }

/* Konten teratas */
.top-list { padding: 6px 18px; }
.top-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.top-row:first-child { border-top: 0; }
.top-row:hover strong { color: var(--blue); }
.top-main { flex: 1; min-width: 0; }
.top-main strong { display: block; color: var(--navy); font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.top-main span { font-size: 12.5px; color: var(--muted); }
.top-num { flex: none; text-align: right; }
.top-num strong { display: block; color: var(--navy); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.top-num span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Performa anggota */
.perf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.perf-grid div { background: var(--paper); border-radius: 10px; padding: 8px 4px; text-align: center; }
.perf-grid b { display: block; color: var(--navy); font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.perf-grid span { font-size: 11px; color: var(--muted); }

.chart-tip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 240px;
  background: var(--ink); color: #fff; border-radius: 9px; padding: 7px 10px;
  font-size: 12.5px; line-height: 1.45; white-space: pre-line;
  box-shadow: 0 8px 20px -8px rgba(10, 44, 85, .5);
}
.chart-tip[hidden] { display: none; }

@media (min-width: 720px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .rekap-teams { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .kpi-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: center; }
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; padding-top: 0; border-top: 0; }
  .filter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; }
  .filter-row .period-nav { margin-bottom: 0; }
}

@media (min-width: 900px) {
  .top-akun { display: none; }
}

@media (max-width: 360px) {
  .brand-text small { display: none; }
  .tile b { font-size: 16px; }
}
