:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-text: #1a1f27;
    --color-muted: #6b7280;
    --color-primary: #0f7a5c;
    --color-primary-dark: #0b5e46;
    --color-border: #e3e7eb;
    --color-danger: #b3261e;
    --color-danger-bg: #fdecea;
    --color-warning-bg: #fff6e0;
    --color-warning-text: #7a5b00;
    --color-success-bg: #e7f7ef;
    --color-success-text: #0b5e46;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(16, 24, 32, 0.08), 0 1px 2px rgba(16, 24, 32, 0.06);
    /* Member Account Center — Member app surface tokens (light values; dark values below). Components use these, never
       a colour of their own, so Gelap / Terang / Sistem only swap tokens. */
    --app-bg: #edf3f0;
    /* Global Member background: a page-length vertical depth gradient (lighter top → deeper bottom) and one pattern tile
       whose colour / visibility come from these tokens (img/member-pattern.svg is only the shape). */
    --app-bg-top: #f5f9f6;
    --app-bg-mid: #ecf3ef;
    --app-bg-bottom: #e1eae5;
    --app-glow: rgba(15, 122, 92, 0.06);
    --app-pattern-top: rgba(15, 122, 92, 0.1);
    --app-pattern-bottom: rgba(15, 122, 92, 0.07);
    --app-surface: rgba(255, 255, 255, 0.94);
    --app-surface-soft: rgba(255, 255, 255, 0.74);
    --app-line: rgba(15, 122, 92, 0.15);
    --app-line-soft: rgba(15, 122, 92, 0.1);
    --app-line-strong: rgba(15, 122, 92, 0.26);
    --app-bar: rgba(255, 255, 255, 0.9);
    --app-accent-soft: rgba(15, 122, 92, 0.09);
    --app-accent-tint: rgba(15, 122, 92, 0.13);
    --app-info: #256a8c;
    --app-info-bg: rgba(37, 106, 140, 0.06);
    --app-info-line: rgba(37, 106, 140, 0.18);
    --app-focus: #256a8c;
    --app-total-bg: linear-gradient(135deg, rgba(15, 122, 92, 0.13), rgba(255, 255, 255, 0.97) 62%);
    --app-card-tint: rgba(15, 122, 92, 0.025); /* Profil Saya card: ~20% of the Total Dana gradient accent */
    /* Peluang polish: the soft amber of "Batas Alokasi Putaran Ini" — translucent, never a solid warning colour. */
    --app-amber-bg: rgba(214, 158, 46, 0.09);
    --app-amber-glow: rgba(214, 158, 46, 0.16);
    --app-amber-line: rgba(176, 124, 20, 0.32);
    --app-thumb-bg: linear-gradient(135deg, rgba(15, 122, 92, 0.14), rgba(37, 106, 140, 0.1));
    --app-shadow: 0 6px 18px rgba(16, 48, 38, 0.08);
    --app-on-primary: #ffffff;
    --app-primary-hover: #0b5e46;
    --app-danger-line: rgba(179, 38, 30, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #10141a;
        --color-surface: #1a212b;
        --color-text: #eef1f4;
        --color-muted: #9aa4b2;
        --color-primary: #29c393;
        --color-primary-dark: #1f9e77;
        --color-border: #2a323d;
        --color-danger: #ff6b64;
        --color-danger-bg: #3a1c1c;
        --color-warning-bg: #3a2f10;
        --color-warning-text: #f1cd6b;
        --color-success-bg: #123425;
        --color-success-text: #6fe3b4;
        --app-bg: #0b1512;
        --app-bg-top: #12261f;
        --app-bg-mid: #0d1c18;
        --app-bg-bottom: #0a1514;
        --app-glow: rgba(41, 195, 147, 0.1);
        --app-pattern-top: rgba(111, 227, 180, 0.085);
        --app-pattern-bottom: rgba(111, 227, 180, 0.05);
        --app-surface: rgba(26, 37, 34, 0.92);
        --app-surface-soft: rgba(26, 37, 34, 0.7);
        --app-line: rgba(111, 227, 180, 0.14);
        --app-line-soft: rgba(111, 227, 180, 0.1);
        --app-line-strong: rgba(111, 227, 180, 0.26);
        --app-bar: rgba(10, 19, 17, 0.84);
        --app-accent-soft: rgba(41, 195, 147, 0.1);
        --app-accent-tint: rgba(41, 195, 147, 0.18);
        --app-info: #8cc9e6;
        --app-info-bg: rgba(140, 201, 230, 0.07);
        --app-info-line: rgba(140, 201, 230, 0.16);
        --app-focus: #8cc9e6;
        --app-total-bg: linear-gradient(135deg, rgba(41, 195, 147, 0.22), rgba(26, 37, 34, 0.95) 60%);
        --app-card-tint: rgba(41, 195, 147, 0.04);
        --app-amber-bg: rgba(241, 205, 107, 0.07);
        --app-amber-glow: rgba(241, 205, 107, 0.13);
        --app-amber-line: rgba(241, 205, 107, 0.3);
        --app-thumb-bg: linear-gradient(135deg, rgba(41, 195, 147, 0.25), rgba(140, 201, 230, 0.12));
        --app-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        --app-on-primary: #06231a;
        --app-primary-hover: #33d3a1;
        --app-danger-line: rgba(255, 107, 100, 0.5);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.topbar__brand {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.context-switch {
    display: flex;
    gap: 4px;
    background: var(--color-bg);
    border-radius: 999px;
    padding: 3px;
    flex: 1;
    justify-content: center;
}

.context-switch__btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--color-muted);
    cursor: pointer;
}

.context-switch__btn.is-active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.link-button {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
}

.app-shell {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

.app-shell.has-bottom-nav { padding-bottom: 84px; }

.centered-card {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.card, .onboarding, .balance-card, .quick-link, .point-card, .policy-detail {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card { padding: 20px; width: 100%; margin-bottom: 16px; }
.card__title { margin: 0 0 4px; font-size: 20px; }
.card__subtitle { margin: 0 0 16px; color: var(--color-muted); font-size: 14px; }

.form { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.form__input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    font-size: 16px;
    background: var(--color-bg);
    color: var(--color-text);
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    min-height: 48px;
}

.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--block { width: 100%; margin-top: 12px; }
.btn--small { min-height: 36px; padding: 6px 10px; font-size: 13px; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert--error { background: var(--color-danger-bg); color: var(--color-danger); }
.alert--warning { background: var(--color-warning-bg); color: var(--color-warning-text); }
.alert--success { background: var(--color-success-bg); color: var(--color-success-text); }

.dashboard__greeting { margin: 4px 0 0; font-size: 22px; }
.dashboard__sub { color: var(--color-muted); margin-top: 4px; }

.balance-card { padding: 20px; margin: 16px 0; }
.balance-card__label { font-size: 12px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.balance-card__value { font-size: 32px; font-weight: 700; display: block; }
.balance-card__row { display: flex; gap: 24px; margin-top: 16px; font-size: 16px; font-weight: 600; }

.placeholder-section { margin-top: 20px; color: var(--color-muted); }
.muted { color: var(--color-muted); font-size: 14px; }

.quick-links { display: grid; gap: 12px; margin-top: 16px; }
.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
}
.quick-link.is-disabled { opacity: 0.5; }
.quick-link__icon { font-size: 22px; }

.point-grid { display: grid; gap: 10px; margin: 16px 0; }
.point-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-size: 14px; }
.point-card__num {
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0;
}

.policy-detail { padding: 14px; margin-bottom: 10px; }
.policy-detail summary { cursor: pointer; font-weight: 600; }
.policy-detail__body { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--color-muted); max-height: 240px; overflow-y: auto; }

.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.checkbox-label input { margin-top: 3px; width: 18px; height: 18px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--color-border); }
.invite-link { display: block; word-break: break-all; margin-top: 6px; font-size: 12px; }

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    z-index: 10;
}
.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 11px;
    padding: 6px 0;
    min-height: 48px;
}
.bottom-nav__item.is-active { color: var(--color-primary); font-weight: 700; }
.bottom-nav__item.is-disabled { opacity: 0.4; pointer-events: none; }
.bottom-nav__icon { font-size: 20px; }

.policy-card {
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--color-text);
}
.policy-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-muted);
    border: 1px solid var(--color-border);
}
.badge--warning { background: var(--color-warning-bg); color: var(--color-warning-text); border-color: transparent; }
.badge--success { background: var(--color-success-bg); color: var(--color-success-text); border-color: transparent; }
.badge--danger { background: var(--color-danger-bg); color: var(--color-danger); border-color: transparent; }

.bank-account-no { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fund-actions { display: flex; gap: 10px; margin: 14px 0; }
.fund-actions .btn { flex: 1; }
.balance-card__pending { margin-top: 10px; }
.proof-preview { max-width: 100%; border-radius: 10px; margin: 12px 0; display: block; }
.proof-preview-link { display: inline-block; margin: 12px 0; }

.policy-textarea { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.coverage-box { background: var(--color-bg); border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: 13px; }
.coverage-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.coverage-list li.is-covered { color: var(--color-success-text); }
.coverage-list li.is-missing { color: var(--color-danger); }

.policy-detail__body--full { max-height: none; }

.diff-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    background: var(--color-bg);
    border-radius: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    margin-top: 10px;
}
.diff-line { white-space: pre-wrap; padding: 1px 4px; border-radius: 4px; }
.diff-line--added { background: var(--color-success-bg); color: var(--color-success-text); }
.diff-line--removed { background: var(--color-danger-bg); color: var(--color-danger); text-decoration: line-through; }
.diff-line--same { color: var(--color-muted); }

/* Milestone 3C: Funding Opportunities */
.terms-list { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; margin: 12px 0; font-size: 14px; }
.terms-list dt { color: var(--color-muted); }
.terms-list dd { margin: 0; font-weight: 600; word-break: break-word; }
.opp-card { display: block; padding: 16px; margin-bottom: 12px; text-decoration: none; color: var(--color-text); background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.opp-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); }
.opp-card__title { margin: 6px 0 4px; font-size: 17px; }
.opp-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--color-muted); margin-top: 8px; }
.checklist { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.checklist li.is-error { color: var(--color-danger); }
.checklist li.is-warning { color: var(--color-warning-text); }
.checklist li.is-ok { color: var(--color-success-text); }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; }
.section-title { font-size: 16px; margin: 20px 0 8px; }
.prewrap { white-space: pre-wrap; }

