@import url("/static/assets/fonts.css");
:root {
  --bg: #101319;
  --panel: #181d25;
  --raised: #1e2530;
  --line: #2b3341;
  --text: #ecf0f7;
  --muted: #9ba8bc;
  --accent: #78a7ff;
  --green: #69d2af;
  --red: #eb929d;
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  color: inherit;
}
button {
  background: none;
  border: 0;
}
input,
select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  min-height: 40px;
  max-width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
p {
  line-height: 1.65;
  color: var(--muted);
}
strong {
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
  background: var(--raised);
}
.btn:hover:not(:disabled) {
  background: #293446;
  border-color: #485a74;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #101c32;
}
.btn.primary:hover {
  background: #a0c0ff;
}
.btn.quiet {
  background: none;
}
.btn.discord {
  background: #5865df;
  border-color: #7780ea;
  color: white;
}
.btn.danger {
  color: var(--red);
  border-color: #734553;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  padding: 4px 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--raised);
  color: var(--text);
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.positive {
  color: var(--green);
}
.sidebar {
  width: 224px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 16px 20px;
  background: #141820;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1px;
  padding: 0 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #122343;
  border-radius: 9px;
  width: 32px;
  height: 34px;
  font-size: 32px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}
.brand-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 500;
  width: 42px;
  margin-left: 7px;
}
.sidebar-caption {
  color: #728198;
  font-size: 9px;
  letter-spacing: 1.4px;
  margin: 45px 12px 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
  min-height: 43px;
}
.nav-link:hover {
  background: var(--raised);
  color: var(--text);
}
.nav-link.active {
  background: #243249;
  color: #a9c7ff;
}
.count {
  margin-left: auto;
  font-size: 10px;
  border-radius: 5px;
  background: #303c50;
  padding: 3px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.sidebar-bottom > .btn {
  width: 100%;
  font-size: 11px;
  margin-top: 14px;
}
.user-chip {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #283650;
  border-radius: 50%;
  font-size: 13px;
  color: #afcaff;
  flex-shrink: 0;
}
.user-chip > div {
  overflow: hidden;
}
.user-chip strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
main {
  margin-left: 224px;
  min-height: 100vh;
}
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 34px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 12px;
  color: #4e5c70;
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.sync-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 100%;
  background: var(--green);
}
.status-dot.issue {
  background: #dfbd7b;
}
.language select {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 11px;
  background: var(--panel);
}
.content {
  max-width: 1630px;
  padding: 26px 34px 40px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 25px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 10px;
}
.page-heading p {
  font-size: 12px;
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-profile strong {
  display: block;
  font-size: 12px;
}
.main-profile small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid #455472;
  flex-shrink: 0;
}
.profile-icon.fallback {
  display: grid;
  place-items: center;
  background: #23314a;
  font-size: 18px;
  color: #abc9ff;
}
.guest-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #344863;
  background: #192432;
  border-radius: 9px;
  padding: 15px 18px;
}
.guest-notice .notice-icon {
  color: var(--accent);
}
.guest-notice strong {
  font-size: 12px;
}
.guest-notice p {
  font-size: 11px;
  line-height: 1.6;
  max-width: 830px;
  margin-top: 4px;
  color: #a9bbd4;
}
.guest-notice .btn {
  margin-left: auto;
  font-size: 11px;
  flex-shrink: 0;
}
.guest-notice.warning {
  border-color: #816740;
}
.welcome {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 54px 36px 26px;
  text-align: center;
  margin-top: 28px;
}
.welcome-symbol {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  background: #223553;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: var(--accent);
}
.welcome-symbol svg {
  width: 30px;
  height: 30px;
}
.welcome h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 14px 0;
}
.welcome > p {
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 13px;
}
.welcome > small {
  display: block;
  margin: 13px 0 0;
  font-size: 11px;
}
.welcome-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  margin: 38px 0 20px;
  padding: 30px 10px 10px;
}
.welcome-features > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.welcome-features svg {
  color: var(--accent);
}
.welcome-features strong {
  font-size: 12px;
}
.welcome-features span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 150px;
  flex: 1;
}
.filter > span {
  font-size: 10px;
  color: var(--muted);
}
.filter select {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 10px;
  max-width: 240px;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.coverage {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin: 15px 2px 23px;
}
.coverage strong {
  font-weight: 500;
  color: #c6d0df;
}
.champion-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #203149;
  padding: 12px 16px;
  margin-top: 12px;
}
.champion-filter strong {
  display: block;
  margin-top: 5px;
}
.champion-filter small {
  color: #a9caff;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.champion-filter .btn {
  margin-left: auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stats article {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.stats article > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stats article > strong {
  display: block;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 12px 0 8px;
}
.stats article > strong small {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.stats article > small {
  font-size: 10px;
}
.bar {
  height: 4px;
  background: #303546;
  border-radius: 3px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.stats .bar {
  margin-top: 15px;
}
.stats .bar i {
  background: var(--green);
}
.recent {
  display: flex;
  gap: 3px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.recent span {
  font-size: 9px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 3px;
}
.recent .win {
  color: var(--green);
  background: #223d38;
}
.recent .loss {
  color: var(--red);
  background: #412a34;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 21px 17px;
}
.panel-title p {
  font-size: 11px;
  margin-top: 7px;
  max-width: 850px;
}
.panel > .btn,
.panel > .button-row,
.panel > .helper,
.panel > p {
  margin: 0 21px 20px;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}
.chart {
  padding: 10px 22px 18px;
  min-height: 170px;
}
.chart svg {
  width: 100%;
  max-height: 260px;
}
.chart text {
  fill: var(--muted);
  font-size: 10px;
}
.grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.focus-card {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 21px 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b2432;
}
.portrait {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.focus-card .portrait {
  width: 59px;
  height: 59px;
}
.focus-card small {
  font-size: 8px;
  letter-spacing: 1px;
}
.focus-name {
  font-size: 21px;
  display: flex;
  margin-top: 5px;
  font-weight: 600;
}
.focus-card p {
  font-size: 11px;
  margin-top: 4px;
}
.goal {
  margin: 0 21px 22px;
}
.goal > span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.goal strong {
  color: var(--text);
}
.goal .bar {
  margin: 12px 0;
}
.goal small {
  font-size: 10px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: #151a22;
}
td {
  padding: 12px 20px;
  border-top: 1px solid #242c38;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
.champion-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 0;
}
.champion-link strong {
  font-size: 12px;
}
.champion-link small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.champion-link:hover strong {
  color: var(--accent);
}
.table-tools {
  padding: 0 21px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.table-tools input {
  width: 230px;
  font-size: 12px;
}
.table-tools label,
.account-toolbar label {
  font-size: 11px;
  color: var(--muted);
}
.table-tools select,
.account-toolbar select {
  font-size: 11px;
  margin-left: 7px;
  min-height: 36px;
}
.match-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 14px 18px;
  border-top: 1px solid #28313f;
  border-left: 3px solid transparent;
  color: var(--text);
}
.match-row.win {
  border-left-color: #4aa88a;
}
.match-row.loss {
  border-left-color: #b46977;
}
.match-row:hover {
  background: #212a38;
}
.outcome {
  min-width: 76px;
}
.outcome strong {
  font-size: 11px;
  color: var(--green);
}
.loss .outcome strong {
  color: var(--red);
}
.match-row small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  white-space: nowrap;
}
.match-name {
  flex: 1;
  min-width: 0;
}
.match-name strong {
  font-size: 12px;
}
.match-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}
.match-kda {
  text-align: right;
  white-space: nowrap;
}
.match-kda strong {
  font-size: 12px;
}
.match-row > svg {
  color: var(--muted);
  width: 13px;
}
.pagination {
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.pagination span {
  font-size: 12px;
  color: var(--muted);
}
.heatmap {
  display: grid;
  grid-template-columns: 35px repeat(6, 1fr);
  gap: 7px;
  margin: 0 21px 20px;
}
.heat-label {
  font-size: 10px;
  color: var(--muted);
  padding: 5px 0;
}
.heat-cell {
  min-height: 33px;
  border-radius: 4px;
  font-size: 10px;
  color: #dfeafb;
}
.heat-cell:hover {
  outline: 1px solid var(--accent);
}
.level-0 {
  background: #212935;
}
.level-1 {
  background: #293c59;
}
.level-2 {
  background: #365988;
}
.level-3 {
  background: #497cb8;
}
.level-4 {
  background: #84b8fb;
  color: #152540;
}
.heat-legend {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  margin: 0 21px 20px;
  font-size: 10px;
  color: var(--muted);
}
.heat-legend i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
}
.heat-legend span {
  margin: 0 6px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 21px 10px;
  gap: 0 18px;
}
.metric-grid > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.metric-grid strong {
  display: block;
  font-size: 20px;
  font-weight: 550;
  margin-top: 8px;
}
.metric-grid small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
}
.ping-total {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 21px 20px;
}
.ping-total strong {
  font-size: 29px;
  color: var(--accent);
}
.ping-total span {
  font-size: 11px;
  color: var(--muted);
}
.ping-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 35px;
  margin: 0 21px 24px;
}
.ping-bars > div {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.ping-bars > div > span {
  color: var(--muted);
}
.ping-bars strong {
  text-align: right;
  font-weight: 500;
}
.breakdown {
  padding: 0 21px 12px;
}
.breakdown > div {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 22px;
  font-size: 11px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.breakdown > div > span:first-of-type {
  color: var(--muted);
}
.segmented {
  display: flex;
  gap: 5px;
  margin: 0 21px 18px;
  flex-wrap: wrap;
}
.segmented button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}
.segmented button.active {
  background: #283951;
  color: #b4d0ff;
  border-color: #577caa;
}
.rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rank img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.rank small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.no-data {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 5px;
}
.empty {
  padding: 50px 25px;
  text-align: center;
}
.empty > svg {
  color: #667fa0;
  width: 29px;
  height: 29px;
  margin-bottom: 15px;
}
.empty h2 {
  font-size: 17px;
}
.empty p {
  max-width: 480px;
  margin: 12px auto 20px;
  font-size: 12px;
}
.account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 12px 0 20px;
  font-size: 12px;
  color: var(--muted);
}
.account-toolbar > div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.account-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  min-width: 0;
}
.account-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-top > div {
  flex: 1;
  min-width: 0;
}
.account-top h2 {
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.account-top small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.account-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 17px;
  padding: 12px 10px;
  background: #1e2632;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}
.account-rank > span:last-child {
  color: var(--muted);
  font-size: 10px;
}
.account-rank .rank img {
  width: 51px;
  height: 51px;
}
.account-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.account-numbers > span {
  font-size: 10px;
  color: var(--muted);
}
.account-numbers strong {
  display: block;
  font-size: 19px;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 7px;
}
.account-start {
  font-size: 10px;
  margin-top: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.account-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.account-bottom small {
  font-size: 9px;
  line-height: 1.5;
}
.account-bottom .text-btn {
  font-size: 10px;
  flex-shrink: 0;
}
.muted-account {
  opacity: 0.6;
}
.helper {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  max-width: 1100px;
}
.settings-grid form {
  padding: 0 21px 21px;
}
.settings-copy {
  margin: 0 21px 22px;
}
.settings-copy p {
  font-size: 12px;
  margin-bottom: 20px;
}
.settings-copy > small {
  display: block;
  margin-top: 14px;
  line-height: 1.7;
}
.settings-grid .button-row {
  padding-bottom: 5px;
}
form > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  margin: 0 0 20px;
}
form > label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}
input[type="checkbox"] {
  min-height: 18px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
form > .helper {
  margin: 10px 0 18px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.form-error {
  font-size: 12px;
  color: var(--red);
  margin-bottom: 15px;
}
.form-error:empty {
  display: none;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 34px;
  font-size: 10px;
  color: #7b899e;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
dialog {
  width: 490px;
  max-width: calc(100vw - 30px);
  max-height: 90dvh;
  border: 1px solid #48566c;
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
  box-shadow: 0 25px 80px #0008;
}
dialog.wide {
  width: 1000px;
}
dialog::backdrop {
  background: #060a12b8;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
}
.dialog-heading h2 {
  font-size: 18px;
}
.dialog-body {
  padding: 24px;
}
.dialog-body > .helper {
  margin-bottom: 23px;
}
.dialog-body > p {
  margin-bottom: 22px;
}
.dialog-body .panel {
  background: #141a23;
}
.dialog-body > .metric-grid {
  padding: 0;
}
.champion-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}
.champion-summary .portrait {
  width: 54px;
  height: 54px;
}
.champion-summary strong {
  display: block;
  font-size: 18px;
}
.champion-summary span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.champion-summary .btn {
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.record-list {
  padding: 0 21px 15px;
}
.record-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.record-list small {
  grid-column: 1/-1;
  font-size: 10px;
}
.match-score {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--accent);
}
details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 90vw);
  padding: 14px 22px;
  border: 1px solid #4e6380;
  background: #243145;
  border-radius: 8px;
  color: #e3edff;
  box-shadow: 0 8px 30px #0006;
  z-index: 20;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
.boot,
.boot-error {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding: 30px;
}
.boot {
  font-size: 38px;
  color: var(--accent);
  font-weight: 700;
}
.boot span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .account-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 200px;
  }
  main {
    margin-left: 200px;
  }
  .content {
    padding: 20px 24px;
  }
  .topbar {
    padding: 15px 24px;
  }
  .main-profile {
    display: none;
  }
  .two-columns {
    grid-template-columns: 1fr 1fr;
  }
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-row {
    gap: 8px;
    padding: 13px 12px;
  }
  .match-row .outcome {
    min-width: 63px;
  }
  .match-row .portrait {
    width: 32px;
    height: 32px;
  }
  .match-name small {
    max-width: 95px;
  }
  .match-kda strong {
    font-size: 11px;
  }
  .match-row small {
    font-size: 8px;
  }
  .guest-notice {
    flex-wrap: wrap;
  }
  .guest-notice > div {
    flex: 1;
  }
  .guest-notice .btn {
    margin-left: 31px;
  }
  td,
  th {
    padding-left: 13px;
    padding-right: 13px;
  }
  .ping-bars {
    column-gap: 20px;
  }
  .ping-bars > div {
    grid-template-columns: 100px 1fr 30px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 76px;
    padding: 22px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .brand-mark {
    font-size: 32px;
  }
  .brand-label,
  .sidebar-caption,
  .nav-link > span,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin-top: 40px;
  }
  .nav-link {
    justify-content: center;
    padding: 13px 0;
  }
  .nav-link svg {
    width: 21px;
    height: 21px;
  }
  main {
    margin-left: 76px;
  }
  .topbar {
    min-height: 65px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stats article {
    padding: 15px;
  }
  .stats article > strong {
    font-size: 25px;
  }
  .guest-notice {
    padding: 13px;
  }
  .guest-notice .btn {
    margin-left: 0;
  }
  .guest-notice p {
    font-size: 10px;
  }
  .heading-actions .btn {
    font-size: 11px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sync-state {
    font-size: 10px;
  }
  .dialog-body .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 66px;
    flex-direction: row;
    padding: 4px 8px 5px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .brand {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    gap: 2px;
  }
  .nav-link {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 7px 2px;
    font-size: 8px;
    min-width: 0;
  }
  .nav-link > span:not(.count) {
    display: block;
  }
  .nav-link svg {
    width: 19px;
    height: 19px;
  }
  .nav-link .count {
    display: none;
  }
  main {
    margin-left: 0;
    padding-bottom: 66px;
  }
  .content {
    padding: 17px 16px 26px;
  }
  .topbar {
    padding: 13px 16px;
    gap: 8px;
    min-height: 58px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb > span {
    padding: 0 5px;
  }
  .top-actions {
    gap: 10px;
  }
  .sync-state {
    font-size: 9px;
    max-width: 135px;
    line-height: 1.4;
  }
  .guest-notice {
    gap: 10px;
  }
  .guest-notice .notice-icon {
    display: none;
  }
  .guest-notice .btn {
    min-height: 33px;
    font-size: 10px;
    width: 100%;
  }
  .guest-notice strong {
    font-size: 11px;
  }
  .guest-notice p {
    font-size: 10px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-top: 26px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 240px;
  }
  .heading-actions {
    padding-top: 18px;
  }
  .heading-actions .btn {
    font-size: 0;
    width: 37px;
    padding: 8px;
  }
  .heading-actions .btn svg {
    width: 19px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stats article > strong {
    font-size: 27px;
  }
  .stats article {
    min-height: 135px;
  }
  .stats article > span {
    font-size: 10px;
  }
  .recent {
    gap: 2px;
  }
  .recent span {
    width: 14px;
    height: 16px;
    font-size: 8px;
  }
  .filters {
    padding: 12px;
    gap: 12px;
  }
  .filter {
    min-width: 125px;
  }
  .filter select {
    max-width: 100%;
    font-size: 10px;
    width: 100%;
    padding: 8px 6px;
  }
  .filter-actions {
    align-self: end;
  }
  .filter-actions .btn {
    font-size: 10px;
  }
  .coverage {
    line-height: 1.7;
    font-size: 9px;
    margin-bottom: 18px;
  }
  .champion-filter {
    padding: 10px;
    gap: 9px;
  }
  .champion-filter .portrait {
    width: 32px;
    height: 32px;
  }
  .champion-filter small {
    font-size: 7px;
  }
  .champion-filter .btn {
    font-size: 9px;
    padding: 6px;
  }
  .champion-filter .btn svg {
    display: none;
  }
  .panel-title {
    padding: 17px 16px;
    gap: 10px;
  }
  .panel-title h2 {
    font-size: 14px;
  }
  .panel-title p {
    font-size: 10px;
  }
  .panel-title > .text-btn {
    font-size: 9px;
    white-space: nowrap;
  }
  .panel-title > .btn {
    font-size: 10px;
  }
  .metric-grid {
    padding: 0 16px 10px;
    gap: 0 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-grid span {
    font-size: 10px;
  }
  .metric-grid strong {
    font-size: 19px;
  }
  .ping-bars {
    grid-template-columns: 1fr;
    margin: 0 16px 20px;
  }
  .ping-bars > div {
    grid-template-columns: 115px 1fr 34px;
  }
  .ping-total {
    margin-left: 16px;
    gap: 10px;
  }
  .ping-total span {
    font-size: 10px;
  }
  .heatmap {
    margin-left: 16px;
    margin-right: 16px;
    gap: 5px;
    grid-template-columns: 23px repeat(6, 1fr);
  }
  .heat-cell {
    min-height: 30px;
    font-size: 9px;
  }
  .heat-label {
    font-size: 8px;
  }
  .heat-legend {
    font-size: 8px;
    margin-left: 12px;
    margin-right: 12px;
    gap: 3px;
  }
  .heat-legend i {
    width: 10px;
    height: 10px;
  }
  .heat-legend span {
    margin: 0 4px;
  }
  .breakdown {
    padding: 0 16px 10px;
  }
  .breakdown > div {
    gap: 11px;
    font-size: 10px;
  }
  .table-tools {
    padding: 0 16px 16px;
    flex-direction: column;
  }
  .table-tools input {
    width: 100%;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .account-toolbar {
    align-items: flex-start;
    font-size: 10px;
    flex-direction: column;
  }
  .account-toolbar > div {
    gap: 10px;
  }
  .account-toolbar label {
    font-size: 10px;
  }
  .account-toolbar select {
    margin-left: 2px;
    font-size: 10px;
    padding: 7px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .welcome {
    padding: 28px 18px 20px;
    margin-top: 20px;
  }
  .welcome h2 {
    font-size: 24px;
    line-height: 1.3;
  }
  .welcome > p {
    font-size: 12px;
  }
  .welcome-features {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 25px;
  }
  .welcome-features > div {
    gap: 8px;
  }
  .welcome-features span {
    max-width: 240px;
  }
  .welcome .text-btn {
    font-size: 10px;
  }
  .match-row {
    gap: 9px;
  }
  .match-name {
    min-width: 60px;
  }
  .match-name small {
    max-width: 86px;
  }
  .match-row .match-kda small {
    font-size: 7px;
  }
  .match-row > svg {
    display: none;
  }
  .outcome small {
    font-size: 7px;
  }
  .outcome {
    min-width: 58px !important;
  }
  .match-row .portrait {
    width: 31px;
    height: 31px;
  }
  .match-name strong {
    font-size: 11px;
  }
  .match-kda strong {
    font-size: 11px;
  }
  footer {
    padding: 20px 16px;
    font-size: 9px;
    flex-direction: column;
    gap: 8px;
  }
  dialog {
    max-width: calc(100vw - 20px);
    max-height: 93dvh;
  }
  .dialog-heading {
    padding: 15px 16px;
  }
  .dialog-body {
    padding: 16px;
  }
  .dialog-body .stats article {
    padding: 13px;
  }
  .champion-summary {
    flex-wrap: wrap;
  }
  .champion-summary .btn {
    width: 100%;
    margin-left: 0;
  }
  .champion-summary span {
    font-size: 9px;
  }
  .tabs {
    gap: 17px;
  }
  .tabs button {
    font-size: 10px;
  }
  .dialog-body .panel-title {
    padding: 16px 12px;
  }
  .dialog-body td,
  .dialog-body th {
    padding-left: 10px;
    padding-right: 10px;
  }
  .record-list {
    padding-left: 14px;
    padding-right: 14px;
  }
  .segmented {
    margin-left: 14px;
    margin-right: 14px;
  }
  .segmented button {
    font-size: 10px;
    padding: 8px;
  }
  .dialog-body .metric-grid {
    padding-left: 12px;
    padding-right: 12px;
  }
  .boot-error h1 {
    font-size: 26px;
  }
}
.team-list {
  padding: 0 14px 12px;
}
.team-list > div {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.team-list .portrait {
  width: 28px;
  height: 28px;
}
.team-list > div > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-list small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
}
.team-list strong {
  font-size: 10px;
}
.team-list .self {
  color: var(--accent);
}
.item-build {
  display: flex;
  gap: 8px;
  margin: 15px 0 23px;
  flex-wrap: wrap;
}
.item-build img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.record-list > .record-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  width: 100%;
  text-align: left;
}
.record-link:hover {
  color: var(--accent);
}
/* Keep the Discord identity visible when the sidebar collapses. */
.discord-mark {
  width: 24px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.btn.discord {
  background: #5865f2;
  border-color: #7580ff;
  color: #fff;
}
.btn.discord:hover:not(:disabled) {
  background: #4752c4;
  border-color: #929aff;
}
.header-login {
  min-height: 44px;
  font-size: 12px;
  gap: 10px;
}
.identity-menu {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  flex-shrink: 0;
  z-index: 8;
}
.identity-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 6px 10px 6px 6px;
  border: 1px solid #52618b;
  border-radius: 9px;
  background: #202a3d;
  color: var(--text);
  list-style: none;
  cursor: pointer;
}
.identity-trigger::-webkit-details-marker {
  display: none;
}
.identity-trigger:hover,
.identity-menu[open] .identity-trigger {
  background: #293652;
  border-color: #8c9eef;
}
.discord-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #5865f2;
  border-radius: 7px;
}
.identity-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: left;
}
.identity-copy strong {
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.identity-copy small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #becce4;
  font-size: 10px;
  white-space: nowrap;
}
.identity-chevron {
  margin-left: 4px;
  color: #b2bfd6;
}
.identity-menu[open] .identity-chevron {
  transform: rotate(180deg);
}
.identity-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: 286px;
  max-width: calc(100vw - 32px);
  padding: 20px;
  border: 1px solid #4c5b74;
  border-radius: 10px;
  background: #1c2431;
  box-shadow: 0 12px 30px #0006;
}
.identity-popover .eyebrow {
  font-size: 8px;
  margin-bottom: 10px;
}
.identity-popover > strong {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.identity-popover p {
  margin: 10px 0 18px;
  font-size: 12px;
}
.identity-popover .btn {
  width: 100%;
  margin-top: 8px;
}
@media (max-width: 1100px) {
  .top-actions {
    gap: 12px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .sync-state {
    max-width: 150px;
    line-height: 1.5;
  }
}
@media (max-width: 760px) {
  .topbar {
    display: block;
    padding: 12px 16px;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .top-actions .identity-menu,
  .top-actions .header-login {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
  }
  .top-actions .language {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .top-actions .sync-state {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    font-size: 10px;
  }
  .identity-copy strong {
    max-width: 145px;
  }
  .identity-popover {
    left: 0;
    right: auto;
  }
  .header-login {
    font-size: 12px;
    min-height: 44px;
  }
}
