/* ============ ARsitu Collect — mobile-first styles (adapted from Survey Master) ============ */
:root {
  --pri: #0E8C86;          /* Teal Utama */
  --pri-2: #0B4F52;        /* Teal Dalam */
  --pri-soft: #E6F3F2;
  --gold: #B8842F;
  --ink: #0B2A2C;          /* Tinta */
  --ink-2: #557072;
  --ink-3: #8AA3A4;
  --line: #D5E3E3;
  --bg: #F3F8F8;
  --card: #ffffff;
  --ok: #1F7A4D;
  --warn: #8A5300;
  --bad: #B3261E;
  --info: #0B4F52;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pri); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; }

/* ---------- Shell ---------- */
#app { min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

.topbar {
  position: sticky; top: 0; z-index: 30; background: var(--pri); color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 56px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.topbar h1 { font-size: 17px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .ibtn { color: #fff; }
.ibtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; }
.ibtn:active { background: rgba(255,255,255,.18); }
.ibtn svg { width: 22px; height: 22px; }

/* ---------- Hero (beranda) ---------- */
.hero {
  background: linear-gradient(140deg, var(--pri) 0%, var(--pri-2) 100%);
  color: #fff; padding: 18px 0 64px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero::before { content: ""; position: absolute; left: -40px; bottom: -80px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hero .hello { font-size: 13px; opacity: .85; }
.hero .name { font-size: 18px; font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.wallet {
  position: relative; z-index: 2; margin-top: -48px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
}
.wallet .w-item { text-align: center; padding: 4px; border-right: 1px solid var(--line); }
.wallet .w-item:last-child { border-right: 0; }
.wallet .w-val { font-size: 20px; font-weight: 800; color: var(--ink); }
.wallet .w-lbl { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.wallet .w-full { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; font-size: 13px; }

/* ---------- Menu kotak ---------- */
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.sec-title h3 { font-size: 15.5px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; background: var(--card); border-radius: var(--r); padding: 16px 10px; box-shadow: var(--shadow); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; border: 0; background: none; padding: 2px; text-align: center; position: relative; }
.tile .t-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: transform .12s; }
.tile:active .t-ico { transform: scale(.92); }
.tile .t-ico svg { width: 26px; height: 26px; }
.tile .t-lbl { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.2; max-width: 84px; }
.tile .badge { position: absolute; top: -2px; right: 12%; }
.c1 { background: #ccfbf1; color: #0f766e; } .c2 { background: #dbeafe; color: #1d4ed8; }
.c3 { background: #fef3c7; color: #b45309; } .c4 { background: #fce7f3; color: #be185d; }
.c5 { background: #ede9fe; color: #6d28d9; } .c6 { background: #dcfce7; color: #15803d; }
.c7 { background: #ffedd5; color: #c2410c; } .c8 { background: #e0f2fe; color: #0369a1; }
.c9 { background: #f1f5f9; color: #334155; } .c10 { background: #fee2e2; color: #b91c1c; }

.promo { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.promo::-webkit-scrollbar { display: none; }
.promo .p-card { scroll-snap-align: start; flex: 0 0 84%; max-width: 380px; border-radius: var(--r); padding: 16px; color: #fff; min-height: 112px; position: relative; overflow: hidden; cursor: pointer; }
.promo .p-card h4 { font-size: 15px; margin-bottom: 4px; }
.promo .p-card p { margin: 0; font-size: 12.5px; opacity: .9; max-width: 78%; }
.promo .p-card svg.bgico { position: absolute; right: -6px; bottom: -8px; width: 86px; height: 86px; opacity: .22; }

/* ---------- Bottom nav ---------- */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; box-shadow: 0 -4px 16px rgba(15,23,42,.05);
}
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-3); font-weight: 600; position: relative; }
.bnav a svg { width: 23px; height: 23px; }
.bnav a.on { color: var(--pri); }
.bnav a.fab .fab-in { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(14,140,134,.4); border: 4px solid #fff; }
.bnav a .badge { position: absolute; top: -4px; left: 54%; }
@media (min-width: 900px) { .bnav { max-width: 560px; margin: 0 auto 12px; border-radius: 20px; border: 1px solid var(--line); bottom: 0; } }

/* ---------- Kartu & list ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 15.5px; margin-bottom: 8px; }
.list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.li:last-child { border-bottom: 0; }
.li:active { background: #f8fafc; }
.li .li-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.li .li-ico svg { width: 20px; height: 20px; }
.li .li-t { font-weight: 650; font-size: 14.5px; }
.li .li-s { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.li .chev { color: var(--ink-3); width: 18px; height: 18px; flex: none; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--pri-soft); color: var(--pri); }
.chip.gray { background: #f1f5f9; color: #475569; }
.chip.ok { background: #dcfce7; color: #15803d; } .chip.warn { background: #fef3c7; color: #b45309; } .chip.bad { background: #fee2e2; color: #b91c1c; } .chip.info { background: #E6F3F2; color: #0B4F52; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.kpi .k-lbl { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.kpi .k-val { font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.5px; }
.kpi .k-sub { font-size: 12px; color: var(--ink-2); }
.mutu { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 800; font-size: 18px; color: #fff; }
.mutu.A { background: #16a34a; } .mutu.B { background: #0ea5e9; } .mutu.C { background: #f59e0b; } .mutu.D { background: #dc2626; } .mutu.x { background: #94a3b8; }

.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 340px; }

/* ---------- Tombol & input ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; cursor: pointer; background: var(--pri); color: #fff; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; }
.btn:active { filter: brightness(.92); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 18px; font-size: 15.5px; border-radius: 14px; }
.btn.ghost { background: var(--pri-soft); color: var(--pri); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

.field { margin-bottom: 14px; }
.field > label, .lbl { display: block; font-weight: 650; font-size: 13.5px; margin-bottom: 6px; }
.inp, select.inp, textarea.inp {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; outline: none; transition: border .15s;
}
.inp:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
textarea.inp { min-height: 90px; resize: vertical; }
.help { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.err { font-size: 12.5px; color: var(--bad); margin-top: 5px; font-weight: 600; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--pri); }
.switch input:checked::after { left: 21px; }
.seg { display: flex; background: #eef2f4; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; font-weight: 650; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--pri); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(5, 1fr); } }
.filters .inp { padding: 9px 10px; font-size: 13.5px; }

/* ---------- Isian survei (renderer) ---------- */
.survey-head { background: linear-gradient(140deg, var(--pri), var(--pri-2)); color: #fff; padding: 22px 18px 26px; border-radius: 0 0 24px 24px; }
.survey-head h2 { font-size: 19px; }
.survey-head p { margin: 6px 0 0; opacity: .9; font-size: 13.5px; }
.progress { height: 6px; background: rgba(255,255,255,.3); border-radius: 3px; margin-top: 14px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: #fff; border-radius: 3px; transition: width .25s; }
.q { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.q.has-err { box-shadow: 0 0 0 2px var(--bad); }
.q .q-lbl { font-weight: 700; font-size: 15px; }
.q .q-lbl .req { color: var(--bad); }
.q .q-hint { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.q .q-body { margin-top: 12px; }
.q.note { background: var(--pri-soft); box-shadow: none; color: var(--ink); font-size: 14px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: all .12s; user-select: none; }
.opt:last-child { margin-bottom: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; display: grid; place-items: center; }
.opt.multi .dot { border-radius: 6px; }
.opt.on { border-color: var(--pri); background: var(--pri-soft); }
.opt.on .dot { border-color: var(--pri); background: var(--pri); }
.opt.on .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.opt.multi.on .dot::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.ikm-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ikm-scale .ik { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 4px; text-align: center; cursor: pointer; transition: all .12s; user-select: none; }
.ikm-scale .ik .em { font-size: 28px; line-height: 1; }
.ikm-scale .ik .tx { font-size: 11.5px; font-weight: 650; margin-top: 6px; color: var(--ink-2); line-height: 1.2; }
.ikm-scale .ik.on { border-color: var(--pri); background: var(--pri-soft); transform: translateY(-2px); }
.ikm-scale .ik.on .tx { color: var(--pri); }
.stars { display: flex; gap: 6px; }
.stars button { border: 0; background: none; font-size: 34px; cursor: pointer; color: #cbd5e1; padding: 0; line-height: 1; }
.stars button.on { color: #f59e0b; }
.lin { display: flex; flex-wrap: wrap; gap: 6px; }
.lin button { min-width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.lin button.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.lin-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.mtx { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtx th, .mtx td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.mtx th:first-child, .mtx td:first-child { text-align: left; }
.mtx input { width: 20px; height: 20px; accent-color: var(--pri); }
.sigpad { width: 100%; height: 180px; border: 1.5px dashed #cbd5e1; border-radius: 12px; background: #fff; touch-action: none; display: block; }
.photo-prev { max-width: 100%; max-height: 240px; border-radius: 12px; margin-top: 8px; display: block; }
.survey-nav { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 calc(14px + var(--safe-b)); display: flex; gap: 10px; }
.thanks { text-align: center; padding: 48px 16px; }
.thanks .big { font-size: 64px; }
body.kiosk #app { padding-bottom: 0; }
body.kiosk .bnav, body.respond .bnav { display: none; }
body.respond #app { padding-bottom: 0; }

/* ---------- Modal & bottom sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); animation: up .2s ease-out; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #cbd5e1; margin: 4px auto 12px; }
.sheet h3 { font-size: 17px; margin-bottom: 12px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px + var(--safe-b)); transform: translateX(-50%); background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 99; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); max-width: 90vw; animation: up .2s; }
.toast.bad { background: var(--bad); } .toast.ok { background: var(--ok); }
.loader { display: grid; place-items: center; padding: 60px 0; color: var(--ink-2); gap: 10px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--pri-soft); border-top-color: var(--pri); border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.empty svg { width: 54px; height: 54px; color: var(--ink-3); }
.netbar { background: #fef3c7; color: #92400e; text-align: center; font-size: 12.5px; padding: 6px; font-weight: 600; }
.demo-bar { background: #1e293b; color: #e2e8f0; text-align: center; font-size: 12px; padding: 5px; }

/* ---------- Form builder ---------- */
.palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 600px) { .palette { grid-template-columns: repeat(4, 1fr); } }
.palette button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; text-align: center; }
.palette button b { font-size: 17px; color: var(--pri); }
.palette .pg { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.qcard { background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; border-left: 4px solid transparent; }
.qcard.open { border-left-color: var(--pri); }
.qcard .qc-head { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; }
.qcard .qc-type { width: 34px; height: 34px; border-radius: 10px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.qcard .qc-lbl { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard .qc-body { padding: 0 14px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.qcard.page { background: #f0fdfa; }
.opt-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.opt-row .inp { padding: 8px 10px; }
.opt-row .inp.val { width: 70px; flex: none; }
.qc-tools { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- Tabel data ---------- */
.tbl-wrap { overflow: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { background: #f8fafc; font-weight: 700; color: var(--ink-2); font-size: 12px; position: sticky; top: 0; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr:hover td { background: #fafcfc; }

/* ---------- Laporan (pratinjau A4) ---------- */
.report-stage { background: #e5e7eb; padding: 16px 0; border-radius: var(--r); overflow: auto; }
.a4 { background: #fff; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 20mm 20mm 22mm 25mm; font-family: "Times New Roman", Times, serif; font-size: 12pt; color: #000; line-height: 1.5; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.a4 h1 { font-size: 15pt; text-align: center; margin: 0 0 6pt; }
.a4 h2 { font-size: 13pt; text-align: center; margin: 18pt 0 10pt; page-break-before: always; }
.a4 h2.first { page-break-before: auto; }
.a4 h3 { font-size: 12pt; margin: 12pt 0 6pt; }
.a4 p { text-align: justify; margin: 0 0 8pt; text-indent: 1.0cm; }
.a4 p.ni { text-indent: 0; }
.a4 table { width: 100%; border-collapse: collapse; margin: 6pt 0 10pt; font-size: 11pt; }
.a4 table th, .a4 table td { border: 1px solid #000; padding: 3pt 5pt; }
.a4 table th { background: #e5e7eb; }
.a4 .kop { page-break-before: always; display: flex; align-items: center; gap: 14px; border-bottom: 3px double #000; padding-bottom: 8px; margin-bottom: 14px; }
.a4 .kop img { width: 120px; height: 76px; object-fit: contain; }
.a4 .kop .kt { flex: 1; text-align: center; line-height: 1.25; }
.a4 .kop .kt b { font-size: 15pt; display: block; }
.a4 .cover { text-align: center; padding-top: 40mm; }
.a4 .cover h1 { font-size: 20pt; }
.a4 .ttd { width: 280px; margin-left: auto; text-align: center; margin-top: 24pt; }
.a4 .chart-img { width: 100%; max-width: 15cm; display: block; margin: 6pt auto; }
.a4 .caption { text-align: center; font-size: 10.5pt; font-style: italic; margin-bottom: 10pt; }
@media (max-width: 860px) { .a4 { transform-origin: top left; } }

@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { position: absolute; left: 0; top: 0; }
  #print-area .a4 { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; }
  @page { size: A4; margin: 20mm 20mm 20mm 25mm; }
}

/* ---------- Landing ---------- */
.landing-hero { background: linear-gradient(150deg, var(--pri), var(--pri-2)); color: #fff; padding: 36px 0 80px; border-radius: 0 0 32px 32px; text-align: center; }
.landing-hero .brand-logo { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 14px; }
.landing-hero h1 { font-size: 24px; }
.landing-hero p { opacity: .9; margin: 8px auto 0; max-width: 460px; }
.landing-cards { margin-top: -54px; display: grid; gap: 12px; }
@media (min-width: 760px) { .landing-cards { grid-template-columns: repeat(3, 1fr); } }
.lc { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); cursor: pointer; display: flex; gap: 14px; align-items: center; border: 0; text-align: left; width: 100%; }
.lc .t-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.lc .t-ico svg { width: 28px; height: 28px; }
.lc h3 { font-size: 15.5px; }
.lc p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); }
.gsi-box { display: flex; justify-content: center; min-height: 44px; }
code.snip { display: block; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 12px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 12px; }
.qr-box img, .qr-box canvas { width: 220px !important; height: 220px !important; }
.tbl td:first-child { white-space: normal; min-width: 150px; }

.chev { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.grid2 > * { min-width: 0; }
@media screen { .report-stage .a4 .kop { margin-top: 48px; padding-top: 16px; border-top: 1px dashed #cbd5e1; } }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(8, 1fr); } }
.field > label.opt { display: flex; font-weight: 500; font-size: 14.5px; margin-bottom: 8px; }

/* Logo mitra / banner */
.mitra { background: #fff; border-radius: 16px; padding: 12px 16px; display: flex; justify-content: center; box-shadow: var(--shadow); }
.mitra img { max-width: 100%; max-height: 64px; object-fit: contain; }
.mitra.flat { box-shadow: none; border: 1px solid var(--line); }
.brand-logo img { padding: 2px; }

.app-by { font-size: 13px; font-weight: 600; opacity: .9; margin-top: 4px; letter-spacing: .2px; }

/* ===================== v2: Beranda paket ===================== */
.btn.white { background: #fff; color: var(--pri); }
.btn.glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.lh2 { text-align: left; padding: 18px 0 70px; }
.lh2 .lh-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.lh2 .brand-logo { margin: 0; }
.lh2 h1 { font-size: 30px; line-height: 1.1; }
.lh-sub { opacity: .92; max-width: 560px; margin: 10px 0 18px; font-size: 14.5px; line-height: 1.5; }
.lh-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; max-width: 560px; }
.lh-stats div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px; }
.lh-stats b { display: block; font-size: 17px; } .lh-stats span { font-size: 11px; opacity: .85; }
.lc2 { margin-top: -44px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc2 .lc { margin: 0; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pk-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .12s; border: 2px solid transparent; }
.pk-card:hover { transform: translateY(-2px); } .pk-card.hot { border-color: var(--pri); }
.pk-head { color: #fff; padding: 14px 14px 12px; position: relative; overflow: hidden; }
.pk-head h4 { font-size: 16px; margin: 6px 0 2px; }
.pk-head .pk-bg { position: absolute; right: -10px; bottom: -14px; width: 84px; height: 84px; opacity: .22; }
.pk-badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 3px 8px; border-radius: 999px; }
.pk-price { font-size: 22px; font-weight: 800; } .pk-price small { font-size: 12px; font-weight: 600; opacity: .85; }
.pk-price.big { font-size: 30px; margin-top: 8px; }
.pk-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pk-body p { margin: 0; font-size: 13px; color: var(--ink-2); }
.pk-body ul, .pk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pk-body li, .pk-list li { display: flex; gap: 8px; font-size: 12.5px; align-items: flex-start; }
.pk-body li svg, .pk-list li svg { width: 16px; height: 16px; flex: none; color: #16a34a; margin-top: 1px; }
.pk-list li { font-size: 14px; } .pk-list li.no { color: var(--ink-2); } .pk-list li.no svg { color: #94a3b8; }
.pk-more { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--pri); display: flex; align-items: center; gap: 2px; }
.pk-more svg { width: 14px; height: 14px; }
.pk-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.pk-scroll .pk-card { flex: 0 0 210px; scroll-snap-align: start; }
.pk-hero { color: #fff; padding: 12px 0 64px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.pk-hero h1 { font-size: 27px; margin: 8px 0 4px; } .pk-hero p { opacity: .92; margin: 0; max-width: 520px; }
.pk-hero-ico { position: absolute; right: -16px; top: 30px; width: 150px; height: 150px; opacity: .16; }
.pk-cta { margin-top: -40px; position: relative; }
.h3 { font-size: 15px; margin: 0; }
.uc { display: flex; gap: 12px; align-items: flex-start; }
.uc-n { flex: none; width: 30px; height: 30px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-weight: 800; }
.uc p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; } .faq:last-child { border: 0; }
.faq summary { font-weight: 650; cursor: pointer; } .faq p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.feat { display: flex; gap: 10px; background: var(--card); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.feat svg { width: 24px; height: 24px; color: var(--pri); flex: none; }
.feat b { display: block; font-size: 13.5px; } .feat span { font-size: 12px; color: var(--ink-2); }
.kontak-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-type button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; text-align: left; cursor: pointer; display: grid; gap: 2px; }
.acc-type button svg { width: 22px; height: 22px; color: var(--pri); }
.acc-type button b { font-size: 13px; } .acc-type button span { font-size: 11.5px; color: var(--ink-2); }
.acc-type button.on { border-color: var(--pri); background: var(--pri-soft); }

/* ===================== v2: Workspace proyek ===================== */
.seg.sm { padding: 3px; } .seg.sm button { padding: 5px 10px; flex: none; } .seg.sm svg { width: 16px; height: 16px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pj-card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; cursor: pointer; border-left: 5px solid var(--pc); display: grid; gap: 8px; }
.pj-card.dragging { opacity: .5; }
.pj-top { display: flex; align-items: center; gap: 8px; } .pj-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.pj-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); flex: none; }
.pj-desc { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-meta { display: flex; gap: 5px; flex-wrap: wrap; } .pj-meta svg { width: 12px; height: 12px; }
.pj-stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.pj-stats span { display: inline-flex; gap: 3px; align-items: center; } .pj-stats svg { width: 13px; height: 13px; }
.pj-stats .warnc { color: #b45309; font-weight: 700; }
.ibtn.sm { width: 28px; height: 28px; } .ibtn.sm svg { width: 18px; height: 18px; }
.pbar { height: 6px; background: #eef2f4; border-radius: 99px; overflow: hidden; } .pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pri), var(--pri-2)); border-radius: 99px; }
.kanban { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; align-items: flex-start; }
.kb-col { flex: 0 0 82%; max-width: 300px; background: #eef2f6; border-radius: 14px; padding: 8px; scroll-snap-align: start; min-height: 120px; transition: background .12s; }
@media (min-width: 900px) { .kb-col { flex: 1 1 0; max-width: none; } }
.kb-col.over { background: var(--pri-soft); outline: 2px dashed var(--pri); }
.kb-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 4px 6px 8px; }
.kb-n { margin-left: auto; background: #fff; border-radius: 99px; font-size: 11px; padding: 1px 8px; color: var(--ink-2); }
.kb-list { display: grid; gap: 8px; } .kb-empty { text-align: center; color: #94a3b8; font-size: 12px; padding: 14px 0; }
.kb-add { width: 100%; margin-top: 8px; border: 0; background: transparent; color: var(--ink-2); font-weight: 650; padding: 8px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 6px; justify-content: center; }
.kb-add:hover { background: #fff; } .kb-add svg { width: 16px; height: 16px; }
.dotc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.tk-card { background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); cursor: pointer; display: grid; gap: 6px; border-left: 3px solid #cbd5e1; }
.tk-card.prio-tinggi { border-left-color: #dc2626; } .tk-card.prio-sedang { border-left-color: #f59e0b; } .tk-card.prio-rendah { border-left-color: #94a3b8; }
.tk-card.dragging { opacity: .5; }
.tk-t { font-weight: 650; font-size: 13.5px; } .tk-d { font-size: 12px; color: var(--ink-2); }
.tk-f { display: flex; align-items: center; gap: 6px; } .late { color: var(--bad); font-weight: 700; }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; background: var(--pri-soft); color: var(--pri); flex: none; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; background: var(--pri-soft); color: var(--pri); flex: none; }
.fab-new { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30; border: 0; background: var(--pri); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 99px; box-shadow: 0 8px 20px rgba(5,114,181,.35); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.fab-new svg { width: 18px; height: 18px; }
.pj-hero { background: linear-gradient(135deg, var(--pc), var(--pri-2)) !important; }
.tahap-bar { display: flex; gap: 4px; margin: 14px 0 0; }
.tahap-bar .tb { flex: 1; text-align: center; font-size: 10.5px; color: #94a3b8; }
.tahap-bar .tb i { display: block; height: 5px; border-radius: 99px; background: #e2e8f0; margin-bottom: 4px; }
.tahap-bar .tb.on { color: var(--tc); font-weight: 700; } .tahap-bar .tb.on i { background: var(--tc); }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.pk-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 10px 0; margin-bottom: 12px; }
.chip svg { width: 13px; height: 13px; flex: none; }
.q.calc { background: linear-gradient(135deg, var(--pri-soft), #fff); border: 1px dashed var(--pri); }
.q.calc .q-lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.q.calc .q-lbl svg { width: 16px; height: 16px; color: var(--pri); }
.q.calc .calc-v { font-size: 22px; font-weight: 800; color: var(--pri); margin-top: 2px; }
.q.hidden-calc { display: none !important; }
/* Editor logika */
.lg-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lg-badges .chip { font-size: 10.5px; padding: 2px 7px; }
.lg-panel { border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; margin: 12px 0; background: #fafcfd; }
.lg-panel > summary { cursor: pointer; font-weight: 700; padding: 10px 0; display: flex; align-items: center; gap: 6px; list-style: none; }
.lg-panel > summary svg { width: 18px; height: 18px; color: var(--pri); }
.lg-block { border-top: 1px dashed var(--line); padding: 10px 0; }
.lg-panel .lg-block:first-of-type { border-top: 0; }
.lg-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.lg-title svg { width: 16px; height: 16px; }
.lg-cond { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 6px; position: relative; }
.lg-join { position: absolute; top: -11px; left: 12px; background: var(--pri); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.lg-opt { padding: 6px 0; border-bottom: 1px solid #eef2f4; } .lg-opt:last-child { border: 0; }
.lg-opt .btn svg { width: 15px; height: 15px; }
.lg-opt .lg-block { border: 0; padding: 6px 0 0 10px; margin-left: 4px; border-left: 3px solid var(--pri-soft); }
.chips-sel { display: flex; flex-wrap: wrap; gap: 5px; } .chips-sel .chip { border: 0; cursor: pointer; }
.lg-check { border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; display: block; }
.lg-check summary { cursor: pointer; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.lg-check svg { width: 16px; height: 16px; }
.lg-check.ok { background: #dcfce7; color: #166534; display: flex; gap: 6px; align-items: center; }
.lg-check.bad { background: #fee2e2; color: #991b1b; } .lg-check.warn { background: #fef3c7; color: #92400e; }
.lg-check .li { color: var(--ink); }
.inp.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ===================== v2.1: Tur & tips ===================== */
.tour { position: fixed; inset: 0; z-index: 200; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15,23,42,.62); transition: all .25s ease; pointer-events: none; outline: 3px solid #fff; }
.tour-pop { position: fixed; background: #fff; border-radius: 18px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: top .25s, left .25s; animation: tpop .25s ease; }
.tour-pop.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px)); }
@keyframes tpop { from { opacity: 0; transform: translateY(6px); } }
.tour-pop.center { animation: none; }
.tour-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.tour-head b { flex: 1; }
.tour-ico { width: 34px; height: 34px; border-radius: 11px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; flex: none; }
.tour-ico svg { width: 20px; height: 20px; }
.tour-x { border: 0; background: none; cursor: pointer; color: #94a3b8; padding: 4px; } .tour-x svg { width: 18px; height: 18px; }
.tour-body { font-size: 14.5px; line-height: 1.55; color: var(--ink); margin: 8px 0 12px; }
.tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-dots { flex: 1; display: flex; gap: 4px; } .tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; } .tour-dots i.on { background: var(--pri); width: 18px; border-radius: 99px; }
.tour-help { position: fixed; left: 14px; bottom: calc(var(--nav-h, 64px) + var(--safe-b, 0px) + 14px); z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--pri); box-shadow: 0 6px 18px rgba(0,0,0,.18); display: grid; place-items: center; cursor: pointer; }
.tour-help svg { width: 24px; height: 24px; }
body.kiosk .tour-help, body.respond .tour-help { display: none; }

/* ===================== v2.1: Beranda ramah & panduan langkah ===================== */
.hero-ramah .name { font-size: 22px; } .hero-ramah .hello { font-size: 14px; opacity: .9; margin-top: 2px; }
.aksi-besar { display: grid; gap: 10px; margin-top: -28px; position: relative; z-index: 2; }
.ab { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border: 0; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.ab > svg:first-child { width: 30px; height: 30px; color: var(--pri); flex: none; }
.ab b { display: block; font-size: 16px; } .ab span { display: block; font-size: 13px; color: var(--ink-2); }
.ab .ab-step { color: var(--pri); font-weight: 700; margin-top: 2px; }
.ab-pri { background: linear-gradient(135deg, var(--pc, var(--pri)), var(--pri-2)); color: #fff; }
.ab-pri > svg:first-child, .ab-pri span, .ab-pri .ab-step { color: #fff; } .ab-pri .chev { color: #fff; }
.seg.txt button { font-size: 12.5px; padding: 6px 12px; }
.mini-step { display: flex; gap: 4px; } .mini-step i { flex: 1; height: 6px; border-radius: 99px; background: #e2e8f0; }
.mini-step i.done { background: #22c55e; } .mini-step i.now { background: var(--tc); }
.pj-langkah { font-weight: 750; font-size: 13.5px; display: flex; align-items: center; gap: 4px; } .pj-langkah svg { width: 16px; height: 16px; }
.pj-foot { display: flex; align-items: center; justify-content: space-between; } .pj-foot .btn svg { width: 14px; height: 14px; }
.mini-ico { width: 15px; height: 15px; color: #94a3b8; }
.big-ico { width: 54px; height: 54px; color: var(--pri); }
.num-c { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 11px; display: grid; place-items: center; }
.stepper { display: flex; justify-content: space-between; margin: 16px 0 12px; position: relative; }
.stepper::before { content: ""; position: absolute; left: 10%; right: 10%; top: 19px; height: 3px; background: #e2e8f0; z-index: 0; }
.st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; position: relative; z-index: 1; padding: 0; font: inherit; }
.st-c { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid #e2e8f0; color: #94a3b8; display: grid; place-items: center; font-weight: 800; font-size: 16px; transition: transform .15s; }
.st-c svg { width: 20px; height: 20px; }
.st.done .st-c { background: #22c55e; border-color: #22c55e; color: #fff; }
.st.now .st-c { background: var(--tc); border-color: var(--tc); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--tc) 22%, transparent); animation: denyut 2s infinite; }
@keyframes denyut { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--tc) 8%, transparent); } }
.st.sel .st-c { transform: scale(1.12); }
.st-l { font-size: 11.5px; font-weight: 650; color: var(--ink-2); } .st.now .st-l, .st.sel .st-l { color: var(--ink); font-weight: 800; }
.step-now { border-top: 6px solid var(--tc); }
.sn-head { display: flex; align-items: center; gap: 12px; }
.sn-ico { width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--tc); display: grid; place-items: center; flex: none; }
.sn-ico svg { width: 28px; height: 28px; }
.sn-kecil { font-size: 12px; font-weight: 700; color: var(--tc); text-transform: uppercase; letter-spacing: .3px; }
.step-now h2 { font-size: 19px; margin: 2px 0 0; line-height: 1.25; }
.step-now p { font-size: 15px; line-height: 1.5; margin: 12px 0; }
.sn-next svg { width: 18px; height: 18px; color: #16a34a; vertical-align: -3px; }
.target-bar { margin: 12px 0; } .pbar.big { height: 12px; margin-top: 6px; }
.ceklist .li { text-decoration: none; color: inherit; }
.ceklist .ck { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #cbd5e1; display: grid; place-items: center; flex: none; }
.ceklist .ok .ck { background: #22c55e; border-color: #22c55e; color: #fff; } .ceklist .ck svg { width: 16px; height: 16px; }
.ceklist .ok .li-t { color: var(--ink-2); text-decoration: line-through; text-decoration-color: #94a3b8; }
.menu-grup .mg { margin-bottom: 12px; } .menu-grup .mg-h { font-size: 12.5px; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .4px; margin: 0 4px 6px; }
.tour-help { width: 40px; height: 40px; opacity: .92; } .tour-help svg { width: 22px; height: 22px; }
.bnav:not(:has(.fab)) { grid-template-columns: repeat(4, 1fr); }
/* v2.2: tarif & kalkulator */
.tbl.tarif th.sel, .tbl.tarif td.sel { background: var(--pri-soft); color: var(--pri); font-weight: 800; }
.kalk { border: 2px solid var(--pri-soft); }
.kalk .h3 { display: flex; gap: 6px; align-items: center; } .kalk .h3 svg { width: 18px; height: 18px; color: var(--pri); }
.kalk-hasil { margin-top: 12px; background: linear-gradient(135deg, var(--pri), var(--pri-2)); color: #fff; border-radius: 14px; padding: 12px 14px; }
.kalk-hasil .kh-l { font-size: 12.5px; opacity: .9; } .kalk-hasil .kh-v { font-size: 24px; font-weight: 800; margin-top: 2px; }
/* tabel di dalam kartu (paket, bantuan) boleh membungkus teks agar tidak melebar di HP */
.card .tbl th, .card .tbl td { white-space: normal; word-break: break-word; }
.card .tbl td:first-child { min-width: 0; }
.pk-hero { overflow: hidden; }
/* tombol WhatsApp admin */
.btn.wa { background: #25d366; color: #fff; border-color: #25d366; } .btn.wa.line { background: #fff; color: #128c4a; border: 1.5px solid #25d366; }
.btn.wa svg { width: 18px; height: 18px; }
.err .btn.wa { color: #fff; }
#l-err { margin-bottom: 12px; } #l-err .btn.wa { margin-top: 8px; }

/* ================= ARsitu Collect additions ================= */
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -.01em; }
body { padding-bottom: 40px; }
#appbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; background: var(--pri-2); color: #fff; }
.ab-brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.ab-tile { width: 32px; height: 32px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: none; }
.ab-tile img { width: 22px; height: auto; }
.ab-name { font-family: 'Sora', sans-serif; font-size: 17px; white-space: nowrap; }
.ab-name b { font-weight: 600; } .ab-name span { font-weight: 300; } .ab-name i { font-style: normal; font-weight: 600; color: #F2D9A9; }
#appbar .ars-switch-btn { background: transparent; border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
#appbar .ars-switch-btn svg { width: 16px; height: 16px; }
.ab-lang { display: flex; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; overflow: hidden; }
.ab-lang button { border: 0; background: transparent; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; padding: 6px 8px; cursor: pointer; }
.ab-lang button.on { background: rgba(255,255,255,.18); color: #fff; }
.ab-acct { border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 50%; }
.ab-q { display: flex; align-items: center; gap: 4px; border: 0; background: var(--gold); color: #fff; border-radius: 99px; padding: 5px 10px; font-weight: 700; font-size: 12px; cursor: pointer; }
.ab-q svg { width: 15px; height: 15px; }
body.filling #appbar { display: none; }
.topbar { position: static; background: var(--pri); }
.ptabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 56px; z-index: 30; }
.ptabs .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ptabs a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: var(--ink-2); font-weight: 650; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.ptabs a svg { width: 17px; height: 17px; }
.ptabs a.on { color: var(--pri-2); border-bottom-color: var(--pri); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.dash-grid .card h3, .card h3 { font-size: 15px; margin: 0 0 8px; }
.qh { font-size: 14.5px !important; line-height: 1.35; }
.map-box { height: 340px; border-radius: 12px; overflow: hidden; }
.num-stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.num-stats span { background: var(--pri-soft); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; }
.num-stats b { font-size: 15px; color: var(--ink); }
.quotes blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: #FBF7EF; border-radius: 0 10px 10px 0; font-size: 13.5px; }
.quotes cite { display: block; font-size: 11.5px; color: var(--ink-3); font-style: normal; margin-top: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { margin: 0; min-width: 150px; }
.sheet.wide { max-width: 860px; }
.sheet-x { position: absolute; top: 10px; right: 10px; }
.sheet { position: relative; }
.prev-frame { border: 1px dashed var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
.survey-head { background: linear-gradient(135deg, var(--pri) 0%, var(--pri-2) 100%); }
.sh-logo { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; }
.sh-logo img { width: 26px; }
.sh-proj { font-size: 12px; opacity: .85; font-weight: 600; letter-spacing: .02em; }
.hero-c { text-align: center; padding: 26px 10px; }
.hero-c h1 { font-size: 30px; margin: 10px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.feat { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.feat svg { width: 26px; height: 26px; color: var(--pri); }
.promo { display: flex; gap: 12px; align-items: center; background: #FBF4E6; border: 1px solid #EBD6AE; border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.btn.gold { background: var(--gold); color: #fff; }
.wiz { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 14px; }
.wiz li::marker { font-weight: 700; color: var(--pri); }
.conn-ok { background: #E5F4EC; color: var(--ok); border-radius: 10px; padding: 10px 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.conn-ok svg { width: 18px; height: 18px; }
.danger-zone { border: 1px solid #F3C9C5; }
.form-li { align-items: flex-start; flex-wrap: wrap; }
.data-tbl th { position: sticky; top: 0; background: var(--pri-soft); white-space: nowrap; }
.data-tbl td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.data-tbl tbody tr { cursor: pointer; }
.data-tbl tbody tr:hover { background: #F6FBFB; }
.avatar.xs { width: 20px; height: 20px; font-size: 10px; }
.kb-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.kb-dot.s-todo { background: #8AA3A4; } .kb-dot.s-doing { background: var(--gold); } .kb-dot.s-review { background: #5FB3AE; } .kb-dot.s-done { background: var(--pri); }
.kb-col { background: #EAF2F2; }
.pbar { height: 6px; background: #E1ECEC; border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--pri); }
.mb { margin-bottom: 10px; display: inline-block; }
.inp.sm { padding: 6px 8px; font-size: 13px; }
@media (max-width: 640px) { .ab-name i { display: none; } .ab-lang { display: none; } .dash-grid { grid-template-columns: 1fr; } }
/* icons default to text size unless a component sizes them */
svg[class=""] { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
h3 > svg[class=""] { margin-right: 4px; }
.empty svg[class=""] { width: 44px; height: 44px; }
.feat svg[class=""] { width: 26px; height: 26px; }

.hbars { display: grid; gap: 5px; margin-top: 6px; }
.hb { display: grid; grid-template-columns: minmax(80px, 38%) 1fr 48px; gap: 8px; align-items: center; font-size: 12.5px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hb-b { background: #E1ECEC; border-radius: 6px; height: 14px; overflow: hidden; }
.hb-b i { display: block; height: 100%; background: var(--pri); border-radius: 6px; }
.hb-v { text-align: right; font-weight: 700; }
.dash-grid > .card { margin: 0; }

.auto-box { border: 1px solid #BFE0DD; background: #F6FBFB; border-radius: 14px; padding: 14px; }
.big-step { width: 38px; height: 38px; border-radius: 11px; background: var(--pri); color: #fff; display: grid; place-items: center; flex: none; }
.big-step svg[class=""] { width: 20px; height: 20px; }
.wiz li { padding: 2px 0; }
.wiz li.done::marker { content: '✓  '; color: var(--ok); }
.wiz li.now > b { color: var(--pri-2); }
.wiz li:not(.now):not(.done) { opacity: .7; }
.wiz ol.sub { margin: 6px 0 0; padding-left: 18px; }
.prog { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 13px; }
.prog li { display: flex; gap: 6px; align-items: center; } .prog li.ok { color: var(--ok); }
.spin.sm { width: 14px; height: 14px; border-width: 2px; margin: 0; }
.ars-link { color: var(--pri); font-weight: 650; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; }
.ars-link svg[class=""] { width: 15px; height: 15px; }
.guide h4 { margin: 18px 0 6px; font-family: 'Sora', sans-serif; }
.guide ol, .guide ul { padding-left: 20px; } .guide li { margin: 5px 0; font-size: 14px; }
.guide .tbl td { white-space: normal; vertical-align: top; } .guide .tbl td:first-child { width: 32%; }