@media (min-width: 600px) {
    .app-shell { max-width: 720px; }
}

/* Milestone 4B.3 — Member allocation: explanations (STATUS → REASON → RULE → NEXT ACTION),
   phase list, progressive disclosure. Meaning is always in the text, never colour alone. */
.explanation { margin: 12px 0; }
.explanation__kind { margin: 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.explanation__title { margin: 4px 0 8px; font-size: 1.1rem; }
.explanation__parts { margin: 0; display: grid; gap: 4px; }
.explanation__parts dt { font-weight: 700; margin-top: 6px; }
.explanation__parts dd { margin: 0; }
.explanation__policy { margin: 8px 0 0; font-size: .85rem; }
.phase-list { padding-left: 1.2rem; margin: 8px 0; }
.phase-list__item { margin-bottom: 10px; }
.phase-list__item.is-current { font-weight: 600; }
.plain-list { padding-left: 1.2rem; }
.guide h3 { font-size: 1rem; margin: 16px 0 4px; }
.guide p { margin: 0 0 8px; }
details > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details > summary:focus-visible, .btn:focus-visible, a:focus-visible, .form__input:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
progress { width: 100%; height: 12px; }

/* Milestone 4B.4C — Pelepasan Alokasi. Key figures are distinguished by
   size/weight and their labels (never by colour alone); lists stay
   readable at phone width without horizontal scrolling. */
.release-figures .figure--key { font-size: 1.1rem; }
.release-figures dd small { font-weight: 400; }
.release-rules { margin: 12px 0; }
.release-rules__max { font-size: 1.05rem; margin: 0 0 8px; }
.release-events { margin: 8px 0; padding-left: 20px; display: grid; gap: 8px; }
.release-events li { word-break: break-word; }

/* ------------------------------------------------------------------
   UX Sprint 1 (audit 4C.19): Member money card, summaries, receipts,
   settled result, touch targets. Mobile-first; no fixed widths.
   ------------------------------------------------------------------ */
.money-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
}
.money-card__label, .result-box__label {
    font-size: 12px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; display: block;
}
.money-card__total { font-size: 32px; font-weight: 700; display: block; line-height: 1.2; overflow-wrap: anywhere; }
.money-card__parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.money-card__part {
    border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; min-width: 0;
}
.money-card__part dt { font-size: 12px; color: var(--color-muted); font-weight: 600; }
.money-card__part dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.money-card__part small { color: var(--color-muted); font-size: 12px; }
.money-card__note { font-size: 13px; color: var(--color-muted); margin: 12px 0 0; }
.money-card__pending { font-size: 13px; color: var(--color-muted); margin: 8px 0 0; }

.summary-list { list-style: none; margin: 0 0 12px; padding: 0; }
.summary-list__item { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.summary-list__item:last-child { border-bottom: 0; }
.summary-list__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.summary-list__meta { font-size: 13px; color: var(--color-muted); margin-top: 4px; }

.allocation-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.allocation-card__head .card__title { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.allocation-card__head .badge { flex-shrink: 0; }
.allocation-card__note { font-size: 13px; color: var(--color-muted); margin: 6px 0 10px; }
.allocation-card__more { margin-top: 10px; }
.allocation-card__more summary, details.card > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

.result-box {
    border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary);
    border-radius: 10px; padding: 12px 14px; margin: 4px 0 12px;
}
.result-box__value { font-size: 26px; font-weight: 700; display: block; overflow-wrap: anywhere; }
.result-box__corrected { font-size: 13px; margin: 8px 0 0; }

.receipt { border-left: 4px solid var(--color-primary); }
.risk-reminder { font-size: 14px; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.risk-reminder ul { margin: 6px 0 0; padding-left: 18px; }
.figure--key { font-weight: 700; }

/* Touch targets: small buttons and the risk checkbox stay comfortably tappable. */
.btn--small { min-height: 44px; }
label.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; }
label.checkbox input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; }
.opp-card__meta { flex-wrap: wrap; }

