/* ── "Add Salary" 2-step wizard ──────────────────────────────────────────────
   Markup: calculator/templates/calculator/includes/add_salary_modal.html
   JS:     calculator/static/js/add-salary-modal.js
   Everything is scoped to .sbm-wizard: the shared sbm-* field classes are also
   used by the calculator page's inline benchmark card and must not change there.
   Base overlay chrome (.pc-add-salary-overlay) lives in peer-compare.css.
   ────────────────────────────────────────────────────────────────────────── */

body.page-peer-compare .pc-add-salary-modal.sbm-wizard {
    --w-bg: #141414;
    --w-card: #1a1a1a;
    --w-card-border: rgba(255, 255, 255, 0.08);
    --w-input-bg: #0f0f0f;
    --w-input-border: rgba(255, 255, 255, 0.14);
    --w-input-border-hover: rgba(255, 255, 255, 0.24);
    --w-text: #f2f2f2;
    --w-text-2: #c4c4c4;
    --w-muted: #8f8f8f;
    --w-accent: #2f7bff;
    --w-accent-hover: #1f6ae8;
    --w-accent-soft: rgba(47, 123, 255, 0.14);
    --w-accent-text: #7fb0ff;
    --w-success: #34c28a;
    --w-success-soft: rgba(52, 194, 138, 0.12);
    --w-warn: #f5b041;
    --w-warn-soft: rgba(245, 176, 65, 0.12);
    --w-danger: #ff6b6b;
    --w-radius: 14px;
    --w-radius-sm: 10px;

    width: 40vw;
    min-width: 600px;
    max-width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--w-bg);
    color: var(--w-text);
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.45;
    scrollbar-width: thin;
    scrollbar-color: var(--w-card-border) transparent;
}
html[data-theme="light"] body.page-peer-compare .pc-add-salary-modal.sbm-wizard,
body.page-peer-compare.light-mode .pc-add-salary-modal.sbm-wizard {
    --w-bg: #ffffff;
    --w-card: #fafbfc;
    --w-card-border: #e7e9ee;
    --w-input-bg: #ffffff;
    --w-input-border: #d6dae1;
    --w-input-border-hover: #b7bec9;
    --w-text: #15181e;
    --w-text-2: #454c59;
    --w-muted: #6b7280;
    --w-accent: #1f6fe5;
    --w-accent-hover: #185ccc;
    --w-accent-soft: rgba(31, 111, 229, 0.08);
    --w-accent-text: #1f6fe5;
    --w-success: #16935e;
    --w-success-soft: rgba(22, 147, 94, 0.08);
    --w-warn: #b7791f;
    --w-warn-soft: #fff8eb;
    --w-danger: #d93a3a;
}

.sbm-wizard svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sbm-wizard [hidden] { display: none !important; }
.sbm-wizard .sbw-visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Top bar ── */
.sbm-wizard .sbw-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 0 20px;
}
.sbm-wizard .sbw-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--w-text-2);
    margin-right: auto;
}
.sbm-wizard .sbw-icon-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--w-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.sbm-wizard .sbw-icon-btn svg { width: 18px; height: 18px; }
.sbm-wizard .sbw-icon-btn:hover { background: var(--w-card); color: var(--w-text); }
.sbm-wizard .sbw-icon-btn:focus-visible { outline: 2px solid var(--w-accent); outline-offset: 2px; }
.sbm-wizard #pcSbmWizardBack { margin-left: -8px; }

/* ── Hero: title, subtitle, trust strip, stepper (all centred) ── */
.sbm-wizard .sbw-hero {
    padding: 4px 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--w-card-border);
}
.sbm-wizard .sbw-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--w-text);
}
.sbm-wizard .sbw-subtitle {
    max-width: 440px;
    margin: 8px auto 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--w-muted);
}
.sbm-wizard .sbw-trust {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid var(--w-card-border);
    border-radius: 12px;
    background: var(--w-card);
    font-size: 12.5px;
    color: var(--w-text-2);
}
.sbm-wizard .sbw-trust-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sbm-wizard .sbw-trust-item svg { width: 14px; height: 14px; color: var(--w-muted); }

