.performance-toolbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 18px 0 12px;
  display: flex;
}

.performance-toolbar h3 {
  margin: 0 0 4px;
}

.performance-controls {
  gap: 8px;
  display: flex;
}

.performance-controls .match-filter {
  min-width: 150px;
}

.performance-match {
  overflow: hidden;
}

.performance-team {
  border-top: 1px solid var(--line);
}

.performance-team-header {
  border-bottom: 1px solid var(--line);
  background: #030303;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  display: flex;
}

.performance-team-header > div {
  align-items: center;
  gap: 9px;
  display: flex;
}

.performance-team-header strong {
  font-size: 16px;
}

.performance-team-header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.performance-team-radiant .performance-team-header > div > strong {
  color: #62c9aa;
}

.performance-team-dire .performance-team-header > div > strong {
  color: #ef7069;
}

.performance-team-kills {
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.performance-team-kills strong {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
}

.performance-team-radiant .performance-team-kills strong {
  color: #62c9aa;
}

.performance-team-dire .performance-team-kills strong {
  color: #ef7069;
}

.performance-table-wrap {
  scrollbar-width: thin;
  width: 100%;
  overflow-x: auto;
}

.performance-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
  min-width: 960px;
}

.performance-table th {
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 11px;
}

.performance-table td {
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  padding: 11px 12px;
}

.performance-table tbody tr:last-child td {
  border-bottom: 0;
}

.player-slot-0 {
  --player-color: #3375ff;
}

.player-slot-1 {
  --player-color: #66ffbf;
}

.player-slot-2 {
  --player-color: #bf00bf;
}

.player-slot-3 {
  --player-color: #f3f00b;
}

.player-slot-4 {
  --player-color: #ff6b00;
}

.player-slot-5 {
  --player-color: #fe86c2;
}

.player-slot-6 {
  --player-color: #a1b447;
}

.player-slot-7 {
  --player-color: #65d9f7;
}

.player-slot-8 {
  --player-color: #008321;
}

.player-slot-9 {
  --player-color: #a46900;
}

.performance-player-cell {
  min-width: 350px;
  position: relative;
  padding-left: 15px !important;
}

.performance-player-cell:before {
  content: "";
  background: var(--player-color);
  width: 2px;
  position: absolute;
  inset: 8px auto 8px 0;
}