/* ------------------------------------------------------------------
   UX Sprint 2: Member progress (Alokasi Saya Level 1, journey, stage
   detail, update history). Existing tokens only (light + dark).
   ------------------------------------------------------------------ */
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.badge--pill { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.card-summary { margin: 4px 0 12px; }
.journey { list-style: none; margin: 12px 0 14px; padding: 0; }
.journey__step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; min-height: 44px; }
.journey__step:not(:last-child)::after {
    content: ''; position: absolute; left: 11px; top: 32px; bottom: -6px; width: 2px; background: var(--color-border);
}
.journey__mark {
    width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; border: 2px solid var(--color-border); color: var(--color-muted); background: var(--color-surface);
}
.journey__step--done .journey__mark { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-surface); }
.journey__step--current .journey__mark { border-color: var(--color-warning-text); color: var(--color-warning-text); background: var(--color-warning-bg); }
.journey__body { display: flex; flex-direction: column; min-width: 0; padding-top: 2px; }
.journey__body a { font-weight: 600; }
.journey__step--current .journey__body a, .journey__step--current .journey__body { font-weight: 700; }
.journey__step--upcoming .journey__body a { color: var(--color-muted); font-weight: 500; }
.journey__body small { font-size: 12px; }
.progress-note { font-size: 13px; color: var(--color-muted); border-left: 3px solid var(--color-border); padding-left: 10px; margin: 0 0 14px; }
.stage-title { margin-top: 10px; font-size: 22px; }
.stage-date { color: var(--color-muted); margin: 2px 0 10px; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__date { grid-row: span 2; font-size: 12px; color: var(--color-muted); padding-top: 2px; }
.timeline__title { font-size: 14px; }
.timeline__text { font-size: 13px; color: var(--color-muted); }
.allocation-card .card__title a { color: inherit; text-decoration: none; }
.progress-page a:not(.btn) { color: var(--color-primary); }
.journey__body a { color: var(--color-text); text-decoration: none; }
.journey__step--upcoming .journey__body a { color: var(--color-muted); }
/* Disclosure affordance for summaries styled as flex rows (their native marker is not rendered). */
.allocation-card__more > summary::after, details.card > summary::after { content: '›'; margin-left: auto; font-size: 18px; color: var(--color-muted); transition: transform .15s; }
.allocation-card__more[open] > summary::after, details.card[open] > summary::after { transform: rotate(90deg); }

/* ------------------------------------------------------------------
   UX Sprint 3: Member sign-in, registration and PIN screens. The dark
   tokens are the existing dark-scheme values, applied to these pages
   always (body.theme-dark); pill actions; circular keypad keys.
   ------------------------------------------------------------------ */
/* Member Account Center: also the explicit "Gelap" (data-theme="dark"). theme-dark forces dark only where no theme
   preference is in force (signed-out pages, other contexts); a Member's Terang / Sistem choice applies everywhere. */
:root[data-theme="dark"], :root:not([data-theme]) body.theme-dark {
        --app-bg: #0b1512;
        --app-bg-top: #12261f;
        --app-bg-mid: #0d1c18;
        --app-bg-bottom: #0a1514;
        --app-glow: rgba(41, 195, 147, 0.1);
        --app-pattern-top: rgba(111, 227, 180, 0.085);
        --app-pattern-bottom: rgba(111, 227, 180, 0.05);
        --app-surface: rgba(26, 37, 34, 0.92);
        --app-surface-soft: rgba(26, 37, 34, 0.7);
        --app-line: rgba(111, 227, 180, 0.14);
        --app-line-soft: rgba(111, 227, 180, 0.1);
        --app-line-strong: rgba(111, 227, 180, 0.26);
        --app-bar: rgba(10, 19, 17, 0.84);
        --app-accent-soft: rgba(41, 195, 147, 0.1);
        --app-accent-tint: rgba(41, 195, 147, 0.18);
        --app-info: #8cc9e6;
        --app-info-bg: rgba(140, 201, 230, 0.07);
        --app-info-line: rgba(140, 201, 230, 0.16);
        --app-focus: #8cc9e6;
        --app-total-bg: linear-gradient(135deg, rgba(41, 195, 147, 0.22), rgba(26, 37, 34, 0.95) 60%);
        --app-card-tint: rgba(41, 195, 147, 0.04);
        --app-amber-bg: rgba(241, 205, 107, 0.07);
        --app-amber-glow: rgba(241, 205, 107, 0.13);
        --app-amber-line: rgba(241, 205, 107, 0.3);
        --app-thumb-bg: linear-gradient(135deg, rgba(41, 195, 147, 0.25), rgba(140, 201, 230, 0.12));
        --app-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        --app-on-primary: #06231a;
        --app-primary-hover: #33d3a1;
        --app-danger-line: rgba(255, 107, 100, 0.5);
    --color-bg: #10141a; --color-surface: #1a212b; --color-text: #eef1f4; --color-muted: #9aa4b2;
    --color-primary: #29c393; --color-primary-dark: #1f9e77; --color-border: #2a323d;
    --color-danger: #ff6b64; --color-danger-bg: #3a1c1c; --color-warning-bg: #3a2f10; --color-warning-text: #f1cd6b;
    --color-success-bg: #123425; --color-success-text: #6fe3b4;
}
/* The body of the always-dark pages (and, with a Member theme, whatever the tokens say) — kept at the original
   specificity so the login landing / Member app background (body.auth-landing, body.member-app) still wins. */
body.theme-dark {
    background: var(--color-bg); color: var(--color-text);
}
.auth-screen { max-width: 420px; margin: 0 auto; padding: 24px 0 32px; display: flex; flex-direction: column; gap: 4px; }
.auth-screen a:not(.btn):not(.auth-option):not(.landing-pill):not(.login-switch__option):not(.login-register):not(.login-recovery) { color: var(--color-primary); }
.auth-brand { text-align: center; margin: 8px 0 20px; }
.auth-brand__mark {
    width: 84px; height: 84px; border-radius: 999px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 26px; letter-spacing: 0.04em; color: var(--color-primary);
    border: 2px solid var(--color-primary); background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.auth-brand__name { font-weight: 800; letter-spacing: 0.12em; margin: 0; color: var(--color-primary); }
.auth-brand__subtitle { color: var(--color-muted); font-size: 14px; margin: 6px 0 0; }
.auth-screen__title { font-size: 24px; margin: 4px 0 6px; }
.auth-screen__text { color: var(--color-muted); font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.auth-screen__hint { color: var(--color-muted); font-size: 14px; text-align: center; margin: 16px 0 0; }
.auth-status {
    width: 64px; height: 64px; border-radius: 999px; margin: 8px auto 12px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--color-bg); background: var(--color-primary);
}
.auth-option {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 22px; margin: 6px 0; border-radius: 999px; text-decoration: none;
    border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); min-height: 56px; justify-content: center;
}
.auth-option--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-bg); }
.auth-option__title { font-weight: 700; font-size: 16px; }
.auth-option__text { font-size: 13px; opacity: 0.85; }
.btn--pill { border-radius: 999px; min-height: 52px; display: flex; align-items: center; justify-content: center; }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--color-muted); }
.form__error { color: var(--color-danger); font-size: 13px; margin: 4px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.pin-entry { text-align: center; }
.pin-stage__title { font-size: 18px; margin: 8px 0 2px; }
.pin-stage__subtitle { color: var(--color-muted); font-size: 13px; margin: 0 0 14px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 4px 0 14px; }
.pin-dot { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--color-muted); }
.pin-dot.is-filled { background: var(--color-primary); border-color: var(--color-primary); }
.pin-entry.js-pin .pin-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pin-entry:not(.js-pin) .pin-dots { display: none; }
.pin-input { text-align: center; letter-spacing: 0.5em; font-size: 22px; }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 24px; justify-content: center; margin: 8px 0 6px; }
.keypad[hidden] { display: none; }
.keypad__key {
    width: 72px; height: 72px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface);
    color: var(--color-text); font-size: 26px; font-weight: 600; cursor: pointer;
}
.keypad__key:active { background: color-mix(in srgb, var(--color-primary) 25%, var(--color-surface)); }
.keypad__key--del { font-size: 22px; color: var(--color-muted); }
.pin-mask { font-size: 26px; letter-spacing: 0.3em; margin: 4px 0; }
.pin-mask[data-pin-state="unset"] { font-size: 15px; letter-spacing: normal; font-weight: 600; color: var(--color-muted); }
.registration { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.registration:last-child { border-bottom: 0; }
.registration__actions { display: flex; gap: 8px; margin-top: 8px; }
.registration__actions form { margin: 0; }
.dev-mail__head { font-size: 12px; color: var(--color-muted); }

/* UX Sprint 3.2: Profile — "Perangkat Login". */
.device-list { list-style: none; margin: 8px 0 0; padding: 0; }
.device { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.device:last-child { border-bottom: 0; }
.device__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.device__meta { font-size: 13px; color: var(--color-muted); margin: 4px 0 8px; }
.device form { margin: 0; }
.device-reauth { margin-top: 4px; }

/* ------------------------------------------------------------------
   Login polish (PB-D-085): the Member login LANDING page only
   (body.auth-landing). Dark green gradient, a very low-contrast
   octagonal texture, octagonal PB emblem, one-sentence brand phrase
   with soft initial accents, pill actions. Other pages unchanged.
   Login background alignment: /login/email and /login/pin (the only pages
   with .auth-screen--signin) reuse exactly this approved background, so
   the three sign-in pages read as one experience (CSS only, same values).
   ------------------------------------------------------------------ */
body.auth-landing,
body:has(.auth-screen--signin) {
    background-color: #0b1512;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%2329c393' stroke-opacity='0.055' stroke-width='1'%3E%3Cpolygon points='22,4 42,4 60,22 60,42 42,60 22,60 4,42 4,22'/%3E%3Cpath d='M32 0v4M32 60v4M0 32h4M60 32h4'/%3E%3Crect x='24' y='24' width='16' height='16' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(41, 195, 147, 0.16) 0%, rgba(17, 43, 35, 0.55) 45%, rgba(8, 13, 12, 0) 75%),
        linear-gradient(180deg, #0f1f1a 0%, #0a1311 60%, #070c0b 100%);
    background-attachment: fixed;
}
.landing { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); justify-content: center; gap: 0; padding: 16px 0 24px; }
.landing__brand { text-align: center; margin: 0 0 22px; }
.landing__emblem { display: block; margin: 0 auto 10px; color: var(--color-primary); width: 76px; height: 76px; filter: drop-shadow(0 0 6px rgba(41, 195, 147, 0.18)); }
.landing__emblem text { font-family: inherit; }
.landing__name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0.18em; color: var(--color-primary); }
.landing__tagline { margin: 10px auto 0; max-width: 330px; font-size: 13.5px; line-height: 1.55; color: var(--color-muted); }
.landing__word { white-space: nowrap; }
.landing__initial { font-weight: 700; }
.landing__initial--0 { color: #29c393; }
.landing__initial--1 { color: #6fe3b4; }
.landing__initial--2 { color: #d9bf72; }
.landing__initial--3 { color: #8cc9e6; }
.landing__initial--plain { font-weight: inherit; color: inherit; }
.landing__actions { display: flex; flex-direction: column; gap: 12px; }
.landing-pill {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px 8px 8px;
    border-radius: 999px; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text);
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.landing-pill:active { transform: scale(0.99); }
.landing-pill:focus-visible { outline: 3px solid #8cc9e6; outline-offset: 3px; }
.landing-pill__icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.landing-pill__svg { width: 20px; height: 20px; flex-shrink: 0; }
.landing-pill__body { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.landing-pill__title { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.landing-pill__text { font-size: 12.5px; line-height: 1.3; opacity: 0.85; }
.landing-pill__chevron { width: 18px; height: 18px; flex-shrink: 0; margin-left: auto; opacity: 0.8; }
.landing-pill--primary { background: var(--color-primary); border-color: var(--color-primary); color: #06231a; }
.landing-pill--primary .landing-pill__icon { background: rgba(6, 35, 26, 0.14); }
.landing-pill--primary:hover { background: #33d3a1; border-color: #33d3a1; }
.landing-pill--secondary { background: rgba(26, 37, 34, 0.92); border-color: rgba(111, 227, 180, 0.22); }
.landing-pill--secondary .landing-pill__icon { background: rgba(41, 195, 147, 0.12); color: var(--color-primary); }
.landing-pill--secondary:hover { border-color: rgba(111, 227, 180, 0.45); background: rgba(31, 46, 42, 0.95); }
.landing__hint { text-align: center; color: var(--color-muted); font-size: 14px; margin: 22px 0 10px; }
.landing-pill--outline { justify-content: center; gap: 10px; padding: 8px 18px; min-height: 52px; background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.landing-pill--outline .landing-pill__chevron { margin-left: 0; }
.landing-pill--outline:hover { background: rgba(41, 195, 147, 0.08); }
@media (max-width: 340px) {
    .landing-pill { gap: 10px; padding-right: 12px; }
    .landing-pill__icon { width: 36px; height: 36px; }
    .landing-pill__text { font-size: 12px; }
    .landing__tagline { font-size: 13px; }
}

/* ------------------------------------------------------------------
   Member dashboard polish (body.member-home): mobile-first Beranda —
   same dark family as the login landing (background shared above).
   Existing tokens only; Manager / Supervisor pages unchanged.
   ------------------------------------------------------------------ */
/* Member app shell (body.member-app: Beranda, Akun) — no top header; the page starts with its own content. One content
   grid for content and bottom navigation: the viewport width minus a 16px gutter (iPhone 7 Plus 414px → 382px). Wider
   screens keep the mobile composition: the same 480px column is centred while the background and the navigation
   surface still span the viewport. */
body.member-app {
    --app-max: 480px;
    --app-gutter: 16px;
    --app-edge: max(var(--app-gutter), calc((100% - var(--app-max)) / 2 + var(--app-gutter)));
    --app-nav-h: 60px;
}
body.member-app .app-shell {
    max-width: none; margin: 0; min-height: 0;
    padding: max(16px, env(safe-area-inset-top)) max(var(--app-edge), env(safe-area-inset-right)) calc(var(--app-nav-h) + 24px + env(safe-area-inset-bottom)) max(var(--app-edge), env(safe-area-inset-left));
}
/* Member bottom navigation: five equal columns (Beranda · Peluang · Dana · Alokasi · Akun) on every Member page. */
.bottom-nav--member { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bottom-nav--member .bottom-nav__item { min-width: 0; justify-content: center; text-align: center; white-space: nowrap; }
/* In the app shell: full-width surface, items between the same edges as the content. */
body.member-app .bottom-nav {
    padding: 4px var(--app-edge) max(4px, env(safe-area-inset-bottom));
    background: var(--app-bar); border-top-color: var(--app-line-soft);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
body.member-app .bottom-nav__item { min-height: 52px; height: 52px; padding: 0; font-size: 11.5px; border-radius: 12px; }
body.member-app .bottom-nav__item.is-active { background: var(--app-accent-soft); }
body.member-app .bottom-nav__item:focus-visible { outline: 3px solid var(--app-focus); outline-offset: -3px; }
.bottom-nav__svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }
.home-icon { width: 22px; height: 22px; flex-shrink: 0; }
.home-icon--small { width: 18px; height: 18px; }
.home-icon--tiny { width: 15px; height: 15px; }
.home-icon--accent { color: var(--color-primary); }
.home__hello { margin: 0 0 14px; }
.home__welcome { margin: 0; color: var(--color-muted); font-size: 13.5px; }
.home__name { margin: 1px 0 0; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.home__since { margin: 2px 0 0; color: var(--color-muted); font-size: 12.5px; }
.home-total {
    display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 22px; text-decoration: none; color: var(--color-text);
    background: var(--app-total-bg);
    border: 1px solid var(--app-line-strong); box-shadow: var(--app-shadow); min-height: 80px;
}
.home-total:focus-visible, .home-opp:focus-visible, .home-cta:focus-visible, .home-link:focus-visible, .home-section__link:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 3px; }
.home-total__icon {
    width: 46px; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--app-accent-tint); color: var(--color-primary);
}
.home-total__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.home-total__label { font-size: 13px; color: var(--color-muted); }
.home-total__value { font-size: clamp(22px, 7vw, 30px); letter-spacing: -0.01em; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.home-total__chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-muted); }
.home-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.home-split__card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.home-split__head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-muted); }
.home-split__head .home-icon { color: var(--app-info); }
.home-split__value { display: block; margin-top: 4px; font-size: clamp(15px, 4.3vw, 17.5px); font-weight: 700; overflow-wrap: anywhere; }
.home-info {
    display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 14px; margin: 0 0 12px;
    background: var(--app-info-bg); border: 1px solid var(--app-info-line); color: var(--app-info);
}
.home-info__text { margin: 0; font-size: 12px; line-height: 1.45; color: var(--color-muted); }
.home-info__text + .home-info__text { margin-top: 6px; }
.home-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; text-decoration: none;
    background: var(--color-primary); color: var(--app-on-primary); font-weight: 700; font-size: 15.5px; margin: 0 0 18px;
}
.home-cta:hover { background: var(--app-primary-hover); }
.home-section { margin: 0 0 16px; }
.home-section__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 6px; }
.home-section__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.home-section__link {
    display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px; color: var(--color-primary); text-decoration: none;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.home-opp {
    display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; text-decoration: none; color: var(--color-text);
    background: var(--app-surface); border: 1px solid var(--app-line); margin: 0 0 8px; min-height: 72px;
}
.home-opp__thumb {
    width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--app-thumb-bg); color: var(--color-primary);
}
.home-opp__body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.home-opp__title { font-weight: 700; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.home-opp__badges { margin: 2px 0; }
.home-opp__meta { font-size: 12px; color: var(--color-muted); }
.home-empty { padding: 14px; border-radius: 16px; border: 1px dashed var(--app-line-strong); text-align: center; }
.home-empty p { margin: 0; }
.home-empty p + p { margin-top: 4px; font-size: 13px; }
.home-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 4px 14px 8px; }
.home-card__subtitle { margin: 0 0 2px; font-size: 12.5px; color: var(--color-muted); }
.home-alloc { list-style: none; margin: 0; padding: 0; }
.home-alloc__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 0; }
.home-alloc__item + .home-alloc__item { border-top: 1px solid var(--app-line-soft); }
.home-alloc__body { display: flex; flex-direction: column; min-width: 0; }
.home-alloc__title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-alloc__amount { font-size: 12.5px; color: var(--color-muted); }
.home-alloc__item .badge { flex-shrink: 0; }
.home-link {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; margin: 0 0 8px;
    border-radius: 16px; text-decoration: none; color: var(--color-text); background: var(--app-surface-soft); border: 1px solid var(--app-line-soft);
}
/* Akun — Member Account Center: summary rows (simple on the surface), details one tap away. Tokens only, so the same
   rules serve Gelap, Terang and Sistem. */
.account__title { margin: 0 0 14px; font-size: 22px; }
.account-section { margin: 0 0 16px; }
.account-section__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.account-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 14px; margin: 0 0 10px; }
/* Profil Saya card only: a very faint diagonal tint in the direction and hue of the dashboard Total Dana card (border,
   size, spacing and text unchanged). */
.account-section[data-section="profil"] .account-card { background: linear-gradient(135deg, var(--app-card-tint), transparent 62%), var(--app-surface); }
.account-card__title { margin: 0 0 4px; font-size: 16px; }
.account-card .muted { font-size: 13px; }
.account-identity { display: flex; align-items: center; gap: 12px; }
.account-identity__avatar {
    width: 46px; height: 46px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--app-accent-tint); color: var(--color-primary);
}
.account-identity__body { display: flex; flex-direction: column; min-width: 0; }
.account-identity__name { font-size: 16px; overflow-wrap: anywhere; }
.account-identity__email { font-size: 13px; color: var(--color-muted); overflow-wrap: anywhere; }
.account-terms { margin: 12px 0 0; font-size: 13.5px; }
.account-list { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; overflow: hidden; }
.account-row {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; margin: 0; cursor: pointer;
    font: inherit; text-align: left; text-decoration: none; color: var(--color-text); background: transparent; border: 0;
}
.account-row + .account-row { border-top: 1px solid var(--app-line-soft); }
.account-row:hover { background: var(--app-accent-soft); }
.account-row:focus-visible { outline: 3px solid var(--app-focus); outline-offset: -3px; }
.account-row__icon {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--app-accent-soft); color: var(--color-primary);
}
.account-row__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-row__value { flex-shrink: 0; font-size: 13px; color: var(--color-muted); white-space: nowrap; }
.account-row__chevron { color: var(--color-muted); }
.account-mode__option.is-active { background: var(--app-accent-soft); cursor: default; }
.account-mode__option .badge { flex-shrink: 0; white-space: nowrap; }
.account-theme { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 8px 8px 14px; }
.account-theme__label { font-size: 15px; font-weight: 600; }
.account-theme__hint { flex-basis: 100%; margin: 0 6px 2px 0; font-size: 12.5px; color: var(--color-muted); }
.segmented {
    flex: 1 1 200px; max-width: 280px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px;
    border-radius: 999px; background: var(--app-accent-soft); border: 1px solid var(--app-line);
}
.segmented__option {
    min-width: 0; min-height: 44px; padding: 0 8px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 600; color: var(--color-muted); background: transparent;
}
.segmented__option.is-active { background: var(--color-primary); color: var(--app-on-primary); }
.segmented__option:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 1px; }
.account-back {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 0 -4px; padding: 0 4px;
    color: var(--color-primary); text-decoration: none; font-size: 14px; font-weight: 600;
}
.account-back:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 0; border-radius: 8px; }
.account-password .form__input { margin-bottom: 10px; }
.account-password .form__input[aria-invalid="true"] { border-color: var(--color-danger); }
.account-password__hint { margin: -6px 0 10px; font-size: 12.5px; color: var(--color-muted); }
.account-password .btn { margin-top: 4px; }
.account-note { margin: 2px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--color-muted); }
/* Perangkat Login (multi-device): one row per device; details (dates, Cabut akses) one tap away in a native <details>. */
.account-note--lead { margin: -4px 2px 12px; }
.account .device-list { margin: 0; }
.account .device { padding: 0; }
.account .device + .device { border-top: 1px solid var(--app-line-soft); }
.device__summary {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; cursor: pointer; list-style: none;
}
.device__summary::-webkit-details-marker { display: none; }
.device__summary:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 10px; }
.device__icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--app-accent-soft); color: var(--color-primary);
}
.device__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.device__name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.device__name .badge { margin-left: 4px; vertical-align: 1px; }
.device__browser { font-size: 13px; color: var(--color-muted); }
.device__status { font-size: 12.5px; color: var(--color-success-text); }
.device__chevron { color: var(--color-muted); transition: transform .15s ease; }
.device__details[open] .device__chevron { transform: rotate(90deg); }
.device__more { padding: 0 0 12px 48px; }
.device__more .device__meta { margin: 0 0 8px; }
.device__hint { margin: 0; font-size: 12.5px; color: var(--color-muted); }
.device__revoke { min-height: 44px; color: var(--color-danger); border-color: var(--app-danger-line); background: transparent; }
.device-add .muted { font-size: 13px; }
.device-add .btn { margin-top: 10px; }
.device-add--link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; text-decoration: none; color: var(--color-text); }
@media (max-width: 340px) {
    .device__more { padding-left: 0; }
}
.account-logout { margin: 20px 0 0; }
.account-logout__btn { color: var(--color-danger); border-color: var(--app-danger-line); background: transparent; }
.account-logout__btn:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
@media (max-width: 340px) {
    .bottom-nav--member .bottom-nav__item { font-size: 10.5px; }
    .home-total__icon { display: none; }
    .home-split__value { font-size: 15px; }
    .home-split__card { padding: 10px; }
}

