/* ═══════════════════════════════════════════════════════════════════════════
   JedexOS — public pages (Sep 18 2026): /verify, /sign, /scan, /doc
   One brand system for the pages anyone opens without an account. The accent
   (--a, --a-rgb, --a-deep) is the company's, set per page by PublicPage::head().
   Light by default, dark when the device is. Two layouts: .pp-split (a brand
   panel beside the content; a band with the card lifted over it on a phone)
   and .pp-work (a wide working area and a side panel).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg: #f3f5fa; --card: #ffffff; --card-2: #f7f8fc; --ink: #0f172a; --ink-2: #334155; --mute: #64748b;
    --line: rgba(15, 23, 42, .09); --line-2: rgba(15, 23, 42, .14);
    --ok: #059669; --ok-bg: #ecfdf5; --ok-line: #a7f3d0;
    --bad: #dc2626; --bad-bg: #fef2f2; --bad-line: #fecaca;
    --warn: #b45309; --warn-bg: #fffbeb; --warn-line: #fde68a;
    --info: #2563eb; --info-bg: #eff6ff; --info-line: #bfdbfe;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);
    --r: 18px; --r-sm: 12px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0f1c; --card: #111827; --card-2: #0f1626; --ink: #e5e7eb; --ink-2: #cbd5e1; --mute: #94a3b8;
        --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
        --ok: #34d399; --ok-bg: rgba(16, 185, 129, .12); --ok-line: rgba(52, 211, 153, .35);
        --bad: #f87171; --bad-bg: rgba(239, 68, 68, .12); --bad-line: rgba(248, 113, 113, .35);
        --warn: #fbbf24; --warn-bg: rgba(245, 158, 11, .12); --warn-line: rgba(251, 191, 36, .35);
        --info: #60a5fa; --info-bg: rgba(59, 130, 246, .12); --info-line: rgba(96, 165, 250, .35);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body.pp { margin: 0; min-height: 100vh; min-height: 100dvh; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg);
    background-image: radial-gradient(900px 500px at 100% -10%, rgba(var(--a-rgb), .10), transparent 60%),
                      radial-gradient(700px 500px at -10% 110%, rgba(var(--a-rgb), .07), transparent 60%);
    background-attachment: fixed; }
a { color: var(--a); text-decoration: none; }
a:hover { text-decoration: underline; }
.pp-i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pp-mono { font-family: var(--mono); letter-spacing: .02em; }
.pp-muted { color: var(--mute); }
.pp-small { font-size: 13px; }
h1.pp-h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 6px; }
h2.pp-h2 { font-size: 17px; margin: 0 0 4px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }

/* ── Brand row ───────────────────────────────────────────────────────────── */
.pp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pp-logo { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); flex-shrink: 0; overflow: hidden; }
.pp-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.pp-brand-t { display: flex; flex-direction: column; min-width: 0; }
.pp-brand-t b { font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-brand-t small { font-size: 12px; opacity: .8; }
.pp-brand.is-light { color: #fff; }

/* ── Split layout: brand panel + content ─────────────────────────────────── */
.pp-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 40%) 1fr; align-items: start; }
/* The panel stays in view while a long result or preview scrolls beside it. */
.pp-aside { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; color: #fff; padding: 40px clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 28px;
    background: linear-gradient(150deg, var(--a) 0%, var(--a-deep) 100%); }
.pp-aside::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.2px); background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.pp-aside::after { content: ''; position: absolute; width: 520px; height: 520px; right: -220px; bottom: -220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); pointer-events: none; }
.pp-aside > * { position: relative; z-index: 1; }
.pp-aside-hero { margin-top: auto; margin-bottom: auto; }
.pp-aside-hero .pp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.pp-aside-hero h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 16px 0 12px; }
.pp-aside-hero p { opacity: .88; font-size: 15.5px; max-width: 34em; }
.pp-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.pp-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; opacity: .95; }
.pp-points .pp-i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.pp-points b { display: block; }
.pp-aside .pp-contact a { color: rgba(255, 255, 255, .9); }
.pp-main { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 48px clamp(20px, 5vw, 72px); min-width: 0; }
.pp-main-in { width: 100%; max-width: 640px; margin: 0 auto; }
.pp-mobile-band { display: none; }

