:root {
  color-scheme: dark;
  --bg: #070a08;
  --bg-deep: #040605;
  --surface: rgba(19, 27, 23, 0.68);
  --surface-strong: rgba(24, 34, 29, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.065);
  --line: rgba(207, 255, 224, 0.11);
  --line-strong: rgba(104, 238, 157, 0.28);
  --text: #eff8f2;
  --text-soft: #c1cec6;
  --muted: #829088;
  --accent: #45df88;
  --accent-bright: #72f3a5;
  --accent-deep: #1d9a58;
  --accent-soft: rgba(69, 223, 136, 0.12);
  --blue: #67b7ff;
  --warn: #efbb61;
  --danger: #ff7180;
  --shadow: 0 22px 72px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;
  --sidebar: 196px;
  --topbar: 72px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 10%, rgba(27, 220, 103, 0.14), transparent 24rem),
    radial-gradient(circle at 18% 92%, rgba(21, 130, 70, 0.12), transparent 30rem),
    linear-gradient(145deg, #060907 0%, #090d0b 48%, #050806 100%);
  font-size: 14px;
  line-height: 1.5;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: 0.46; }
[hidden] { display: none !important; }

button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(111, 243, 161, 0.26);
  border-radius: 11px;
  background: linear-gradient(135deg, #52e490, #2dbd6d);
  color: #061008;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(40, 201, 107, 0.14), inset 0 1px rgba(255, 255, 255, 0.34);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(40, 201, 107, 0.2), inset 0 1px rgba(255, 255, 255, 0.4); }
button:active:not(:disabled) { transform: translateY(0); }
button.secondary, .secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}
button.secondary:hover:not(:disabled), .secondary:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(82, 229, 142, 0.08); color: var(--text); }
.danger-button {
  border-color: rgba(255, 113, 128, 0.34);
  background: rgba(255, 113, 128, 0.1);
  color: #ffadb7;
  box-shadow: none;
}
.text-button, .table-action {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-bright);
  font-weight: 680;
  box-shadow: none;
}
.text-button:hover:not(:disabled), .table-action:hover:not(:disabled) { transform: none; color: #a1ffc2; box-shadow: none; }

.boot-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.boot-lockup { display: grid; justify-items: center; gap: 12px; color: var(--muted); }
.boot-lockup strong { color: var(--text); letter-spacing: 0.08em; }

.brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 233, 137, 0.32);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(63, 232, 134, 0.14), rgba(7, 13, 10, 0.82));
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 22px rgba(54, 219, 122, 0.1);
}
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 15px; letter-spacing: 0.055em; }
.brand-copy small { margin-top: 5px; color: #5a7163; font-size: 8px; letter-spacing: 0.16em; }

.product-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 18, 15, 0.88), rgba(9, 14, 11, 0.78));
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: 16px 0 60px rgba(0, 0, 0, 0.14);
}
.app-sidebar .brand { padding: 0 4px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.primary-nav { display: grid; gap: 6px; margin-top: 18px; }
.primary-nav button {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #8d9b92;
  font-size: 13px;
  font-weight: 620;
  box-shadow: none;
  text-align: left;
}
.primary-nav button:hover:not(:disabled) { transform: none; border-color: var(--line); background: rgba(255, 255, 255, 0.035); color: var(--text-soft); box-shadow: none; }
.primary-nav button.active {
  border-color: rgba(76, 231, 139, 0.18);
  background: linear-gradient(90deg, rgba(55, 218, 124, 0.16), rgba(55, 218, 124, 0.035));
  color: var(--accent-bright);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 8px 26px rgba(30, 160, 85, 0.08);
}
.primary-nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 3px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(68, 227, 137, 0.72);
}
.sidebar-spacer { flex: 1; }
.connection-summary {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  padding: 11px 12px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.032);
  color: var(--text-soft);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
  text-align: left;
}
.connection-summary:hover:not(:disabled) { transform: none; border-color: var(--line-strong); background: rgba(64, 222, 130, 0.055); box-shadow: none; }
.connection-summary span { color: var(--muted); font-size: 10px; }
.connection-summary strong { color: var(--accent-bright); font-size: 11px; }
.connection-summary small { grid-column: 1 / -1; color: #536159; font-size: 9px; }
.sidebar-runtime { margin: 12px 4px 0; padding-top: 12px; border-top: 1px solid var(--line); color: #607067; font-size: 9px; }
.sidebar-runtime span { color: var(--muted); }
.sidebar-runtime p { margin: 4px 0 0; line-height: 1.45; }

.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 32;
  min-height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 9, 0.72);
  backdrop-filter: blur(22px) saturate(145%);
}
.topbar-copy { min-width: 0; }
.topbar-copy h1 { margin: 2px 0 0; color: var(--text); font-size: 22px; line-height: 1.15; letter-spacing: -0.025em; }
.eyebrow { overflow: hidden; color: #6b7b71; font-size: 9px; letter-spacing: 0.08em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.coach-shortcut { min-width: 106px; min-height: 36px; font-size: 12px; }
.account-button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 38px minmax(0, auto);
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 5px;
  border-color: transparent;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
}
.account-button:hover:not(:disabled) { transform: none; border-color: var(--line); background: rgba(255, 255, 255, 0.035); box-shadow: none; }
.account-button img, .avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(93, 238, 152, 0.3);
  box-shadow: 0 0 18px rgba(55, 216, 124, 0.12);
}
.avatar-fallback { display: grid; place-items: center; background: rgba(69, 223, 136, 0.12); color: var(--accent-bright); font-size: 10px; }
.account-copy { display: grid; min-width: 0; }
.account-copy strong { max-width: 150px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { max-width: 150px; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav-toggle, .mobile-nav-backdrop { display: none; }
.runtime-cache { display: none !important; }

.content { width: min(100%, 1500px); margin: 0 auto; padding: 22px 26px 44px; }
.glass-panel, .glass-metric, .metric-catalog-card, .recent-match-card, .side-group, .card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.047), rgba(255, 255, 255, 0.012) 42%),
    var(--surface);
  backdrop-filter: blur(20px) saturate(135%);
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.06);
}
.glass-panel, .card { border-radius: var(--radius-lg); }
.section-heading, .card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.section-heading > div, .card-heading > div { min-width: 0; }
.section-heading span, .card-heading span, .section-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-heading h2, .card-heading h3 { margin: 3px 0 0; color: var(--text); font-size: 18px; line-height: 1.25; letter-spacing: -0.025em; }
.card-heading h3 { font-size: 15px; }
.section-heading small, .card-heading small { color: var(--muted); font-size: 9px; text-align: right; }
.muted-copy { color: var(--muted); }