/* ------------------------------------------------------------------
   Global Member background (body.member-surface — every page of the
   Member context). ONE system, defined once:
   1. base colour  2. page-length vertical depth gradient (lighter top,
   deeper bottom; a soft glow at the very top)  3. one seamless SVG tile
   (img/member-pattern.svg, 96 px, used as a mask) on its own layer, so
   the pattern has its own visibility (top → bottom fade) independent of
   the gradient. Colours come only from the theme tokens (Gelap / Terang /
   Sistem). Background only: no component changes.
   ------------------------------------------------------------------ */
body.member-surface {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--app-bg);
    background-image:
        radial-gradient(120% 420px at 50% 0%, var(--app-glow), transparent 75%),
        linear-gradient(180deg, var(--app-bg-top) 0%, var(--app-bg-mid) 45%, var(--app-bg-bottom) 100%);
    background-repeat: no-repeat;
    background-attachment: scroll;
}
body.member-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(180deg, var(--app-pattern-top), var(--app-pattern-bottom));
    -webkit-mask-image: url("../img/member-pattern.svg");
    mask-image: url("../img/member-pattern.svg");
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 96px 96px;
    mask-size: 96px 96px;
    -webkit-mask-position: center top;
    mask-position: center top;
}
/* Overscroll / rubber-band area beyond the page uses the deepest tone (no plain band). */
html:has(> body.member-surface) { background-color: var(--app-bg-bottom); }
/* The Member navigation on every Member page: the same surface as in the app shell. */
body.member-surface .bottom-nav {
    background: var(--app-bar);
    border-top-color: var(--app-line-soft);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* ------------------------------------------------------------------
   Login hierarchy polish (/login/email, /login/pin only — opt-in via
   .auth-screen--signin): one continuous flow on one centred axis.
   Compact brand → title + supporting text as ONE introduction → form /
   keypad → primary action → other sign-in method → links. No card, no
   panel, no new colours (existing tokens), backgrounds unchanged.
   ------------------------------------------------------------------ */
.auth-screen--signin { gap: 0; padding: 20px 0 24px; }
.auth-screen--signin .auth-brand { margin: 4px 0 18px; }
.auth-screen--signin .auth-brand__mark { width: 56px; height: 56px; margin-bottom: 8px; font-size: 19px; border-width: 1.5px; }
.auth-screen--signin .auth-brand__name { font-size: 13px; letter-spacing: 0.16em; }
.auth-intro { margin: 0 0 20px; text-align: center; }
.auth-intro .auth-screen__title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.auth-intro__text { max-width: 320px; margin: 0 auto; font-size: 13.5px; line-height: 1.5; color: var(--color-muted); }
.auth-intro__account { font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
.auth-screen--signin .alert { margin: 0 0 14px; }
.auth-screen--signin .form .form__label:first-of-type { margin-top: 0; }
.auth-screen--signin .form > .btn--primary { margin-top: 14px; }
.auth-screen--signin > .btn { margin-top: 12px; }
.auth-screen--signin > .btn:first-of-type:not(.btn--outline) { margin-top: 0; }
.auth-screen--signin .auth-screen__hint { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 4px; margin: 8px 0 0; }
.auth-screen--signin .auth-screen__hint a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
/* PIN: "Masukkan PIN" is the keypad's instruction, directly above the indicators — not a section heading. */
.auth-screen--signin .pin-stage__title { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--color-text); }
.auth-screen--signin .pin-stage__subtitle { margin: 0 0 12px; font-size: 12.5px; }
.auth-screen--signin .pin-dots { margin: 0 0 18px; }
.auth-screen--signin .keypad { gap: 12px 24px; margin: 0 0 16px; }
/* Login brand mark consistency: /login/email and /login/pin show the same approved emblem as /login (auth/_emblem,
   .landing__emblem), scaled to their compact brand size; the round .auth-brand__mark stays for the other auth pages. */
.auth-screen--signin .landing__emblem { width: 56px; height: 56px; margin-bottom: 8px; }

/* ------------------------------------------------------------------
   Peluang polish (/peluang, /peluang/{id} — .opp-page). Tokens only.
   List rows flat; on the detail page ONE primary surface (the funding
   summary, subtle 135° token tint — DEVELOPMENT.md §62); the round limit
   in soft translucent amber; the amount form is the primary action.
   No Opportunity image exists: the image slot is the neutral tile.
   ------------------------------------------------------------------ */
.opp-page .card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; box-shadow: none; }
.opp-page .section-title { margin: 18px 0 8px; }
.opp-page__empty { margin: 0 0 8px; }
.opp-page__foot { margin-top: 16px; font-size: 13px; }
.opp-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px 12px 12px; margin: 0 0 10px; border-radius: 16px;
    text-decoration: none; color: var(--color-text); background: var(--app-surface); border: 1px solid var(--app-line);
}
.opp-item:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 3px; }
/* Opportunity visual: the photo when one exists (it covers this), otherwise the ONE default visual
   (img/opportunity-default.svg, 1.2 KB). */
