@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Material Symbols Rounded";
  src: url("assets/symbols.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: dark;
  --background: #141418;
  --sidebar: #19191d;
  --panel: #1d1d23;
  --border: #303039;
  --text: #f5f0eb;
  --muted: #a8a6ad;
  --accent: #ff7954;
  --accent-light: #ff9e83;
  --accent-soft: #382421;
  --good: #a5d5ba;
  --warning: #f5be7b;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sidebar-width: 222px;
  --radius: 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 300px; margin: 0; background: var(--background); color: var(--text); }
button { font: inherit; color: inherit; }
button:enabled { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.55; }
h1[tabindex]:focus { outline: 0; }
[hidden] { display: none !important; }

.icon {
  display: inline-block;
  flex: 0 0 auto;
  font: normal 20px/1 "Material Symbols Rounded";
  font-feature-settings: "liga";
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 27px 16px 20px;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin: 0 4px 43px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  align-content: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  background: var(--accent);
  transform: skew(-5deg);
}

.brand-mark i { width: 19px; height: 3px; border-radius: 6px; background: #211819; transform: skew(-21deg); }
.brand-mark i:nth-child(2) { width: 15px; }
.brand-mark i:nth-child(3) { width: 10px; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font: 700 26px/.9 var(--display); letter-spacing: .035em; text-transform: uppercase; }
.brand-text small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

.nav { display: grid; gap: 5px; }
.nav-button {
  display: flex;
  min-width: 0;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-weight: 650;
  text-align: left;
}
.nav-button:hover { background: #222228; color: var(--text); }
.nav-button[aria-current="page"] { border-color: #59352f; background: #342421; color: var(--accent-light); }
.nav-button .icon { font-size: 19px; }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 5px 0;
  border-top: 1px solid var(--border);
}
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.agency-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #75493e;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font: 700 22px/1 var(--display);
}

.workspace { padding-left: var(--sidebar-width); }
.topbar {
  display: flex;
  min-height: 71px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--border);
}
.season-label, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.season-label { color: var(--muted); font-size: 12px; }
.season-label strong { color: var(--text); font-size: 12px; font-weight: 700; }
.season-divider { width: 1px; height: 15px; background: var(--border); }
.season-dot, .live-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.live-dot { box-shadow: 0 0 13px #ff79547a; }
.topbar-actions { gap: 18px; }
.date-block { display: grid; gap: 3px; text-align: right; white-space: nowrap; }
.date-block strong { font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.date-block span { color: var(--muted); font-size: 11px; }

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  transition: background .16s ease, border-color .16s ease;
}
.button .icon { font-size: 17px; }
.button-primary { border-color: #ff7954; background: var(--accent); color: #251816; }
.button-primary:hover { border-color: #ff9e83; background: #ff9578; }
.button-secondary { border-color: #41414a; background: #282830; }
.button-secondary:hover { border-color: #6b5450; background: #332a2d; }
.button-light { background: #f7eddf; color: #2e211e; }
.button-light:hover { background: #fff7ed; }
.button-quiet { border-color: var(--border); color: var(--muted); }
.button-quiet:hover { border-color: #60525a; background: #24242b; color: var(--text); }

#screen { width: min(100%, 1570px); margin: 0 auto; padding: 26px clamp(20px, 3vw, 42px) 50px; }
.page-heading, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-heading { margin-bottom: 23px; }
.page-heading h1 {
  font: 700 clamp(42px, 4vw, 59px)/.97 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
}
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.page-heading > .button { margin-bottom: 2px; flex: 0 0 auto; }
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.padded { padding: 22px; }
.padded > p:not(.subtitle) { color: var(--muted); }
.padded > p + p { margin-top: 8px; }
.padded > p + .button { margin-top: 12px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(243px, 1fr); gap: 16px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 275px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #663a31;
  border-radius: var(--radius);
  background: #261c1d;
}
.hero::before, .hero::after { position: absolute; inset: 0; z-index: -1; content: ""; }
.hero::before {
  background-image: var(--hero-image);
  background-position: var(--hero-position, center 43%);
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::after {
  background: linear-gradient(90deg, #221617 0%, #241718f7 23%, #291b1ab5 48%, #281b2070 66%, #1b151817 88%),
    linear-gradient(0deg, #131216b3, transparent 31%);
}
.hero-mateo { --hero-image: url("assets/mateo.webp"); --hero-position: center 22%; }
.hero-nadia { --hero-image: url("assets/nadia.webp"); --hero-position: right 28%; }
.hero-eli { --hero-image: url("assets/eli.webp"); --hero-position: right 26%; }
.hero-nadia::before, .hero-eli::before { background-size: auto 160%; }
.hero-copy { max-width: 83%; padding: 27px 27px 24px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd4c7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-kicker .icon { font-size: 16px; }
.hero-countdown { margin-left: 3px; padding-left: 9px; border-left: 1px solid #a06a5c; color: #f4b09c; }
.hero h2 {
  margin-top: 9px;
  font: 700 clamp(44px, 5.3vw, 81px)/.92 var(--display);
  letter-spacing: -.013em;
  text-transform: uppercase;
}
.hero h2 em { color: var(--accent); font-size: .55em; font-style: normal; vertical-align: .16em; }
.hero-event { margin-top: 9px; color: #faeee8; font-size: 14px; font-weight: 750; }
.hero-event span, .hero-location span { margin: 0 2px; color: #d5998e; }
.hero-location { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: #dcc4bd; font-size: 12px; }
.hero-location .icon { font-size: 16px; }
.hero .button { margin-top: 17px; }
.hero-empty h2 { max-width: 360px; font-size: clamp(40px, 4.4vw, 66px); }
.hero-empty .hero-copy > p:not(.hero-kicker) { max-width: 31ch; margin-top: 10px; color: #dcc4bd; font-size: 13px; }
.hero-photo-credit {
  position: absolute;
  right: 18px;
  bottom: 19px;
  display: grid;
  gap: 4px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  color: #f9f0e7;
}
.hero-photo-credit strong { font: 700 21px/.9 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.hero-photo-credit span { color: #efe2db; font-size: 10px; }

.agenda { padding: 17px; }
.agenda-heading, .panel-heading, .event-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.agenda-heading { margin: 2px 2px 11px; }
.agenda-heading h2, .section-heading h2, .panel-heading h2 { font-size: 17px; font-weight: 750; letter-spacing: -.022em; }
.agenda-heading > span, .panel-heading > span:not(.badge), .event-tab > span, .section-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.agenda-row {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 35px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: left;
}
.agenda-row:hover { background: #282830; }
.agenda-row strong, .agenda-row small, .roster-card small { display: block; }
.agenda-row strong { font-size: 12px; font-weight: 700; }
.agenda-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.agenda-row > .icon { justify-self: end; color: #ad8990; font-size: 17px; }
.agenda-icon, .metric-icon, .plan-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #503331;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-light);
}
.agenda-icon .icon, .metric-icon .icon, .plan-icon .icon { font-size: 17px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.metric { display: flex; min-height: 104px; align-items: flex-start; gap: 11px; padding: 13px; }
.metric p { color: var(--muted); font-size: 11px; font-weight: 650; }
.metric strong { display: block; margin-top: 2px; font: 700 clamp(27px, 2.9vw, 38px)/1 var(--display); letter-spacing: .015em; }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.metric-warning strong, .warning-text { color: var(--warning) !important; }

.roster-section, .activity { margin-top: 24px; }
.section-heading { align-items: center; margin-bottom: 11px; }
.section-heading h2 { display: flex; align-items: center; gap: 7px; font-size: 19px; }
.section-heading h2 > span {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}
.section-heading .button { min-height: 35px; }
.roster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.roster-card {
  display: flex;
  min-height: 115px;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color .16s ease, background .16s ease;
}
.roster-card:hover { border-color: #a26755; background: #25242b; }
.portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 20%, #59403d, #27232a);
  color: #f7c5b6;
  font: 700 28px/1 var(--display);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.portrait-mateo img { object-position: 75% 43%; }
.roster-card .portrait { width: 31%; min-width: 63px; max-width: 113px; }
.roster-card-body { width: 100%; min-width: 0; padding: 13px 12px; }
.roster-card-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 6px; }
.roster-card-title strong { font: 700 25px/.98 var(--display); text-transform: uppercase; }
.roster-card-title > span { color: #f2b6a7; font-size: 11px; font-weight: 750; white-space: nowrap; }
.roster-card-body p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.readiness-label { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.roster-card .readiness-label { margin: 10px 0 4px; font-size: 10px; }
.readiness-label strong { color: var(--text); font-weight: 750; white-space: nowrap; }
.meter { height: 5px; overflow: hidden; border-radius: 6px; background: #393840; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .18s ease; }
.meter-low span { background: #dfaa76; }
.activity-list, .history-list, .round-list { margin: 0; padding: 0; list-style: none; }
.activity-list { padding: 0 15px; }
.activity-list li {
  display: grid;
  min-height: 61px;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.activity-list li + li { border-top: 1px solid var(--border); }
.activity-list li > .icon { color: var(--accent-light); }
.activity-list li > span:not(.icon) { color: var(--muted); font-size: 10px; }
.activity-list strong, .activity-list small { display: block; }
.activity-list strong { font-size: 12px; }
.activity-list small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.fighter-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 17px; }
.fighter-tab, .event-tab, .plan-option, .result-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-align: left;
}
.fighter-tab { min-height: 62px; padding: 8px 10px; border-radius: 9px; }
.fighter-tab:hover, .event-tab:hover, .plan-option:enabled:hover, .result-link:hover { border-color: #8e584c; background: #2a262b; }
.fighter-tab[aria-pressed="true"], .event-tab[aria-pressed="true"], .plan-option[aria-pressed="true"] { border-color: #a7604e; background: #302522; }
.fighter-tab .portrait { width: 42px; height: 44px; border-radius: 5px; font-size: 18px; }
.fighter-tab strong, .fighter-tab small, .plan-option strong, .plan-option small, .result-link strong, .result-link small { display: block; }
.fighter-tab strong, .plan-option strong, .result-link strong { font-size: 13px; }
.fighter-tab small, .plan-option small, .result-link small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.detail-grid, .camp-grid, .finance-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.secondary-grid, .fight-grid { margin-top: 16px; }
.fighter-profile { display: flex; min-height: 255px; align-items: stretch; overflow: hidden; }
.profile-portrait { width: 38%; max-width: 220px; }
.fighter-bio { padding: 19px; }
.fighter-bio h2 { margin: 8px 0 3px; font: 700 clamp(27px, 4vw, 48px)/.95 var(--display); text-transform: uppercase; }
.fighter-bio p:not(.subtitle) { margin-top: 9px; color: var(--muted); font-size: 12px; }
.fighter-bio .button { margin-top: 13px; }
.profile-location { display: flex; align-items: center; gap: 4px; }
.profile-location .icon { font-size: 16px; }
.subtitle { color: var(--text); font-size: 13px; font-weight: 650; }
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #4a4952;
  border-radius: 5px;
  background: #2b2b32;
  color: #d0ccd2;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}
.badge-good { border-color: #476756; background: #22352c; color: var(--good); }
.badge-warning { border-color: #77563e; background: #3b2c26; color: var(--warning); }
.panel-heading { min-height: 25px; margin-bottom: 13px; }
.attribute-list { display: grid; gap: 15px; }
.attribute-list .readiness-label { margin-bottom: 5px; }
.condition-row { display: flex; flex-wrap: wrap; gap: 10px 19px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.condition-row strong { margin-left: 3px; color: var(--text); }

.stack { display: grid; gap: 16px; }
.plan-list { display: grid; gap: 7px; }
.plan-option {
  display: grid;
  min-height: 63px;
  grid-template-columns: 34px minmax(0, 1fr) auto 17px;
  padding: 8px 10px;
  border-radius: 8px;
}
.plan-option > .icon { color: var(--accent-light); font-size: 17px; }
.plan-number { text-align: right; white-space: nowrap; }
.plan-number small { font-size: 10px; }
.projection { margin: 0; }
.projection > div, .history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.projection dt, .history-list span { color: var(--muted); }
.projection dd { margin: 0; text-align: right; white-space: nowrap; }
.projection dd span { margin: 0 5px; color: var(--muted); }
.projection dd strong { color: var(--accent-light); }
.hint, .notice, .camp-booking { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hint .icon, .notice .icon, .camp-booking .icon { margin-top: 1px; font-size: 16px; }
.padded .hint, .padded .camp-booking { margin-top: 13px; }
.notice { margin: 0 0 12px; padding: 9px 10px; border: 1px solid #4c3e3b; border-radius: 7px; background: #2f2627; }
.projection + .notice { margin: 13px 0 0; }
.camp-booking { color: var(--accent-light) !important; }
.result-link {
  width: 100%;
  justify-content: flex-start;
  margin-top: 7px;
  padding: 9px;
  border-radius: 7px;
}
.result-link > .icon { color: var(--accent-light); font-size: 17px; }
.result-link > .icon:last-child { margin-left: auto; }

.event-calendar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.event-tab {
  display: grid;
  min-height: 104px;
  align-content: start;
  gap: 6px;
  padding: 12px;
}
.event-tab strong { font: 700 23px/.95 var(--display); text-transform: uppercase; }
.event-tab small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.event-section { margin-top: 23px; }
.event-heading { display: flex; align-items: center; gap: 12px; }
.event-heading h2 { font: 700 37px/.95 var(--display); text-transform: uppercase; }
.event-heading p { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.event-heading .icon { font-size: 16px; }
.event-monogram {
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #794638;
  border-radius: 9px;
  background: #382422;
  color: var(--accent-light);
  font: 700 31px/1 var(--display);
}
.event-title { justify-content: flex-start; flex-wrap: wrap; }
.event-section > .hint { margin: 13px 0 12px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.offer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.offer-top .portrait { width: 42px; height: 44px; border-radius: 5px; font-size: 17px; }
.offer-top h3 { font: 700 27px/.95 var(--display); text-transform: uppercase; }
.offer-top p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.offer-top > .badge { margin-left: auto; }
.offer-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 14px 0 10px; }
.offer-terms > div { padding-top: 8px; border-top: 1px solid var(--border); }
.offer-terms dt { color: var(--muted); font-size: 11px; }
.offer-terms dd { margin: 3px 0 0; font: 700 26px/1 var(--display); }
.offer-earnings { margin-bottom: 10px; font-size: 11px; }
.offer-earnings strong { color: var(--accent-light); }
.offer-card details { color: var(--muted); font-size: 12px; }
.offer-card summary { width: fit-content; cursor: pointer; color: var(--text); font-weight: 650; }
.offer-card details p { margin-top: 5px; }
.scout-line { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 6px; font-size: 11px; }
.scout-line strong { color: var(--text); }
.offer-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.offer-footer .button { flex: 0 0 auto; }

.fight-hero { min-height: 214px; }
.fight-hero.hero-mateo { --hero-position: center 14%; }
.fight-hero .hero-copy { padding-bottom: 20px; }
.fight-hero h2 { font-size: clamp(46px, 6.3vw, 87px); }
.tactic-option { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 11px; }
.tactic-fit { color: var(--accent-light); font-size: 11px; text-align: right; }
.panel-action { margin-top: 13px; }
.panel-action:empty { display: none; }
.round-card { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.round-card strong, .round-card small { display: block; }
.round-card strong { font-size: 12px; }
.round-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.round-card .badge { flex: 0 0 auto; }
.result-panel .projection { margin-top: 11px; }

.finance-grid { align-items: stretch; }
.finance-summary { background: radial-gradient(ellipse at top right, #392824, var(--panel) 62%); }
.finance-summary h2 { margin: 5px 0; color: var(--accent-light); font: 700 clamp(44px, 6vw, 82px)/1 var(--display); }
.finance-summary .hint { max-width: 45ch; }
.ledger, .season-results { margin-top: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 9px 7px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
td { font-size: 12px; }
td:first-child, td:last-child { white-space: nowrap; }
td:last-child, th:last-child { text-align: right; }
td:nth-child(3), td:first-child { color: var(--muted); }
.text-accent { color: var(--accent-light); }
.save-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.save-footer > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.save-footer .icon { font-size: 16px; }

.online-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.online-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: linear-gradient(105deg, #302322, var(--panel) 70%); }
.online-profile-name { display: grid; justify-items: start; gap: 7px; min-width: 0; flex: 1 1 170px; }
.online-profile-name h2 { font: 700 34px/.95 var(--display); overflow-wrap: anywhere; }
.online-profile dl { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; }
.online-profile dt { color: var(--muted); font-size: 11px; }
.online-profile dd { margin: 3px 0 0; font: 700 26px/1 var(--display); }
.online-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 14px 0; }
.online-tabs button { min-height: 39px; padding: 6px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 700; }
.online-tabs button:hover { color: var(--text); }
.online-tabs button[aria-pressed="true"], .online-opponent .button[aria-pressed="true"], .online-grid .result-link[aria-pressed="true"] { border-color: #a7604e; background: #302522; color: var(--accent-light); }
.online-board td:nth-child(2), .online-opponent strong, .online-grid .panel-heading h2, .online-report .subtitle { overflow-wrap: anywhere; }
.online-board td:nth-child(3) { white-space: nowrap; }
.online-board .online-your-row { background: #302522; }
.online-you { color: var(--accent-light); font-size: 10px; }
.online-form { display: grid; gap: 11px; }
.online-form label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.online-form input:not([type="checkbox"]), .online-form select, .online-code input {
  min-height: 39px;
  width: 100%;
  min-width: 0;
  border: 1px solid #484651;
  border-radius: 7px;
  background: #17171c;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}
.online-form :is(input, select):focus-visible, .online-code input:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.online-form .button { justify-self: start; }
.online-sign-in { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); }
.online-sign-in summary { width: fit-content; cursor: pointer; color: var(--accent-light); font-size: 12px; font-weight: 650; }
.online-sign-in form { margin-top: 12px; }
.online-access { margin-top: 13px; }
.online-code { display: flex; align-items: center; gap: 8px; width: min(100%, 510px); margin-top: 9px; }
.online-code .button { flex: 0 0 auto; }
.online-defence { margin-top: 14px; }
.online-form .online-toggle { display: flex; align-items: flex-start; gap: 8px; }
.online-toggle input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.online-toggle strong, .online-fighter strong, .online-opponent strong { display: block; color: var(--text); }
.online-toggle small, .online-fighter small, .online-opponent small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.online-fighter { display: grid; grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(0, 1fr)); gap: 10px 15px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.online-fighter-name { display: flex; align-items: center; gap: 9px; }
.online-fighter .portrait { width: 39px; height: 48px; border-radius: 6px; }
.online-opponents, .online-history-list { max-height: 375px; overflow: auto; }
.online-opponents > p, .online-history-list > p { color: var(--muted); }
.online-opponents:not(:first-child) { margin-top: 10px; }
.online-opponent { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); }
.online-opponent .button { flex: 0 0 auto; }
.online-report-plans { margin-top: 8px; }
.online-report-plans dd { white-space: normal; }
.online-report-plans dt, .online-report .round-card small { overflow-wrap: anywhere; }
.online-report-plans dt small { display: block; margin-top: 3px; color: var(--muted); }

.toast {
  position: fixed;
  z-index: 4;
  right: 22px;
  bottom: 21px;
  max-width: min(380px, calc(100% - 44px));
  padding: 12px 15px;
  border: 1px solid #854e40;
  border-radius: 8px;
  background: #332622;
  box-shadow: 0 10px 27px #0005;
  font-size: 12px;
  font-weight: 650;
}
dialog { width: min(420px, calc(100% - 28px)); margin: auto; padding: 0; border: 1px solid #745147; border-radius: 12px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: #0a0a0cd9; }
.dialog-body { padding: 22px; }
.dialog-body h2 { font-size: 19px; }
.dialog-body p { margin: 7px 0 16px; color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.noscript { margin: 12px; color: var(--warning); }

@media (max-width: 1170px) {
  :root { --sidebar-width: 186px; }
  .sidebar { padding-inline: 12px; }
  .brand { margin-inline: 1px; gap: 8px; }
  .brand-text strong { font-size: 23px; }
  .brand-mark { width: 33px; height: 35px; }
  .padded { padding: 17px; }
  .metric { gap: 7px; padding: 10px; }
  .metric-icon { width: 28px; height: 28px; }
  .roster-card-title strong { font-size: 23px; }
  .offer-grid { gap: 10px; }
}

@media (max-width: 930px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .agenda { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 9px; }
  .agenda-heading { grid-column: 1 / -1; }
  .agenda-row { min-height: 61px; grid-template-columns: 27px minmax(0, 1fr); gap: 7px; }
  .agenda-row > .icon { display: none; }
  .agenda-icon { width: 27px; height: 27px; }
  .agenda-icon .icon { font-size: 15px; }
  .roster-card { min-height: 112px; }
  .roster-card-body { padding-inline: 8px; }
  .detail-grid, .camp-grid, .finance-grid { grid-template-columns: minmax(0, 1fr); }
  .event-calendar { grid-template-columns: repeat(5, minmax(116px, 1fr)); overflow-x: auto; padding: 4px; margin: -4px; }
}

@media (max-width: 740px) {
  .sidebar { position: static; width: 100%; padding: 12px 12px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0 0 10px 2px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text strong { font-size: 23px; }
  .sidebar-footer { display: none; }
  .nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  .nav-button { flex-direction: column; justify-content: center; gap: 4px; min-height: 45px; padding: 4px 2px; border-radius: 6px 6px 0 0; font-size: 10px; white-space: nowrap; }
  .nav-button .icon { font-size: 17px; }
  .workspace { padding-left: 0; }
  .topbar { min-height: 64px; padding: 9px 13px; }
  .topbar-actions { margin-left: auto; }
  #screen { padding: 20px 14px 34px; }
  .page-heading { gap: 8px; margin-bottom: 15px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .button { min-height: 34px; padding: 6px 8px; }
  .hero-copy { padding: 20px 17px; }
  .hero { min-height: 241px; }
  .hero h2 { font-size: clamp(45px, 9vw, 68px); }
  .hero-photo-credit { right: 12px; bottom: 14px; }
  .hero-photo-credit strong { font-size: 17px; }
  .hero-photo-credit span { font-size: 9px; }
  .roster-grid { gap: 6px; }
  .roster-card { min-height: 122px; }
  .online-grid { grid-template-columns: minmax(0, 1fr); }
  .online-opponents, .online-history-list { max-height: 240px; }
}

@media (max-width: 500px) {
  .season-label { font-size: 10px; gap: 5px; }
  .season-label strong { font-size: 10px; }
  .season-label span:nth-last-child(-n + 2) { display: none; }
  .topbar-actions { gap: 9px; }
  .topbar-actions .button { min-height: 36px; padding: 6px 8px; font-size: 11px; }
  .topbar-actions .button .icon { font-size: 15px; }
  .feature-grid { gap: 11px; }
  .hero { min-height: 229px; }
  .hero::after { background: linear-gradient(90deg, #221617 0%, #251819e8 28%, #291b1a8a 61%, #25191f38 96%), linear-gradient(0deg, #131216c0, transparent 32%); }
  .hero-mateo { --hero-position: 61% 41%; }
  .fight-hero.hero-mateo { --hero-position: 61% 23%; }
  .hero-nadia::before, .hero-eli::before { background-size: auto 128%; }
  .hero-copy { max-width: 91%; }
  .hero-photo-credit { display: none; }
  .hero-kicker { font-size: 9px; letter-spacing: .09em; }
  .hero h2 { font-size: clamp(43px, 10vw, 51px); }
  .hero-location { font-size: 11px; }
  .agenda { display: block; padding: 12px; }
  .agenda-row { min-height: 49px; grid-template-columns: 28px minmax(0, 1fr) 16px; }
  .agenda-row > .icon { display: block; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
  .metric { min-height: 87px; }
  .roster-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .roster-card { min-height: 102px; }
  .roster-card-body { padding: 11px; }
  .roster-card-title { justify-content: flex-start; gap: 7px; }
  .roster-section, .activity { margin-top: 17px; }
  .fighter-tabs { gap: 5px; }
  .fighter-tab { justify-content: center; gap: 5px; min-height: 67px; flex-direction: column; padding: 5px 3px; text-align: center; }
  .fighter-tab .portrait { width: 27px; height: 28px; }
  .fighter-tab strong { font-size: 11px; }
  .fighter-tab small { display: none; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .event-tab { min-height: 91px; padding: 9px; }
  .event-tab strong { font-size: 20px; }
  .event-heading h2 { font-size: 31px; }
  .event-monogram { width: 44px; height: 44px; font-size: 24px; }
  .padded { padding: 13px; }
  .fighter-bio { padding: 13px; }
  .fight-hero { min-height: 176px; }
  .save-footer > span { font-size: 11px; }
  .online-profile { gap: 10px; }
  .online-profile-name { flex-basis: 100%; }
  .online-profile dl { gap: 10px 14px; }
  .online-profile dd { font-size: 22px; }
  .online-profile > .button { margin-left: auto; }
  .online-tabs { gap: 4px; }
  .online-tabs button { padding-inline: 3px; font-size: 11px; }
  .online-fighter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-fighter-name { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