.performance-identity {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.hero-portrait {
  object-fit: cover;
  background: #080808;
  border: 1px solid #252525;
  flex: none;
  width: 64px;
  height: 36px;
  display: block;
}

.hero-portrait.empty {
  background: #080808;
}

.performance-player-copy {
  min-width: 0;
}

.performance-player-name {
  color: var(--text);
  align-items: center;
  gap: 7px;
  line-height: 1.2;
  display: flex;
}

.player-color-dot {
  background: var(--player-color);
  flex: none;
  width: 7px;
  height: 7px;
}

.performance-hero-name {
  color: #c7cbd3;
  margin-top: 3px;
  font-size: 13px;
  display: block;
}

.performance-hero-name small {
  color: var(--muted);
  margin-left: 5px;
}

.performance-ids {
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  gap: 3px 14px;
  margin: 7px 0 0;
  display: grid;
}

.performance-ids div {
  min-width: 0;
}

.performance-ids dt {
  color: #666d78;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1.1;
}

.performance-ids dd {
  color: #9299a6;
  white-space: nowrap;
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.2;
}

.performance-ids.unavailable {
  color: #666d78;
  font-size: 10px;
  display: block;
}

.kda-cell {
  white-space: nowrap;
}

.kda-cell span {
  color: var(--muted);
  margin: 0 5px;
}

.performance-empty {
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

@media (width <= 760px) {
  .performance-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .performance-controls {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .performance-controls .match-filter {
    width: 100%;
    min-width: 0;
  }

  .performance-table-wrap {
    margin-inline: 0;
  }

  .performance-player-cell {
    min-width: 310px;
  }
}

:root {
  --bg: #000;
  --panel: #050505;
  --panel-2: #080808;
  --field: #010101;
  --line: #ffffff17;
  --line-2: #ffffff2e;
  --text: #f4f1ea;
  --soft: #c9c5bc;
  --muted: #8b8990;
  --faint: #55545b;
  --gold: #9d8f68;
  --gold-2: #d8c992;
  --red: #ef554f;
  --green: #35c995;
  --shadow: none;
}

body {
  background: radial-gradient(circle at 50% -180px, #ffffff0e, #0000 360px), linear-gradient(90deg, #ffffff06 1px, #0000 1px) 0 0 / 56px 56px, #000;
}

body:before {
  display: none;
}

.topbar {
  background: #000000fa;
  border-bottom: 1px solid #ffffff1f;
  grid-template-columns: 1fr auto 1fr;
  margin: -14px -20px 18px;
  padding: 16px 20px 18px;
}

.brand-lockup {
  gap: 5px;
}

.brand-title {
  gap: 14px;
}

.brand-mark, .brand-mark img {
  flex-basis: 70px;
  width: 70px;
  height: 70px;
}

.brand-mark img {
  filter: none;
  object-fit: contain;
}

.brand-lockup h1 {
  letter-spacing: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: .95;
}

.brand-tagline {
  color: #9d9686;
  letter-spacing: .22em;
  font-size: 10px;
}

.eyebrow {
  color: #a79b78;
  letter-spacing: .22em;
}

.eyebrow:before {
  content: "";
}

.topbar-actions {
  gap: 10px;
}

.topbar-link {
  min-width: 118px;
}

.workspace-grid {
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 18px;
}

.control-rail, .workbench {
  gap: 12px;
}

.tool-panel, .utility-panel, .empty-workbench, .progress-panel, .results-panel, .metric-card, .chart-card, .match-card, .steam-result, .steam-data-section, .report-table, .candidate-list, .confidence-card, .file-item, .mini-stat, .steam-field, .upload-drop, .timeline-wrap, .raw-json pre, .discord-panel {
  border: 1px solid var(--line);
  box-shadow: none;
  background: linear-gradient(145deg, #ffffff07, #ffffff01 45%), #020202;
  border-radius: 4px;
}

.tool-panel, .utility-panel, .empty-workbench, .progress-panel, .results-panel {
  padding: 16px;
}

.section-heading, .results-heading {
  margin-bottom: 13px;
}

.section-heading h2, .results-heading h2 {
  letter-spacing: 0;
  font-size: 22px;
}

input, select {
  background: #000;
  border-color: #ffffff1f;
  border-radius: 4px;
  height: 42px;
}

input:focus, select:focus {
  border-color: #d8c9928c;
}

.topbar-link, .status-pill, .primary-button, .ghost-button, .file-button, .filter-tab, .match-filter, .discord-join {
  color: #eee9de;
  min-height: 40px;
  box-shadow: none;
  text-transform: none;
  background: #050505;
  border-color: #ffffff24;
  border-radius: 4px;
}

.topbar-link:hover, .primary-button:hover:not(:disabled), .ghost-button:hover:not(:disabled), .file-button:hover, .filter-tab:hover, .discord-join:hover {
  color: #fff;
  background: #ffffff0b;
  border-color: #d8c9926b;
}

.upload-drop {
  background: #000;
  border-style: dashed;
  place-content: center;
  gap: 7px;
  min-height: 126px;
  display: grid;
}

.upload-drop strong {
  color: #f4f1ea;
  font-size: 25px;
}

.upload-drop span {
  color: #918f96;
}

.upload-actions, .match-fetch-row, .steam-lookup-row {
  gap: 10px;
}

.fetch-steps {
  gap: 7px;
}

.fetch-steps span {
  background: #000;
  border-color: #ffffff1c;
  border-radius: 3px;
}

.fetch-steps span.active {
  color: var(--green);
  border-color: #35c9957a;
}

.fetch-steps span.failed {
  color: var(--red);
  border-color: #ef554f7a;
}

.discord-card-body {
  border-bottom-color: #ffffff1a;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px 14px;
}

.discord-icon {
  width: 66px;
  height: 66px;
  box-shadow: none;
  border-color: #ffffff29;
  border-radius: 6px;
}

.discord-copy h2 {
  margin-top: 0;
  font-size: 23px;
}

.discord-stats {
  gap: 12px;
}

.discord-stats b {
  background: var(--green);
}

.discord-join {
  border-color: #ffffff24;
  margin: 0 20px 18px;
}

.metric-grid {
  gap: 10px;
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  color: #eadba6;
  margin-top: 12px;
  font-size: 42px;
  line-height: .95;
}

.metric-card strong:after {
  content: "";
}

.empty-workbench {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .8fr);
  min-height: 360px;
}

.empty-main h2 {
  max-width: 620px;
  font-size: 44px;
  line-height: 1.05;
}

.empty-copy {
  max-width: 620px;
}

.empty-preview {
  background: #010101;
  border-color: #ffffff1a;
}

.preview-header span, .preview-line, .preview-grid span {
  background: #ffffff0e;
}
