@layer reset, tokens, base, legacy, layout, components, utilities;
/* replay-viewer.css from the pre-redesign frontend, in the legacy layer: above reset and base,
   below the new core and theme. Generated; edit the source and rebuild. */
@layer legacy {
:root {
  --dash-accent: var(--acc);
  --dash-accent-hover: var(--acc-hi);
  --dash-accent-glow: var(--acc-a30);
  --dash-accent-subtle: var(--acc-a08);
}
.replay-dashboard, .replay-app-upload, .replay-app-loading {
  
  --rv-primary: var(--acc);
  --rv-primary-light: var(--acc-hi);
  --rv-primary-dim: var(--acc-lo);
  --rv-primary-ink: var(--acc-ink);
  --rv-primary-soft: var(--acc-a16);
  --rv-primary-soft-2: var(--acc-a30);

  
  --rv-bg: var(--bg);
  --rv-surface: var(--s1);
  --rv-surface-2: var(--s2);
  --rv-surface-3: var(--s3);
  --rv-input: var(--bg-soft);

  --rv-text: var(--ink);
  --rv-text-2: var(--ink-2);
  --rv-muted: var(--ink-3);
  --rv-line: #23232a;

  --rv-ok: #45d483;
  --rv-bad: #ff5c8a;
  --rv-warn: #f7b731;
  --rv-info: #2ab4ff;

  
  --rv-atk: #ff9f45;
  --rv-def: #4a9bff;

  --rv-r-sm: 7px;
  --rv-r: 10px;
  --rv-r-lg: 16px;
  --rv-r-xl: 18px;

  --rv-anim: 240ms cubic-bezier(0.25, 1, 0.5, 1);
  --rv-fast: 140ms cubic-bezier(0.25, 1, 0.5, 1);
  --rv-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);

  
  --replay-primary: var(--rv-primary);
  --replay-primary-hover: var(--rv-primary-light);
  --replay-bg: var(--rv-bg);
  --replay-surface: var(--rv-surface);
  --replay-surface-2: var(--rv-surface-2);
  --replay-border: transparent;
  --replay-border-strong: transparent;
  --replay-strong-border: transparent;
  --replay-text: var(--rv-text);
  --replay-muted: var(--rv-text-2);
  --replay-muted-2: var(--rv-muted);
  --replay-radius: var(--rv-r-lg);
  --replay-blue: var(--rv-def);
  --replay-pink: var(--rv-bad);
  --replay-green: var(--rv-ok);
  --replay-warn: var(--rv-warn);
}
#app { min-height: 100vh; }
.replay-dashboard {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
  background: var(--rv-bg);
  color: var(--rv-text);
  font-family: 'Inter', 'Inter', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.005em;
}
.replay-dashboard.is-sidebar-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.replay-dashboard-content {
  min-width: 0;
  padding: 24px 28px 48px;
}
.replay-dashboard .rv-workspace, .replay-dashboard .rv-content, .replay-dashboard .rv-rounds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.replay-dashboard-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  
  width: 100%;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  border: 0;
  background: var(--rv-surface);
  overflow: hidden;
}
.rv-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.back-home-link, .rv-side-collapse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  border: 0;
  border-radius: var(--rv-r-sm);
  background: transparent;
  color: var(--rv-muted);
  font-size: 12px;
  text-decoration: none;
  transition: background var(--rv-fast), color var(--rv-fast);
}
.back-home-link { padding: 0 10px 0 5px; }
.rv-side-collapse { width: 30px; justify-content: center; flex: none; }
.back-home-link:hover, .rv-side-collapse:hover { background: var(--rv-surface-2); color: var(--rv-text); }
.back-home-link b { font-weight: 500; }
.back-home-link .material-icons, .rv-side-collapse .material-icons { font-size: 17px; }
.rv-side-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.rv-side-history { flex: 1; min-height: 0; }
.rv-side-account, .rv-side-nav-sec { flex: none; }
.rv-side-pill {
  display: inline-grid;
  place-items: center;
  height: 18px;
  padding: 0 7px;
  flex: none;
  border-radius: 999px;
  background: var(--rv-surface-3);
  color: var(--rv-text-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.rv-side-pill.atk { background: rgba(249, 115, 22, 0.16); color: #fdba74; }
.rv-side-pill.def { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.rv-side-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rv-side-title {
  margin: 0;
  padding: 0 8px;
  color: var(--rv-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.replay-sidebar-user {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--rv-r);
  background: var(--rv-surface-2);
}
.replay-account-avatar, .replay-account-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}
.replay-account-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--rv-surface-3);
  color: var(--rv-primary-light);
  font-size: 11px;
  font-weight: 800;
}
.replay-user-meta { min-width: 0; }
.replay-user-meta strong {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-user-meta span {
  display: block;
  color: var(--rv-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.replay-quota-card {
  position: relative;
  padding: 11px 13px 12px;
  border: 1px solid var(--rv-surface-3);
  border-radius: var(--rv-r);
  background: var(--rv-surface-2);
}
.replay-quota-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.replay-quota-card span {
  color: var(--rv-text-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.replay-quota-card strong {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.replay-quota-card small {
  display: block;
  margin-top: 2px;
  color: var(--rv-muted);
  font-size: 10.5px;
}
.replay-quota-card > .replay-quota-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 0;
  background: var(--rv-surface-3);
}
.replay-quota-bar > i {
  display: block;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, var(--rv-primary), var(--rv-primary-light));
  transition: width var(--rv-anim);
}
.replay-sidebar-search {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--rv-r);
  background: var(--rv-input);
  color: var(--rv-muted);
}
.replay-sidebar-search .material-icons { font-size: 16px; }
.replay-sidebar-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--rv-text);
  font-size: 12.5px;
}
.replay-sidebar-search input::placeholder { color: var(--rv-muted); }
.replay-match-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.replay-match-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--rv-r-sm);
  background: transparent;
  color: var(--rv-text-2);
  cursor: pointer;
  transition: background var(--rv-fast), color var(--rv-fast);
}
.replay-match-item:hover { background: var(--rv-surface-2); color: var(--rv-text); }
.replay-match-item.active { background: var(--rv-surface-3); color: var(--rv-text); }
.replay-match-item > .material-icons { font-size: 17px; color: var(--rv-muted); }
.replay-match-item.active > .material-icons { color: var(--rv-primary-light); }
.replay-match-meta { min-width: 0; }
.replay-match-meta b {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-match-meta small {
  display: block;
  overflow: hidden;
  color: var(--rv-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-match-actions { display: flex; justify-content: flex-end; }
.btn-delete {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--rv-r-sm);
  background: transparent;
  color: var(--rv-muted);
  opacity: 0;
  cursor: pointer;
  transition: background var(--rv-fast), color var(--rv-fast), opacity var(--rv-fast);
}
.replay-match-item:hover .btn-delete, .replay-match-item:focus-within .btn-delete { opacity: 1; }
.btn-delete:hover { background: rgba(255, 92, 138, 0.16); color: var(--rv-bad); }
.btn-delete .material-icons { font-size: 15px; }
.replay-sidebar-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 26px 12px;
  color: var(--rv-muted);
  text-align: center;
}
.replay-sidebar-empty small { font-size: 11px; }
.rv-side-nav { display: flex; flex-direction: column; gap: 1px; }
.rv-side-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--rv-r-sm);
  background: transparent;
  color: var(--rv-text-2);
  text-align: left;
  cursor: pointer;
  transition: background var(--rv-fast), color var(--rv-fast);
}
.rv-side-link:hover { background: var(--rv-surface-2); color: var(--rv-text); }
.rv-side-link.active { background: var(--rv-surface-3); color: var(--rv-text); }
.rv-side-link.active .material-icons { color: var(--rv-primary-light); }
.rv-side-link .material-icons { font-size: 18px; }
.rv-side-link b { font-size: 13px; font-weight: 500; }
.rv-side-link.active b { font-weight: 600; }
.rv-side-link.is-accent .material-icons { color: var(--rv-primary-light); }
.replay-dashboard.is-sidebar-collapsed .replay-user-meta, .replay-dashboard.is-sidebar-collapsed .replay-quota-card, .replay-dashboard.is-sidebar-collapsed .replay-sidebar-search, .replay-dashboard.is-sidebar-collapsed .replay-match-meta, .replay-dashboard.is-sidebar-collapsed .replay-match-actions, .replay-dashboard.is-sidebar-collapsed .rv-side-title, .replay-dashboard.is-sidebar-collapsed .back-home-link b, .replay-dashboard.is-sidebar-collapsed .rv-side-link b, .replay-dashboard.is-sidebar-collapsed .btn-primary-small, .replay-dashboard.is-sidebar-collapsed .replay-sidebar-empty { display: none; }
.replay-dashboard.is-sidebar-collapsed .replay-dashboard-sidebar {
  padding: 14px 7px;
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
}
.replay-dashboard.is-sidebar-collapsed .rv-side-top {
  flex-direction: column;
  gap: 2px;
}
.replay-dashboard.is-sidebar-collapsed .back-home-link, .replay-dashboard.is-sidebar-collapsed .rv-side-collapse {
  width: 34px;
  padding: 0;
  justify-content: center;
  align-self: center;
}
.replay-dashboard.is-sidebar-collapsed .rv-side-sec-head { justify-content: center; }
.replay-dashboard.is-sidebar-collapsed .rv-side-sec { gap: 4px; }
.replay-dashboard.is-sidebar-collapsed .replay-match-item, .replay-dashboard.is-sidebar-collapsed .rv-side-link, .replay-dashboard.is-sidebar-collapsed .replay-sidebar-user {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  width: 100%;
  min-height: 38px;
  padding: 0;
}
.replay-dashboard.is-sidebar-collapsed .replay-account-avatar { margin: 0; }
.rv-side-quota-rail, .rv-side-rail-upload { display: none; }
.replay-dashboard.is-sidebar-collapsed .rv-side-quota-rail {
  display: grid;
  place-items: center;
  gap: 5px;
  color: var(--rv-muted);
}
.replay-dashboard.is-sidebar-collapsed .rv-side-quota-rail .material-icons { font-size: 17px; }
.replay-dashboard.is-sidebar-collapsed .rv-side-quota-track {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--rv-surface-3);
  overflow: hidden;
}
.replay-dashboard.is-sidebar-collapsed .rv-side-quota-track i {
  display: block;
  height: 100%;
  background: var(--rv-primary);
}
.replay-dashboard.is-sidebar-collapsed .rv-side-rail-upload {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 0;
  border-radius: var(--rv-r-sm);
  background: var(--rv-primary);
  color: var(--rv-primary-ink);
  cursor: pointer;
}
.replay-dashboard.is-sidebar-collapsed .rv-side-rail-upload .material-icons { font-size: 18px; }
.replay-dashboard.is-sidebar-collapsed .replay-sidebar-list {
  gap: 3px;
  padding: 0;
  overflow-y: auto;
}
.rv-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.rv-toolbar-title { min-width: 0; }
.rv-toolbar-title h1, .replay-upload-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rv-toolbar-title p, .replay-kicker {
  margin: 3px 0 0;
  color: var(--rv-text-2);
  font-size: 13px;
}
.rv-toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.replay-dashboard .rv-toolbar-actions > button { flex: none; }
.replay-dashboard .btn-primary, .replay-dashboard .btn-secondary, .replay-dashboard .btn-primary-small, .replay-dashboard .replay-btn-danger, .replay-dashboard .replay-upload-cloud-btn, .replay-dashboard .ai-summary-send, .replay-dashboard .ai-chat-newbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  
  width: auto;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--rv-r);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--rv-fast), transform var(--rv-fast), opacity var(--rv-fast);
}
.replay-dashboard .btn-primary-small { height: 30px; padding: 0 11px; font-size: 12px; }
.replay-dashboard .btn-primary, .replay-dashboard .btn-primary-small, .replay-dashboard .replay-upload-cloud-btn, .replay-dashboard .ai-summary-send, .replay-dashboard .ai-chat-newbtn {
  background: var(--rv-primary);
  color: var(--rv-primary-ink);
  font-weight: 600;
}
.replay-dashboard .btn-primary:hover, .replay-dashboard .btn-primary-small:hover, .replay-dashboard .replay-upload-cloud-btn:hover, .replay-dashboard .ai-summary-send:hover, .replay-dashboard .ai-chat-newbtn:hover { background: var(--rv-primary-light); }
.replay-dashboard .btn-secondary {
  background: var(--rv-surface-2);
  color: var(--rv-text);
}
.replay-dashboard .btn-secondary:hover { background: var(--rv-surface-3); }
.replay-dashboard .replay-btn-danger {
  background: rgba(255, 92, 138, 0.12);
  color: var(--rv-bad);
}
.replay-dashboard .replay-btn-danger:hover { background: rgba(255, 92, 138, 0.2); }
.replay-dashboard button:disabled, .replay-dashboard .is-disabled { opacity: 0.45; cursor: not-allowed; }
.replay-dashboard .btn-primary:active, .replay-dashboard .btn-secondary:active { transform: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row > span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.replay-dashboard .card:hover, .replay-dashboard .card:focus-within, .replay-dashboard .replay-panel:hover, .replay-dashboard .replay-stat-card:hover, .replay-dashboard .replay-match-item:hover, .replay-dashboard .loadout-card:hover, .replay-dashboard .round-flow-item:hover, .replay-dashboard .round-flow-card, .replay-dashboard .replay-subtable:hover {
  transform: none;
  box-shadow: none;
}
.replay-dashboard .card, .replay-panel, .replay-stat-card, .replay-highlight, .replay-insight, .rv-round-scoreboard, .rv-killfeed-panel, .rv-objectives, .loadout-team-col, .utility-rail, .utility-detail, .telemetry-detail, .ai-summary-panel, .replay-empty {
  border: 0;
  border-radius: var(--rv-r-lg);
  background: var(--rv-surface);
  box-shadow: none;
}
.rv-panel-head, .utility-detail-head, .ai-summary-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: var(--rv-surface-2);
  color: var(--rv-text);
  font-size: 13px;
  font-weight: 600;
}
.replay-panel > h3, .rv-objectives > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  background: var(--rv-surface-2);
  color: var(--rv-text);
  font-size: 13px;
  font-weight: 600;
}
.rv-panel-head .material-icons { font-size: 17px; color: var(--rv-muted); }
.rv-panel-head > span, .rv-panel-head small, .utility-detail-head small {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rv-muted);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.rv-panel-head > span .material-icons, .rv-panel-head > span i { font-size: 13px; }
.rv-panel-head h3 {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
}
.rv-banner {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--rv-r-xl);
  background: var(--rv-surface);
}
.rv-banner-bg { position: absolute; inset: 0; }
.rv-banner-bg img, .rv-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.rv-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(9, 9, 11, 0.62),
    rgba(9, 9, 11, 0.82) 55%,
    var(--rv-surface)
  );
}
.rv-banner-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
}
.rv-banner-result { display: grid; gap: 8px; justify-items: start; }
.rv-score { display: flex; align-items: baseline; gap: 8px; }
.rv-score-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--rv-text-2);
}
.rv-score-num.team-a { color: var(--rv-def); }
.rv-score-num.team-b { color: var(--rv-atk); }
.rv-score-sep { color: var(--rv-muted); font-size: 22px; }
.rv-result {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rv-result--win { background: rgba(69, 212, 131, 0.14); color: var(--rv-ok); }
.rv-result--loss { background: rgba(255, 92, 138, 0.14); color: var(--rv-bad); }
.rv-result--draw { background: var(--rv-primary-soft); color: var(--rv-primary-light); }
.rv-banner-title { min-width: 0; }
.rv-banner-kicker {
  display: block;
  color: var(--rv-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rv-banner-title h1 {
  margin: 4px 0 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rv-banner-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.rv-team-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  font-size: 11px;
  font-weight: 600;
}
.rv-team-pill.team-a { color: var(--rv-def); }
.rv-team-pill.team-b { color: var(--rv-atk); }
.rv-vs { color: var(--rv-muted); font-size: 10px; }
.rv-banner-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--rv-text-2);
  font-size: 11.5px;
}
.rv-banner-meta span { display: inline-flex; align-items: center; gap: 7px; }
.rv-banner-meta i, .rv-banner-meta .material-icons { color: var(--rv-muted); }
.rv-matchid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  cursor: pointer;
  transition: background var(--rv-fast);
}
.rv-matchid:hover { background: var(--rv-surface-3); }
.rv-matchid-label {
  color: var(--rv-muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.rv-matchid-value {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 10.5px;
}
.rv-matchid .material-icons { font-size: 14px; }
.round-flow-shell {
  border: 0;
  border-radius: var(--rv-r-lg);
  background: var(--rv-surface);
  padding: 0;
}
.round-flow {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: var(--rv-r-lg);
  background: var(--rv-surface);
  overflow-x: auto;
}
.round-flow-item {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: var(--rv-r);
  background: transparent;
  cursor: pointer;
  transition: background var(--rv-fast);
}
.round-flow-item:hover { background: var(--rv-surface-2); }
.round-flow-item.active {
  background: var(--rv-surface-3);
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.55);
}
.round-flow-item.active .round-flow-stat b { color: var(--rv-text); }
.round-flow-card {
  display: grid;
  gap: 4px;
  min-width: 108px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.round-flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.round-flow-top b { font-size: 13px; font-weight: 700; color: var(--rv-text); }
.round-flow-top em {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: var(--rv-surface-3);
  color: var(--rv-text-2);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.round-flow-item.attack-win .round-flow-top em {
  background: rgba(255, 159, 69, 0.16);
  color: var(--rv-atk);
}
.round-flow-item.defense-win .round-flow-top em {
  background: rgba(74, 155, 255, 0.16);
  color: var(--rv-def);
}
.round-flow-scoreline { display: flex; align-items: center; gap: 9px; }
.round-flow-stat { display: flex; align-items: baseline; gap: 5px; }
.round-flow-stat small {
  color: var(--rv-muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.round-flow-stat strong {
  color: var(--rv-text-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.round-flow-separator { width: 1px; height: 11px; background: var(--rv-line); }
.round-flow-item.active .round-flow-top b { color: var(--rv-primary-light); }
.round-flow-item.active .round-flow-stat strong { color: var(--rv-text); }
.replay-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.replay-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  transition: background var(--rv-fast), transform var(--rv-fast);
}
.replay-stat-card:hover { background: var(--rv-surface-2); }
.replay-stat-card > div { display: grid; gap: 3px; min-width: 0; }
.replay-stat-card span, .replay-highlight span, .utility-rail-sub, .telemetry-summary span {
  color: var(--rv-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.replay-stat-card strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.replay-stat-card small, .replay-highlight small {
  color: var(--rv-muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.replay-stat-card .material-icons {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--rv-r-sm);
  background: var(--rv-surface-2);
  color: var(--rv-muted);
  font-size: 18px;
}
.replay-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
}
.replay-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}
.replay-highlight { display: grid; gap: 3px; padding: 13px 15px; }
.replay-highlight strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.replay-insight {
  padding: 13px 15px;
  color: var(--rv-text-2);
  font-size: 13px;
  line-height: 1.6;
  background: var(--rv-surface-2);
}
.replay-panel > .replay-insight { margin: 12px 16px; border-radius: var(--rv-r-sm); }
.replay-panel > .replay-insight ~ .replay-insight { margin-top: -4px; }
.replay-panel > .rv-roster-wrap { padding: 12px 0; }
.rv-roster-table, .utility-table, .event-list, .rv-obj-list, .rv-killfeed { display: flex; flex-direction: column; }
.rv-roster-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rv-roster-wrap--stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1340px) {
.rv-roster-wrap { grid-template-columns: minmax(0, 1fr); }
}
.rv-roster {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.rv-roster-weapon { min-width: 0; display: flex; }
.rv-roster-headrow, .rv-roster-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) 74px 46px 52px 84px;
  gap: 10px;
}
.rv-roster-headrow > *:nth-child(n + 3), .rv-roster-row > *:nth-child(n + 3) { text-align: right; }
.rv-roster-headrow, .utility-row--head {
  display: grid;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  border: 0;
  background: var(--rv-surface-2);
  color: var(--rv-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rv-roster-row, .utility-row, .event-row, .rv-obj-row, .rv-kill-row {
  display: grid;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  font-size: 12px;
  transition: background var(--rv-fast);
}
.rv-roster-row:hover, .utility-row:hover, .event-row:hover, .rv-obj-row:hover, .rv-kill-row:hover { background: var(--rv-surface-2); }
.utility-row, .utility-row--head { grid-template-columns: 74px minmax(0, 1fr) minmax(0, 1.7fr); gap: 12px; }
.utility-row > *, .utility-row--head > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.utility-row time { color: var(--rv-muted); font-variant-numeric: tabular-nums; }
.utility-row b { font-weight: 500; }
.utility-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rv-obj-row { grid-template-columns: 56px 18px minmax(0, 1fr); gap: 10px; min-height: 38px; }
.rv-obj-row i, .rv-obj-row .material-icons { color: var(--rv-muted); font-size: 12px; }
.event-row { grid-template-columns: 56px 20px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 9px; padding-bottom: 9px; }
.event-row time { color: var(--rv-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; line-height: 20px; }
.event-row > .material-icons { color: var(--rv-muted); font-size: 16px; line-height: 20px; }
.event-row > div { min-width: 0; }
.event-row > div > b { display: block; font-size: 11.5px; font-weight: 600; line-height: 20px; }
.event-row > div > p { margin: 2px 0 0; color: var(--rv-text-2); font-size: 12px; }
.event-row.kill > div > b, .event-row.dbno > div > b { color: var(--rv-text); }
.rv-roster-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
}
.rv-roster-head.atk { color: var(--rv-atk); }
.rv-roster-head.def { color: var(--rv-def); }
.rv-roster-head small, .rv-roster-head .rv-roster-kills {
  margin-left: auto;
  color: var(--rv-muted);
  font-size: 11px;
  font-weight: 400;
  text-align: right;
}
.rv-roster-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-roster-name {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rv-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-roster-id small {
  display: block;
  color: var(--rv-muted);
  font-size: 10.5px;
}
.rv-roster-kda, .rv-roster-hs, .rv-roster-score, .rv-roster-mkd, .rv-roster-kills, .utility-count {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rv-roster-kda { font-weight: 600; }
.rv-op {
  display: inline-grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--rv-surface-3);
}
.rv-op img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-op--sm { width: 22px; height: 22px; border-radius: 7px; }
.rv-op--md { width: 28px; height: 28px; }
.rv-op--lg { width: 36px; height: 36px; border-radius: 10px; }
.rv-op--sm .rv-op-fallback { font-size: 8.5px; }
.rv-op--lg .rv-op-fallback { font-size: 12px; }
.rv-op-fallback, .operator-badge img, .rv-roster-id img {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--rv-surface-3);
  object-fit: cover;
}
.rv-op-fallback {
  display: grid;
  place-items: center;
  color: var(--rv-muted);
  font-size: 10px;
  font-weight: 800;
}
.rv-op .rv-op-fallback { width: 100%; height: 100%; border-radius: inherit; }
.rv-weapon, .weapon-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  max-width: 100%;
  padding: 0 9px 0 5px;
  border: 0;
  border-radius: 999px;
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  font-size: 11px;
  font-weight: 500;
}
.rv-weapon-img { width: 26px; height: 14px; flex: none; }
.rv-weapon-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rv-weapon-img--none { display: none; }
.rv-weapon-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-weapon--empty { opacity: 0.4; }
.rv-weapon--compact { height: 22px; padding: 0 8px 0 4px; gap: 6px; font-size: 10.5px; }
.rv-weapon--compact .rv-weapon-img { width: 22px; height: 12px; }
.rv-kill-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  background: var(--rv-surface-2);
  color: var(--rv-muted);
  font-size: 11px;
}
.rv-kill-icon.hs { background: var(--rv-primary-soft); color: var(--rv-primary-light); }
.rv-kill-row {
  grid-template-columns: auto minmax(0, 1fr) 26px minmax(0, 72px) auto auto minmax(0, 1fr) 40px;
  gap: 9px;
  padding: 0 14px;
  min-height: 40px;
}
.rv-kill-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
}
.rv-kill-name.killer, .rv-kill-name.victim { justify-content: flex-start; text-align: left; }
.rv-kill-name b, .rv-kill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rv-kill-wimg { display: grid; place-items: center; width: 26px; height: 14px; color: var(--rv-muted); font-size: 11px; }
.rv-kill-wimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rv-kill-time { justify-self: end; }
.rv-kill-wname {
  overflow: hidden;
  color: var(--rv-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.rv-kill-time, .rv-obj-time {
  color: var(--rv-muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.event-hs { color: var(--rv-warn); }
.event-duel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.event-duel-mid { color: var(--rv-muted); font-size: 10px; }
.event-actor { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.event-duel-weapon { width: 32px; height: 16px; object-fit: contain; display: block; }
.event-row.kill, .event-row.dbno { align-items: center; }
.event-row.kill > div, .event-row.dbno > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.event-row.kill > div > b, .event-row.dbno > div > b { flex: none; min-width: 34px; }
.event-row.kill .event-duel, .event-row.dbno .event-duel { flex: 1 1 auto; }
.event-duel-mid { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.event-actor b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-round-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}
.rv-round-scoreboard, .rv-killfeed-panel { overflow: hidden; display: flex; flex-direction: column; }
.rv-killfeed, .rv-obj-list {
  max-height: 420px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-width: 1180px) {
.rv-round-detail { grid-template-columns: minmax(0, 1fr); }
}
.loadout-team-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
}
.loadout-team-col { overflow: hidden; }
.loadout-team-col > .loadout-team-head { border-radius: 0; }
.loadout-team-col--full { grid-column: 1 / -1; }
.loadout-team-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--rv-surface-2);
  color: var(--rv-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loadout-team-head.atk { color: var(--rv-atk); }
.loadout-team-head.def { color: var(--rv-def); }
.loadout-team-stack { display: flex; flex-direction: column; }
.loadout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  transition: background var(--rv-fast);
}
.loadout-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.loadout-card:hover { background: var(--rv-surface-2); }
.loadout-card-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.loadout-card-id > div { min-width: 0; }
.loadout-card-id b { display: block; font-size: 12.5px; font-weight: 500; }
.loadout-card-id span, .loadout-card-id small { display: block; color: var(--rv-muted); font-size: 10.5px; }
.weapon-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.weapon-lines > div { min-width: 0; display: flex; flex-direction: column; }
.weapon-lines > div > .loadout-weapon { flex: 1; }
.weapon-lines small {
  display: block;
  margin-bottom: 4px;
  color: var(--rv-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loadout-weapon {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 2px 0 0;
  border-radius: 0;
  background: none;
}
.loadout-weapon strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loadout-weapon-img {
  width: 100%;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--rv-r-sm);
}
.loadout-weapon-img img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.loadout-weapon:not(:has(.loadout-weapon-img)) { min-height: 64px; align-content: center; }
.role-pill {
  display: inline-grid;
  place-items: center;
  height: 20px;
  padding: 0 9px;
  flex: none;
  border-radius: 999px;
  background: var(--rv-surface-3);
  color: var(--rv-text-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.role-pill.atk { background: rgba(249, 115, 22, 0.16); color: #fdba74; }
.role-pill.def { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.utility-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.utility-layout > .utility-rail, .utility-layout > .utility-detail { min-height: 0; }
@media (max-width: 1080px) {
.utility-layout { grid-template-columns: minmax(0, 1fr); }
}
.utility-rail { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.utility-rail > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
}
.utility-rail > h3 .material-icons { font-size: 17px; color: var(--rv-muted); }
.utility-rail-sub {
  margin: 0;
  padding: 2px 8px 8px;
  color: var(--rv-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.utility-rail nav { display: flex; flex-direction: column; gap: 2px; }
.utility-rail nav button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--rv-r-sm);
  background: transparent;
  color: var(--rv-text-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--rv-fast), color var(--rv-fast);
}
.utility-rail nav button:hover { background: var(--rv-surface-2); color: var(--rv-text); }
.utility-rail nav button.active { background: var(--rv-surface-3); color: var(--rv-text); }
.utility-rail nav button > .material-icons {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--rv-r-sm);
  background: var(--rv-surface-2);
  color: var(--rv-muted);
  font-size: 16px;
}
.utility-rail nav button.active > .material-icons { background: var(--rv-primary-soft); color: var(--rv-primary-light); }
.utility-rail nav button > i {
  min-width: 24px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--rv-surface-3);
  color: var(--rv-text-2);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}
.utility-rail nav button > i.is-zero { opacity: 0.4; }
.utility-rail nav button.active > i { background: var(--rv-primary-soft); color: var(--rv-primary-light); }
.utility-rail-copy { min-width: 0; }
.utility-rail-copy b { display: block; font-size: 12.5px; font-weight: 500; }
.utility-rail-copy small {
  display: block;
  overflow: hidden;
  color: var(--rv-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.utility-detail-head { min-height: 56px; }
.utility-detail-head > div { min-width: 0; }
.utility-detail-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
}
.utility-detail-head h3 .material-icons { font-size: 17px; color: var(--rv-muted); }
.utility-detail-head p { margin: 2px 0 0; color: var(--rv-muted); font-size: 11px; }
.utility-count {
  margin-left: auto;
  min-width: 26px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  flex: none;
  border-radius: 999px;
  background: var(--rv-surface-3);
  color: var(--rv-text-2);
  font-size: 10.5px;
  font-weight: 600;
}
.utility-detail { overflow: hidden; display: flex; flex-direction: column; }
.utility-feed, .utility-table {
  max-height: 420px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.utility-feed { padding: 6px 0; }
.utility-table .utility-row--head {
  position: sticky;
  top: 0;
  z-index: 1;
}
.telemetry-grid { display: flex; flex-direction: column; }
.telemetry-grid .utility-row, .telemetry-grid .utility-row--head { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 2fr); }
.telemetry-grid .utility-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.telemetry-detail { overflow: hidden; }
.telemetry-details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--rv-surface-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.telemetry-details > summary::-webkit-details-marker { display: none; }
.telemetry-details > summary .material-icons { font-size: 17px; color: var(--rv-muted); }
.telemetry-explainer { padding: 0 0 16px; }
.telemetry-explainer > p { margin: 12px 16px 0; color: var(--rv-text-2); font-size: 12.5px; line-height: 1.6; }
.telemetry-uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 14px 16px 0;
}
.telemetry-uses article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: var(--rv-r);
  background: var(--rv-surface-2);
}
.telemetry-uses article > .material-icons {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--rv-r-sm);
  background: var(--rv-primary-soft);
  color: var(--rv-primary-light);
  font-size: 15px;
}
.telemetry-uses article > div { min-width: 0; }
.telemetry-uses b { display: block; font-size: 12px; font-weight: 600; }
.telemetry-uses small { display: block; margin-top: 2px; color: var(--rv-muted); font-size: 11px; line-height: 1.5; }
.telemetry-json-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--rv-surface-2);
}
.telemetry-json-modes { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--rv-surface-3); }
.telemetry-json-modes button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rv-text-2);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--rv-fast), color var(--rv-fast);
}
.telemetry-json-modes button.active {
  background: var(--rv-primary);
  color: var(--rv-primary-ink);
  font-weight: 600;
}
.telemetry-json-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.replay-dashboard .telemetry-json-actions .btn-secondary {
  height: 30px;
  padding: 0 11px;
  gap: 6px;
  font-size: 12px;
}
.telemetry-json-actions .btn-secondary .material-icons { font-size: 15px; }
.telemetry-json-size { color: var(--rv-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.diagnostic-json {
  margin: 0;
  padding: 14px 16px;
  max-height: 480px;
  overflow: auto;
  background: var(--rv-input);
  color: var(--rv-text-2);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
}
.replay-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 54px 24px;
  color: var(--rv-text-2);
  text-align: center;
}
.replay-empty .material-icons {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rv-surface-2);
  color: var(--rv-muted);
  font-size: 24px;
}
.replay-empty strong { font-size: 16px; font-weight: 600; color: var(--rv-text); }
.replay-empty p { margin: 0; max-width: 440px; font-size: 13px; }
.replay-alert, .replay-app-alert, .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--rv-r);
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  font-size: 13px;
}
.alert-error, .ai-summary-error {
  background: rgba(255, 92, 138, 0.1);
  color: #ffc2d4;
}
.muted-note { color: var(--rv-muted); font-size: 11.5px; }
.replay-app-upload, .replay-app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--rv-bg);
  color: var(--rv-text);
}
.replay-blank-card, .replay-boot-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 0;
  border-radius: var(--rv-r-xl);
  background: var(--rv-surface);
  text-align: center;
  justify-items: center;
}
.replay-upload.replay-app-upload {
  align-content: start;
  justify-items: stretch;
  padding: 56px 24px 40px;
}
.replay-upload {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  text-align: left;
}
.replay-upload-heading {
  display: grid;
  gap: 10px;
  justify-items: start;
  font-size: 15px;
  font-weight: 400;
}
.replay-upload-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.replay-upload-heading > p {
  margin: 0;
  max-width: 62ch;
  color: var(--rv-text-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.replay-upload .replay-kicker {
  display: block;
  margin: 0;
  color: var(--rv-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.replay-upload .replay-upload-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  margin-top: 2px;
}
.replay-upload-metrics > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--rv-surface-3);
  border-radius: 999px;
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.replay-upload-metrics > span .material-icons {
  font-size: 16px;
  color: var(--rv-primary);
}
.replay-upload .replay-alert { margin: 0; }
.replay-upload .replay-upload-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  min-height: 264px;
  padding: 44px 26px;
  border: 1px dashed var(--rv-surface-3);
  border-radius: var(--rv-r-xl);
  background: var(--rv-surface);
  text-align: center;
  transition: border-color var(--rv-anim), background var(--rv-anim);
}
.replay-upload .replay-upload-card:hover { border-color: var(--rv-primary-dim); }
.replay-upload-card h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.replay-upload-card > p {
  margin: 0;
  max-width: 46ch;
  color: var(--rv-text-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.replay-upload .replay-upload-cloud-btn {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 50%;
  background: var(--rv-primary-soft);
  color: var(--rv-primary-light);
  cursor: pointer;
  transition: transform var(--rv-anim), background var(--rv-anim);
}
.replay-upload .replay-upload-cloud-btn:hover {
  background: var(--rv-primary-soft-2);
  transform: translateY(-2px);
}
.replay-upload .replay-upload-cloud-btn:disabled {
  cursor: not-allowed;
  transform: none;
}
.replay-upload .upload-icon { font-size: 34px; }
@media (max-width: 640px) {
.replay-upload.replay-app-upload { padding: 32px 16px; }
.replay-upload .replay-upload-card { min-height: 220px; padding: 32px 18px; }
}
.replay-blank-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--rv-r-lg);
  background: var(--rv-primary-soft);
  color: var(--rv-primary-light);
}
.replay-blank-copy { color: var(--rv-text-2); font-size: 13px; }
.replay-blank-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.replay-library-blank {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 48px 24px;
  text-align: center;
}
.rv-blank-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.rv-blank-sub { margin: 0 0 16px; color: var(--rv-text-2); font-size: 13px; }
.replay-upload-card.is-drag {
  background: var(--rv-primary-soft);
  outline: 1px dashed var(--rv-primary);
  outline-offset: -6px;
}
.replay-upload-card.is-loading { pointer-events: none; }
.replay-upload-card.is-loading .upload-icon { animation: rv-spin 1.1s linear infinite; }
.replay-upload-card.is-disabled { opacity: 0.55; pointer-events: none; }
@keyframes rv-spin { to { transform: rotate(360deg); } }
.map-image-fallback {
  display: grid;
  gap: 4px;
  place-content: center;
  justify-items: center;
  min-height: 160px;
  padding: 20px;
  border-radius: var(--rv-r-lg);
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  text-align: center;
}
.map-image-fallback .material-icons { font-size: 26px; color: var(--rv-muted); }
.map-image-fallback strong { font-size: 12.5px; font-weight: 500; }
.map-image-fallback small { color: var(--rv-muted); font-size: 10.5px; }
.replay-map-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  min-height: calc(100vh - 48px);
}
.replay-dashboard-content:has(.replay-map-stack) { padding-bottom: 24px; }
.replay-map-stack > .bp-board { flex: 0 0 auto; margin: 0; }
.replay-dashboard .bp-viewport {
  aspect-ratio: var(--bp-aspect, 16 / 9);
  max-height: calc(100vh - 108px);
}
.replay-dashboard .bp-tools, .replay-dashboard .bp-side {
  min-height: 0;
  overflow-y: auto;
}
.replay-confirm-dialog, .auth-required-dialog {
  width: min(460px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rv-text);
  box-shadow: none;
  overflow: visible;
}
.replay-confirm-dialog::backdrop, .auth-required-dialog::backdrop {
  background: rgba(5, 6, 8, 0.74);
  backdrop-filter: blur(8px);
}
.replay-confirm-shell, .auth-required-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: var(--rv-r-xl);
  background: var(--rv-surface);
  box-shadow: var(--rv-shadow);
}
.replay-confirm-header, .auth-required-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--rv-surface-2);
}
.replay-confirm-header h3, .auth-required-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.replay-confirm-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--rv-r-sm);
  background: transparent;
  color: var(--rv-muted);
  cursor: pointer;
  transition: background var(--rv-fast), color var(--rv-fast);
}
.replay-confirm-close:hover { background: var(--rv-surface-3); color: var(--rv-text); }
.replay-confirm-body, .auth-required-body {
  padding: 16px 18px;
  color: var(--rv-text-2);
  font-size: 13px;
  line-height: 1.6;
}
.replay-confirm-actions, .auth-required-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px 16px;
}
.replay-dashboard ::-webkit-scrollbar { width: 10px; height: 10px; }
.replay-dashboard ::-webkit-scrollbar-track { background: transparent; }
.replay-dashboard ::-webkit-scrollbar-thumb {
  background: var(--rv-surface-3);
  border: 3px solid var(--rv-bg);
  border-radius: 8px;
}
.replay-dashboard ::-webkit-scrollbar-thumb:hover { background: #34343d; }
.replay-dashboard-sidebar ::-webkit-scrollbar-thumb { border-color: var(--rv-surface); }
@media (max-width: 980px) {
.replay-dashboard, .replay-dashboard.is-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
.replay-dashboard-sidebar { position: static; height: auto; }
.replay-dashboard-content { padding: 20px 16px 40px; }
.rv-banner-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rv-banner-meta { justify-items: start; }
}
@media (max-width: 768px) {
.bp-body { min-height: 420px; }
}
@keyframes replay-spin {
    to {
        transform: rotate(360deg);
    }
}
.ai-summary-panel-shell {
    --ai-bg: var(--rv-bg);
    --ai-surface: var(--rv-surface);
    --ai-surface-raised: var(--rv-surface-2);
    --ai-surface-soft: var(--rv-surface-3);
    --ai-surface-hi: #2b2b34;
    --ai-recessed: var(--rv-input);
    --ai-line: var(--rv-line);
    --ai-line-strong: #2b2b34;
    --ai-scroll: #3a3a45;
    --ai-text: var(--rv-text);
    --ai-muted: var(--rv-text-2);
    --ai-accent: var(--rv-primary);
    width: 100%;
    height: min(936px, calc(100vh - 40px));
    min-height: 440px;
    flex: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ai-text);
    background: var(--ai-surface);
    border: 0;
    border-radius: var(--rv-r-lg);
    
    margin-top: -12px;
    margin-bottom: -12px;
}
.ai-summary-head {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: var(--ai-surface-raised);
    border-bottom: 1px solid var(--ai-line);
}
.ai-summary-head > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.ai-summary-head > div > .material-icons {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--ai-accent);
    border-radius: 50%;
    font-size: 20px;
}
.ai-summary-head h2 { margin: 0; color: var(--ai-text); font-size: 1rem; font-weight: 760; letter-spacing: 0; }
.ai-summary-head small { display: block; margin-top: 3px; overflow: hidden; color: var(--ai-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.ai-summary-toolbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 18px;
    background: var(--ai-surface-raised);
    border-bottom: 1px solid var(--ai-line);
}
.ai-summary-segmented { display: inline-flex; padding: 3px; background: var(--ai-recessed); border: 1px solid var(--ai-line); border-radius: 8px; }
.ai-summary-segmented button {
    min-height: 31px;
    padding: 5px 12px;
    color: var(--ai-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: 0;
    cursor: pointer;
}
.ai-summary-segmented button:hover { color: var(--ai-text); }
.ai-summary-segmented button.active { color: #ffffff; background: var(--ai-accent); }
.ai-summary-segmented.compact button { min-height: 28px; padding: 4px 10px; }
.ai-summary-views { display: flex; align-items: center; gap: 5px; }
.ai-summary-views button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    color: var(--ai-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    font: inherit;
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: 0;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.ai-summary-views button:hover { color: var(--ai-text); background: rgba(255, 255, 255, .055); }
.ai-summary-views button.active { color: var(--ai-text); background: var(--ai-surface-hi); border-color: var(--ai-line-strong); }
.ai-summary-views button.active .material-icons { color: var(--ai-accent); }
.ai-summary-views .material-icons { font-size: 18px; }
.ai-summary-loading { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--ai-muted); }
.ai-summary-loading .material-icons { color: var(--ai-accent); font-size: 32px; animation: aiSummarySpin 1s linear infinite; }
@keyframes aiSummarySpin { to { transform: rotate(360deg); } }
.ai-summary-chat, .ai-summary-panel { flex: 1; min-height: 0; overflow: hidden; }
.ai-summary-chat { display: flex; flex-direction: row; background: var(--ai-surface); }
.ai-chat-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ai-summary-metrics {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 7px 18px;
    overflow-x: auto;
    color: var(--ai-muted);
    background: var(--ai-surface-raised);
    border-bottom: 1px solid var(--ai-line);
    font-size: .69rem;
    white-space: nowrap;
}
.ai-summary-metrics span { display: inline-flex; align-items: baseline; gap: 6px; }
.ai-summary-metrics b { color: var(--ai-text); font-size: .84rem; font-variant-numeric: tabular-nums; }
.ai-summary-quick-actions { width: min(860px, calc(100% - 36px)); display: flex; gap: 8px; padding: 14px 0 2px; margin: 0 auto; overflow-x: auto; }
.ai-summary-quick-actions button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 8px 12px;
    color: var(--ai-text);
    background: var(--ai-surface-soft);
    border: 1px solid var(--ai-line);
    border-radius: 8px;
    font: inherit;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.ai-summary-quick-actions button:hover:not(:disabled) { color: var(--ai-text); background: var(--ai-surface-soft); border-color: rgba(245, 166, 35, .5); }
.ai-summary-quick-actions button:disabled { opacity: .46; cursor: wait; }
.ai-summary-quick-actions .material-icons { color: var(--ai-accent); font-size: 17px; }
.ai-summary-messages {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 18px 16px;
    overflow-y: auto;
    scrollbar-color: var(--ai-scroll) transparent;
}
.ai-summary-welcome { margin: auto; max-width: 520px; padding: 30px 18px; text-align: center; color: var(--ai-muted); }
.ai-summary-welcome .material-icons {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    color: #ffffff;
    background: var(--ai-accent);
    border-radius: 50%;
    font-size: 23px;
}
.ai-summary-welcome h3 { margin: 14px 0 7px; color: var(--ai-text); font-size: 1.12rem; font-weight: 760; letter-spacing: 0; }
.ai-summary-welcome p { margin: 0; font-size: .82rem; line-height: 1.6; }
.ai-summary-message { width: min(820px, 100%); display: flex; align-items: flex-start; gap: 11px; margin: 0 auto; }
.ai-summary-message > .material-icons {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--ai-accent);
    border-radius: 50%;
    font-size: 16px;
}
.ai-summary-msg-logo { width: 30px; height: 30px; flex: none; object-fit: contain; }
.ai-summary-message > div { max-width: calc(100% - 42px); padding: 4px 2px; color: var(--ai-text); font-size: .84rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-summary-message.user { justify-content: flex-end; }
.ai-summary-message.user > .material-icons { display: none; }
.ai-summary-message.user > div { max-width: 76%; padding: 10px 13px; color: var(--ai-text); background: var(--ai-surface-hi); border: 0; border-radius: 8px; }
.ai-summary-message.pending > div { padding-top: 10px; }
.ai-summary-message.pending i { width: 5px; height: 5px; display: inline-block; margin: 0 2px; border-radius: 50%; background: var(--ai-accent); animation: aiSummaryDot 1s ease-in-out infinite; }
.ai-summary-message.pending i:nth-child(2) { animation-delay: .15s; }
.ai-summary-message.pending i:nth-child(3) { animation-delay: .3s; }
@keyframes aiSummaryDot { 50% { opacity: .25; transform: translateY(-2px); } }
.ai-summary-message.streaming .ai-md > :last-child::after, .ai-summary-message.streaming .ai-md > .md-list:last-child li:last-child::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 3px;
    background: var(--ai-accent);
    border-radius: 1px;
    vertical-align: text-bottom;
    animation: aiStreamCaret 1s steps(1, end) infinite;
}
.ai-summary-message.streaming .ai-md > .md-list:last-child::after { content: none; }
@keyframes aiStreamCaret { 50% { opacity: 0; } }
.ai-summary-composer {
    width: min(820px, calc(100% - 32px));
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: end;
    gap: 8px;
    padding: 8px 9px 8px 15px;
    margin: 8px auto 18px;
    background: var(--ai-surface-soft);
    border: 1px solid var(--ai-line-strong);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ai-summary-composer:focus-within { border-color: var(--line-3); box-shadow: 0 10px 28px rgba(0, 0, 0, .3), 0 0 0 2px #ffffff0d; }
.ai-summary-composer textarea {
    width: 100%;
    
    box-sizing: border-box;
    min-height: 40px;
    
    max-height: 168px;
    overflow-y: hidden;
    resize: none;
    padding: 10px 0 8px;
    color: var(--ai-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-size: .84rem;
    line-height: 1.45;
    outline: none;
}
.ai-summary-composer textarea::placeholder { color: var(--rv-muted); }
.ai-summary-send {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #ffffff;
    background: var(--ai-accent);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.ai-summary-send:hover:not(:disabled) { background: var(--rv-primary-light); transform: translateY(-1px); }
.ai-summary-send:disabled { color: var(--rv-muted); background: var(--ai-surface-hi); cursor: default; }
.ai-summary-send .material-icons { font-size: 21px; font-weight: 700; }
.ai-summary-panel { display: flex; flex-direction: column; padding: 22px; overflow-y: auto; background: var(--ai-surface); }
.ai-summary-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ai-summary-panel-head h3 { margin: 0; color: var(--ai-text); font-size: 1rem; letter-spacing: 0; }
.ai-summary-panel-head p { margin: 4px 0 0; color: var(--ai-muted); font-size: .73rem; }
.ai-hotspot-filters { display: flex; align-items: center; gap: 8px; }
.ai-hotspot-filters label { min-height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 9px; background: var(--ai-surface-soft); border: 1px solid var(--ai-line); border-radius: 7px; }
.ai-hotspot-filters label .material-icons { color: var(--ai-accent); font-size: 16px; }
.ai-hotspot-filters select { max-width: 210px; color: var(--ai-text); background: var(--ai-surface-soft); border: 0; outline: 0; font: inherit; font-size: .7rem; }
.ai-hotspot-layout { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.ai-hotspot-plot { min-height: 390px; display: grid; place-items: center; overflow: hidden; background: var(--ai-bg); border: 1px solid var(--ai-line); border-radius: 8px; }
.ai-hotspot-plot svg { width: 100%; height: 100%; min-height: 360px; }
.ai-hotspot-plot line { stroke: rgba(255, 255, 255, .075); stroke-width: 1; }
.ai-hotspot-plot circle { stroke-width: 2; transition: opacity .15s ease; }
.ai-hotspot-plot circle:hover { opacity: .72; }
.ai-hotspot-plot circle.atk { fill: rgba(70, 169, 244, .5); stroke: #72c3ff; }
.ai-hotspot-plot circle.def { fill: rgba(245, 166, 35, .52); stroke: var(--rv-primary-light); }
.ai-hotspot-legend { min-height: 34px; display: flex; align-items: center; gap: 14px; padding: 6px 4px; color: var(--ai-muted); font-size: .7rem; }
.ai-hotspot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ai-hotspot-legend i { width: 9px; height: 9px; border-radius: 50%; }
.ai-hotspot-legend .atk i { background: var(--rv-def); }
.ai-hotspot-legend .def i { background: var(--rv-primary); }
.ai-hotspot-legend small { margin-left: auto; }
.ai-hotspot-ranking { align-self: stretch; overflow-y: auto; background: var(--ai-surface-raised); border: 1px solid var(--ai-line); border-radius: 8px; }
.ai-hotspot-ranking h4 { margin: 0; padding: 13px; border-bottom: 1px solid var(--ai-line); font-size: .78rem; letter-spacing: 0; }
.ai-hotspot-ranking > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--ai-line); }
.ai-hotspot-ranking > div:last-child { border-bottom: 0; }
.ai-hotspot-ranking > div > b { color: var(--ai-accent); font-size: .7rem; }
.ai-hotspot-ranking span { min-width: 0; font-size: .74rem; }
.ai-hotspot-ranking span small { display: block; margin-top: 2px; overflow: hidden; color: var(--ai-muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.ai-hotspot-ranking strong { font-size: .8rem; font-variant-numeric: tabular-nums; }
.ai-strategy-search { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; margin-bottom: 15px; background: var(--ai-surface-soft); border: 1px solid var(--ai-line); border-radius: 8px; }
.ai-strategy-search:focus-within { border-color: var(--line-3); }
.ai-strategy-search .material-icons { color: var(--ai-muted); font-size: 20px; }
.ai-strategy-search input { width: 100%; color: var(--ai-text); background: transparent; border: 0; outline: 0; font: inherit; font-size: .8rem; }
.ai-strategy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-strategy-list article { min-width: 0; padding: 14px; background: var(--ai-surface-raised); border: 1px solid var(--ai-line); border-radius: 8px; }
.ai-strategy-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ai-strategy-title h3 { margin: 0; font-size: .9rem; letter-spacing: 0; }
.ai-strategy-title p { margin: 3px 0 0; color: var(--ai-muted); font-size: .7rem; }
.ai-strategy-title > strong { flex: none; color: #72dda4; font-size: .72rem; }
.ai-strategy-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 11px 0 8px; color: var(--ai-muted); font-size: .67rem; }
.ai-strategy-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.ai-strategy-tags span { padding: 3px 6px; color: #8bceff; background: rgba(70, 169, 244, .1); border: 1px solid rgba(70, 169, 244, .23); border-radius: 4px; font-size: .62rem; }
.ai-strategy-list article > small { display: block; overflow: hidden; color: var(--ai-muted); font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.ai-summary-empty { min-height: 260px; grid-column: 1 / -1; display: grid; place-content: center; justify-items: center; color: var(--ai-muted); text-align: center; }
.ai-summary-empty .material-icons { color: var(--ai-accent); font-size: 32px; }
.ai-summary-empty p { max-width: 360px; margin: 8px 0 0; font-size: .78rem; }
.ai-summary-error { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: #ffc0c4; background: rgba(255, 92, 138, .12); border-top: 1px solid rgba(255, 92, 138, .3); font-size: .75rem; }
.ai-summary-error .material-icons { font-size: 18px; }
.ai-summary-segmented button { display: inline-flex; align-items: center; gap: 5px; }
.ai-summary-segmented button .material-icons { font-size: 15px; }
.ai-hotspot-help { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; margin-bottom: 14px; background: rgba(70, 169, 244, .07); border: 1px solid rgba(70, 169, 244, .22); border-radius: 8px; }
.ai-hotspot-help .material-icons { flex: none; margin-top: 1px; color: #72c3ff; font-size: 18px; }
.ai-hotspot-help p { margin: 0; color: var(--ai-text); font-size: .72rem; line-height: 1.55; }
.ai-hotspot-help b { color: #8bceff; }
.ai-hotspot-help .atk { color: #72c3ff; font-weight: 600; }
.ai-hotspot-help .def { color: var(--rv-primary-light); font-weight: 600; }
.ai-hotspot-plot text.hs-axis { fill: rgba(255, 255, 255, .38); font-size: 11px; }
.ai-hotspot-plot text.hs-count { fill: #fff; font-size: 11px; font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 3px; pointer-events: none; }
.ai-hotspot-plot g.hs-rank circle { fill: var(--ai-accent); stroke: #ffffff; stroke-width: 1.5; }
.ai-hotspot-plot g.hs-rank text { fill: #ffffff; font-size: 11px; font-weight: 800; pointer-events: none; }
.ai-hotspot-bar { display: block; height: 4px; margin-top: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); border-radius: 99px; }
.ai-hotspot-bar em { display: block; height: 100%; background: linear-gradient(90deg, var(--ai-accent), var(--rv-primary-light)); border-radius: 99px; transition: width .35s ease; }
.ai-hotspot-ranking-empty { padding: 16px 13px; color: var(--ai-muted); }
.ai-site-select { position: relative; }
.ai-site-select-trigger {
    min-height: 36px;
    min-width: 170px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: var(--ai-text);
    background: var(--ai-surface-soft);
    border: 1px solid var(--ai-line);
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    transition: border-color .18s ease, background .18s ease;
}
.ai-site-select-trigger:hover { border-color: var(--ai-line-strong); background: rgba(255, 255, 255, .05); }
.ai-site-select.open .ai-site-select-trigger { border-color: rgba(245, 166, 35, .65); }
.ai-site-select-trigger > .material-icons:first-child { color: var(--ai-accent); font-size: 16px; }
.ai-site-select-label { flex: 1; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ai-site-select-arrow { color: var(--ai-muted); font-size: 18px !important; transition: transform .22s cubic-bezier(.4, 0, .2, 1); }
.ai-site-select.open .ai-site-select-arrow { transform: rotate(180deg); color: var(--ai-accent); }
.ai-site-select-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    min-width: 230px;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 5px;
    list-style: none;
    background: var(--ai-surface-raised);
    border: 1px solid var(--ai-line-strong);
    border-radius: 9px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
    animation: ai-site-menu-in .18s cubic-bezier(.3, 0, .2, 1);
    transform-origin: top right;
}
@keyframes ai-site-menu-in {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-site-select-menu li { margin: 0; padding: 0; }
.ai-site-select-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    color: var(--ai-text);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: .73rem;
    text-align: left;
    transition: background .14s ease;
}
.ai-site-select-menu button:hover { background: rgba(255, 255, 255, .06); }
.ai-site-select-menu button.active { background: rgba(245, 166, 35, .12); }
.ai-site-select-menu button > .material-icons { color: var(--ai-muted); font-size: 17px; }
.ai-site-select-menu button.active > .material-icons { color: var(--ai-accent); }
.ai-site-select-copy { flex: 1; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-site-select-copy small { display: block; margin-top: 2px; color: var(--ai-muted); font-size: .62rem; }
.ai-site-select-check { color: var(--ai-accent); font-size: 16px !important; }
.ai-strategy-hint { display: flex; align-items: center; gap: 7px; margin: -6px 0 12px; color: var(--ai-muted); font-size: .7rem; }
.ai-strategy-hint .material-icons { color: var(--ai-accent); font-size: 16px; }
.ai-strategy-list article.clickable {
    position: relative;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.ai-strategy-list article.clickable:hover, .ai-strategy-list article.clickable:focus-visible {
    background: var(--ai-surface-soft);
    border-color: rgba(245, 166, 35, .55);
    transform: translateY(-1px);
    outline: none;
}
.ai-strategy-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding: 5px 9px;
    color: var(--ai-accent);
    background: rgba(245, 166, 35, .09);
    border: 1px solid rgba(245, 166, 35, .3);
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 600;
    transition: background .16s ease, color .16s ease;
}
.ai-strategy-cta .material-icons { font-size: 14px; }
.ai-strategy-list article.clickable:hover .ai-strategy-cta { color: #ffffff; background: var(--ai-accent); }
@media (max-width: 820px) {
.ai-summary-panel-shell { height: min(680px, calc(100vh - 40px)); }
.ai-summary-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
.ai-summary-segmented, .ai-summary-views { width: 100%; }
.ai-summary-segmented button, .ai-summary-views button { flex: 1; justify-content: center; }
.ai-hotspot-layout { grid-template-columns: 1fr; }
.ai-hotspot-ranking { max-height: 280px; }
.ai-strategy-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
.ai-summary-head { min-height: 60px; padding-inline: 13px; }
.ai-summary-head > div > .material-icons { width: 34px; height: 34px; font-size: 18px; }
.ai-summary-toolbar { padding: 8px 10px; }
.ai-summary-views button { padding-inline: 5px; font-size: .67rem; }
.ai-summary-metrics { justify-content: flex-start; gap: 16px; padding-inline: 13px; }
.ai-summary-quick-actions { width: calc(100% - 24px); padding-top: 11px; }
.ai-summary-messages { gap: 15px; padding: 20px 12px 12px; }
.ai-summary-message.user > div { max-width: 88%; }
.ai-summary-composer { width: calc(100% - 24px); margin-bottom: 12px; }
.ai-summary-panel { padding: 13px; }
.ai-summary-panel-head { align-items: flex-start; flex-direction: column; }
.ai-summary-panel-head .ai-summary-segmented { width: auto; }
.ai-hotspot-filters { width: 100%; align-items: stretch; flex-direction: column; }
.ai-hotspot-filters label, .ai-hotspot-filters select { width: 100%; max-width: none; }
.ai-site-select-trigger { width: 100%; min-width: 0; }
.ai-site-select-menu { right: auto; left: 0; width: 100%; transform-origin: top center; }
.ai-hotspot-plot { min-height: 300px; }
.ai-hotspot-plot svg { min-height: 300px; }
.ai-hotspot-legend small { display: none; }
}
.ai-summary-message > div .ai-md { white-space: normal; }
.ai-md { display: flex; flex-direction: column; gap: 11px; }
.ai-md .md-p { margin: 0; line-height: 1.7; }
.ai-md .md-h { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; letter-spacing: 0; }
.ai-md .md-h::before { content: ''; flex: none; width: 3px; height: 15px; background: var(--ai-accent); border-radius: 2px; }
.ai-md .md-h1 { margin-top: 4px; font-size: 1.02rem; }
.ai-md .md-h2 { margin-top: 4px; font-size: .94rem; }
.ai-md .md-h3, .ai-md .md-h4 { font-size: .85rem; }
.ai-md .md-h3::before, .ai-md .md-h4::before { height: 12px; opacity: .7; }
.ai-md .md-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 21px; }
.ai-md .md-list li { line-height: 1.65; padding-left: 2px; }
.ai-md .md-list li::marker { color: var(--ai-accent); font-weight: 700; }
.ai-md .md-quote { margin: 0; padding: 9px 13px; color: #cfd6e4; background: rgba(70, 169, 244, .07); border-left: 0; border-radius: 0 8px 8px 0; font-style: normal; }
.ai-md .md-hr { width: 100%; height: 1px; margin: 4px 0; background: var(--ai-line); border: 0; }
.ai-md .md-code-inline { padding: 2px 6px; color: var(--rv-primary-light); background: rgba(245, 166, 35, .1); border: 1px solid rgba(245, 166, 35, .22); border-radius: 5px; font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; font-size: .78em; }
.ai-md .md-code { overflow: hidden; background: var(--ai-recessed); border: 1px solid var(--ai-line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.ai-md .md-code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 13px; background: rgba(255, 255, 255, .045); border-bottom: 1px solid var(--ai-line); }
.ai-md .md-code-head > span { display: inline-flex; align-items: center; gap: 7px; color: var(--ai-muted); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ai-md .md-code-head > span::before { content: ''; width: 8px; height: 8px; background: var(--ai-accent); border-radius: 50%; opacity: .8; }
.ai-md .md-code-head button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; color: var(--ai-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--ai-line); border-radius: 6px; cursor: pointer; font: inherit; font-size: .66rem; font-weight: 600; text-transform: none; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.ai-md .md-code-head button:hover { color: var(--ai-text); background: rgba(255, 255, 255, .08); border-color: var(--ai-line-strong); }
.ai-md .md-code-head button .material-icons { font-size: 14px; text-transform: none; letter-spacing: normal; }
.ai-md .md-code pre { margin: 0; padding: 13px 15px; overflow-x: auto; scrollbar-width: thin; }
.ai-md .md-code code { padding: 0; color: #dbe5f4; background: transparent; border: 0; font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; font-size: .76rem; line-height: 1.65; white-space: pre; }
.ai-md .md-table-wrap { max-width: 100%; overflow-x: auto; background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); scrollbar-width: thin; }
.ai-md .md-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .76rem; }
.ai-md .md-table th { position: sticky; top: 0; padding: 10px 13px; color: var(--ai-accent); background: var(--ai-surface-raised); border-bottom: 2px solid rgba(245, 166, 35, .35); font-size: .66rem; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.ai-md .md-table td { padding: 9px 13px; border-bottom: 1px solid var(--ai-line); line-height: 1.55; vertical-align: top; }
.ai-md .md-table td:first-child { color: #fff; font-weight: 700; white-space: nowrap; }
.ai-md .md-table td:not(:last-child), .ai-md .md-table th:not(:last-child) { border-right: 1px solid var(--ai-line); }
.ai-md .md-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .022); }
.ai-md .md-table tbody tr:last-child td { border-bottom: 0; }
.ai-md .md-table tbody tr:hover td { background: rgba(245, 166, 35, .05); }
.ai-md .md-cell-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 15px; }
.ai-md .md-cell-list li { line-height: 1.5; }
.ai-md .md-cell-list li::marker { color: var(--ai-accent); }
.ai-chat-meta { width: min(820px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 auto; padding: 6px 2px 0; }
.ai-chat-counter { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; color: var(--ai-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--ai-line); border-radius: 99px; font-size: .66rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .2s ease, border-color .2s ease; }
.ai-chat-counter .material-icons { font-size: 14px; }
.ai-chat-counter.warn { color: var(--rv-primary-light); border-color: rgba(245, 166, 35, .45); }
.ai-chat-counter.full { color: #ff9298; background: rgba(229, 68, 76, .1); border-color: rgba(229, 68, 76, .4); }
.ai-chat-reset { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; color: var(--ai-muted); background: transparent; border: 1px solid var(--ai-line); border-radius: 99px; cursor: pointer; font: inherit; font-size: .66rem; font-weight: 600; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.ai-chat-reset:hover { color: var(--ai-text); background: rgba(255, 255, 255, .06); border-color: var(--ai-line-strong); }
.ai-chat-reset .material-icons { font-size: 14px; }
.ai-chat-limit { width: min(820px, 100%); display: flex; align-items: center; gap: 11px; margin: 0 auto; padding: 12px 14px; color: #ffd9db; background: rgba(229, 68, 76, .08); border: 1px solid rgba(229, 68, 76, .32); border-radius: 10px; }
.ai-chat-limit .material-icons { flex: none; color: #ff8087; font-size: 20px; }
.ai-chat-limit p { flex: 1; margin: 0; font-size: .76rem; line-height: 1.5; }
.ai-chat-limit button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; color: #ffffff; background: var(--ai-accent); border: 0; border-radius: 7px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; transition: background .15s ease; }
.ai-chat-limit button:hover { background: var(--rv-primary-light); }
.ai-chat-limit button .material-icons { color: #ffffff; font-size: 15px; }
.ai-chat-sidebar {
    width: 232px;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 10px;
    background: var(--ai-surface-raised);
    border-right: 1px solid var(--ai-line);
    overflow: hidden;
}
.ai-chat-newbtn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: var(--ai-accent);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: .76rem;
    font-weight: 750;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.ai-chat-newbtn:hover { background: var(--rv-primary-light); transform: translateY(-1px); }
.ai-chat-newbtn .material-icons { font-size: 18px; }
.ai-chat-search {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    background: var(--ai-surface-soft);
    border: 1px solid var(--ai-line);
    border-radius: 8px;
}
.ai-chat-search:focus-within { border-color: var(--line-3); }
.ai-chat-search .material-icons { color: var(--ai-muted); font-size: 17px; }
.ai-chat-search input { width: 100%; color: var(--ai-text); background: transparent; border: 0; outline: 0; font: inherit; font-size: .74rem; }
.ai-chat-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-color: var(--ai-scroll) transparent; }
.ai-chat-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease;
}
.ai-chat-item:hover { background: rgba(255, 255, 255, .04); }
.ai-chat-item.active { background: var(--ai-surface-hi); border-color: var(--ai-line-strong); }
.ai-chat-item-icon { color: var(--ai-muted); font-size: 17px; }
.ai-chat-item.active .ai-chat-item-icon { color: var(--ai-accent); }
.ai-chat-item-body { min-width: 0; }
.ai-chat-item-body b { display: block; overflow: hidden; color: var(--ai-text); font-size: .76rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-item-body small { display: block; margin-top: 2px; overflow: hidden; color: var(--ai-muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-del {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ai-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: color .14s ease, background .14s ease, opacity .14s ease;
}
.ai-chat-item:hover .ai-chat-del, .ai-chat-item.active .ai-chat-del, .ai-chat-item:focus-within .ai-chat-del { opacity: 1; }
.ai-chat-del:hover { color: #ff9298; background: rgba(229, 68, 76, .12); }
.ai-chat-del .material-icons { font-size: 16px; }
.ai-chat-list-empty { margin: auto; padding: 20px 10px; display: grid; justify-items: center; gap: 8px; color: var(--ai-muted); text-align: center; }
.ai-chat-list-empty .material-icons { font-size: 26px; opacity: .7; }
.ai-chat-list-empty p { margin: 0; font-size: .7rem; line-height: 1.5; }
.ai-chat-compacted-note {
    width: min(820px, 100%);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 auto;
    padding: 10px 13px;
    color: #c7d2fe;
    background: rgba(245, 166, 35, .08);
    border: 1px solid rgba(245, 166, 35, .3);
    border-radius: 10px;
}
.ai-chat-compacted-note .material-icons { flex: none; color: var(--ai-accent); font-size: 18px; }
.ai-chat-compacted-note p { margin: 0; font-size: .73rem; line-height: 1.5; }
.ai-chat-compacted-note b { color: #e0e7ff; }
.ai-chat-compact {
    width: min(820px, 100%);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 auto;
    padding: 14px 15px;
    color: var(--ai-text);
    background: var(--ai-surface-soft);
    border: 1px solid var(--ai-line-strong);
    border-radius: 12px;
}
.ai-chat-compact > .material-icons { flex: none; color: var(--ai-accent); font-size: 22px; }
.ai-chat-compact-body { flex: 1; min-width: 0; }
.ai-chat-compact-body p { margin: 0; font-size: .78rem; line-height: 1.55; }
.ai-chat-compact-warn { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; padding: 8px 10px; color: var(--rv-primary-light); background: rgba(229, 68, 76, .08); border: 1px solid rgba(229, 68, 76, .28); border-radius: 8px; font-size: .72rem; line-height: 1.45; }
.ai-chat-compact-left { display: block; margin-top: 10px; color: var(--ai-muted); font-size: .66rem; font-weight: 600; }
.ai-chat-compact-warn .material-icons { flex: none; color: #ff9298; font-size: 16px; }
.ai-chat-compact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-chat-compact-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .73rem; font-weight: 700; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.ai-chat-compact-actions .material-icons { font-size: 15px; }
.ai-chat-compact-actions .primary { color: #ffffff; background: var(--ai-accent); border: 0; }
.ai-chat-compact-actions .primary:hover { background: var(--rv-primary-light); }
.ai-chat-compact-actions .ghost { color: var(--ai-muted); background: transparent; border: 1px solid var(--ai-line-strong); }
.ai-chat-compact-actions .ghost:hover { color: var(--ai-text); background: rgba(255, 255, 255, .05); }
.ai-chat-spin { animation: aiSummarySpin 1s linear infinite; }
@media (max-width: 820px) {
.ai-chat-sidebar { width: 184px; }
}
@media (max-width: 640px) {
.ai-chat-sidebar { display: none; }
}
.bp-board { padding: 0; overflow: hidden; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bp-board.card:hover, .bp-board:hover { transform: none !important; box-shadow: none !important; }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--replay-border); }
.bp-head-title { min-width: 0; display: flex; align-items: center; gap: 11px; }
.bp-head-title > .material-icons { color: var(--replay-primary); font-size: 24px; }
.bp-head-title h3 { margin: 0; font-size: 1rem; }
.bp-head-title p { margin: 3px 0 0; color: var(--replay-muted); font-size: .72rem; }
.bp-zoom { display: flex; align-items: center; gap: 6px; }
.bp-zoom b { min-width: 48px; text-align: center; font-size: .76rem; font-variant-numeric: tabular-nums; }
.bp-zoom button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--replay-text); background: rgba(255, 255, 255, .04); border: 1px solid var(--replay-border); border-radius: 8px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.bp-zoom button:hover { background: rgba(255, 255, 255, .09); }
.bp-zoom button .material-icons { font-size: 19px; }
.bp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) 240px; }
.bp-tools { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: rgba(255, 255, 255, .015); border-right: 1px solid var(--replay-border); }
.bp-tools button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--replay-muted); background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.bp-tools button:hover:not(:disabled) { color: var(--replay-text); background: rgba(255, 255, 255, .07); }
.bp-tools button.active { color: #ffffff; background: var(--replay-primary); border-color: var(--replay-primary); }
.bp-tools button.danger:hover:not(:disabled) { color: #ff8087; background: rgba(229, 68, 76, .12); }
.bp-tools button:disabled { opacity: .35; cursor: default; }
.bp-tools button .material-icons { font-size: 20px; }
.bp-tools-divider { width: 26px; height: 1px; margin: 4px 0; background: var(--replay-border); }
.bp-viewport { position: relative; overflow: hidden; background: #0a0c11; touch-action: none; user-select: none; -webkit-user-select: none; }
.bp-viewport.bp-tool-pan { cursor: grab; }
.bp-viewport.bp-tool-pan:active { cursor: grabbing; }
.bp-viewport.bp-tool-pen, .bp-viewport.bp-tool-line, .bp-viewport.bp-tool-arrow, .bp-viewport.bp-tool-rect, .bp-viewport.bp-tool-ellipse { cursor: crosshair; }
.bp-viewport.bp-tool-text { cursor: text; }
.bp-viewport.bp-tool-eraser { cursor: cell; }
.bp-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.bp-loading .material-icons { color: var(--dash-accent, #f5a623); animation: replay-spin 1s linear infinite; }
.bp-loading strong { color: var(--dash-text-muted, #71717a); font-weight: 500; }
.bp-stage { position: absolute; top: 0; left: 0; width: 100%; transform-origin: 0 0; will-change: transform; }
.bp-stage img { display: block; width: 100%; height: auto; pointer-events: none; filter: saturate(.95) brightness(.9); }
.bp-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bp-stage svg .bp-erase-hit { opacity: .38; stroke-dasharray: 7 5; transition: opacity .12s ease; }
.bp-stage svg .bp-caret { animation: bp-caret-blink 1s step-end infinite; }
@keyframes bp-caret-blink { 50% { opacity: 0; } }
.bp-text-editor {
    position: absolute;
    z-index: 4;
    width: 1px;
    height: 1px;
    padding: 0;
    color: transparent;
    background: transparent;
    border: 0;
    outline: 0;
    opacity: 0;
    caret-color: transparent;
    pointer-events: none;
}
.bp-floor-pager { position: absolute; bottom: 14px; left: 50%; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 5px; background: rgba(10, 12, 17, .82); backdrop-filter: blur(8px); border: 1px solid var(--replay-border); border-radius: 99px; transform: translateX(-50%); }
.bp-floor-pager span { min-width: 120px; padding: 0 8px; color: var(--replay-text); font-size: .74rem; font-weight: 600; text-align: center; }
.bp-floor-pager button { box-sizing: border-box; flex: none; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 0; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid var(--replay-border); border-radius: 50%; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.bp-floor-pager button .material-icons { width: auto; height: auto; font-size: 20px; line-height: 1; }
.bp-floor-pager button:hover:not(:disabled) { background: rgba(255, 255, 255, .2); border-color: var(--replay-strong-border); }
.bp-floor-pager button:disabled { opacity: .45; cursor: default; }
.bp-side { display: flex; flex-direction: column; gap: 16px; padding: 14px; overflow-y: auto; background: rgba(255, 255, 255, .015); border-left: 1px solid var(--replay-border); }
.bp-side-block h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; color: var(--replay-text); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.bp-side-block h4 .material-icons { color: var(--replay-primary); font-size: 16px; }
.bp-floors { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; }
.bp-floors button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px; color: var(--replay-text); text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid var(--replay-border); border-radius: 10px; cursor: pointer; font: inherit; font-size: .76rem; transition: border-color .15s ease, background .15s ease; }
.bp-floors button:hover { background: rgba(255, 255, 255, .06); }
.bp-floors button.active { background: rgba(245, 166, 35, .1); border-color: rgba(245, 166, 35, .55); }
.bp-floors img { width: 58px; height: 38px; object-fit: cover; background: #0a0c11; border-radius: 6px; }
.bp-floors-note { display: block; margin-top: 9px; color: var(--replay-muted); font-size: .64rem; line-height: 1.5; }
.bp-floors-note code { padding: 1px 5px; background: rgba(255, 255, 255, .06); border-radius: 4px; font-size: .6rem; }
.bp-colors { display: flex; flex-wrap: wrap; gap: 7px; }
.bp-colors button { width: 26px; height: 26px; border: 2px solid transparent; border-radius: 50%; cursor: pointer; transition: transform .13s ease, border-color .13s ease; }
.bp-colors button:hover { transform: scale(1.12); }
.bp-colors button.active { border-color: #fff; transform: scale(1.12); }
.bp-color-custom { position: relative; width: 26px; height: 26px; display: grid; place-items: center; overflow: hidden; background: conic-gradient(#ff4d5a, var(--rv-primary-light), #43d17c, #47adfa, #b06bff, #ff4d5a); border-radius: 50%; cursor: pointer; }
.bp-color-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bp-color-custom .material-icons { color: #fff; font-size: 14px; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.bp-stroke { display: flex; align-items: center; gap: 12px; }
.bp-stroke input[type="range"] { flex: 1; accent-color: var(--replay-primary); }
.bp-stroke i { flex: none; border-radius: 50%; transition: width .12s ease, height .12s ease; }
.bp-hint small { display: flex; align-items: flex-start; gap: 7px; color: var(--replay-muted); font-size: .66rem; line-height: 1.55; }
.bp-hint .material-icons { flex: none; color: var(--replay-primary); font-size: 15px; }
@media (max-width: 1100px) {
.bp-body { grid-template-columns: 54px minmax(0, 1fr); }
.bp-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--replay-border); }
.bp-side-block { flex: 1 1 200px; }
.bp-floors { flex-direction: row; flex-wrap: wrap; max-height: none; }
.bp-floors button { width: auto; }
}
@media (max-width: 640px) {
.bp-head { align-items: flex-start; flex-direction: column; }
.bp-body { min-height: 420px; grid-template-columns: 1fr; }
.bp-tools { flex-direction: row; flex-wrap: wrap; justify-content: center; border-right: 0; border-bottom: 1px solid var(--replay-border); }
.bp-tools-divider { width: 1px; height: 26px; margin: 0 4px; }
.bp-viewport { min-height: 340px; }
}
.replay-dashboard .ai-chat-sidebar { border-radius: 0; }
.replay-dashboard .ai-summary-panel, .replay-dashboard .ai-summary-panel-shell, .replay-dashboard .bp-board, .replay-dashboard .bp-side, .replay-dashboard .ai-hotspot-plot, .replay-dashboard .ai-hotspot-ranking {
  border: 0;
  border-radius: var(--rv-r-lg);
  background: var(--rv-surface);
}
.replay-dashboard .ai-summary-head, .replay-dashboard .bp-head {
  border: 0;
  background: var(--rv-surface-2);
}
.replay-dashboard .bp-head { min-height: 44px; padding: 0 16px; }
.replay-dashboard .bp-head-title, .replay-dashboard .ai-summary-head strong { font-size: 13px; font-weight: 600; }
.replay-dashboard .ai-summary-toolbar { border: 0; background: var(--rv-surface); }
.replay-dashboard .ai-summary-message { background: none; border: 0; }
.replay-dashboard .ai-summary-message > div { font-size: 13px; line-height: 1.65; }
.replay-dashboard .ai-summary-message.user > div {
  border: 0;
  border-radius: 14px 14px 4px 14px;
  background: var(--rv-surface-3);
  color: var(--rv-text);
  padding: 9px 13px;
}
.replay-dashboard .ai-summary-message > .material-icons {
  width: 34px;
  height: 34px;
  background: var(--rv-primary);
  color: var(--rv-primary-ink);
  font-size: 18px;
}
.replay-dashboard .ai-summary-msg-logo { width: 42px; height: 42px; flex: none; }
.replay-dashboard .ai-summary-segmented {
  border: 0;
  border-radius: 999px;
  background: var(--rv-surface-2);
}
.replay-dashboard .ai-summary-segmented button { border-radius: 999px; }
.replay-dashboard .ai-summary-segmented button.active {
  background: var(--rv-primary);
  color: var(--rv-primary-ink);
}
.replay-dashboard .ai-summary-views button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rv-text-2);
  transition: background var(--rv-fast), color var(--rv-fast);
}
.replay-dashboard .ai-summary-views button:hover { background: var(--rv-surface-2); color: var(--rv-text); }
.replay-dashboard .ai-summary-views button.active {
  background: var(--rv-surface-3);
  color: var(--rv-text);
}
.replay-dashboard .ai-summary-views button .material-icons { color: var(--rv-muted); }
.replay-dashboard .ai-summary-views button.active .material-icons { color: var(--rv-primary); }
.replay-dashboard .ai-summary-composer, .replay-dashboard .ai-chat-search, .replay-dashboard .ai-strategy-search, .replay-dashboard .ai-site-select-trigger {
  border: 0;
  border-radius: var(--rv-r);
  background: var(--rv-input);
  color: var(--rv-text);
}
.replay-dashboard .ai-chat-item-body, .replay-dashboard .ai-strategy-list > * {
  border: 0;
  border-radius: var(--rv-r-sm);
  transition: background var(--rv-fast);
}
.replay-dashboard .ai-chat-item-body:hover, .replay-dashboard .ai-strategy-list > *:hover { background: var(--rv-surface-2); }
.replay-dashboard .ai-site-select-menu {
  border: 0;
  border-radius: 12px;
  background: var(--rv-surface-2);
  box-shadow: var(--rv-shadow);
}
.replay-dashboard .ai-hotspot-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rv-primary), var(--rv-primary-light));
}
.replay-dashboard .bp-tools button, .replay-dashboard .bp-floors button, .replay-dashboard .bp-zoom button {
  border: 0;
  border-radius: var(--rv-r-sm);
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  transition: background var(--rv-fast), color var(--rv-fast);
}
.replay-dashboard .bp-tools button:hover, .replay-dashboard .bp-floors button:hover, .replay-dashboard .bp-zoom button:hover { background: var(--rv-surface-3); color: var(--rv-text); }
.replay-dashboard .bp-tools button.active, .replay-dashboard .bp-floors button.active {
  background: var(--rv-primary);
  color: var(--rv-primary-ink);
}
.replay-dashboard .bp-tools-divider { background: var(--rv-line); }
.replay-dashboard .md-p { margin: 0 0 8px; }
.replay-dashboard .md-list { margin: 0 0 10px; padding-left: 18px; }
.replay-dashboard .md-list--ordered { list-style: decimal; }
.replay-dashboard .md-code-inline, .replay-dashboard .md-code {
  border: 0;
  border-radius: var(--rv-r-sm);
  background: var(--rv-input);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.replay-dashboard .md-quote {
  border: 0;
  border-left: 0;
  padding-left: 12px;
  color: var(--rv-text-2);
}
.replay-dashboard .md-hr { border: 0; height: 1px; background: var(--rv-line); }
.replay-dashboard .md-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.replay-dashboard .md-table th {
  padding: 8px 10px;
  border: 0;
  background: var(--rv-surface-2);
  color: var(--rv-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}
.replay-dashboard .md-table td { padding: 8px 10px; border: 0; }
.replay-dashboard .md-table tbody tr:hover { background: var(--rv-surface-2); }
}

/* ---- 2026-10-28: icons without plates, one header per section ------------- */
/* Icons sit on the surface they belong to: no tinted plate behind any of them.
   The AI avatars that drew a white glyph on an accent disc take the accent. */
.replay-dashboard .material-icons[data-i],
.stats-modal .material-icons[data-i] {
  width: 1.15em;
  height: 1.15em;
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.replay-dashboard .ai-summary-head > div > .material-icons,
.replay-dashboard .ai-summary-welcome .material-icons,
.replay-dashboard .ai-summary-message > .material-icons { color: var(--rv-primary); font-size: 22px; }
.replay-dashboard .ai-summary-welcome .material-icons { font-size: 34px; }
.replay-dashboard .replay-stat-card .material-icons { font-size: 22px; }
.replay-dashboard .utility-rail nav button > .material-icons { font-size: 18px; justify-self: center; }
.replay-dashboard .utility-rail nav button.active > .material-icons { color: var(--rv-primary-light); }
.replay-dashboard .replay-empty .material-icons { font-size: 30px; }
.stats-modal-leaders .material-icons[data-i] { font-size: 22px; color: var(--replay-primary); }

/* Count chips in the Utility rail: a fixed pill, never stretched by the row. */
.replay-dashboard .utility-rail nav button > i { align-self: center; height: 20px; line-height: 20px; }

/* Section header shared by every tab. */
.replay-dashboard .rv-toolbar { align-items: flex-end; padding-bottom: 14px; margin-bottom: 0; border-bottom: 1px solid var(--rv-line); }
.replay-dashboard .rv-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
  color: var(--rv-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.replay-dashboard .rv-crumb .material-icons { font-size: 14px; }
.replay-dashboard .rv-toolbar-title h1 { display: flex; align-items: center; gap: 10px; }
.replay-dashboard .rv-toolbar-title h1 > .material-icons { color: var(--rv-primary); font-size: 22px; }
.replay-dashboard .rv-toolbar-title h1 small {
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--rv-surface-2);
  color: var(--rv-text-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Overview stats: one even row of six, three on mid widths, two on phones. */
.replay-dashboard .replay-grid-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1340px) { .replay-dashboard .replay-grid-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .replay-dashboard .replay-grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The map board starts under the header instead of floating mid-screen. */
.replay-dashboard .replay-map-stack { justify-content: flex-start; min-height: 0; }

/* The section header already names AI Summary and the map. */
.replay-dashboard .rv-workspace .ai-summary-head { display: none; }

/* Phones: the three match actions share one even row. */
@media (max-width: 640px) {
  .replay-dashboard .rv-toolbar-actions { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-left: 0; }
  .replay-dashboard .rv-toolbar-actions > button { width: 100%; min-width: 0; padding: 0 8px; gap: 5px; font-size: 12px; white-space: nowrap; }
  .replay-dashboard .rv-toolbar-title h1 { font-size: 21px; }
}