.sbm-wizard .sbw-stepper {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 420px;
    margin: 18px auto 0;
    padding: 0;
}
.sbm-wizard .sbw-step {
    flex: 0 0 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.sbm-wizard .sbw-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--w-input-border);
    background: var(--w-bg);
    color: var(--w-muted);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sbm-wizard .sbw-step-check { display: none; width: 15px; height: 15px; stroke-width: 3; }
.sbm-wizard .sbw-step-label {
    font-size: 12px;
    line-height: 1.3;
    color: var(--w-muted);
    font-weight: 500;
}
.sbm-wizard .sbw-step.is-active .sbw-step-circle,
.sbm-wizard .sbw-step.is-done .sbw-step-circle {
    background: var(--w-accent);
    border-color: var(--w-accent);
    color: #fff;
}
.sbm-wizard .sbw-step.is-active .sbw-step-label { color: var(--w-accent-text); font-weight: 600; }
.sbm-wizard .sbw-step.is-done .sbw-step-label { color: var(--w-text-2); }
.sbm-wizard .sbw-step.is-done .sbw-step-num { display: none; }
.sbm-wizard .sbw-step.is-done .sbw-step-check { display: block; }
.sbm-wizard .sbw-step-line {
    flex: 1 1 auto;
    height: 2px;
    margin: 13px -40px 0;
    border-radius: 2px;
    background: var(--w-input-border);
    transition: background 0.2s ease;
}
.sbm-wizard .sbw-step-line.is-done { background: var(--w-accent); }

/* ── Body + panels ── */
body.page-peer-compare .sbm-wizard .pc-add-salary-body.sbw-body {
    padding: 24px 28px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    container-type: inline-size;
}
.sbm-wizard .sbw-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Section cards */
.sbm-wizard .sbw-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px 20px;
    background: var(--w-card);
    border: 1px solid var(--w-card-border);
    border-radius: var(--w-radius);
}
.sbm-wizard .sbw-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sbm-wizard .sbw-badge {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--w-accent-soft);
    color: var(--w-accent-text);
    font-size: 13px;
    font-weight: 700;
}
.sbm-wizard .sbw-badge-icon svg { width: 15px; height: 15px; }
.sbm-wizard .sbw-section-title {
    margin: 2px 0 0;
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: -0.005em;
    color: var(--w-text);
}
.sbm-wizard .sbw-section-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--w-muted);
}

/* Fields */
.sbm-wizard .sbw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
}
.sbm-wizard .sbw-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.sbm-wizard .sbw-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    font-weight: 550;
    color: var(--w-text-2);
}
.sbm-wizard .sbw-label small { font-weight: 400; color: var(--w-muted); }
.sbm-wizard .sbw-req { color: var(--w-danger); font-weight: 600; }
.sbm-wizard .sbw-opt {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--w-muted);
}
.sbm-wizard .sbw-hint {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--w-muted);
}
.sbm-wizard .sbw-hint strong { color: var(--w-text-2); font-weight: 600; }
.sbm-wizard .sbw-hint-icon { display: flex; align-items: flex-start; gap: 7px; }
.sbm-wizard .sbw-hint-icon svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--w-accent-text); }