@media (max-width: 991.98px) {
    .pp-split { display: block; }
    .pp-aside { display: none; }
    .pp-mobile-band { display: block; color: #fff; padding: calc(18px + env(safe-area-inset-top)) 18px 70px; position: relative; overflow: hidden;
        background: linear-gradient(150deg, var(--a) 0%, var(--a-deep) 100%); }
    .pp-mobile-band::before { content: ''; position: absolute; inset: 0; opacity: .45; pointer-events: none;
        background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.2px); background-size: 20px 20px; }
    .pp-mobile-band > * { position: relative; }
    .pp-mobile-band .pp-band-t { margin-top: 16px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
    .pp-mobile-band .pp-band-s { opacity: .85; font-size: 14px; margin-top: 4px; }
    /* Lifted over the band: positioned, so it paints above it. */
    .pp-main { position: relative; z-index: 1; min-height: 0; padding: 0 14px calc(28px + env(safe-area-inset-bottom)); margin-top: -52px; justify-content: flex-start; }
    .pp-main-in { max-width: 560px; }
}

/* ── Work layout: a wide area + a side panel ─────────────────────────────── */
.pp-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 32px);
    background: linear-gradient(150deg, var(--a), var(--a-deep)); color: #fff; box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .5); }
.pp-topbar .pp-logo { width: 38px; height: 38px; border-radius: 11px; }
.pp-topbar .pp-spacer { flex: 1; }
.pp-work { display: grid; grid-template-columns: 1fr 400px; gap: 24px; max-width: 1360px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 48px; align-items: start; }
.pp-work-side { position: sticky; top: 86px; display: grid; gap: 16px; }
@media (max-width: 991.98px) {
    .pp-work { grid-template-columns: 1fr; padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); gap: 14px; }
    .pp-work-side { position: static; }
    .pp-topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.pp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 28px); }
.pp-card + .pp-card { margin-top: 16px; }
.pp-card.is-flat { box-shadow: none; }
.pp-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pp-card-h .pp-ic { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--a-rgb), .1); color: var(--a); flex-shrink: 0; }
.pp-sec { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 10px; }
.pp-divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* ── The verdict ─────────────────────────────────────────────────────────── */
.pp-verdict { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 16px; border: 1px solid; margin-bottom: 20px;
    animation: pp-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.pp-verdict b { display: block; font-size: 19px; letter-spacing: -.01em; margin-bottom: 2px; }
.pp-verdict span { font-size: 14px; }
.pp-verdict.is-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.pp-verdict.is-bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.pp-verdict.is-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.pp-verdict.is-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.pp-verdict .pp-v-t { color: var(--ink-2); }
.pp-verdict b { color: inherit; }
.pp-seal { width: 64px; height: 64px; flex-shrink: 0; }
.pp-seal svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pp-seal-ring { stroke-dasharray: 132; stroke-dashoffset: 132; animation: pp-draw .7s .1s ease-out forwards; opacity: .9; }
.pp-seal-mark { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pp-draw .4s .65s ease-out forwards; }
.pp-seal.is-ok svg { filter: drop-shadow(0 6px 14px rgba(5, 150, 105, .35)); }
@keyframes pp-draw { to { stroke-dashoffset: 0; } }
@keyframes pp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Facts: a certificate-like table ─────────────────────────────────────── */
.pp-doc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px dashed var(--line-2); }
.pp-doc-head .pp-ic { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(150deg, var(--a), var(--a-deep)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -10px rgba(var(--a-rgb), .8); }
.pp-doc-head .pp-ic .pp-i { width: 24px; height: 24px; }
.pp-doc-head small { display: block; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pp-doc-head strong { font-size: 20px; letter-spacing: -.01em; font-family: var(--mono); }
.pp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.pp-fact { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pp-fact dt { font-size: 12px; color: var(--mute); margin-bottom: 2px; }
.pp-fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pp-fact.is-wide { grid-column: 1 / -1; }
.pp-fact.is-big dd { font-size: 20px; letter-spacing: -.01em; }
@media (max-width: 520px) {
    .pp-facts { grid-template-columns: 1fr; }
    .pp-seal { width: 48px; height: 48px; }
    .pp-verdict { gap: 14px; padding: 16px; }
    .pp-verdict b { font-size: 17px; }
    .pp-input.is-code { font-size: 15px; letter-spacing: .06em; }
}

.pp-code { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; letter-spacing: .06em;
    background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 8px 6px 12px; }
.pp-code button { border: 0; background: transparent; color: var(--mute); cursor: pointer; padding: 4px; border-radius: 7px; display: inline-flex; }
.pp-code button:hover { background: rgba(var(--a-rgb), .1); color: var(--a); }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.pp-timeline { list-style: none; padding: 0; margin: 4px 0 0; position: relative; }
.pp-timeline::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.pp-timeline li { position: relative; padding: 0 0 14px 40px; font-size: 14px; }
.pp-timeline li:last-child { padding-bottom: 0; }
.pp-timeline .pp-dot { position: absolute; left: 4px; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--a);
    display: inline-flex; align-items: center; justify-content: center; color: var(--a); }
.pp-timeline .pp-dot .pp-i { width: 11px; height: 11px; stroke-width: 3; }
.pp-timeline li.is-bad .pp-dot { border-color: var(--bad); color: var(--bad); }
.pp-timeline small { display: block; color: var(--mute); font-size: 12.5px; }

/* ── Buttons and inputs ──────────────────────────────────────────────────── */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: 12px;
    border: 1px solid transparent; cursor: pointer; background: var(--a); color: #fff; text-decoration: none !important; transition: transform .12s, box-shadow .2s, background .2s;
    box-shadow: 0 10px 24px -12px rgba(var(--a-rgb), .9); white-space: nowrap; }
.pp-btn:hover { background: var(--a-deep); }
.pp-btn:active { transform: translateY(1px) scale(.99); }
.pp-btn:disabled { opacity: .5; cursor: default; transform: none; }
.pp-btn.is-ghost { background: var(--card-2); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.pp-btn.is-ghost:hover { background: rgba(var(--a-rgb), .08); color: var(--a); }
.pp-btn.is-link { background: none; box-shadow: none; color: var(--mute); padding: 8px 4px; font-weight: 500; }
.pp-btn.is-link:hover { color: var(--a); }
.pp-btn.is-danger { background: transparent; color: var(--bad); border-color: var(--bad-line); box-shadow: none; }
.pp-btn.is-lg { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.pp-btn.is-block { width: 100%; }
.pp-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.pp-field { position: relative; }
.pp-field .pp-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); width: 20px; height: 20px; pointer-events: none; }
.pp-input { width: 100%; font: 500 16px/1.2 var(--font); color: var(--ink); background: var(--card-2); border: 1.5px solid var(--line-2); border-radius: 14px;
    padding: 16px 16px 16px 46px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.pp-input:focus { border-color: var(--a); box-shadow: 0 0 0 4px rgba(var(--a-rgb), .14); background: var(--card); }
.pp-input.is-code { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 17px; }
.pp-input.is-plain { padding-left: 16px; }
.pp-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 16px 0 6px; }
.pp-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card-2); }
.pp-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--a); flex-shrink: 0; }
.pp-check:has(input:checked) { border-color: var(--a); background: rgba(var(--a-rgb), .06); }
.pp-or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 18px 0; }
.pp-or::before, .pp-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── Drop zone (check a file) ────────────────────────────────────────────── */
.pp-drop { display: flex; align-items: center; gap: 16px; padding: 18px; border: 2px dashed var(--line-2); border-radius: 16px; cursor: pointer;
    background: var(--card-2); transition: border-color .15s, background .15s; }
