/* Warna brand Ikigai Fitness (diambil dari ikigaifitness.id) — ubah di sini bila perlu */
:root {
  --bg: #f8f7ee;          /* krem */
  --surface: #ffffff;
  --ink: #2d2d2d;
  --muted: #676b63;
  --line: #e4e2d4;
  --brand: #07402e;       /* hijau tua */
  --brand-dark: #042b1f;
  --brand-soft: #e9f3e2;
  --lime: #80c14a;        /* hijau lime */
  --lime-dark: #6dab3a;
  --yellow: #f8de11;      /* kuning */
  --yellow-soft: #fdf6c4;
  --ok: #07402e;
  --ok-soft: #e9f3e2;
  --bad: #c73a3a;
  --bad-soft: #fbe4e2;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(7,64,46,.05), 0 4px 16px rgba(7,64,46,.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
[hidden] { display: none !important; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.25; font-weight: 700; color: var(--brand); }
h1 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: 1.08rem; display: flex; align-items: center; gap: .55rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }

/* Header */
.topbar { background: var(--brand); color: var(--bg); padding-top: env(safe-area-inset-top, 0px); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1100px; margin: 0 auto; padding: .85rem 16px; display: flex; align-items: center; gap: .75rem; }
.brand { font-size: 1rem; font-weight: 600; letter-spacing: .02em; flex: 1; min-width: 0; }
.brand b { color: var(--lime); font-style: italic; font-weight: 700; letter-spacing: .06em; margin-right: .4rem; }
.topbar .who { font-size: .82rem; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.demo-banner { background: var(--yellow-soft); color: #5a4c00; font-size: .85rem; padding: .55rem 16px; text-align: center; }
.demo-banner code { background: rgba(0,0,0,.06); padding: 0 .3em; border-radius: 4px; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 1.1rem 16px 2rem; flex: 1; }
.wrap.wide { max-width: 1100px; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem 16px calc(1.2rem + env(safe-area-inset-bottom, 0px)); }

/* Card & form */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: .9rem; box-shadow: var(--shadow); }
.gate { max-width: 400px; margin: 2.5rem auto; }
.step { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--lime); color: var(--brand); font-weight: 700; font-size: .82rem; flex: none; }
.stack > * + * { margin-top: .7rem; }
.field { display: block; margin-bottom: .9rem; }
.field:last-child { margin-bottom: 0; }
.field > span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.input, select.input {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 120px; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .8rem; }
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: .65rem .8rem; font-size: .9rem; margin: .2rem 0 .8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid transparent;
  padding: .65rem 1rem; min-height: 44px; cursor: pointer; text-decoration: none; color: var(--ink);
  background: #fff; transition: background .15s, transform .05s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand); color: var(--bg); }
.btn.primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { background: var(--bg); }
.btn.danger { color: var(--bad); border-color: var(--line); }
.btn.danger.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.ok { background: var(--lime); color: var(--brand); }
.btn.ok:hover:not(:disabled) { background: var(--lime-dark); }
.btn.block { display: flex; width: 100%; }
.btn.lg { min-height: 52px; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.btn.sm { min-height: 36px; padding: .4rem .75rem; font-size: .86rem; }
.btn.link { background: none; border: 0; color: rgba(248,247,238,.85); padding: .3rem .5rem; min-height: 0; font-weight: 500; }

/* Pills (radio) */
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; background: #fff; transition: all .15s; user-select: none;
}
.pill input:checked + span { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .9rem; }
.cat { position: relative; cursor: pointer; }
.cat input { position: absolute; opacity: 0; }
.cat-body {
  display: flex; flex-direction: column; gap: .2rem; height: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem; transition: all .15s;
}
.cat-body b { font-size: .95rem; color: var(--brand); }
.cat-body small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.cat input:checked + .cat-body { border-color: var(--lime); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--lime); }
.cat input:focus-visible + .cat-body { box-shadow: 0 0 0 3px var(--brand-soft); }