.sbm-wizard .sbm-input.sbw-input {
    height: 44px;
    padding: 0 14px;
    font-size: 14.5px;
    color: var(--w-text);
    background-color: var(--w-input-bg);
    border: 1px solid var(--w-input-border);
    border-radius: var(--w-radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sbm-wizard .sbm-input.sbw-input:hover { border-color: var(--w-input-border-hover); }
.sbm-wizard .sbm-input.sbw-input:focus {
    outline: none;
    border-color: var(--w-accent);
    box-shadow: 0 0 0 3px var(--w-accent-soft);
}
.sbm-wizard .sbm-input.sbw-input::placeholder { color: var(--w-muted); opacity: 0.8; }
.sbm-wizard .sbm-input.sbm-error {
    border-color: var(--w-danger) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.16) !important;
}

/* Datalist inputs styled as dropdowns (still free text — unknown employers
   resolve via async taxonomy normalization server-side). */
.sbm-wizard .sbw-select-like {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238f8f8f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px !important;
}
/* Chrome's own datalist arrow sits under ours: keep it clickable, just invisible. */
.sbm-wizard .sbw-select-like::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }

/* YoE stepper */
.sbm-wizard .sbw-stepper-input {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    height: 44px;
    background: var(--w-input-bg);
    border: 1px solid var(--w-input-border);
    border-radius: var(--w-radius-sm);
    overflow: hidden;
}
.sbm-wizard .sbw-stepper-input .sbm-step-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--w-text-2);
    font-size: 18px;
    cursor: pointer;
}
.sbm-wizard .sbw-stepper-input .sbm-step-btn:hover { background: var(--w-card); color: var(--w-text); }
.sbm-wizard .sbw-stepper-input .sbm-step-btn:active { background: var(--w-accent-soft); color: var(--w-accent-text); }
.sbm-wizard .sbw-stepper-input .sbw-step-value {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-left: 1px solid var(--w-input-border);
    border-right: 1px solid var(--w-input-border);
    border-radius: 0;
    background: transparent;
    color: var(--w-text);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}
.sbm-wizard .sbw-stepper-input .sbw-step-value:focus { outline: none; background: var(--w-accent-soft); }
.sbm-wizard .sbw-step-value::-webkit-outer-spin-button,
.sbm-wizard .sbw-step-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Total compensation */
.sbm-wizard .sbw-comp-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.sbm-wizard .sbw-amount { position: relative; }
.sbm-wizard .sbw-amount-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 600;
    color: var(--w-text-2);
    pointer-events: none;
}
.sbm-wizard .sbm-input.sbw-input.sbw-amount-input {
    height: 54px;
    padding-left: 40px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.sbm-wizard .sbm-input.sbw-input.sbw-amount-input::placeholder { font-size: 16px; font-weight: 400; }

/* What's included */
.sbm-wizard .sbw-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@container (min-width: 640px) {
    .sbm-wizard .sbw-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sbm-wizard .sbw-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 8px 12px;
    background: var(--w-input-bg);
    border: 1px solid var(--w-input-border);
    border-radius: var(--w-radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--w-text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.sbm-wizard .sbw-chip small { display: block; font-size: 11.5px; font-weight: 400; color: var(--w-muted); }
.sbm-wizard .sbw-chip:hover { border-color: var(--w-input-border-hover); }
.sbm-wizard .sbw-chip:has(input:checked) { border-color: var(--w-accent); background: var(--w-accent-soft); }
.sbm-wizard .sbw-chip:has(input:disabled) { cursor: default; }
.sbm-wizard .sbw-chip input,
.sbm-wizard .sbw-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--w-accent);
    cursor: inherit;
}

/* Callouts */
.sbm-wizard .sbw-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--w-radius-sm);
    font-size: 13px;
    line-height: 1.45;
}
.sbm-wizard .sbw-callout > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.sbm-wizard .sbw-callout p { margin: 0; flex: 1 1 auto; }
.sbm-wizard .sbw-callout-info { background: var(--w-accent-soft); color: var(--w-text-2); }
.sbm-wizard .sbw-callout-info > svg { color: var(--w-accent-text); }
.sbm-wizard .sbw-callout-success { background: var(--w-success-soft); color: var(--w-text-2); }
.sbm-wizard .sbw-callout-success > svg { color: var(--w-success); }
.sbm-wizard .sbw-callout-success strong { color: var(--w-success); }
.sbm-wizard .sbw-callout-warn {
    background: var(--w-warn-soft);
    color: var(--w-warn);
    border: 1px solid color-mix(in srgb, var(--w-warn) 30%, transparent);
}
.sbm-wizard .sbw-callout-split {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
}
.sbm-wizard .sbw-callout-split > svg { margin-top: 0; }
.sbm-wizard .sbw-callout-close {
    flex-shrink: 0;
    border: none;
    background: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}
