/* vendorku: sistem desain
   Warna dari logo (ungu + biru langit), tipe dua keluarga: Bricolage Grotesque (judul) + Geist (antarmuka). */
:root {
  --paper: #fafafc;
  --surface: #ffffff;
  --ink: #15131f;
  --ink-2: #4a475a;
  --ink-3: #777489;
  --line: #e8e6f0;
  --line-2: #d8d5e5;
  --violet: #5b2bd6;
  --violet-deep: #3f1c9e;
  --violet-wash: #f1ecff;
  --sky: #12b3f5;
  --ok: #11694a;      --ok-bg: #e4f5ec;
  --warn: #7d5200;    --warn-bg: #fff1d4;
  --bad: #a8261f;     --bad-bg: #fdeae8;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #d9ccff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.ico { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Tombol & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; background: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-line { border-color: var(--line-2); background: var(--surface); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-text { color: var(--ink-2); padding: 0 10px; }
.btn-text:hover { color: var(--violet); }
.btn-danger { border-color: #f0c5c1; color: var(--bad); background: var(--surface); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

.field { display: block; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 16px; }
.field > span.lbl { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.field > small { display: block; margin-top: 6px; color: var(--ink-3); font-size: 12.5px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); outline: none; transition: border-color .15s, box-shadow .15s; appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-wash); }
input[type=file].input { padding: 8px; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 0; border-radius: 8px; background: var(--violet-wash); color: var(--violet-deep); font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert.error { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--violet-wash); color: var(--violet-deep); }
.alert code { font: 600 14px ui-monospace, Menlo, monospace; background: #fff; padding: 1px 8px; border-radius: 6px; user-select: all; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; line-height: 1.7; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.mute { background: #efeef5; color: var(--ink-2); }

/* ---------- Panel & daftar baris ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 20px; }
.panel h2 { font-size: 17px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.rows > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; text-decoration: none; }
a.row:hover { background: #fbfaff; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--ink-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { text-align: right; flex: none; }
.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; }
.datebox { flex: none; width: 46px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 5px 0 6px; background: var(--surface); }
.datebox b { display: block; font: 650 19px/1 var(--font-display); }
.datebox span { font-size: 11.5px; color: var(--ink-3); }
.kv > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 20px; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 550; }
.kv { margin: 0; }

/* ---------- Halaman publik ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(250,250,252,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.topbar img.logo { height: 38px; width: auto; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a.lnk { padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-radius: 8px; }
.topnav a.lnk:hover { color: var(--violet); }
@media (max-width: 760px) { .topnav a.lnk { display: none; } }
.install-btn[hidden] { display: none; }

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.02fr 1fr; gap: 72px; } }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.02; }
.hero p.lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 31em; line-height: 1.6; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero .fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }

/* Kartu jadwal contoh di hero: pusat perhatian halaman */
.stage { position: relative; padding: 0 0 138px; }
.sched { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40, 20, 100, .35); max-width: 430px; margin-inline: auto; }
.sched-head { background: var(--violet); color: #fff; padding: 18px 22px 20px; }
.sched-head small { opacity: .8; font-size: 12.5px; }
.sched-head h3 { font-size: 22px; margin-top: 2px; letter-spacing: -0.02em; }
.sched-head p { margin-top: 10px; font-size: 14px; opacity: .92; }
.job { padding: 16px 22px; display: grid; grid-template-columns: 54px 1fr; gap: 14px; }
.job + .job { border-top: 1px solid var(--line); }
.job .t { font: 650 15px/1.2 var(--font-display); color: var(--violet-deep); background: var(--violet-wash); border-radius: 8px; padding: 6px 0; text-align: center; height: max-content; }
.job b { display: block; font-weight: 600; }
.job .m { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.job .team { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.job .team span { font-size: 12.5px; padding: 1px 9px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); }
.sched-foot { padding: 12px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; }
.inv-sheet { position: absolute; right: 0; bottom: 0; width: 56%; max-width: 250px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; box-shadow: 0 20px 40px -24px rgba(40, 20, 100, .4); font-size: 12.5px; }
.inv-sheet .h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 650; font-family: var(--font-display); font-size: 15px; }
.inv-sheet .h span { font: 500 11px var(--font-ui); color: var(--ink-3); }
.inv-sheet dl { margin: 10px 0 0; }
.inv-sheet dl div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); }
.inv-sheet dl div.total { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 8px; color: var(--ink); font-weight: 650; }
.inv-sheet .stamp { margin-top: 8px; display: inline-block; color: var(--ok); background: var(--ok-bg); border-radius: 6px; padding: 1px 8px; font-weight: 600; font-size: 11.5px; }
@media (max-width: 520px) { .inv-sheet { position: static; margin: 12px auto 0; width: 100%; max-width: 430px; } .stage { padding-bottom: 0; } }
@media (min-width: 521px) and (max-width: 959px) { .stage { padding-bottom: 138px; max-width: 460px; margin-inline: auto; width: 100%; } }

