/* Tambahan CSS versi server (bukan dari prototipe). Dimuat setelah gema.css. */
.tabs a { min-height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.side-foot form, .sheet-links form { margin: 0; }
.sheet-links form button { width: 100%; }

/* ---- Tambahan Agent A (layar UMKM versi server) ---- */
.err:empty { display: none !important; }
.vstep a { all: unset; cursor: pointer; display: contents; }
.vstep a:focus-visible .dot { outline: 2px solid var(--focus); outline-offset: 2px; }
.vstep a:hover b { text-decoration: underline; }
.file .file-x { border: 0; background: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; margin-right: -6px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.file .file-x:hover { background: var(--surface-2); color: var(--fg); }
.file .file-x .i { width: 14px; height: 14px; }
.file i.sw .i { width: 16px; height: 16px; color: var(--muted); }
.callout-err { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.callout-err .i { color: var(--accent); }
.err-text { color: var(--accent); }
.p4 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pill-2); }
.demo-note { border: 1px dashed var(--line-strong); background: var(--surface); }
.demo-note > span { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-note .i { color: var(--accent); }
.card-h .changed-tag { margin-left: auto; }
.onb-sum .avatar .i { width: 20px; height: 20px; }
.bcard.changed { box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 1023px) { .demo-note { flex-direction: column; align-items: flex-start; } }
/* Grid dalam kartu: jarak lebar hanya di desktop (gap inline 32px membuat grid 12 kolom meluber di HP). */
.g.g-wide { gap: 32px; }
@media (max-width: 1023px) { .g.g-wide { gap: 16px; } }

/* ---- Tambahan Agent C: warna dan font brand di profil langkah 3 ---- */
.color-row { display: flex; gap: 8px; align-items: stretch; }
.color-row .input { flex: 1; min-width: 0; }
.color-pick { position: relative; flex: none; width: 48px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); cursor: pointer; }
.color-pick:hover { background: var(--surface-2); }
.color-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.color-pick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatches:empty { display: none; }
.swatches { margin-top: 8px; }
.swatches .chip span { cursor: default; }
.sw-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }

/* ---- Tambahan Agent C: halaman admin ---- */
.adm-sec { margin-top: 32px; scroll-margin-top: 90px; }
.adm-flash { margin-bottom: 16px; }
.adm-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.adm-row form { margin: 0; }
.adm-acts { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.adm-acts form { margin: 0; }
.adm-link { color: inherit; text-decoration: none; }
.adm-link:hover { text-decoration: underline; }
.adm-empty { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.adm-empty .i { width: 18px; height: 18px; }
.filters.js .adm-apply { display: none; }
.adm-inline { display: flex; gap: 8px; align-items: stretch; }
.adm-inline select.input { flex: 1; min-width: 0; }
.adm-inline input.input { min-width: 0; }
.adm-inline input[name="tokens"] { flex: 1; }
.adm-form + .adm-form { margin-top: 4px; }
.adm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-word; }
.adm-status { font-size: 22px !important; line-height: 28px !important; }
.adm-status.hot { color: var(--accent); }
.adm-status.dim { color: var(--muted); }
.adm-hold { margin-bottom: 24px; box-shadow: inset 3px 0 0 var(--accent); }
.adm-soon { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 10px; font: 600 12px/1 var(--font-body); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.adm-preview { opacity: .55; filter: grayscale(.35); pointer-events: none; user-select: none; }
.adm-seg { display: flex; overflow-x: auto; }
.adm-log .tbl td { height: auto; padding-top: 10px; padding-bottom: 10px; }
.stat .meter { margin-top: 8px; }
@media (max-width: 1023px) {
  .adm-acts { justify-content: flex-start; }
  .adm-inline { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  /* Kartu tabel admin di HP: teks panjang (masalah job, log) turun baris, tidak melebarkan halaman. */
  .app.admin .stack-m tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .app.admin .stack-m td { min-width: 0; overflow-wrap: anywhere; }
  .app.admin .stack-m .st { white-space: normal; align-items: flex-start; }
  .app.admin .stack-m .st .i { flex: none; margin-top: 3px; }
  .app.admin .stack-m td[data-l="Masalah"] { grid-column: 1 / -1; }
}

/* ================= Rancangan slide Gema (src/production/render-html.js) =================
   Satu kotak 4:5 = satu slide 1080 x 1350. Ukuran memakai cqw supaya sama di grid kecil dan besar. */
.gd { position: relative; aspect-ratio: 4 / 5; container-type: inline-size; overflow: hidden; isolation: isolate; width: 100%; }
.gd > * { position: absolute; display: block; }
.gd-r { box-sizing: border-box; }
.gd-ph { background: repeating-linear-gradient(135deg, rgba(0,0,0,.06) 0 6px, transparent 6px 12px); }
.gd-t { display: flex; flex-direction: column; box-sizing: border-box; overflow: visible; white-space: pre-wrap; overflow-wrap: break-word; font-kerning: normal; font-optical-sizing: none; }
/* font-optical-sizing none: font variabel (Fraunces, Bricolage Grotesque) tidak berubah bentuk menurut ukuran tampil, jadi
   pratinjau kecil dan besar memecah baris di tempat yang sama, dan cocok dengan lebar huruf di font-metrics.json. */
.gd-t > span { display: block; }
.gd-i { object-fit: fill; max-width: none; }
.gd-m { overflow: hidden; box-sizing: border-box; }
.gd-m > img { position: absolute; display: block; max-width: none; object-fit: fill; }

/* ================= Tahap berbayar (Agent D) ================= */
@media (max-width: 1023px) { .insp-first > .insp { order: -1; } }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-slot { position: relative; aspect-ratio: 4 / 5; background: repeating-linear-gradient(135deg, var(--sunken) 0 8px, transparent 8px 16px), var(--surface-2); display: grid; place-items: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.photo-slot > span:first-child { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px; }
.photo-slot .i { width: 28px; height: 28px; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-no { position: absolute; top: 10px; left: 10px; min-width: 28px; height: 28px; border-radius: 99px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: 13px; display: grid; place-items: center; padding: 0 8px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.photo-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.photo-body b { font-size: 15px; line-height: 21px; font-weight: 600; }
.photo-form { margin-top: auto; padding-top: 12px; }
.photo-pick { position: relative; cursor: pointer; }
.photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-pick:focus-within { outline: 2px solid var(--fg); outline-offset: 2px; }

.ig-cell { min-width: 0; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vstrip { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.vstrip:first-of-type { border-top: 0; padding-top: 4px; }
.vstrip-slides { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 170px); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.vstrip-slides .gd, .gthumb { border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.vstrip b { display: block; font-size: 15px; line-height: 21px; }
.font-sample { font-size: 34px; line-height: 1.1; margin-top: 14px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.font-body { font-size: 18px; margin-top: 14px; }
.layout-rules dt { font-weight: 600; font-size: 14px; }
.layout-rules dd { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.logo-chip { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: var(--sunken); padding: 4px; flex: none; }
.gcard .thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard .thumb { position: relative; }
.gcard .slides-n { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 9px; display: flex; gap: 4px; align-items: center; }
.gcard .slides-n .i { width: 13px; height: 13px; }
.gcard.waiting .thumb { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--sunken) 0 8px, transparent 8px 16px), var(--surface-2); color: var(--muted); text-align: center; padding: 24px; font-size: 14px; }
.gcard.waiting .thumb .i { width: 28px; height: 28px; margin: 0 auto 8px; display: block; }
.all-slides { margin-top: 8px; }
.all-slides summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.all-slides .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-top: 8px; }
.all-slides img { width: 100%; border-radius: 4px; display: block; box-shadow: 0 0 0 1px var(--line); }
.tc .tc-img { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; background: var(--sunken); }
.tc .tc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc input:checked ~ .tc-img { outline-color: var(--fg); }
.tc input:not(:checked) ~ .tc-img { opacity: .45; }
.rep-answers dd { white-space: pre-line; }
@media (max-width: 1023px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vstrip { grid-template-columns: 1fr; gap: 10px; }
  .thumbs-check { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.logo-color { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; }
@media (max-width: 767px) {
  .gcard .thumb { align-self: start; aspect-ratio: 4 / 5; }
  .gcard .thumb > img { height: 100%; }
  .gcard .slides-n { top: 6px; right: 6px; font-size: 11px; padding: 2px 6px; }
  .gcard.waiting .thumb { padding: 8px; font-size: 12px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.swatches { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }

/* ---- Kebijakan Privasi (/privasi) dan tautannya ---- */
.auth-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check a { text-decoration: underline; }
.pv-skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.pv-skip:focus { left: 16px; }
.pv-top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.pv-top-in { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-brand { display: block; }
.pv-brand .logo { height: 26px; width: auto; }
.pv-top-act { display: flex; align-items: center; gap: 4px; }
.pv-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.pv-back:hover { background: var(--surface-2); color: var(--fg); }
.pv-wrap { max-width: 1120px; margin: 0 auto; padding: 56px 24px 120px; }
.pv-head { max-width: 760px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.pv-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sunken); color: var(--fg); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pv-head h1 { font-size: 52px; line-height: 56px; letter-spacing: -0.025em; margin-top: 16px; }
.pv-lede { font-size: 19px; line-height: 30px; color: var(--muted); margin: 16px 0 0; max-width: 46ch; }
.pv-meta { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.pv-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 72px; align-items: start; }
.pv-toc { position: sticky; top: 88px; max-height: calc(100dvh - 112px); overflow: auto; font-size: 14px; }
.pv-toc-h { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-toc ol, .pv-toc-m ol { list-style: none; margin: 0; padding: 0; counter-reset: pv; }
.pv-toc li, .pv-toc-m li { counter-increment: pv; }
.pv-toc a, .pv-toc-m a { display: grid; grid-template-columns: 24px 1fr; gap: 4px; padding: 6px 8px; margin-left: -8px; border-radius: 6px; text-decoration: none; color: var(--muted); line-height: 20px; }
.pv-toc a::before, .pv-toc-m a::before { content: counter(pv); font-variant-numeric: tabular-nums; opacity: .7; }
.pv-toc a:hover, .pv-toc-m a:hover { color: var(--fg); background: var(--surface-2); }
.pv-toc-m { display: none; }
.pv-body { max-width: 680px; font-size: 16px; line-height: 1.7; }
.pv-body section { margin-top: 56px; }
.pv-body section:first-child { margin-top: 0; }
.pv-body h2 { font-size: 26px; line-height: 32px; margin-bottom: 16px; scroll-margin-top: 84px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.pv-no { font: 600 14px/1 var(--font-body); color: var(--accent); font-variant-numeric: tabular-nums; min-width: 20px; }
.pv-body h3 { font: 600 16px/24px var(--font-body); letter-spacing: 0; margin: 28px 0 8px; }
.pv-body p { margin: 0 0 14px; }
.pv-body ul, .pv-body ol { margin: 0 0 14px; padding-left: 22px; }
.pv-body li { margin: 6px 0; padding-left: 2px; }
.pv-body li::marker { color: var(--muted); }
.pv-body a { text-decoration: underline; text-decoration-color: var(--line-strong); }
.pv-body a:hover { text-decoration-color: currentColor; }
.pv-body code { font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sunken); padding: 3px 6px; border-radius: 4px; }
.pv-sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 32px; }
.pv-sum h2 { display: block; font-size: 20px; line-height: 26px; margin-bottom: 12px; }
.pv-sum ul { margin-bottom: 0; }
.pv-sum li { margin: 10px 0; }
.pv-note { background: var(--sunken); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 18px 0; }
.pv-note > :last-child { margin-bottom: 0; }
.pv-card { display: grid; gap: 4px; font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; margin: 0 0 16px; }
.pv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.pv-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; font-size: 15px; line-height: 1.6; }
.pv-box h3 { margin-top: 0; }
.pv-box ul { margin-bottom: 0; padding-left: 18px; }
.pv-parties { display: grid; gap: 12px; }
.pv-parties article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; }
.pv-parties h3 { margin: 0; font-size: 17px; }
.pv-sub { color: var(--muted); font-size: 14px; margin: 0 0 12px !important; }
.pv-parties dl { margin: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.6; }
.pv-parties dl > div { display: grid; grid-template-columns: 148px 1fr; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.pv-parties dt { color: var(--muted); }
.pv-parties dd, .pv-cookies dd { margin: 0; }
.pv-cookies { margin: 0 0 16px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pv-cookies > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pv-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv-foot p { margin: 0; }
@media (max-width: 1023px) {
  .pv-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pv-toc { display: none; }
  .pv-toc-m { display: block; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .pv-toc-m summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 20px; font-weight: 600; }
  .pv-toc-m summary::-webkit-details-marker { display: none; }
  .pv-toc-m[open] summary .i { transform: rotate(180deg); }
  .pv-toc-m ol { padding: 0 20px 14px; }
  .pv-toc-m a { margin-left: 0; padding: 9px 8px; text-decoration: none; }
  .pv-body { max-width: 680px; margin: 0 auto; }
  .pv-head { margin-left: auto; margin-right: auto; max-width: 680px; }
}
@media (max-width: 767px) {
  .pv-top-in { padding: 8px 16px; }
  .pv-wrap { padding: 32px 16px 88px; }
  .pv-head { padding-bottom: 28px; margin-bottom: 28px; }
  .pv-head h1 { font-size: 36px; line-height: 40px; }
  .pv-lede { font-size: 17px; line-height: 26px; }
  .pv-body section { margin-top: 44px; }
  .pv-body h2 { font-size: 22px; line-height: 28px; gap: 10px; scroll-margin-top: 72px; }
  .pv-sum { padding: 20px; }
  .pv-two { grid-template-columns: 1fr; }
  .pv-parties article, .pv-card { padding: 16px 18px; }
  .pv-parties dl > div { grid-template-columns: 1fr; gap: 0; }
  .pv-parties dt { font-size: 13px; }
  .pv-cookies > div { grid-template-columns: 1fr; gap: 4px; }
}
@media print {
  .pv-top, .pv-toc, .pv-toc-m, .pv-skip { display: none !important; }
  .pv-grid { display: block; }
  .pv-wrap { padding: 0; }
}