.match-context {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  margin-bottom: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% -30%, rgba(58, 231, 132, 0.18), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(20, 29, 24, 0.72);
}
.match-context span { color: var(--muted); font-size: 9px; letter-spacing: 0.08em; }
.match-context h2 { margin: 3px 0 1px; color: var(--text); font-size: 18px; }
.match-context h2 i { color: var(--accent); font-style: normal; font-weight: 500; }
.match-context p { margin: 0; color: var(--text-soft); font-size: 11px; }

.metric-tabs, .report-section-tabs {
  display: flex;
  gap: 7px;
  padding: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.metric-tabs::-webkit-scrollbar, .report-section-tabs::-webkit-scrollbar { display: none; }
.metric-tabs button, .report-section-tabs button {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 14px;
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #8d9b92;
  font-size: 10px;
  font-weight: 620;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}
.metric-tabs button:hover:not(:disabled), .report-section-tabs button:hover:not(:disabled) { transform: none; border-color: var(--line-strong); background: rgba(67, 225, 133, 0.075); box-shadow: none; }
.metric-tabs button.active, .report-section-tabs button.active { border-color: rgba(75, 232, 139, 0.32); background: rgba(63, 222, 128, 0.15); color: var(--accent-bright); }

.home-prototype { display: grid; }
.home-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(320px, 0.96fr); align-items: start; gap: 26px; }
.home-main-column, .home-side-column { min-width: 0; display: grid; gap: 16px; }
.player-identity { min-height: 124px; display: flex; align-items: center; gap: 17px; padding: 17px 20px; background: radial-gradient(circle at 96% 2%, rgba(64, 227, 134, 0.18), transparent 18rem), var(--surface); }
.player-identity > div:nth-child(2) { min-width: 0; flex: 1; }
.player-identity > div > span { color: var(--muted); font-size: 9px; }
.player-identity h2 { margin: 4px 0 4px; overflow: hidden; font-size: 26px; letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }
.player-identity p { margin: 0; color: var(--muted); font-size: 10px; }
.player-avatar-large { flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(88, 235, 149, 0.26); border-radius: 50%; background: rgba(69, 223, 136, 0.1); color: var(--accent-bright); font-size: 20px; box-shadow: 0 0 26px rgba(54, 216, 121, 0.13); }
.player-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.radar-card { min-height: 238px; padding: 14px 15px 10px; }
.radar-card canvas { width: 100%; height: 184px; display: block; }
.home-stat-grid, .metric-summary-grid, .report-kpi-grid, .summary-card-grid { display: grid; gap: 10px; }
.home-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-summary-grid, .summary-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; }
.report-kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 12px 0 16px; }
.glass-metric { min-height: 78px; display: flex; flex-direction: column; padding: 11px 13px; border-radius: var(--radius-md); }
.glass-metric.accent { border-color: rgba(79, 236, 143, 0.26); background: linear-gradient(145deg, rgba(63, 226, 132, 0.15), rgba(255, 255, 255, 0.018)), var(--surface); }
.glass-metric > span { color: var(--text-soft); font-size: 10px; }
.glass-metric > strong { margin: 5px 0 2px; color: var(--text); font-size: 21px; line-height: 1; letter-spacing: -0.035em; }
.glass-metric > small { margin-top: auto; color: var(--muted); font-size: 8px; line-height: 1.35; }
.home-section { display: grid; gap: 10px; }
.home-recent-compact { min-height: 112px; padding: 13px 14px; }
.home-recent-compact .section-heading h2 { font-size: 16px; }
.recent-match-compact-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.recent-match-compact { min-width: 0; min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 7px 4px; border-radius: 12px; background: rgba(12, 22, 18, 0.58); color: var(--text); text-align: center; box-shadow: inset 0 1px rgba(255, 255, 255, 0.04); }
.recent-match-compact:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 9px 22px rgba(0, 0, 0, 0.22); }
.recent-match-compact > span { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.recent-match-compact > strong { font-size: 9px; white-space: nowrap; }
.recent-match-compact > small { color: var(--muted); font-size: 8px; }
.recent-match-compact.win { border-color: rgba(74, 232, 138, 0.25); }
.recent-match-compact.loss { border-color: rgba(255, 113, 128, 0.22); }
.recent-match-compact.draw { border-color: rgba(239, 187, 97, 0.22); }
.recent-match-strip { display: grid; grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 9px; overflow-x: auto; }
.recent-match-card { min-height: 116px; display: flex; flex-direction: column; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--text); text-align: left; box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.05); }
.recent-match-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28); }
.recent-match-card > span { color: var(--muted); font-size: 8px; }
.recent-match-card > strong { margin-top: 7px; color: var(--text-soft); font-size: 11px; }
.recent-match-card > b { margin-top: auto; color: var(--text); font-size: 18px; }
.recent-match-card > small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.recent-match-card.win { border-color: rgba(74, 232, 138, 0.22); }
.recent-match-card.loss { border-color: rgba(255, 113, 128, 0.18); }
.home-ranking-pair, .home-side-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ranking-card { min-height: 198px; padding: 15px; }
.map-stat-card { min-height: 186px; padding: 13px; }
.home-side-stats .card-heading small { display: none; }
.home-side-stats .card-heading h3 { font-size: 15px; }
.ranking-list { display: grid; gap: 10px; margin-top: 14px; }
.ranking-list > div { display: grid; grid-template-columns: minmax(62px, 0.85fr) minmax(72px, 1.8fr) 25px; align-items: center; gap: 8px; color: var(--text-soft); font-size: 9px; }
.ranking-list i { height: 3px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.ranking-list i b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright)); box-shadow: 0 0 10px rgba(71, 226, 137, 0.4); }
.ranking-list strong { color: var(--text); text-align: right; }
.metric-gap-state { min-height: 126px; display: grid; align-content: center; justify-items: center; text-align: center; }
.metric-gap-state strong { color: var(--accent); font-size: 31px; }
.metric-gap-state p { max-width: 380px; margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.map-stat-list { display: grid; gap: 6px; margin-top: 10px; }
.map-stat-row { min-height: 31px; display: grid; grid-template-columns: 20px 1fr 34px; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.map-stat-row > b { color: var(--accent); font-size: 9px; }
.map-stat-row > span { display: grid; }
.map-stat-row > span strong { color: var(--text-soft); font-size: 10px; }
.map-stat-row > span small { color: var(--muted); font-size: 8px; }
.map-stat-row > em { color: var(--accent-bright); font-size: 11px; font-style: normal; text-align: right; }
.outcome-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 18px; }
.outcome-summary > div { display: grid; justify-items: center; padding: 10px 5px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.outcome-summary span { color: var(--muted); font-size: 9px; }
.outcome-summary strong { margin-top: 3px; font-size: 18px; }
.card-note { margin: 10px 0 0; color: var(--muted); font-size: 8px; text-align: center; }
.home-empty { min-height: 430px; display: grid; grid-template-columns: 1fr; align-items: center; padding: 46px; }
.home-empty h2 { margin: 7px 0; font-size: 30px; }
.home-empty p { max-width: 640px; color: var(--muted); }
.home-welcome { min-height: 380px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr); align-items: center; gap: 24px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.home-welcome h1 { max-width: 720px; margin: 8px 0; font-size: 32px; letter-spacing: -0.045em; }
.home-welcome p { max-width: 720px; color: var(--muted); font-size: 11px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.onboarding-steps { display: grid; gap: 8px; }
.onboarding-steps article { display: grid; grid-template-columns: 28px 1fr; gap: 3px 9px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.025); }
.onboarding-steps article > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-bright); font-size: 9px; }
.onboarding-steps article strong { font-size: 10px; }
.onboarding-steps article p { margin: 0; font-size: 8px; }