.opp-visual { display: block; position: relative; overflow: hidden; background: var(--app-bg-bottom) url("../img/opportunity-default.svg") center / cover no-repeat; }
.opp-visual__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.opp-item__visual { width: 80px; height: 80px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--app-line); background-position: right center; } /* the square crop keeps the default visual octagon centred */
.opp-page a:not(.opp-item):not(.btn) { color: var(--color-primary); }
.opp-hero { width: 100%; aspect-ratio: 2 / 1; max-height: 220px; margin: 0 0 12px; border-radius: 20px; border: 1px solid var(--app-line-strong); }
.opp-page__title { margin: 0 0 4px; font-size: 22px; }
.opp-page__sub { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--color-muted); }
.opp-item__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.opp-item__code { font-size: 11.5px; color: var(--color-muted); letter-spacing: 0.02em; }
.opp-item__title { font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.opp-item__badges { margin: 2px 0 4px; }
.opp-item__meta { font-size: 12.5px; color: var(--color-muted); }
.opp-item__when { font-size: 12px; color: var(--color-muted); }
.opp-item__note { font-size: 12px; color: var(--color-muted); }
.opp-bar {
    -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden;
    background: var(--app-accent-soft); color: var(--color-primary);
}
.opp-bar::-webkit-progress-bar { background: var(--app-accent-soft); border-radius: 999px; }
.opp-bar::-webkit-progress-value { background: var(--color-primary); border-radius: 999px; }
.opp-bar::-moz-progress-bar { background: var(--color-primary); border-radius: 999px; }

.opp-head { margin: 0 0 14px; }
.opp-head__body { min-width: 0; }
.opp-head__code { margin: 0; font-size: 12px; color: var(--color-muted); }
.opp-head__title { margin: 2px 0 6px; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.opp-summary { padding: 16px; background: linear-gradient(135deg, var(--app-card-tint), transparent 62%), var(--app-surface); }
.opp-summary__label { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--color-muted); }
.opp-summary__amount { margin: 0 0 8px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.opp-summary__progress { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.opp-summary__progress .opp-bar { height: 8px; }
.opp-summary__percent { font-size: 13px; font-weight: 600; color: var(--color-primary); }
.opp-summary__note { margin: 8px 0 0; font-size: 13px; }
.opp-rows { margin: 0; }
.opp-rows__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--app-line-soft); font-size: 13.5px; }
.opp-rows__row dt { color: var(--color-muted); }
.opp-rows__row dd { margin: 0; text-align: right; font-weight: 600; }
.opp-detail__summary { margin: 8px 0 0; font-size: 14px; color: var(--color-muted); line-height: 1.5; } /* in the hero header */

.opp-alloc .card__title { font-size: 18px; margin-bottom: 10px; }
/* The round limit is information, not a warning: flat translucent amber, subtle border, small icon, compact rows. */
.opp-limit {
    display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px;
    background: var(--app-amber-bg); border: 1px solid var(--app-amber-line);
}
.opp-limit__icon { color: var(--color-warning-text); flex-shrink: 0; padding-top: 1px; }
.opp-limit__body { min-width: 0; flex: 1; }
.opp-limit__title { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; color: var(--color-text); }
.opp-limit__text { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--color-muted); }
.opp-limit__rows { margin: 0; }
.opp-limit__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; font-size: 12.5px; }
.opp-limit__row dt { color: var(--color-muted); }
.opp-limit__row dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.opp-limit__row--key dt { color: var(--color-text); }
.opp-limit__row--key dd { font-size: 16px; font-weight: 800; color: var(--color-text); }
.opp-alloc__form { margin: 0 0 12px; }
.opp-alloc__form .btn { margin-top: 6px; }
/* Detail Peluang UX refinement — simple on the surface, detailed underneath. Native <details> only (no script): a
   heading or label in the <summary>, a "›" chevron turning when open. Flat: no tint, no shadow, no pills. */
