.tradfi-center-title {
    gap: 10px;
}

.tradfi-center-heading {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tradfi-center-heading h2 {
    white-space: nowrap;
}

.tradfi-center-heading span {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.tradfi-center-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.tradfi-center-tabs {
    display: inline-flex;
    gap: 3px;
    padding: 2px;
    border: 1px solid #33404b;
    border-radius: 6px;
    background: #10151a;
}

.tradfi-center-tabs button {
    height: 23px;
    padding: 0 9px;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    white-space: nowrap;
}

.tradfi-center-tabs button.active {
    color: #f4f8fb;
    background: #33414d;
}

.tradfi-center-pane {
    min-height: 0;
    overflow: hidden;
}

.tradfi-center-pane[data-tradfi-center-pane="heatmap"] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.tradfi-center-pane[data-tradfi-center-pane="heatmap"] .tradfi-heatmap {
    height: 100%;
}

.tradfi-center-pane[data-tradfi-center-pane="volume_share"] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.tradfi-center-pane[data-tradfi-center-pane="volume_share"] .tradfi-volume-share-content {
    height: auto;
}

.tradfi-center-pane[hidden] {
    display: none;
}

.tradfi-volume-share-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 34px;
    padding: 5px 8px;
    border-top: 1px solid #26313a;
    border-bottom: 1px solid #26313a;
    background: #0f161d;
}

.tradfi-volume-share-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.tradfi-volume-share-toolbar select {
    height: 24px;
    min-width: 126px;
    padding: 0 6px;
    border: 1px solid #35424c;
    border-radius: 5px;
    color: var(--text);
    background: #141d25;
    font-size: 10px;
}

.tradfi-volume-share-status {
    flex: 1 1 130px;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradfi-volume-share-exports {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tradfi-volume-share-exports a {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 7px;
    border: 1px solid #35424c;
    border-radius: 5px;
    color: #b9d8e5;
    background: #17232c;
    font-size: 9px;
    text-decoration: none;
}

.tradfi-volume-share-exports a:hover,
.tradfi-volume-share-exports a:focus-visible {
    border-color: #65c7e5;
    color: #f4fbff;
    background: #203946;
}

.tradfi-volume-share-content {
    height: calc(100% - 34px);
    min-height: 0;
    overflow: auto;
    padding: 8px;
}

.tradfi-volume-share-empty {
    min-height: 190px;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}

.tradfi-volume-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.tradfi-volume-kpi {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(125, 154, 178, .18);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(52, 79, 95, .32), rgba(19, 29, 38, .8));
}

.tradfi-volume-kpi span {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradfi-volume-kpi strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #f4f8fb;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradfi-volume-kpi small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #7890a0;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradfi-volume-history {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 34px;
    margin-bottom: 8px;
    padding: 5px 7px 4px;
    border: 1px solid rgba(125, 154, 178, .13);
    border-radius: 6px;
    background: rgba(8, 14, 20, .7);
}

.tradfi-volume-history-bar {
    flex: 1 1 0;
    min-width: 2px;
    max-width: 18px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #65c7e5, #277890);
    opacity: .82;
}

.tradfi-volume-history-bar.current {
    background: linear-gradient(180deg, #f3c969, #a86e2c);
    opacity: 1;
}

.tradfi-volume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tradfi-volume-card {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(125, 154, 178, .15);
    border-radius: 6px;
    background: rgba(13, 20, 27, .74);
}

.tradfi-volume-card.wide {
    grid-column: 1 / -1;
}

.tradfi-volume-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.tradfi-volume-card-head strong {
    color: #e9f1f6;
    font-size: 11px;
}

.tradfi-volume-card-head span {
    color: #718595;
    font-size: 9px;
    white-space: nowrap;
}

.tradfi-volume-bar-list {
    display: grid;
    gap: 5px;
}

.tradfi-volume-bar-row {
    min-width: 0;
}

.tradfi-volume-bar-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    font-size: 10px;
}

.tradfi-volume-bar-label span {
    min-width: 0;
    overflow: hidden;
    color: #cbd8df;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradfi-volume-bar-label strong {
    flex: 0 0 auto;
    color: #edf4f8;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.tradfi-volume-bar-track {
    height: 5px;
    margin-top: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #202d36;
}

.tradfi-volume-bar-track i {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #348ba8, #65c7e5);
}

.tradfi-volume-bar-meta {
    display: block;
    margin-top: 2px;
    color: #6e8492;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.tradfi-volume-table-wrap {
    overflow: auto;
}

.tradfi-volume-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 10px;
}

.tradfi-volume-table th,
.tradfi-volume-table td {
    padding: 4px 5px;
    border-bottom: 1px solid rgba(125, 154, 178, .1);
    text-align: left;
    vertical-align: middle;
}

.tradfi-volume-table th {
    color: #7890a0;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.tradfi-volume-table td {
    color: #d4e0e6;
    font-variant-numeric: tabular-nums;
}

.tradfi-volume-table td.amount,
.tradfi-volume-table td.share {
    color: #f0f6f9;
    text-align: right;
    white-space: nowrap;
}

.tradfi-volume-table td.symbol {
    max-width: 105px;
    overflow: hidden;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradfi-volume-table td.muted {
    color: #8295a2;
}

.tradfi-volume-coverage {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tradfi-volume-coverage-item {
    flex: 1 1 150px;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid rgba(125, 154, 178, .12);
    border-radius: 5px;
    background: rgba(255, 255, 255, .025);
}

.tradfi-volume-coverage-item strong,
.tradfi-volume-coverage-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradfi-volume-coverage-item strong {
    color: #dce8ed;
    font-size: 10px;
}

.tradfi-volume-coverage-item span {
    margin-top: 2px;
    color: #7890a0;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.tradfi-volume-coverage-item.ready strong { color: #67d59a; }
.tradfi-volume-coverage-item.partial strong { color: #e6c269; }
.tradfi-volume-coverage-item.unavailable strong { color: #ef7885; }

@media (max-width: 1120px) {
    .tradfi-volume-share-content { height: auto; max-height: none; }
}

@media (max-width: 720px) {
    .tradfi-center-title,
    .tradfi-center-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .tradfi-center-actions { align-items: flex-start; }
    .tradfi-volume-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tradfi-volume-grid { grid-template-columns: 1fr; }
    .tradfi-volume-card.wide { grid-column: auto; }
}