.matches-page { display: grid; gap: 14px; }
.match-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 13px 15px; }
.match-filter-bar label { min-width: 145px; display: grid; gap: 5px; }
.match-filter-bar label span { color: var(--muted); font-size: 8px; }
select, input, textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 9, 7, 0.64);
  color: var(--text-soft);
  padding: 0 11px;
}
textarea { min-height: 92px; padding: 11px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #506057; }
.match-table-card, .evidence-table-card, .all-rounds { padding: 15px; }
.table-wrap { width: 100%; margin-top: 12px; overflow: auto; border: 1px solid rgba(255, 255, 255, 0.045); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; color: var(--text-soft); font-size: 10px; }
.table th, .table td { padding: 10px 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); text-align: left; white-space: nowrap; }
.table th { position: sticky; top: 0; z-index: 1; background: rgba(15, 23, 19, 0.96); color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: 0.03em; }
.table tbody tr { background: rgba(255, 255, 255, 0.012); }
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.table tbody tr:hover { background: rgba(70, 225, 135, 0.045); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-action { margin-right: 10px; font-size: 9px; }
.result-value { color: var(--text-soft); }
.result-value.win { color: var(--accent-bright); }
.result-value.loss { color: #ff939e; }
.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; }
.status-pill.ok { border-color: rgba(74, 232, 138, 0.22); background: rgba(68, 222, 131, 0.08); color: var(--accent-bright); }
.status-pill.warn { border-color: rgba(239, 187, 97, 0.22); background: rgba(239, 187, 97, 0.07); color: #f5c977; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.pagination button { min-height: 29px; padding: 0 12px; border-color: var(--line); background: rgba(255, 255, 255, 0.035); color: var(--text-soft); box-shadow: none; }

.metric-center-intro { min-height: 156px; display: grid; grid-template-columns: 1fr minmax(330px, 0.65fr); align-items: center; gap: 24px; padding: 22px; margin-bottom: 14px; background: radial-gradient(circle at 93% 20%, rgba(69, 223, 136, 0.15), transparent 21rem), var(--surface); }
.metric-center-intro > div > span, .metric-state-layout > div > span { color: var(--accent); font-size: 9px; letter-spacing: 0.07em; }
.metric-center-intro h2, .metric-state-layout h2 { margin: 5px 0; font-size: 24px; letter-spacing: -0.035em; }
.metric-center-intro p, .metric-state-layout p { max-width: 720px; margin: 0; color: var(--muted); font-size: 10px; }
.score-cluster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.score-cluster > div { display: grid; justify-items: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.03); }
.score-cluster span { color: var(--muted); font-size: 8px; }
.score-cluster strong { margin-top: 4px; color: var(--accent-bright); font-size: 18px; }
.metric-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.metric-catalog-card { min-height: 132px; display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto 1fr auto; gap: 5px 9px; padding: 14px; border-radius: 14px; color: var(--text); box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.05); text-align: left; }
.metric-catalog-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.27); }
.metric-catalog-card > span { grid-row: 1 / 3; color: var(--accent); font-size: 9px; }
.metric-catalog-card > strong { color: var(--text); font-size: 13px; }
.metric-catalog-card > p { grid-column: 2 / 4; margin: 0; color: var(--muted); font-size: 9px; }
.metric-catalog-card > small { grid-column: 2 / 4; align-self: end; color: var(--accent-bright); font-size: 8px; }
.metric-catalog-card.partial > small { color: var(--warn); }

