@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #080c12;
  --surface: #111923;
  --raised: #172230;
  --line: #263342;
  --text: #f4f7fa;
  --muted: #a6b3c2;
  --blue: #51a4ff;
  --electric: #268cff;
  --orange: #ffae80;
  --green: #8cd9bd;
  --red: #f7a5ac;
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.04em;
}
button,
a,
.panel,
.match-row {
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 14px;
  background: var(--orange);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.boot {
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 28px;
  text-align: center;
}
.boot p {
  color: var(--muted);
}
.wordmark {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.08em;
  white-space: nowrap;
}
.wordmark span {
  color: var(--orange);
  padding-left: 4px;
  letter-spacing: -0.16em;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 196px;
  border-right: 1px solid var(--line);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  z-index: 5;
  background: var(--bg);
}
.brand-note {
  color: var(--muted);
  font:
    10px/1.4 'Cascadia Code',
    Consolas,
    monospace;
  letter-spacing: 0.14em;
  margin-top: 10px;
}
.nav {
  display: grid;
  gap: 8px;
  margin-top: 70px;
}
.nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.nav a:hover {
  background: var(--surface);
  color: var(--text);
}
.nav a[aria-current='page'] {
  color: var(--blue);
  background: #14273c;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-right: 6px;
}
.workspace {
  margin-left: 196px;
  max-width: 1440px;
}
.topbar {
  margin: 0 44px;
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.topbar .wordmark {
  display: none;
}
.context {
  color: var(--muted);
  font:
    11px 'Cascadia Code',
    Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.context b {
  color: var(--text);
  font-weight: 500;
}
.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border: 1px solid #3b526b;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}
.user-name {
  font-size: 12px;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
}
.icon-button:hover {
  background: var(--raised);
  color: var(--text);
}
.page {
  padding: 34px 44px 44px;
}
.eyebrow {
  font:
    10px/1.5 'Cascadia Code',
    Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow.blue {
  color: var(--blue);
}
.eyebrow.orange {
  color: var(--orange);
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 0.99;
  font-weight: 750;
  margin-top: 13px;
}
h1 em {
  font-style: normal;
  color: var(--muted);
}
.edition {
  text-align: right;
  font:
    10px/1.8 'Cascadia Code',
    Consolas,
    monospace;
  color: var(--muted);
}
.edition span {
  color: var(--blue);
}
.data-note {
  border-left: 2px solid var(--blue);
  padding: 5px 0 5px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.data-note strong {
  color: var(--text);
  font-weight: 500;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 24px;
}
.rank-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}
.rank-line {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
}
.rank-symbol {
  width: 78px;
  height: 86px;
  color: #85cfff;
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px #268cff25);
}
.rank-name {
  font-size: 34px;
  letter-spacing: -0.05em;
  font-weight: 700;
  line-height: 1.1;
}
.rr {
  font:
    11px/1.8 'Cascadia Code',
    Consolas,
    monospace;
  color: var(--muted);
  margin-top: 9px;
}
.rr strong {
  font-size: 18px;
  color: var(--blue);
  font-weight: 500;
}
meter {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  height: 4px;
  width: 100%;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
meter::-webkit-meter-bar {
  background: var(--line);
  border: 0;
  height: 4px;
}
meter::-webkit-meter-optimum-value {
  background: var(--blue);
}
meter::-moz-meter-bar {
  background: var(--blue);
}
.rank-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}
.rank-foot b {
  font-weight: 500;
  color: var(--text);
}
.stats-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
}
.stat-value {
  font-family: 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 18px;
  color: var(--muted);
  margin-left: 3px;
}
.stat-label {
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.recent-form {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
}
.form-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 10px;
}
.form-strip {
  display: flex;
  gap: 5px;
}
.form-chip {
  flex: 1;
  height: 24px;
  background: #183329;
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: 3px;
  font:
    10px Consolas,
    monospace;
  border: 0;
  min-width: 12px;
}
.form-chip.loss {
  color: var(--red);
  background: #33242d;
}
.form-chip.unknown {
  color: var(--muted);
  background: var(--raised);
}
.focus-panel {
  display: grid;
  grid-template-columns: 1fr 190px;
  position: relative;
  overflow: hidden;
  border: 1px solid #63503e;
  background: #1c1b1c;
  border-radius: 12px;
  margin-top: 28px;
  min-height: 225px;
}
.focus-content {
  padding: 28px;
  position: relative;
  z-index: 1;
}
.focus-content h2 {
  font-size: 32px;
  line-height: 1.05;
  margin: 12px 0;
}
.focus-content p {
  color: #c9c0bc;
  max-width: 430px;
  font-size: 12px;
  line-height: 1.7;
}
.focus-art {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  background: #ffae800a;
}
.focus-art::before {
  content: '//';
  font:
    230px/0.9 'Arial Narrow',
    sans-serif;
  position: absolute;
  color: #ffae8017;
  letter-spacing: -0.2em;
  transform: skew(-10deg);
  top: 0;
  left: -35px;
}
.focus-art img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  position: relative;
  filter: saturate(0.75);
}
.focus-count {
  position: absolute;
  top: 24px;
  right: 20px;
  border: 1px solid #70583f;
  color: var(--orange);
  padding: 5px 8px;
  border-radius: 4px;
  font:
    10px Consolas,
    monospace;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
}
.btn:hover {
  background: #ffbf9c;
  border-color: #ffbf9c;
  transform: translateY(-1px);
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.focus-content .btn {
  margin-top: 18px;
}
.btn.secondary {
  background: var(--raised);
  border-color: var(--line);
  color: var(--text);
}
.btn.secondary:hover {
  background: #213247;
}
.btn.blue-btn {
  background: var(--electric);
  color: #06101d;
  border-color: var(--electric);
}
.section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 36px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 19px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--blue);
  font-size: 11px;
  background: none;
  border: 0;
  padding: 0 3px;
}
.text-link .icon {
  width: 15px;
}
.match-list {
  border-top: 1px solid var(--line);
}
.match-row {
  display: grid;
  grid-template-columns: 4px 36px minmax(72px, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.match-row:hover {
  background: var(--surface);
}
.result-bar {
  width: 3px;
  height: 35px;
  background: var(--green);
  border-radius: 2px;
}
.match-row.loss .result-bar {
  background: var(--red);
}
.match-row.unknown .result-bar {
  background: var(--muted);
}
.agent-icon {
  width: 36px;
  height: 40px;
  object-fit: contain;
  background: var(--raised);
  border-radius: 6px;
}
.agent-placeholder {
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--raised);
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
}
.match-map {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.match-sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.match-score {
  font:
    13px 'Cascadia Code',
    Consolas,
    monospace;
  text-align: right;
  white-space: nowrap;
}
.match-score small {
  display: block;
  font:
    9px 'Segoe UI',
    sans-serif;
  color: var(--green);
  margin-top: 6px;
}
.loss .match-score small {
  color: var(--red);
}
.unknown .match-score small {
  color: var(--muted);
}
.row-chevron {
  color: var(--muted);
  width: 16px;
}
.pool-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.pool-row:first-child {
  border-top: 1px solid var(--line);
}
.pool-name {
  font-size: 13px;
  font-weight: 600;
}
.pool-name span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  display: block;
  margin: 4px 0 8px;
}
.pool-count {
  color: var(--muted);
  font:
    12px Consolas,
    monospace;
}
.small-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
}
.footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font:
    9px/1.7 'Cascadia Code',
    Consolas,
    monospace;
}
.page-subtitle {
  font-size: 13px;
  color: var(--muted);
  max-width: 510px;
  line-height: 1.7;
  margin: 16px 0 24px;
}
.map-picker {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.field-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 9px;
}
select,
input {
  background: var(--raised);
  color: var(--text);
  border: 1px solid #3c4c5f;
  border-radius: 6px;
  min-height: 48px;
  padding: 0 14px;
  max-width: 100%;
}
.map-picker select {
  font-size: 27px;
  font-weight: 650;
  width: 100%;
  letter-spacing: -0.04em;
  min-height: 58px;
}
.map-preview {
  height: 95px;
  width: 120px;
  object-fit: contain;
  opacity: 0.65;
}
.role-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  min-height: 44px;
  border-radius: 6px;
  font-size: 11px;
}
.chip:hover {
  background: var(--surface);
  color: var(--text);
}
.chip[aria-pressed='true'] {
  border-color: var(--blue);
  background: #14273c;
  color: var(--blue);
}
.option {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 22px;
  margin: 12px 0;
}
.option-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.option-top .agent-icon {
  width: 55px;
  height: 60px;
}
.option-top h3 {
  font-size: 25px;
}
.option-top .eyebrow {
  margin-top: 5px;
  font-size: 9px;
}
.sample-badge {
  margin-left: auto;
  color: var(--orange);
  border: 1px solid #63503e;
  border-radius: 4px;
  padding: 6px 8px;
  font:
    9px Consolas,
    monospace;
  white-space: nowrap;
}
.option-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  gap: 20px;
}
.option-stats .stat-value {
  font-size: 25px;
}
.option-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
.option-bottom .small-note {
  max-width: 370px;
}
.empty {
  border: 1px dashed #3b4a5e;
  border-radius: 10px;
  padding: 32px 24px;
  margin-top: 20px;
}
.empty h2 {
  font-size: 23px;
}
.empty p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 500px;
}
.meta-note {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 8px;
  background: #101c2b;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.meta-note .icon {
  color: var(--blue);
  margin-top: 3px;
}
.meta-note strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 4px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 24px 0;
}
.filters label {
  flex: 1;
}
.filters select {
  width: 100%;
  font-size: 12px;
}
.filters .icon-button {
  border-color: var(--line);
  height: 48px;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font:
    10px Consolas,
    monospace;
}
.rank-history {
  border-left: 1px solid var(--line);
  margin: 28px 0 28px 8px;
  padding-left: 28px;
}
.rank-event {
  position: relative;
  padding: 4px 0 26px;
}
.rank-event::before {
  content: '';
  position: absolute;
  top: 9px;
  left: -33px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg);
  background: var(--blue);
  border-radius: 50%;
}
.rank-event strong {
  font-size: 20px;
  font-weight: 600;
}
.rank-event p {
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}
.chart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  margin-top: 24px;
}
.performance-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
}
.performance-chart text {
  font:
    11px 'Segoe UI',
    sans-serif;
  fill: var(--muted);
}
.performance-chart .chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}
.performance-chart .chart-grid {
  stroke: var(--line);
  stroke-dasharray: 4 4;
}
.performance-chart circle {
  fill: var(--blue);
  stroke: var(--surface);
  stroke-width: 3;
}
.chart-values {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}
.details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
.details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  min-height: 44px;
  padding-top: 12px;
}
.details p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 10px 0;
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid #41546a;
  border-radius: 16px;
  width: min(480px, calc(100% - 28px));
  padding: 28px;
  max-height: calc(100svh - 50px);
  overflow-y: auto;
}
dialog::backdrop {
  background: #03070cd9;
  backdrop-filter: blur(8px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-result {
  color: var(--green);
  font:
    11px Consolas,
    monospace;
}
.dialog-result.loss {
  color: var(--red);
}
dialog h2 {
  font-size: 48px;
  margin-top: 22px;
}
.dialog-agent {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 12px;
}
.dialog-kda {
  font:
    46px 'Bahnschrift',
    sans-serif;
  letter-spacing: -0.03em;
}
.dialog-kda span {
  color: #55667b;
  padding: 0 8px;
}
.dialog-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
dialog .btn {
  width: 100%;
  margin-top: 24px;
}
.login-shell {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 32px 24px;
}
.login-card {
  width: min(420px, calc(100vw - 48px));
}
.login-card h1 {
  font-size: 58px;
  margin: 64px 0 24px;
}
.login-card > p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 30px;
}
.login-card input,
.login-card .btn {
  width: 100%;
}
.login-card .btn {
  margin-top: 14px;
}
.login-card .field-label {
  font-size: 12px;
}
.login-status {
  color: var(--blue);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 20px;
}
.login-status.error {
  color: var(--red);
}
.login-card .small-note {
  margin-top: 20px;
}
.login-divider {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 15px;
}
.profile-picker {
  font-size: 11px;
  min-height: 36px;
  max-width: 180px;
}
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: #20344a;
  border: 1px solid #597b9d;
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  max-width: min(440px, calc(100vw - 32px));
  box-shadow: 0 8px 40px #0007;
}
.toast:empty {
  display: none;
}
@media (min-width: 1450px) {
  .workspace {
    margin-right: auto;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 168px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 168px;
  }
  .topbar {
    margin: 0 28px;
  }
  .page {
    padding: 30px 28px 40px;
  }
  .rank-line {
    gap: 16px;
  }
  .rank-name {
    font-size: 28px;
  }
  .rank-symbol {
    width: 60px;
  }
  .section-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
  }
  .focus-panel {
    grid-template-columns: 1fr 160px;
  }
  .focus-art img {
    width: 180px;
    height: 180px;
  }
}
@media (max-width: 740px) {
  html {
    scrollbar-gutter: auto;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 5px 10px env(safe-area-inset-bottom);
    background: #0c121bf5;
    backdrop-filter: blur(20px);
    border: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar > a,
  .brand-note,
  .sidebar-foot {
    display: none;
  }
  .nav {
    margin: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .nav a {
    min-height: 58px;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    font-size: 10px;
    padding: 7px 2px;
    border-radius: 6px;
  }
  .nav a[aria-current='page'] {
    background: transparent;
    color: var(--blue);
  }
  .nav a[aria-current='page']::before {
    content: '';
    width: 22px;
    height: 2px;
    position: absolute;
    bottom: calc(65px + env(safe-area-inset-bottom));
    background: var(--blue);
  }
  .nav .icon {
    width: 21px;
    height: 21px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    min-height: 76px;
    margin: 0 22px;
    gap: 10px;
  }
  .topbar .wordmark {
    display: block;
    font-size: 25px;
  }
  .topbar .context {
    display: none;
  }
  .user-name {
    font-size: 10px;
  }
  .avatar {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .user-area {
    gap: 7px;
  }
  .user-area .icon-button {
    min-width: 44px;
  }
  .user-area .icon {
    width: 17px;
  }
  .page {
    padding: 28px 22px calc(100px + env(safe-area-inset-bottom));
  }
  h1 {
    font-size: clamp(40px, 12vw, 62px);
    margin-top: 12px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .edition {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
  }
  .data-note {
    font-size: 11px;
    margin-bottom: 24px;
  }
  .intro-grid {
    gap: 22px;
    grid-template-columns: 1fr;
  }
  .rank-panel {
    padding: 20px;
  }
  .rank-line {
    margin: 16px 0;
    gap: 24px;
  }
  .rank-name {
    font-size: 34px;
  }
  .rank-symbol {
    width: 65px;
    height: 75px;
  }
  .rank-foot {
    font-size: 9px;
  }
  .stats-panel {
    padding: 0;
  }
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .stat-value {
    font-size: 30px;
  }
  .stat-value small {
    font-size: 13px;
  }
  .stat-label {
    font-size: 10px;
  }
  .recent-form {
    margin-top: 22px;
    padding-top: 16px;
  }
  .form-chip {
    height: 22px;
    font-size: 9px;
  }
  .focus-panel {
    grid-template-columns: 1fr;
    margin-top: 24px;
    min-height: 260px;
  }
  .focus-content {
    padding: 23px;
    padding-right: 70px;
  }
  .focus-content h2 {
    font-size: 31px;
    max-width: 230px;
  }
  .focus-content p {
    max-width: 215px;
    font-size: 11px;
  }
  .focus-content .btn {
    position: relative;
    white-space: nowrap;
  }
  .focus-art {
    position: absolute;
    right: -38px;
    bottom: 16px;
    width: 160px;
    height: 200px;
    background: transparent;
    pointer-events: none;
  }
  .focus-art img {
    width: 170px;
    height: 170px;
    opacity: 0.75;
  }
  .focus-art::before {
    font-size: 190px;
    top: 25px;
    left: -30px;
  }
  .focus-count {
    top: 17px;
    right: 18px;
    font-size: 9px;
  }
  .section-grid {
    margin-top: 28px;
    gap: 28px;
    grid-template-columns: 1fr;
  }
  .section-title {
    margin-bottom: 10px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .match-row {
    min-height: 75px;
    gap: 11px;
  }
  .footer {
    font-size: 8px;
    margin-top: 32px;
  }
  .map-picker {
    padding: 18px;
    grid-template-columns: 1fr 70px;
    gap: 12px;
  }
  .map-preview {
    width: 70px;
    height: 75px;
  }
  .map-picker select {
    font-size: 23px;
    min-height: 54px;
    padding-left: 10px;
  }
  .role-filters {
    gap: 6px;
    margin: 20px 0;
  }
  .chip {
    font-size: 11px;
    padding: 0 11px;
  }
  .option {
    padding: 19px;
  }
  .option-top h3 {
    font-size: 24px;
  }
  .option-top .agent-icon {
    width: 46px;
    height: 52px;
  }
  .sample-badge {
    font-size: 8px;
  }
  .option-bottom {
    display: block;
  }
  .option-bottom .text-link {
    margin-top: 8px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filters label {
    min-width: 100px;
  }
  .filters select {
    padding-left: 10px;
  }
  .chart-panel {
    padding: 19px;
  }
  .login-card h1 {
    font-size: 52px;
  }
  .profile-picker {
    max-width: 130px;
  }
}
@media (max-width: 360px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    margin: 0 16px;
  }
  .user-name {
    display: none;
  }
  .stat-value {
    font-size: 27px;
  }
  .focus-content {
    padding-left: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
