.income-hero {
    background:
        linear-gradient(135deg, var(--c-warm-glaze), transparent 42%),
        linear-gradient(225deg, var(--c-cool-glaze), transparent 38%);
}

/* Method card 2 — cool accent (data-focused card) */
.income-method-cards article:nth-child(2) {
    border-color: var(--c-cool-soft);
}

/* Method card 4 — keep amber tone (non-accent, unchanged) */
.income-method-cards article:nth-child(4) {
    border-color: rgba(255, 194, 102, 0.16);
}

.income-layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(370px, 0.94fr);
}

.client-note-field {
    margin-top: 0.9rem;
}

.currency-segment {
    margin: 0;
}

.currency-segment-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.percent-input {
    grid-template-columns: minmax(0, 1fr) auto 34px;
}

/* % / rate suffix — warm (input decoration) */
.percent-input strong,
.exchange-rate-input strong {
    display: flex;
    align-items: center;
    padding-right: 0.6rem;
    color: var(--c-warm-strong);
    font-family: var(--font-mark);
    font-size: 0.78rem;
}

.exchange-rate-input {
    grid-template-columns: minmax(0, 1fr) auto 34px;
}

.fund-price-input,
.fund-distribution-input {
    grid-template-columns: auto minmax(0, 1fr) 34px;
}

.fund-section {
    margin-top: 1.5rem;
}

.calculator-submit-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
}

/* Primary action button — warm */
.calculate-results-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--c-warm-soft);
    border-radius: 8px;
    background: var(--c-warm-strong);
    color: var(--c-on-warm);
    font: inherit;
    font-family: var(--font-mark);
    font-size: 0.94rem;
    font-weight: 900;
    cursor: pointer;
    transition: all var(--transition);
}

.calculate-results-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -12px var(--c-warm-strong);
}

.calculator-submit-panel p {
    margin-top: 0.75rem;
    color: var(--c-text-faint);
    font-family: var(--font-content);
    font-size: 0.78rem;
    line-height: 1.6;
}

.fund-section-heading,
.fund-section-actions {
    display: flex;
    gap: 0.85rem;
}

.fund-section-heading {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.fund-section-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.icon-text-button {
    gap: 0.45rem;
}

.icon-text-button svg {
    width: 16px;
    height: 16px;
}

.icon-text-button path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Weight balanced status — warm (positive decisional) */
.weight-status {
    margin-bottom: 0.9rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
    color: var(--c-text-soft);
    font-family: var(--font-mark);
    font-size: 0.8rem;
    font-weight: 800;
}

.weight-status.is-balanced {
    border-color: var(--c-warm-soft);
    color: var(--c-warm-strong);
    background: var(--c-warm-glaze);
}

.weight-status.is-warning {
    border-color: rgba(255, 194, 102, 0.26);
    color: #ffd59a;
    background: rgba(255, 194, 102, 0.08);
}

.fund-list {
    display: grid;
    gap: 0.85rem;
}

.fund-row {
    padding: 1rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
}

.fund-row-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 0.85rem;
}

.fund-name-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg);
    color: var(--c-text);
    font: inherit;
    font-family: var(--font-content);
    font-size: 0.94rem;
    font-weight: 800;
    padding: 0 0.85rem;
    outline: none;
    transition: all var(--transition);
}

.fund-name-input:focus {
    border-color: var(--c-warm-strong);
    box-shadow: 0 0 0 3px var(--c-warm-glaze);
}

.remove-fund-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg);
    color: var(--c-text-faint);
    cursor: pointer;
    transition: all var(--transition);
}

.remove-fund-button:hover {
    border-color: rgba(255, 194, 102, 0.28);
    color: #ffd59a;
    background: rgba(255, 194, 102, 0.08);
}

.remove-fund-button svg {
    width: 17px;
    height: 17px;
}