.aim-analysis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(210px, 0.72fr); gap: 12px; margin-bottom: 14px; }
.analysis-panel { padding: 16px; }
.analysis-rows { display: grid; gap: 12px; margin-top: 15px; }
.analysis-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-soft); font-size: 10px; }
.analysis-row > div:first-child strong { color: var(--text); font-size: 11px; }
.analysis-track { height: 3px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.analysis-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #2e9e61, var(--accent-bright)); box-shadow: 0 0 10px rgba(67, 226, 134, 0.34); }
.analysis-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.analysis-side-stack { display: grid; gap: 12px; }
.compact-analysis { min-height: 128px; padding: 15px; }
.compact-analysis .card-heading > strong { color: var(--accent-bright); font-size: 26px; }
.compact-analysis p { margin: 17px 0 0; color: var(--muted); font-size: 9px; }
.evidence-table-card { margin-bottom: 14px; }
.utility-layout, .mistake-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.scoreboard-section { margin-top: 16px; }
.side-group-list { display: grid; gap: 10px; margin-top: 11px; }
.side-group { overflow: hidden; border-radius: 14px; }
.side-group.ally { border-color: rgba(71, 227, 137, 0.24); }
.side-group.enemy { border-color: rgba(255, 113, 128, 0.18); }
.side-group-head { display: flex; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 10px; }
.side-group-head span { color: var(--muted); font-size: 8px; }
.side-group .table-wrap { margin: 0; border: 0; border-radius: 0; }
.map-event-layout { padding: 17px; }
.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.place-grid article { min-height: 56px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(255, 255, 255, 0.045); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.place-grid article > b { color: var(--accent); font-size: 9px; }
.place-grid article strong { font-size: 10px; }
.place-grid article p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.place-grid article > span { color: var(--accent-bright); font-size: 12px; }
.metric-state-layout { min-height: 300px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr); align-items: center; gap: 32px; padding: 30px; }
.state-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.state-badges span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); font-size: 8px; }
.state-action-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.state-action-card strong { font-size: 14px; }
.state-action-card p { margin: 7px 0 15px; }
.state-action-card button { width: 100%; margin-top: 7px; }
.favorite-place-list { display: grid; gap: 7px; }
.favorite-place-list > div { display: flex; justify-content: space-between; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); color: var(--text-soft); font-size: 10px; }
.favorite-place-list strong { color: var(--accent-bright); }

