:root {
  --bg: #090c10;
  --surface: #10151b;
  --surface-2: #151b22;
  --line: #27303a;
  --muted: #74808e;
  --text: #eef2f5;
  --acid: #d8ff3e;
  --orange: #f7a93b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  font-family: Inter, Arial, sans-serif;
}

button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: 238px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid #222a33;
  background: #0d1116;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 28px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #080b0f;
  background: var(--acid);
  box-shadow: 8px 0 0 rgba(216,255,62,.14);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 800;
  transform: skewX(-11deg);
}
.brand-type strong, .brand-type small { display: block; }
.brand-type strong { font-size: 14px; letter-spacing: .11em; }
.brand-type small { margin-top: 3px; color: #697485; font-size: 8px; letter-spacing: .2em; }

.primary-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  margin: 0 12px 8px;
  color: #505b68;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}
.nav-item {
  position: relative;
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  color: #8893a2;
  background: transparent;
  text-align: left;
}
.nav-item:hover { color: #dfe4e9; background: #141a21; }
.nav-item.active { color: #f5f7f9; background: #1a2028; }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  background: var(--acid);
}
.nav-item i { color: #687484; font-size: 15px; font-style: normal; }
.nav-item.active i { color: var(--acid); }
.nav-item > span { font-size: 12px; font-weight: 600; }
.nav-item em {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 10px;
  color: #101409;
  background: var(--acid);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.season-progress {
  margin: auto 8px 18px;
  padding: 15px;
  border: 1px solid #242c35;
  background: #11161c;
}
.season-progress > div { display: flex; justify-content: space-between; }
.season-progress > div span, .season-progress > div strong {
  color: #727e8d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.season-progress > div strong { color: var(--acid); }
.season-progress p { height: 3px; margin: 12px 0 8px; background: #27303a; }
.season-progress p span { display: block; width: 12%; height: 100%; background: var(--acid); }
.season-progress small { color: #5f6a78; font-size: 9px; }

.driver-card {
  display: grid;
  grid-template-columns: 35px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 15px 8px 0;
  border-top: 1px solid #212831;
}
.driver-avatar {
  width: 35px; height: 35px; display: grid; place-items: center;
  border: 1px solid #3a4654; color: var(--acid); background: #171e25;
  font-size: 11px; font-weight: 900;
}
.driver-card strong, .driver-card span { display: block; }
.driver-card strong { font-size: 11px; }
.driver-card span { margin-top: 3px; color: #697482; font-size: 9px; }
.driver-card button { padding: 0; border: 0; color: #677280; background: transparent; }

.workspace { width: calc(100% - 238px); margin-left: 238px; }
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #242b34;
  background: rgba(13,17,22,.93);
  backdrop-filter: blur(12px);
}
.breadcrumb { display: flex; gap: 10px; color: #65707e; font-size: 10px; letter-spacing: .12em; }
.breadcrumb b { color: #343c46; }
.breadcrumb strong { color: #aeb7c2; }
.topbar-actions { height: 100%; display: flex; align-items: center; gap: 22px; }

.link-pill {
  display: flex; align-items: center; gap: 7px; padding: 7px 10px;
  border: 1px solid #2d3640; color: #7e8997; background: #12171d;
  font-size: 8px; font-weight: 800; letter-spacing: .1em;
}
.link-pill > span { width: 6px; height: 6px; border-radius: 50%; background: #68717e; }
.link-pill.online { color: #c8e76f; border-color: rgba(216,255,62,.25); }
.link-pill.online > span { background: var(--acid); box-shadow: 0 0 9px rgba(216,255,62,.6); }
.link-pill.warning { color: var(--orange); border-color: rgba(247,169,59,.25); }
.link-pill.warning > span { background: var(--orange); }
.link-pill b { font-weight: 800; }

.career-stat, .date-control { padding-left: 20px; border-left: 1px solid #272f38; }
.career-stat small, .career-stat strong, .date-control small, .date-control strong { display: block; }
.career-stat small, .date-control small {
  color: #616c7a; font-size: 8px; font-weight: 800; letter-spacing: .12em;
}
.career-stat strong { margin-top: 4px; font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.career-stat.license strong { color: var(--acid); }
.date-control { height: 100%; display: flex; align-items: center; gap: 18px; }
.date-control strong { margin-top: 3px; font-size: 11px; }
.date-control button {
  height: 36px; padding: 0 14px; border: 1px solid rgba(216,255,62,.25);
  color: var(--acid); background: rgba(216,255,62,.06);
  font-size: 9px; font-weight: 800; letter-spacing: .08em;
}
.date-control button span { margin-left: 12px; font-size: 16px; }

.content { max-width: 1550px; margin: 0 auto; padding: 30px; }
.hero {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid #2a323c;
  background:
    linear-gradient(90deg, rgba(15,20,26,.97), rgba(15,20,26,.72) 58%, rgba(15,20,26,.2)),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(216,255,62,.035) 39px 40px),
    #171e25;
}
.hero::after {
  content: "01";
  position: absolute;
  right: 22%;
  bottom: -44px;
  color: rgba(216,255,62,.05);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 180px;
  font-weight: 800;
}
.eyebrow, .section-kicker { color: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.hero h1 {
  position: relative; z-index: 1; margin: 9px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(32px, 3.2vw, 48px); line-height: 1; letter-spacing: -.02em;
}
.hero p { margin: 0; color: #7f8a98; font-size: 12px; }
.hero-meta {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 25px;
  padding: 17px 20px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,13,17,.62);
}
.hero-meta small, .hero-meta strong { display: block; }
.hero-meta small { color: #626e7d; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.hero-meta strong { margin-top: 6px; font: 600 11px "IBM Plex Mono", monospace; }
.hero-meta strong.confirmed { color: var(--acid); }
.hero-meta i { width: 1px; height: 30px; background: #313942; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(350px,.55fr);
  gap: 18px;
  margin-top: 18px;
}
.events-panel, .session-panel { border: 1px solid #242d36; background: rgba(15,20,26,.96); }
.events-panel { padding: 25px; }
.section-heading, .session-header {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px;
}
.section-heading h2, .session-header h2 {
  margin: 5px 0 0; font: 700 24px "Barlow Condensed", sans-serif; letter-spacing: .01em;
}
.filter-tabs { display: flex; gap: 3px; }
.filter-tabs button {
  padding: 7px 10px; border: 0; color: #66717f; background: transparent;
  font-size: 9px; font-weight: 700;
}
.filter-tabs button.active { color: #e9edf1; background: #202731; }

.event-list { display: flex; flex-direction: column; gap: 8px; }
.event-card {
  --event-color: var(--acid);
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: 43px 3px minmax(180px,1.7fr) minmax(90px,.75fr) minmax(105px,.85fr) minmax(85px,.7fr) 26px;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 0 14px 0 7px;
  border: 1px solid #242d36;
  color: #d9dee4;
  background: #121820;
  text-align: left;
  transition: border-color .16s, background .16s, transform .16s;
}
.event-card:hover { border-color: #3a4652; background: #171e26; transform: translateX(2px); }
.event-card.selected {
  border-color: color-mix(in srgb, var(--event-color) 55%, #303843);
  background: linear-gradient(90deg, color-mix(in srgb, var(--event-color) 7%, #141a21), #141a21 55%);
}
.event-card.locked { opacity: .48; }
.event-number {
  color: #3c4652; font: 800 21px "IBM Plex Mono", monospace; text-align: center;
}
.event-card.selected .event-number { color: var(--event-color); }
.event-accent { width: 3px; height: 40px; background: var(--event-color); opacity: .65; }
.event-main small, .event-data small {
  display: block; margin-bottom: 5px; color: #586472;
  font-size: 7px; font-weight: 850; letter-spacing: .13em;
}
.event-main strong, .event-main span, .event-data strong, .event-data span { display: block; }
.event-main strong { margin-bottom: 5px; font-size: 12px; }
.event-main span, .event-data span { color: #697584; font-size: 9px; }
.event-data strong { margin-bottom: 4px; font-size: 10px; }
.event-data.reward strong { color: var(--event-color); font-family: "IBM Plex Mono", monospace; }
.select-indicator {
  width: 23px; height: 23px; display: grid; place-items: center;
  border: 1px solid #343e49; color: #687482; font-size: 13px;
}
.event-card.selected .select-indicator {
  border-color: var(--event-color); color: #10140a; background: var(--event-color);
}
.career-note {
  display: flex; align-items: center; gap: 11px; margin-top: 15px; padding: 11px 13px;
  border: 1px dashed #29333d; color: #687482; background: #10151b;
}
.career-note > span {
  flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center;
  border: 1px solid #44505d; border-radius: 50%; font-size: 10px; font-weight: 850;
}
.career-note p { margin: 0; font-size: 9px; line-height: 1.5; }

.session-panel { overflow: hidden; }
.session-header { margin: 0; padding: 25px 25px 18px; }
.session-state {
  padding: 5px 7px; color: var(--acid); background: rgba(216,255,62,.08);
  font-size: 8px; font-weight: 900; letter-spacing: .14em;
}
.track-visual {
  position: relative; min-height: 176px; padding: 25px; overflow: hidden;
  border-block: 1px solid #273039;
  background: radial-gradient(circle at 75% 35%, rgba(216,255,62,.12), transparent 35%), #11171d;
}
.track-rings span {
  position: absolute; display: block; border: 1px solid rgba(216,255,62,.09);
  border-radius: 50%; transform: rotate(-22deg);
}
.track-rings span:nth-child(1) { width: 210px; height: 95px; right: -20px; top: 24px; }
.track-rings span:nth-child(2) { width: 160px; height: 68px; right: 10px; top: 42px; }
.track-rings span:nth-child(3) { width: 110px; height: 42px; right: 40px; top: 56px; }
.track-code { position: relative; z-index: 1; }
.track-code small, .track-code strong, .track-code span { display: block; }
.track-code small { color: #667281; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.track-code strong {
  margin-top: 5px; font: 700 30px "Barlow Condensed", sans-serif; letter-spacing: .01em;
}
.track-code span { margin-top: 1px; color: #73808f; font-size: 10px; }
.weather-badge { position: absolute; left: 25px; bottom: 20px; display: flex; align-items: center; gap: 9px; }
.weather-badge > b { color: var(--acid); font-size: 23px; }
.weather-badge strong, .weather-badge small { display: block; }
.weather-badge strong { font-size: 9px; }
.weather-badge small { margin-top: 2px; color: #65717f; font-size: 8px; }

.session-facts { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid #273039; }
.session-facts div { padding: 15px 8px; border-right: 1px solid #273039; text-align: center; }
.session-facts div:last-child { border-right: 0; }
.session-facts small, .session-facts strong { display: block; }
.session-facts small { color: #5d6876; font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.session-facts strong { margin-top: 6px; font: 600 10px "IBM Plex Mono", monospace; }
.automation-checks { padding: 20px 25px; border-bottom: 1px solid #273039; }
.automation-checks p { margin: 0 0 11px; color: #687482; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.automation-checks div { display: flex; align-items: center; gap: 9px; padding: 5px 0; color: #8a95a2; font-size: 9px; }
.automation-checks div span { color: var(--acid); }

.launch-area { padding: 20px 25px 23px; }
.notice { margin: 0 0 12px; padding: 9px 10px; font-size: 9px; line-height: 1.45; }
.link-hint { border: 1px solid #303a45; color: #85909d; background: #131920; }
.launch-success { border: 1px solid rgba(216,255,62,.25); color: #cbe76d; background: rgba(216,255,62,.05); }
.launch-error { border: 1px solid rgba(255,95,77,.3); color: #ff9d91; background: rgba(255,95,77,.06); }
.launch-button {
  width: 100%; min-height: 62px; display: grid; grid-template-columns: 34px 1fr 20px;
  align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--acid);
  color: #0c1007; background: var(--acid); text-align: left;
  transition: transform .16s, box-shadow .16s;
}
.launch-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(216,255,62,.12); }
.launch-button:disabled { border-color: #303942; color: #68727e; background: #202730; cursor: not-allowed; }
.launch-icon {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%; font-size: 10px;
}
.launch-button small, .launch-button strong { display: block; }
.launch-button small { font-size: 7px; font-weight: 900; letter-spacing: .15em; }
.launch-button strong { margin-top: 3px; font-size: 11px; }
.launch-button > b { font-size: 22px; text-align: right; }
.launch-footnote { margin: 9px 0 0; color: #505b68; font-size: 7px; text-align: center; }

@media (max-width: 1180px) {
  .sidebar { width: 78px; }
  .workspace { width: calc(100% - 78px); margin-left: 78px; }
  .brand-type, .nav-label, .nav-item > span, .nav-item em,
  .season-progress, .driver-card > div:nth-child(2), .driver-card button { display: none; }
  .brand { justify-content: center; padding-inline: 0; }
  .nav-item { grid-template-columns: 1fr; text-align: center; }
  .nav-item i { font-size: 18px; }
  .driver-card { grid-template-columns: 1fr; padding-inline: 0; }
  .driver-avatar { margin: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar {
    position: static; width: 100%; height: 64px; flex-direction: row;
    align-items: center; padding: 0 14px; border-right: 0; border-bottom: 1px solid #242b34;
  }
  .brand { padding: 0; }
  .brand-type { display: block; }
  .primary-nav, .driver-card { display: none; }
  .workspace { width: 100%; margin: 0; }
  .topbar { height: auto; min-height: 62px; padding: 10px 16px; }
  .breadcrumb, .career-stat, .date-control > div { display: none; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .date-control { padding-left: 0; border-left: 0; }
  .content { padding: 16px; }
  .hero { min-height: 190px; display: block; padding: 24px; }
  .hero-meta { margin-top: 24px; }
  .events-panel { padding: 17px; }
  .filter-tabs { display: none; }
  .event-card { grid-template-columns: 32px 3px 1fr 24px; padding-block: 12px; }
  .event-data { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* Readability floor for compact chrome */
.brand-type small{font-size:10px}.nav-label{font-size:10px}.nav-item{font-size:13px}.season-progress small,.driver-card span{font-size:10px}.breadcrumb{font-size:11px}.account-pill,.link-pill{font-size:11px}.career-stat small,.date-control small{font-size:10px!important}.career-stat strong,.date-control strong{font-size:13px}.hero-meta small,.track-code small,.weather-badge small,.session-facts small,.launch-button small{font-size:10px}.event-type,.career-note p,.event-main span,.event-data span,.automation-checks p,.automation-checks div,.notice,.launch-footnote{font-size:10px}