.sbm-wizard .sbw-link-btn {
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    color: var(--w-accent-text);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.sbm-wizard .sbw-link-btn:hover { text-decoration: underline; }
.sbm-wizard .sbw-link-btn:disabled { opacity: 0.5; cursor: default; }
.sbm-wizard .sbw-nudge {
    margin: 0;
    font-size: 12.5px;
    color: var(--w-warn);
}
.sbm-wizard .sbw-error-msg {
    margin: 0;
    font-size: 13px;
    color: var(--w-danger);
    text-align: center;
}

/* Actions */
.sbm-wizard .sbw-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 4px -28px 0;
    padding: 16px 28px 18px;
    background: var(--w-bg);
    border-top: 1px solid var(--w-card-border);
    box-shadow: 0 -10px 24px -12px rgba(0, 0, 0, 0.35);
}
.sbm-wizard .sbw-primary-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--w-accent);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: 0.005em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 18px rgba(47, 123, 255, 0.25);
}
.sbm-wizard .sbw-primary-btn:hover:not(:disabled) { background: var(--w-accent-hover); }
.sbm-wizard .sbw-primary-btn:active:not(:disabled) { transform: translateY(1px); }
.sbm-wizard .sbw-primary-btn:focus-visible { outline: 3px solid var(--w-accent-soft); outline-offset: 2px; }
.sbm-wizard .sbw-primary-btn:disabled { opacity: 0.65; cursor: default; box-shadow: none; }
.sbm-wizard .sbw-privacy {
    margin: 0;
    font-size: 12.5px;
    color: var(--w-muted);
    text-align: center;
}
.sbm-wizard .sbw-privacy svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }

/* ── Step 2: summary (donut + total + legend) ── */
.sbm-wizard .sbw-summary {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 14px;
}
.sbm-wizard .sbw-summary .sbw-summary-context { grid-column: 1 / -1; grid-row: 1; }
.sbm-wizard .sbw-summary .sbw-donut { grid-row: 2 / span 2; }
.sbm-wizard .sbw-summary .sbw-summary-total { grid-column: 2; grid-row: 2; align-self: end; }
.sbm-wizard .sbw-summary .sbw-legend { grid-column: 2; grid-row: 3; align-self: start; }
.sbm-wizard .sbw-summary-context {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--w-card-border);
    min-width: 0;
}
.sbm-wizard .sbw-summary-logo { width: 36px; height: 36px; flex-shrink: 0; }
.sbm-wizard .sbw-summary-context-text { min-width: 0; }
.sbm-wizard .sbw-summary-context-title {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--w-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sbm-wizard .sbw-summary-context-sub {
    margin-top: 1px;
    font-size: 12.5px;
    color: var(--w-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sbm-wizard .sbw-donut {
    position: relative;
    width: 124px;
    height: 124px;
    flex-shrink: 0;
}
.sbm-wizard .sbw-donut .sbm-donut-svg { width: 100%; height: 100%; display: block; }
.sbm-wizard .sbw-donut-track { stroke: var(--w-input-border); }
.sbm-wizard .sbw-donut-seg {
    stroke-linecap: butt;
    transition: stroke-dasharray 0.45s ease, stroke-dashoffset 0.45s ease;
    cursor: pointer;
}
.sbm-wizard .sbw-donut-tooltip {
    position: absolute;
    transform: translate(-50%, -140%);
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--w-text);
    color: var(--w-bg);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}
.sbm-wizard .sbw-summary-total { flex: 0 0 auto; }
.sbm-wizard .sbw-summary-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--w-text);
    font-variant-numeric: tabular-nums;
}
.sbm-wizard .sbw-summary-label { margin-top: 4px; font-size: 12.5px; color: var(--w-muted); }
.sbm-wizard .sbw-legend {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--w-card-border);
    min-width: 0;
}
.sbm-wizard .sbw-legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto 40px;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--w-text-2);
}
.sbm-wizard .sbw-legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.sbm-wizard .sbw-legend-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbm-wizard .sbw-legend-amt { font-weight: 600; color: var(--w-text); font-variant-numeric: tabular-nums; }
.sbm-wizard .sbw-legend-pct { text-align: right; font-size: 12px; color: var(--w-muted); font-variant-numeric: tabular-nums; }