/* Tabs */
.tabs { display: flex; gap: .3rem; overflow-x: auto; background: #ecebdd; padding: .25rem; border-radius: 12px; margin-bottom: .9rem; }
.tab { flex: 1 0 auto; white-space: nowrap; font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: none; padding: .6rem; border-radius: 9px; cursor: pointer; color: var(--muted); }
.tab.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Calendar */
.cal { user-select: none; }
.cal.loading .cal-days { opacity: .5; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-title { font-weight: 700; text-transform: capitalize; color: var(--brand); }
.cal-nav { font-size: 1.4rem; line-height: 1; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow div { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; padding: .2rem 0; }
.cal-day {
  font: inherit; border: 1px solid transparent; border-radius: 9px; background: #f1f0e6;
  min-height: 54px; min-width: 0; overflow: hidden; padding: .3rem .1rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); transition: transform .05s;
}
.cal-day .n { font-weight: 700; font-size: .95rem; }
.cal-day .s { font-size: .64rem; line-height: 1.1; min-height: .7rem; white-space: nowrap; }
.cal-day:disabled { cursor: default; }
.cal-day.free { background: var(--brand-soft); color: var(--brand); }
.cal-day.low { background: var(--yellow-soft); color: #5a4c00; }
.cal-day.full { background: var(--bad-soft); color: #8f2a2a; }
.cal-day.off { background: repeating-linear-gradient(135deg, #e6e4d8 0 6px, #f4f3ea 6px 12px); color: var(--muted); }
.cal-day.past, .cal-day.idle { background: #f1f0e6; color: #b4b4a6; }
.cal-day.none { background: #fff; border-color: var(--line); }
.cal-day.today { border-color: var(--brand); }
.cal-day.selected { background: var(--brand); color: var(--yellow); border-color: var(--brand); }
.cal-day:not(:disabled):hover { transform: translateY(-1px); }
.cal-blank { min-height: 54px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .7rem; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg.free { background: var(--brand-soft); border: 1px solid #b5d99a; }
.lg.low { background: var(--yellow-soft); border: 1px solid #e8d65a; }
.lg.full { background: var(--bad-soft); border: 1px solid #efb3b3; }
.lg.off { background: repeating-linear-gradient(135deg, #d6d4c6 0 3px, #f4f3ea 3px 6px); }
.picked { margin: .8rem 0 0; background: var(--brand-soft); color: var(--brand); border-left: 3px solid var(--lime); border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; }

/* Success */
.success { text-align: center; padding: 1.8rem 1.2rem; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--lime); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto .8rem; }
.success h2 { justify-content: center; font-size: 1.25rem; }
.success .btn { margin-top: .6rem; }

/* Request list */
.list { display: grid; gap: .7rem; }
.wide .list.grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.req { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 12px; padding: .85rem .95rem; box-shadow: var(--shadow); }
.req.s-dikerjakan { border-left-color: var(--lime); }
.req.s-revisi { border-left-color: #e08a00; }
.req.s-selesai { border-left-color: var(--brand); }
.req-top { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .35rem; }
.tk { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--muted); margin-right: auto; }
.badge { font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; background: #eee; white-space: nowrap; }
.badge.pending { background: var(--yellow-soft); color: #5a4c00; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.cat { background: #eeede3; color: var(--ink); }
.badge.st-baru { background: var(--yellow-soft); color: #5a4c00; }
.badge.st-dikerjakan { background: var(--brand-soft); color: var(--brand); }
.badge.st-revisi { background: #ffe7c2; color: #8a4b00; }
.badge.st-selesai { background: var(--brand); color: var(--yellow); }
.note { font-size: .84rem; background: #fff6e3; color: #6b4a00; border-radius: 8px; padding: .4rem .6rem; margin: .45rem 0 0; }
.note.ok { background: var(--brand-soft); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 0; }
.chip { font-size: .76rem; font-weight: 600; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: .15rem .55rem; }
.chip.none { background: #eeede3; color: var(--muted); font-weight: 500; }
.rev-form { margin-top: .6rem; }
.rev-form textarea { min-height: 80px; }
.req h3 { margin: 0 0 .2rem; font-size: .98rem; }
.req .meta { font-size: .84rem; color: var(--muted); margin: 0 0 .25rem; }
.req .due { font-size: .86rem; font-weight: 600; margin: 0; }
.req .due.overdue { color: var(--bad); }
.req details { margin-top: .5rem; font-size: .88rem; }
.req summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.req .brief { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: .6rem .7rem; margin: .45rem 0; }
.req dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; margin: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; word-break: break-word; }
.req-actions { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.req-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.req-actions .btn:first-child { flex-basis: 100%; }
.status-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--brand); }
.stat small { color: var(--muted); font-size: .78rem; }
.stat.alert b { color: var(--bad); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filters .input { min-height: 42px; padding: .5rem .7rem; }
.filters select.input { width: auto; flex: 1 1 140px; }
.filters .search { flex: 2 1 220px; }
.seg { display: inline-flex; background: #ecebdd; border-radius: 10px; padding: 3px; flex: 1 1 100%; overflow-x: auto; }
.seg button { flex: 1 0 auto; white-space: nowrap; font: inherit; font-size: .86rem; font-weight: 600; border: 0; background: none; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
.quota-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; }
.quota-row div { background: var(--bg); border-radius: 10px; padding: .5rem .6rem; }
.quota-row small { display: block; color: var(--muted); font-size: .75rem; }
.quota-row b { font-size: 1.1rem; }
.quota-row .full b { color: var(--bad); }
.inline-form { display: flex; gap: .5rem; margin-bottom: .9rem; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 160px; min-height: 40px; padding: .45rem .7rem; }
.blocked-box { background: #eeede3; border-radius: 10px; padding: .6rem .8rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; font-size: .9rem; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.checks label { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--brand); }
.pick-list { display: grid; gap: .5rem; margin-bottom: .9rem; }
.pick { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; cursor: pointer; }
.pick input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.pick small { display: block; color: var(--muted); }
.member { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.member h3 { margin: 0; }
.warn-box { background: #fff6e3; color: #6b4a00; border-radius: 10px; padding: .55rem .75rem; font-size: .88rem; margin: -.3rem 0 .9rem; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.log li { border-left: 3px solid var(--lime); padding: .15rem 0 .15rem .7rem; font-size: .88rem; }
.log small { display: block; color: var(--muted); }

/* Modal */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.modal::backdrop { background: rgba(7,64,46,.45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.1rem .4rem; }
.modal-head h2 { margin: 0; }
.modal-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .2rem .4rem; }
.modal-body { padding: .4rem 1.1rem 1.1rem; overflow-y: auto; }
.modal-body .sub { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }
.modal-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.modal-actions .btn { flex: 1 1 auto; }

/* Toast */
#toasts { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; display: grid; gap: .4rem; width: min(92vw, 420px); }
.toast { background: var(--brand); color: var(--bg); padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; box-shadow: 0 6px 24px rgba(0,0,0,.2); transition: opacity .3s, transform .3s; }
.toast.error { background: var(--bad); }
.toast.ok { background: var(--brand); }
.toast.hide { opacity: 0; transform: translateY(6px); }

/* Mobile */
@media (max-width: 760px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-body { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .cal-day { min-height: 48px; }
  .cal-blank { min-height: 48px; }
  .cal-day .s { font-size: .58rem; }
  .card { padding: .95rem; }
  .topbar .who { display: none; }
}

/* =================== Hub Ikigai Marketing =================== */
.hub { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.side { position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: .2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; box-shadow: var(--shadow); }
.side-group { margin: .6rem .6rem .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-group:first-child { margin-top: .2rem; }
.side-item { display: flex; align-items: center; gap: .6rem; font: inherit; font-weight: 600; font-size: .93rem; text-align: left;
  border: 0; background: none; color: var(--ink); padding: .62rem .7rem; border-radius: 10px; cursor: pointer; }
.side-item:hover { background: var(--bg); }
.side-item.active { background: var(--brand); color: var(--bg); }
.hub-main { min-width: 0; }
.mod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.mod-head h1 { margin-bottom: .2rem; }
.mod-head p { margin: 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg-sm { flex: 0 1 auto; }
.custom-range { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.custom-range .input { width: auto; }
.list-day { margin: 1.2rem 0 .6rem; font-size: 1rem; }

/* Platform */
.badge.plat-instagram { background: #fde4ee; color: #a0174f; }
.badge.plat-tiktok { background: #e9e9ec; color: #1c1c21; }
.badge.plat-website { background: #e3edf9; color: #1f4f8a; }
.badge.plat-youtube { background: #fde4e2; color: #a12020; }
.badge.plat-lainnya { background: #eeede3; color: var(--ink); }
.badge.pst-ide { background: #eeede3; color: var(--ink); }
.badge.pst-produksi { background: var(--yellow-soft); color: #5a4c00; }
.badge.pst-siap { background: #e3edf9; color: #1f4f8a; }
.badge.pst-terjadwal { background: var(--brand-soft); color: var(--brand); }
.badge.pst-posted { background: var(--brand); color: var(--yellow); }
.badge.rst-baru { background: var(--yellow-soft); color: #5a4c00; }
.badge.rst-dipakai { background: var(--brand-soft); color: var(--brand); }
.badge.rst-arsip { background: #eeede3; color: var(--muted); }
.post, .ref-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: .85rem .95rem; box-shadow: var(--shadow); }
.post.p-instagram { border-left-color: #d6336c; }
.post.p-tiktok { border-left-color: #1c1c21; }
.post.p-website { border-left-color: #2b6cb0; }
.ref-card { border-left-color: var(--lime); }
.post h3, .ref-card h3 { margin: 0 0 .2rem; font-size: .98rem; }
.post .meta, .ref-card .meta { font-size: .84rem; color: var(--muted); margin: 0 0 .25rem; }

/* Kalender konten */
.cc-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: .9rem; align-items: start; }
@media (max-width: 1250px) { .cc-layout { grid-template-columns: minmax(0, 1fr); } }
.cc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cc-dow div { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; padding: .2rem 0; }
.cc-cell { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 92px; min-width: 0; overflow: hidden;
  padding: .35rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; color: var(--ink); }
.cc-cell .n { font-weight: 700; font-size: .85rem; }
.cc-cell.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cc-cell.selected { background: var(--brand-soft); border-color: var(--lime); }
.cc-blank { min-height: 92px; }
.cc-chip { display: block; font-size: .68rem; line-height: 1.25; padding: .12rem .3rem; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-chip.p-instagram { background: #fde4ee; color: #a0174f; }
.cc-chip.p-tiktok { background: #e9e9ec; color: #1c1c21; }
.cc-chip.p-website { background: #e3edf9; color: #1f4f8a; }
.cc-chip.done { text-decoration: line-through; opacity: .7; }
.cc-more { font-size: .68rem; color: var(--muted); }
.lg.p-instagram { background: #fde4ee; border: 1px solid #d6336c; }
.lg.p-tiktok { background: #e9e9ec; border: 1px solid #1c1c21; }
.lg.p-website { background: #e3edf9; border: 1px solid #2b6cb0; }
.lg.done { background: repeating-linear-gradient(135deg, #cfcdbd 0 2px, #fff 2px 4px); border: 1px solid #cfcdbd; }
dl.detail { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0 0 .8rem; font-size: .92rem; }
dl.detail dt { color: var(--muted); }
dl.detail dd { margin: 0; word-break: break-word; }

/* Report */
.stat .delta { display: inline-block; margin-top: .3rem; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .05rem .45rem; }
.stat .delta.up { background: var(--brand-soft); color: var(--brand); }
.stat .delta.down { background: var(--bad-soft); color: var(--bad); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.chart-head h2 { margin: 0; }
.chart-head .input { width: auto; min-height: 40px; padding: .4rem .7rem; }
.chart-box { position: relative; height: 300px; }
.table-wrap { overflow-x: auto; margin-top: .6rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; white-space: nowrap; }
table.data th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 700; padding: .5rem .6rem; border-bottom: 2px solid var(--line); }
table.data td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
table.data tr:hover td { background: var(--bg); }
.map-box { background: var(--bg); border-radius: 12px; padding: .8rem; margin-bottom: .9rem; }
.map-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: .6rem; margin-top: .45rem; font-size: .88rem; font-weight: 600; }
.map-row .input { min-height: 38px; padding: .35rem .6rem; }
.empty .btn { margin-top: .6rem; }

@media (max-width: 900px) {
  .hub { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .side { position: sticky; top: calc(54px + env(safe-area-inset-top, 0px)); z-index: 15; flex-direction: row; overflow-x: auto; padding: .4rem; border-radius: 12px; }
  .side-group { display: none; }
  .side-item { flex: none; white-space: nowrap; font-size: .86rem; padding: .5rem .7rem; }
}
@media (max-width: 560px) {
  .cc-cell { min-height: 58px; padding: .25rem; }
  .cc-blank { min-height: 58px; }
  .cc-chip { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
  .map-row { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .chart-box { height: 240px; }
}

/* =================== Halaman masuk (split-screen) =================== */
body.on-login .topbar, body.on-login .foot { display: none; }
body.on-login .wrap { max-width: none; padding: 0; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-art {
  position: relative; overflow: hidden; color: var(--bg); padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: radial-gradient(120% 90% at 0% 100%, #0b5a40 0%, var(--brand) 55%, #042b1f 100%);
}
.login-brand { position: relative; z-index: 1; font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; }
.login-brand b { color: var(--lime); font-style: italic; letter-spacing: .1em; }
.login-brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .7; margin-top: .15rem; }
.login-hero { position: relative; z-index: 1; max-width: 560px; }
.login-pill { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime); border: 1px solid rgba(128,193,74,.5); border-radius: 999px; padding: .35rem .9rem; margin-bottom: 1.2rem; }
.login-hero h1 { color: var(--bg); font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 1rem; }
.login-hero h1 .lime { color: var(--lime); }
.login-hero h1 .yellow { color: var(--yellow); }
.login-hero p { color: #cfe3c4; font-size: 1.02rem; max-width: 440px; margin: 0; }
.deco { position: absolute; pointer-events: none; }
.deco.ring { width: 520px; height: 520px; right: -170px; top: -170px; border-radius: 50%; border: 70px solid rgba(128,193,74,.16); }
.deco.dot { width: 120px; height: 120px; right: 90px; top: 210px; border-radius: 50%; background: var(--yellow); box-shadow: 0 20px 60px rgba(248,222,17,.25); }
.deco.dots { width: 220px; height: 140px; left: -20px; top: 42%; opacity: .35;
  background-image: radial-gradient(rgba(248,247,238,.7) 1.5px, transparent 1.6px); background-size: 18px 18px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(24px, 5vw, 64px) 16px; background: var(--bg); }
.login-box { width: 100%; max-width: 400px; }
.login-box h2 { font-size: 2rem; margin-bottom: .2rem; }
.login-box > .muted { margin-bottom: 1.2rem; }
.gate-tabs { display: flex; width: 100%; margin: 0 0 1.3rem; }
.login-box form .btn.lg { margin-top: .4rem; }
.login-box .note { margin: 0 0 1rem; }
.field > .pass-row { display: flex; gap: .5rem; margin: 0; font-weight: 400; }
.pass-row .input { flex: 1; min-width: 0; }
.pass-row .btn { flex: none; }
.login-foot { margin: 2rem 0 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 860px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { min-height: 300px; gap: 1.4rem; }
  .login-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .deco.ring { width: 340px; height: 340px; border-width: 46px; right: -140px; top: -140px; }
  .deco.dot { width: 46px; height: 46px; right: 22px; top: 22px; }
  .deco.dots { display: none; }
  .login-panel { justify-content: flex-start; padding-top: 32px; }
}