.opp-alloc__more { margin: 0; border-top: 1px solid var(--app-line-soft); }
.opp-alloc__more > summary, .opp-risk__more > summary, .opp-more > summary {
    display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0; cursor: pointer; list-style: none; font-weight: 600;
}
.opp-alloc__more > summary::-webkit-details-marker, .opp-risk__more > summary::-webkit-details-marker, .opp-more > summary::-webkit-details-marker { display: none; }
.opp-alloc__more > summary::after, .opp-risk__more > summary::after { content: '›'; margin-left: auto; font-size: 18px; color: var(--color-muted); }
.opp-alloc__more[open] > summary::after, .opp-risk__more[open] > summary::after { transform: rotate(90deg); }
.opp-alloc__more > summary:focus-visible, .opp-risk__more > summary:focus-visible, .opp-more > summary:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 8px; }
.opp-alloc__more[open] { padding-bottom: 6px; }
/* The compact risk gate (both states): title, one line, the statement one tap away, then the control when needed. */
.opp-page .opp-risk { padding: 14px 16px 8px; margin-bottom: 12px; }
.opp-risk__title { margin: 0; font-size: 16px; }
.opp-risk__lead { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.opp-risk__short { margin: 4px 0 0; font-size: 13.5px; color: var(--color-muted); }
/* Accepted: one row — the title, "Pernyataan risiko telah disetujui", a small status pill and the chevron. */
.opp-page .opp-risk--accepted { padding: 4px 16px; }
.opp-risk--accepted .opp-risk__more { border-top: 0; margin-top: 0; }
.opp-risk--accepted .opp-risk__more > summary { min-height: 56px; color: var(--color-text); font-weight: 400; }
.opp-risk__label { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.opp-risk--accepted .opp-risk__title { font-size: 12.5px; font-weight: 600; color: var(--color-muted); }
.opp-risk__state { font-size: 14.5px; font-weight: 600; }
.opp-risk--accepted .badge { flex-shrink: 0; }
.opp-risk--accepted .opp-risk__more[open] { padding-bottom: 8px; }
.opp-risk .alert { margin: 8px 0; }
.opp-risk__more { border-top: 1px solid var(--app-line-soft); margin-top: 8px; }
.opp-risk__more > summary { font-size: 14px; color: var(--color-primary); }
.opp-risk__more .checklist { margin: 0 0 10px; }
.opp-risk__form { padding: 2px 0 8px; }
.opp-risk__form label.checkbox { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.opp-risk__form .btn { margin-top: 12px; }
/* Micro refinement: the expected gated state of the allocation card — one quiet line, not a red panel. */
.opp-gated { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; background: var(--app-surface-soft); border: 1px solid var(--app-line); }
.opp-gated__icon { color: var(--color-muted); flex-shrink: 0; padding-top: 1px; }
.opp-gated__body { min-width: 0; }
.opp-gated__title { margin: 0; font-size: 14px; font-weight: 700; }
.opp-gated__text { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.opp-more__link { margin: 12px 0 0; font-size: 13.5px; }
/* Supporting detail: one flat card per section, collapsed; the heading is the tap target. */
.opp-page .opp-more { padding: 0 16px; margin-bottom: 10px; }
.opp-more > summary { min-height: 52px; }
.opp-more > summary .card__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.opp-more[open] { padding-bottom: 14px; }
.opp-more[open] > summary { margin-bottom: 4px; }
@media (max-width: 340px) {
    .opp-item__visual { width: 64px; height: 64px; }
    .opp-limit__row { flex-direction: column; gap: 0; }
    .opp-limit__row dd { text-align: left; }
}

/* ------------------------------------------------------------------
   Unified login (/login, .login): approved brand → one Email | PIN pill
   switch → the chosen method → a soft amber "Daftar Sekarang" cue.
   Tokens only; the approved login background (body.auth-landing).
   ------------------------------------------------------------------ */
.login .landing__brand { margin: 0 0 18px; }
.login .alert { margin: 0 0 12px; }
.login-switch {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 18px;
    border-radius: 999px; background: var(--app-surface-soft); border: 1px solid var(--app-line);
}
.login-switch__option {
    display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
    text-decoration: none; font-size: 15px; font-weight: 600; color: var(--color-muted);
}
.login-switch__option.is-active { background: var(--color-primary); color: var(--app-on-primary); font-weight: 700; }
.login-switch__option:focus-visible, .login-register:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
/* Final polish: both panels share one grid cell; the inactive one keeps its size invisibly (no layout jump). */
.login-panels { display: grid; }
.login-panels > .login-panel { grid-area: 1 / 1; min-width: 0; }
.login-panels > .login-panel[hidden] { display: block; visibility: hidden; }
.login-form .form__label { margin: 6px 0 0 18px; }
.login-form .form__label:first-of-type { margin-top: 0; }
.login-form .form__input:not(.pin-input) {
    min-height: 50px; padding: 0 20px; border-radius: 999px; background: var(--app-surface); border: 1px solid var(--app-line); color: var(--color-text);
}
.login-form > .btn { margin-top: 14px; }
.login-note { margin: 0 0 12px; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--color-muted); }
.login-account { margin: 0 0 12px; text-align: center; font-size: 13px; color: var(--color-muted); }
.login-account__email { font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
.login .pin-dots { margin: 0 0 16px; }
.login .keypad { gap: 12px 24px; margin: 0 0 4px; }
.login-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; padding-top: 4px; padding-bottom: 4px; }
.login-error > span { padding: 8px 0; }
.login-error .login-recovery { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: inherit; text-decoration: underline; white-space: nowrap; }
.login-register {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; margin: 18px 0 0; padding: 0 16px 0 20px;
    border-radius: 999px; text-decoration: none; color: var(--color-text);
    background: radial-gradient(120% 160% at 0% 0%, var(--app-amber-glow), transparent 60%), var(--app-amber-bg); border: 1px solid var(--app-amber-line);
}
.login-register__hint { font-size: 13.5px; color: var(--color-muted); }
.login-register__action { display: inline-flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 700; color: var(--color-warning-text); white-space: nowrap; }
/* Unified login — fit the PIN mode (brand + switch + keypad + registration cue) in a 736 px-high screen without
   shrinking the keypad or the approved mark: login-only spacing. */
body:has(.login) .app-shell { padding-top: 8px; padding-bottom: 8px; }
.login.landing { padding: 8px 0 12px; }
.login .landing__brand { margin-bottom: 14px; }
.login-switch { margin-bottom: 14px; }
.login-account { margin-bottom: 8px; }
.login .pin-dots { margin-bottom: 12px; }
.login .keypad { row-gap: 10px; margin-bottom: 0; }
.login-register { margin-top: 14px; }
.login-register__hint { white-space: nowrap; }
@media (max-width: 340px) {
    .login-register { padding: 0 12px 0 16px; }
    .login-register__hint { font-size: 12.5px; }
    .login-register__action { font-size: 13.5px; }
}
/* Unified login — final polish: one composition. The page is a full-height column: the main block (brand, switch,
   panels — constant height in both modes) is centred, the registration cue is anchored at the bottom as the footer. */
.login.landing { justify-content: flex-start; min-height: calc(100vh - 16px); min-height: calc(100dvh - 16px); }
.login-main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.login-register { flex-shrink: 0; margin: 20px 0 4px; }
/* Email: Password + a compact OK submit, one control row as wide as the Email field. */
.login-password { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.login-ok {
    width: 56px; height: 50px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; background: var(--color-primary); color: var(--app-on-primary);
}
.login-ok:hover { background: var(--app-primary-hover); }
.login-ok:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
/* Unified login — short screens (height < 700 px, e.g. 320 × 640): the same composition, compacted so the footer stays
   on screen; the keypad keys stay comfortable (≥ 56 px). */
@media (max-height: 700px) {
    .login .landing__emblem { width: 56px; height: 56px; margin-bottom: 6px; }
    .login .landing__name { font-size: 19px; }
    .login .landing__tagline { margin-top: 6px; font-size: 12.5px; }
    .login .landing__brand { margin-bottom: 10px; }
    .login-switch { margin-bottom: 10px; }
    .login .pin-dots { margin-bottom: 8px; }
    .login .keypad { grid-template-columns: repeat(3, 60px); gap: 8px 22px; }
    .login .keypad__key { width: 60px; height: 60px; font-size: 23px; }
    .login-register { margin-top: 12px; }
}
@media (max-height: 600px) {
    .login .keypad { grid-template-columns: repeat(3, 56px); gap: 6px 22px; }
    .login .keypad__key { width: 56px; height: 56px; font-size: 22px; }
    .login .landing__tagline { display: none; }
}

/* ------------------------------------------------------------------
   Member Dana V2 (/dana, .dana): Total Dana is the ONE primary gradient
   surface (the Dashboard's --app-total-bg, DEVELOPMENT.md §62); Hasil
   Diterima a flat card with a muted-amber Bulan | Tahun selector (a
   selector, never an action); true pill actions (teal primary, dark
   secondary); history collapsed. Tokens only; no script.
   ------------------------------------------------------------------ */
.dana__title { margin: 4px 0 12px; font-size: 22px; }
.dana .card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 18px; box-shadow: none; }
.dana-total {
    padding: 16px 16px 6px; margin: 0 0 12px; border-radius: 22px; color: var(--color-text);
    background: var(--app-total-bg); border: 1px solid var(--app-line-strong); box-shadow: var(--app-shadow);
}
.dana-total__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.dana-total__value { margin: 2px 0 8px; font-size: clamp(26px, 8.4vw, 34px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; overflow-wrap: anywhere; }
.dana-rows { margin: 0; }
.dana-rows__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--app-line-soft); font-size: 14.5px; }
.dana-rows__row dt { color: var(--color-muted); }
.dana-rows__row dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.dana-rows__link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--color-text); text-decoration: none; }
.dana-rows__link .home-icon { color: var(--color-muted); }
.dana-rows__link:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 8px; }
.dana-total__notes { padding: 8px 0 8px; border-top: 1px solid var(--app-line-soft); }
.dana-total__notes p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--color-muted); }
.dana-total__notes p + p { margin-top: 4px; }