/* Satu momen gerak: baris jadwal muncul berurutan saat halaman dibuka */
@media (prefers-reduced-motion: no-preference) {
  .stage .sched .job { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .stage .sched .job:nth-of-type(2) { animation-delay: .15s; }
  .stage .sched .job:nth-of-type(3) { animation-delay: .32s; }
  .stage .sched .job:nth-of-type(4) { animation-delay: .49s; }
  .inv-sheet { animation: rise .7s cubic-bezier(.2,.7,.2,1) .75s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; }
.section .sub { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; max-width: 34em; }

.audience { display: grid; gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
@media (min-width: 800px) { .audience { grid-template-columns: repeat(3, 1fr); } .audience > div + div { border-left: 1px solid var(--line); } }
.audience > div { padding: 26px; }
.audience > div + div { border-top: 1px solid var(--line); }
@media (min-width: 800px) { .audience > div + div { border-top: 0; } }
.audience h3 { font-size: 20px; }
.audience p { margin-top: 8px; color: var(--ink-2); }

.ledger { display: grid; gap: 36px; }
@media (min-width: 900px) { .ledger { grid-template-columns: 5fr 7fr; gap: 80px; } .ledger .lead { position: sticky; top: 100px; align-self: start; } }
.ledger ul > li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ledger ul > li:last-child { border-bottom: 1px solid var(--line); }
.ledger h3 { font-size: 21px; }
.ledger p { color: var(--ink-2); max-width: 36em; }
.ledger .tag { justify-self: start; margin-top: 6px; font-size: 13px; color: var(--violet-deep); background: var(--violet-wash); padding: 2px 10px; border-radius: 99px; font-weight: 550; }

.flow { margin-top: 44px; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { position: relative; padding: 0 24px 28px 36px; border-left: 1px solid var(--line-2); counter-increment: s; }
@media (min-width: 860px) { .flow li { border-left: 0; border-top: 1px solid var(--line-2); padding: 28px 24px 0 0; } }
.flow li::before { content: counter(s); position: absolute; left: -13px; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; font: 650 13px/26px var(--font-display); text-align: center; }
@media (min-width: 860px) { .flow li::before { left: 0; top: -13px; } }
.flow h3 { font-size: 18px; }
.flow p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }

.pricing { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 800px) { .pricing { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.plan-card { border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; background: var(--surface); display: flex; flex-direction: column; }
.plan-card .price { margin-top: 18px; font: 650 clamp(2.2rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: -0.04em; }
.plan-card .price small { font: 500 15px var(--font-ui); letter-spacing: 0; color: var(--ink-3); }
.plan-card ul { margin: 22px 0 28px; display: grid; gap: 10px; color: var(--ink-2); }
.plan-card li { display: flex; gap: 10px; }
.plan-card li .ico { color: var(--violet); margin-top: 2px; }
.plan-card .btn { margin-top: auto; }
.plan-card.deep { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-card.deep .price small, .plan-card.deep ul { color: #c9c6d8; }
.plan-card.deep li .ico { color: var(--sky); }
.plan-card.deep .btn-primary { background: #fff; color: var(--ink); }
.plan-card.deep .btn-primary:hover { background: var(--violet-wash); }
.save { display: inline-block; margin-left: 10px; font: 600 12.5px var(--font-ui); letter-spacing: 0; color: var(--ink); background: var(--sky); padding: 2px 10px; border-radius: 99px; vertical-align: middle; }

.faq { margin-top: 36px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; cursor: pointer; font: 600 17px var(--font-ui); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }

.final { text-align: left; }
.final .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.final h2 { max-width: 14em; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer a { text-decoration: none; color: var(--ink-2); font-weight: 550; }
.footer a:hover { color: var(--violet); }

/* ---------- Halaman masuk/daftar ---------- */
.auth { min-height: 100dvh; display: grid; align-content: center; padding: 32px 20px; }
.auth-box { width: min(440px, 100%); margin-inline: auto; }
.auth-box.wide { width: min(640px, 100%); }
.auth-box .brand { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-box .brand img { height: 52px; width: auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 5vw, 34px); }
.auth-card h1 { font-size: 26px; }
.auth-card .intro { margin: 8px 0 24px; color: var(--ink-2); }
.auth-foot { margin-top: 20px; text-align: center; color: var(--ink-3); font-size: 14px; }
.auth-foot a { color: var(--violet); font-weight: 600; text-decoration: none; }

/* Pemilihan paket & rekening */
.plans { display: grid; gap: 12px; }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: block; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: var(--ink-3); }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-wash); }
.plan:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.plan b { display: block; font-size: 14px; color: var(--ink-2); }
.plan .p { font: 650 26px/1.2 var(--font-display); letter-spacing: -0.03em; margin-top: 2px; }
.plan small { color: var(--ink-3); }
.plan .save { position: absolute; top: 12px; right: 12px; margin: 0; font-size: 11.5px; background: var(--ok-bg); color: var(--ok); }
.banks { border: 1px solid var(--line); border-radius: var(--radius); }
.banks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.banks li + li { border-top: 1px solid var(--line); }
.banks .no { font: 600 17px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.stepline { margin: 26px 0 8px; font-weight: 600; }

/* ---------- Aplikasi (vendor & admin) ---------- */
.shell { min-height: 100dvh; }
@media (min-width: 1024px) { .shell { display: grid; grid-template-columns: 248px 1fr; } }
.side { display: none; }
@media (min-width: 1024px) {
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); }
}
.side .logo { padding: 4px 10px 18px; }
.side .logo img { height: 44px; width: auto; }
.side .who { padding: 0 10px 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 550; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current=page] { background: var(--violet-wash); color: var(--violet-deep); }
.side .foot { margin-top: auto; display: grid; gap: 10px; }
.sub-chip { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 13px; color: var(--ink-2); }
.sub-chip b { color: var(--ink); }
.sub-chip.warn { border-color: #f0d9a3; background: var(--warn-bg); color: var(--warn); }
.mtop { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mtop img { height: 32px; width: auto; }
@media (min-width: 1024px) { .mtop { display: none; } }
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11.5px; font-weight: 550; color: var(--ink-3); text-decoration: none; }
.tabbar a[aria-current=page] { color: var(--violet); }
@media (min-width: 1024px) { .tabbar { display: none; } }
.main { padding: 22px 16px calc(96px + var(--safe-b)); width: min(1040px, 100%); margin-inline: auto; }
@media (min-width: 1024px) { .main { padding: 40px 40px 56px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.page-head p { color: var(--ink-3); margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: none; font-weight: 550; font-size: 14px; margin-bottom: 8px; }
.back:hover { color: var(--violet); }

.figures { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .figures { grid-template-columns: repeat(3, 1fr); } .figures > div + div { border-left: 1px solid var(--line); } }
.figures > div { padding: 22px 24px; }
.figures > div + div { border-top: 1px solid var(--line); }
@media (min-width: 720px) { .figures > div + div { border-top: 0; } }
.figures dt { color: var(--ink-3); font-size: 13.5px; }
.figures dd { margin: 4px 0 0; font: 650 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--font-display); letter-spacing: -0.03em; }
.figures small { display: block; margin-top: 4px; font: 400 13px var(--font-ui); letter-spacing: 0; color: var(--ink-3); }
.grid-2 { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.5fr 1fr; } }
.meter { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; margin: 14px 0 4px; }
.meter i { display: block; height: 100%; background: var(--violet); border-radius: 9px; }
.meter.warn i { background: #e0a100; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar form { flex: 1 1 220px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 99px; text-decoration: none; font-size: 13.5px; font-weight: 550; color: var(--ink-2); background: var(--surface); }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-current=true] { background: var(--ink); border-color: var(--ink); color: #fff; }

.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }

/* Kalender */
.cal { padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { font-size: 18px; }
.cal-head a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink-2); }
.cal-head a:hover { border-color: var(--violet); color: var(--violet); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--ink-3); padding: 6px 0; font-weight: 550; }
.cal-grid a, .cal-grid i { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; text-decoration: none; font-weight: 550; position: relative; font-style: normal; }
.cal-grid a:hover { background: var(--paper); }
.cal-grid a.today { box-shadow: inset 0 0 0 1.5px var(--sky); }
.cal-grid a.sel { background: var(--violet); color: #fff; }
.cal-grid a em { position: absolute; bottom: 5px; display: flex; gap: 3px; }
.cal-grid a em b { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.cal-grid a.sel em b { background: #fff; }
.cal-split { display: grid; gap: 16px; }
@media (min-width: 960px) { .cal-split { grid-template-columns: 1fr 400px; align-items: start; } }

/* Kartu jadwal yang diekspor ke JPG (tampilan di layar) */
.card-export { width: 100%; max-width: 400px; margin-inline: auto; }

/* ---------- Dokumen cetak (invoice / kwitansi) ---------- */
.doc-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; width: min(794px, 100% - 32px); margin: 20px auto; }
.doc { width: min(794px, 100% - 32px); margin: 0 auto 40px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 6vw, 56px); }
.doc-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc-top img { height: 56px; width: auto; margin-bottom: 10px; }
.doc-top h1 { font-size: 30px; color: var(--violet); text-align: right; }
.doc-top .r { text-align: right; color: var(--ink-3); font-size: 13.5px; }
.doc h4 { font: 500 13px var(--font-ui); color: var(--ink-3); letter-spacing: 0; margin-top: 26px; }
.doc .to { font: 650 18px var(--font-display); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.doc td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td:first-child { color: var(--ink-3); width: 38%; }
.doc td:last-child { text-align: right; font-weight: 550; }
.doc .sum { margin-top: 24px; padding: 18px 20px; background: var(--violet-wash); border-radius: 12px; }
.doc .sum small { color: var(--ink-2); }
.doc .sum b { display: block; font: 650 30px/1.2 var(--font-display); color: var(--violet-deep); letter-spacing: -0.03em; }
.doc .sum em { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.doc .pay { margin-top: 24px; }
.doc .sign { margin-top: 56px; display: flex; justify-content: flex-end; text-align: center; }
.doc .sign div { width: 200px; }
.doc .sign hr { border: 0; border-top: 1px solid var(--ink); margin: 64px 0 6px; }
.doc .legal { margin-top: 36px; text-align: center; font-size: 12px; color: var(--ink-3); }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .no-print, .tabbar, .mtop, .side { display: none !important; }
  .doc { border: 0; width: 100%; padding: 0; margin: 0; }
}

/* ---------- Ringkas di layar kecil ---------- */
@media (max-width: 520px) {
  .row { padding: 13px 16px; }
  .panel-head { padding: 16px 16px 0; }
  .panel-pad { padding: 16px; }
  .kv > div { padding: 12px 16px; }
  .doc-top { flex-direction: column; }
  .doc-top h1, .doc-top .r { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Dialog petunjuk instal */
.dlg { border: 0; border-radius: 18px; padding: 24px; width: min(380px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(20, 10, 60, .45); }
.dlg::backdrop { background: rgba(21, 19, 31, .45); }
.dlg h3 { font-size: 20px; }
.dlg p { margin: 10px 0 20px; color: var(--ink-2); }