.remove-fund-button path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.fund-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.field select.fund-risk {
    height: 48px;
    padding: 0 2.3rem 0 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    appearance: none;
    background-color: var(--c-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2.5L7 7.5L12 2.5' stroke='%23A86A4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 0.85rem center;
    background-repeat: no-repeat;
    background-size: 14px 10px;
    color: var(--c-text);
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.field select.fund-risk:focus {
    border-color: var(--c-warm-strong);
    box-shadow: 0 0 0 3px var(--c-warm-glaze);
}

/* Income metric values — cool (data readout) */
.income-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.result-content[hidden],
.result-pending-card[hidden],
.result-stale-banner[hidden] {
    display: none;
}

.result-pending-card,
.result-stale-banner {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.result-pending-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
}

.result-pending-card strong {
    display: block;
    color: var(--c-text);
    font-family: var(--font-content);
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.result-pending-card p {
    margin-top: 0.65rem;
    color: var(--c-text-faint);
    font-family: var(--font-content);
    font-size: 0.8rem;
    line-height: 1.65;
}

.result-stale-banner {
    background: rgba(255, 194, 102, 0.1);
    border: 1px solid rgba(255, 194, 102, 0.24);
    color: #ffd59a;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.55;
}

.income-metric,
.allocation-card,
.scenario-card {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
}

.income-metric {
    padding: 1rem;
}

.income-metric span,
.allocation-item span,
.scenario-item span {
    display: block;
    font-family: var(--font-mark);
    color: var(--c-text-faint);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* Income / allocation metric values — cool */
.income-metric strong,
.allocation-item strong,
.scenario-item strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--c-cool-strong);
    font-family: var(--font-content);
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.income-metric strong {
    font-size: 1.12rem;
}

/* Income progress card — warm (achievement/decisional) */
.income-progress-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--c-warm-soft);
    border-radius: 8px;
    background: var(--c-warm-glaze);
}

/* Income track fill — warm to cool gradient (blended progress) */
.income-track .coverage-fill {
    background: linear-gradient(90deg, var(--c-warm-strong), var(--c-cool-strong));
}

.scenario-card,
.allocation-card {
    margin-top: 1rem;
    padding: 1rem;
}

.scenario-card h3,
.allocation-card h3 {
    color: var(--c-text);
    font-size: 1rem;
    letter-spacing: 0;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.scenario-item {
    padding: 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg);
}

.scenario-item p {
    margin-top: 0.35rem;
    color: var(--c-text-faint);
    font-family: var(--font-content);
    font-size: 0.72rem;
    line-height: 1.45;
}

.allocation-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.allocation-item {
    padding: 0.75rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg);
}

.fund-detail-item {
    display: grid;
    gap: 0.7rem;
}

.fund-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fund-detail-meta span {
    padding: 0.24rem 0.48rem;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-text-soft);
    font-size: 0.68rem;
    letter-spacing: 0;
}

/* Allocation bar — warm (decisional: shows how much allocated) */
.allocation-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--c-surface-2);
}

.allocation-bar div {
    height: 100%;
    border-radius: inherit;
    background: var(--c-warm-strong);
}

.income-risk-card {
    margin-top: 1rem;
}

.income-risk-card.is-warning {
    border-color: rgba(255, 194, 102, 0.28);
}

.income-risk-card.is-good {
    border-color: var(--c-warm-soft);
}

.income-risk-card.is-alert {
    border-color: rgba(255, 118, 118, 0.28);
}

@media (max-width: 1120px) {
    .income-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .fund-section-heading {
        flex-direction: column;
    }

    .fund-section-actions {
        width: 100%;
        justify-content: stretch;
    }

    .fund-section-actions .copy-button {
        flex: 1 1 160px;
    }

    .fund-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scenario-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .income-metric-grid,
    .fund-grid {
        grid-template-columns: 1fr;
    }

    .fund-row-top {
        grid-template-columns: 1fr;
    }

    .remove-fund-button {
        width: 100%;
    }
}
