body { background: #f4f7fa; color: #263244; font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.page-wrap { max-width: 1440px; margin: 0 auto; padding: 22px 24px 50px; }
.panel-card { background: #fff; border: 1px solid #d8e0e8; border-radius: 4px; box-shadow: none; }
.replay-tabs {
    margin: 0;
    padding: 0 22px;
    background: #fbfcfe;
    border: 1px solid #d8e0e8;
    border-top: 0;
    border-radius: 0 0 4px 4px;
}
.replay-tabs > li > a {
    margin-right: 20px;
    padding: 13px 2px 11px;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    color: #647287;
    font-size: 13px;
    font-weight: 700;
}
.replay-tabs > li.active > a, .replay-tabs > li.active > a:hover, .replay-tabs > li.active > a:focus { background: #fff !important; border-bottom-color: #e24c55 !important; color: #243044 !important; }
.replay-tabs > li > a:focus, .metric-switch .btn:focus, .inventory-toolbar .btn:focus { outline: 2px solid #347bbb; outline-offset: 2px; }
.section { margin-top: 18px; }
.archived-replay-notice { overflow: hidden; border-top: 3px solid #b88a2d; }
.archived-replay-notice .archived-replay-head { justify-content: flex-start; }
.archived-replay-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    color: #586579;
    font-size: 12px;
    line-height: 1.45;
}
.archived-replay-icon { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; background: #f5ecd9; border: 1px solid #e1d0aa; border-radius: 3px; color: #8e6921; font-size: 17px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: #fbfcfe;
    border-bottom: 1px solid #dfe6ed;
}
.section-title {
    margin: 0;
    color: #1f2b3a;
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.2;
}
.section-sub { margin-left: 8px; color: #8b97a8; font-size: 12px; font-weight: 500; }
.metric-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.metric-switch .btn,
.inventory-toolbar .btn {
    float: none;
    padding: 5px 10px;
    background: #fff;
    border-color: #d9e0e8;
    border-radius: 2px;
    color: #6e7b8e;
    font-size: 12px;
    font-weight: 700;
}
.metric-switch .btn.active,
.metric-switch .btn.active:hover,
.metric-switch .btn.active:focus,
.inventory-toolbar .btn.active,
.inventory-toolbar .btn.active:hover,
.inventory-toolbar .btn.active:focus {
    background: #27364a !important;
    border-color: #27364a !important;
    color: #fff !important;
    box-shadow: none;
}
.timeline-section {
    display: block;
    width: 100%;
    max-width: none;
    clear: both;
    border-top: 3px solid #26364a;
    box-shadow: 0 8px 22px rgba(24,39,58,.13);
}
.timeline-section:not(.timeline-fixed) { box-shadow: 0 3px 10px rgba(24,39,58,.08); }
.timeline-sticky-placeholder { width: 100%; height: 0; }
.timeline-section.timeline-fixed { position: fixed; top: 10px; z-index: 100; margin-top: 0; }
.timeline-head { flex-wrap: wrap; gap: 10px; }
.player-name {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: #263244;
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}
.player-name > span { min-width: 0; }
.player-name-text {
    display: block;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-name .races {
    display: inline-block;
    flex: 0 0 auto;
    float: none;
    margin-right: 7px;
    vertical-align: middle;
}
.player-meta {
    display: block;
    color: #8a96a7;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}
.match-kicker {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.match-title {
    margin: 4px 0 3px;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.match-meta { color: rgba(255, 255, 255, .82); font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.versus { display: flex; align-items: center; justify-content: center; min-height: 70px; }
.team-name {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.team-name.red { justify-content: flex-end; color: #ff818a; }
.team-name.blue { justify-content: flex-start; color: #77baff; }
.header-player { display: inline-flex; min-width: 0; align-items: center; gap: 6px; }
.header-player .races, .header-player .leagues { display: inline-block; flex: 0 0 auto; float: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 4px rgba(0, 0, 0, .55)); }
.header-division-placeholder { display: inline-block; width: 32px; height: 32px; flex: 0 0 32px; }
.header-player-name, .inventory-player-name, .hero-player-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-chip {
    margin: 0 14px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, .17);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.head-actions { padding-top: 10px; text-align: right; white-space: nowrap; }
.btn-download {
    margin-right: 6px;
    padding: 10px 13px;
    background: rgba(15, 23, 34, .36);
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
    font-weight: 700;
}
.btn-download:hover, .btn-download:focus { background: #fff; border-color: #fff; color: #26364a; }
.btn-viewer {
    padding: 10px 16px;
    background: #fff;
    border-color: #fff;
    color: #27364a;
    font-weight: 700;
}
.btn-viewer:hover, .btn-viewer:focus { background: #eef2f6; border-color: #eef2f6; color: #182435; }
@media (max-width: 991px) {
    .page-wrap { padding: 15px; }
    .versus { flex-wrap: wrap; justify-content: flex-start; min-height: 44px; }
    .team-name { flex: 0 1 auto; }
    .team-name.red { justify-content: flex-start; }
    .head-actions { padding-top: 8px; text-align: left; }
}
@media (max-width: 640px) {
    .page-wrap { padding: 12px 8px 30px; }
    .section-head { display: block; }
    .metric-switch { justify-content: flex-start; margin-top: 9px; }
    .replay-tabs { overflow-x: auto; white-space: nowrap; }
    .replay-tabs > li { display: inline-block; float: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.overview-page .chart-wrap { position: relative; width: 100%; padding: 12px 0 8px; overflow: hidden; }
.timeline { display: block; width: 100% !important; max-width: none; height: 205px; }
.glance-grid { padding: 14px; }
.team-card, .inventory-card, .team-economy { overflow: hidden; border: 1px solid #d8e0e8; border-radius: 3px; }
.team-card.team-red, .inventory-card.team-1, .team-economy.red { border-top: 3px solid #d54b56; }
.team-card.team-blue, .inventory-card.team-2, .team-economy.blue { border-top: 3px solid #347bbb; }
.totals {
    display: grid;
    grid-template-columns: minmax(120px, 1.45fr) .95fr .72fr .78fr .78fr 1.08fr 1.08fr;
    column-gap: 6px;
    padding: 6px 10px;
    background: #eef2f6;
    border-bottom: 1px solid #e4e9ef;
    color: #647287;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
}
.totals span:not(:first-child), .stat, .unit-stats-table th:not(:first-child), .unit-stats-table td:not(:first-child), .team-economy-head span:not(:first-child), .player-stat { text-align: right; }
.player-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.45fr) .95fr .72fr .78fr .78fr 1.08fr 1.08fr;
    column-gap: 6px;
    align-items: center;
    min-height: 58px;
    padding: 5px 10px;
    border-bottom: 1px solid #edf0f4;
}
.player-row:last-child, .inventory-section:last-child, .hero-unit-card:last-of-type, .economy-player:last-child, .build-row:last-child { border-bottom: 0; }
.player, .build-action-copy { min-width: 0; }
.player-sub {
    display: block;
    color: #8a96a7;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}
.stat strong { display: block; color: #263244; font-size: 14px; font-variant-numeric: tabular-nums; }
.resource-values {
    display: flex !important;
    justify-content: flex-end;
    gap: 0;
    font-size: 12px !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.mineral-value { color: #347bbb; }
.vespene-value { color: #267f46; }
.resource-values > * + *:before { margin: 0 5px; color: #98a2b1; font-weight: 400; content: "/"; }
.supply-bar {
    width: 58px;
    height: 4px;
    margin: 4px 0 0 auto;
    background: #e6eaf0;
    border-radius: 2px;
    overflow: hidden;
}
.team-red .supply-bar i, .inventory-card.team-1 .inventory-supply .supply-bar i { display: block; height: 100%; background: #d54b56; }
.team-blue .supply-bar i, .inventory-card.team-2 .inventory-supply .supply-bar i { display: block; height: 100%; background: #347bbb; }
.inventory-toolbar { padding: 12px 16px; background: #eef2f6; border-bottom: 1px solid #e5eaf0; }
.inventory-grid, .build-comparison-body { padding: 10px; }
.inventory-column, .hero-team-card { margin-bottom: 10px; }
.inventory-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e7ed;
    font-size: 15px;
    font-weight: 800;
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    letter-spacing: .01em;
}
.inventory-title .race {
    flex: 0 0 auto;
    margin-left: 8px;
    color: #8894a4;
    font-size: 12px;
    font-weight: 600;
}
.inventory-title-main { display: flex; align-items: baseline; min-width: 0; }
.inventory-supply { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.inventory-supply-value {
    min-width: 58px;
    color: #263244;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.inventory-supply .supply-bar { width: 64px; height: 5px; margin: 0; }
.inventory-section { padding: 0 10px 0; border-bottom: 1px solid #edf0f4; }
.inventory-label {
    margin-bottom: 5px;
    color: #657489;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
}
.icon-list { min-height: 42px; }
.icon-list:before, .icon-list:after, .hero-kill-icons:before, .hero-kill-icons:after, .economy-page .chart-wrap:before, .economy-page .chart-wrap:after { display: table; content: " "; }
.icon-list:after, .hero-kill-icons:after, .economy-page .chart-wrap:after { clear: both; }
.inventory-empty { display: inline-block; padding: 12px 2px; color: #929dad; font-size: 12px; }
.inventory-empty-page { display: block; padding: 24px; text-align: center; }
.icon-slot,
.hero-kill-item {
    position: relative;
    float: left;
    width: 44px;
    height: 44px;
    margin: 0 2px 2px 0;
    background: #202733;
    overflow: hidden;
}
.icon-slot { border: 1px solid #bfc9d5; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.icon-slot > div { transform: translate(1px, 1px); }
.overview-section-toolbar,
.chat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #dfe6ed;
}
.overview-section-toolbar { padding: 12px 16px; }
.overview-section-toolbar .section-title { flex: 1 1 auto; }
.unit-stats-scroll, .table-wrap { overflow-x: auto; }
.unit-stats-table { width: 100%; min-width: 840px; margin: 0; table-layout: fixed; }
.unit-stats-table > thead > tr > th {
    padding: 8px 10px;
    background: #eef2f6;
    border-bottom: 1px solid #d8e0e8;
    color: #637188;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}
.unit-stats-table > tbody > tr > td {
    padding: 8px 10px;
    border-top: 1px solid #e8edf2;
    color: #273244;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
.unit-stats-table .unit-player-column { width: 24%; }
.unit-stats-table .player-name, .overall-resource-table>tbody>tr>td:first-child, .chat-table .player-name { text-align: left; }
.unit-stats-name-line, .build-action-player, .build-action-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-stats-name-line .player-name-text { display: inline; }
.unit-stats-team-label { color: #7d8ba0; font-size: 12px; font-weight: 500; }
.unit-stat-value { white-space: nowrap; }
.hero-team-grid { padding: 12px 8px 4px; }
.hero-team-column { padding-right: 7px; padding-left: 7px; }
.hero-team-card { background: #eef2f6; overflow: hidden; }
.hero-team-heading {
    margin: 0;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e7ed;
    color: #273244;
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
}
.hero-unit-card {
    display: block;
    min-height: 106px;
    margin: 0;
    border: 1px solid #d7e0e9;
    border-left-width: 3px;
    border-radius: 3px;
    background: #fff;
    overflow: hidden;
}
.hero-player-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; }
.hero-team-card.team-red .hero-unit-card { border-left-color: #d54b56; }
.hero-team-card.team-blue .hero-unit-card { border-left-color: #347bbb; }
.hero-unit-main {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 10px;
    background: #f7f9fb;
    border-bottom: 1px solid #e2e7ed;
}
.hero-unit-portrait {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border: 1px solid #cfd7e1;
    border-radius: 3px;
    background: #202733;
    overflow: hidden;
}
.hero-no-unit {
    display: block;
    color: #8a96a7;
    font-size: 22px;
    line-height: 42px;
    text-align: center;
}
.hero-unit-copy { flex: 1 1 auto; min-width: 0; }
.hero-player-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #647287;
    font-size: 12px;
    font-weight: 800;
}
.hero-unit-name {
    margin: 0 0 6px;
    color: #1f2b3a;
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
    word-wrap: break-word;
}
.hero-team-card.team-red .hero-unit-name, .snapshot-cell strong.team-red { color: #c93647; }
.hero-team-card.team-blue .hero-unit-name, .snapshot-cell strong.team-blue { color: #2d73b9; }
.hero-kill-total { margin-top: 4px; color: #273244; font-size: 12px; }
.hero-kill-total strong { font-size: 14px; }
.hero-kill-breakdown { width: 100%; min-width: 0; padding: 9px 10px 7px; }
.hero-kill-label { margin-bottom: 5px; color: #69778b; font-size: 12px; font-weight: 800; }
.hero-kill-item { border: 1px solid #cfd7e1; border-radius: 3px; }
.hero-kill-count {
    position: absolute;
    right: 2px;
    bottom: 1px;
    z-index: 2;
    min-width: 17px;
    padding: 1px 3px;
    border-radius: 2px;
    background: rgba(18, 25, 35, .88);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}
.hero-empty { padding: 18px; color: #8a96a7; font-size: 12px; text-align: center; }
@media (min-width: 992px) {
    .inventory-column[data-team="2"] { float: right; }
    .hero-team-column.col-md-12 .hero-player-list { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (max-width: 991px) {
    .team-column + .team-column, .inventory-column + .inventory-column { margin-top: 14px; }
    .hero-team-column + .hero-team-column { margin-top: 8px; }
    .timeline { height: 170px; }
}
@media (max-width: 640px) {
    .overview-section-toolbar { display: block; }
    .overview-section-toolbar .metric-switch { margin-top: 9px; }
    .totals, .player-row { grid-template-columns: 1.4fr repeat(2, 1fr); }
    .totals span:nth-child(n+4), .player-row > .stat:nth-child(n+4) { display: none; }
}
.economy-page .chart-wrap { padding: 10px 16px 2px; }
.economy-page .chart-wrap .active_army_div { float: none!important; width: 100%!important; padding-left: 0; padding-right: 0; }
.snapshot-bar {
    display: flex;
    clear: both;
    float: none;
    width: 100%;
    border-top: 1px solid #dfe6ed;
    background: #fff;
}
.snapshot-cell {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 12px;
    border-right: 1px solid #e4e9ef;
    text-align: right;
}
.snapshot-cell:first-child { flex-grow: 1.2; text-align: left; }
.snapshot-cell:last-child { border-right: 0; }
.snapshot-cell small, .build-snapshot-cell small { display: block; color: #718096; font-size: 12px; }
.snapshot-cell small { text-transform: none; letter-spacing: .01em; }
.snapshot-cell strong, .build-snapshot-cell strong { display: block; margin-top: 2px; color: #172843; font-variant-numeric: tabular-nums; }
.snapshot-cell strong { font-size: 15px; }
.mineral { color: #347bbb!important; }
.vespene { color: #267f46!important; }
.summary-grid { padding: 12px; }
.team-economy-head {
    display: grid;
    grid-template-columns: 1.2fr repeat(3,1fr);
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #dfe5ec;
    background: #eef2f6;
    color: #647287;
    font-size: 12px;
    font-weight: 800;
    font-family: "Arial Narrow","Segoe UI",Arial,sans-serif;
    letter-spacing: .01em;
}
.economy-player {
    display: grid;
    grid-template-columns: 1.2fr repeat(3,1fr);
    align-items: center;
    min-height: 58px;
    padding: 6px 10px;
    border-bottom: 1px solid #edf0f4;
}
.player-stat strong { display: block; font-size: 13px; }
.economy-table { min-width: 1080px; margin: 0; }
.economy-table>thead>tr>th {
    padding: 8px 10px;
    border-bottom: 1px solid #dfe5ec;
    background: #eef2f6;
    color: #647287;
    font-size: 12px;
    letter-spacing: .01em;
    text-transform: none;
}
.economy-table>tbody>tr>td {
    padding: 9px 10px;
    border-top: 1px solid #edf0f4;
    vertical-align: middle;
    font-size: 13px;
    border-top-color: #e6ebf0;
}
.economy-table .num { text-align: right; white-space: nowrap; }
.resource-pair {
    display: inline-flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0;
    min-width: 116px;
}
.resource-pair>span { display: inline-block; font-weight: 700; }
.resource-pair>span+span:before { margin: 0 7px; color: #98a2b1; font-weight: 400; content: "/"; }
.economy-help {
    display: inline-block;
    margin-left: 5px;
    color: #8491a3;
    font-size: 12px;
    cursor: help;
    vertical-align: middle;
}
.economy-help:hover { color: #347bbb; outline: 0; }
.economy-help:focus { color: #347bbb; outline: 2px solid #347bbb; outline-offset: 2px; }
.economy-help-popup {
    position: absolute;
    z-index: 10050;
    display: none;
    width: 290px;
    padding: 9px 11px;
    border: 1px solid #1d2938;
    border-radius: 4px;
    background: #26364a;
    box-shadow: 0 4px 12px rgba(24,39,58,.24);
    color: #fff;
    font-family: "Helvetica Neue",Arial,sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    white-space: normal;
    pointer-events: none;
}
.economy-help-popup:after {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: #26364a;
    border-right: 1px solid #1d2938;
    border-bottom: 1px solid #1d2938;
    content: "";
    transform: rotate(45deg);
}
.economy-help-popup.is-below:after {
    top: -6px;
    bottom: auto;
    border: 0;
    border-top: 1px solid #1d2938;
    border-left: 1px solid #1d2938;
}
.progress.slim {
    width: 94px;
    height: 5px;
    margin: 4px 0 0 auto;
    background: #e8ecf1;
    box-shadow: none;
    border-radius: 0;
}
.progress.slim .progress-bar { background: #347bbb; box-shadow: none; }
.efficiency-good { color: #318450; font-weight: 800; }
.efficiency-warn { color: #c17a23; font-weight: 800; }
.economy-live-sq {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    min-width: 94px;
}
.economy-sq-score { color: #52647c; font-size: 16px; font-weight: 800; }
.economy-sq-label { color: #7d899a; font-size: 12px; white-space: nowrap; }
.economy-sq-score.sq-good { color: #318450; }
.economy-sq-score.sq-warn { color: #b36f19; }
.economy-sq-score.sq-poor { color: #c14b54; }
@media(max-width:991px) {
    .summary-grid .col-md-6+.col-md-6 { margin-top: 12px; }
    .team-economy-head, .economy-player { grid-template-columns: 1.3fr repeat(2,1fr); }
    .team-economy-head span:nth-child(n+4), .economy-player .player-stat:nth-child(n+4) { display: none; }
}
@media(max-width:640px) {
    .snapshot-bar { flex-wrap: wrap; }
    .snapshot-cell { flex: 0 0 33.333%; }
    .snapshot-cell:first-child { flex-grow: 0; }
    .snapshot-cell:nth-child(n+4) { display: none; }
}
.economy-table strong { font-family: "Arial Narrow","Segoe UI",Arial,sans-serif; letter-spacing: .01em; }
.economy-table>tbody>tr:hover>td, .overall-resource-table>tbody>tr:hover>td { background: #f8fafc; }
.overall-resource-table { min-width: 780px; margin: 0; }
.overall-resource-table>thead>tr>th {
    padding: 8px 10px;
    border-bottom: 1px solid #d8e0e8;
    background: #eef2f6;
    color: #647287;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}
.overall-resource-table>thead>tr>th:first-child { width: 250px; text-align: left; }
.overall-resource-table>tbody>tr>td {
    padding: 8px 10px;
    border-top: 1px solid #edf0f4;
    background: #fff;
    color: #34445a;
    font-size: 13px;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}
.overall-resource-table>tbody>tr.team-1>td:first-child, .chat-row.team-1 > td:first-child { border-left: 3px solid #d54b56; }
.overall-resource-table>tbody>tr.team-2>td:first-child, .chat-row.team-2 > td:first-child { border-left: 3px solid #347bbb; }
.overall-best { margin-left: 5px; color: #c58b20; font-size: 12px; }
.overall-sq { color: #52647c; font-weight: 700; }
.overall-sq strong { color: #172843; }
.overall-color-swatch {
    display: inline-block;
    width: 54px;
    height: 12px;
    border: 1px solid rgba(23,40,67,.16);
    border-radius: 2px;
    vertical-align: middle;
}
.build-orders-page .build-timeline-body { padding: 16px 18px 10px; }
.build-filter .btn { min-width: 88px; }
.build-rail-wrap { position: relative; padding: 26px 4px 38px; }
.build-rail { position: relative; height: 36px; background: linear-gradient(to bottom, transparent 16px, #b8c7d6 16px, #b8c7d6 20px, transparent 20px); cursor: crosshair; }
.build-rail:focus { outline: 2px solid #347bbb; outline-offset: 8px; }
.build-tick {
    position: absolute;
    top: 0;
    width: 1px;
    height: 36px;
    background: #a9b9ca;
    opacity: .58;
}
.build-tick-label {
    position: absolute;
    top: 42px;
    color: #617087;
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(-50%);
}
.build-tick-label.first { transform: none; }
.build-tick-label.last { transform: translateX(-100%); }
.build-marker {
    position: absolute;
    z-index: 2;
    top: 3px;
    width: 9px;
    height: 9px;
    margin-left: -4px;
    border: 1px solid rgba(255,255,255,.9);
    background: #d54b56;
    box-shadow: 0 1px 2px rgba(29,44,61,.18);
}
.build-marker.team-2 { top: 24px; background: #347bbb; }
.build-marker.buildings { border-radius: 1px; }
.build-marker.expansion {
    width: 11px;
    height: 10px;
    border: 0;
    border-radius: 0;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.build-marker.is-cluster {
    width: 18px;
    height: 14px;
    margin-left: -9px;
    border-radius: 8px;
    clip-path: none;
    transform: none;
}
.build-marker.is-cluster:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    color: #fff;
    content: attr(data-count);
    font-size: 12px;
    font-weight: 800;
    line-height: 12px;
    text-align: center;
}
.build-playhead {
    position: absolute;
    z-index: 4;
    top: -28px;
    bottom: -5px;
    width: 1px;
    background: #24364c;
    pointer-events: none;
    transition: left .18s ease-out;
}
.build-playhead:after {
    position: absolute;
    top: 13px;
    left: -5px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #24364c;
    box-shadow: 0 1px 2px rgba(15,31,48,.25);
    content: '';
}
.build-playhead-label {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 3px 7px;
    border-radius: 3px;
    background: #24364c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transform: translateX(-50%);
    white-space: nowrap;
}
.build-snapshot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e1e7ed; }
.build-snapshot-cell { padding: 8px 12px 2px; border-right: 1px solid #e1e7ed; text-align: center; }
.build-snapshot-cell:last-child { border-right: 0; }
.build-snapshot-cell strong { font-size: 16px; }
.build-snapshot-cell.team-1 strong { color: #d54b56; }
.build-snapshot-cell.team-2 strong { color: #347bbb; }
.build-view-controls, .chat-page .chat-controls { display: flex; align-items: center; gap: 7px; }
.build-player-select,
.chat-player-select {
    width: 210px;
    height: 34px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #cfd9e4;
    border-radius: 3px;
    background-color: #fff;
    color: #52647c;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}
.build-player-select:hover, .chat-player-select:hover { border-color: #9eb1c4; }
.build-player-select:focus, .chat-player-select:focus { border-color: #347bbb; outline: 2px solid rgba(52,123,187,.2); outline-offset: 1px; }
.build-player-select.is-active, .chat-player-select.is-active { border-color: #347bbb; color: #17345e; }
.build-team-grid { display: flex; margin: 0 -5px; }
.build-team-column { width: 50%; padding: 0 5px; }
.build-team-shell {
    overflow: hidden;
    border: 1px solid #d8e0e8;
    border-top: 4px solid #d54b56;
    border-radius: 4px;
    background: #fbfcfe;
}
.build-team-shell.team-2 { border-top-color: #347bbb; }
.build-team-title {
    margin: 0;
    padding: 6px 11px 7px;
    color: #bd2e3a;
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
}
.build-team-shell.team-2 .build-team-title { color: #246aa8; }
.build-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 5px; padding: 0 5px 5px; }
.build-roster-player {
    display: flex;
    min-width: 0;
    min-height: 57px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid #d8e0e8;
    border-radius: 3px;
    background: #fff;
}
.build-marker.is-filtered, .build-marker.is-collapsed, .build-roster-player.is-filtered, .build-row.is-filtered, .build-team-column.is-filtered, .chat-row.is-filtered, .chat-empty.is-filtered { display: none; }
.build-roster-player .player-name { flex: 1 1 auto; }
.build-player-supply { width: 76px; margin-left: 7px; text-align: right; }
.build-player-supply strong { color: #172843; font-size: 13px; }
.build-player-supply .progress { height: 7px; margin: 4px 0 0; background: #dce5ed; box-shadow: none; }
.build-player-supply .progress-bar { background: #d54b56; box-shadow: none; transition: width .18s ease; }
.team-2 .build-player-supply .progress-bar { background: #347bbb; }
.build-team-feed {
    margin: 0 5px 5px;
    overflow: hidden;
    border: 1px solid #d8e0e8;
    border-radius: 3px;
    background: #fff;
}
.build-column-head, .build-row { display: grid; grid-template-columns: 70px 82px 70px minmax(190px, 1fr); align-items: center; }
.build-column-head {
    min-height: 30px;
    border-bottom: 1px solid #dfe6ed;
    background: #f4f7fa;
    color: #617087;
    font-size: 12px;
    font-weight: 700;
}
.build-column-head span, .build-row > div { padding: 5px 7px; }
.build-column-head span:not(:last-child), .build-row > div:not(:last-child) { border-right: 1px solid #e6ebf0; }
.build-list {
    position: relative;
    max-height: 560px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #a8b8c8 #edf2f6;
    scrollbar-width: thin;
}
.build-list:focus { outline: 2px solid #347bbb; outline-offset: -2px; }
.build-list::-webkit-scrollbar { width: 10px; }
.build-list::-webkit-scrollbar-track { background: #edf2f6; }
.build-list::-webkit-scrollbar-thumb { border: 2px solid #edf2f6; border-radius: 6px; background: #a8b8c8; }
.build-list:before {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 1px;
    background: #ccd8e4;
    content: '';
}
.build-row {
    position: relative;
    min-height: 46px;
    border-bottom: 1px solid #edf1f5;
    color: #263b5c;
    cursor: pointer;
    font-size: 13px;
    transition: background-color .16s ease, opacity .16s ease;
}
.build-row:hover { background: #f2f7fb; }
.build-row:focus { z-index: 3; outline: 2px solid #347bbb; outline-offset: -2px; }
.build-row:before {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 6px;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #c7d5e2;
    content: '';
}
.build-row.is-current { background: #e6f2fc; }
.build-row.is-current:before { background: #234f7d; }
.build-time { padding-left: 20px !important; font-weight: 700; }
.build-action { display: flex; min-width: 0; align-items: center; gap: 7px; }
.build-action-icon { width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden; }
.build-action-icon > div { margin: 0 !important; }
.build-action-player { color: #718096; font-size: 12px; line-height: 1.15; }
.build-action-name { color: #17345e; line-height: 1.25; }
.build-empty { padding: 28px 16px; color: #7c8999; text-align: center; }
.build-team-grid.single-team .build-team-column { width: 100%; }
.build-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 12px 0 0;
    padding: 10px 8px 2px;
    border-top: 1px solid #dfe6ed;
    color: #66758a;
    font-size: 12px;
}
.build-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-shape { display: inline-block; width: 9px; height: 9px; background: #7b8ca2; }
.legend-shape.unit, .build-marker.units { border-radius: 50%; }
.legend-shape.upgrade, .build-marker.upgrades { transform: rotate(45deg); }
.build-caption { margin-left: auto; }
@media (max-width: 900px) {
    .build-team-grid { display: block; }
    .build-team-column { width: 100%; }
    .build-team-column + .build-team-column { margin-top: 10px; }
    .build-snapshot { grid-template-columns: repeat(2, 1fr); }
    .build-snapshot-cell:nth-child(2) { border-right: 0; }
    .build-snapshot-cell:nth-child(-n+2) { border-bottom: 1px solid #e1e7ed; }
}
@media (max-width: 620px) {
    .build-orders-page .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .build-filter, .build-team-filter { display: flex; width: 100%; }
    .build-filter .btn { min-width: 0; flex: 1 1 auto; padding-left: 6px; padding-right: 6px; }
    .build-view-controls { width: 100%; align-items: stretch; flex-direction: column; }
    .build-team-filter .btn { flex: 1 1 auto; }
    .build-player-select { width: 100%; }
    .build-column-head, .build-row { grid-template-columns: 57px 66px 58px minmax(112px, 1fr); }
    .build-roster { grid-template-columns: 1fr; }
    .build-caption { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .build-playhead { transition: none; }
}
.chat-toolbar { padding: 10px 12px; background: #fff; }
.chat-search { position: relative; width: 420px; max-width: 100%; }
.chat-search .glyphicon {
    position: absolute;
    top: 10px;
    left: 11px;
    color: #8b97a8;
    pointer-events: none;
}
.chat-search-input {
    height: 34px;
    padding-left: 33px;
    border-color: #cfd9e4;
    border-radius: 3px;
    color: #263244;
    font-size: 12px;
    box-shadow: none;
}
.chat-search-input:focus { border-color: #347bbb; box-shadow: 0 0 0 2px rgba(52,123,187,.15); }
.chat-result-count { color: #718096; font-size: 12px; white-space: nowrap; }
.chat-scroll { max-height: 720px; overflow: auto; }
.chat-table { margin: 0; table-layout: fixed; }
.chat-table > thead > tr > th {
    position: sticky;
    z-index: 5;
    top: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #d8e0e8;
    background: #eef2f6;
    color: #617087;
    font-size: 12px;
    font-weight: 800;
}
.chat-table .chat-player-column { width: 270px; }
.chat-table .chat-time-column { width: 110px; }
.chat-table > tbody > tr > td {
    padding: 8px 10px;
    border-top: 1px solid #edf1f5;
    background: #fff;
    color: #263244;
    font-size: 13px;
    vertical-align: middle;
}
.chat-table > tbody > tr:first-child > td { border-top: 0; }
.chat-row:hover > td { background: #f7fafc; }
.chat-time {
    position: relative;
    padding-left: 28px !important;
    color: #425873 !important;
    font-weight: 800;
    white-space: nowrap;
}
.chat-time:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 1px;
    background: #cfdae5;
    content: '';
}
.chat-time:after {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #8fa3b8;
    box-shadow: 0 0 0 1px #cfdae5;
    content: '';
}
.team-1 .chat-time:after { background: #d54b56; }
.team-2 .chat-time:after { background: #347bbb; }
.chat-message { line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-empty { padding: 44px 18px; color: #7b899b; text-align: center; }
.chat-empty strong { display: block; margin-bottom: 4px; color: #263244; font-size: 14px; }
@media (max-width: 800px) {
    .chat-page .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .chat-controls { width: 100%; align-items: stretch !important; flex-direction: column; }
    .chat-team-filter { display: flex; width: 100%; }
    .chat-team-filter .btn { flex: 1 1 auto; }
    .chat-player-select { width: 100%; }
    .chat-toolbar { align-items: stretch; flex-direction: column; gap: 7px; }
    .chat-search { width: 100%; }
    .chat-result-count { text-align: right; }
    .chat-table .chat-player-column { width: 210px; }
}
@media (max-width: 560px) {
    .chat-table .chat-player-column { width: 68px; }
    .chat-table .chat-time-column { width: 84px; }
    .chat-table .player-name > span { display: none; }
    .chat-time { padding-left: 24px !important; }
    .chat-time:before { left: 12px; }
    .chat-time:after { left: 8px; }
}