/* Breakdown rows: label | input | helper */
.sbm-wizard .sbw-breakdown { display: flex; flex-direction: column; gap: 14px; }
.sbm-wizard .sbw-breakdown { gap: 16px; }
.sbm-wizard .sbw-breakdown-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
}
.sbm-wizard .sbw-breakdown-row > .sbw-hint,
.sbm-wizard .sbw-breakdown-row > .sbw-nudge { grid-column: 2; }
.sbm-wizard .sbw-auto-tag {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--w-accent-soft);
    color: var(--w-accent-text);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sbm-wizard .sbm-input.sbw-input.sbw-input-readonly {
    background-color: var(--w-card);
    border-style: dashed;
    color: var(--w-text);
    font-weight: 600;
    cursor: default;
}
.sbm-wizard .sbm-input.sbw-input.sbw-input-readonly:hover { border-color: var(--w-input-border); }
.sbm-wizard .sbm-input.sbw-input.sbw-input-readonly:focus { box-shadow: none; border-color: var(--w-input-border); }

/* Optional details: slider + EPF */
.sbm-wizard .sbw-slider-head { display: flex; align-items: baseline; justify-content: space-between; }
.sbm-wizard .sbw-slider-value { font-size: 15px; font-weight: 700; color: var(--w-text); font-variant-numeric: tabular-nums; }
.sbm-wizard .sbw-range {
    --sbw-range-fill: 61.5%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin: 8px 0 4px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--w-accent) 0 var(--sbw-range-fill), var(--w-input-border) var(--sbw-range-fill) 100%);
    cursor: pointer;
}
.sbm-wizard .sbw-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--w-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.sbm-wizard .sbw-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--w-accent);
}
.sbm-wizard .sbw-range:focus-visible { outline: 2px solid var(--w-accent); outline-offset: 6px; }
.sbm-wizard .sbw-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--w-text-2);
    cursor: pointer;
}

/* "We'll compare you as Software Engineer · Level Senior" — spans the whole role grid */
.sbm-wizard .sbw-role-hint {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -4px;
    padding: 10px 12px;
    border-radius: var(--w-radius-sm);
    background: var(--w-accent-soft);
    font-size: 13px;
    line-height: 1.45;
    color: var(--w-text-2);
}
.sbm-wizard .sbw-role-hint > svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--w-accent-text); }
.sbm-wizard .sbw-role-hint p { margin: 0; flex: 1 1 auto; }
.sbm-wizard .sbw-role-hint strong { color: var(--w-text); font-weight: 650; }

/* ── Combobox (free text + suggestions) ── */
.sbm-wizard .sbw-combo { position: relative; }
.sbm-wizard .sbw-combo.is-open .sbw-input { border-color: var(--w-accent); box-shadow: 0 0 0 3px var(--w-accent-soft); }
.sbm-wizard .sbw-combo-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 288px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--w-bg);
    border: 1px solid var(--w-input-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    scrollbar-width: thin;
}
html[data-theme="light"] body.page-peer-compare .sbm-wizard .sbw-combo-list,
body.page-peer-compare.light-mode .sbm-wizard .sbw-combo-list { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14); }
.sbm-wizard .sbw-combo-group {
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--w-muted);
}
.sbm-wizard .sbw-combo-group:first-child { padding-top: 4px; }
.sbm-wizard .sbw-combo-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--w-text);
    cursor: pointer;
}
.sbm-wizard .sbw-combo-opt:hover,
.sbm-wizard .sbw-combo-opt.is-active { background: var(--w-accent-soft); }
.sbm-wizard .sbw-opt-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbm-wizard .sbw-opt-name mark { background: none; color: inherit; font-weight: 700; }
.sbm-wizard .sbw-opt-hint {
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid var(--w-card-border);
    font-size: 11.5px;
    color: var(--w-muted);
}