.dana .dana-result { padding: 16px; margin: 0 0 14px; }
.dana-result__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-muted); }
.dana-result__value { margin: 2px 0 2px; font-size: clamp(22px, 6.6vw, 27px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.dana-result__hint { margin: 0 0 12px; font-size: 13px; color: var(--color-muted); }
/* Bulan | Tahun: a segmented selector in muted amber — clearly not the teal action. */
.dana-seg {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 10px;
    border-radius: 999px; background: var(--app-amber-bg); border: 1px solid var(--app-amber-line);
}
.dana-seg__opt {
    display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 999px;
    text-decoration: none; font-size: 14px; font-weight: 600; color: var(--color-muted);
}
.dana-seg__opt.is-active { background: var(--app-amber-glow); color: var(--color-warning-text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--app-amber-line); }
.dana-seg__opt:focus-visible, .dana-period__nav:focus-visible, .dana-months__row:focus-visible, .dana-btn:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
.dana-period { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; margin: 0 0 4px; }
.dana-period__label { text-align: center; font-size: 15px; font-weight: 700; }
.dana-period__nav {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
    text-decoration: none; font-size: 22px; line-height: 1; color: var(--color-text);
}
.dana-period__nav:hover { background: var(--app-accent-soft); }
.dana-period__nav.is-disabled { color: var(--app-line-strong); }
.dana-result__empty { margin: 2px 0 8px; text-align: center; font-size: 13px; color: var(--color-muted); }
.dana-months { list-style: none; margin: 0; padding: 0; }
.dana-months__row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px;
    border-top: 1px solid var(--app-line-soft); text-decoration: none; color: var(--color-text); font-size: 14px;
}
.dana-months__row.is-selected { background: var(--app-accent-soft); border-radius: 10px; border-top-color: transparent; font-weight: 700; }
.dana-months__value { font-weight: 700; white-space: nowrap; }
.dana-result__note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--color-muted); }

/* True pill actions: equal height; side by side, stacked only when too narrow. */
.dana-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.dana-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 14px; border-radius: 999px;
    text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap;
}
.dana-btn--primary { background: var(--color-primary); color: var(--app-on-primary); }
.dana-btn--primary:hover { background: var(--app-primary-hover); }
.dana-btn--secondary { background: var(--app-surface); color: var(--color-text); border: 1px solid var(--app-line-strong); }
.dana-btn--secondary:hover { background: var(--app-accent-soft); }
@media (max-width: 339px) {
    .dana-actions { grid-template-columns: minmax(0, 1fr); }
}

/* History: one flat card per list, collapsed; the heading is the tap target. */
.dana .dana-more { padding: 0 16px; margin: 0 0 10px; }
.dana-more > summary { min-height: 52px; list-style: none; }
.dana-more > summary::-webkit-details-marker { display: none; }
.dana-more > summary .card__title { margin: 0; font-size: 15px; font-weight: 600; }
.dana-more > summary:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 8px; }
.dana-more[open] { padding-bottom: 12px; }
.dana-more .table { width: 100%; font-size: 13px; }
.dana-more .table a { color: var(--color-primary); }

/* ------------------------------------------------------------------
   Administrator shell (PB-D-088): desktop-only, detail-oriented. Tokens only.
   ------------------------------------------------------------------ */
body.admin-desktop .app-shell { max-width: 1180px; margin: 0 auto; padding: 24px 28px 48px; }
@media (max-width: 900px) { body.admin-desktop .app-shell { padding: 16px 14px 40px; } }
.admin-page { width: 100%; }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 8px; }
.admin-page h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.admin-head__meta { margin: 0; font-size: 13px; color: var(--color-muted); }
.admin-head__meta strong { color: var(--color-text); }
.admin-note { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--color-muted); max-width: 78ch; }
.admin-nav { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--app-line, var(--color-border)); overflow-x: auto; white-space: nowrap; }
.admin-nav a { padding: 8px 14px; text-decoration: none; color: var(--color-muted); border-bottom: 2px solid transparent; font-weight: 600; font-size: 14px; }
.admin-nav a:hover { color: var(--color-text); }
.admin-nav a.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.admin-nav a:focus-visible, .admin-fold > summary:focus-visible, .audit-detail > summary:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 6px; }

/* Cards: the Member surface (surface token, soft line, same radius / shadow). */
.admin-card { background: var(--color-surface); border: 1px solid var(--app-line, var(--color-border)); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 16px; }
.admin-card--accent { border-left: 3px solid var(--color-primary); }
.admin-card--danger { border-color: var(--app-danger-line, var(--color-danger)); }
.admin-card--flush { padding: 0; overflow: hidden; }
.admin-card__title { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-card__subtitle { margin: 14px 0 4px; font-size: 14px; }
.admin-card__hint { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--color-muted); }

/* Tables: quiet header, soft rows, scrolls sideways on narrow screens instead of breaking the page. */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.admin-table th { padding: 10px 14px; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); background: var(--app-accent-soft, transparent); border-bottom: 1px solid var(--app-line-soft, var(--color-border)); }
.admin-table td { padding: 12px 14px; vertical-align: middle; overflow-wrap: break-word; border-bottom: 1px solid var(--app-line-soft, var(--color-border)); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--app-accent-soft, transparent); }
.admin-card:not(.admin-card--flush) .admin-table-wrap { border: 1px solid var(--app-line-soft, var(--color-border)); border-radius: 10px; margin-bottom: 8px; }
.admin-table .nowrap, .nowrap { white-space: nowrap; }
.admin-table .badge { white-space: nowrap; }
.admin-table--users { min-width: 880px; }
.admin-table--users td:nth-child(-n+4) { white-space: nowrap; }
.admin-table--audit { min-width: 860px; }
.badge--role { margin: 0 4px 4px 0; background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }

/* Actions: compact buttons on one wrapping row; small confirmation checkboxes in the theme accent. */
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.admin-actions form { margin: 0; }
.admin-table .btn--small, .admin-actions .btn--small { min-height: 32px; padding: 4px 10px; font-size: 12px; }
.btn--danger-outline { background: transparent; border-color: var(--app-danger-line, var(--color-danger)); color: var(--color-danger); }
.admin-confirm, .admin-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.admin-confirm { font-size: 12px; color: var(--color-muted); }
.admin-toggle { font-size: 14px; font-weight: 600; }
.admin-confirm input, .admin-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--color-primary); }

/* Forms: two columns on desktop, one on small screens. */
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.admin-form__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-form__wide, .admin-form__actions { grid-column: 1 / -1; }
.admin-form__actions { display: flex; margin-top: 8px; }
.admin-form--inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.admin-form--inline .admin-form__actions { grid-column: auto; margin-top: 0; }
.admin-form .form__input { padding: 10px 12px; font-size: 15px; }
.admin-field-note { margin: 2px 0 0; font-size: 12px; color: var(--color-muted); }
.admin-field-note.is-ok::before { content: "\2713\00a0"; color: var(--color-primary); }
@media (max-width: 720px) { .admin-form, .admin-form--inline { grid-template-columns: 1fr; } .admin-form .admin-form__actions .btn { width: 100%; } }
.admin-fold { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--app-line-soft, var(--color-border)); }
.admin-fold > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--color-primary); }
.admin-fold[open] > summary { margin-bottom: 8px; }

/* Candidate rows stack on small screens so the appointment action is never scrolled out of view. */
@media (max-width: 720px) {
    [data-first-manager-candidates] thead { display: none; }
    [data-first-manager-candidates] tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--app-line-soft, var(--color-border)); }
    [data-first-manager-candidates] tbody tr:last-child { border-bottom: 0; }
    [data-first-manager-candidates] td { display: block; padding: 3px 0; border: 0; }
}

/* Status panel (Pengaturan). */
.admin-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-status__label { margin: 0; font-size: 14px; }

/* Audit: action chips and folded before / after detail. */
.audit-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 600 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--app-accent-soft); color: var(--color-text); }
.audit-chip--settings { background: var(--app-info-bg); color: var(--app-info); }
.audit-chip--refused { background: var(--color-danger-bg); color: var(--color-danger); }
.audit-date { font-weight: 600; }
.audit-detail > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--color-primary); }
.audit-detail__label { margin: 8px 0 2px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.audit-detail__body { margin: 0; max-width: 48ch; padding: 8px 10px; border-radius: 8px; background: var(--color-bg); font-size: 11.5px; white-space: pre-wrap; word-break: break-word; }

/* ------------------------------------------------------------------
   Alokasi polish (/alokasi, .alo): flat cards on the Member surface, the
   amount as the lead figure, status pills, one pill CTA, details collapsed.
   Presentation only; tokens only; no gradient (no primary surface here).
   ------------------------------------------------------------------ */
.alo-head { margin: 4px 0 14px; }
.alo-head__title { margin: 0; font-size: 22px; }
.alo-head__sub { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.alo .card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 18px; box-shadow: none; }
.alo-card { padding: 16px; margin-bottom: 12px; }
.alo-card .allocation-card__head .card__title { font-size: 16px; line-height: 1.3; }
.alo-card .allocation-card__head .card__title a { color: var(--color-text); }
.alo-card__pills { margin: 8px 0 6px; }
.alo-card .allocation-card__note { margin: 4px 0 8px; font-size: 12.5px; }
/* The amount leads; stage and update are quiet rows underneath. */
.alo-summary { margin: 6px 0 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.alo-summary dt { grid-column: 1; margin: 0; font-size: 12.5px; color: var(--color-muted); }
.alo-summary dd { grid-column: 2; margin: 0; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.alo-summary dt:first-of-type { grid-column: 1 / -1; }
.alo-summary dt:first-of-type + dd { grid-column: 1 / -1; text-align: left; font-size: 22px; font-weight: 800; line-height: 1.2; }
.alo-card .result-box { background: var(--app-accent-soft); border: 1px solid var(--app-line); border-left: 3px solid var(--color-primary); border-radius: 12px; padding: 10px 12px; }
.alo-card .result-box__value { font-size: 20px; }
.alo-cta { margin: 8px 0 0; min-height: 48px; font-size: 15px; }
.alo-cta--secondary { background: var(--app-surface); color: var(--color-text); border: 1px solid var(--app-line-strong); }
.alo-card .allocation-card__more { margin: 8px 0 0; border-top: 1px solid var(--app-line-soft); }
.alo-card .allocation-card__more > summary { min-height: 46px; font-size: 14px; font-weight: 600; list-style: none; }
.alo-card .allocation-card__more > summary::-webkit-details-marker { display: none; }
.alo-card .allocation-card__more > summary:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 8px; }
.alo-card .allocation-card__more[open] { padding-bottom: 6px; }
.alo-card > p.muted { margin: 10px 0 0; font-size: 12.5px; }
.alo-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; text-align: center; border: 1px dashed var(--app-line-strong); border-radius: 18px; background: var(--app-surface-soft); }
.alo-empty__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 999px; background: var(--app-accent-tint); color: var(--color-primary); }
.alo-empty__text { margin: 0; font-size: 14.5px; color: var(--color-muted); }
.alo-empty .btn { width: 100%; max-width: 320px; text-decoration: none; }
.alo .receipt { padding: 16px; margin-bottom: 12px; }