.pp-drop:hover, .pp-drop.is-over { border-color: var(--a); background: rgba(var(--a-rgb), .06); }
.pp-drop .pp-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(var(--a-rgb), .12); color: var(--a); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pp-drop b { display: block; }
.pp-drop input { display: none; }
.pp-result { margin-top: 12px; }
.pp-result .pp-verdict { margin: 0; padding: 14px 16px; }
.pp-result .pp-verdict b { font-size: 15.5px; }
.pp-result .pp-seal { width: 40px; height: 40px; }

/* ── Scanner (a camera in a frame) ───────────────────────────────────────── */
.pp-scanner { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.pp-scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-scanner .pp-reticle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pp-scanner .pp-reticle-box { position: relative; width: 62%; aspect-ratio: 1; max-width: 300px; border-radius: 20px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .35); }
.pp-scanner .pp-corner { position: absolute; width: 30px; height: 30px; border: 0 solid #fff; }
.pp-scanner .pp-corner.tl { top: -2px; left: -2px; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 18px; }
.pp-scanner .pp-corner.tr { top: -2px; right: -2px; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 18px; }
.pp-scanner .pp-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 18px; }
.pp-scanner .pp-corner.br { bottom: -2px; right: -2px; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 18px; }
.pp-scanner .pp-line { position: absolute; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--a), transparent);
    box-shadow: 0 0 12px var(--a); animation: pp-sweep 2.2s ease-in-out infinite; }
@keyframes pp-sweep { 0%, 100% { top: 6%; } 50% { top: 92%; } }
.pp-scanner .pp-scan-msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; text-align: center; color: #fff; font-size: 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.pp-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pp-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mute); }
.pp-steps li .n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
    background: var(--card-2); border: 1.5px solid var(--line-2); flex-shrink: 0; }