.report-insights { padding: 17px; }
.insight-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.insight-list article { min-height: 126px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.insight-list article > b { color: var(--accent); font-size: 9px; }
.insight-list article > div { display: flex; flex-direction: column; }
.insight-list strong { color: var(--text-soft); font-size: 10px; font-weight: 620; line-height: 1.55; }
.insight-list button { align-self: flex-start; margin-top: auto; font-size: 9px; }

.round-review-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.85fr); gap: 14px; margin-bottom: 14px; }
.round-list-column { min-width: 0; }
.round-card-list { display: grid; gap: 8px; margin-top: 11px; }
.round-review-card { min-height: 88px; display: grid; gap: 5px; padding: 12px 14px; border-color: var(--line); background: rgba(20, 28, 24, 0.62); color: var(--text); box-shadow: inset 0 1px rgba(255, 255, 255, 0.04); text-align: left; }
.round-review-card:hover:not(:disabled) { transform: none; border-color: var(--line-strong); background: rgba(58, 219, 126, 0.06); box-shadow: inset 0 1px rgba(255, 255, 255, 0.05); }
.round-review-card.active { border-color: rgba(75, 235, 142, 0.34); background: linear-gradient(90deg, rgba(57, 221, 128, 0.13), rgba(255, 255, 255, 0.018)); }
.round-review-card > span { display: flex; align-items: center; justify-content: space-between; }
.round-review-card > span b { color: var(--accent-bright); font-size: 10px; }
.round-review-card > span em { color: var(--warn); font-size: 8px; font-style: normal; }
.round-review-card > strong { color: var(--text-soft); font-size: 10px; }
.round-review-card > small { color: var(--muted); font-size: 8px; }
.round-evidence { align-self: start; position: sticky; top: calc(var(--topbar) + 14px); min-height: 500px; padding: 18px; }
.round-evidence-lead { margin: 9px 0 18px; color: var(--muted); font-size: 9px; }
.round-timeline { display: grid; gap: 0; }
.round-timeline > div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.round-timeline b { color: var(--accent); font-size: 9px; }
.round-timeline span { color: var(--text-soft); font-size: 10px; }
.round-question { display: grid; gap: 4px; margin: 18px 0; padding: 12px; border: 1px solid rgba(103, 183, 255, 0.2); border-radius: 11px; background: rgba(103, 183, 255, 0.055); }
.round-question span { color: var(--blue); font-size: 8px; }
.round-question strong { color: var(--text-soft); font-size: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.all-rounds { margin-top: 14px; }

.view-state { min-height: 360px; display: grid; place-items: center; align-content: center; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.view-state > span { color: var(--accent); font-size: 9px; letter-spacing: 0.08em; }
.view-state h3 { max-width: 620px; margin: 8px 0 5px; font-size: 24px; }
.view-state p { max-width: 620px; margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.view-state.error { border-color: rgba(255, 113, 128, 0.26); }
.view-state.error > span { color: var(--danger); }
.loading-bar { width: min(300px, 70vw); height: 3px; margin-top: 18px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.loading-bar span { width: 36%; height: 100%; display: block; border-radius: inherit; background: var(--accent); animation: loading-slide 1.15s ease-in-out infinite alternate; }
@keyframes loading-slide { from { transform: translateX(0); } to { transform: translateX(180%); } }
.inline-status, .inline-empty, .empty { padding: 18px; color: var(--muted); font-size: 9px; text-align: center; }

.replay-frame { width: 100%; height: calc(100vh - 190px); min-height: 620px; border: 1px solid var(--line); border-radius: 16px; background: #080b09; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.section-head h3 { margin: 0; font-size: 16px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.source-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.source-chip { padding: 3px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 7px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric-card { min-height: 110px; padding: 14px; }
.metric-label { color: var(--muted); font-size: 9px; }
.metric-value { margin-top: 7px; color: var(--text); font-size: 23px; font-weight: 760; }
.metric-detail { margin-top: 5px; color: var(--text-soft); font-size: 8px; }
.tag { display: inline-flex; margin: 3px 4px 0 0; padding: 3px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 7px; }

.coach-layout { height: calc(100vh - 120px); min-height: 660px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; }
.coach-history-card, .coach-card { min-height: 0; padding: 14px; overflow: hidden; }
.coach-history-card { display: flex; flex-direction: column; }
.coach-history-head, .coach-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.coach-history-head h3, .coach-head h3 { margin: 0; font-size: 15px; }
.coach-history-head p, .coach-head p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.coach-session-list { min-height: 0; display: grid; gap: 7px; margin-top: 12px; overflow: auto; }
.coach-session-item { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.coach-session-item.active { border-color: rgba(73, 231, 138, 0.28); background: rgba(64, 222, 131, 0.07); }
.coach-session-open { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--text-soft); box-shadow: none; font-size: 9px; text-align: left; }
.coach-session-open:hover:not(:disabled) { transform: none; box-shadow: none; }
.coach-session-actions { display: flex; gap: 4px; }
.coach-session-actions button { min-height: 25px; padding: 0 6px; border-color: var(--line); background: rgba(255, 255, 255, 0.035); color: var(--muted); font-size: 8px; box-shadow: none; }
.coach-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.coach-head-actions { max-width: 340px; display: grid; justify-items: end; gap: 5px; }
.coach-rule-note { text-align: right; }
.coach-thread-scroll { min-height: 0; margin-top: 12px; padding: 12px; overflow: auto; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 13px; background: rgba(3, 7, 5, 0.34); }
.coach-thread { display: grid; gap: 12px; }
.chat-turn { display: grid; gap: 4px; }
.chat-turn.user { justify-items: end; }
.chat-bubble { max-width: min(760px, 88%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.035); color: var(--text-soft); font-size: 11px; }
.chat-turn.user .chat-bubble { border-color: rgba(73, 231, 138, 0.24); background: rgba(61, 219, 127, 0.1); }
.chat-meta { color: var(--muted); font-size: 8px; }
.coach-answer { max-width: min(850px, 96%); color: var(--text-soft); font-size: 11px; }
.coach-answer h1, .coach-answer h2, .coach-answer h3 { color: var(--text); }
.coach-answer p { line-height: 1.7; }
.coach-answer table { width: 100%; border-collapse: collapse; }
.coach-answer th, .coach-answer td { padding: 7px; border: 1px solid var(--line); font-size: 9px; }
.coach-answer code { padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--accent-bright); }
.coach-composer { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 10px; }
.coach-composer textarea { min-height: 58px; max-height: 150px; }
.coach-status-slot { min-height: 0; }
.coach-loading, .coach-job-panel, .coach-error { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.025); color: var(--text-soft); font-size: 9px; }
.coach-error { border-color: rgba(255, 113, 128, 0.24); color: #ffb3bc; }
.spinner { width: 24px; height: 24px; flex: 0 0 auto; border: 3px solid rgba(69, 223, 136, 0.16); border-top-color: var(--accent-bright); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.loading-steps span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; }
.coach-report-dialog { width: min(900px, calc(100vw - 32px)); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #111814; color: var(--text); box-shadow: var(--shadow); }
.coach-report-modal-shell { padding: 18px; }
.coach-report-modal-head { display: flex; justify-content: space-between; gap: 16px; }
.coach-report-modal-body { max-height: 65vh; overflow: auto; }
.coach-report-modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.evidence-disclosure { margin-top: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }

.event-list { display: grid; gap: 6px; margin-top: 8px; }
.event-row { display: grid; grid-template-columns: 74px 72px 72px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.event-row strong { color: var(--text-soft); }
.match-warning { color: #ffadb7; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-status { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.025); color: var(--muted); font-size: 8px; }
.job-status.running { border-color: rgba(103, 183, 255, 0.3); color: var(--blue); }
.job-status.ok { border-color: rgba(69, 223, 136, 0.3); color: var(--accent-bright); }
.job-status.warn { border-color: rgba(239, 187, 97, 0.3); color: var(--warn); }
.job-status.failed { border-color: rgba(255, 113, 128, 0.34); color: var(--danger); }
.job-time, .job-meta { color: var(--muted); font-size: 8px; }
.job-help { display: grid; gap: 4px; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, 0.16); color: var(--muted); font-size: 8px; }
.job-help strong { color: var(--text-soft); }
.job-actions { display: flex; gap: 8px; margin-top: 8px; }
.job-actions button { min-height: 29px; padding: 0 10px; font-size: 8px; }

.admin-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.admin-topbar { min-height: 82px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 620px); gap: 20px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(11, 17, 14, 0.9); }
.admin-token-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr); grid-auto-rows: min-content; gap: 14px; padding: 18px; }
.admin-card { margin: 0; padding: 16px; }
.admin-detail-card { grid-row: span 3; }
.admin-ai-card { grid-column: 1 / -1; }
.admin-status, .admin-detail, .admin-audit-list, .admin-trace-list { display: grid; gap: 9px; color: var(--muted); font-size: 9px; }
.admin-message { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); color: var(--muted); }
.admin-message.ok { border-color: rgba(69, 223, 136, 0.3); color: #b7f7ce; }
.admin-message.warn { border-color: rgba(239, 187, 97, 0.3); color: #f4d18a; }
.admin-message.failed { border-color: rgba(255, 113, 128, 0.34); color: #ffd0d0; }
.admin-kv { display: grid; gap: 7px; }
.admin-kv div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.admin-kv strong { color: var(--text-soft); }
.admin-kv span { overflow-wrap: anywhere; }
.admin-actions-note { display: grid; gap: 5px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.admin-actions-note p { margin: 0; }
.admin-task-list { display: grid; gap: 7px; }
.admin-task-row { width: 100%; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); color: var(--text-soft); box-shadow: none; text-align: left; }
.admin-task-row:hover:not(:disabled) { transform: none; border-color: var(--line-strong); box-shadow: none; }
.admin-task-row.running { border-color: rgba(103, 183, 255, 0.3); }
.admin-task-row.ok { border-color: rgba(69, 223, 136, 0.3); }
.admin-task-row.warn { border-color: rgba(239, 187, 97, 0.3); }
.admin-task-row.failed { border-color: rgba(255, 113, 128, 0.34); }
.admin-task-row strong, .admin-task-row em { overflow-wrap: anywhere; }
.admin-task-row span, .admin-task-row small, .admin-task-row em { color: var(--muted); font-size: 8px; font-style: normal; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0; }
.admin-mini-table { display: grid; gap: 2px; }
.admin-mini-table div { display: grid; grid-template-columns: 84px 160px 96px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.admin-mini-table span, .admin-mini-table small { color: var(--muted); overflow-wrap: anywhere; }
.admin-mini-table strong { color: var(--text-soft); overflow-wrap: anywhere; }
.admin-trace-row { display: grid; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.admin-trace-row.ok { border-color: rgba(69, 223, 136, 0.26); }
.admin-trace-row.failed { border-color: rgba(255, 113, 128, 0.34); }
.admin-trace-row header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.admin-trace-row header strong { color: var(--text-soft); overflow-wrap: anywhere; }
.admin-trace-row header small { color: var(--muted); }

.guest-view { min-height: 100vh; display: flex; flex-direction: column; }
.guest-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 6vw; border-bottom: 1px solid var(--line); background: rgba(8, 12, 10, 0.58); backdrop-filter: blur(18px); }
.brand-guest { min-width: 220px; }
.beta-badge { padding: 6px 10px; border: 1px solid rgba(72, 231, 137, 0.24); border-radius: 999px; background: rgba(65, 222, 130, 0.07); color: var(--accent-bright); font-size: 9px; }
.guest-main { flex: 1; width: min(1240px, 100%); margin: 0 auto; padding: 56px 5vw 28px; }
.guest-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr); align-items: center; gap: 7vw; }
.hero-kicker { margin: 0; color: var(--accent); font-size: 10px; font-weight: 760; letter-spacing: 0.12em; }
.guest-copy h1 { margin: 14px 0 14px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -0.055em; }
.guest-copy h1 span { color: var(--accent-bright); text-shadow: 0 0 38px rgba(71, 232, 138, 0.24); }
.hero-lead { max-width: 610px; color: var(--muted); font-size: 14px; }
.guest-actions { display: flex; gap: 9px; margin-top: 28px; }
.steam-primary { min-height: 45px; }
.trust-copy { margin-top: 13px; color: #617067; font-size: 9px; }
.guest-preview { position: relative; display: grid; gap: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)), rgba(16, 24, 20, 0.64); backdrop-filter: blur(24px); box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08); }
.preview-score-card, .preview-grid article, .preview-next { border: 1px solid rgba(255, 255, 255, 0.055); border-radius: 15px; background: rgba(5, 10, 7, 0.46); }
.preview-score-card { padding: 16px; }
.preview-card-head { display: flex; justify-content: space-between; }
.preview-card-head > div { display: grid; }
.preview-card-head span { color: var(--muted); font-size: 8px; }
.preview-card-head strong { font-size: 15px; }
.preview-score { display: flex; justify-content: center; gap: 10px; margin: 22px 0 12px; font-size: 29px; }
.preview-score span { color: var(--muted); }
.preview-score-meta { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: 9px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preview-grid article { padding: 13px; }
.preview-grid span, .preview-next span { color: var(--accent); font-size: 8px; }
.preview-grid strong, .preview-next strong { display: block; margin-top: 4px; font-size: 11px; }
.preview-grid p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }
.preview-next { display: flex; justify-content: space-between; align-items: center; padding: 12px; }
.preview-link { color: var(--accent-bright) !important; }
.guest-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 50px; }
.guest-benefits article { min-height: 130px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.025); }
.guest-benefits span { color: var(--accent); font-size: 9px; }
.guest-benefits strong { display: block; margin-top: 10px; font-size: 13px; }
.guest-benefits p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.guest-footer { min-height: 54px; display: flex; justify-content: center; gap: 30px; align-items: center; border-top: 1px solid var(--line); color: #5d6d63; font-size: 9px; }

.app-dialog { width: min(980px, calc(100vw - 28px)); max-height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: rgba(14, 21, 17, 0.94); color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(28px) saturate(140%); }
.app-dialog::backdrop, .coach-report-dialog::backdrop { background: rgba(0, 0, 0, 0.74); backdrop-filter: blur(8px); }
.dialog-shell { margin: 0; padding: 0; }
.dialog-head { display: flex; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2, .confirm-shell h2 { margin: 5px 0; font-size: 22px; }
.dialog-head p, .confirm-shell p { max-width: 720px; margin: 0; color: var(--muted); font-size: 10px; }
.dialog-kicker { color: var(--accent); font-size: 8px; letter-spacing: 0.1em; }
.dialog-close { min-width: 70px; align-self: flex-start; }
.connection-body { display: grid; grid-template-columns: 250px 1fr; gap: 18px; max-height: calc(90vh - 110px); padding: 20px 22px 24px; overflow: auto; }
.setup-steps { display: grid; align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.setup-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.025); }
.setup-steps li > span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-bright); font-size: 9px; }
.setup-steps strong { font-size: 10px; }
.setup-steps p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.connection-form-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, 0.025); }
.auth-status { margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-soft); font-size: 9px; }
.auth-status.ok { border-color: rgba(72, 231, 137, 0.22); background: rgba(66, 222, 130, 0.06); }
.auth-status.warn { border-color: rgba(239, 187, 97, 0.22); }
.connection-form-card > .steam-primary { width: 100%; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.form-grid label { display: grid; gap: 5px; color: var(--text-soft); font-size: 9px; }
.full-field { grid-column: 1 / -1; }
.security-note { display: flex; gap: 8px; margin-top: 12px; padding: 9px; border: 1px solid rgba(103, 183, 255, 0.16); border-radius: 9px; background: rgba(103, 183, 255, 0.04); color: var(--muted); font-size: 8px; }
.security-note strong { color: var(--blue); }
.guide-box { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.028); color: var(--text-soft); font-size: 9px; }
.guide-box strong { color: var(--accent-bright); }
.guide-box p { margin: 4px 0 0; color: var(--muted); }
.connection-actions { margin-top: 14px; }
.status { margin-top: 11px; color: var(--muted); font-size: 9px; }
.steam-result { padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
.steam-result.failed { border-color: rgba(255, 113, 128, 0.24); color: #ffadb7; }
.confirm-dialog { width: min(480px, calc(100vw - 28px)); }
.confirm-shell { padding: 23px; }
.danger-copy { color: var(--danger); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(18, 28, 22, 0.94); color: var(--text-soft); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(255, 113, 128, 0.35); }
.toast.warn { border-color: rgba(239, 187, 97, 0.35); }

@media (max-width: 1180px) {
  :root { --sidebar: 178px; }
  .content { padding-inline: 20px; }
  .home-dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr); gap: 18px; }
  .metric-summary-grid, .summary-card-grid, .report-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent-match-strip { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
  .aim-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-side-stack { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .admin-topbar, .admin-grid { grid-template-columns: 1fr; }
  .admin-ai-card { grid-column: auto; }
  .admin-detail-card { grid-row: auto; }
  .product-shell { display: block; }
  .app-sidebar { position: fixed; left: 0; top: 0; width: 224px; transform: translateX(-105%); transition: transform 180ms ease; }
  .app-sidebar.open { transform: translateX(0); }
  .mobile-nav-toggle { position: fixed; left: 12px; top: 15px; z-index: 37; min-height: 34px; display: block; padding: 0 11px; border-color: var(--line); background: rgba(16, 24, 20, 0.82); color: var(--text-soft); box-shadow: none; backdrop-filter: blur(14px); }
  .mobile-nav-backdrop { position: fixed; inset: 0; z-index: 36; display: block; padding: 0; border: 0; border-radius: 0; background: rgba(0, 0, 0, 0.68); box-shadow: none; }
  .topbar { padding-left: 82px; }
  .account-copy { display: none; }
  .account-button { grid-template-columns: 38px; padding-right: 5px; }
  .home-dashboard-grid, .metric-center-intro, .metric-state-layout { grid-template-columns: minmax(0, 1fr); }
  .home-welcome { grid-template-columns: 1fr; }
  .home-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-ranking-pair, .utility-layout, .mistake-layout { grid-template-columns: 1fr; }
  .metric-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .round-review-layout { grid-template-columns: 1fr; }
  .round-evidence { position: static; min-height: 0; }
  .coach-layout { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .coach-history-card { max-height: 230px; }
  .coach-card { min-height: 680px; }
  .guest-hero { grid-template-columns: 1fr; }
  .guest-preview { max-width: 620px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 64px; padding: 8px 10px 8px 74px; }
  .topbar-copy h1 { font-size: 17px; }
  .eyebrow { max-width: 180px; }
  .coach-shortcut { min-width: 80px; padding-inline: 10px; font-size: 10px; }
  .content { padding: 14px 12px 30px; }
  .player-identity { align-items: flex-start; flex-wrap: wrap; }
  .player-identity button { width: 100%; }
  .home-stat-grid, .metric-summary-grid, .summary-card-grid, .report-kpi-grid, .metric-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass-metric { min-height: 92px; }
  .glass-metric > strong { font-size: 19px; }
  .home-side-stats { grid-template-columns: minmax(0, 1fr); }
  .recent-match-compact-grid { grid-template-columns: repeat(5, 76px); overflow-x: auto; }
  .recent-match-strip { grid-template-columns: repeat(6, 132px); }
  .aim-analysis-grid { grid-template-columns: 1fr; }
  .analysis-side-stack { grid-column: auto; grid-template-columns: 1fr; }
  .insight-list, .place-grid { grid-template-columns: 1fr; }
  .match-context { align-items: flex-start; flex-direction: column; }
  .match-context button { width: 100%; }
  .score-cluster { grid-template-columns: repeat(2, 1fr); }
  .metric-center-intro h2, .metric-state-layout h2 { font-size: 20px; }
  .coach-composer { grid-template-columns: 1fr; }
  .coach-composer button { width: 100%; }
  .guest-main { padding-top: 36px; }
  .guest-copy h1 { font-size: 38px; }
  .guest-actions, .guest-footer { flex-direction: column; }
  .guest-actions button { width: 100%; }
  .guest-benefits { grid-template-columns: 1fr; }
  .guest-footer { gap: 5px; padding: 12px; }
  .connection-body { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