/* ------------------------------------------------------------------
   Authentication / registration / onboarding polish (presentation only): registration progress, calm
   state panels, and the /bergabung disclosure page. Tokens only; the existing auth-screen / card / btn
   components are reused.
   ------------------------------------------------------------------ */
.auth-screen__note { margin: 12px 0 4px; font-size: 13px; line-height: 1.5; color: var(--color-muted); text-align: center; }
.auth-status--warn { background: var(--color-warning-bg); color: var(--color-warning-text); border: 2px solid var(--app-amber-line, var(--color-warning-text)); font-weight: 800; }

.auth-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 16px; padding: 0; counter-reset: none; }
.auth-steps__item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; line-height: 1.25; color: var(--color-muted); }
.auth-steps__dot { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 1px solid var(--app-line-strong, var(--color-border)); background: transparent; }
.auth-steps__item.is-done .auth-steps__dot { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-bg); }
.auth-steps__item.is-current { color: var(--color-text); font-weight: 600; }
.auth-steps__item.is-current .auth-steps__dot { border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 0 0 3px var(--app-accent-tint, transparent); }

.onb { max-width: 520px; margin: 0 auto; width: 100%; }
.onb__head { margin: 4px 0 12px; }
.onb__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary); }
.onb__title { margin: 0; font-size: 22px; line-height: 1.25; }
.onb__intro { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--color-muted); }
.onb__section { margin: 18px 0 8px; font-size: 14px; letter-spacing: 0.02em; color: var(--color-muted); text-transform: uppercase; }
.onb .point-grid { margin: 0 0 4px; gap: 8px; }
.onb .policy-detail__body { max-height: 320px; }
.onb-consent { margin: 14px 0 10px; padding: 14px; border: 1px solid var(--app-line, var(--color-border)); border-radius: var(--radius); background: var(--color-surface); }
.onb-consent .checkbox-label { margin-top: 0; line-height: 1.45; }
.onb-consent .btn { margin-top: 12px; }
.onb-decline { margin: 0 0 8px; }
.onb-decline__note { margin: 8px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--color-muted); text-align: center; }

.onb-state { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; border: 1px solid var(--app-amber-line); border-radius: var(--radius); background: var(--app-amber-bg); }
.onb-state__icon { width: 44px; height: 44px; margin: 0 auto 2px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--color-warning-text); border: 2px solid var(--app-amber-line, var(--color-warning-text)); }
.onb-state__title { margin: 0; font-size: 18px; text-align: center; }
.onb-state__text, .onb-state__next { margin: 0; font-size: 14px; line-height: 1.55; }
.onb-state__text { color: var(--color-text); }
.onb-state__next { padding: 10px 12px; border-radius: 10px; background: var(--app-surface-soft); color: var(--color-muted); }
.onb-state .btn { margin-top: 4px; text-decoration: none; }
.onb-state form { margin: 0; }

/* ------------------------------------------------------------------
   Manager home (mobile dashboard): the Member home's visual language for the Manager — same surface (member-surface),
   tokens, cards and rows; count tiles for what waits for the Manager and a grouped menu. Presentation only; tokens only.
   ------------------------------------------------------------------ */
.home-section__meta { font-size: 12px; color: var(--color-muted); }
.home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-tile {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px; text-decoration: none; color: var(--color-text);
    background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px;
}
.home-tile:focus-visible, .home-row:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
.home-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--color-muted); }
.home-tile__count { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--color-muted); }
.home-tile__label { margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.home-tile__sub { font-size: 11.5px; line-height: 1.35; color: var(--color-muted); overflow-wrap: anywhere; }
.home-tile.is-attention { background: var(--app-accent-soft); border-color: var(--app-line-strong); }
.home-tile.is-attention .home-tile__top, .home-tile.is-attention .home-tile__count { color: var(--color-primary); }
.home-menu { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 2px 12px; }
.home-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; text-decoration: none; color: var(--color-text); }
.home-row + .home-row { border-top: 1px solid var(--app-line-soft); }
.home-row__icon { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--app-accent-soft); color: var(--color-primary); }
.home-row__body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.home-row__title { font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.home-row__hint { font-size: 12px; color: var(--color-muted); }
.home-row__badge { flex-shrink: 0; }
/* Manager bottom navigation: five equal columns, like the Member navigation. */
.bottom-nav--manager { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bottom-nav--manager .bottom-nav__item { min-width: 0; justify-content: center; text-align: center; white-space: nowrap; }
@media (min-width: 720px) {
    .home--manager { max-width: 560px; margin: 0 auto; }
}

/* ------------------------------------------------------------------
   Manager menu pages (Anggota, Peluang, Kebijakan, Persetujuan): the Member / Manager home language — page head, sections, grouped
   rows, status badges, compact forms. Shared components (home-section, home-menu, home-row, home-cta, home-opp, badge) are reused;
   only what is specific to these pages is defined here. Presentation only; tokens only.
   ------------------------------------------------------------------ */
.mp { max-width: none; }
.mp-head { margin: 0 0 14px; }
.mp-head__title { margin: 0; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.mp-head__sub { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-muted); }
.mp .home-section { margin-bottom: 18px; }
.mp .section-title { margin: 0; font-size: 16px; line-height: 1.3; }
.mp-hint { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--color-muted); }
.mp-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; min-width: 0; }
.mp-item + .mp-item { border-top: 1px solid var(--app-line-soft); }
.mp-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.mp-item__title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mp-item__sub { font-size: 12.5px; color: var(--color-muted); overflow-wrap: anywhere; }
.mp-item__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.mp-item .badge { white-space: nowrap; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mp-actions form { margin: 0; }
.mp-actions .btn { min-height: 40px; }
.mp-avatar { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--app-accent-soft); color: var(--color-primary); }
.mp-person { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.mp-person + .mp-person { border-top: 1px solid var(--app-line-soft); }
.mp-person__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mp-fold { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 0 14px; }
.mp-fold > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; }
.mp-fold > summary::-webkit-details-marker { display: none; }
.mp-fold > summary::after { content: "\203A"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--color-muted); transition: transform 0.15s; }
.mp-fold[open] > summary::after { transform: rotate(90deg); }
.mp-fold > summary:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 10px; }
.mp-fold__body { padding: 0 0 14px; }
.mp-fold .form__label:first-of-type { margin-top: 0; }
.mp-fold .btn--primary { margin-top: 12px; }
.mp-panel { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; min-width: 0; }
.mp-panel--attention { background: var(--app-accent-soft); border-color: var(--app-line-strong); }
.mp-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.mp-panel__title { margin: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.mp-dl { display: grid; grid-template-columns: minmax(80px, 34%) minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 10px; font-size: 13px; }
.mp-dl dt { color: var(--color-muted); overflow-wrap: anywhere; }
.mp-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mp-code { display: block; font-size: 11px; font-weight: 400; color: var(--color-muted); overflow-wrap: anywhere; word-break: break-all; }
.mp-form { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.mp-form .form__label { display: flex; flex-direction: column; gap: 4px; margin-top: 0; }
.mp-form .form__input { width: 100%; box-sizing: border-box; }
.mp-form .btn { margin-top: 4px; }
.mp-link { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.mp-link:hover { text-decoration: underline; }
.mp-link:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; border-radius: 6px; }
.mp-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12.5px; color: var(--color-danger); }
.mp-list li { margin-top: 2px; }
.mp-empty { padding: 14px; border-radius: 16px; border: 1px dashed var(--app-line-strong); text-align: center; font-size: 13.5px; color: var(--color-muted); }
.mp-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-muted); }
.mp-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--color-muted); }
.mp-cta-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.mp-cta-row .home-cta { margin: 0; }
.mp-cta-secondary { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1px solid var(--app-line-strong); color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 14.5px; background: var(--app-surface); }
@media (min-width: 720px) {
    .mp { max-width: 560px; margin: 0 auto; }
}