/* Logos: suggestion rows, the company input, and the step-2 summary */
.sbm-wizard .sbw-opt-logo,
.sbm-wizard .sbw-combo-logo,
.sbm-wizard .sbw-summary-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
}
.sbm-wizard .sbw-opt-logo { width: 24px; height: 24px; flex-shrink: 0; }
.sbm-wizard .sbw-summary-logo { border-radius: 9px; }
.sbm-wizard .sbw-opt-logo img,
.sbm-wizard .sbw-combo-logo img,
.sbm-wizard .sbw-summary-logo img { width: 82%; height: 82%; object-fit: contain; }
.sbm-wizard .sbw-logo-initials {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.sbm-wizard .sbw-summary-logo .sbw-logo-initials { font-size: 13px; }
.sbm-wizard .sbw-combo-logo {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}
.sbm-wizard .sbw-combo--has-logo .sbm-input.sbw-input { padding-left: 46px; }

/* Success panel (rendered by JS after submit) sits inside the wizard body */
.sbm-wizard .pc-success-panel { padding: 48px 24px 40px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    body.page-peer-compare .pc-add-salary-modal.sbm-wizard {
        width: 100%;
        min-width: 0;
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }
    .sbm-wizard .sbw-hero { padding: 6px 20px 18px; }
    .sbm-wizard .sbw-title { font-size: 22px; }
    .sbm-wizard .sbw-subtitle { font-size: 13.5px; }
    .sbm-wizard .sbw-trust { gap: 4px 12px; padding: 8px 12px; font-size: 12px; }
    body.page-peer-compare .sbm-wizard .pc-add-salary-body.sbw-body { padding: 18px 16px 0; }
    .sbm-wizard .sbw-actions { margin: 4px -16px 0; padding: 14px 16px 16px; }
    .sbm-wizard .sbw-section { padding: 16px; gap: 14px; }
    .sbm-wizard .sbw-comp-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
    body.page-peer-compare .pc-add-salary-overlay { padding: 12px; }
    .sbm-wizard .sbw-grid { grid-template-columns: 1fr; }
    .sbm-wizard .sbw-step { flex-basis: 110px; }
    .sbm-wizard .sbw-step-label { font-size: 11px; }
}

@container (max-width: 460px) {
    .sbm-wizard .sbw-breakdown-row { grid-template-columns: 1fr; row-gap: 7px; }
    .sbm-wizard .sbw-breakdown-row > .sbw-hint,
    .sbm-wizard .sbw-breakdown-row > .sbw-nudge { grid-column: 1; }
    .sbm-wizard .sbw-summary { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
    .sbm-wizard .sbw-summary .sbw-donut { grid-row: 2; width: 96px; height: 96px; }
    .sbm-wizard .sbw-summary .sbw-summary-total { align-self: center; }
    .sbm-wizard .sbw-summary .sbw-legend { grid-column: 1 / -1; grid-row: 3; }
    .sbm-wizard .sbw-summary-value { font-size: 22px; }
    .sbm-wizard .sbw-callout-split { grid-template-columns: 18px minmax(0, 1fr); align-items: start; }
    .sbm-wizard .sbw-callout-split > svg { margin-top: 1px; }
    .sbm-wizard .sbw-callout-split .sbw-link-btn { grid-column: 2; justify-self: start; }
}