.pp-steps li.is-on { color: var(--ink); }
.pp-steps li.is-on .n { background: var(--a); border-color: var(--a); color: #fff; box-shadow: 0 0 0 4px rgba(var(--a-rgb), .16); }
.pp-steps li.is-done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.pp-steps li + li::before { content: ''; flex: 0 0 18px; height: 2px; background: var(--line-2); border-radius: 2px; margin-right: 2px; }
.pp-topbar .pp-steps li { color: rgba(255, 255, 255, .75); }
.pp-topbar .pp-steps li .n { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.pp-topbar .pp-steps li.is-on { color: #fff; }
.pp-topbar .pp-steps li.is-on .n { background: #fff; color: var(--a); border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.pp-topbar .pp-steps li + li::before { background: rgba(255, 255, 255, .3); }
@media (max-width: 991.98px) { .pp-topbar .pp-steps { display: none; } }

/* ── Document pages (pdf.js) ─────────────────────────────────────────────── */
.pp-pages { background: var(--card-2); border-radius: 14px; padding: clamp(10px, 2vw, 22px); display: grid; gap: 16px; }
.pp-pages canvas { width: 100%; height: auto; display: block; background: #fff; border-radius: 4px; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .45); }
.pp-pages .pp-page-n { font-size: 12px; color: var(--mute); text-align: center; margin-top: -8px; }
.pp-skeleton { border-radius: 4px; background: linear-gradient(90deg, var(--card) 0%, var(--line) 50%, var(--card) 100%); background-size: 200% 100%;
    animation: pp-shimmer 1.3s linear infinite; aspect-ratio: 1 / 1.414; }
@keyframes pp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Signature pad ───────────────────────────────────────────────────────── */
.pp-pad { position: relative; border: 2px dashed var(--line-2); border-radius: 16px; background: #fff; touch-action: none; overflow: hidden; }
.pp-pad canvas { display: block; width: 100%; height: 190px; cursor: crosshair; }
.pp-pad .pp-pad-line { position: absolute; left: 8%; right: 8%; bottom: 30%; border-top: 1.5px solid #d6dae3; pointer-events: none; }
.pp-pad .pp-pad-x { position: absolute; left: 7%; bottom: calc(30% + 4px); color: #b6bcc9; font: 700 18px/1 var(--font); pointer-events: none; }
.pp-pad .pp-pad-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #aab1c0; font-size: 14px; pointer-events: none; }
.pp-pad.is-inked { border-style: solid; border-color: var(--a); }

/* ── Mobile action bar ───────────────────────────────────────────────────── */
.pp-actionbar { display: none; }
@media (max-width: 991.98px) {
    .pp-actionbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
    .pp-actionbar .pp-btn { flex: 1; }
}

/* ── Misc ────────────────────────────────────────────────────────────────── */
.pp-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.pp-note .pp-i { color: var(--a); margin-top: 1px; }
.pp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    background: rgba(var(--a-rgb), .1); color: var(--a); }
.pp-badge.is-ok { background: var(--ok-bg); color: var(--ok); }
.pp-badge.is-bad { background: var(--bad-bg); color: var(--bad); }
.pp-badge.is-warn { background: var(--warn-bg); color: var(--warn); }
.pp-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pp-live 1.8s infinite; display: inline-block; }
@keyframes pp-live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.pp-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.pp-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); }
.pp-foot { text-align: center; color: var(--mute); font-size: 12.5px; margin-top: 22px; display: grid; gap: 8px; justify-items: center; }
.pp-foot .pp-contact { justify-content: center; }
.pp-powered { font-size: 11.5px; opacity: .7; display: inline-flex; align-items: center; gap: 6px; }
.pp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 12px;
    font-size: 14px; transition: all .25s; z-index: 100; pointer-events: none; box-shadow: var(--shadow-lg); }
.pp-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 991.98px) { .pp-toast { bottom: calc(90px + env(safe-area-inset-bottom)); } }
.pp-hide { display: none !important; }
@media (max-width: 991.98px) { .pp-desk-only { display: none !important; } }
@media (min-width: 992px) { .pp-mob-only { display: none !important; } }
/* ═══ Page designs (PageDesign — Page Builder) ═══════════════════════════════ */

/* Light or dark, forced by the design (auto = the @media rule above). */
body.pp-mode-light { --bg: #f3f5fa; --card: #ffffff; --card-2: #f7f8fc; --ink: #0f172a; --ink-2: #334155; --mute: #64748b;
    --line: rgba(15, 23, 42, .09); --line-2: rgba(15, 23, 42, .14); --ok: #059669; --ok-bg: #ecfdf5; --ok-line: #a7f3d0;
    --bad: #dc2626; --bad-bg: #fef2f2; --bad-line: #fecaca; --warn: #b45309; --warn-bg: #fffbeb; --warn-line: #fde68a;
    --info: #2563eb; --info-bg: #eff6ff; --info-line: #bfdbfe; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .18); color-scheme: light; }
body.pp-mode-dark { --bg: #0a0f1c; --card: #111827; --card-2: #0f1626; --ink: #e5e7eb; --ink-2: #cbd5e1; --mute: #94a3b8;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14); --ok: #34d399; --ok-bg: rgba(16, 185, 129, .12); --ok-line: rgba(52, 211, 153, .35);
    --bad: #f87171; --bad-bg: rgba(239, 68, 68, .12); --bad-line: rgba(248, 113, 113, .35); --warn: #fbbf24; --warn-bg: rgba(245, 158, 11, .12); --warn-line: rgba(251, 191, 36, .35);
    --info: #60a5fa; --info-bg: rgba(59, 130, 246, .12); --info-line: rgba(96, 165, 250, .35); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6); color-scheme: dark; }

/* Backgrounds */
body.pp-bg-plain { background-image: none; }
body.pp-bg-dots { background-image: radial-gradient(rgba(var(--a-rgb), .16) 1px, transparent 1.3px); background-size: 22px 22px; }
body.pp-bg-grid { background-image: linear-gradient(rgba(var(--a-rgb), .08) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--a-rgb), .08) 1px, transparent 1px);
    background-size: 36px 36px; }
body.pp-bg-gradient { background-image: linear-gradient(180deg, rgba(var(--a-rgb), .16), transparent 55%); }

/* Cards */
body.pp-card-outline .pp-card, body.pp-card-outline .pp-surface-card { box-shadow: none; border: 1.5px solid var(--line-2); }
body.pp-card-flat .pp-card, body.pp-card-flat .pp-surface-card { box-shadow: none; border-color: transparent; background: var(--card-2); }
body.pp-card-glass .pp-card, body.pp-card-glass .pp-surface-card { background: color-mix(in srgb, var(--card) 72%, transparent);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line-2); }

/* Type */
body.pp-font-rounded { --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif; }
body.pp-font-serif { --font: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
body.pp-font-mono { --font: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
body.pp-compact { font-size: 14px; }
body.pp-compact .pp-card, body.pp-compact .pp-surface-card { padding: 16px; }
body.pp-compact .pp-s + .pp-s { margin-top: 10px; }

/* Logo sizes */
body.pp-logo-sm .pp-logo { width: 36px; height: 36px; border-radius: 11px; }
body.pp-logo-lg .pp-logo { width: 60px; height: 60px; border-radius: 18px; }

/* Widths */
body.pp-w-narrow .pp-main-in { max-width: 520px; }
body.pp-w-wide .pp-main-in { max-width: 820px; }

/* The panel / band */
body.pp-lead-solid .pp-aside, body.pp-lead-solid .pp-hero { background: var(--a); }
body.pp-lead-dark .pp-aside, body.pp-lead-dark .pp-hero { background: linear-gradient(160deg, #0f172a, #020617); }
body.pp-lead-image .pp-aside, body.pp-lead-image .pp-hero { background: linear-gradient(160deg, rgba(var(--a-rgb), .82), rgba(2, 6, 23, .78)), var(--lead-img, none) center / cover; }

/* Sections */
.pp-s + .pp-s { margin-top: 16px; }
.pp-zone-lead .pp-s + .pp-s { margin-top: 22px; }
.pp-surface-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 28px); }
.pp-surface-tint { background: rgba(var(--a-rgb), .07); border-radius: var(--r); padding: 18px 20px; }
.pp-align-center { text-align: center; }
.pp-align-center .pp-brand, .pp-align-center .pp-btns, .pp-align-center .pp-contact { justify-content: center; }
.pp-align-center .pp-points li { text-align: left; }
@media (max-width: 991.98px) { .pp-hide-phone { display: none !important; } }
@media (min-width: 992px) { .pp-hide-desktop { display: none !important; } }
.pp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--a); background: rgba(var(--a-rgb), .1); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.pp-heading { margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.15; }
.pp-heading.is-sm { font-size: 18px; } .pp-heading.is-md { font-size: 22px; } .pp-heading.is-lg { font-size: clamp(24px, 2.4vw, 30px); } .pp-heading.is-xl { font-size: clamp(28px, 3vw, 40px); }
.pp-heading-t { color: var(--ink-2); font-size: 15.5px; max-width: 38em; }
.pp-align-center .pp-heading-t { margin-left: auto; margin-right: auto; }
.pp-text { white-space: normal; color: var(--ink-2); }
.pp-img { width: 100%; display: block; border-radius: var(--r); background: var(--card-2); }
.pp-faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.pp-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.pp-faq summary::after { content: '+'; color: var(--a); font-weight: 700; }
.pp-faq[open] summary::after { content: '–'; }
.pp-faq div { color: var(--ink-2); margin-top: 8px; font-size: 14px; }
.pp-note.is-ok .pp-i { color: var(--ok); } .pp-note.is-warn .pp-i { color: var(--warn); }
.pp-note.is-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.pp-note.is-ok { background: var(--ok-bg); border-color: var(--ok-line); }

/* On the accent panel / band: white words */
.pp-aside .pp-eyebrow, .pp-hero .pp-eyebrow { color: #fff; background: rgba(255, 255, 255, .16); }
.pp-aside .pp-heading-t, .pp-hero .pp-heading-t, .pp-aside .pp-text, .pp-hero .pp-text { color: rgba(255, 255, 255, .88); }
.pp-aside .pp-note, .pp-hero .pp-note { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.pp-aside .pp-note .pp-i, .pp-hero .pp-note .pp-i { color: #fff; }
.pp-aside .pp-sec, .pp-hero .pp-sec { color: rgba(255, 255, 255, .75); }
.pp-hero .pp-contact a { color: rgba(255, 255, 255, .9); }
.pp-aside .pp-s-contacts { margin-top: auto !important; }
.pp-aside .pp-s-heading { margin-top: auto !important; }

/* Layout: stack — a hero band, the page lifted over it */
.pp-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--a), var(--a-deep));
    padding: calc(28px + env(safe-area-inset-top)) 18px 96px; }
.pp-hero::before { content: ''; position: absolute; inset: 0; opacity: .45; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.2px); background-size: 22px 22px; }
.pp-hero-in { position: relative; max-width: 820px; margin: 0 auto; }
.pp-stack-main { position: relative; z-index: 1; margin-top: -64px; padding: 0 16px calc(40px + env(safe-area-inset-bottom)); }
.pp-stack-main .pp-main-in { margin: 0 auto; }

/* Layout: card — one centred column */
.pp-cardlay { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; padding: calc(32px + env(safe-area-inset-top)) 16px 40px; }
.pp-cardlay .pp-main-in { max-width: 560px; }
.pp-cardlay-lead { margin-bottom: 20px; }
.pp-cardlay-lead:empty { display: none; }

/* Layout: split — on a phone the panel becomes the band */
@media (max-width: 991.98px) {
    .pp-split .pp-aside.pp-zone-lead { display: flex; position: relative; height: auto; padding: calc(20px + env(safe-area-inset-top)) 18px 72px; gap: 14px; }
    .pp-split .pp-aside .pp-s-heading .pp-heading.is-xl { font-size: 24px; }
    .pp-split .pp-aside .pp-s + .pp-s { margin-top: 6px; }
    .pp-split .pp-aside .pp-s-heading { margin-top: 0 !important; }
}
/* Work layout: the side panel's sections */
.pp-zone-side .pp-s + .pp-s { margin-top: 16px; }

/* Points and notices on the page (not on the accent panel) */
.pp-main .pp-points .pp-i, .pp-stack-main .pp-points .pp-i, .pp-cardlay .pp-points .pp-i, .pp-work .pp-points .pp-i { background: rgba(var(--a-rgb), .1); color: var(--a); }
.pp-note.is-bad { background: var(--bad-bg); border-color: var(--bad-line); }
.pp-note.is-bad .pp-i { color: var(--bad); }

/* The vehicle page */
.pp-vhead { display: flex; gap: 16px; align-items: center; }
.pp-vhead-ic { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: linear-gradient(150deg, var(--a), var(--a-deep)); color: #fff; box-shadow: 0 14px 30px -14px rgba(var(--a-rgb), .9); }
.pp-vhead-ic .pp-i { width: 30px; height: 30px; }
.pp-vhead small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; opacity: .75; }
.pp-vhead strong { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.pp-plate { display: inline-block; margin-top: 8px; font: 800 18px/1 var(--mono); letter-spacing: .12em; padding: 8px 14px; border-radius: 8px;
    background: #facc15; color: #111; border: 2px solid #111; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.pp-aside .pp-vhead-ic, .pp-hero .pp-vhead-ic { background: rgba(255, 255, 255, .16); }
.pp-cardlay .pp-s-vehicle_head { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
body.pp-card-glass .pp-cardlay .pp-s-vehicle_head { background: color-mix(in srgb, var(--card) 72%, transparent); backdrop-filter: blur(14px); }
.pp-vdocs { display: grid; gap: 10px; }
.pp-vdoc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); flex-wrap: wrap; }
.pp-vdoc-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--line); color: var(--mute); }
.pp-vdoc.is-ok .pp-vdoc-ic { background: var(--ok-bg); color: var(--ok); }
.pp-vdoc.is-warn .pp-vdoc-ic { background: var(--warn-bg); color: var(--warn); }
.pp-vdoc.is-bad { border-color: var(--bad-line); }
.pp-vdoc.is-bad .pp-vdoc-ic { background: var(--bad-bg); color: var(--bad); }
.pp-vdoc-t { flex: 1; min-width: 140px; }
.pp-vdoc-t b { display: block; }
.pp-vdoc-t span { font-size: 13px; color: var(--mute); }
.pp-vdoc-s { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pp-vdoc-s .pp-btn { padding: 8px 12px; font-size: 13px; }

/* ═══ Payment link — /pay/{token} (Sep 21 2026) ═══════════════════════════════
   The bill, the ways to pay, the phone to prompt, then a waiting panel that
   watches for the money and lets them change the number and try again. */
.pp-pay-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px; }
.pp-pay-total .cur { font-size: 15px; font-weight: 600; color: var(--mute); }
.pp-pay-total .num { font-size: clamp(34px, 7vw, 44px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.pp-pay-sub { color: var(--mute); font-size: 14px; }
.pp-pay-lines { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px dashed var(--line-2); }
.pp-pay-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pp-pay-lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.pp-pay-lines li.is-sum { border-bottom: 0; font-weight: 700; }
.pp-pay-acct { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--a-rgb), .07); border: 1px solid rgba(var(--a-rgb), .18); }
.pp-pay-acct .k { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.pp-pay-acct .v { font: 700 17px/1.2 var(--mono); letter-spacing: .04em; color: var(--ink); }
.pp-pay-acct .pp-btn { margin-left: auto; padding: 8px 12px; font-size: 13px; }

/* One row per method: gateway labels are operator-written and can be long, and a
   grid of tiles let them wrap into towers five lines tall on a phone. */
.pp-methods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.pp-method { position: relative; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.pp-method input { position: absolute; opacity: 0; pointer-events: none; }
.pp-method .mk { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 800 12px/1 var(--font); color: #fff; flex-shrink: 0; background: var(--mute); }
.pp-method .mk.p-mpesa { background: #16a34a; } .pp-method .mk.p-airtel_money { background: #dc2626; } .pp-method .mk.p-mtn_momo { background: #eab308; color: #111; }
.pp-method .mk.p-paystack { background: #0ea5e9; } .pp-method .mk.p-flutterwave { background: #f59e0b; } .pp-method .mk.p-pesapal { background: #2563eb; } .pp-method .mk.p-intasend { background: #7c3aed; }
.pp-method > span:last-child { min-width: 0; flex: 1; }
.pp-method b { display: block; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-method::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; }
.pp-method:has(input:checked)::after { border: 6px solid var(--a); }
.pp-method small { display: block; font-size: 12px; color: var(--mute); }
.pp-method:has(input:checked) { border-color: var(--a); background: rgba(var(--a-rgb), .07); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .12); }
.pp-method:has(input:focus-visible) { outline: 2px solid var(--a); outline-offset: 2px; }

.pp-phone-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card-2); }
.pp-phone-chip .pp-i { color: var(--a); width: 22px; height: 22px; }
.pp-phone-chip b { font: 700 16px/1.2 var(--mono); letter-spacing: .03em; }
.pp-phone-chip small { display: block; font-size: 12px; color: var(--mute); }
.pp-phone-chip > div { min-width: 0; }
.pp-phone-chip .pp-btn { margin-left: auto; padding: 8px 12px; font-size: 13px; flex-shrink: 0; }

.pp-money { position: relative; }
.pp-money .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--mute); font-size: 15px; }
.pp-money .pp-input { padding-left: 62px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pp-chip { border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font: 600 13px/1 var(--font); cursor: pointer; }
.pp-chip:hover, .pp-chip.is-on { border-color: var(--a); color: var(--a); background: rgba(var(--a-rgb), .07); }

.pp-wait { text-align: center; padding: 8px 0 2px; }
.pp-wait-phone { position: relative; width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--a-rgb), .1); color: var(--a); }
.pp-wait-phone .pp-i { width: 34px; height: 34px; }
.pp-wait-phone::before, .pp-wait-phone::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--a-rgb), .45); animation: pp-ring 2.2s ease-out infinite; }
.pp-wait-phone::after { animation-delay: 1.1s; }
@keyframes pp-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.pp-wait h2 { margin: 0 0 6px; font-size: 20px; }
.pp-wait p { margin: 0 auto; max-width: 340px; color: var(--mute); font-size: 14px; }
.pp-wait-to { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 7px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font: 700 14px/1 var(--mono); }
.pp-wait-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 18px 0 16px; }
.pp-wait-bar i { display: block; height: 100%; width: 100%; background: var(--a); transform-origin: left; transition: transform 1s linear; }
.pp-wait-acts { display: grid; gap: 8px; }
.pp-wait.is-failed .pp-wait-phone { background: var(--bad-bg); color: var(--bad); }
.pp-wait.is-failed .pp-wait-acts { margin-top: 20px; }   /* the bar that spaces them is hidden when it failed */
.pp-wait.is-failed .pp-wait-phone::before, .pp-wait.is-failed .pp-wait-phone::after { display: none; }

