:root {
  --brand: #5B4B8B; --brand-2: color-mix(in srgb, var(--brand) 80%, #000); --brand-soft: color-mix(in srgb, var(--brand) 12%, #fff);
  --ink: #2B2840; --muted: #8A87A0; --bg: #EEECF5; --card: #fff; --line: #ECEAF3;
  --pink: #F28B82; --yellow: #F5B700; --green: #3DB161; --gold: #C9A24A;
  --ok: #2F9A52; --warn: #C98A00; --bad: #E0574F; --r: 14px; --shadow: 0 4px 20px rgba(60, 50, 110, .06);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-weight: 700; margin: 0 0 .4rem; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.02rem; } h4 { margin: .5rem 0 0; font-size: .9rem; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }
p { margin: .25rem 0; } a { color: var(--brand); }
small, .muted { color: var(--muted); } small { font-size: .78rem; }
code { background: var(--brand-soft); padding: 0 .3rem; border-radius: 4px; }
.row { display: flex; gap: .5rem; align-items: center; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .stack > * + * { margin-top: 1.1rem; } .r { text-align: right; } .nowrap { white-space: nowrap; }
.red { color: var(--bad); font-weight: 600; } .green { color: var(--ok); }
button, .btn { font: inherit; font-weight: 600; font-size: .86rem; border: 0; border-radius: 10px; padding: .6rem 1.1rem; cursor: pointer; background: var(--brand); color: #fff;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; }
button:hover, .btn:hover { filter: brightness(1.08); } button:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-sm { padding: .4rem .8rem; font-size: .8rem; border-radius: 9px; } .btn-wa { background: #25D366; color: #fff; } .block { width: 100%; }
.icon-btn { padding: .35rem; background: transparent; color: var(--muted); border-radius: 8px; } .icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
input, select, textarea { font: inherit; font-size: .9rem; width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #F7F6FB; color: var(--ink); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; } input[type=color] { height: 42px; padding: .2rem; }
textarea { min-height: 80px; resize: vertical; } select.mini { width: auto; padding: .3rem .5rem; font-size: .78rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; background: #fff; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .25rem; color: var(--muted); }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; color: var(--ink); font-size: .9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.card { background: var(--card); border-radius: var(--r); padding: 1.2rem; box-shadow: var(--shadow); min-width: 0; color: inherit; text-decoration: none; display: block; }
.pill { display: inline-block; padding: .14rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 600; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.pill.ok { background: #E2F5E8; color: var(--ok); } .pill.warn { background: #FFF3D1; color: #9A6B00; } .pill.bad { background: #FDE5E3; color: var(--bad); }
.pill.grey { background: #F0EFF5; color: #77748C; } .pill.gold { background: #FFF0C7; color: #8A6400; } .pill.rose { background: #FDE8E6; color: #C2574F; }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding: .15rem 0; scrollbar-width: none; }
.chip { flex: none; padding: .42rem .9rem; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .8rem; text-decoration: none; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); } .chip b { margin-left: .2rem; color: var(--bad); } .chip.on b { color: #fff; }
.bar { height: 7px; background: #EFEDF6; border-radius: 99px; overflow: hidden; margin: .35rem 0; } .bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.bar.bad i { background: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 99; max-width: 90vw; }
.toast.err { background: var(--bad); }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(620px, 94vw); max-height: 90vh; color: var(--ink); background: var(--card); }
dialog::backdrop { background: rgba(43, 40, 64, .45); } dialog .dlg { padding: 1.3rem; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem 1rem; } .empty img { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; }
.demo-tag { background: var(--ink); color: #eeeaf8; text-align: center; font-size: .74rem; padding: .35rem .5rem; display: flex; gap: .35rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.demo-tag button { background: transparent; border: 1px solid #ffffff40; color: #eeeaf8; padding: .12rem .6rem; font-size: .72rem; font-weight: 500; border-radius: 99px; }
.demo-tag button.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.demo-link { color: #eeeaf8; border: 1px dashed #ffffff60; border-radius: 99px; padding: .12rem .6rem; text-decoration: none; }

/* kerangka: sidebar berwarna, menu aktif menyambung ke halaman */
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 30px); }
.side { background: var(--brand); color: #fff; padding: 1.6rem 0 0 1.1rem; display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.logo { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.25; padding-right: 1.1rem; }
.logo img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid #ffffff40; }
.side nav { display: flex; flex-direction: column; gap: .3rem; flex: 1; padding-top: .8rem; position: relative; z-index: 1; }
.side nav a { display: flex; gap: .7rem; align-items: center; padding: .72rem 1.1rem; border-radius: 28px 0 0 28px; color: #ffffffd9; text-decoration: none; font-size: .88rem; font-weight: 600; position: relative; }
.side nav a:hover { background: #ffffff14; }
.side nav a.on { background: var(--bg); color: var(--brand); }
.side nav a.on::before, .side nav a.on::after { content: ''; position: absolute; right: 0; width: 22px; height: 22px; pointer-events: none; }
.side nav a.on::before { top: -22px; border-bottom-right-radius: 22px; box-shadow: 6px 6px 0 6px var(--bg); }
.side nav a.on::after { bottom: -22px; border-top-right-radius: 22px; box-shadow: 6px -6px 0 6px var(--bg); }
.leaves { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
.main { padding: 1.4rem clamp(1rem, 2.6vw, 2rem) 3rem; min-width: 0; max-width: 1280px; width: 100%; }
.bnav { display: none; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.more a { display: flex; gap: .55rem; align-items: center; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; }
.me-row { border-top: 1px solid var(--line); padding-top: .8rem; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 1rem; background: var(--card); border-radius: var(--r); padding: .75rem 1.1rem; box-shadow: var(--shadow); margin-bottom: 1.3rem; }
.hello { min-width: 0; } .hello small { display: block; } .hello b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 260px; }
.tsearch { flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; background: #F2F1F7; border-radius: 99px; padding: 0 0 0 1rem; }
.tsearch input { border: 0; background: transparent; padding: .55rem 0; outline: none; } .tsearch input:focus { outline: none; background: transparent; }
.tsearch span { background: var(--brand); color: #fff; border-radius: 99px; padding: .45rem 1.1rem; display: flex; }
.tsearch.off { visibility: hidden; }
.ticons { display: flex; align-items: center; gap: .6rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.ticon { width: 38px; height: 38px; border-radius: 50%; background: #F2F1F7; color: var(--brand); display: grid; place-items: center; position: relative; text-decoration: none; }
.ticon i { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .65rem; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; padding: 0; background: var(--yellow); color: var(--ink); font-size: .85rem; margin-left: .4rem; }

.phead { display: flex; margin-bottom: 1rem; } .phead h1 { margin: 0; font-size: 1.4rem; }
.cd-mini { text-align: right; } .cd-mini b { display: block; font-size: 1.15rem; color: var(--brand); }
.tabs { margin-bottom: 1.1rem; }
.mono { width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.mono span { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 700; }
.mono.lg { width: 92px; height: 92px; margin: 0 auto .6rem; } .mono.lg span { font-size: 2rem; }

/* beranda */
.hero-cd { text-align: center; padding: 2rem 1rem; border-radius: var(--r); background: var(--card) center / cover; box-shadow: var(--shadow); }
.hero-cd h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; margin: 0; }
.cd-big { font-size: 2.8rem; font-weight: 800; color: var(--brand); line-height: 1.1; margin-top: .5rem; letter-spacing: -.02em; }

/* kartu angka: garis warna kiri + ikon + pembatas */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; } .kpis.k5 { grid-template-columns: repeat(5, 1fr); } .kpis.k6 { grid-template-columns: repeat(6, 1fr); }
.kpi { --c: var(--pink); background: var(--card); border-radius: var(--r); padding: .95rem 1rem; box-shadow: var(--shadow); min-width: 0; border-left: 5px solid var(--c);
  display: grid; grid-template-columns: 46px 1fr; gap: .2rem .9rem; align-items: center; }
.kpis > .kpi:nth-child(4n+2) { --c: var(--brand); } .kpis > .kpi:nth-child(4n+3) { --c: var(--yellow); } .kpis > .kpi:nth-child(4n+4) { --c: var(--green); }
.kpi-ic { color: var(--c); display: grid; place-items: center; }
.kpi-tx { border-left: 1px solid var(--line); padding-left: .9rem; text-align: right; min-width: 0; }
.kpi-tx small { display: block; color: var(--ink); font-weight: 500; font-size: .8rem; }
.kpi-tx b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -.01em; }
.kpi-sub { grid-column: 1 / -1; font-size: .75rem; color: var(--muted); }
.kpi.bad .kpi-tx b { color: var(--bad); } .kpi.ok .kpi-tx b { color: var(--ok); } .kpi.warn .kpi-tx b { color: var(--warn); }
.k5 .kpi, .k6 .kpi { grid-template-columns: 1fr; } .k5 .kpi-ic, .k6 .kpi-ic { display: none; } .k5 .kpi-tx, .k6 .kpi-tx { border: 0; padding: 0; text-align: left; }

.todo, .tasks, .plain { list-style: none; margin: 0; padding: 0; }
.todo li, .tasks li { display: flex; gap: .7rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.todo li:last-child, .tasks li:last-child { border: 0; } .todo li b, .tasks li b { display: block; font-weight: 600; font-size: .9rem; }
.todo li.late b { color: var(--bad); } .tasks li.done b { text-decoration: line-through; color: var(--muted); } .tasks li.late { background: #FFF4F3; margin: 0 -.5rem; padding-inline: .5rem; border-radius: 10px; }
.news + .news { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .7rem; } .news small { font-weight: 600; }
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.tbl { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; } tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.pager { justify-content: center; margin-top: .8rem; }
table.edit td { padding: .3rem; vertical-align: middle; } table.edit input, table.edit select { padding: .45rem .6rem; }
table.et th:nth-child(1) { width: 150px; } table.et th:nth-child(3) { width: 150px; } table.et th:nth-child(4) { width: 130px; }
table.er th:nth-child(1) { width: 120px; } table.edit th:last-child { width: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.vcard h3 { margin: .2rem 0; } .vcard > * + * { margin-top: .45rem; }
.internal { background: #FFF8E6; border: 1px dashed var(--yellow); border-radius: 10px; padding: .6rem .75rem; color: #7A5A00; }
.pcard { display: flex; flex-direction: column; gap: .4rem; border-top: 4px solid var(--brand); transition: transform .15s; } .pcard:hover { transform: translateY(-2px); }
.cards > .pcard:nth-child(4n+1) { border-top-color: var(--pink); } .cards > .pcard:nth-child(4n+3) { border-top-color: var(--yellow); } .cards > .pcard:nth-child(4n+4) { border-top-color: var(--green); }
.mood { display: flex; gap: 1.5rem; flex-wrap: wrap; } .swatches { display: flex; gap: .6rem; flex-wrap: wrap; }
.swatches div { text-align: center; } .swatches i { display: block; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); }
.gallery { columns: 3 220px; column-gap: 1rem; } .gallery figure { break-inside: avoid; margin: 0 0 1rem; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; display: block; } .gallery figcaption { padding: .55rem .75rem; font-size: .85rem; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.hbar { display: grid; grid-template-columns: 90px 1fr 130px; gap: .6rem; align-items: center; margin: .4rem 0; }
.hbar span { height: 12px; background: #EFEDF6; border-radius: 99px; overflow: hidden; } .hbar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.kwt { border: 1.5px solid var(--line); border-top: 5px solid var(--brand); border-radius: 14px; padding: 1.4rem 1.5rem; background: #fff; color: var(--ink); }
.kwt-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
.kwt-brand { display: flex; align-items: center; gap: .7rem; }
.kwt-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.kwt-brand b { display: block; font-size: 1.05rem; color: var(--ink); }
.kwt-title { text-align: right; }
.kwt-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: .08em; color: var(--brand); }
.kwt-meta { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; margin-top: .25rem; font-size: .8rem; color: var(--muted); }
.kwt-stamp { display: inline-block; padding: .1rem .55rem; border-radius: 6px; border: 1.5px solid var(--ok); color: var(--ok); font-weight: 800; font-size: .72rem; letter-spacing: .08em; }
.kwt-tbl { width: 100%; border-collapse: collapse; margin-bottom: 1.1rem; font-size: .88rem; }
.kwt-tbl td { border: 0; padding: .35rem .25rem; vertical-align: top; }
.kwt-tbl td:nth-child(1) { width: 145px; color: var(--muted); font-weight: 500; }
.kwt-tbl td:nth-child(2) { width: 14px; color: var(--muted); }
.kwt-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.kwt-amt { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: .75rem 1rem; flex: 1; }
.kwt-amt small { display: block; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.kwt-amt b { display: block; font-size: 1.45rem; color: var(--brand); margin: .15rem 0 .25rem; letter-spacing: -.01em; }
.kwt-note { display: block; font-size: .72rem; color: var(--muted); }
.kwt-sign { text-align: center; min-width: 170px; }
.kwt-sign small { display: block; color: var(--muted); line-height: 1.4; }
.kwt-line { height: 48px; border-bottom: 1px solid var(--ink); margin: 0 .6rem .35rem; }
.kwt-sign b { font-size: .88rem; }

/* mode hari-H: huruf besar, sekilas baca di HP */
.day { padding: 1rem; max-width: 760px; margin: 0 auto; }
.dayrow { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
.dayrow span { font-size: 1.8rem; font-weight: 800; min-width: 92px; color: var(--brand); }
.dayrow b { display: block; font-size: 1.3rem; } .dayrow small { font-size: 1rem; }
.dayrow.now { background: var(--brand); color: #fff; border-radius: 14px; } .dayrow.now span, .dayrow.now small { color: #fff; }

/* login */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-hero { background: center / cover; display: flex; align-items: flex-end; padding: 2.5rem; color: #fff; position: relative; }
.login-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, color-mix(in srgb, var(--brand) 85%, transparent)); }
.login-hero > div { position: relative; } .login-hero h1 { font-size: 2.2rem; }
.login-card { align-self: center; justify-self: center; width: min(400px, 92vw); padding: 2rem 0; }
.brand-line { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; color: var(--brand); }
.brand-line img { width: 52px; height: 52px; border-radius: 50%; }
.demo-box { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: var(--brand-soft); padding: .8rem; border-radius: 14px; }
.demo-box small { width: 100%; }
.lp-photo { display: flex; gap: .9rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: #FAF9FD; }
.lp-photo img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; background: var(--line); }
.stack-sm > * + * { margin-top: .45rem; }
.lp-box { padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: #FAF9FD; }
.nav-badge { margin-left: auto; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; }
.lead-cred { background: #E9F8EE; border: 1px solid #B7E4C7; border-radius: 12px; padding: .7rem .85rem; font-size: .84rem; color: #1B5E32; }
.lead-cred code { background: #fff; color: var(--ink); padding: .1rem .4rem; border-radius: 6px; font-weight: 600; }
.pal-edit { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.pal-item { position: relative; display: inline-flex; align-items: center; }
.pal-item input[type=color] { width: 46px; height: 46px; padding: 3px; border-radius: 12px; cursor: pointer; }
.pal-item button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; line-height: 1; }
.pal-pre { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .76rem; font-weight: 600; }
.pal-pre i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid #00000018; }

@media (max-width: 1100px) { .kpis, .kpis.k5, .kpis.k6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; } .side { display: none; }
  .bnav { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--brand);
    padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(60, 50, 110, .15); }
  .bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; gap: .15rem; background: none; color: #ffffffc0; font-size: .68rem; font-weight: 600;
    padding: .4rem 0; border-radius: 12px; text-decoration: none; min-width: 0; }
  .bnav .on { color: var(--brand); background: #fff; }
  .main { padding: .8rem 16px 96px; } .toast { bottom: 88px; }
  .topbar { flex-wrap: wrap; gap: .6rem; padding: .7rem .9rem; } .tsearch { order: 3; flex-basis: 100%; max-width: none; } .tsearch.off { display: none; }
  .ticons { margin-left: auto; border: 0; padding: 0; } .hello b { max-width: 170px; }
  .grid2, .grid3 { grid-template-columns: 1fr; } .login { grid-template-columns: 1fr; } .login-hero { min-height: 240px; }
  .phead .row { flex-wrap: wrap; row-gap: .65rem; column-gap: .75rem; align-items: center; }
  .phead .row > .grow { flex: 1 1 calc(100% - 66px); min-width: 0; }
  .phead h1 { font-size: 1.2rem; line-height: 1.25; }
  .phead .cd-mini { flex: 1; text-align: left; }
  .phead .cd-mini b { font-size: 1.05rem; }
  .hero-cd { padding: 1.4rem .9rem; } .hero-cd h2 { font-size: 1.65rem; } .cd-big { font-size: 2.2rem; }
  .hbar { grid-template-columns: 70px 1fr 100px; }
  .kpi { grid-template-columns: 1fr; padding: .75rem .8rem; } .kpi-ic { display: none; } .kpi-tx { border: 0; padding: 0; text-align: left; } .kpi-tx b { font-size: 1.05rem; white-space: nowrap; overflow-wrap: normal; }
  /* tabel template di HP: nama tugas/kegiatan di atas, sisanya satu baris di bawah */
  table.edit thead { display: none; }
  table.edit tr { display: grid; grid-template-columns: 1.3fr 1fr 84px 36px; gap: .4rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  table.er tr { grid-template-columns: 96px 1fr 1fr 36px; }
  table.edit td { border: 0; padding: 0; } table.edit td:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
@page { size: A5 landscape; margin: 10mm; }
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; margin: 0 !important; }
  body > *:not(dialog) { display: none !important; }
  dialog[open] { position: static !important; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; overflow: visible !important; }
  dialog::backdrop { display: none !important; }
  dialog .dlg { padding: 0 !important; }
  dialog .dlg > *:not(#print) { display: none !important; }
  #print { width: 100% !important; border-radius: 8px !important; box-shadow: none !important; page-break-inside: avoid; }
}
.boot-splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 38%, #fff 0%, #F4F2FA 65%, #ECE8F6 100%); color: #241D35; padding: 2rem; }
.boot-spin { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(86, 64, 126, .14); border-top-color: #56407E; border-right-color: #CE5A67; animation: bootSpin .85s cubic-bezier(.55, .15, .45, .85) infinite; }
.boot-txt { font-size: .9rem; font-weight: 600; color: #4C4363; letter-spacing: .01em; }
.boot-bar { width: 140px; height: 3px; border-radius: 999px; background: rgba(86, 64, 126, .12); overflow: hidden; position: relative; }
.boot-bar::after { content: ""; position: absolute; inset: 0; width: 45%; border-radius: 999px; background: linear-gradient(90deg, #56407E, #CE5A67); animation: bootSlide 1.15s ease-in-out infinite; }
@keyframes bootSpin { to { transform: rotate(360deg); } }
@keyframes bootSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
