    *, *::before, *::after { box-sizing: border-box; }

    .dp-shell {
        max-width: 860px;
        margin: 0 auto;
        padding: 1.5rem 1.25rem 4rem;
    }

    /* ── Cards ─────────────────────────────────────────────── */
    .dp-card {
        background: #ffffff;
        border: 1px solid #d0d8e0;
        border-radius: 10px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1rem;
        box-shadow: 0 1px 4px rgba(15,25,35,.07);
    }

    .dp-section-title {
        font-size: .95rem;
        font-weight: 700;
        color: #0f1923;
        margin: 0 0 1.1rem;
        padding-bottom: .55rem;
        border-bottom: 2px solid #b8d9f0;
    }

    /* ── Form fields ────────────────────────────────────────── */
    .dp-row {
        display: flex;
        gap: .75rem;
        align-items: flex-end;
        flex-wrap: wrap;
        margin-bottom: .85rem;
    }

    .dp-field {
        display: flex;
        flex-direction: column;
        gap: .3rem;
    }

    .dp-field label {
        font-size: .8rem;
        font-weight: 700;
        color: #0f1923;
    }

    .dp-field input,
    .dp-field select {
        padding: .65rem .9rem;
        font-size: .9rem;
        border: 2px solid #d0d8e0;
        border-radius: 8px;
        background: #ffffff;
        color: #0f1923;
        transition: border-color .15s, box-shadow .15s;
    }

    .dp-field input:focus,
    .dp-field select:focus {
        outline: none;
        border-color: #005fa3;
        box-shadow: 0 0 0 3px rgba(0,95,163,.15);
    }

    .dp-field input:focus-visible,
    .dp-field select:focus-visible {
        outline: 3px solid #005fa3;
        outline-offset: 2px;
    }

    .field-sm  { width: 110px; }
    .field-md  { width: 180px; }
    .field-lg  { flex: 1; min-width: 160px; }

    /* ── Slider ─────────────────────────────────────────────── */
    .slider-wrap {
        display: flex;
        align-items: center;
        gap: .85rem;
        margin-top: .35rem;
    }

    .slider-wrap input[type="range"] {
        flex: 1;
        accent-color: #005fa3;
        cursor: pointer;
    }

    .slider-val {
        font-size: 1rem;
        font-weight: 800;
        color: #0f1923;
        min-width: 48px;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    /* ── Toggle pills ───────────────────────────────────────── */
    .dp-toggle { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }

    .dp-toggle-btn {
        padding: .4rem .95rem;
        font-size: .8rem;
        font-weight: 700;
        border: 2px solid #b0bcc8;
        border-radius: 999px;
        background: #ffffff;
        color: #0f1923;
        cursor: pointer;
        transition: border-color .15s, background .15s, color .15s;
    }

    .dp-toggle-btn:hover:not(.active) { border-color: #005fa3; background: #e8f4fb; }
    .dp-toggle-btn.active { background: #2d3f52; border-color: #2d3f52; color: #ffffff; }
    .dp-toggle-btn:focus-visible { outline: 3px solid #005fa3; outline-offset: 2px; }

    /* ── Factor grid ────────────────────────────────────────── */
    .factor-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: .85rem;
        margin-bottom: .75rem;
    }

    /* ── Buttons ────────────────────────────────────────────── */
    .dp-run-btn {
        padding: .75rem 1.5rem;
        font-size: .95rem;
        font-weight: 700;
        background: #b8d9f0;
        color: #0f1923;
        border: 2px solid #7ec8f0;
        border-radius: 10px;
        cursor: pointer;
        white-space: nowrap;
        transition: background .15s, transform .1s;
        box-shadow: 0 1px 4px rgba(15,25,35,.08);
    }

    .dp-run-btn:hover  { background: #90c5e8; }
    .dp-run-btn:active { transform: scale(.97); }
    .dp-run-btn:focus-visible { outline: 3px solid #005fa3; outline-offset: 3px; }

    /* ── Results header ─────────────────────────────────────── */
    .dp-results-header {
        background: #2d3f52;
        border-radius: 16px;
        padding: 1.5rem 1.75rem;
        margin-bottom: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .75rem;
        box-shadow: 0 4px 16px rgba(15,25,35,.12);
    }

    .dp-results-header h2 {
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0 0 .2rem;
        color: #ffffff;
    }

    .dp-results-header p {
        margin: 0;
        font-size: .875rem;
        color: #b8d0e8;
    }

    /* ── Result cards ───────────────────────────────────────── */
    .results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
        gap: .75rem;
        margin-bottom: .85rem;
    }

    .result-card {
        border-radius: 8px;
        padding: .9rem 1rem;
        background: #b8d9f0;
        border: 1px solid #5da8d8;
    }

    .result-card .result-label { color: #0f1923; }
    .result-card .result-value { color: #0f1923; }

    .result-card.dark          { background: #2d3f52; border-color: #1e2d3d; }
    .result-card.dark .result-label { color: #b8d0e8; }
    .result-card.dark .result-value { color: #ffffff; }

    .result-card.good          { background: #a8d8b8; border-color: #3d9a5a; }
    .result-card.good .result-label { color: #0f1923; }
    .result-card.good .result-value { color: #0f1923; }

    .result-card.warn          { background: #f0d080; border-color: #b07800; }
    .result-card.warn .result-label { color: #0f1923; }
    .result-card.warn .result-value { color: #0f1923; }

    .result-card.bad           { background: #f0a8a8; border-color: #b03030; }
    .result-card.bad .result-label { color: #0f1923; }
    .result-card.bad .result-value { color: #0f1923; }

    .result-label {
        font-size: .75rem;
        font-weight: 700;
        margin: 0 0 .25rem;
    }

    .result-value {
        font-size: 1.35rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        margin: 0;
    }

    /* ── Adjustment table ───────────────────────────────────── */
    .adj-table {
        width: 100%;
        border-collapse: collapse;
        font-size: .875rem;
        margin: .75rem 0;
    }

    .adj-table th {
        background: #2d3f52;
        color: #ffffff;
        padding: .55rem .85rem;
        text-align: left;
        font-size: .78rem;
        font-weight: 700;
    }

    .adj-table th:first-child { border-radius: 8px 0 0 0; }
    .adj-table th:last-child  { border-radius: 0 8px 0 0; }

    .adj-table td {
        padding: .55rem .85rem;
        border-bottom: 1px solid #d0d8e0;
        color: #0f1923;
        vertical-align: middle;
    }

    .adj-table tr:last-child td { border-bottom: none; }
    .adj-table tr:nth-child(even) td { background: #f0f4f8; }

    .adj-plus  { color: #0f1923; font-weight: 700; }
    .adj-minus { color: #0f1923; font-weight: 700; }
    .adj-zero  { color: #0f1923; font-weight: 700; }

    .adj-plus-bg  { background: #a8d8b8 !important; }
    .adj-minus-bg { background: #f0d080 !important; }

    /* ── Badges ─────────────────────────────────────────────── */
    .dp-badge {
        display: inline-block;
        font-size: .75rem;
        font-weight: 700;
        padding: .25rem .7rem;
        border-radius: 999px;
        flex-shrink: 0;
    }

    .badge-ok   { background: #a8d8b8; color: #0f1923; border: 1px solid #3d9a5a; }
    .badge-warn { background: #f0d080; color: #0f1923; border: 1px solid #b07800; }
    .badge-crit { background: #f0a8a8; color: #0f1923; border: 1px solid #b03030; }
    .badge-info { background: #b8d9f0; color: #0f1923; border: 1px solid #5da8d8; }

    /* ── Divider / note ─────────────────────────────────────── */
    .dp-divider {
        border: none;
        border-top: 1px solid #d0d8e0;
        margin: 1rem 0;
    }

    .dp-note {
        font-size: .8rem;
        font-weight: 400;
        color: #0f1923;
        margin: .5rem 0 0;
        line-height: 1.5;
    }

    /* ── Explainer accordion ─────────────────────────────────── */
    .dp-explainer {
        border: 1px solid #d0d8e0;
        border-radius: 10px;
        margin-top: 1.5rem;
        background: #ffffff;
        overflow: hidden;
    }

    .dp-explainer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: .9rem 1.25rem;
        background: #ffffff;
        border: none;
        cursor: pointer;
        font-size: .95rem;
        font-weight: 700;
        color: #0f1923;
        text-align: left;
        transition: background .15s;
    }

    .dp-explainer-head:hover { background: #f0f4f8; }

    .dp-explainer-head svg {
        width: 18px; height: 18px;
        flex-shrink: 0;
        transition: transform .2s;
    }

    .dp-explainer-head[aria-expanded="true"] svg { transform: rotate(180deg); }

    .dp-explainer-body {
        display: none;
        padding: 1rem 1.25rem 1.25rem;
        border-top: 1px solid #d0d8e0;
    }

    .dp-explainer-body h3 {
        font-size: .9rem;
        font-weight: 700;
        margin: 1rem 0 .25rem;
        color: #0f1923;
    }

    .dp-explainer-body h3:first-child { margin-top: 0; }

    .dp-explainer-body p {
        font-size: .875rem;
        margin: 0 0 .3rem;
        line-height: 1.55;
        color: #0f1923;
    }

    /* ── Disclaimer ─────────────────────────────────────────── */
    .hc-disclaimer {
        margin-top: 1.5rem;
        padding: .9rem 1.1rem;
        background: #b8d9f0;
        border: 1px solid #5da8d8;
        border-radius: 10px;
        font-size: .8rem;
        line-height: 1.5;
    }

    .hc-disclaimer p { color: #0f1923 !important; margin: 0; }

    /* ── Card-scoped overrides — beat toolbox-global.css inside white cards only ── */
    /* Intro text and bullets outside cards are on dark page bg — leave them white  */

    .dp-card label,
    .dp-card .dp-note,
    .dp-card .dp-section-title,
    .dp-card input,
    .dp-card select,
    .dp-card .slider-val {
        color: #0f1923 !important;
    }

    .dp-card label              { font-weight: 700 !important; }
    .dp-card .dp-note           { font-weight: 700 !important; }

    .adj-table td               { color: #0f1923 !important; font-weight: 700 !important; }
    .adj-table th               { color: #ffffff !important; }
    .adj-table tr:nth-child(even) td { background: #e8f0f8 !important; color: #0f1923 !important; }
    tr.adj-plus-bg td           { background: #a8d8b8 !important; color: #0f1923 !important; }
    tr.adj-minus-bg td          { background: #f0d080 !important; color: #0f1923 !important; }

    .result-card .result-label,
    .result-card .result-value  { color: #0f1923 !important; }

    .result-card.dark .result-label { color: #b8d0e8 !important; }
    .result-card.dark .result-value { color: #ffffff !important; }

    .dp-results-header h2       { color: #ffffff !important; }
    .dp-results-header p        { color: #b8d0e8 !important; }

    .dp-toggle-btn.active       { color: #ffffff !important; }

    .dp-explainer-body p,
    .dp-explainer-body h3       { color: #0f1923 !important; }

    .hc-disclaimer p            { color: #0f1923 !important; }

    .dp-note                    { color: #0f1923 !important; font-weight: 700 !important; }

    /* ── Responsive ─────────────────────────────────────────── */
    @media (max-width: 600px) {
        .factor-grid { grid-template-columns: 1fr; }
        .results-grid { grid-template-columns: 1fr 1fr; }
        .dp-results-header { flex-direction: column; }
        .field-sm, .field-md { width: 100%; }
        .dp-row { flex-direction: column; align-items: stretch; }
    }

    @media print {
        nav, header, footer,
        .dp-run-btn, .dp-explainer, .hc-disclaimer { display: none !important; }
        .dp-results-header { background: #2d3f52 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        body { font-size: 11pt; }
    }