.pp-paybill { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; text-align: left; }
.pp-paybill div { padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.pp-paybill div.is-wide { grid-column: 1 / -1; }
.pp-paybill small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.pp-paybill b { font: 700 18px/1.3 var(--mono); letter-spacing: .03em; }

.pp-pay-inv { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); }
.pp-pay-inv-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pp-pay-inv-h .pp-i { color: var(--a); width: 26px; height: 26px; flex-shrink: 0; }
.pp-pay-inv-h b { display: block; font-size: 14px; }
.pp-pay-inv-h span { font-size: 12px; color: var(--mute); }
.pp-pay-inv .pp-btns { gap: 8px; }
.pp-pay-inv .pp-btn { padding: 9px 14px; font-size: 13px; }
.pp-pay-inv .pp-pages { margin-top: 12px; }
.pp-pay-inv .pp-pages canvas { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 10px; background: #fff; }
.pp-receipts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pp-receipts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); }
.pp-receipts li .t { flex: 1; min-width: 0; }
.pp-receipts li .t b { display: block; font-size: 14px; }
.pp-receipts li .t span { font-size: 12px; color: var(--mute); }
.pp-receipts li .a { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-receipts li .pp-btn { padding: 8px 10px; font-size: 13px; }

@media (max-width: 420px) {
    .pp-paybill { grid-template-columns: 1fr; }
    .pp-phone-chip small { display: none; }
}

[hidden] { display: none !important; }

/* Animations off (the design says so) */
body.pp-still *, body.pp-still *::before, body.pp-still *::after { animation: none !important; transition: none !important; }
body.pp-still .pp-seal-ring, body.pp-still .pp-seal-mark { stroke-dashoffset: 0; }

/* A preview inside Page Builder: nothing may leave the page */
body.pp-is-preview a[href]:not([href^="#"]) { cursor: default; }

/* ── Network status (Oct 10 2026 — /status, PageDesign 'status') ── */
.pp-badge.is-info { background: var(--info-bg); color: var(--info); }
.pp-incident + .pp-incident { margin-top: 12px; }
.pp-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.pp-area { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: calc(var(--r) * .6); background: var(--card); min-width: 0; }
.pp-area-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.pp-area-n { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-area-s { font-size: 12px; font-weight: 700; color: var(--ok); }
.pp-area.is-bad .pp-area-dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); } .pp-area.is-bad .pp-area-s { color: var(--bad); }
.pp-area.is-warn .pp-area-dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); } .pp-area.is-warn .pp-area-s { color: var(--warn); }
.pp-area.is-info .pp-area-dot { background: var(--info); box-shadow: 0 0 0 4px var(--info-bg); } .pp-area.is-info .pp-area-s { color: var(--info); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* A company with a logo made for dark backgrounds (Settings › Company › Branding, Oct 17 2026): on a dark
   theme — the device's, unless the page design says "Always light", or the design's "Always dark" — its chip
   turns dark and shows that version. .pp-logo and the website's .ws-logo alike (PublicPage::logoImgs). */
.has-dark > .logo-d { display: none; }
@media (prefers-color-scheme: dark) {
    body.pp:not(.pp-mode-light) .has-dark { background: #111827; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .1); }
    body.pp:not(.pp-mode-light) .has-dark > .logo-l { display: none; }
    body.pp:not(.pp-mode-light) .has-dark > .logo-d { display: block; }
}
body.pp.pp-mode-dark .has-dark { background: #111827; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .1); }
body.pp.pp-mode-dark .has-dark > .logo-l { display: none; }
body.pp.pp-mode-dark .has-dark > .logo-d { display: block; }
.pp-logo > img, .ws-logo > img { max-width: 80%; max-height: 80%; object-fit: contain; }
