    :root {
      --bg-1: #090d12;
      --bg-2: #111823;
      --bg-3: #1b2533;
      --panel: #151e29;
      --panel-2: #1c2836;
      --text: #e7edf5;
      --muted: #9fb0c5;
      --accent: #30d989;
      --accent-2: #3aa4ff;
      --accent-warm: #ff8b4d;
      --accent-red: #ff5d52;
      --accent-violet: #9b8cff;
      --warning: #fdbb58;
      --border: #2a3a4f;
      --border-soft: #243345;
      --shadow: rgba(0, 0, 0, 0.28);
      --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    }

    * {
      box-sizing: border-box;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    html, body {
      margin: 0;
      min-height: 100%;
    }

    body {
      color: var(--text);
      font-family: "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
      background:
        radial-gradient(1000px 460px at 8% -8%, rgba(47, 107, 196, 0.22), transparent 65%),
        radial-gradient(900px 520px at 88% -15%, rgba(48, 217, 137, 0.15), transparent 68%),
        linear-gradient(165deg, var(--bg-1) 0%, var(--bg-2) 46%, var(--bg-3) 100%);
      position: relative;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.12;
      background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0%, transparent 35%),
        repeating-linear-gradient(
          90deg,
          rgba(255, 255, 255, 0.014) 0,
          rgba(255, 255, 255, 0.014) 1px,
          transparent 1px,
          transparent 82px
        );
    }

    body::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(900px 360px at 50% 120%, rgba(255, 134, 74, 0.06), transparent 70%),
        radial-gradient(700px 280px at 50% -20%, rgba(123, 178, 255, 0.06), transparent 72%);
      opacity: 0.3;
    }

    .container {
      max-width: 1320px;
      margin: 0 auto;
      padding: 1rem 1rem 2rem;
      position: relative;
      z-index: 1;
    }

    .nav {
      position: sticky;
      top: 0.65rem;
      z-index: 30;
      margin-bottom: 1rem;
      padding: 0.75rem 0.85rem;
      border: 1px solid var(--border);
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(21, 31, 45, 0.97) 0%, rgba(16, 24, 35, 0.95) 100%);
      box-shadow: 0 12px 28px -20px var(--shadow);
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      align-items: center;
      justify-content: space-between;
      overflow: visible;
    }

    .nav::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(255, 138, 77, 0.18) 0%, rgba(255, 138, 77, 0.1) 10%, transparent 34%),
        repeating-linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.05) 0,
          rgba(255, 255, 255, 0.05) 6px,
          transparent 7px,
          transparent 15px
        );
      mask-image: linear-gradient(90deg, black 0%, rgba(0, 0, 0, 0.8) 16%, transparent 44%);
      opacity: 0.36;
      pointer-events: none;
    }

    .nav-panel {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      position: relative;
      z-index: 1;
    }

    .links {
      display: flex;
      gap: 0.45rem;
      flex-wrap: wrap;
    }

    .nav-link {
      color: var(--text);
      text-decoration: none;
      border: 1px solid transparent;
      border-radius: 9px;
      padding: 0.42rem 0.62rem;
      font-size: 0.95rem;
      letter-spacing: 0.02em;
    }

    .nav-link.is-active {
      border-color: rgba(72, 168, 255, 0.34);
      background: rgba(58, 164, 255, 0.12);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .nav-link:hover {
      border-color: var(--border);
      background: rgba(58, 164, 255, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }

    .brand {
      color: #eaf3ff;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      font-size: 0.78rem;
      font-family: Consolas, "Courier New", monospace;
      position: relative;
      padding-left: 0.92rem;
      text-shadow: 0 0 20px rgba(70, 153, 255, 0.18);
    }

    .brand::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      width: 0.52rem;
      height: 0.52rem;
      transform: translateY(-50%) rotate(45deg);
      border: 1px solid rgba(255, 145, 92, 0.68);
      background: rgba(255, 145, 92, 0.14);
      box-shadow: 14px 0 0 -5px rgba(78, 173, 255, 0.55);
    }

    .nav-search {
      position: relative;
      z-index: 12;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
      min-width: min(100%, 520px);
      flex: 1 1 420px;
      justify-content: flex-end;
    }

    .nav-search-field {
      position: relative;
      display: flex;
      align-items: stretch;
      gap: 0.5rem;
      min-width: min(100%, 420px);
      flex: 1 1 420px;
    }

    .nav-search input {
      width: 100%;
      padding-right: 2.7rem;
      background: rgba(13, 21, 31, 0.96);
    }

    .nav-search button {
      white-space: nowrap;
    }

    .nav-search-status {
      position: absolute;
      top: 50%;
      right: 5.2rem;
      transform: translateY(-50%);
      font-size: 0.74rem;
      color: var(--muted);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.18s ease;
    }

    .nav-search-status.is-visible {
      opacity: 1;
    }

    .nav-search-results {
      position: absolute;
      top: calc(100% + 0.5rem);
      left: 0;
      right: 0;
      z-index: 120;
      border: 1px solid #35506c;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(16, 25, 36, 0.99), rgba(10, 18, 28, 0.99));
      box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.72);
      padding: 0.45rem;
      display: none;
    }

    .nav-search-results.is-open {
      display: block;
    }

    .nav-search-group-title {
      padding: 0.28rem 0.52rem 0.2rem;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #9ab3cc;
      font-family: Consolas, "Courier New", monospace;
    }

    .nav-search-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
      width: 100%;
      border-radius: 10px;
      padding: 0.56rem 0.62rem;
      text-decoration: none;
      color: inherit;
      border: 1px solid transparent;
      transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    }

    .nav-search-option:hover,
    .nav-search-option.is-active {
      background: rgba(53, 124, 192, 0.14);
      border-color: rgba(86, 143, 201, 0.28);
      transform: translateY(-1px);
    }

    .nav-search-copy {
      min-width: 0;
    }

    .nav-search-title {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.95rem;
      color: #eef5ff;
    }

    .nav-search-subtitle {
      margin-top: 0.12rem;
      font-size: 0.78rem;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .nav-search-badge {
      flex: 0 0 auto;
      border-radius: 999px;
      border: 1px solid rgba(78, 126, 171, 0.45);
      background: rgba(17, 34, 51, 0.78);
      padding: 0.15rem 0.45rem;
      font-size: 0.72rem;
      color: #dcecff;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .nav-search-empty,
    .nav-search-footer {
      padding: 0.55rem 0.62rem;
      font-size: 0.82rem;
      color: var(--muted);
    }

    .live-wire {
      position: relative;
      z-index: 0;
      flex: 1 1 100%;
      border-top: 1px solid rgba(71, 97, 126, 0.42);
      margin-top: 0.08rem;
      padding-top: 0.3rem;
    }

    .live-wire-shell {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 0.36rem;
      align-items: center;
    }

    .live-wire-head {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      min-width: 0;
    }

    .live-wire-label {
      display: inline-flex;
      align-items: center;
      gap: 0.34rem;
      width: fit-content;
      border-radius: 999px;
      border: 1px solid rgba(78, 125, 170, 0.42);
      background: rgba(14, 24, 35, 0.84);
      padding: 0.18rem 0.45rem;
      font-size: 0.66rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #d9e8fb;
      font-family: Consolas, "Courier New", monospace;
    }

    .live-wire-label::before {
      content: "";
      width: 0.38rem;
      height: 0.38rem;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(71, 184, 255, 0.96), rgba(48, 217, 137, 0.72));
      box-shadow: 0 0 0 4px rgba(71, 184, 255, 0.09);
    }

    .live-wire-status {
      font-size: 0.68rem;
      color: var(--muted);
      line-height: 1.2;
      white-space: nowrap;
    }

    .live-wire-status[data-state="stale"] {
      color: #ffd39b;
    }

    .live-wire-rail-wrap {
      position: relative;
      min-width: 0;
      overflow: hidden;
    }

    .live-wire-rail {
      display: flex;
      gap: 0.36rem;
      min-width: 0;
      overflow: hidden;
      padding: 0.02rem 0;
      width: max-content;
      will-change: transform;
      transform: translate3d(0, 0, 0);
      backface-visibility: hidden;
    }

    .live-wire-item {
      position: relative;
      display: grid;
      grid-template-columns: auto auto minmax(168px, 1fr) auto;
      align-items: center;
      gap: 0.48rem;
      min-width: 0;
      flex: 0 0 auto;
      min-height: 38px;
      width: min(278px, calc(100vw - 3.1rem));
      padding: 0.28rem 0.5rem;
      border-radius: 11px;
      border: 1px solid rgba(55, 77, 101, 0.68);
      background: linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(10, 18, 28, 0.96));
      color: inherit;
      text-decoration: none;
      box-shadow: 0 18px 34px -32px rgba(0, 0, 0, 0.84);
      overflow: hidden;
      transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
      appearance: none;
      text-align: left;
      cursor: default;
    }

    .live-wire-item:hover,
    .live-wire-item:focus-visible {
      transform: translateY(-2px);
      border-color: rgba(106, 151, 202, 0.68);
      box-shadow: 0 22px 38px -30px rgba(14, 42, 68, 0.72);
      outline: none;
    }

    .live-wire-item::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 3px;
      background: var(--feed-tone, rgba(71, 184, 255, 0.88));
    }

    .live-wire-item-code {
      position: relative;
      z-index: 1;
      width: 1.46rem;
      height: 1.46rem;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.07);
      background: rgba(255, 255, 255, 0.04);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.48rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
      color: #eef5ff;
    }

    .live-wire-item-graphic {
      width: 1.95rem;
      height: 1.2rem;
      opacity: 0.96;
    }

    .live-wire-item-graphic svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .live-wire-copy {
      min-width: 0;
      display: flex;
      align-items: baseline;
      gap: 0.26rem;
      overflow: hidden;
    }

    .live-wire-title {
      font-size: 0.76rem;
      line-height: 1.15;
      color: #eef5ff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 0 1 auto;
    }

    .live-wire-divider {
      flex: 0 0 auto;
      font-size: 0.6rem;
      color: rgba(180, 201, 226, 0.42);
      transform: translateY(-0.02rem);
    }

    .live-wire-meta {
      font-size: 0.64rem;
      line-height: 1.15;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1 1 auto;
    }

    .live-wire-age {
      align-self: start;
      border-radius: 999px;
      border: 1px solid rgba(86, 119, 151, 0.44);
      background: rgba(14, 24, 35, 0.74);
      padding: 0.08rem 0.28rem;
      font-size: 0.56rem;
      letter-spacing: 0.06em;
      color: #d7e8fb;
      font-family: Consolas, "Courier New", monospace;
      white-space: nowrap;
    }

    .live-wire-empty {
      padding: 0.5rem 0.7rem;
      min-height: 42px;
      border-radius: 12px;
      border: 1px dashed rgba(75, 101, 128, 0.62);
      background: rgba(12, 20, 31, 0.64);
      color: var(--muted);
      display: flex;
      align-items: center;
      font-size: 0.76rem;
    }

    .live-wire-tooltip {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 80;
      width: min(320px, calc(100vw - 1.4rem));
      padding: 0.82rem 0.9rem 0.88rem;
      border-radius: 16px;
      border: 1px solid rgba(88, 121, 156, 0.64);
      background: linear-gradient(180deg, rgba(15, 24, 36, 0.985), rgba(9, 16, 26, 0.985));
      box-shadow: 0 32px 56px -36px rgba(0, 0, 0, 0.92);
      pointer-events: none;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.16s ease, transform 0.16s ease;
    }

    .live-wire-tooltip.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .live-wire-tooltip-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0.6rem;
      align-items: start;
    }

    .live-wire-tooltip-title {
      font-size: 0.98rem;
      color: #f1f6ff;
    }

    .live-wire-tooltip-age {
      border-radius: 999px;
      border: 1px solid rgba(91, 125, 160, 0.42);
      padding: 0.16rem 0.42rem;
      font-size: 0.68rem;
      font-family: Consolas, "Courier New", monospace;
      color: #cfe4ff;
      white-space: nowrap;
    }

    .live-wire-tooltip-meta {
      margin-top: 0.18rem;
      font-size: 0.79rem;
      color: #a9bdd3;
      line-height: 1.45;
    }

    .live-wire-tooltip-graphic {
      margin-top: 0.72rem;
      height: 92px;
      border-radius: 14px;
      border: 1px solid rgba(67, 94, 122, 0.46);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
        linear-gradient(180deg, rgba(11, 18, 28, 0.94), rgba(7, 12, 20, 0.94));
      padding: 0.55rem;
    }

    .live-wire-tooltip-graphic svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .live-wire-tooltip-stats {
      margin-top: 0.72rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.48rem;
    }

    .live-wire-tooltip-stat {
      border-radius: 12px;
      border: 1px solid rgba(58, 82, 108, 0.56);
      background: rgba(255, 255, 255, 0.03);
      padding: 0.48rem 0.56rem;
      min-width: 0;
    }

    .live-wire-tooltip-stat span {
      display: block;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #8fa6bf;
      font-family: Consolas, "Courier New", monospace;
    }

    .live-wire-tooltip-stat strong {
      display: block;
      margin-top: 0.18rem;
      font-size: 0.92rem;
      color: #f1f6ff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .card {
      background: linear-gradient(180deg, rgba(24, 35, 50, 0.86) 0%, rgba(18, 28, 40, 0.9) 100%);
      border: 1px solid var(--border-soft);
      border-radius: 14px;
      padding: 0.95rem;
      box-shadow: 0 16px 34px -30px var(--shadow);
      transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
      position: relative;
      overflow: hidden;
    }

    .card:hover {
      transform: translateY(-2px);
      border-color: #365171;
      box-shadow: 0 18px 34px -28px rgba(20, 53, 78, 0.52);
    }

    .card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(120, 170, 220, 0.45) 50%, transparent 100%);
      pointer-events: none;
    }

    .card::after {
      content: "";
      position: absolute;
      inset: auto 0 0 auto;
      width: 120px;
      height: 120px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 45%),
        repeating-linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.04) 0,
          rgba(255, 255, 255, 0.04) 6px,
          transparent 6px,
          transparent 12px
        );
      opacity: 0.14;
      pointer-events: none;
      mask-image: linear-gradient(135deg, transparent 0%, black 45%, black 100%);
    }

    .page-title {
      margin: 0 0 0.35rem;
      font-size: 1.55rem;
      letter-spacing: 0.02em;
    }

    .muted {
      color: var(--muted);
    }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.58rem;
      margin-top: 0.8rem;
    }

    .toolbar + .toolbar {
      margin-top: 0.5rem;
    }

    input,
    select,
    button {
      background: var(--panel-2);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 9px;
      padding: 0.46rem 0.6rem;
      font-size: 0.93rem;
      min-height: 34px;
    }

    button,
    .btn {
      cursor: pointer;
      border-color: rgba(48, 217, 137, 0.5);
      background:
        linear-gradient(180deg, rgba(255, 138, 77, 0.12) 0%, transparent 36%),
        linear-gradient(180deg, rgba(49, 147, 104, 0.32) 0%, rgba(23, 80, 56, 0.34) 100%);
      color: #def6ea;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.46rem 0.72rem;
      border-radius: 9px;
      font-size: 0.92rem;
    }

    button:hover,
    .btn:hover {
      filter: brightness(1.08);
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.19rem 0.56rem;
      font-size: 0.78rem;
      color: var(--muted);
      background: rgba(31, 43, 58, 0.84);
    }

    .chip strong {
      color: var(--text);
      font-weight: 700;
    }

    .section-kicker {
      margin-bottom: 0.42rem;
      font-size: 0.74rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #ffbf88;
      font-family: Consolas, "Courier New", monospace;
    }

    .hint {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      border: 1px solid #4a6079;
      color: #b7c7d8;
      font-size: 0.71rem;
      cursor: help;
      margin-left: 0.3rem;
    }

    .hint::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      transform: translateX(-50%);
      width: 230px;
      background: #0e1824;
      border: 1px solid #35506e;
      color: #dce9f4;
      border-radius: 9px;
      padding: 0.44rem 0.5rem;
      line-height: 1.3;
      font-size: 0.74rem;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.16s ease;
      z-index: 60;
      text-align: left;
      box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.65);
    }

    .hint:hover::after,
    .hint:focus-visible::after {
      opacity: 1;
      visibility: visible;
    }

    .grid {
      display: grid;
      gap: 0.85rem;
      grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    }

    .grid-home {
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }

    .home-hero {
      margin-bottom: 0.9rem;
      padding: 1.08rem;
      background:
        radial-gradient(720px 280px at -2% -18%, rgba(255, 131, 71, 0.12), transparent 64%),
        radial-gradient(720px 320px at 100% -8%, rgba(58, 164, 255, 0.14), transparent 65%),
        linear-gradient(180deg, rgba(22, 33, 48, 0.94) 0%, rgba(15, 24, 36, 0.96) 100%);
    }

    .home-hero-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
      align-items: stretch;
      gap: 1rem;
    }

    .home-hero-copy-block {
      min-width: 0;
    }

    .home-hero-title {
      font-size: 1.8rem;
      letter-spacing: 0.03em;
    }

    .home-hero-copy {
      margin: 0;
      max-width: 760px;
      line-height: 1.46;
    }

    .home-hero-chips {
      display: flex;
      gap: 0.45rem;
      flex-wrap: wrap;
      justify-content: flex-start;
      margin-top: 0.72rem;
    }

    .home-upcoming-races {
      margin-top: 0.88rem;
      border: 1px solid rgba(73, 103, 138, 0.54);
      border-radius: 18px;
      padding: 0.88rem 0.94rem 0.82rem;
      background:
        radial-gradient(420px 180px at 0% 0%, rgba(255, 126, 76, 0.13), transparent 74%),
        radial-gradient(420px 180px at 100% 100%, rgba(73, 179, 255, 0.14), transparent 76%),
        linear-gradient(180deg, rgba(13, 23, 34, 0.96), rgba(10, 18, 27, 0.98));
      min-width: 0;
      position: relative;
      overflow: hidden;
    }

    .home-upcoming-races::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(90deg, transparent, rgba(73, 179, 255, 0.07), transparent);
      pointer-events: none;
    }

    .home-upcoming-races-head,
    .home-upcoming-races-body,
    .home-upcoming-races-dots,
    .home-upcoming-races-strip {
      position: relative;
      z-index: 1;
    }

    .home-upcoming-races-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .home-upcoming-races-title {
      margin: 0.14rem 0 0;
      font-size: 1.16rem;
      letter-spacing: 0.02em;
    }

    .home-upcoming-races-copy {
      margin: 0.34rem 0 0;
      color: #bccadc;
      font-size: 0.84rem;
      line-height: 1.44;
      max-width: 640px;
    }

    .home-upcoming-races-controls {
      display: flex;
      gap: 0.45rem;
      flex: 0 0 auto;
    }

    .home-upcoming-race-nav {
      width: 38px;
      height: 38px;
      border-radius: 999px;
      border: 1px solid rgba(87, 121, 159, 0.56);
      background: rgba(11, 20, 31, 0.82);
      color: #e8f2ff;
      font-size: 1rem;
      cursor: pointer;
      transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }

    .home-upcoming-race-nav:hover,
    .home-upcoming-race-nav:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(110, 163, 214, 0.88);
      background: rgba(16, 30, 46, 0.96);
    }

    .home-upcoming-races-strip {
      margin-top: 0.72rem;
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
    }

    .home-upcoming-race-pill {
      border-radius: 999px;
      border: 1px solid rgba(82, 115, 150, 0.44);
      background: rgba(9, 17, 25, 0.54);
      padding: 0.2rem 0.54rem;
      font-size: 0.72rem;
      color: #dbe8f5;
      letter-spacing: 0.04em;
    }

    .home-upcoming-races-body {
      margin-top: 0.82rem;
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) 184px;
      gap: 0.84rem;
      align-items: stretch;
    }

    .home-upcoming-race-main {
      min-width: 0;
    }

    .home-upcoming-race-location {
      color: #f1f6ff;
      font-size: 1.02rem;
      line-height: 1.35;
    }

    .home-upcoming-race-detail {
      margin-top: 0.44rem;
      color: #afc0d5;
      font-size: 0.84rem;
      line-height: 1.5;
      max-width: 660px;
    }

    .home-upcoming-race-mini-grid {
      margin-top: 0.68rem;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.52rem;
    }

    .home-upcoming-race-mini-grid div {
      border: 1px solid rgba(68, 92, 118, 0.48);
      border-radius: 12px;
      background: rgba(9, 17, 26, 0.52);
      padding: 0.48rem 0.56rem;
      min-width: 0;
    }

    .home-upcoming-race-mini-grid span {
      display: block;
      font-size: 0.66rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #8ea4bc;
    }

    .home-upcoming-race-mini-grid strong {
      display: block;
      margin-top: 0.22rem;
      font-size: 0.84rem;
      color: #eef5ff;
      line-height: 1.34;
    }

    .home-upcoming-race-visual {
      border-radius: 16px;
      border: 1px solid rgba(66, 93, 121, 0.46);
      background:
        linear-gradient(180deg, rgba(10, 18, 29, 0.74), rgba(8, 13, 21, 0.92)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 10px, transparent 10px, transparent 20px);
      position: relative;
      min-height: 138px;
      width: 100%;
      max-width: 220px;
      justify-self: end;
      overflow: hidden;
      padding: 0.62rem 0.68rem 0.58rem;
      display: grid;
      grid-template-rows: auto 1fr auto;
    }

    .home-upcoming-race-visual-topline,
    .home-upcoming-race-visual-footer {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 0.45rem;
      min-width: 0;
    }

    .home-upcoming-race-visual-topline {
      grid-template-columns: 1fr;
      justify-items: start;
      gap: 0.34rem;
    }

    .home-upcoming-race-visual-code,
    .home-upcoming-race-visual-status {
      border-radius: 999px;
      border: 1px solid rgba(77, 110, 143, 0.46);
      background: rgba(11, 18, 27, 0.68);
      padding: 0.16rem 0.46rem;
      font-size: 0.66rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #dcecff;
      font-family: Consolas, "Courier New", monospace;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
    }

    .home-upcoming-race-visual-code {
      justify-self: start;
      max-width: 100%;
    }

    .home-upcoming-race-visual-status {
      justify-self: stretch;
      width: 100%;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.14rem 0.34rem;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      line-height: 1.24;
      text-align: center;
    }

    .home-upcoming-race-svg {
      width: 100%;
      height: auto;
      aspect-ratio: 220 / 138;
      align-self: center;
      overflow: visible;
      filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    }

    .home-upcoming-race-svg-grid {
      fill: none;
      stroke: rgba(96, 122, 149, 0.24);
      stroke-width: 1;
    }

    .home-upcoming-race-svg-grid.faint {
      stroke: rgba(96, 122, 149, 0.14);
      stroke-dasharray: 4 5;
    }

    .home-upcoming-race-svg-route {
      fill: none;
      stroke: rgba(255, 255, 255, 0.12);
      stroke-width: 11;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .home-upcoming-race-svg-route-glow {
      fill: none;
      stroke: url(#race-radar-line);
      stroke-width: 3.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .home-upcoming-race-svg-nodes circle {
      fill: rgba(18, 27, 40, 0.92);
      stroke: rgba(120, 148, 179, 0.66);
      stroke-width: 2;
      transition: fill 0.18s ease, stroke 0.18s ease, r 0.18s ease;
    }

    .home-upcoming-race-svg-nodes circle.is-active {
      fill: #ff9265;
      stroke: #fff1de;
      r: 6.5;
      filter: drop-shadow(0 0 10px rgba(255, 146, 101, 0.42));
    }

    .home-upcoming-race-svg-flag {
      fill: none;
      stroke: rgba(214, 230, 247, 0.84);
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .home-upcoming-race-visual-footer span {
      color: #96abc2;
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .home-upcoming-race-visual-footer strong {
      color: #eef5ff;
      font-size: 0.8rem;
      letter-spacing: 0.04em;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: right;
    }

    .home-upcoming-races-dots {
      margin-top: 0.76rem;
      display: flex;
      gap: 0.38rem;
      flex-wrap: wrap;
    }

    .home-upcoming-race-dot {
      border: 1px solid rgba(75, 106, 137, 0.48);
      background: rgba(10, 16, 25, 0.62);
      color: #bfd2e6;
      border-radius: 999px;
      min-width: 30px;
      height: 30px;
      padding: 0 0.56rem;
      font-size: 0.72rem;
      cursor: pointer;
      transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
    }

    .home-upcoming-race-dot.is-active,
    .home-upcoming-race-dot:hover,
    .home-upcoming-race-dot:focus-visible {
      border-color: rgba(110, 163, 214, 0.88);
      background: rgba(15, 28, 42, 0.96);
      color: #f2f7ff;
      transform: translateY(-1px);
    }

    .home-upcoming-race-hover-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.58rem;
    }

    .home-upcoming-race-hover-copy {
      border: 1px solid rgba(67, 92, 118, 0.42);
      border-radius: 12px;
      background: rgba(7, 14, 22, 0.56);
      padding: 0.52rem 0.58rem;
      min-width: 0;
    }

    .home-upcoming-race-hover-copy span {
      display: block;
      font-size: 0.66rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #91a6bd;
    }

    .home-upcoming-race-hover-copy strong {
      display: block;
      margin-top: 0.22rem;
      color: #eef5ff;
      font-size: 0.82rem;
      line-height: 1.38;
    }

    .home-upcoming-race-link {
      display: inline-flex;
      align-items: center;
      margin-top: 0.68rem;
      color: #8fd4ff;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      text-decoration: none;
    }

    .home-upcoming-race-link:hover,
    .home-upcoming-race-link:focus-visible {
      color: #cdefff;
    }

    .home-contract-card {
      border: 1px solid rgba(77, 108, 144, 0.58);
      border-radius: 16px;
      padding: 0.92rem;
      background:
        radial-gradient(220px 120px at 100% 0%, rgba(73, 179, 255, 0.14), transparent 74%),
        linear-gradient(180deg, rgba(17, 27, 40, 0.96) 0%, rgba(11, 18, 29, 0.98) 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
      min-width: 0;
    }

    .home-contract-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.7rem;
    }

    .home-contract-title {
      margin: 0.12rem 0 0;
      font-size: 1.08rem;
      letter-spacing: 0.02em;
    }

    .home-contract-copy {
      margin: 0.32rem 0 0;
      color: var(--muted);
      font-size: 0.84rem;
      line-height: 1.44;
    }

    .home-contract-date {
      flex: 0 0 auto;
      border-radius: 999px;
      border: 1px solid rgba(80, 122, 170, 0.5);
      background: rgba(18, 31, 45, 0.8);
      padding: 0.22rem 0.52rem;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #d8e9fc;
      font-family: Consolas, "Courier New", monospace;
    }

    .home-contract-meter {
      margin-top: 0.82rem;
    }

    .home-contract-meter-track {
      height: 9px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.07);
      overflow: hidden;
      position: relative;
    }

    .home-contract-meter-track span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(73, 224, 162, 0.96), rgba(73, 179, 255, 0.9));
      box-shadow: 0 0 18px rgba(73, 179, 255, 0.18);
    }

    .home-contract-meter-meta {
      margin-top: 0.36rem;
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      font-size: 0.72rem;
      color: var(--muted);
    }

    .home-contract-stats {
      margin-top: 0.8rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.54rem;
    }

    .home-contract-stat {
      border: 1px solid rgba(60, 84, 110, 0.54);
      border-radius: 12px;
      padding: 0.54rem 0.62rem;
      background: rgba(13, 22, 33, 0.68);
      min-width: 0;
    }

    .home-contract-stat span,
    .home-contract-stat small {
      display: block;
      color: var(--muted);
      font-size: 0.68rem;
      line-height: 1.3;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .home-contract-stat strong {
      display: block;
      margin-top: 0.18rem;
      font-size: 0.9rem;
      color: #eef5ff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .home-contract-rewards {
      margin-top: 0.78rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.42rem;
    }

    .home-contract-chip {
      border-radius: 999px;
      border: 1px solid rgba(80, 122, 170, 0.46);
      background: rgba(18, 31, 45, 0.76);
      padding: 0.24rem 0.56rem;
      font-size: 0.72rem;
      color: #dcecff;
      letter-spacing: 0.04em;
    }

    .home-story-grid {
      margin-top: 0.92rem;
      display: grid;
      gap: 0.82rem;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .home-intelligence-shell {
      margin-top: 0.9rem;
      padding: 1rem;
      background:
        radial-gradient(620px 220px at 100% -12%, rgba(73, 179, 255, 0.08), transparent 72%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.94) 0%, rgba(12, 20, 30, 0.98) 100%);
    }

    .home-intelligence-shell-alt {
      background:
        radial-gradient(620px 220px at 0% -14%, rgba(255, 179, 98, 0.09), transparent 72%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.94) 0%, rgba(12, 20, 30, 0.98) 100%);
    }

    .home-intelligence-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 0.8rem;
    }

    .home-intelligence-title {
      margin-bottom: 0.16rem;
      font-size: 1.26rem;
    }

    .home-intelligence-copy {
      margin: 0;
      max-width: 760px;
      line-height: 1.42;
    }

    .home-intelligence-summary-grid {
      margin-top: 0.82rem;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.62rem;
    }

    .home-intelligence-summary-card {
      min-width: 0;
      border-radius: 13px;
      border: 1px solid rgba(69, 97, 127, 0.56);
      background: rgba(11, 19, 29, 0.72);
      padding: 0.66rem 0.72rem;
    }

    .home-intelligence-summary-card span,
    .home-intelligence-summary-card small {
      display: block;
      color: var(--muted);
      line-height: 1.32;
    }

    .home-intelligence-summary-card span {
      font-size: 0.66rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .home-intelligence-summary-card strong {
      display: block;
      margin-top: 0.22rem;
      font-size: 1.02rem;
      color: #eef5ff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .home-intelligence-summary-card small {
      margin-top: 0.18rem;
      font-size: 0.73rem;
    }

    .home-intelligence-panel-grid {
      margin-top: 0.82rem;
      display: grid;
      gap: 0.72rem;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-intelligence-panel {
      min-width: 0;
      border: 1px solid rgba(72, 102, 134, 0.58);
      border-radius: 15px;
      padding: 0.86rem;
      background:
        radial-gradient(180px 90px at 100% 0%, color-mix(in srgb, var(--intel-accent) 15%, transparent), transparent 74%),
        linear-gradient(180deg, rgba(17, 26, 39, 0.96) 0%, rgba(11, 19, 28, 0.98) 100%);
      position: relative;
      overflow: hidden;
    }

    .home-intelligence-panel::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 3px;
      background: var(--intel-accent);
      opacity: 0.95;
    }

    .home-intelligence-panel-head .section-kicker {
      margin-bottom: 0.26rem;
      color: color-mix(in srgb, var(--intel-accent) 72%, #ffd6a5);
    }

    .home-intelligence-panel-head h3 {
      margin: 0;
      font-size: 1rem;
    }

    .home-intelligence-headline {
      margin-top: 0.48rem;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.62rem;
    }

    .home-intelligence-headline strong,
    .home-intelligence-headline span {
      min-width: 0;
    }

    .home-intelligence-headline strong {
      font-size: 1rem;
      color: #f3f7fd;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .home-intelligence-headline span {
      font-family: Consolas, "Courier New", monospace;
      font-size: 0.8rem;
      color: color-mix(in srgb, var(--intel-accent) 68%, #eff6ff);
      white-space: nowrap;
    }

    .home-intelligence-panel-copy {
      margin: 0.32rem 0 0;
      min-height: 2.4em;
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.38;
    }

    .home-intelligence-spark {
      margin-top: 0.6rem;
      height: 56px;
      border-radius: 12px;
      border: 1px solid rgba(63, 87, 113, 0.46);
      background: linear-gradient(180deg, rgba(9, 15, 23, 0.92), rgba(6, 11, 18, 0.96));
      padding: 0.32rem;
    }

    .home-intelligence-spark svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .home-intelligence-spark-area {
      fill: color-mix(in srgb, var(--intel-accent) 20%, transparent);
      opacity: 0.84;
    }

    .home-intelligence-spark-line {
      fill: none;
      stroke: var(--intel-accent);
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .home-intelligence-spark-line.secondary {
      stroke: rgba(238, 246, 255, 0.58);
      stroke-width: 1.6;
      opacity: 0.82;
    }

    .home-intelligence-mini-list {
      margin-top: 0.56rem;
      display: grid;
      gap: 0.38rem;
    }

    .home-intelligence-mini-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0.55rem;
      align-items: baseline;
      min-width: 0;
      font-size: 0.79rem;
    }

    .home-intelligence-mini-row a,
    .home-intelligence-detail-copy a {
      color: #eef5ff;
      text-decoration: none;
    }

    .home-intelligence-mini-row span:first-child,
    .home-intelligence-detail-copy span:first-child,
    .home-intelligence-detail-copy a {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .home-intelligence-mini-row strong {
      font-family: Consolas, "Courier New", monospace;
      font-size: 0.75rem;
      color: color-mix(in srgb, var(--intel-accent) 68%, #eff6ff);
      white-space: nowrap;
    }

    .home-intelligence-detail-list {
      margin-top: 0.7rem;
      display: grid;
      gap: 0.46rem;
    }

    .home-intelligence-detail-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 118px;
      gap: 0.72rem;
      align-items: center;
      min-width: 0;
    }

    .home-intelligence-detail-copy {
      min-width: 0;
    }

    .home-intelligence-detail-copy small {
      display: block;
      margin-top: 0.12rem;
      font-size: 0.69rem;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .home-intelligence-detail-value {
      min-width: 0;
      display: grid;
      gap: 0.2rem;
      justify-items: end;
    }

    .home-intelligence-detail-value strong {
      font-family: Consolas, "Courier New", monospace;
      font-size: 0.76rem;
      color: #eef5ff;
      white-space: nowrap;
    }

    .home-intelligence-detail-value span {
      display: block;
      width: 100%;
      height: 6px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--intel-accent), rgba(255, 255, 255, 0.18));
    }

    .home-intelligence-empty {
      color: var(--muted);
      font-size: 0.75rem;
    }

    .records-page-shell {
      margin-bottom: 0.95rem;
      background:
        radial-gradient(520px 220px at 100% 0%, rgba(255, 188, 96, 0.08), transparent 70%),
        linear-gradient(180deg, rgba(19, 29, 42, 0.94), rgba(11, 18, 27, 0.98));
    }

    .records-page-head {
      align-items: start;
    }

    .records-page-copy {
      max-width: 760px;
      margin: 0;
    }

    .records-page-toolbar {
      justify-content: flex-end;
    }

    .records-summary-grid {
      margin-top: 0.9rem;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.7rem;
    }

    .records-summary-card {
      border: 1px solid rgba(63, 88, 115, 0.7);
      border-radius: 14px;
      padding: 0.78rem 0.82rem;
      background: linear-gradient(180deg, rgba(12, 21, 32, 0.84), rgba(8, 15, 24, 0.9));
      min-width: 0;
    }

    .records-summary-card span,
    .records-summary-card small {
      display: block;
      min-width: 0;
    }

    .records-summary-card span {
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #9db3ca;
      font-family: Consolas, "Courier New", monospace;
    }

    .records-summary-card strong {
      display: block;
      margin-top: 0.34rem;
      font-size: clamp(1.34rem, 2vw, 1.88rem);
      color: #f1f6ff;
    }

    .records-summary-card small {
      margin-top: 0.28rem;
      font-size: 0.78rem;
      line-height: 1.42;
      color: #b0c0d1;
    }

    .records-feature-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.85rem;
      margin-bottom: 0.95rem;
    }

    .records-feature-card {
      border: 1px solid rgba(65, 92, 121, 0.72);
      border-radius: 18px;
      padding: 0.95rem 1rem;
      background:
        radial-gradient(320px 150px at 100% 0%, rgba(255, 255, 255, 0.05), transparent 72%),
        linear-gradient(180deg, rgba(16, 26, 38, 0.95), rgba(10, 18, 27, 0.98));
      min-width: 0;
      box-shadow: 0 18px 34px -30px rgba(0, 0, 0, 0.84);
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 168px;
      gap: 0.8rem;
      align-items: center;
    }

    .records-feature-card.tone-blue {
      --record-accent: #78c6ff;
      --record-soft: rgba(120, 198, 255, 0.16);
    }

    .records-feature-card.tone-amber {
      --record-accent: #ffbe73;
      --record-soft: rgba(255, 190, 115, 0.16);
    }

    .records-feature-card.tone-violet {
      --record-accent: #b9a4ff;
      --record-soft: rgba(185, 164, 255, 0.16);
    }

    .records-feature-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(220px 120px at 100% 0%, var(--record-soft, rgba(120, 198, 255, 0.14)), transparent 72%);
      opacity: 0.95;
    }

    .records-feature-copy,
    .records-feature-visual {
      position: relative;
      z-index: 1;
      min-width: 0;
    }

    .records-feature-card h2 {
      margin: 0.18rem 0 0;
      font-size: 1.08rem;
    }

    .records-feature-value {
      margin-top: 0.44rem;
      font-size: clamp(1.5rem, 2.4vw, 2rem);
      line-height: 1;
      color: #f3f8ff;
    }

    .records-feature-headline {
      margin-top: 0.3rem;
      color: var(--record-accent, #78c6ff);
      font-size: 0.88rem;
      font-family: Consolas, "Courier New", monospace;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .records-feature-card p {
      margin: 0.46rem 0 0;
      color: #b8c8da;
      font-size: 0.84rem;
      line-height: 1.44;
    }

    .records-feature-chips {
      margin-top: 0.62rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.36rem;
    }

    .records-feature-chips span {
      border: 1px solid rgba(77, 105, 135, 0.44);
      border-radius: 999px;
      padding: 0.16rem 0.48rem;
      background: rgba(10, 18, 28, 0.52);
      font-size: 0.7rem;
      color: #dce8f5;
      white-space: nowrap;
    }

    .records-feature-visual {
      min-height: 132px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .records-feature-visual svg {
      width: 100%;
      height: auto;
      overflow: visible;
      filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
    }

    .records-feature-gridline,
    .records-feature-ring,
    .records-feature-softline {
      fill: none;
      stroke: rgba(193, 210, 229, 0.18);
      stroke-width: 1.4;
    }

    .records-feature-gridline.faint {
      opacity: 0.65;
    }

    .records-feature-mainline,
    .records-feature-altline,
    .records-feature-crown,
    .records-feature-flag {
      fill: none;
      stroke: var(--record-accent, #78c6ff);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .records-feature-altline {
      stroke: rgba(255, 255, 255, 0.36);
      stroke-width: 2;
    }

    .records-feature-column {
      fill: rgba(255, 255, 255, 0.08);
      stroke: rgba(255, 255, 255, 0.06);
    }

    .records-feature-node,
    .records-feature-core {
      fill: var(--record-accent, #78c6ff);
      stroke: rgba(9, 16, 24, 0.92);
      stroke-width: 2;
    }

    .records-feature-core {
      filter: drop-shadow(0 0 12px rgba(120, 198, 255, 0.35));
    }

    .records-feature-peek-card:hover .card-peek-panel,
    .records-feature-peek-card:focus-visible .card-peek-panel,
    .records-feature-peek-card:focus-within .card-peek-panel {
      max-height: 300px;
    }

    .records-feature-detail-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.55rem;
    }

    .records-feature-detail {
      min-width: 0;
      border: 1px solid rgba(66, 93, 122, 0.56);
      border-radius: 12px;
      padding: 0.54rem 0.58rem;
      background: rgba(10, 18, 28, 0.48);
    }

    .records-feature-detail span {
      display: block;
      font-size: 0.66rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #94abc3;
      font-family: Consolas, "Courier New", monospace;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .records-feature-detail strong {
      display: block;
      margin-top: 0.2rem;
      color: #eef5ff;
      font-size: 0.82rem;
      overflow-wrap: anywhere;
    }

    .records-feature-link {
      display: inline-flex;
      margin-top: 0.72rem;
      align-items: center;
      gap: 0.36rem;
      color: #e9f4ff;
      font-size: 0.8rem;
      text-decoration: none;
    }

    .records-dashboard-shell {
      margin-bottom: 0.95rem;
    }

    .records-intelligence-panel {
      min-width: 0;
    }

    .records-intelligence-panel .home-intelligence-detail-row {
      grid-template-columns: minmax(0, 1fr) minmax(96px, 118px);
      align-items: start;
    }

    .records-intelligence-panel .home-intelligence-detail-copy span:first-child,
    .records-intelligence-panel .home-intelligence-detail-copy a,
    .records-intelligence-panel .home-intelligence-detail-copy small {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
    }

    .records-intelligence-panel .home-intelligence-detail-value {
      padding-top: 0.08rem;
    }

    .records-panel-stat-row {
      margin-top: 0.7rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.42rem;
    }

    .records-panel-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.32rem;
      border: 1px solid rgba(79, 106, 134, 0.5);
      border-radius: 999px;
      padding: 0.18rem 0.52rem;
      background: rgba(10, 18, 28, 0.56);
      color: #dce8f5;
      font-size: 0.72rem;
      white-space: nowrap;
    }

    .records-panel-chip strong {
      color: #f1f6ff;
      font-family: Consolas, "Courier New", monospace;
      font-size: 0.72rem;
    }

    .records-panel-note {
      margin: 0.58rem 0 0;
      color: #9fb3c9;
      font-size: 0.74rem;
      line-height: 1.42;
    }

    .home-story-card {
      --story-accent: var(--accent-2);
      --story-soft: rgba(58, 164, 255, 0.2);
      border: 1px solid rgba(74, 110, 145, 0.6);
      border-radius: 15px;
      padding: 0.88rem;
      background:
        linear-gradient(180deg, rgba(18, 28, 40, 0.92) 0%, rgba(12, 20, 30, 0.96) 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
      display: grid;
      grid-template-columns: minmax(0, 1fr) 170px;
      gap: 0.78rem;
      align-items: center;
      position: relative;
      overflow: hidden;
      transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
    }

    .peekable-card {
      transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
    }

    .peekable-card:hover,
    .peekable-card:focus-visible,
    .peekable-card:focus-within {
      transform: translateY(-3px);
      border-color: rgba(109, 153, 198, 0.72);
      box-shadow: 0 20px 34px -28px rgba(13, 38, 61, 0.58);
      outline: none;
    }

    .home-story-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(220px 120px at 100% 0%, var(--story-soft), transparent 70%);
      opacity: 0.95;
      pointer-events: none;
    }

    .home-story-card.tone-emerald {
      --story-accent: #49e0a2;
      --story-soft: rgba(73, 224, 162, 0.16);
    }

    .home-story-card.tone-blue {
      --story-accent: #69b7ff;
      --story-soft: rgba(105, 183, 255, 0.18);
    }

    .home-story-card.tone-amber {
      --story-accent: #ffb768;
      --story-soft: rgba(255, 183, 104, 0.16);
    }

    .home-story-card.tone-red {
      --story-accent: #ff7f6b;
      --story-soft: rgba(255, 127, 107, 0.16);
    }

    .home-story-card.tone-violet {
      --story-accent: #ad9dff;
      --story-soft: rgba(173, 157, 255, 0.16);
    }

    .home-story-card.tone-steel {
      --story-accent: #c4d0dd;
      --story-soft: rgba(196, 208, 221, 0.14);
    }

    .home-story-copy,
    .home-story-visual {
      position: relative;
      z-index: 1;
    }

    .home-story-eyebrow {
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--story-accent);
      font-family: Consolas, "Courier New", monospace;
    }

    .home-story-card h2 {
      margin: 0.24rem 0 0;
      font-size: 1.05rem;
      letter-spacing: 0.02em;
    }

    .home-story-value {
      margin-top: 0.45rem;
      font-size: 1.84rem;
      line-height: 1;
      color: #f3f8ff;
      text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
    }

    .home-story-card p {
      margin: 0.48rem 0 0;
      color: #b7c6d8;
      font-size: 0.87rem;
      line-height: 1.42;
    }

    .home-story-meta {
      margin-top: 0.62rem;
      display: flex;
      gap: 0.45rem;
      flex-wrap: wrap;
      font-size: 0.75rem;
      color: #d4dfeb;
    }

    .home-story-meta span {
      border: 1px solid rgba(74, 110, 145, 0.45);
      border-radius: 999px;
      padding: 0.18rem 0.5rem;
      background: rgba(9, 16, 24, 0.45);
    }

    .home-story-visual {
      min-height: 128px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .home-story-visual svg {
      width: 100%;
      height: auto;
      overflow: visible;
      filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
    }

    .card-peek-panel {
      grid-column: 1 / -1;
      margin-top: 0;
      padding-top: 0;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      transition: max-height 0.28s var(--ease-out), opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease, padding-top 0.22s ease;
      border-top: 1px solid rgba(66, 92, 120, 0);
    }

    .peekable-card:hover .card-peek-panel,
    .peekable-card:focus-visible .card-peek-panel,
    .peekable-card:focus-within .card-peek-panel {
      max-height: 180px;
      opacity: 1;
      transform: translateY(0);
      margin-top: 0.58rem;
      padding-top: 0.58rem;
      border-top-color: rgba(66, 92, 120, 0.56);
    }

    .safety-peek-card:hover .card-peek-panel,
    .safety-peek-card:focus-visible .card-peek-panel,
    .safety-peek-card:focus-within .card-peek-panel {
      max-height: 420px;
    }

    .money-peek-card:hover .card-peek-panel,
    .money-peek-card:focus-visible .card-peek-panel,
    .money-peek-card:focus-within .card-peek-panel {
      max-height: 560px;
    }

    .home-intelligence-peek-card:hover .card-peek-panel,
    .home-intelligence-peek-card:focus-visible .card-peek-panel,
    .home-intelligence-peek-card:focus-within .card-peek-panel {
      max-height: 760px;
    }

    .home-race-peek-card:hover .card-peek-panel,
    .home-race-peek-card:focus-visible .card-peek-panel,
    .home-race-peek-card:focus-within .card-peek-panel {
      max-height: 320px;
    }

    .money-peek-card > .muted.mono {
      margin-top: 0.18rem;
      font-size: clamp(0.68rem, 1.35vw, 0.78rem) !important;
      line-height: 1.34;
      white-space: normal;
      overflow-wrap: anywhere;
    }

    .card-peek-grid {
      display: grid;
      gap: 0.62rem;
      grid-template-columns: minmax(0, 1fr) minmax(150px, 0.82fr);
      align-items: center;
    }

    .card-peek-copy {
      min-width: 0;
    }

    .card-peek-label {
      display: block;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #8fa9c4;
      font-family: Consolas, "Courier New", monospace;
    }

    .card-peek-copy p {
      margin: 0.26rem 0 0;
      font-size: 0.77rem;
      color: #d7e3f1;
      line-height: 1.45;
    }

    .card-peek-chip-row {
      display: flex;
      gap: 0.38rem;
      flex-wrap: wrap;
      margin-top: 0.46rem;
    }

    .card-peek-chip {
      border-radius: 999px;
      border: 1px solid rgba(72, 100, 130, 0.58);
      background: rgba(10, 18, 28, 0.58);
      color: #dce8f5;
      font-size: 0.7rem;
      padding: 0.16rem 0.48rem;
      white-space: nowrap;
    }

    .card-peek-compare {
      display: grid;
      gap: 0.38rem;
    }

    .money-ledger-rows {
      margin-top: 0.52rem;
    }

    .money-ledger-spend {
      margin-top: 0.58rem;
    }

    .card-peek-compare-row {
      display: grid;
      gap: 0.22rem;
    }

    .card-peek-compare-head {
      display: flex;
      justify-content: space-between;
      gap: 0.5rem;
      font-size: 0.7rem;
      color: #d5e1ef;
    }

    .card-peek-meter {
      position: relative;
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(72, 95, 121, 0.42);
    }

    .card-peek-meter > span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(255,255,255,0.18), var(--peek-color, var(--accent-2)));
    }

    .card-peek-spark {
      min-height: 62px;
      border-radius: 12px;
      border: 1px solid rgba(62, 86, 110, 0.54);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
        rgba(9, 16, 24, 0.56);
      padding: 0.35rem 0.42rem;
    }

    .card-peek-spark svg {
      width: 100%;
      height: 62px;
      display: block;
    }

    .card-peek-spark-grid,
    .card-peek-spark-secondary {
      fill: none;
      stroke: rgba(184, 202, 220, 0.18);
      stroke-width: 1.1;
    }

    .card-peek-spark-area {
      fill: rgba(103, 184, 255, 0.12);
      stroke: none;
    }

    .card-peek-spark-line {
      fill: none;
      stroke: var(--peek-color, #67b8ff);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .card-peek-spark-line.secondary {
      stroke: var(--peek-color-2, rgba(255, 188, 96, 0.92));
      opacity: 0.9;
    }

    .story-grid,
    .story-arc-base,
    .story-ribbon-base,
    .story-ribbon-alt,
    .story-shield-outline,
    .story-slipstream-secondary,
    .story-grid-soft,
    .story-route-base,
    .story-orbit-ring,
    .story-crown-base,
    .story-skyline-grid,
    .story-chevron-base,
    .story-fan-spoke,
    .story-prism-outline,
    .story-beacon-ring,
    .story-constellation-link {
      fill: none;
      stroke: rgba(184, 202, 220, 0.18);
      stroke-width: 1.4;
    }

    .story-arc-main,
    .story-arc-secondary,
    .story-ribbon-main,
    .story-line,
    .story-drift,
    .story-needle,
    .story-shield-fill,
    .story-slipstream-main,
    .story-grid-main,
    .story-route-main,
    .story-orbit-main,
    .story-crown-main,
    .story-skyline-main,
    .story-chevron-main,
    .story-fan-arc,
    .story-prism-main,
    .story-wave-main,
    .story-beacon-main,
    .story-constellation-main {
      fill: none;
      stroke: var(--story-accent);
    }

    .story-arc-main,
    .story-ribbon-main,
    .story-drift,
    .story-slipstream-main,
    .story-route-main,
    .story-orbit-main,
    .story-crown-main,
    .story-skyline-main,
    .story-chevron-main,
    .story-fan-arc,
    .story-prism-main,
    .story-wave-main,
    .story-beacon-main,
    .story-constellation-main {
      stroke-width: 6;
      stroke-linecap: round;
    }

    .story-arc-secondary,
    .story-needle,
    .story-line,
    .story-shield-fill,
    .story-grid-main,
    .story-constellation-link {
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .story-line.faint {
      opacity: 0.62;
    }

    .story-core,
    .story-node {
      fill: var(--story-accent);
      stroke: rgba(12, 20, 30, 0.88);
      stroke-width: 2;
    }

    .story-bar {
      fill: var(--story-accent);
      opacity: 0.82;
    }

    .story-column-faint,
    .story-fill-soft,
    .story-beam {
      fill: var(--story-accent);
      opacity: 0.14;
    }

    .story-fill-mid {
      fill: var(--story-accent);
      opacity: 0.22;
    }

    .story-fill-strong {
      fill: var(--story-accent);
      opacity: 0.34;
    }

    .story-outline-soft {
      fill: none;
      stroke: rgba(184, 202, 220, 0.18);
      stroke-width: 1.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .story-outline-main {
      fill: none;
      stroke: var(--story-accent);
      stroke-width: 5.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .story-outline-thin {
      fill: none;
      stroke: var(--story-accent);
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .story-shield-fill {
      opacity: 0.95;
    }

    .home-toolbar {
      margin-top: 0.95rem;
      padding-top: 0.92rem;
      border-top: 1px solid rgba(70, 98, 126, 0.44);
    }

    .home-board-shell {
      margin-bottom: 0.9rem;
      padding: 1.05rem;
      background:
        radial-gradient(580px 240px at 0% 0%, rgba(255, 138, 77, 0.08), transparent 68%),
        radial-gradient(680px 280px at 100% 0%, rgba(73, 179, 255, 0.12), transparent 68%),
        linear-gradient(180deg, rgba(19, 29, 42, 0.96), rgba(11, 19, 28, 0.98));
    }

    .home-board-shell .row-between {
      align-items: flex-start;
    }

    .home-board-title {
      margin-bottom: 0.18rem;
      font-size: 1.24rem;
    }

    .home-board-copy {
      margin: 0;
    }

    .telemetry-deck {
      margin-top: 0.9rem;
      width: 100%;
      position: relative;
      overflow: visible;
    }

    .telemetry-side::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 40%);
      opacity: 0.8;
    }

    .telemetry-side > * {
      position: relative;
      z-index: 1;
    }

    .telemetry-shell-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 1rem;
      align-items: end;
      padding: 0 0 1rem;
      border-bottom: 1px solid rgba(53, 76, 101, 0.68);
    }

    .telemetry-shell-copy {
      min-width: 0;
    }

    .telemetry-shell-title {
      margin: 0.12rem 0 0;
      font-size: 1.18rem;
      letter-spacing: 0.02em;
    }

    .telemetry-shell-text {
      margin: 0.32rem 0 0;
      max-width: 760px;
      line-height: 1.46;
    }

    .telemetry-stale-banner {
      margin-top: 0.72rem;
    }

    .telemetry-side {
      border: 1px solid rgba(54, 78, 104, 0.82);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(13, 21, 31, 0.92), rgba(9, 16, 24, 0.96));
      padding: 0.88rem;
      position: relative;
      overflow: hidden;
      align-self: stretch;
      min-width: 0;
    }

    .telemetry-tabs {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      padding: 0.22rem;
      border-radius: 999px;
      background: rgba(8, 14, 21, 0.75);
      border: 1px solid rgba(56, 79, 103, 0.82);
      justify-self: start;
      align-self: start;
    }

    .telemetry-tab {
      border: 0;
      border-radius: 999px;
      min-width: 58px;
      padding: 0.38rem 0.72rem;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: transparent;
      color: #b8c9db;
    }

    .telemetry-tab.is-active {
      color: #f0f6ff;
      background: linear-gradient(180deg, rgba(73, 179, 255, 0.26), rgba(38, 86, 128, 0.42));
      box-shadow: inset 0 0 0 1px rgba(113, 175, 229, 0.26);
    }

    .telemetry-window[hidden] {
      display: none;
    }

    .telemetry-window {
      margin-top: 1rem;
    }

    .telemetry-grid {
      margin-top: 0.92rem;
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.78fr);
      gap: 1rem;
      align-items: start;
    }

    .telemetry-main-column {
      min-width: 0;
    }

    .telemetry-summary-grid {
      display: grid;
      gap: 0.58rem;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      margin-top: 0.85rem;
    }

    .telemetry-summary-card {
      border: 1px solid rgba(46, 67, 90, 0.78);
      border-radius: 12px;
      background: rgba(10, 18, 28, 0.72);
      padding: 0.64rem 0.7rem;
    }

    .telemetry-summary-card .label {
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #8ea6c0;
      font-family: Consolas, "Courier New", monospace;
    }

    .telemetry-summary-card .value {
      margin-top: 0.24rem;
      font-size: 1.12rem;
      color: #edf5ff;
    }

    .telemetry-chart-card {
      margin-top: 0.82rem;
      border: 1px solid rgba(45, 68, 92, 0.82);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(12, 20, 30, 0.94), rgba(8, 15, 23, 0.98));
      padding: 0.88rem;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .telemetry-chart-legend {
      margin-top: 0.6rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
      gap: 0.46rem;
    }

    .telemetry-chart-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      min-width: 0;
      border: 1px solid rgba(46, 69, 92, 0.8);
      border-radius: 999px;
      padding: 0.2rem 0.48rem;
      font-size: 0.73rem;
      color: #d8e6f7;
      background: rgba(11, 18, 27, 0.75);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .telemetry-chart-legend-item span {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      flex: 0 0 auto;
    }

    .telemetry-chart {
      position: relative;
      margin-top: 0.68rem;
      min-height: 280px;
      border: 1px solid rgba(40, 60, 80, 0.82);
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(13, 22, 33, 0.96), rgba(9, 15, 23, 0.98));
      overflow: hidden;
    }

    .telemetry-chart svg {
      width: 100%;
      height: 280px;
      display: block;
    }

    .telemetry-chart-tooltip {
      position: absolute;
      min-width: 180px;
      max-width: min(260px, calc(100% - 1rem));
      border-radius: 12px;
      border: 1px solid rgba(75, 110, 145, 0.9);
      background: linear-gradient(180deg, rgba(18, 29, 42, 0.98), rgba(10, 18, 28, 0.99));
      box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.8);
      padding: 0.58rem 0.64rem;
      pointer-events: none;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.14s ease, transform 0.14s ease;
    }

    .telemetry-chart-tooltip.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .telemetry-chart-tooltip strong {
      display: block;
      color: #edf5ff;
      margin-bottom: 0.35rem;
    }

    .telemetry-chart-tooltip-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      font-size: 0.76rem;
      color: #d5e3f3;
    }

    .telemetry-chart-tooltip-row + .telemetry-chart-tooltip-row {
      margin-top: 0.2rem;
    }

    .telemetry-chart-tooltip-label {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      min-width: 0;
    }

    .telemetry-chart-tooltip-label span {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex: 0 0 auto;
    }

    .telemetry-lane-list {
      display: grid;
      gap: 0.56rem;
      margin-top: 0.8rem;
    }

    .telemetry-lane {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto auto auto;
      gap: 0.6rem;
      align-items: center;
      border: 1px solid rgba(43, 62, 83, 0.86);
      border-radius: 12px;
      background: rgba(10, 17, 26, 0.7);
      padding: 0.56rem 0.62rem;
    }

    .telemetry-lane-color {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
    }

    .telemetry-lane-name {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      min-width: 0;
    }

    .telemetry-lane-name strong {
      font-size: 0.92rem;
      color: #edf4fd;
    }

    .telemetry-lane-status {
      border-radius: 999px;
      padding: 0.12rem 0.4rem;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border: 1px solid rgba(65, 96, 124, 0.68);
      color: #d8e7f6;
    }

    .telemetry-lane-status.hot {
      border-color: rgba(255, 166, 102, 0.58);
      background: rgba(105, 50, 22, 0.34);
    }

    .telemetry-lane-status.warm {
      border-color: rgba(107, 172, 255, 0.5);
      background: rgba(30, 66, 98, 0.32);
    }

    .telemetry-lane-status.quiet {
      background: rgba(18, 30, 43, 0.32);
    }

    .telemetry-lane-metric {
      text-align: right;
      min-width: 62px;
    }

    .telemetry-lane-metric .metric-label {
      font-size: 0.66rem;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: #849ab2;
    }

    .telemetry-lane-metric .metric-value {
      margin-top: 0.14rem;
      font-size: 0.87rem;
      color: #eef4fd;
      font-family: Consolas, "Courier New", monospace;
    }

    .telemetry-lane-bar {
      margin-top: 0.35rem;
      grid-column: 2 / -1;
      height: 8px;
      border-radius: 999px;
      background: rgba(16, 27, 40, 0.94);
      overflow: hidden;
      border: 1px solid rgba(40, 58, 76, 0.85);
    }

    .telemetry-lane-bar > span {
      display: block;
      height: 100%;
      border-radius: 999px;
      min-width: 2px;
    }

    .telemetry-side-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.8rem;
    }

    .telemetry-side-copy {
      margin: 0.32rem 0 0;
      color: #a6b8cb;
      line-height: 1.44;
    }

    .server-card-stack {
      margin-top: 0.85rem;
      display: grid;
      gap: 0.62rem;
    }

    .server-spotlight-card {
      border: 1px solid rgba(46, 70, 94, 0.84);
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(14, 23, 35, 0.92), rgba(9, 17, 27, 0.96));
      overflow: hidden;
      transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    }

    .server-spotlight-card:hover,
    .server-spotlight-card:focus-within {
      transform: translateY(-2px);
      border-color: rgba(97, 155, 213, 0.54);
      background: linear-gradient(180deg, rgba(17, 28, 42, 0.95), rgba(10, 18, 28, 0.98));
    }

    .server-spotlight-card.is-open {
      border-color: rgba(106, 166, 226, 0.58);
      box-shadow: 0 20px 36px -30px rgba(34, 88, 140, 0.58);
    }

    .server-spotlight-toggle {
      width: 100%;
      text-align: left;
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0.72rem;
      color: inherit;
      display: block;
    }

    .server-spotlight-toggle:hover,
    .server-spotlight-toggle:focus-visible {
      filter: none;
    }

    .server-spotlight-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .server-spotlight-name {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      min-width: 0;
    }

    .server-spotlight-name strong {
      font-size: 0.96rem;
      color: #eef5ff;
    }

    .server-spotlight-share {
      font-size: 0.72rem;
      color: #cadcf0;
      border: 1px solid rgba(64, 92, 121, 0.72);
      border-radius: 999px;
      padding: 0.16rem 0.42rem;
      white-space: nowrap;
    }

    .server-spotlight-toggle-meta {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      flex: 0 0 auto;
    }

    .server-spotlight-chevron {
      width: 10px;
      height: 10px;
      border-right: 2px solid #8aa6c2;
      border-bottom: 2px solid #8aa6c2;
      transform: rotate(45deg) translateY(-1px);
      transition: transform 0.18s ease, border-color 0.18s ease;
    }

    .server-spotlight-card.is-open .server-spotlight-chevron {
      transform: rotate(225deg) translateY(-1px);
      border-color: #d9e9fb;
    }

    .server-spotlight-meta {
      margin-top: 0.52rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(118px, 1fr));
      gap: 0.45rem 0.6rem;
    }

    .server-spotlight-meta span {
      display: block;
      font-size: 0.75rem;
      color: #95abc2;
    }

    .server-spotlight-meta strong {
      display: block;
      margin-top: 0.12rem;
      font-size: 0.88rem;
      color: #edf4fd;
      font-family: Consolas, "Courier New", monospace;
    }

    .server-spotlight-panel {
      border-top: 1px solid rgba(53, 75, 98, 0.72);
      background: linear-gradient(180deg, rgba(8, 15, 24, 0.78), rgba(7, 12, 19, 0.9));
      padding: 0.78rem;
    }

    .server-spotlight-graph-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.8rem;
    }

    .server-spotlight-graph-title {
      margin: 0.12rem 0 0;
      font-size: 1rem;
      color: #eef5ff;
    }

    .server-spotlight-graph-notes {
      display: grid;
      gap: 0.2rem;
      text-align: right;
      color: #a4b8cc;
      font-size: 0.75rem;
      font-family: Consolas, "Courier New", monospace;
    }

    .server-spotlight-graph {
      margin-top: 0.7rem;
      min-height: 180px;
      border-radius: 12px;
      border: 1px solid rgba(42, 62, 84, 0.82);
      background: linear-gradient(180deg, rgba(12, 20, 30, 0.96), rgba(8, 15, 23, 0.98));
      overflow: hidden;
      position: relative;
      padding: 0.32rem;
    }

    .server-spotlight-graph svg {
      width: 100%;
      height: 172px;
      display: block;
    }

    .server-spotlight-panel-meta {
      margin-top: 0.7rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.5rem 0.7rem;
    }

    .server-spotlight-panel-meta span {
      display: block;
      color: #95abc2;
      font-size: 0.74rem;
    }

    .server-spotlight-panel-meta strong {
      display: block;
      margin-top: 0.12rem;
      color: #eef5ff;
      font-size: 0.88rem;
      font-family: Consolas, "Courier New", monospace;
    }

    .server-spotlight-empty {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #8ea4bc;
      font-size: 0.82rem;
    }

    .telemetry-empty {
      margin-top: 0.9rem;
      padding: 0.9rem;
      border: 1px dashed rgba(61, 88, 115, 0.82);
      border-radius: 14px;
      background: rgba(10, 18, 28, 0.42);
      color: var(--muted);
    }

    .stats-grid {
      display: grid;
      gap: 0.65rem;
      grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
      margin-top: 0.72rem;
    }

    .stat-card {
      border: 1px solid var(--border-soft);
      background: rgba(20, 31, 45, 0.88);
      border-radius: 11px;
      padding: 0.58rem 0.68rem;
    }

    .stat-label {
      font-size: 0.81rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 0.34rem;
    }

    .stat-value {
      margin-top: 0.2rem;
      font-size: 1rem;
      font-family: Consolas, "Courier New", monospace;
      color: #ebf4ff;
      line-height: 1.25;
    }

    .table-wrap {
      overflow-x: hidden;
      border-radius: 11px;
      border: 1px solid var(--border-soft);
      margin-top: 0.6rem;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.91rem;
      min-width: 0;
      table-layout: fixed;
      background: rgba(18, 28, 40, 0.88);
    }

    th,
    td {
      padding: 0.48rem 0.55rem;
      border-bottom: 1px solid var(--border-soft);
      text-align: left;
      vertical-align: middle;
      overflow-wrap: anywhere;
    }

    th {
      color: #bfd0e4;
      font-size: 0.79rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: rgba(25, 39, 56, 0.9);
      position: sticky;
      top: 0;
      z-index: 1;
    }

    th a {
      color: #d4e5f7;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.26rem;
    }

    th a:hover {
      color: #ffffff;
      text-decoration: none;
    }

    tr:hover td {
      background: rgba(58, 164, 255, 0.08);
    }

    tr:last-child td {
      border-bottom: none;
    }

    a {
      color: #94c9ff;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .mono {
      font-family: Consolas, "Courier New", monospace;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }

    .car-cell {
      display: flex;
      align-items: center;
      gap: 0.56rem;
      min-width: 0;
    }

    .car-label {
      min-width: 0;
    }

    .car-thumb-btn {
      border: 1px solid #2f435a;
      background: #0e1824;
      border-radius: 8px;
      padding: 0;
      width: 74px;
      height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(216, 236, 255, 0.05);
      transition: transform 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
      cursor: pointer;
      flex: 0 0 auto;
    }

    .car-thumb-btn:hover {
      transform: translateY(-1px);
      border-color: #4b6f95;
      filter: brightness(1.05);
    }

    .car-thumb-btn:focus-visible {
      outline: 2px solid #5ba8ef;
      outline-offset: 2px;
      border-color: #5ba8ef;
    }

    .car-thumb {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      background: #0c1622;
    }

    body.modal-open {
      overflow: hidden;
    }

    .car-image-modal {
      position: fixed;
      inset: 0;
      z-index: 140;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 0.9rem;
    }

    .car-image-modal.is-open {
      display: flex;
    }

    .car-image-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(5, 10, 16, 0.86);
      backdrop-filter: blur(3px);
    }

    .car-image-dialog {
      position: relative;
      z-index: 1;
      width: min(1120px, 96vw);
      border: 1px solid #3d5877;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(18, 29, 44, 0.98), rgba(11, 20, 30, 0.99));
      box-shadow: 0 30px 56px -34px rgba(0, 0, 0, 0.75);
      padding: 0.68rem;
    }

    .car-image-close {
      position: absolute;
      top: 0.44rem;
      right: 0.44rem;
      width: 30px;
      height: 30px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid #4b6280;
      background: rgba(11, 21, 34, 0.92);
      color: #d8e7f8;
      font-size: 1.02rem;
      line-height: 1;
      cursor: pointer;
    }

    .car-image-full {
      width: 100%;
      max-height: min(76vh, 720px);
      object-fit: contain;
      border-radius: 9px;
      border: 1px solid #2f4359;
      background: #08111a;
    }

    .car-image-caption {
      margin-top: 0.45rem;
      font-size: 0.84rem;
      color: #c8d8ea;
      text-align: center;
    }

    .row-between {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
      flex-wrap: wrap;
    }

    .progress {
      margin-top: 0.35rem;
      border: 1px solid #35516f;
      background: #0f1a27;
      height: 12px;
      border-radius: 999px;
      overflow: hidden;
      position: relative;
    }

    .progress > span {
      display: block;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(53, 143, 224, 0.86), rgba(48, 217, 137, 0.9));
      width: 0;
      min-width: 1px;
      transition: width 0.4s ease;
      position: relative;
    }

    .progress > span::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
      opacity: 0.18;
    }

    .search-group-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.82fr) minmax(280px, 0.82fr);
      gap: 0.95rem;
    }

    .search-shell {
      background:
        radial-gradient(520px 240px at 100% 0%, rgba(58, 164, 255, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(26, 38, 54, 0.94), rgba(17, 26, 37, 0.96));
    }

    .search-page-copy {
      margin: 0 0 0.9rem;
      max-width: 760px;
    }

    .search-page-form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      align-items: center;
    }

    .search-page-form select {
      min-width: 140px;
    }

    .search-page-form input {
      flex: 1 1 320px;
      min-width: 220px;
    }

    .search-results-card {
      min-height: 100%;
    }

    .search-result-list {
      display: grid;
      gap: 0.6rem;
      margin-top: 0.8rem;
    }

    .search-result-list.compact {
      gap: 0.5rem;
    }

    .search-result-card {
      display: block;
      border: 1px solid rgba(49, 70, 95, 0.72);
      border-radius: 12px;
      padding: 0.78rem 0.82rem;
      text-decoration: none;
      color: inherit;
      background: linear-gradient(180deg, rgba(17, 27, 39, 0.88), rgba(12, 21, 30, 0.92));
      transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
    }

    .search-result-card:hover {
      transform: translateY(-2px);
      border-color: rgba(79, 144, 203, 0.52);
      background: linear-gradient(180deg, rgba(20, 32, 46, 0.92), rgba(12, 21, 30, 0.96));
    }

    .search-result-card.kind-player {
      box-shadow: inset 2px 0 0 rgba(58, 164, 255, 0.45);
    }

    .search-result-card.kind-car {
      box-shadow: inset 2px 0 0 rgba(48, 217, 137, 0.42);
    }

    .search-result-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
    }

    .search-result-title {
      font-size: 1rem;
      color: #f2f7fe;
    }

    .search-result-badge {
      border: 1px solid rgba(67, 107, 145, 0.44);
      border-radius: 999px;
      padding: 0.14rem 0.48rem;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: #d2e3f8;
      background: rgba(12, 23, 36, 0.72);
      flex: 0 0 auto;
    }

    .search-result-subtitle {
      margin-top: 0.22rem;
      color: #d4e3f3;
      font-size: 0.85rem;
      line-height: 1.42;
    }

    .search-result-meta {
      margin-top: 0.3rem;
      color: var(--muted);
      font-size: 0.78rem;
    }

    .search-empty {
      margin-top: 0.8rem;
      padding: 0.85rem;
      border: 1px dashed rgba(65, 93, 124, 0.7);
      border-radius: 12px;
      background: rgba(12, 20, 29, 0.42);
      color: var(--muted);
    }

    .driver-compare-form {
      margin-top: 0.9rem;
      display: grid;
      gap: 0.82rem;
    }

    .driver-compare-picker-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: 0.8rem;
      align-items: start;
    }

    .driver-picker {
      position: relative;
      display: grid;
      gap: 0.36rem;
    }

    .driver-picker-label,
    .driver-dna-label {
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #8ea9c5;
      font-family: Consolas, "Courier New", monospace;
    }

    .driver-compare-vs {
      align-self: center;
      border-radius: 999px;
      border: 1px solid rgba(86, 126, 168, 0.42);
      padding: 0.38rem 0.72rem;
      color: #eef5ff;
      background: rgba(12, 21, 32, 0.82);
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }

    .driver-picker-results {
      position: absolute;
      top: calc(100% + 0.45rem);
      left: 0;
      right: 0;
      z-index: 6;
      display: none;
      border: 1px solid #35506c;
      border-radius: 14px;
      padding: 0.42rem;
      background: linear-gradient(180deg, rgba(16, 25, 36, 0.99), rgba(10, 18, 28, 0.99));
      box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.72);
    }

    .driver-picker-results.is-open {
      display: block;
    }

    .driver-picker-option {
      display: grid;
      gap: 0.14rem;
      width: 100%;
      text-align: left;
      border: 1px solid transparent;
      border-radius: 10px;
      padding: 0.54rem 0.6rem;
      background: transparent;
      color: inherit;
      cursor: pointer;
      transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    }

    .driver-picker-option:hover,
    .driver-picker-option.is-active {
      transform: translateY(-1px);
      background: rgba(53, 124, 192, 0.14);
      border-color: rgba(86, 143, 201, 0.28);
    }

    .driver-picker-option strong {
      color: #eef5ff;
      font-size: 0.92rem;
    }

    .driver-picker-option span {
      color: #9cb4cd;
      font-size: 0.78rem;
    }

    .driver-compare-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.58rem;
      align-items: center;
    }

    .driver-compare-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(240px, 0.74fr) minmax(0, 1fr);
      gap: 0.85rem;
      margin-bottom: 0.95rem;
    }

    .driver-compare-pilot,
    .driver-compare-spine,
    .driver-duel-group-card,
    .driver-track-battles-card,
    .driver-dna-card {
      background:
        linear-gradient(180deg, rgba(16, 26, 38, 0.95), rgba(10, 18, 27, 0.98)),
        radial-gradient(280px 120px at 100% 0%, rgba(255, 255, 255, 0.05), transparent 72%);
    }

    .driver-compare-pilot {
      padding: 1rem 1.05rem;
      border: 1px solid rgba(54, 78, 104, 0.74);
      border-radius: 18px;
      display: grid;
      gap: 0.68rem;
      min-width: 0;
    }

    .driver-compare-pilot.is-left {
      box-shadow: inset 3px 0 0 rgba(103, 184, 255, 0.56), 0 16px 28px -26px rgba(0, 0, 0, 0.84);
    }

    .driver-compare-pilot.is-right {
      box-shadow: inset -3px 0 0 rgba(255, 188, 96, 0.56), 0 16px 28px -26px rgba(0, 0, 0, 0.84);
    }

    .driver-compare-pilot-head {
      display: flex;
      justify-content: space-between;
      gap: 0.8rem;
      align-items: start;
    }

    .driver-compare-pilot-head h2 {
      margin: 0.14rem 0 0;
      font-size: 1.34rem;
    }

    .driver-compare-pilot-value {
      font-size: clamp(1.4rem, 2.2vw, 1.95rem);
      color: #eef5ff;
      letter-spacing: 0.02em;
    }

    .driver-compare-pilot-sub {
      color: #aec3d8;
      font-size: 0.86rem;
    }

    .driver-compare-chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .driver-compare-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 0.18rem 0.5rem;
      min-height: 1.9rem;
      border: 1px solid rgba(77, 105, 134, 0.46);
      background: rgba(10, 18, 28, 0.64);
      color: #dce8f5;
      font-size: 0.72rem;
      line-height: 1.2;
      text-align: center;
    }

    .driver-compare-spine {
      border: 1px solid rgba(54, 78, 104, 0.74);
      border-radius: 18px;
      padding: 1rem 1.05rem;
      display: grid;
      gap: 0.62rem;
      align-content: start;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 28px -26px rgba(0, 0, 0, 0.84);
    }

    .driver-compare-spine h2 {
      margin: 0.1rem 0 0;
      font-size: 1.24rem;
    }

    .driver-compare-spine-grid {
      display: grid;
      gap: 0.55rem;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .driver-compare-spine-grid div {
      border: 1px solid rgba(72, 100, 128, 0.42);
      border-radius: 12px;
      padding: 0.58rem 0.64rem;
      background: rgba(11, 18, 27, 0.58);
      min-width: 0;
    }

    .driver-compare-spine-grid span {
      display: block;
      color: #8ea8c3;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.09em;
    }

    .driver-compare-spine-grid strong {
      display: block;
      margin-top: 0.24rem;
      color: #eef5ff;
      font-size: 0.98rem;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .driver-duel-group-grid,
    .driver-compare-lower-grid {
      display: grid;
      gap: 0.85rem;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .driver-duel-group-card,
    .driver-track-battles-card,
    .driver-dna-card {
      border: 1px solid rgba(55, 79, 103, 0.74);
      border-radius: 18px;
      padding: 0.95rem 1rem;
      min-width: 0;
      box-shadow: 0 18px 30px -28px rgba(0, 0, 0, 0.86);
    }

    .driver-duel-grid,
    .driver-track-battle-list,
    .driver-dna-section {
      display: grid;
      gap: 0.62rem;
    }

    .driver-duel-card,
    .driver-track-battle {
      border: 1px solid rgba(72, 101, 131, 0.44);
      border-radius: 14px;
      padding: 0.72rem 0.78rem;
      background: rgba(10, 18, 28, 0.64);
      transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }

    .driver-duel-card:hover,
    .driver-track-battle:hover {
      transform: translateY(-2px);
      border-color: rgba(101, 146, 193, 0.5);
      box-shadow: 0 16px 28px -26px rgba(0, 0, 0, 0.88);
    }

    .driver-duel-card.winner-left,
    .driver-track-battle.winner-left {
      box-shadow: inset 2px 0 0 rgba(103, 184, 255, 0.56);
    }

    .driver-duel-card.winner-right,
    .driver-track-battle.winner-right {
      box-shadow: inset -2px 0 0 rgba(255, 188, 96, 0.56);
    }

    .driver-duel-card-head,
    .driver-track-battle-head {
      display: flex;
      justify-content: space-between;
      gap: 0.72rem;
      align-items: start;
    }

    .driver-duel-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 2.2rem;
      height: 2.2rem;
      border-radius: 12px;
      border: 1px solid rgba(77, 106, 138, 0.44);
      background: rgba(12, 21, 32, 0.7);
      color: #eef5ff;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
    }

    .driver-duel-values,
    .driver-track-battle-values {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: 0.72rem;
      align-items: center;
      margin-top: 0.6rem;
    }

    .driver-track-battle-values {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .driver-duel-value {
      color: #eef5ff;
      font-size: 1rem;
      font-weight: 600;
      min-width: 0;
    }

    .driver-duel-value.is-right {
      text-align: right;
    }

    .driver-duel-divider {
      width: 1px;
      height: 1.7rem;
      background: linear-gradient(180deg, transparent, rgba(138, 163, 190, 0.5), transparent);
    }

    .driver-duel-bars {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 0.5rem;
      margin-top: 0.62rem;
    }

    .driver-duel-bar {
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid rgba(72, 95, 121, 0.42);
      background: rgba(255, 255, 255, 0.08);
    }

    .driver-duel-bar.is-left span,
    .driver-duel-bar.is-right span {
      display: block;
      height: 100%;
    }

    .driver-duel-bar.is-left span {
      margin-left: auto;
      background: linear-gradient(90deg, rgba(255,255,255,0.14), #67b8ff);
    }

    .driver-duel-bar.is-right span {
      background: linear-gradient(90deg, rgba(255,255,255,0.14), #ffbc60);
    }

    .driver-duel-note {
      margin: 0.52rem 0 0;
      color: #b7cadf;
      font-size: 0.77rem;
      line-height: 1.42;
    }

    .driver-track-battle-head span,
    .driver-track-battle-values span,
    .driver-track-battle-values small {
      color: #9eb5cd;
      display: block;
    }

    .driver-track-battle-values strong {
      display: block;
      margin-top: 0.18rem;
      color: #eef5ff;
      font-size: 0.98rem;
    }

    .driver-compare-chart-card {
      min-width: 0;
    }

    .driver-dna-section + .driver-dna-section {
      margin-top: 0.9rem;
    }

    .progress-meta {
      margin-top: 0.26rem;
      font-size: 0.78rem;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      gap: 0.6rem;
      flex-wrap: wrap;
    }

    .chart-grid {
      display: grid;
      gap: 0.75rem;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .chart-card {
      border: 1px solid var(--border-soft);
      border-radius: 12px;
      background: rgba(16, 26, 37, 0.84);
      padding: 0.72rem;
    }

    .spark-bars {
      margin-top: 0.5rem;
      display: flex;
      align-items: flex-end;
      gap: 3px;
      height: 120px;
      border: 1px solid var(--border-soft);
      border-radius: 9px;
      padding: 0.34rem;
      background: rgba(8, 16, 24, 0.82);
    }

    .spark-bars span {
      flex: 1 1 0;
      border-radius: 3px 3px 0 0;
      min-width: 4px;
      background: linear-gradient(180deg, rgba(46, 154, 235, 0.95), rgba(39, 89, 160, 0.95));
      opacity: 0.86;
    }

    .spark-bars span.clean {
      background: linear-gradient(180deg, rgba(51, 214, 142, 0.95), rgba(30, 134, 90, 0.95));
    }

    .mix-bars {
      margin-top: 0.55rem;
      display: grid;
      gap: 0.42rem;
    }

    .mix-row {
      display: grid;
      gap: 0.28rem;
    }

    .mix-label {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 0.79rem;
      gap: 0.5rem;
    }

    .mix-bar {
      border: 1px solid var(--border-soft);
      border-radius: 999px;
      background: rgba(11, 18, 26, 0.8);
      overflow: hidden;
      height: 10px;
    }

    .mix-bar span {
      display: block;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(58, 164, 255, 0.9), rgba(84, 228, 177, 0.9));
      min-width: 2px;
    }

    .car-telemetry-shell {
      background:
        radial-gradient(760px 260px at 0% 0%, rgba(73, 179, 255, 0.12), transparent 68%),
        radial-gradient(640px 220px at 100% 0%, rgba(173, 157, 255, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(17, 27, 40, 0.96), rgba(11, 19, 28, 0.98));
    }

    .car-telemetry-summary-grid {
      margin-top: 0.82rem;
      display: grid;
      gap: 0.7rem;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }

    .car-telemetry-summary-card {
      border: 1px solid rgba(55, 79, 103, 0.74);
      border-radius: 14px;
      padding: 0.82rem 0.88rem;
      background:
        linear-gradient(180deg, rgba(16, 26, 38, 0.94), rgba(10, 18, 27, 0.98)),
        radial-gradient(220px 90px at 100% 0%, rgba(255, 255, 255, 0.06), transparent 74%);
      box-shadow: 0 16px 30px -28px rgba(0, 0, 0, 0.88);
    }

    .car-telemetry-summary-card .eyebrow {
      display: block;
      color: #8ea6c0;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .car-telemetry-summary-card strong {
      display: block;
      margin-top: 0.3rem;
      font-size: 1.22rem;
      color: #eef5ff;
      line-height: 1.1;
    }

    .car-telemetry-summary-card .detail,
    .car-telemetry-summary-card .delta {
      display: block;
      margin-top: 0.26rem;
      color: #b6cadf;
      font-size: 0.78rem;
      line-height: 1.4;
    }

    .car-telemetry-summary-card .delta {
      color: #dce8f5;
      font-family: Consolas, "Courier New", monospace;
      letter-spacing: 0.03em;
    }

    .car-telemetry-summary-card.tone-blue {
      box-shadow: inset 2px 0 0 rgba(103, 184, 255, 0.6), 0 16px 30px -28px rgba(0, 0, 0, 0.88);
    }

    .car-telemetry-summary-card.tone-emerald {
      box-shadow: inset 2px 0 0 rgba(73, 224, 162, 0.58), 0 16px 30px -28px rgba(0, 0, 0, 0.88);
    }

    .car-telemetry-summary-card.tone-gold {
      box-shadow: inset 2px 0 0 rgba(255, 188, 96, 0.58), 0 16px 30px -28px rgba(0, 0, 0, 0.88);
    }

    .car-telemetry-summary-card.tone-violet {
      box-shadow: inset 2px 0 0 rgba(173, 157, 255, 0.58), 0 16px 30px -28px rgba(0, 0, 0, 0.88);
    }

    .car-telemetry-chart-card {
      background:
        linear-gradient(180deg, rgba(16, 26, 37, 0.88), rgba(10, 18, 27, 0.94)),
        radial-gradient(360px 120px at 100% 0%, rgba(73, 179, 255, 0.06), transparent 72%);
    }

    .car-telemetry-chart-card.span-2 {
      grid-column: span 2;
    }

    .car-hour-grid {
      margin-top: 0.65rem;
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 0.42rem;
    }

    .car-hour-cell {
      border: 1px solid rgba(54, 76, 99, 0.78);
      border-radius: 12px;
      padding: 0.46rem 0.45rem 0.5rem;
      min-height: 58px;
      background:
        linear-gradient(180deg, rgba(12, 20, 30, 0.96), rgba(8, 15, 23, 0.98)),
        radial-gradient(120px 60px at 50% 0%, rgba(103, 184, 255, calc(0.08 + var(--intensity, 0) * 0.18)), transparent 74%);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

    .car-hour-cell span {
      display: block;
      color: #88a4c0;
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .car-hour-cell strong {
      display: block;
      margin-top: 0.38rem;
      color: #eef5ff;
      font-size: 0.95rem;
      line-height: 1;
    }

    .car-week-bars {
      margin-top: 0.72rem;
    }

    @keyframes xp-shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(170%); }
    }

    .pager {
      margin-top: 0.72rem;
      display: flex;
      gap: 0.42rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .pager .page-info {
      color: var(--muted);
      font-size: 0.84rem;
      margin-right: 0.25rem;
    }

    .pager a,
    .pager span {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.26rem 0.52rem;
      font-size: 0.83rem;
      color: var(--text);
      text-decoration: none;
      background: rgba(31, 43, 58, 0.82);
    }

    .pager .is-current {
      border-color: rgba(58, 164, 255, 0.62);
      background: rgba(58, 164, 255, 0.2);
    }

    .infinite-status {
      margin-top: 0.62rem;
      font-size: 0.83rem;
      color: var(--muted);
    }

    .infinite-sentinel {
      width: 100%;
      height: 4px;
    }

    .svg-chart {
      position: relative;
      margin-top: 0.55rem;
      width: 100%;
      min-height: 220px;
      border: 1px solid var(--border-soft);
      border-radius: 10px;
      background: linear-gradient(180deg, rgba(11, 18, 27, 0.9) 0%, rgba(16, 25, 36, 0.9) 100%);
      overflow: hidden;
    }

    .svg-chart svg {
      display: block;
      width: 100%;
      height: 100%;
    }

    .chart-gridline {
      stroke: rgba(143, 168, 196, 0.14);
      stroke-width: 1;
    }

    .chart-line {
      fill: none;
      stroke-width: 2.4;
      vector-effect: non-scaling-stroke;
    }

    .chart-area {
      stroke: none;
    }

    .chart-point {
      fill: #e7edf5;
      stroke-width: 1.2;
      r: 2.1;
      opacity: 0;
      transition: opacity 0.15s ease;
    }

    .svg-chart:hover .chart-point {
      opacity: 0.7;
    }

    .chart-tooltip {
      position: absolute;
      pointer-events: none;
      min-width: 150px;
      max-width: 280px;
      border: 1px solid #3d5673;
      border-radius: 9px;
      background: rgba(10, 18, 28, 0.96);
      color: #dce9f7;
      padding: 0.42rem 0.48rem;
      font-size: 0.76rem;
      line-height: 1.34;
      box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.7);
      opacity: 0;
      transform: translate(-50%, -120%);
      transition: opacity 0.12s ease;
      z-index: 7;
    }

    .chart-tooltip strong {
      display: block;
      color: #f1f7ff;
      margin-bottom: 0.16rem;
    }

    .chart-empty {
      color: var(--muted);
      text-align: center;
      padding-top: 1.1rem;
      font-size: 0.84rem;
    }

    .player-timeline-shell {
      background:
        radial-gradient(760px 240px at 0% 0%, rgba(73, 179, 255, 0.12), transparent 66%),
        radial-gradient(620px 220px at 100% 0%, rgba(73, 224, 162, 0.08), transparent 68%),
        linear-gradient(180deg, rgba(17, 27, 40, 0.96), rgba(11, 19, 28, 0.98));
    }

    .player-timeline-summary {
      margin-top: 0.85rem;
      display: grid;
      gap: 0.62rem;
      grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }

    .player-timeline-summary-card {
      border: 1px solid rgba(54, 78, 102, 0.72);
      border-radius: 12px;
      padding: 0.62rem 0.7rem;
      background: rgba(10, 17, 25, 0.52);
    }

    .player-timeline-summary-card span {
      display: block;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #8ea6c0;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-timeline-summary-card strong {
      display: block;
      margin-top: 0.26rem;
      font-size: 1rem;
      color: #eef5ff;
    }

    .player-week-timeline {
      position: relative;
      margin-top: 0.95rem;
      border: 1px solid rgba(52, 75, 99, 0.76);
      border-radius: 18px;
      padding: 0.95rem;
      background:
        linear-gradient(180deg, rgba(9, 16, 24, 0.84), rgba(8, 14, 21, 0.94)),
        radial-gradient(720px 260px at 50% -20%, rgba(104, 169, 255, 0.08), transparent 70%);
      overflow: hidden;
    }

    .player-week-timeline-empty {
      color: var(--muted);
      font-size: 0.9rem;
      padding: 0.8rem 0.2rem 0.25rem;
    }

    .player-week-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(150px, 1fr));
      gap: 0.75rem;
      align-items: stretch;
    }

    .player-week-day {
      position: relative;
      border: 1px solid rgba(49, 71, 93, 0.78);
      border-radius: 15px;
      padding: 0.7rem 0.72rem 0.76rem;
      background:
        linear-gradient(180deg, rgba(15, 24, 35, 0.94), rgba(10, 18, 27, 0.98)),
        radial-gradient(220px 120px at 100% 0%, rgba(73, 179, 255, 0.06), transparent 70%);
      min-height: 238px;
      overflow: hidden;
      transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    }

    .player-week-day.is-active,
    .player-week-day:hover {
      transform: translateY(-2px);
      border-color: rgba(94, 153, 211, 0.78);
      box-shadow: 0 18px 30px -26px rgba(0, 0, 0, 0.8);
    }

    .player-week-day.is-empty {
      opacity: 0.76;
    }

    .player-week-day-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.65rem;
    }

    .player-week-day-title strong {
      display: block;
      font-size: 0.96rem;
      color: #f2f7fe;
    }

    .player-week-day-title span {
      display: block;
      margin-top: 0.08rem;
      font-size: 0.74rem;
      color: #8ea6c0;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-week-day-kpi {
      text-align: right;
    }

    .player-week-day-kpi strong {
      display: block;
      font-size: 1.02rem;
      color: #eef5ff;
    }

    .player-week-day-kpi span {
      display: block;
      margin-top: 0.08rem;
      font-size: 0.73rem;
      color: #93aac2;
    }

    .player-week-dayline {
      width: 100%;
      height: 44px;
      margin-top: 0.62rem;
      display: block;
    }

    .player-week-spark-grid {
      stroke: rgba(143, 168, 196, 0.12);
      stroke-width: 1;
    }

    .player-week-spark-fill {
      fill: rgba(73, 179, 255, 0.14);
    }

    .player-week-spark-line {
      fill: none;
      stroke: #66b8ff;
      stroke-width: 2.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .player-week-session-band {
      position: relative;
      height: 18px;
      margin-top: 0.5rem;
      border-radius: 999px;
      background: rgba(14, 22, 31, 0.92);
      border: 1px solid rgba(48, 70, 92, 0.72);
      overflow: hidden;
    }

    .player-week-session-segment {
      position: absolute;
      top: 2px;
      bottom: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(73, 224, 162, 0.58), rgba(73, 179, 255, 0.76));
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    }

    .player-week-hour-ruler {
      margin-top: 0.52rem;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.22rem;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      color: #7088a2;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-week-hour-ruler span:last-child {
      text-align: right;
    }

    .player-week-lap-rail {
      position: relative;
      height: 88px;
      margin-top: 0.5rem;
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(12, 19, 28, 0.98), rgba(8, 15, 22, 0.98)),
        radial-gradient(240px 100px at 50% 0%, rgba(255, 183, 104, 0.08), transparent 76%);
      border: 1px solid rgba(46, 67, 88, 0.78);
      overflow: hidden;
    }

    .player-week-lap-rail::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(to right, rgba(143, 168, 196, 0.09) 1px, transparent 1px),
        linear-gradient(to top, rgba(143, 168, 196, 0.05) 1px, transparent 1px);
      background-size: 25% 100%, 100% 22px;
      pointer-events: none;
    }

    .player-week-event {
      position: absolute;
      transform: translate(-50%, -50%);
      border-radius: 999px;
      border: 1px solid rgba(5, 10, 16, 0.9);
      background: #66b8ff;
      box-shadow: 0 0 0 2px rgba(102, 184, 255, 0.14);
      cursor: pointer;
      transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
      padding: 0;
    }

    .player-week-event:hover,
    .player-week-event:focus-visible {
      transform: translate(-50%, -50%) scale(1.14);
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
      outline: none;
      z-index: 3;
    }

    .player-week-event.is-clean {
      background: #43de97;
    }

    .player-week-event.is-incident {
      background: #ff7f6b;
    }

    .player-week-event.is-invalid {
      background: #9cadc1;
    }

    .player-week-event.is-pb {
      background: #ffbc60;
      box-shadow: 0 0 0 2px rgba(255, 188, 96, 0.2), 0 0 16px rgba(255, 188, 96, 0.28);
    }

    .player-week-day-foot {
      margin-top: 0.62rem;
      display: grid;
      gap: 0.34rem;
    }

    .player-week-foot-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.65rem;
      font-size: 0.74rem;
      color: #c3d3e4;
    }

    .player-week-foot-row span:first-child {
      color: #85a0bc;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.68rem;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-week-footer-empty {
      margin-top: 0.86rem;
      color: #7f95ae;
      font-size: 0.82rem;
    }

    .player-timeline-tooltip {
      position: absolute;
      top: 0;
      left: 0;
      width: min(320px, calc(100vw - 48px));
      border: 1px solid rgba(69, 101, 136, 0.88);
      border-radius: 14px;
      background: rgba(8, 15, 23, 0.98);
      box-shadow: 0 28px 38px -28px rgba(0, 0, 0, 0.88);
      padding: 0.74rem 0.78rem;
      pointer-events: none;
      opacity: 0;
      transform: translate3d(0, 6px, 0);
      transition: opacity 0.14s ease, transform 0.14s ease;
      z-index: 10;
    }

    .player-timeline-tooltip.is-visible {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    .player-timeline-tooltip strong {
      display: block;
      font-size: 0.93rem;
      color: #eef6ff;
    }

    .player-timeline-tooltip-copy {
      margin-top: 0.22rem;
      color: #bcd0e3;
      font-size: 0.78rem;
      line-height: 1.4;
    }

    .player-timeline-tooltip-graphic {
      margin-top: 0.54rem;
      border: 1px solid rgba(48, 72, 95, 0.84);
      border-radius: 12px;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(13, 22, 32, 0.96), rgba(8, 14, 20, 0.98));
    }

    .player-timeline-tooltip-graphic svg {
      display: block;
      width: 100%;
      height: auto;
    }

    .player-timeline-tooltip-meta {
      margin-top: 0.56rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.45rem 0.65rem;
      font-size: 0.75rem;
    }

    .player-timeline-tooltip-meta span {
      display: block;
      color: #8da5bf;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.67rem;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-timeline-tooltip-meta strong {
      display: block;
      margin-top: 0.12rem;
      font-size: 0.82rem;
      color: #ebf4ff;
    }

    .player-timeline-tooltip-flags {
      margin-top: 0.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
    }

    .player-timeline-tooltip-flags span {
      border-radius: 999px;
      border: 1px solid rgba(66, 95, 123, 0.84);
      padding: 0.18rem 0.46rem;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #d6e4f3;
      background: rgba(14, 22, 31, 0.88);
      font-family: Consolas, "Courier New", monospace;
    }

    .player-timeline-tooltip-flags .flag-pb {
      border-color: rgba(255, 188, 96, 0.72);
      color: #ffd79e;
    }

    .player-timeline-tooltip-flags .flag-clean {
      border-color: rgba(73, 224, 162, 0.72);
      color: #9ef0cb;
    }

    .player-timeline-tooltip-flags .flag-incident {
      border-color: rgba(255, 127, 107, 0.72);
      color: #ffc0b6;
    }

    .player-week-tooltip-grid {
      stroke: rgba(143, 168, 196, 0.12);
      stroke-width: 1;
    }

    .player-week-tooltip-area {
      fill: rgba(73, 179, 255, 0.14);
    }

    .player-week-tooltip-line {
      fill: none;
      stroke: #66b8ff;
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .player-week-tooltip-session {
      fill: rgba(73, 224, 162, 0.6);
    }

    .player-week-tooltip-focus {
      stroke: rgba(255, 188, 96, 0.96);
      stroke-width: 2;
      stroke-dasharray: 4 4;
    }

    .player-week-tooltip-label {
      fill: #8ba5c0;
      font-size: 11px;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-week-board {
      margin-top: 0.95rem;
      display: grid;
      gap: 0.72rem;
    }

    .player-week-ruler,
    .player-week-row {
      display: grid;
      grid-template-columns: 118px minmax(0, 1fr);
      gap: 0.72rem;
      align-items: start;
    }

    .player-week-ruler-stamp {
      color: #7f97b1;
      font-size: 0.69rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
      padding-top: 0.18rem;
    }

    .player-week-ruler-scale {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0.3rem;
      color: #7790aa;
      font-size: 0.69rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
      padding: 0 0.2rem;
    }

    .player-week-ruler-scale span:last-child {
      text-align: right;
    }

    .player-week-stamp {
      border: 1px solid rgba(49, 71, 93, 0.74);
      border-radius: 14px;
      padding: 0.7rem 0.72rem;
      background: linear-gradient(180deg, rgba(15, 24, 35, 0.95), rgba(10, 18, 27, 0.98));
    }

    .player-week-stamp strong {
      display: block;
      font-size: 1rem;
      color: #eef6ff;
    }

    .player-week-stamp span {
      display: block;
      margin-top: 0.1rem;
      color: #8ea6c0;
      font-size: 0.73rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-week-stamp-metrics {
      margin-top: 0.58rem;
      display: grid;
      gap: 0.4rem;
    }

    .player-week-stamp-metrics div {
      display: flex;
      justify-content: space-between;
      gap: 0.45rem;
      font-size: 0.72rem;
      color: #c4d3e5;
    }

    .player-week-stamp-metrics div span {
      margin: 0;
      font-size: 0.66rem;
      letter-spacing: 0.08em;
      color: #7f97b1;
    }

    .player-week-panel {
      border: 1px solid rgba(49, 71, 93, 0.78);
      border-radius: 16px;
      padding: 0.78rem 0.85rem 0.72rem;
      background:
        linear-gradient(180deg, rgba(14, 22, 32, 0.96), rgba(9, 16, 24, 0.98)),
        radial-gradient(480px 180px at 100% 0%, rgba(73, 179, 255, 0.08), transparent 72%);
    }

    .player-week-panel.is-active {
      border-color: rgba(97, 156, 214, 0.82);
      box-shadow: 0 18px 34px -28px rgba(0, 0, 0, 0.82);
    }

    .player-week-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
      flex-wrap: wrap;
    }

    .player-week-panel-copy {
      color: #c6d7e8;
      font-size: 0.8rem;
    }

    .player-week-panel-copy strong {
      color: #eef5ff;
    }

    .player-week-panel-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .player-week-panel-tags span {
      border-radius: 999px;
      border: 1px solid rgba(63, 92, 122, 0.82);
      padding: 0.16rem 0.46rem;
      font-size: 0.67rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #d2e0ef;
      background: rgba(11, 18, 26, 0.76);
      font-family: Consolas, "Courier New", monospace;
    }

    .player-week-stage {
      position: relative;
      margin-top: 0.66rem;
      border: 1px solid rgba(46, 67, 88, 0.8);
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(10, 17, 25, 0.98), rgba(8, 14, 20, 0.98)),
        radial-gradient(340px 120px at 50% 0%, rgba(255, 188, 96, 0.08), transparent 76%);
      overflow: hidden;
    }

    .player-week-stage::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(to right, rgba(143, 168, 196, 0.11) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(143, 168, 196, 0.05) 1px, transparent 1px);
      background-size: 25% 100%, 100% 25%;
      pointer-events: none;
    }

    .player-week-stage-inner {
      position: relative;
      min-height: 142px;
      padding: 0.5rem 0.8rem 0.5rem 5.3rem;
    }

    .player-week-stage-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .player-week-stage-grid {
      stroke: rgba(143, 168, 196, 0.12);
      stroke-width: 1;
    }

    .player-week-stage-fill {
      fill: rgba(73, 179, 255, 0.12);
    }

    .player-week-stage-line {
      fill: none;
      stroke: #67b8ff;
      stroke-width: 2.35;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .player-week-stage-session {
      fill: rgba(73, 224, 162, 0.12);
      stroke: rgba(73, 224, 162, 0.22);
      stroke-width: 1;
    }

    .player-week-stage-labels {
      position: absolute;
      inset: 0 auto 0 0;
      width: 4.7rem;
      display: grid;
      grid-template-rows: repeat(4, 1fr);
      gap: 0;
      padding: 0.62rem 0 0.62rem 0.56rem;
      z-index: 2;
      pointer-events: none;
    }

    .player-week-stage-labels span {
      display: flex;
      align-items: center;
      color: #7f97b1;
      font-size: 0.64rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-week-stage-events {
      position: relative;
      display: grid;
      grid-template-rows: repeat(4, 1fr);
      min-height: 126px;
      z-index: 3;
    }

    .player-week-stage-lane {
      position: relative;
      border-top: 1px solid rgba(143, 168, 196, 0.06);
    }

    .player-week-stage-lane:first-child {
      border-top: 0;
    }

    .player-week-event-marker {
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%);
      min-width: 24px;
      height: 24px;
      border-radius: 999px;
      border: 1px solid rgba(8, 14, 20, 0.92);
      padding: 0 0.34rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #08131d;
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
      cursor: pointer;
      transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    }

    .player-week-event-marker:hover,
    .player-week-event-marker:focus-visible {
      transform: translate(-50%, -50%) scale(1.1);
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
      filter: brightness(1.06);
      outline: none;
      z-index: 4;
    }

    .player-week-event-marker.accent-blue {
      background: #69b7ff;
    }

    .player-week-event-marker.accent-green {
      background: #49e0a2;
    }

    .player-week-event-marker.accent-gold {
      background: #ffbc60;
    }

    .player-week-event-marker.accent-violet {
      background: #ad9dff;
      color: #131622;
    }

    .player-week-panel-foot {
      margin-top: 0.62rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.42rem;
    }

    .player-week-panel-foot span {
      border-radius: 999px;
      border: 1px solid rgba(60, 87, 113, 0.8);
      padding: 0.16rem 0.48rem;
      font-size: 0.7rem;
      color: #d3e1ef;
      background: rgba(11, 18, 26, 0.72);
    }

    .player-sector-atlas-shell {
      background:
        radial-gradient(620px 220px at 0% 0%, rgba(73, 179, 255, 0.12), transparent 68%),
        radial-gradient(540px 220px at 100% 0%, rgba(255, 188, 96, 0.1), transparent 72%),
        linear-gradient(180deg, rgba(16, 25, 37, 0.96), rgba(9, 16, 25, 0.98));
      border-color: rgba(62, 90, 118, 0.82);
      box-shadow: 0 18px 32px -28px rgba(0, 0, 0, 0.86);
    }

    .player-sector-summary-grid {
      margin-top: 0.82rem;
      display: grid;
      gap: 0.58rem;
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .player-sector-summary-card {
      border: 1px solid rgba(57, 83, 109, 0.72);
      border-radius: 14px;
      padding: 0.68rem 0.74rem;
      min-width: 0;
      background:
        linear-gradient(180deg, rgba(15, 25, 37, 0.92), rgba(9, 16, 25, 0.98)),
        radial-gradient(140px 80px at 100% 0%, rgba(255, 255, 255, 0.05), transparent 76%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .player-sector-summary-card span {
      display: block;
      color: #8fa8c2;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-summary-card strong {
      display: block;
      margin-top: 0.3rem;
      color: #eef5ff;
      font-size: 1.02rem;
      line-height: 1.1;
      overflow-wrap: anywhere;
    }

    .player-sector-atlas {
      margin-top: 0.86rem;
      display: grid;
      gap: 0.74rem;
    }

    .player-sector-rail {
      position: relative;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 0.42rem;
      align-items: center;
      min-width: 0;
    }

    .player-sector-rail::before,
    .player-sector-rail::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 30px;
      pointer-events: none;
      z-index: 1;
      opacity: 0;
      transition: opacity 0.18s ease;
    }

    .player-sector-rail::before {
      left: 2.2rem;
      background: linear-gradient(90deg, rgba(10, 17, 26, 0.98), rgba(10, 17, 26, 0));
    }

    .player-sector-rail::after {
      right: 2.2rem;
      background: linear-gradient(270deg, rgba(10, 17, 26, 0.98), rgba(10, 17, 26, 0));
    }

    .player-sector-rail.can-scroll-left::before,
    .player-sector-rail.can-scroll-right::after {
      opacity: 1;
    }

    .player-sector-rail-btn {
      width: 1.85rem;
      min-width: 1.85rem;
      height: 5.2rem;
      padding: 0;
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(16, 26, 38, 0.94), rgba(9, 16, 25, 0.98));
      border-color: rgba(63, 90, 117, 0.74);
      color: #d8e9fb;
      font-size: 1.08rem;
      line-height: 1;
    }

    .player-sector-rail-btn[disabled] {
      opacity: 0.35;
      cursor: default;
      filter: none;
    }

    .player-sector-grid {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(152px, 164px);
      gap: 0.56rem;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-behavior: smooth;
      scrollbar-width: none;
      padding: 0.06rem 0.12rem 0.18rem;
    }

    .player-sector-grid::-webkit-scrollbar {
      display: none;
    }

    .player-sector-card {
      width: 100%;
      text-align: left;
      border: 1px solid rgba(56, 83, 108, 0.76);
      border-radius: 15px;
      min-height: 5.1rem;
      padding: 0.6rem 0.64rem;
      display: grid;
      gap: 0.34rem;
      min-width: 0;
      background:
        linear-gradient(180deg, rgba(14, 23, 34, 0.94), rgba(9, 16, 25, 0.98)),
        radial-gradient(180px 90px at 100% 0%, rgba(103, 184, 255, 0.08), transparent 72%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
      transition:
        transform 0.22s var(--ease-out),
        border-color 0.22s var(--ease-out),
        box-shadow 0.22s var(--ease-out),
        background-color 0.22s var(--ease-out);
    }

    .player-sector-card:hover,
    .player-sector-card:focus-visible,
    .player-sector-card.is-active {
      transform: translateY(-2px);
      border-color: rgba(103, 184, 255, 0.58);
      box-shadow:
        inset 2px 0 0 rgba(103, 184, 255, 0.58),
        0 18px 30px -28px rgba(0, 0, 0, 0.88);
      outline: none;
    }

    .player-sector-card-head {
      display: flex;
      justify-content: space-between;
      gap: 0.68rem;
      align-items: start;
    }

    .player-sector-card-name {
      color: #eef5ff;
      font-size: 0.82rem;
      font-weight: 600;
      line-height: 1.15;
      letter-spacing: 0.01em;
      overflow-wrap: anywhere;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }

    .player-sector-confidence {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 0.14rem 0.4rem;
      border: 1px solid rgba(91, 124, 161, 0.44);
      background: rgba(12, 21, 31, 0.76);
      color: #dce8f5;
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
      white-space: nowrap;
    }

    .player-sector-confidence.verified {
      border-color: rgba(73, 224, 162, 0.44);
      color: #aef0cf;
    }

    .player-sector-confidence.stable {
      border-color: rgba(255, 188, 96, 0.44);
      color: #ffd49b;
    }

    .player-sector-confidence.provisional {
      border-color: rgba(255, 127, 107, 0.44);
      color: #ffc0b4;
    }

    .player-sector-card-core {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.56rem;
      min-width: 0;
    }

    .player-sector-card-core strong {
      color: #eef5ff;
      font-size: 0.96rem;
      line-height: 1;
      letter-spacing: 0.02em;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-card-core span {
      color: #b3c6da;
      font-size: 0.7rem;
      line-height: 1.15;
      text-align: right;
      font-family: Consolas, "Courier New", monospace;
      overflow-wrap: anywhere;
    }

    .player-sector-card-bar {
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid rgba(63, 87, 114, 0.54);
      background: rgba(255, 255, 255, 0.07);
    }

    .player-sector-card-bar span {
      display: block;
      height: 100%;
      border-radius: inherit;
      min-width: 2px;
      background: linear-gradient(90deg, rgba(255,255,255,0.12), #67b8ff);
    }

    .player-sector-card-tags {
      display: flex;
      justify-content: space-between;
      gap: 0.44rem;
      flex-wrap: wrap;
    }

    .player-sector-card-tags span {
      color: #8ea8c3;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
      overflow-wrap: anywhere;
    }

    .player-sector-card-meta {
      display: flex;
      justify-content: space-between;
      gap: 0.6rem;
      flex-wrap: wrap;
      color: #9cb4cc;
      font-size: 0.76rem;
      line-height: 1.35;
    }

    .player-sector-card-meta span {
      overflow-wrap: anywhere;
    }

    .player-sector-card-meta span:last-child {
      color: #eef5ff;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-spotlight {
      border: 1px solid rgba(60, 88, 116, 0.82);
      border-radius: 18px;
      padding: 0.88rem 0.94rem;
      min-width: 0;
      background:
        linear-gradient(180deg, rgba(13, 22, 33, 0.96), rgba(8, 15, 23, 0.98)),
        radial-gradient(360px 160px at 100% 0%, rgba(103, 184, 255, 0.08), transparent 72%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 34px -30px rgba(0, 0, 0, 0.88);
    }

    .player-sector-spotlight-empty {
      color: #b4c5d7;
      font-size: 0.86rem;
      line-height: 1.46;
    }

    .player-sector-spotlight-top {
      display: grid;
      gap: 0.9rem;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
    }

    .player-sector-spotlight-copy h3 {
      margin: 0.12rem 0 0.2rem;
      font-size: 1.26rem;
      letter-spacing: 0.02em;
    }

    .player-sector-spotlight-copy p {
      margin: 0;
      color: #adc0d4;
      font-size: 0.83rem;
      line-height: 1.46;
    }

    .player-sector-role-row {
      margin-top: 0.56rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.42rem;
    }

    .player-sector-role-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.26rem;
      border-radius: 999px;
      padding: 0.18rem 0.54rem;
      border: 1px solid rgba(78, 110, 144, 0.46);
      background: rgba(11, 18, 28, 0.7);
      color: #dce8f5;
      font-size: 0.72rem;
      line-height: 1.2;
    }

    .player-sector-role-chip.attack {
      border-color: rgba(103, 184, 255, 0.44);
      color: #bfe3ff;
    }

    .player-sector-role-chip.survival {
      border-color: rgba(255, 188, 96, 0.44);
      color: #ffd7a7;
    }

    .player-sector-readout-ring {
      display: grid;
      gap: 0.42rem;
      min-width: 180px;
      justify-items: start;
      text-align: left;
      padding: 0.72rem 0.78rem;
      border: 1px solid rgba(58, 82, 108, 0.74);
      border-radius: 15px;
      background:
        linear-gradient(180deg, rgba(14, 23, 34, 0.94), rgba(9, 16, 25, 0.98)),
        radial-gradient(160px 90px at 100% 0%, rgba(255, 255, 255, 0.04), transparent 74%);
    }

    .player-sector-readout-ring strong {
      font-size: 1.36rem;
    }

    .player-sector-readout-grid {
      display: grid;
      gap: 0.42rem;
      width: 100%;
    }

    .player-sector-readout-row {
      display: flex;
      justify-content: space-between;
      gap: 0.5rem;
      color: #bfd0e2;
      font-size: 0.78rem;
      line-height: 1.35;
    }

    .player-sector-readout-row span {
      color: #8ea8c3;
      font-size: 0.68rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-readout-row strong {
      font-size: 0.9rem;
      line-height: 1.35;
    }

    .player-sector-spotlight-grid {
      margin-top: 0.92rem;
      display: grid;
      gap: 0.72rem;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-sector-panel {
      border: 1px solid rgba(58, 82, 108, 0.74);
      border-radius: 15px;
      padding: 0.76rem 0.82rem;
      min-width: 0;
      background:
        linear-gradient(180deg, rgba(14, 23, 34, 0.94), rgba(9, 16, 25, 0.98)),
        radial-gradient(160px 90px at 100% 0%, rgba(255, 255, 255, 0.04), transparent 74%);
    }

    .player-sector-panel-head {
      display: flex;
      justify-content: space-between;
      gap: 0.7rem;
      align-items: start;
      margin-bottom: 0.52rem;
    }

    .player-sector-panel-head h4 {
      margin: 0;
      font-size: 0.92rem;
      color: #eef5ff;
      letter-spacing: 0.02em;
    }

    .player-sector-panel-head span {
      color: #8ea8c3;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-keyline {
      display: grid;
      gap: 0.44rem;
    }

    .player-sector-keyline-row {
      display: grid;
      gap: 0.14rem;
    }

    .player-sector-keyline-row span {
      color: #8ea8c3;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-keyline-row strong {
      color: #eef5ff;
      font-size: 0.95rem;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .player-sector-speed-stack {
      display: grid;
      gap: 0.52rem;
    }

    .player-sector-speed-weak {
      margin: 0 0 0.56rem;
      color: #b6c9dd;
      font-size: 0.78rem;
      line-height: 1.4;
    }

    .player-sector-speed-row {
      display: grid;
      gap: 0.22rem;
    }

    .player-sector-speed-label {
      display: flex;
      justify-content: space-between;
      gap: 0.54rem;
      align-items: baseline;
      color: #dce8f5;
      font-size: 0.8rem;
    }

    .player-sector-speed-label small {
      color: #8ea8c3;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-speed-track {
      position: relative;
      height: 9px;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid rgba(63, 87, 114, 0.54);
      background: rgba(255, 255, 255, 0.07);
    }

    .player-sector-speed-fill {
      display: block;
      height: 100%;
      border-radius: inherit;
      min-width: 2px;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), #67b8ff);
    }

    .player-sector-speed-fill.is-negative {
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), #ff8c73);
    }

    .player-sector-speed-meta {
      display: flex;
      justify-content: space-between;
      gap: 0.54rem;
      flex-wrap: wrap;
      color: #a8bfd5;
      font-size: 0.73rem;
      line-height: 1.35;
    }

    .player-sector-speed-meta strong {
      color: #eef5ff;
      font-weight: 600;
    }

    .player-sector-quality-meter {
      position: relative;
      height: 10px;
      margin-top: 0.14rem;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid rgba(63, 87, 114, 0.54);
      background: rgba(255, 255, 255, 0.06);
    }

    .player-sector-quality-meter span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #49e0a2, #67b8ff);
      box-shadow: 0 0 16px rgba(103, 184, 255, 0.16);
    }

    .player-sector-quality-copy {
      margin-top: 0.46rem;
      color: #b7cadf;
      font-size: 0.77rem;
      line-height: 1.44;
    }

    .player-sector-flag-list {
      margin-top: 0.62rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.38rem;
    }

    .player-sector-flag {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 0.18rem 0.5rem;
      border: 1px solid rgba(80, 113, 147, 0.4);
      background: rgba(11, 18, 28, 0.72);
      color: #dce8f5;
      font-size: 0.69rem;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .player-sector-trend-note {
      margin: 0 0 0.56rem;
      color: #b6c9dd;
      font-size: 0.78rem;
      line-height: 1.42;
    }

    .player-sector-trend-spark {
      border: 1px solid rgba(56, 81, 105, 0.7);
      border-radius: 14px;
      padding: 0.46rem 0.46rem 0.24rem;
      background: rgba(9, 15, 24, 0.76);
    }

    .player-sector-trend-spark svg {
      display: block;
      width: 100%;
      height: 84px;
    }

    .player-sector-trend-grid {
      stroke: rgba(130, 155, 183, 0.16);
      stroke-width: 1;
    }

    .player-sector-trend-area {
      fill: rgba(103, 184, 255, 0.16);
    }

    .player-sector-trend-line {
      fill: none;
      stroke: #67b8ff;
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .player-sector-trend-labels {
      margin-top: 0.34rem;
      display: flex;
      justify-content: space-between;
      gap: 0.4rem;
      color: #7f9ab6;
      font-size: 0.64rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      font-family: Consolas, "Courier New", monospace;
    }

    .player-sector-bands {
      margin-top: 0.8rem;
      display: grid;
      gap: 0.62rem;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-sector-band {
      border: 1px solid rgba(57, 83, 109, 0.7);
      border-radius: 14px;
      padding: 0.68rem 0.74rem;
      background: rgba(10, 17, 26, 0.72);
      min-width: 0;
    }

    .player-sector-chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.42rem;
      margin-top: 0.24rem;
    }

    .player-sector-callout-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      border-radius: 999px;
      padding: 0.22rem 0.56rem;
      border: 1px solid rgba(78, 110, 144, 0.42);
      background: rgba(13, 21, 31, 0.8);
      color: #dce8f5;
      font-size: 0.74rem;
      line-height: 1.2;
    }

    .metric-visual-shell {
      border-color: #355070;
      background:
        radial-gradient(920px 320px at 12% -22%, rgba(94, 176, 255, 0.18), transparent 64%),
        linear-gradient(180deg, rgba(18, 29, 43, 0.94) 0%, rgba(13, 23, 34, 0.95) 100%);
    }

    .metric-visual-shell.mode-power {
      background:
        radial-gradient(920px 320px at 12% -22%, rgba(74, 223, 152, 0.18), transparent 64%),
        linear-gradient(180deg, rgba(18, 29, 43, 0.94) 0%, rgba(13, 23, 34, 0.95) 100%);
    }

    .metric-visual-shell.mode-stamina {
      background:
        radial-gradient(920px 320px at 12% -22%, rgba(255, 188, 96, 0.2), transparent 64%),
        linear-gradient(180deg, rgba(20, 30, 42, 0.94) 0%, rgba(14, 22, 30, 0.95) 100%);
    }

    .metric-visual-shell.mode-pace {
      background:
        radial-gradient(920px 320px at 12% -22%, rgba(80, 188, 255, 0.2), transparent 64%),
        linear-gradient(180deg, rgba(17, 28, 44, 0.94) 0%, rgba(12, 21, 33, 0.95) 100%);
    }

    .metric-visual-shell.mode-rating {
      background:
        radial-gradient(920px 320px at 12% -22%, rgba(104, 169, 255, 0.18), transparent 64%),
        linear-gradient(180deg, rgba(18, 30, 45, 0.94) 0%, rgba(13, 22, 35, 0.95) 100%);
    }

    .leaderboard-visual-grid {
      margin-top: 0.68rem;
      display: grid;
      gap: 0.72rem;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .visual-card {
      border: 1px solid var(--border-soft);
      border-radius: 11px;
      background: rgba(11, 18, 27, 0.86);
      padding: 0.62rem;
      animation: card-rise 460ms var(--ease-out) both;
    }

    .podium-wrap {
      display: grid;
      gap: 0.42rem;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: end;
      min-height: 190px;
    }

    .podium-slot {
      border: 1px solid var(--border-soft);
      border-radius: 11px;
      background: linear-gradient(180deg, rgba(36, 57, 80, 0.9), rgba(24, 39, 56, 0.92));
      color: #f0f7ff;
      padding: 0.45rem;
      display: grid;
      gap: 0.2rem;
      text-decoration: none;
      box-shadow: inset 0 1px 0 rgba(220, 242, 255, 0.06);
      transition: transform 0.2s var(--ease-out), filter 0.2s var(--ease-out);
    }

    .podium-slot:hover {
      transform: translateY(-2px);
      filter: brightness(1.08);
      text-decoration: none;
    }

    .podium-slot.rank-1 {
      min-height: 176px;
      border-color: rgba(255, 202, 108, 0.65);
      background: linear-gradient(180deg, rgba(100, 72, 32, 0.95), rgba(66, 49, 24, 0.94));
    }

    .podium-slot.rank-2 {
      min-height: 148px;
      border-color: rgba(179, 204, 230, 0.55);
      background: linear-gradient(180deg, rgba(56, 74, 92, 0.94), rgba(36, 50, 64, 0.95));
    }

    .podium-slot.rank-3 {
      min-height: 130px;
      border-color: rgba(225, 159, 106, 0.52);
      background: linear-gradient(180deg, rgba(90, 58, 42, 0.94), rgba(62, 41, 29, 0.95));
    }

    .podium-rank {
      font-size: 0.78rem;
      color: #cfdceb;
    }

    .podium-name {
      font-size: 0.9rem;
      font-weight: 700;
      line-height: 1.16;
      overflow-wrap: anywhere;
    }

    .podium-score {
      margin-top: auto;
      font-size: 0.84rem;
      color: #e9f3ff;
    }

    .spectrum-list {
      display: grid;
      gap: 0.33rem;
      max-height: 215px;
      overflow-y: auto;
      padding-right: 0.1rem;
    }

    .spectrum-row {
      border: 1px solid #2d4056;
      border-radius: 9px;
      background: rgba(15, 25, 38, 0.8);
      padding: 0.32rem 0.38rem;
      display: grid;
      grid-template-columns: minmax(120px, 1.4fr) minmax(100px, 2fr) auto;
      align-items: center;
      gap: 0.45rem;
      text-decoration: none;
      color: #dce8f6;
      transition: transform 0.2s var(--ease-out), filter 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    }

    .spectrum-row:hover {
      transform: translateY(-1px);
      filter: brightness(1.05);
      text-decoration: none;
      border-color: #4a6a89;
    }

    .spectrum-meta {
      font-size: 0.78rem;
      color: #d6e4f3;
      overflow-wrap: anywhere;
    }

    .spectrum-bar {
      border: 1px solid #35506f;
      border-radius: 999px;
      background: #102033;
      overflow: hidden;
      height: 10px;
    }

    .spectrum-bar span {
      display: block;
      height: 100%;
      border-radius: 999px;
      min-width: 2px;
      background: linear-gradient(90deg, rgba(76, 171, 255, 0.94), rgba(88, 229, 176, 0.94));
    }

    .spectrum-score {
      font-size: 0.8rem;
      color: #eaf3ff;
      white-space: nowrap;
    }

    .sector-map-wrap {
      margin-top: 0.5rem;
      border: 1px solid var(--border-soft);
      border-radius: 12px;
      background: radial-gradient(circle at 50% 46%, rgba(58, 164, 255, 0.16) 0%, rgba(12, 20, 30, 0.94) 58%);
      padding: 0.65rem;
    }

    .sector-map-svg {
      width: 100%;
      max-width: 560px;
      margin: 0 auto;
      display: block;
    }

    .sector-map-base {
      fill: none;
      stroke: rgba(145, 171, 198, 0.2);
      stroke-width: 14px;
    }

    .sector-map-hit {
      fill: none;
      stroke: rgba(0, 0, 0, 0);
      stroke-linecap: round;
      cursor: pointer;
      pointer-events: stroke;
    }

    .sector-map-segment {
      fill: none;
      stroke-linecap: round;
      opacity: 0.88;
      transition: opacity 0.15s ease, filter 0.15s ease, stroke-width 0.15s ease;
      pointer-events: none;
    }

    .sector-map-hit:hover + .sector-map-segment,
    .sector-map-hit.is-focused + .sector-map-segment,
    .sector-map-segment.is-focused,
    .sector-map-segment:hover {
      opacity: 1;
      filter: brightness(1.22) drop-shadow(0 0 4px rgba(170, 213, 255, 0.35));
    }

    .map-ahead {
      stroke: #39d68d;
      background: rgba(57, 214, 141, 0.18);
    }

    .map-close {
      stroke: #62adff;
      background: rgba(98, 173, 255, 0.18);
    }

    .map-behind {
      stroke: #ffba61;
      background: rgba(255, 186, 97, 0.18);
    }

    .map-unknown {
      stroke: #7f8fa3;
      background: rgba(127, 143, 163, 0.18);
    }

    .legend-row {
      margin-top: 0.58rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
    }

    .legend-pill {
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.2rem 0.58rem;
      font-size: 0.75rem;
      color: #dbe8f6;
    }

    .sector-ribbon {
      margin-top: 0.72rem;
      border: 1px solid var(--border-soft);
      border-radius: 11px;
      background: rgba(9, 17, 26, 0.84);
      padding: 0.44rem;
      display: flex;
      gap: 0.22rem;
      overflow-x: auto;
      scrollbar-width: thin;
      scroll-behavior: smooth;
    }

    .ribbon-segment {
      border: 1px solid transparent;
      border-radius: 8px;
      min-width: 48px;
      padding: 0.28rem 0.32rem;
      color: #dce8f6;
      text-decoration: none;
      display: grid;
      gap: 0.1rem;
      flex: 0 0 auto;
      background: rgba(22, 34, 48, 0.92);
    }

    .ribbon-segment:hover {
      filter: brightness(1.08);
      text-decoration: none;
      border-color: #5f88b4;
    }

    .ribbon-segment.is-focused {
      border-color: #84b0dc;
      box-shadow: 0 0 0 1px rgba(132, 176, 220, 0.45) inset;
      filter: brightness(1.1);
    }

    .ribbon-name {
      font-size: 0.71rem;
      line-height: 1.18;
      max-width: 164px;
      overflow-wrap: anywhere;
    }

    .ribbon-delta {
      font-size: 0.68rem;
      color: #b8c8da;
    }

    .rank-cell {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .rank-chip {
      border: 1px solid #38506c;
      border-radius: 999px;
      min-width: 34px;
      padding: 0.1rem 0.4rem;
      font-size: 0.73rem;
      text-align: center;
      background: rgba(39, 57, 77, 0.7);
    }

    .rank-chip.gold {
      border-color: rgba(247, 197, 104, 0.7);
      background: rgba(112, 81, 32, 0.52);
    }

    .rank-chip.silver {
      border-color: rgba(176, 201, 228, 0.62);
      background: rgba(67, 88, 111, 0.5);
    }

    .rank-chip.bronze {
      border-color: rgba(216, 157, 104, 0.6);
      background: rgba(96, 64, 43, 0.5);
    }

    tr.sector-focus td {
      background: rgba(74, 136, 200, 0.16);
    }

    @keyframes card-rise {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 1080px) {
      .records-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .records-feature-grid {
        grid-template-columns: 1fr;
      }

      .player-lap-history-toolbar {
        gap: 0.5rem 0.65rem;
      }

      .player-lap-history-toolbar > * {
        min-width: 0;
      }

      .player-lap-history-table-wrap {
        overflow: visible;
      }

      .player-lap-history-table-wrap table {
        table-layout: auto;
      }

      .player-lap-history-table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .player-lap-history-table-wrap tbody,
      .player-lap-history-table-wrap tr,
      .player-lap-history-table-wrap td {
        display: block;
        width: 100%;
      }

      .player-lap-history-table-wrap tbody {
        padding: 0.45rem;
        background: rgba(18, 28, 40, 0.88);
      }

      .player-lap-history-table-wrap tr {
        border: 1px solid rgba(55, 79, 103, 0.78);
        border-radius: 14px;
        margin-bottom: 0.72rem;
        padding: 0.2rem 0;
        background:
          linear-gradient(180deg, rgba(17, 27, 39, 0.96), rgba(10, 18, 27, 0.98)),
          radial-gradient(300px 120px at 100% 0%, rgba(73, 179, 255, 0.08), transparent 72%);
        box-shadow: 0 14px 28px -26px rgba(0, 0, 0, 0.86);
      }

      .player-lap-history-table-wrap tr:last-child {
        margin-bottom: 0;
      }

      .player-lap-history-table-wrap td {
        display: grid;
        grid-template-columns: minmax(92px, 110px) minmax(0, 1fr);
        gap: 0.42rem 0.75rem;
        align-items: start;
        padding: 0.62rem 0.78rem;
        border-bottom: 1px solid rgba(47, 69, 92, 0.72);
      }

      .player-lap-history-table-wrap td:last-child {
        border-bottom: none;
      }

      .player-lap-history-table-wrap td::before {
        content: attr(data-label);
        color: #8ea6c0;
        font-size: 0.66rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-family: Consolas, "Courier New", monospace;
        padding-top: 0.08rem;
      }

      .player-lap-history-table-wrap td[colspan] {
        grid-template-columns: 1fr;
      }

      .player-lap-history-table-wrap td[colspan]::before {
        content: none;
      }

      .player-lap-history-table-wrap .mono {
        white-space: normal;
        word-break: break-word;
      }

      .player-lap-history-table-wrap .car-cell {
        align-items: flex-start;
      }

      .player-lap-history-table-wrap .car-label,
      .player-lap-history-table-wrap .car-label a {
        overflow-wrap: anywhere;
        word-break: break-word;
      }
    }

    @media (max-width: 760px) {
      .container {
        padding: 0.7rem 0.65rem 1.2rem;
      }

      .nav {
        top: 0.35rem;
      }

      .nav-panel,
      .nav-search,
      .nav-search-field {
        width: 100%;
      }

      .nav-search {
        min-width: 0;
      }

      .nav-search-results {
        left: 0;
      }

      .live-wire-shell {
        grid-template-columns: 1fr;
        gap: 0.28rem;
      }

      .live-wire-item {
        width: min(252px, calc(100vw - 1.5rem));
        grid-template-columns: auto auto minmax(0, 1fr);
      }

      .live-wire-age {
        grid-column: auto;
        justify-self: end;
      }

      .live-wire-tooltip-stats {
        grid-template-columns: 1fr;
      }

      .card-peek-grid {
        grid-template-columns: 1fr;
      }

      .page-title {
        font-size: 1.28rem;
      }

      .grid-home {
        grid-template-columns: 1fr;
      }

      .home-story-card {
        grid-template-columns: 1fr;
      }

      .home-story-visual {
        order: -1;
      }

      .home-hero-header {
        grid-template-columns: 1fr;
      }

      .home-contract-head,
      .home-contract-meter-meta {
        flex-direction: column;
        align-items: flex-start;
      }

      .home-contract-stats {
        grid-template-columns: 1fr;
      }

      .home-upcoming-races-head,
      .home-upcoming-races-body {
        grid-template-columns: 1fr;
      }

      .home-upcoming-races-head {
        display: grid;
      }

      .home-upcoming-races-controls {
        justify-content: flex-start;
      }

      .home-upcoming-race-mini-grid,
      .home-upcoming-race-hover-grid {
        grid-template-columns: 1fr;
      }

      .home-intelligence-summary-grid,
      .home-intelligence-panel-grid {
        grid-template-columns: 1fr;
      }

      .home-intelligence-detail-row {
        grid-template-columns: 1fr;
      }

      .records-page-head,
      .records-feature-card {
        grid-template-columns: 1fr;
      }

      .records-page-toolbar {
        justify-content: flex-start;
      }

      .records-page-head {
        flex-direction: column;
        align-items: flex-start;
      }

      .records-summary-grid,
      .records-feature-grid {
        grid-template-columns: 1fr;
      }

      .records-feature-visual {
        order: -1;
      }

      .records-feature-detail-grid {
        grid-template-columns: 1fr;
      }

      .telemetry-grid {
        grid-template-columns: 1fr;
      }

      .player-timeline-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .player-week-ruler,
      .player-week-row {
        grid-template-columns: 1fr;
      }

      .player-week-stamp {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.8rem;
        align-items: start;
      }

      .player-week-stamp-metrics {
        margin-top: 0;
      }

      .player-week-stage-inner {
        padding-left: 0.8rem;
      }

      .player-week-stage-labels {
        display: none;
      }

      .player-sector-summary-grid,
      .player-sector-spotlight-grid,
      .player-sector-bands {
        grid-template-columns: 1fr;
      }

      .player-sector-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .player-sector-rail {
        grid-template-columns: 1fr;
      }

      .player-sector-rail::before,
      .player-sector-rail::after,
      .player-sector-rail-btn {
        display: none;
      }

      .player-sector-grid {
        grid-auto-columns: minmax(162px, 82vw);
        padding-bottom: 0.16rem;
      }

      .player-sector-grid::-webkit-scrollbar {
        display: none;
      }

      .player-sector-spotlight-top {
        grid-template-columns: 1fr;
      }

      .player-sector-readout-ring {
        justify-self: start;
        text-align: left;
      }

      .telemetry-shell-head {
        grid-template-columns: 1fr;
        align-items: start;
      }

      .server-spotlight-graph-head {
        flex-direction: column;
      }

      .server-spotlight-graph-notes {
        text-align: left;
      }

      .server-spotlight-panel-meta {
        grid-template-columns: 1fr;
      }

      .telemetry-lane {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
      }

      .telemetry-lane-metric:last-of-type {
        grid-column: 3 / 5;
      }

      .home-hero-title {
        font-size: 1.46rem;
      }

      .leaderboard-visual-grid {
        grid-template-columns: 1fr;
      }

      .podium-wrap {
        grid-template-columns: 1fr;
        min-height: 0;
      }

      .car-thumb-btn {
        width: 62px;
        height: 36px;
      }

      .car-image-dialog {
        width: min(100vw, 96vw);
        padding: 0.52rem;
      }

      .search-group-grid {
        grid-template-columns: 1fr;
      }

      .driver-compare-picker-grid,
      .driver-compare-hero,
      .driver-duel-group-grid,
      .driver-compare-lower-grid {
        grid-template-columns: 1fr;
      }

      .driver-compare-vs {
        justify-self: center;
      }

      .driver-compare-spine-grid {
        grid-template-columns: 1fr;
      }

      .driver-duel-values {
        grid-template-columns: 1fr;
        gap: 0.4rem;
      }

      .driver-duel-divider {
        display: none;
      }

      .driver-duel-value.is-right,
      .driver-compare-pilot.is-right .driver-compare-pilot-head,
      .driver-track-battle-values > div:last-child {
        text-align: left;
      }

      .driver-track-battle-values {
        grid-template-columns: 1fr;
      }

      .table-wrap {
        overflow: visible;
      }

      .table-wrap table {
        table-layout: auto;
      }

      .table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .table-wrap tbody,
      .table-wrap tr,
      .table-wrap td {
        display: block;
        width: 100%;
      }

      .table-wrap tbody {
        padding: 0.45rem;
        background: rgba(18, 28, 40, 0.88);
      }

      .table-wrap tr {
        border: 1px solid rgba(55, 79, 103, 0.78);
        border-radius: 14px;
        margin-bottom: 0.72rem;
        padding: 0.2rem 0;
        background:
          linear-gradient(180deg, rgba(17, 27, 39, 0.96), rgba(10, 18, 27, 0.98)),
          radial-gradient(300px 120px at 100% 0%, rgba(73, 179, 255, 0.08), transparent 72%);
        box-shadow: 0 14px 28px -26px rgba(0, 0, 0, 0.86);
      }

      .table-wrap tr:last-child {
        margin-bottom: 0;
      }

      .table-wrap td {
        display: grid;
        grid-template-columns: minmax(94px, 108px) minmax(0, 1fr);
        gap: 0.42rem 0.75rem;
        align-items: start;
        padding: 0.62rem 0.78rem;
        border-bottom: 1px solid rgba(47, 69, 92, 0.72);
      }

      .table-wrap td:last-child {
        border-bottom: none;
      }

      .table-wrap td::before {
        content: attr(data-label);
        color: #8ea6c0;
        font-size: 0.66rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-family: Consolas, "Courier New", monospace;
        padding-top: 0.08rem;
      }

      .table-wrap td[colspan] {
        grid-template-columns: 1fr;
      }

      .table-wrap td[colspan]::before {
        content: none;
      }

      .table-wrap .mono {
        white-space: normal;
        word-break: break-word;
      }

      .table-wrap .car-cell {
        align-items: flex-start;
      }

      .table-wrap .progress-meta {
        flex-wrap: wrap;
        gap: 0.25rem 0.45rem;
      }

      .car-telemetry-chart-card.span-2 {
        grid-column: auto;
      }

      .car-hour-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    /* ── Car Tooltip ───────────────────────────────────────────────────── */
    #car-tooltip-panel {
      position: fixed;
      z-index: 9990;
      pointer-events: none;
      width: 400px;
      max-width: calc(100vw - 16px);
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 20px 60px -16px rgba(0,0,0,0.80), 0 0 0 1px rgba(255,255,255,0.04) inset;
      font-size: 0.82rem;
      line-height: 1.5;
      opacity: 0;
      transform: translateY(8px) scale(0.97);
      transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out);
      overflow: hidden;
    }
    #car-tooltip-panel.ct-visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    .ct-header {
      display: flex;
      gap: 0.7rem;
      align-items: flex-start;
      padding: 0.7rem 0.8rem;
      border-bottom: 1px solid var(--border-soft);
      background: var(--panel-2);
    }
    .ct-header-img {
      width: 96px;
      height: 58px;
      object-fit: cover;
      border-radius: 6px;
      flex-shrink: 0;
      background: var(--bg-3);
    }
    .ct-header-img[src=""] { display: none; }
    .ct-header-meta { flex: 1; min-width: 0; }
    .ct-name {
      font-size: 0.93rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
      margin-bottom: 0.18rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ct-sub { color: var(--muted); font-size: 0.74rem; margin-bottom: 0.22rem; }
    .ct-level {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.72rem;
      color: var(--accent);
    }
    .ct-level-bar {
      flex: 1;
      height: 3px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
    }
    .ct-level-fill { height: 100%; background: var(--accent); border-radius: 2px; }
    .ct-body { padding: 0.6rem 0.8rem; }
    .ct-description {
      color: var(--muted);
      font-size: 0.78rem;
      margin-bottom: 0.45rem;
      line-height: 1.5;
    }
    .ct-sig {
      color: var(--accent-2);
      font-size: 0.74rem;
      margin-bottom: 0.5rem;
      font-style: italic;
      line-height: 1.4;
    }
    .ct-specs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 0.8rem;
      margin-bottom: 0.4rem;
    }
    .ct-spec-col:first-child {
      border-right: 1px solid var(--border-soft);
      padding-right: 0.8rem;
    }
    .ct-spec-heading {
      font-size: 0.67rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.28rem;
    }
    .ct-spec-row {
      display: flex;
      justify-content: space-between;
      gap: 0.4rem;
      font-size: 0.73rem;
      margin-bottom: 0.14rem;
    }
    .ct-spec-label { color: var(--muted); flex-shrink: 0; }
    .ct-spec-value { color: var(--text); font-weight: 600; text-align: right; }
    .ct-drivetrain-row {
      font-size: 0.75rem;
      color: var(--muted);
      border-top: 1px solid var(--border-soft);
      padding-top: 0.38rem;
      margin-top: 0.38rem;
      display: flex;
      gap: 0.35rem;
      flex-wrap: wrap;
      align-items: center;
    }
    .ct-drivetrain-row strong { color: var(--text); }
    .ct-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.28rem;
      margin-top: 0.42rem;
      padding-top: 0.38rem;
      border-top: 1px solid var(--border-soft);
    }
    .ct-tag {
      font-size: 0.67rem;
      background: rgba(48, 217, 137, 0.1);
      color: var(--accent);
      border: 1px solid rgba(48, 217, 137, 0.2);
      border-radius: 4px;
      padding: 0.08rem 0.32rem;
    }
    .ct-fun-fact {
      font-size: 0.72rem;
      color: var(--accent-warm);
      font-style: italic;
      margin-top: 0.38rem;
      border-top: 1px solid var(--border-soft);
      padding-top: 0.38rem;
      line-height: 1.4;
    }
    .ct-loading, .ct-error {
      padding: 1rem;
      font-size: 0.8rem;
      text-align: center;
      color: var(--muted);
    }
    .ct-error { color: var(--accent-red); }

    /* ── Car Profile / Spec Sheet ──────────────────────────────────────── */
    .car-profile-hero {
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 0;
      margin: -1rem -1rem 0;
      border-radius: 12px 12px 0 0;
      overflow: hidden;
      position: relative;
      min-height: 180px;
    }
    .car-profile-hero-img {
      width: 100%;
      height: 100%;
      min-height: 180px;
      object-fit: cover;
      display: block;
    }
    .car-profile-hero-overlay {
      background: linear-gradient(135deg, var(--panel-2) 0%, rgba(21,30,41,0.92) 100%);
      padding: 1.4rem 1.6rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.8rem;
      border-left: 1px solid var(--border-soft);
    }
    .car-profile-meta-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
      font-size: 0.8rem;
      color: var(--muted);
    }
    .car-profile-maker {
      color: var(--accent-2);
      font-weight: 700;
      font-size: 0.88rem;
    }
    .car-profile-sep { opacity: 0.35; }
    .car-profile-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.28rem;
    }
    .car-profile-tag {
      font-size: 0.68rem;
      background: rgba(48, 217, 137, 0.1);
      color: var(--accent);
      border: 1px solid rgba(48, 217, 137, 0.18);
      border-radius: 4px;
      padding: 0.1rem 0.38rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .car-profile-level {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      font-size: 0.74rem;
      font-weight: 600;
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
      max-width: fit-content;
    }
    .car-profile-level.is-locked {
      color: var(--accent-warm);
      background: rgba(255,139,77,0.1);
      border: 1px solid rgba(255,139,77,0.2);
    }
    .car-profile-level.is-free {
      color: var(--accent);
      background: rgba(48,217,137,0.1);
      border: 1px solid rgba(48,217,137,0.2);
    }
    .car-profile-level-bar {
      width: 70px;
      height: 3px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
    }
    .car-profile-level-fill {
      height: 100%;
      border-radius: 2px;
      background: var(--accent-warm);
    }

    /* Narrative */
    .car-profile-narrative {
      padding: 1.1rem 0;
      border-bottom: 1px solid var(--border-soft);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.2rem;
    }
    .car-profile-desc {
      color: var(--muted);
      font-size: 0.875rem;
      line-height: 1.68;
      margin: 0;
    }
    .car-profile-sig {
      margin: 0;
      padding: 0.75rem 1rem;
      border-left: 3px solid var(--accent-2);
      background: rgba(58,164,255,0.07);
      border-radius: 0 8px 8px 0;
      color: var(--text);
      font-style: italic;
      font-size: 0.865rem;
      line-height: 1.62;
    }
    .car-profile-narrative.single-col {
      grid-template-columns: 1fr;
    }

    /* Spec grid */
    .car-profile-specs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      padding: 1rem 0 0.4rem;
    }
    .car-profile-spec-col {
      padding: 0 1.4rem;
    }
    .car-profile-spec-col:first-child { padding-left: 0; }
    .car-profile-spec-col:last-child { padding-right: 0; }
    .car-profile-spec-col:not(:last-child) {
      border-right: 1px solid var(--border-soft);
    }
    .car-profile-col-head {
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.9rem;
    }

    /* Engine badge */
    .car-profile-engine-badge {
      background: var(--bg-3);
      border: 1px solid var(--border-soft);
      border-radius: 8px;
      padding: 0.6rem 0.8rem;
      margin-bottom: 1rem;
    }
    .car-profile-engine-type {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text);
      line-height: 1.1;
      display: block;
    }
    .car-profile-engine-aspiration {
      font-size: 0.73rem;
      color: var(--accent-warm);
      margin-top: 0.15rem;
      display: block;
    }

    /* Stat item */
    .car-profile-stat { margin-bottom: 0.85rem; }
    .car-profile-stat-val {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
    }
    .car-profile-stat-val small {
      font-size: 0.68rem;
      font-weight: 400;
      color: var(--muted);
      margin-left: 0.15rem;
    }
    .car-profile-stat-rpm {
      font-size: 0.68rem;
      color: var(--muted);
      font-weight: 400;
      display: block;
      margin-top: 0.06rem;
    }
    .car-profile-stat-lbl {
      font-size: 0.71rem;
      color: var(--muted);
      margin-bottom: 0.2rem;
    }
    .car-profile-bar {
      height: 4px;
      background: var(--border);
      border-radius: 3px;
      overflow: hidden;
      margin-top: 0.22rem;
    }
    .car-profile-bar-fill {
      height: 100%;
      border-radius: 3px;
      max-width: 100%;
      transition: width 0.6s var(--ease-out);
    }
    .cpb-power  { background: linear-gradient(90deg, var(--accent-warm), #ff6b35); }
    .cpb-torque { background: linear-gradient(90deg, var(--accent-violet), #7c6de0); }
    .cpb-speed  { background: linear-gradient(90deg, var(--accent-2), #1a7fd4); }
    .cpb-ptw    { background: linear-gradient(90deg, var(--accent), #20b86d); }

    /* Hero stat (top speed) */
    .car-profile-hero-stat { margin-bottom: 1rem; }
    .car-profile-hero-val {
      font-size: 2.6rem;
      font-weight: 900;
      color: var(--text);
      line-height: 1;
      letter-spacing: -0.03em;
    }
    .car-profile-hero-unit {
      font-size: 0.74rem;
      color: var(--muted);
      margin: 0.1rem 0 0.25rem;
    }

    /* Drivetrain diagram */
    .car-profile-dt-wrap {
      margin-bottom: 0.9rem;
    }
    .car-profile-dt-inner {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .car-profile-dt-svg { width: 96px; height: 56px; flex-shrink: 0; }
    .dt-body { fill: var(--bg-3); stroke: var(--border); stroke-width: 1.5; }
    .dt-wheel { fill: var(--bg-2); stroke: var(--border); stroke-width: 1; }
    .dt-wheel-driven { fill: var(--accent-2); stroke: var(--accent-2); opacity: 0.9; }
    .dt-shaft { stroke: rgba(58,164,255,0.5); stroke-width: 1.5; stroke-dasharray: 3 2; }
    .car-profile-dt-name {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--accent-2);
      letter-spacing: 0.04em;
    }
    .car-profile-dt-desc {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 0.1rem;
    }

    /* Fun fact */
    .car-profile-fun-fact {
      margin-top: 0.9rem;
      padding: 0.75rem 0.9rem;
      border-left: 3px solid var(--accent-warm);
      background: rgba(255,139,77,0.07);
      border-radius: 0 8px 8px 0;
      display: flex;
      gap: 0.55rem;
      align-items: flex-start;
      font-size: 0.85rem;
      color: var(--accent-warm);
      font-style: italic;
      line-height: 1.55;
    }
    .car-profile-fun-icon { font-style: normal; flex-shrink: 0; }

    @media (max-width: 900px) {
      .car-profile-hero { grid-template-columns: 1fr; }
      .car-profile-hero-img { min-height: 160px; max-height: 200px; border-radius: 0; }
      .car-profile-hero-overlay { border-left: none; border-top: 1px solid var(--border-soft); }
      .car-profile-narrative { grid-template-columns: 1fr; }
      .car-profile-specs { grid-template-columns: 1fr; }
      .car-profile-spec-col { padding: 0.9rem 0; border-right: none !important; border-bottom: 1px solid var(--border-soft); }
      .car-profile-spec-col:last-child { border-bottom: none; }
    }

    /* ── Nav action buttons (Discord + Donate) ── */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      margin-left: 0.5rem;
      padding-left: 0.72rem;
      border-left: 1px solid var(--border-soft);
      flex-shrink: 0;
    }

    .nav-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.32rem;
      padding: 0.36rem 0.58rem;
      border-radius: 9px;
      border: 1px solid transparent;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.025em;
      text-decoration: none;
      transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
      white-space: nowrap;
    }

    .nav-action-btn svg {
      flex-shrink: 0;
      display: block;
    }

    .nav-action-discord {
      background: rgba(88, 101, 242, 0.1);
      border-color: rgba(88, 101, 242, 0.26);
      color: #b9bdf7;
    }

    .nav-action-discord:hover {
      background: rgba(88, 101, 242, 0.2);
      border-color: rgba(88, 101, 242, 0.5);
      color: #d4d7ff;
      box-shadow: 0 0 12px rgba(88, 101, 242, 0.18);
    }

    .nav-action-donate {
      background: rgba(253, 187, 88, 0.09);
      border-color: rgba(253, 187, 88, 0.22);
      color: #f8c96e;
    }

    .nav-action-donate:hover {
      background: rgba(253, 187, 88, 0.18);
      border-color: rgba(253, 187, 88, 0.44);
      color: #fde18e;
      box-shadow: 0 0 12px rgba(253, 187, 88, 0.14);
    }

    .nav-action-donate.is-active {
      background: rgba(253, 187, 88, 0.16);
      border-color: rgba(253, 187, 88, 0.42);
      color: #fde08c;
    }

    /* ── Donate page ── */
    .donate-wrap {
      max-width: 860px;
      margin: 0 auto;
      padding: 2.4rem 1.2rem 4rem;
    }

    .donate-hero {
      text-align: center;
      padding: 2.8rem 1rem 2.2rem;
      position: relative;
    }

    .donate-hero-glow {
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(253, 187, 88, 0.1), transparent 70%);
      pointer-events: none;
    }

    .donate-hero-icon {
      font-size: 2.6rem;
      line-height: 1;
      margin-bottom: 1rem;
      filter: drop-shadow(0 0 18px rgba(253, 187, 88, 0.45));
    }

    .donate-hero-title {
      font-size: 2.1rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: linear-gradient(135deg, #fde18e 0%, #f8a84a 50%, #ff8b4d 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin: 0 0 0.9rem;
    }

    .donate-hero-sub {
      color: var(--muted);
      font-size: 1.02rem;
      line-height: 1.55;
      max-width: 520px;
      margin: 0 auto;
    }

    .donate-section {
      margin-top: 2.2rem;
    }

    .donate-section-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.7rem;
    }

    .donate-section-title::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border-soft);
    }

    .donate-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1rem;
    }

    .donate-card {
      background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.35rem 1.4rem;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      text-decoration: none;
      color: var(--text);
      transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
      position: relative;
      overflow: hidden;
    }

    .donate-card::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.18s ease;
      pointer-events: none;
    }

    .donate-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.6);
    }

    .donate-card:hover::before { opacity: 1; }

    .donate-card-patreon { --card-accent: #f96854; }
    .donate-card-patreon::before { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249, 104, 84, 0.08), transparent 70%); }
    .donate-card-patreon:hover { border-color: rgba(249, 104, 84, 0.46); box-shadow: 0 14px 32px -16px rgba(249, 104, 84, 0.22); }

    .donate-card-bmac { --card-accent: #ffdd00; }
    .donate-card-bmac::before { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 221, 0, 0.08), transparent 70%); }
    .donate-card-bmac:hover { border-color: rgba(255, 221, 0, 0.36); box-shadow: 0 14px 32px -16px rgba(255, 221, 0, 0.16); }

    .donate-card-btc { --card-accent: #f7931a; }
    .donate-card-btc::before { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(247, 147, 26, 0.08), transparent 70%); }
    .donate-card-btc:hover { border-color: rgba(247, 147, 26, 0.44); box-shadow: 0 14px 32px -16px rgba(247, 147, 26, 0.2); }

    .donate-card-eth { --card-accent: #8c8cfa; }
    .donate-card-eth::before { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(140, 140, 250, 0.08), transparent 70%); }
    .donate-card-eth:hover { border-color: rgba(140, 140, 250, 0.44); box-shadow: 0 14px 32px -16px rgba(140, 140, 250, 0.2); }

    .donate-card-sol { --card-accent: #9945ff; }
    .donate-card-sol::before { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(153, 69, 255, 0.08), transparent 70%); }
    .donate-card-sol:hover { border-color: rgba(153, 69, 255, 0.44); box-shadow: 0 14px 32px -16px rgba(153, 69, 255, 0.2); }

    .donate-card-xrp { --card-accent: #346aa9; }
    .donate-card-xrp::before { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(52, 106, 169, 0.1), transparent 70%); }
    .donate-card-xrp:hover { border-color: rgba(52, 106, 169, 0.5); box-shadow: 0 14px 32px -16px rgba(52, 106, 169, 0.22); }

    .donate-card-usdt { --card-accent: #26a17b; }
    .donate-card-usdt::before { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(38, 161, 123, 0.08), transparent 70%); }
    .donate-card-usdt:hover { border-color: rgba(38, 161, 123, 0.44); box-shadow: 0 14px 32px -16px rgba(38, 161, 123, 0.2); }

    .donate-card-head {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .donate-coin-icon {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 1.25rem;
      line-height: 1;
    }

    .donate-card-name {
      font-size: 1.02rem;
      font-weight: 700;
      color: #eaf3ff;
      line-height: 1.2;
    }

    .donate-network-badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 0.12rem 0.44rem;
      font-size: 0.66rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--muted);
      margin-top: 0.18rem;
      font-family: Consolas, "Courier New", monospace;
    }

    .donate-address-wrap {
      background: rgba(0, 0, 0, 0.28);
      border: 1px solid var(--border-soft);
      border-radius: 10px;
      padding: 0.6rem 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }

    .donate-address {
      flex: 1;
      font-size: 0.68rem;
      font-family: Consolas, "Courier New", monospace;
      color: #c4d4e6;
      word-break: break-all;
      line-height: 1.45;
      user-select: all;
    }

    .donate-copy-btn {
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid var(--border);
      border-radius: 7px;
      padding: 0.3rem 0.48rem;
      font-size: 0.7rem;
      color: var(--muted);
      cursor: pointer;
      transition: background 0.14s, color 0.14s, border-color 0.14s;
      font-family: Consolas, "Courier New", monospace;
      white-space: nowrap;
    }

    .donate-copy-btn:hover {
      background: rgba(255, 255, 255, 0.13);
      color: var(--text);
      border-color: var(--border);
    }

    .donate-copy-btn.copied {
      color: var(--accent);
      border-color: rgba(48, 217, 137, 0.38);
    }

    .donate-memo {
      font-size: 0.72rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 0.38rem;
    }

    .donate-memo-label {
      font-weight: 700;
      font-size: 0.66rem;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--warning);
    }

    .donate-memo-val {
      font-family: Consolas, "Courier New", monospace;
      color: #c4d4e6;
      user-select: all;
    }

    .donate-action-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      margin-top: 0.2rem;
      padding: 0.55rem 1rem;
      border-radius: 10px;
      border: 1px solid var(--card-accent, rgba(255,255,255,0.2));
      background: color-mix(in srgb, var(--card-accent, white) 12%, transparent);
      color: color-mix(in srgb, var(--card-accent, white) 80%, white);
      font-size: 0.86rem;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.16s ease, box-shadow 0.16s ease;
    }

    .donate-action-link:hover {
      background: color-mix(in srgb, var(--card-accent, white) 22%, transparent);
      box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent, white) 25%, transparent);
    }

    .donate-thankyou {
      margin-top: 3rem;
      text-align: center;
      padding: 1.6rem 1.4rem;
      border-radius: 16px;
      border: 1px solid var(--border-soft);
      background: linear-gradient(160deg, rgba(48, 217, 137, 0.05), transparent);
    }

    .donate-thankyou-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--accent);
      margin: 0 0 0.5rem;
    }

    .donate-thankyou-body {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.55;
    }

    @media (max-width: 640px) {
      .donate-grid { grid-template-columns: 1fr; }
      .donate-hero-title { font-size: 1.6rem; }
      .nav-action-btn span { display: none; }
      .nav-action-btn { padding: 0.38rem 0.42rem; }
    }
