/*!
 * JWS TV — tampilan web (akun, dasbor pengurus, superadmin, halaman jamaah).
 * Mengikuti mockup: latar #F4F6F5, hijau #1E6B5C, huruf Plus Jakarta Sans.
 */
:root {
  --bg: #F4F6F5; --surface: #FFFFFF; --surface2: #F8FAF9; --line: #DCE2DF; --line2: #C9D2CD; --line3: #E6EBE8;
  --text: #17212C; --text2: #3A4753; --muted: #56636F; --faint: #6A7782;
  --primary: #1E6B5C; --primary-hover: #175749; --primary-soft: #E3F0EC; --focus: #9CCFC2;
  --warn-bg: #F6EBD3; --warn-ink: #5E4110; --warn-dot: #8F6214;
  --danger: #B3422A; --danger-bg: #F8E3DD; --danger-ink: #8A2F1B;
  --info-bg: #E6EEF7; --info-ink: #1F4467;
  --night: #17212C; --brass: #E2B04F; --radius: 12px;
  --shadow: 0 1px 2px rgba(23, 33, 44, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 17px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 800; }
p { margin: 0; }
img { max-width: 100%; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Tata letak ---------------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 320px), 100%), 1fr)); align-items: start; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.span-2 { grid-column: span 2; }
@media (max-width: 760px) { .span-2 { grid-column: auto; } }
.mt-auto { margin-top: auto; }

