.trade-evo-tool {
    display: grid;
    gap: 18px;
}

.trade-evo-hero,
.trade-evo-panel {
    border: 1px solid rgba(226, 180, 67, .2);
    background: linear-gradient(145deg, rgba(19, 41, 32, .96), rgba(10, 20, 17, .98));
    box-shadow: var(--shadow);
}

.trade-evo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    border-radius: 8px;
}

.trade-evo-copy h2,
.trade-evo-panel h2 {
    margin: 0;
    color: #fff;
    line-height: 1.08;
}

.trade-evo-copy h2 {
    max-width: 760px;
    font-size: clamp(30px, 5vw, 58px);
}

.trade-evo-lede,
.trade-evo-answer p,
.trade-evo-panel p,
.trade-evo-list,
.trade-evo-result-card small {
    color: var(--muted);
}

.trade-evo-lede {
    max-width: 820px;
    margin: 14px 0 0;
    font-size: 16px;
}

.trade-evo-facts,
.trade-evo-links,
.trade-evo-filter-buttons,
.trade-evo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trade-evo-facts {
    margin-top: 18px;
}

.trade-evo-facts span,
.trade-evo-links a,
.trade-evo-filter-buttons button,
.trade-evo-tabs button,
.trade-evo-section-heading button {
    min-height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(226, 180, 67, .22);
    background: rgba(226, 180, 67, .08);
    color: #f5e8bf;
    font-weight: 800;
}

.trade-evo-facts span {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
}

.trade-evo-result-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(68, 201, 130, .28);
    background: rgba(7, 18, 14, .72);
}

.trade-evo-card-label,
.trade-evo-count {
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-evo-result-card output {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.12;
}

.trade-evo-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
}

.trade-evo-links a:hover,
.trade-evo-filter-buttons button:hover,
.trade-evo-tabs button:hover,
.trade-evo-section-heading button:hover {
    border-color: rgba(226, 180, 67, .5);
    background: rgba(226, 180, 67, .16);
}

.trade-evo-panel {
    padding: 18px;
    border-radius: 8px;
}

.trade-evo-answer {
    display: grid;
    grid-template-columns: minmax(190px, .35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.trade-evo-answer p,
.trade-evo-panel p {
    margin: 0;
}

.trade-evo-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.trade-evo-section-heading h2 {
    font-size: 22px;
}

.trade-evo-choice-grid,
.trade-evo-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.trade-evo-choice-grid label,
.trade-evo-check-grid label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(139, 160, 150, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.trade-evo-choice-grid input,
.trade-evo-check-grid input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.trade-evo-choice-grid strong,
.trade-evo-check-grid strong {
    display: block;
    color: #fff;
    line-height: 1.25;
}

.trade-evo-choice-grid em,
.trade-evo-check-grid em {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.35;
}

.trade-evo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.trade-evo-progress {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--gold-2);
    font-weight: 900;
}

.trade-evo-progress meter {
    width: 100%;
    height: 12px;
}

.trade-evo-tabs {
    margin-bottom: 12px;
}

.trade-evo-filter-buttons button,
.trade-evo-tabs button,
.trade-evo-section-heading button {
    cursor: pointer;
    padding: 7px 10px;
}

.trade-evo-filter-buttons button.is-active,
.trade-evo-tabs button.is-active {
    background: var(--gold);
    color: #08100d;
}

.trade-evo-mode-note {
    min-height: 126px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(68, 201, 130, .24);
    background: rgba(68, 201, 130, .08);
}

.trade-evo-mode-note strong {
    display: block;
    color: #fff;
    margin-bottom: 8px;
}

.trade-evo-filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.trade-evo-filter-row input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(139, 160, 150, .28);
    border-radius: 6px;
    background: rgba(8, 16, 13, .84);
    color: #fff;
    padding: 8px 10px;
}

.trade-evo-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(139, 160, 150, .18);
    border-radius: 8px;
}

.trade-evo-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.trade-evo-table th,
.trade-evo-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(139, 160, 150, .16);
    text-align: left;
    vertical-align: top;
}

.trade-evo-table th {
    color: #fff;
    background: rgba(226, 180, 67, .1);
    font-size: 12px;
    text-transform: uppercase;
}

.trade-evo-table td {
    color: var(--text);
}

.trade-evo-table small,
.trade-evo-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.trade-evo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(101, 168, 255, .12);
    color: #b9d6ff;
    font-size: 12px;
    font-weight: 900;
}

.trade-evo-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.trade-evo-list strong {
    color: #fff;
}

.trade-evo-log {
    margin: 0;
    min-height: 160px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid rgba(139, 160, 150, .2);
    border-radius: 8px;
    background: rgba(8, 16, 13, .86);
    color: #e9f4ee;
    padding: 14px;
}

@media (max-width: 860px) {
    .trade-evo-hero,
    .trade-evo-answer,
    .trade-evo-grid,
    .trade-evo-filter-row {
        grid-template-columns: 1fr;
    }

    .trade-evo-result-card {
        min-height: 150px;
    }

    .trade-evo-section-heading {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .trade-evo-hero,
    .trade-evo-panel {
        padding: 14px;
    }

    .trade-evo-copy h2 {
        font-size: 30px;
    }

    .trade-evo-filter-buttons,
    .trade-evo-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .trade-evo-filter-buttons button,
    .trade-evo-tabs button {
        width: 100%;
    }
}
