.muted { color: #7f8c8d; font-size: 0.85em; }
.section-title { color: var(--primary); margin: 32px 0 10px; font-size: 1.2rem; }
.section-title.first { margin-top: 24px; }

.team-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.team-picker label { font-weight: bold; color: var(--primary); }
#teamSelect { max-width: 360px; }

/* ==================== POSITION RANK BARS ==================== */

.bars { display: grid; gap: 10px; max-width: 760px; }

.bar-row {
    display: grid;
    grid-template-columns: 64px 1fr 190px;
    align-items: center;
    gap: 12px;
}
.bar-label { font-weight: bold; color: var(--primary); text-align: right; }
.bar-track { background: #eef1f4; border-radius: 6px; height: 26px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; }
.bar-value { font-size: 0.95rem; }

.bar-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 12px 0 6px;
}
.bar-legend-scale { width: 160px; height: 10px; border-radius: 5px; display: inline-block; }

@media (max-width: 560px) {
    .bar-row { grid-template-columns: 52px 1fr; }
    .bar-value { grid-column: 1 / -1; padding-left: 64px; margin-top: -4px; }
}

/* ==================== TRADE SUGGESTIONS ==================== */

.trade-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}
.trade-partner { color: var(--primary); margin-bottom: 10px; }

.trade-cols {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}
.trade-col { padding-left: 10px; }
.trade-give { border-left: 4px solid #2b6cb0; }   /* a strength: blue, like the bars */
.trade-get { border-left: 4px solid #d9534f; }    /* a need: red */
.trade-col-title {
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7f8c8d;
    margin-bottom: 4px;
}
.trade-line { margin: 3px 0; font-size: 0.92rem; }
.trade-swap { font-size: 1.5rem; color: #95a5a6; }

.pos-chip {
    display: inline-block;
    min-width: 3em;
    text-align: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    padding: 1px 6px;
    margin-right: 8px;
}

@media (max-width: 560px) {
    .trade-cols { grid-template-columns: 1fr; }
    .trade-swap { transform: rotate(90deg); justify-self: center; }
}