/* ---------- Kerangka dasbor ------------------------------------------------------------------- */
.shell { min-height: 100vh; display: flex; }
.side { width: 272px; flex-shrink: 0; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brandbar { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.side .brandbar svg { width: 30px; height: 30px; color: var(--primary); }
.tenant-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); text-decoration: none; color: var(--text); }
.tenant-switch .t { flex: 1; min-width: 0; }
.tenant-switch .n { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-switch .u { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #2B3743; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { background: #E8EEEB; color: var(--text); }
.nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.nav a .badge { margin-left: auto; }
.navlabel { font-size: 12px; font-weight: 700; color: var(--faint); padding: 14px 12px 4px; }
.userbox { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.userbox .who { flex: 1; min-width: 0; }
.userbox .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox .who span { display: block; font-size: 12px; color: var(--muted); }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; font-size: 13px; color: var(--primary); cursor: pointer; text-decoration: underline; }
.main { flex: 1; min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 56px; display: flex; flex-direction: column; gap: 22px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pagehead .sub { color: var(--muted); margin-top: 4px; max-width: 760px; }
.topbar { display: none; }
@media (max-width: 960px) {
  .shell { flex-direction: column; }
  .side { position: fixed; z-index: 50; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .topbar .t { font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; }
}

/* ---------- Kartu ---------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); min-width: 0; }
.card.pad-lg { padding: 28px 30px; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head .sub { color: var(--muted); font-size: 14px; }
.card.dark { background: var(--night); color: #EEF2EC; border-color: var(--night); }
.card.dark .muted { color: #B7C2CC; }
.card.dark a { color: #9CD4C6; }
.card.soft { background: var(--surface2); box-shadow: none; }
.divider { height: 1px; background: var(--line3); margin: 4px 0; border: 0; }
.kicker { font-size: 13px; font-weight: 700; color: var(--primary); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.stat { padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 800; }
.stat .s { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* ---------- Tombol ---------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--primary); border-radius: 10px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn.lg { height: 48px; font-size: 15px; padding: 0 20px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { background: var(--surface2); color: var(--text); border-color: #AEB9B3; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #E3B8AD; }
.btn.danger:hover { background: var(--danger-bg); color: var(--danger-ink); }
.btn.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.warn { background: var(--warn-ink); border-color: var(--warn-ink); color: #fff; }
.btn[disabled], .btn.disabled { background: #DCE5E1; border-color: #DCE5E1; color: var(--muted); cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); color: var(--text2); cursor: pointer; }
.iconbtn:hover { background: var(--surface2); }
.iconbtn svg { width: 18px; height: 18px; }
form.inline { display: inline; }

/* ---------- Formulir ------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 600; color: #26313C; }
.field .help { font-size: 13px; color: var(--muted); }
.field .err, .err { font-size: 13px; color: var(--danger-ink); font-weight: 600; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date],
.field input[type=time], .field input[type=url], .field input[type=tel], .field input[type=search], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); }
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field select { padding-right: 32px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--primary); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field input[readonly] { background: var(--surface2); color: var(--text2); }
.otp { height: 58px !important; font-size: 28px !important; letter-spacing: .25em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.affix { display: flex; align-items: stretch; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.affix span { display: flex; align-items: center; padding: 0 12px; background: #EEF2F0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.affix input { border: 0 !important; border-radius: 0 !important; min-width: 0; }
.affix:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); cursor: pointer; }
.radio-card input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--primary); }
.radio-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; background: #F3F9F7; }
.radio-card b { font-size: 15px; }
.radio-card span { font-size: 13px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: #C9D2CD; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 9px; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 21px; }
.fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.fieldset legend { padding: 0 6px; font-weight: 800; font-size: 14px; }
.formbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.strength { height: 6px; border-radius: 3px; background: var(--line3); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }

/* ---------- Pemberitahuan & lencana ----------------------------------------------------------- */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 12px; font-size: 14px; background: var(--info-bg); color: var(--info-ink); }
.alert.ok { background: var(--primary-soft); color: #134C40; }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.danger { background: var(--danger-bg); color: var(--danger-ink); }
.alert .grow { flex: 1 1 320px; }
.alert .btn { flex-shrink: 0; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); }
.banner.danger { background: var(--danger-bg); color: var(--danger-ink); }
.banner.info { background: var(--info-bg); color: var(--info-ink); }
.banner .grow { flex: 1 1 320px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #EEF2F0; color: var(--text2); white-space: nowrap; }
.badge.ok { background: var(--primary-soft); color: var(--primary); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.danger { background: var(--danger-bg); color: var(--danger-ink); }
.badge.info { background: var(--info-bg); color: var(--info-ink); }
.badge.dark { background: var(--night); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--faint); display: inline-block; flex-shrink: 0; }
.dot.ok { background: var(--primary); } .dot.warn { background: var(--warn-dot); } .dot.danger { background: var(--danger); }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); }
.offline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- Tabel ---------------------------------------------------------------------------- */
.tablewrap { position: relative; width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface2); }
.table td { padding: 11px 14px; border-top: 1px solid var(--line3); vertical-align: middle; }
.table tr:first-child td { border-top: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * { margin-left: 6px; }
.table tr.muted td { color: var(--muted); }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table caption { text-align: left; padding: 0 0 8px; font-weight: 800; }
.dark .table th { background: transparent; color: #B7C2CC; border-color: #2F3B48; }
.dark .table td { border-color: #2F3B48; }

/* ---------- Daftar, tab, kosong ---------------------------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line3); }
.list > .item:first-child { border-top: 0; }
.list .item .grow { flex: 1; min-width: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--text2); font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--primary); border-color: var(--primary); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line2); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 44px; height: 44px; color: var(--line2); }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.codebox { padding: 10px 12px; background: #EEF2F0; border-radius: 8px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.codes span { padding: 8px 10px; background: #EEF2F0; border-radius: 8px; text-align: center; }
.qrbox { width: 210px; height: 210px; padding: 12px; border: 2px solid var(--text); border-radius: 12px; background: #fff; }
.qrbox svg { width: 100%; height: 100%; display: block; }
.thumb { width: 92px; height: 52px; border-radius: 8px; object-fit: cover; background: #EEF2F0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; overflow: hidden; flex-shrink: 0; }
.progress { height: 8px; border-radius: 4px; background: var(--line3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--primary); }

/* Pratinjau layar (iframe tampilan TV) */
.tvframe { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #14233D; border: 1px solid var(--line); }
.tvframe.portrait { aspect-ratio: 9 / 16; max-width: 320px; }
.tvframe iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tvframe.portrait iframe { width: 1080px; height: 1920px; }
.tpl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.tpl-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tpl-card.current { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.tpl-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #14233D; }
.tpl-card .row { justify-content: space-between; }

/* ---------- Halaman akun (masuk, daftar, Authenticator) ---------------------------------------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 40px 16px 56px; gap: 22px; }
.auth .brandbar { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.auth .brandbar svg { width: 34px; height: 34px; color: var(--primary); }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 980px; }
.auth-card h1 { font-size: 22px; }
.auth-foot { font-size: 14px; color: var(--muted); text-align: center; }
.auth-tenant { display: flex; align-items: center; gap: 14px; }
.auth-tenant img, .auth-tenant svg { width: 48px; height: 48px; color: #8F6214; object-fit: contain; }
.setup-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: start; }

/* ---------- Halaman publik ------------------------------------------------------------------ */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px 20px; }
.site-head nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-head nav a { text-decoration: none; font-weight: 600; color: var(--text2); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.hero p { font-size: 18px; color: var(--text2); margin-top: 16px; }
.section { padding: 48px 0; }
.section h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.feature { display: flex; flex-direction: column; gap: 6px; }
.feature b { font-size: 16px; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 20px 40px; color: var(--muted); font-size: 14px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 12px; color: var(--text2); }
.prose h2 { font-size: 20px; margin-top: 12px; color: var(--text); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Halaman jamaah (ponsel) */
.jp { max-width: 720px; margin: 0 auto; padding: 18px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.jp-head { display: flex; align-items: center; gap: 14px; }
.jp-head img, .jp-head svg { width: 52px; height: 52px; color: #8F6214; object-fit: contain; flex-shrink: 0; }
.jp-next { background: var(--night); color: #EEF2EC; border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.jp-next .big { font-size: 40px; font-weight: 800; color: var(--brass); font-variant-numeric: tabular-nums; }
.jp-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.jp-times div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.jp-times div.hl { background: var(--primary); border-color: var(--primary); color: #fff; }
.jp-times b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.jp-times span { font-size: 12px; color: var(--muted); }
.jp-times div.hl span { color: #DDEDE8; }

/* Pagination */
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; background: var(--surface); }
.pager span.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager span.dis { color: var(--line2); }

/* ---------- Cari kota (citysearch.js) */
.cs { position: relative; }
.cs-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 18px 44px rgba(11, 31, 68, .18), 0 2px 6px rgba(11, 31, 68, .08); }
.cs-list[hidden] { display: none; }
.cs-opt { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.cs-opt b { font-size: 15px; font-weight: 700; color: var(--text); }
.cs-opt span { font-size: 13px; color: var(--muted); }
.cs-opt.on { background: #0B1F44; }
.cs-opt.on b { color: #fff; }
.cs-opt.on span { color: #F4D77A; }
.cs-msg { padding: 11px 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.cs-msg.err { color: var(--danger-ink); }
.help.cs-picked, .cs-picked { color: #17603F; font-weight: 600; }
.cs-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); }
.cs-box > label { font-size: 14px; font-weight: 700; color: var(--text); }
.cs-box input[type=search] { height: 46px; font-size: 16px; }
.cs-credit { font-size: 12px; color: var(--faint); }
[dir="rtl"] .cs-opt { text-align: right; }

@media print {
  .side, .topbar, .noprint, .btn, .pager { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ---------- Asisten AI di bawah kolom teks (partials/ai-assist) ---------- */
.ai { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 10px; background: var(--surface2); }
.ai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ai-label { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 4px; font-size: 13px; font-weight: 700; color: var(--text2); }
.ai-label svg { color: var(--brass); }
.ai-tr { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.ai-tr select { height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.ai.busy .ai-bar { opacity: .6; }
.ai-status { margin: 0; font-size: 13.5px; color: var(--text2); }
.ai-status.bad { color: var(--danger-ink); font-weight: 600; }
.ai-out { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); }
.ai-out[hidden], .ai-undo[hidden], .ai-status[hidden] { display: none; }
.ai-cap { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ai-draft { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; color: var(--text); }
.ai-warn { margin: 0; padding: 8px 12px 8px 28px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13.5px; }
[dir="rtl"] .ai-warn { padding: 8px 28px 8px 12px; }
.ai-warn li + li { margin-top: 4px; }
.ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-left { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.ai-undo, .ai-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.ai-undo { color: var(--text2); font-weight: 600; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) { .ai-tr { margin-inline-start: 0; } }

/* Isi templat WhatsApp untuk disalin (Pengaturan platform) */
pre.wa-template { margin: 0; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
