/* Typography: rem sizes retain the original proportions; 115% enlarges all text by 15%. */
html{font-size:115%}
button,input,select,textarea{font-size:0.83333333rem}
/* ===========================================================================
   ZRL.online — prototype styles
   Standalone base (these few rules were provided by the host in the original
   single-file demo; kept here so the page renders correctly on its own).
   =========================================================================== */
:root{color-scheme:dark;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{-webkit-text-size-adjust:100%}
img{max-width:100%}
[hidden]{display:none!important}

:root{
    --bg:#0c0f14; --bg2:#11151d; --panel:#161b25; --panel2:#1c2230;
    --line:#262e3d; --line2:#333d50;
    --text:#e7ebf3; --muted:#93a0b5; --faint:#5f6b80;
    --accent:#fc6719;        /* Zwift orange */
    --accent-2:#ff8a45;
    --twitch:#9147ff;        /* chat */
    --twitch-2:#a970ff;
    --fal:#fc6719;           /* First Across the Line */
    --fts:#26c6da;           /* Fastest Through Segment */
    --fin:#8b93a2;
    --good:#3fb950; --warn:#e3b341; --bad:#f85149;
    --gold:#ffcf5c; --silver:#cfd8e3; --bronze:#e0985a;
    --r:12px; --r-sm:8px;
    --disp:'Saira Condensed',Impact,'Arial Narrow',sans-serif;
    --body:'IBM Plex Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  }
  *{box-sizing:border-box}
  html,body{background:var(--bg);color:var(--text);font-family:var(--body)}
  body{margin:0;line-height:1.5;-webkit-font-smoothing:antialiased}
  a{color:var(--accent-2)}
  h1,h2,h3,h4{font-family:var(--disp);font-weight:700;margin:0;line-height:1.05;letter-spacing:.01em}
  button{font-family:var(--body);cursor:pointer}
  input,select,textarea{font-family:var(--body)}
  ::selection{background:var(--accent);color:#0c0f14}
  .num{font-family:var(--mono);font-variant-numeric:tabular-nums}
  .eyebrow{font-family:var(--disp);text-transform:uppercase;letter-spacing:.14em;font-size:0.75rem;color:var(--muted);font-weight:600}

  /* ---------- top bar ---------- */
  .topbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:60;
    background:linear-gradient(180deg,#0e131b,#0c0f14);border-bottom:1px solid var(--line);
    display:flex;align-items:center;gap:16px;padding:10px 16px}
  .brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
  .brand .mark{width:34px;height:34px;border-radius:9px;background:conic-gradient(from 210deg,var(--accent),#ff3d3d,var(--twitch),var(--fts),var(--accent));
    display:grid;place-items:center;font-family:var(--disp);font-weight:700;color:#0c0f14;font-size:1.1875rem;box-shadow:0 0 0 1px #0006 inset}
  .brand b{font-family:var(--disp);font-size:1.375rem;letter-spacing:.02em}
  .brand b span{color:var(--accent)}
  .brand small{color:var(--faint);font-size:0.6875rem;display:block;margin-top:-3px;letter-spacing:.12em;text-transform:uppercase}
  .proto{margin-left:6px;font-size:0.625rem;letter-spacing:.12em;text-transform:uppercase;color:var(--warn);
    border:1px solid #4a3d13;background:#241d08;padding:3px 7px;border-radius:20px;font-weight:600;font-family:var(--disp)}
  .topbar .spacer{flex:1}
  .userchip{display:flex;align-items:center;gap:9px;background:var(--panel);border:1px solid var(--line2);
    padding:5px 10px 5px 6px;border-radius:30px;font-size:0.8125rem}
  .userchip .av{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#ff3d6e);
    display:grid;place-items:center;font-weight:700;font-family:var(--disp);color:#0c0f14;font-size:0.875rem}
  .btn{border:1px solid var(--line2);background:var(--panel2);color:var(--text);padding:8px 14px;border-radius:9px;
    font-weight:600;font-size:0.8125rem;transition:.15s;white-space:nowrap}
  .btn:hover{border-color:var(--faint);background:var(--panel2)}
  .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
  .btn.primary:hover{background:var(--accent-2);border-color:var(--accent-2)}
  .btn.twitch{background:var(--twitch);border-color:var(--twitch);color:#fff}
  .btn.twitch:hover{background:var(--twitch-2);border-color:var(--twitch-2)}
  .btn.sm{padding:5px 10px;font-size:0.75rem}
  .btn.ghost{background:transparent}
  .btn:disabled{opacity:.5;cursor:not-allowed}

  /* ---------- nav ---------- */
  .nav{position:sticky;top:calc(env(safe-area-inset-top,0px) + 55px);z-index:55;background:#0c0f14ee;backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);display:flex;gap:2px;padding:0 8px;overflow-x:auto;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav button{background:none;border:none;color:var(--muted);padding:13px 15px;font-size:0.84375rem;font-weight:600;
    border-bottom:2.5px solid transparent;white-space:nowrap;letter-spacing:.02em}
  .nav button:hover{color:var(--text)}
  nav.nav button.active{color:#ff6b00;border-bottom-color:#ff6b00;background:color-mix(in srgb,#ff6b00 7%,transparent)}
  .nav button .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--bad);margin-left:5px;vertical-align:middle;animation:pulse 1.6s infinite}
  @keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

  /* ---------- layout ---------- */
  .wrap{max-width:1180px;margin:0 auto;padding:22px 16px 60px}
  .page{display:none}
  .page.active{display:block;animation:fade .25s ease}
  @keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
  .phead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
  .phead h2,.tab-title{font-size:1.875rem}
.phead p{margin:4px 0 0;color:var(--muted);font-size:0.84375rem;max-width:100%;white-space:normal;overflow-wrap:anywhere}

  .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r)}
  .pad{padding:16px}
  .grid{display:grid;gap:14px}

  /* stat tiles */
  .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
  .stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
  .stat .k{font-family:var(--disp);font-size:2rem;line-height:1;color:var(--text)}
  .stat .k.accent{color:var(--accent)}
.stat .l{font-size:0.71875rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin-top:6px}
#p-leaderboard #lbStats .stat:nth-child(1){background:#edf2ff;border-color:#cbd8ff}
#p-leaderboard #lbStats .stat:nth-child(2){background:#eefaf5;border-color:#c7ead9}
#p-leaderboard #lbStats .stat:nth-child(3){background:#fff6e8;border-color:#f4d7a9}
#p-leaderboard #lbStats .stat:nth-child(4){background:#fff0f2;border-color:#f4c8d0}
#p-leaderboard #lbStats .stat:nth-child(5){background:#f4efff;border-color:#d9ccfa}
#p-leaderboard #lbStats .stat:nth-child(6){background:#eaf9fb;border-color:#bfe8ee}
#p-leaderboard #lbStats .stat{text-align:center}
.leaderboard-demo-notice{margin-top:12px;padding:10px 12px;border-left:4px solid #1769d1;border-radius:6px;background:#edf4ff;color:#17477f;font-size:.8125rem;font-weight:600;line-height:1.45}
.msgs .chat-team-badge{display:inline-flex;align-items:center;margin-left:5px;padding:1px 5px;border-radius:4px;background:#44335c;color:#e3d7ff;font-size:.65rem;font-weight:700;line-height:1.35;vertical-align:middle}
[data-theme=dark] .leaderboard-demo-notice{background:#172b48;border-color:#5da2ff;color:#c9defd}
[data-theme=dark] #p-leaderboard #lbStats .stat:nth-child(1){background:#172541;border-color:#294a80}
[data-theme=dark] #p-leaderboard #lbStats .stat:nth-child(2){background:#153328;border-color:#27734f}
[data-theme=dark] #p-leaderboard #lbStats .stat:nth-child(3){background:#3a2a15;border-color:#76521e}
[data-theme=dark] #p-leaderboard #lbStats .stat:nth-child(4){background:#3b2028;border-color:#7a3344}
[data-theme=dark] #p-leaderboard #lbStats .stat:nth-child(5){background:#2d2445;border-color:#574080}
[data-theme=dark] #p-leaderboard #lbStats .stat:nth-child(6){background:#16363a;border-color:#28717a}
  .stats.six{grid-template-columns:repeat(6,1fr);gap:10px}
  .stats.six .stat{padding:12px 13px}
  .stats.six .k{font-size:1.5625rem}
  .seasonbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 11px}
  .seasonbar .lbl{font-family:var(--disp);text-transform:uppercase;letter-spacing:.14em;font-size:0.75rem;color:var(--text);font-weight:700}
  .seasonbar .name{color:var(--muted);font-size:0.78125rem}
  .seasonbar .name b{color:var(--accent)}

  /* controls */
  .controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
  .field{display:flex;flex-direction:column;gap:5px}
  .field label{font-size:0.6875rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:600}
  select,input[type=text],input[type=email],input[type=tel],input[type=number],textarea{background:var(--bg2);border:1px solid var(--line2);color:var(--text);
    padding:9px 11px;border-radius:8px;font-size:0.84375rem;min-width:120px}
  select:focus{outline:none;border-color:#c8692b;box-shadow:0 0 0 2px #c8692b30}
  input:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
  .seg{display:inline-flex;background:var(--bg2);border:1px solid var(--line2);border-radius:9px;padding:3px;gap:2px}
  .seg button{background:none;border:none;color:var(--muted);padding:7px 13px;border-radius:6px;font-weight:600;font-size:0.78125rem}
  .seg button.on{background:var(--accent);color:#fff}
  .seg.tw button.on{background:var(--twitch);color:#fff}

  /* table */
  .twrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r)}
  table{border-collapse:collapse;width:100%;font-size:0.84375rem;min-width:640px}
  thead th{text-align:left;background:var(--bg2);color:var(--muted);font-family:var(--disp);font-weight:600;
    text-transform:uppercase;letter-spacing:.08em;font-size:0.75rem;padding:11px 14px;border-bottom:1px solid var(--line);position:sticky;top:0}
  tbody td{padding:10px 14px;border-bottom:1px solid var(--line)}
  tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:#1a2130}
#lbTable tbody tr:hover{background:var(--panel2)}
#lbTable .leaderboard-league-badge{min-width:66px;justify-content:center}
#lbTable .leaderboard-category{min-width:36px;height:32px;border-radius:4px;font-size:.75rem}
#lbCat{min-width:0;width:82px}
  .rank{font-family:var(--disp);font-size:1.0625rem;width:30px;color:var(--faint)}
  tr[data-p="1"] .rank{color:var(--gold)} tr[data-p="2"] .rank{color:var(--silver)} tr[data-p="3"] .rank{color:var(--bronze)}
  .rider{display:flex;align-items:center;gap:9px}
  .flag{font-size:0.9375rem}
  .team-tag{color:var(--muted);font-size:0.75rem}
  .pill{display:inline-block;padding:2px 8px;border-radius:20px;font-size:0.6875rem;font-weight:600;font-family:var(--disp);letter-spacing:.04em;border:1px solid}
  .cat-A{color:#ff6b6b;border-color:#5a2626;background:#2a1616}
  .cat-B{color:#69b7ff;border-color:#264a5a;background:#132430}
  .cat-C{color:#7ee081;border-color:#265a2f;background:#132a17}
  .cat-D{color:#d59bff;border-color:#472a5a;background:#211430}
  .colhi{color:var(--accent);font-weight:700}
  .colhi.fts{color:var(--fts)}
  .muted{color:var(--muted)}
  .faint{color:var(--faint)}

  /* team / rider cards */
  .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
  .card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:15px;display:flex;flex-direction:column;gap:10px}
  .card .top{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .card h4{font-size:1.125rem}
  .kv{display:flex;justify-content:space-between;font-size:0.8125rem;gap:10px}
  .kv .muted{white-space:nowrap}
  .badge{font-size:0.65625rem;text-transform:uppercase;letter-spacing:.08em;padding:3px 8px;border-radius:6px;font-weight:600;font-family:var(--disp)}
  .badge.open{background:#e9f7ee;color:#145b38;border:1px solid #b9dfc8}
  .badge.full{background:#2a1616;color:var(--bad);border:1px solid #5a2626}
  .badge.dev{background:#241d33;color:var(--twitch-2);border:1px solid #3d2a5a}
  .avstack{display:flex}
  .avstack .av{width:26px;height:26px;border-radius:50%;margin-left:-8px;border:2px solid var(--panel);
    display:grid;place-items:center;font-size:0.6875rem;font-weight:700;font-family:var(--disp);color:#0c0f14}
  .avstack .av:first-child{margin-left:0}

  /* chat (twitch) */
  .chatlayout{display:grid;grid-template-columns:1fr 360px;gap:16px;align-items:start}
  .stagebox{background:#0a0d12;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
  .stage{aspect-ratio:16/9;background:
    radial-gradient(120% 120% at 30% 20%,#1a2440,#0a0d12 70%);position:relative;display:grid;place-items:center;text-align:center}
  .stage .live{position:absolute;top:12px;left:12px;background:var(--bad);color:#fff;font-family:var(--disp);
    font-weight:700;font-size:0.75rem;letter-spacing:.1em;padding:4px 9px;border-radius:6px}
  .stage .via{position:absolute;bottom:12px;right:12px;color:var(--faint);font-size:0.75rem}
  .stage h3{font-size:1.625rem;color:#fff}
  .stage p{color:var(--muted);margin:6px 0 0}
  .chatbox{display:flex;flex-direction:column;height:560px;background:#0d0f16;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
  .chathead{padding:11px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#12101c}
  .chathead b{font-family:var(--disp);letter-spacing:.06em;text-transform:uppercase;font-size:0.8125rem}
  .chathead .cnt{color:var(--twitch-2);font-size:0.75rem;font-weight:600}
  .msgs{flex:1;overflow-y:auto;padding:12px 12px;display:flex;flex-direction:column;gap:9px;font-size:0.84375rem;scrollbar-width:thin}
  .msg{line-height:1.45;word-wrap:break-word}
  .msg .u{font-weight:700;font-family:var(--body)}
  .msg .b{display:inline-block;vertical-align:middle;font-size:0.5625rem;font-weight:700;font-family:var(--disp);
    padding:1px 5px;border-radius:4px;margin-right:4px;text-transform:uppercase;letter-spacing:.04em}
  .b.mod{background:var(--good);color:#04120a}
  .b.bot{background:var(--twitch);color:#fff}
  .b.cap{background:var(--accent);color:#170a02}
  .b.sub{background:#3a2d5c;color:var(--twitch-2)}
  .msg.system{color:var(--twitch-2);background:#160f26;border-left:2px solid var(--twitch);padding:7px 10px;border-radius:6px;font-size:0.78125rem}
  .msg.removed{color:var(--faint);font-style:italic;font-size:0.78125rem}
  .msg img.shot{max-width:100%;border-radius:8px;margin-top:5px;display:block;border:1px solid var(--line2)}
  .msg .clip{margin-top:5px;display:flex;align-items:center;gap:8px;background:#161225;border:1px solid #2c2444;border-radius:8px;padding:8px 10px;font-size:0.75rem;color:var(--twitch-2)}
  .msg a{color:var(--twitch-2);text-decoration:underline}
  .chatin{border-top:1px solid var(--line);padding:10px;background:#0d0f16}
  .chatin .row{display:flex;gap:7px;align-items:center}
  .chatin input{flex:1;min-width:0;background:#1a1826;border-color:#2c2444}
  .chatin input:focus{outline-color:var(--twitch);border-color:var(--twitch)}
  .chattools{display:flex;gap:5px;margin-bottom:8px}
  .chattools button{background:#1a1826;border:1px solid #2c2444;color:var(--twitch-2);border-radius:7px;padding:5px 9px;font-size:0.75rem}
  .chattools button:hover{background:#241f38}
  .signin-gate{padding:14px;text-align:center;color:var(--muted);font-size:0.8125rem;background:#12101c;border-top:1px solid var(--line)}

  /* media */
  .gallery{columns:4;column-gap:12px}
  .gitem{break-inside:avoid;margin-bottom:12px;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);position:relative;background:var(--panel)}
  .gitem .thumb{display:block;width:100%}
  .gitem .cap{padding:9px 11px;font-size:0.78125rem}
  .gitem .cap b{display:block;font-family:var(--disp);font-size:0.8125rem;font-weight:600}
  .gitem .cap .by{color:var(--muted);font-size:0.71875rem;margin-top:2px}
  .gitem .vbadge{position:absolute;top:8px;right:8px;background:#000a;color:#fff;font-size:0.6875rem;padding:2px 7px;border-radius:20px;font-weight:600}
  .gitem .likes{position:absolute;bottom:52px;left:8px;background:#000a;color:#fff;font-size:0.6875rem;padding:2px 8px;border-radius:20px}

  /* races */
  .racelist{display:flex;flex-direction:column;gap:12px}
  .race{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
  .race .rmain{display:flex;align-items:center;gap:16px;padding:14px 16px;flex-wrap:wrap}
  .race .when{text-align:center;min-width:64px}
  .race .when .d{font-family:var(--disp);font-size:1.375rem;line-height:1}
  .race .when .mo{font-size:0.6875rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
  .race .rinfo{flex:1;min-width:180px}
  .race .rinfo h4{font-size:1.0625rem}
  .race .rinfo .meta{color:var(--muted);font-size:0.78125rem;margin-top:3px;display:flex;gap:14px;flex-wrap:wrap}
  .race .rinfo .meta b{color:var(--text);font-weight:600}
  .race .signups{border-top:1px solid var(--line);padding:12px 16px;display:none;background:var(--bg2)}
  .race .signups.open{display:block}
  .siglist{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
  .sigchip{display:flex;align-items:center;gap:7px;background:var(--panel2);border:1px solid var(--line2);border-radius:30px;padding:4px 11px 4px 4px;font-size:0.78125rem}
  .sigchip .av{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:0.625rem;font-weight:700;font-family:var(--disp);color:#0c0f14}

  /* league-coloured card header (find a team + teams) */
  .tzcard{padding:0;overflow:hidden}
  .tzcard .tzhead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 15px}
  .tzcard .tzhead h4{font-size:1.125rem}
  .tzcard .tzbody{padding:14px 15px;display:flex;flex-direction:column;gap:9px}
  .tzbadge{font-size:0.6875rem;font-weight:700;font-family:var(--disp);letter-spacing:.03em;padding:3px 9px;border-radius:20px;border:1px solid;white-space:nowrap}

  /* team registration form */
  .formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
  .formgrid .field input,.formgrid .field select{width:100%}
  textarea{width:100%;resize:vertical}
  .linkbtns{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}

  /* race detail panel */
  .race .rmain{cursor:pointer}
  .rdetail{display:none;border-top:1px solid var(--line);padding:15px 16px;background:var(--bg2)}
  .rdetail.open{display:block}
  .detgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}
  .dtile{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 12px}
  .dtile .k{font-family:var(--disp);font-size:1.1875rem;line-height:1.05}
  .dtile .l{font-size:0.65625rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-top:4px}
  .segrow{margin-bottom:13px}
  .segrow .eyebrow{margin-bottom:7px}
  .chips{display:flex;flex-wrap:wrap;gap:7px}
  .chip{font-size:0.75rem;padding:4px 10px;border-radius:20px;border:1px solid var(--line2);background:var(--panel);font-weight:600}
  .chip.fal{color:var(--fal);border-color:#5a3316}
  .chip.fts{color:var(--fts);border-color:#1c4a52}
  .chip.pu{color:var(--twitch-2);border-color:#3d2a5a}
  .chip.none{color:var(--faint);border-style:dashed}

  /* schedule */
  .legend{display:flex;gap:14px;flex-wrap:wrap;font-size:0.75rem;color:var(--muted);margin-bottom:12px}
  .legend span{display:inline-flex;align-items:center;gap:6px}
  .legend i{width:11px;height:11px;border-radius:3px;display:inline-block}
  .anchor{background:#211a3a !important;color:var(--twitch-2);font-weight:600}
  table.sched{min-width:820px;font-size:0.78125rem}
  table.sched td{padding:7px 12px}
  table.sched .lg{font-family:var(--disp);font-weight:600}

  .note{font-size:0.75rem;color:var(--faint);margin-top:10px}
  .empty{color:var(--muted);text-align:center;padding:26px;font-size:0.84375rem}
  .toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--panel2);
    border:1px solid var(--accent);color:var(--text);padding:11px 18px;border-radius:10px;font-size:0.84375rem;font-weight:600;
    z-index:200;opacity:0;transition:.25s;box-shadow:0 10px 30px #0008;max-width:90vw}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
  .foot{border-top:1px solid var(--line);color:var(--faint);font-size:0.75rem;text-align:center;padding:24px 16px}

  @media(max-width:900px){
    .stats{grid-template-columns:repeat(2,1fr)}
    .stats.six{grid-template-columns:repeat(3,1fr)}
    .chatlayout{grid-template-columns:1fr}
    .gallery{columns:2}
  }
  @media(max-width:520px){
    .brand small{display:none}
    .phead h2,.tab-title{font-size:1.5rem}
    .gallery{columns:2}
  }
  @media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Local Django application: accessible navigation, forms and status. */
.nav a{display:block;padding:12px 16px;color:var(--muted);text-decoration:none;white-space:nowrap;font-size:0.8125rem;font-weight:600;border-bottom:2px solid transparent}
.nav a:hover{color:var(--text);background:var(--panel)}
nav.nav a.active:not([href="/series/create/"]){color:#ff6b00;border-bottom-color:#ff6b00;background:color-mix(in srgb,#ff6b00 7%,transparent)}
.page[data-series-hidden]{display:none!important}
#authArea{display:flex;align-items:center;gap:8px}a.btn{text-decoration:none;display:inline-block}
.local-notice{display:flex;align-items:center;gap:12px;margin:0 0 20px;padding:12px 12px 12px 16px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:8px;background:var(--bg2);font-size:.8rem;font-weight:600;color:var(--text)}.local-notice>span{flex:1}.local-notice.success{border-color:#b9dfc8;border-left-color:#176b42;background:#e9f7ee;color:#145b38}.local-notice.error,.local-notice.warning{border-color:#f0c2c0;border-left-color:#b42318;background:#fff0ef;color:#8d201b}.local-notice.info{border-color:#cad8f4;border-left-color:#2458b9;background:#eef4ff;color:#1e488e}.notice-dismiss{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;padding:0;border:0;border-radius:6px;background:transparent;color:currentColor;font:inherit;font-size:1.35rem;line-height:1;cursor:pointer}.notice-dismiss:hover,.notice-dismiss:focus-visible{background:#00000012;outline:none}.notice-dismiss:focus-visible{box-shadow:0 0 0 3px currentColor}
.inbox{margin-bottom:20px;font-size:0.8125rem}.inbox summary{cursor:pointer;color:var(--accent-2)}
button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--fts);outline-offset:3px}select:focus-visible{outline:none;border-color:#c8692b;box-shadow:0 0 0 2px #c8692b30}
.skip-link{position:fixed;left:16px;top:-100px;z-index:1000;background:var(--panel);padding:12px}.skip-link:focus{top:10px}
dialog{width:min(510px,calc(100vw - 32px));max-height:88vh;border:1px solid var(--line2);border-radius:16px;padding:24px;background:var(--panel);color:var(--text)}
dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
#dialogFields{display:grid;gap:12px}#dialogFields input,#dialogFields select,#dialogFields textarea{width:100%}.form-error,.errorlist{color:#ff9292;font-size:0.8125rem}
.auth-shell{max-width:500px;padding:24px;margin:6vh auto}.auth-brand{margin-bottom:24px;text-decoration:none;color:var(--text)}.auth-shell h1{font-size:2rem;margin-top:12px}
.auth-form p{display:flex;flex-direction:column;gap:6px}.auth-form input{background:var(--bg);color:var(--text);padding:12px;border:1px solid var(--line2);border-radius:8px}.auth-form label{font-size:0.8125rem}.auth-form .helptext,.auth-form ul{font-size:0.75rem;color:var(--muted)}
.auth-form p:has(> #id_remember){flex-direction:row;align-items:center;gap:8px}.auth-form #id_remember{flex:0 0 16px;width:16px;height:16px;margin:0;padding:0;accent-color:var(--accent)}
.auth-provider-separator{display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:var(--muted);font-size:.8rem}.auth-provider-separator:before,.auth-provider-separator:after{content:"";height:1px;flex:1;background:var(--line)}
.auth-provider-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}.auth-provider-list form{margin:0}.auth-provider-button{width:100%;height:48px;min-height:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:600}.auth-provider-google{width:100%;height:48px;padding:0;border:0;background:transparent;cursor:pointer}.auth-provider-google img{display:block;width:100%;height:48px;object-fit:contain}.auth-provider-google:hover{filter:brightness(.97)}.auth-provider-google:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:5px}
.legal-footer-links{display:inline-flex;gap:14px;margin-left:14px}.legal-footer-links a{color:var(--muted);text-decoration:none}.legal-footer-links a:hover,.legal-footer-links a:focus-visible{color:var(--accent);text-decoration:underline}
.schedule-date{display:block;font-family:var(--body);font-size:0.625rem;color:var(--muted)}.race-actions{display:flex;gap:8px}.gallery .empty{column-span:all;break-inside:avoid}.gitem .thumb{object-fit:cover;max-height:480px}
@media(max-width:650px){.topbar{flex-wrap:wrap;gap:8px}.topbar .spacer{display:none}.topbar .proto{margin-left:auto}#authArea{width:100%;justify-content:flex-end}.brand small{letter-spacing:.03em;font-size:0.5625rem}.nav a{padding:10px 12px}.race-actions{margin-top:8px}.rmain{flex-wrap:wrap}.local-notice{font-size:0.6875rem}.grid{grid-template-columns:minmax(0,1fr)!important}.wrap{padding-left:12px;padding-right:12px}.userchip{max-width:70%;overflow:hidden}}

.nav{top:calc(env(safe-area-inset-top,0px) + var(--header-height,66px))}

/* Rider identity and account menu */
.account-menu{position:relative}.account-menu summary{cursor:pointer;list-style:none;max-width:280px}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary>span:nth-last-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-menu .userchip{max-width:none}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:max-content;min-width:min(260px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;background:var(--panel);border:1px solid var(--line2);border-radius:10px;box-shadow:0 12px 32px #0008;padding:6px;z-index:100}.account-dropdown a{display:block;white-space:nowrap;color:var(--text);padding:10px 12px;text-decoration:none;border-radius:6px}.account-dropdown a:hover{background:var(--panel2);color:var(--accent)}.account-logout-form{margin:6px 0 0;padding-top:6px;border-top:1px solid var(--line2)}.account-logout-form button{display:block;width:100%;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-size:.9rem;text-align:left;cursor:pointer}.account-logout-form button:hover,.account-logout-form button:focus-visible{background:var(--panel2);color:var(--accent)}.account-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0}
.profile-brand{text-decoration:none;color:var(--text)}.profile-wrap{max-width:1120px;margin:0 auto;padding:32px 24px 64px}.back-link{display:inline-block;margin-bottom:28px;font-size:0.8125rem;text-decoration:none}.profile-wrap h1{font-size:2.625rem;margin:12px 0}.profile-wrap h3{font-size:1.4375rem}.profile-form-layout{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}.profile-form-layout>.profile-form{padding:28px}.profile-form{display:grid;gap:20px}.profile-form input{width:100%}.profile-form .note{margin:5px 0 0}.profile-form .errorlist{padding-left:18px;margin:4px 0}.profile-hero{display:flex;align-items:center;gap:24px;margin:12px 0 20px;padding:28px}.profile-photo{width:104px;height:104px;flex-shrink:0;border-radius:24px;background:linear-gradient(135deg,#fc6719,#ba3763);display:grid;place-items:center;font-family:var(--disp);font-size:2.5rem;font-weight:700;color:#fff;overflow:hidden}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-identity{flex:1;min-width:0}.profile-identity h1{overflow-wrap:anywhere}.profile-identity p{margin:8px 0}.profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.profile-value{font-family:var(--disp);font-size:2.625rem;font-weight:600;margin-top:12px}.profile-value small{font-size:1.25rem;color:var(--muted)}.profile-text{font-size:1.5625rem;overflow-wrap:anywhere}.profile-connection{display:flex;justify-content:space-between;align-items:center;gap:24px}.profile-buttons{display:grid;gap:10px;flex-shrink:0}.profile-buttons .btn{width:100%;text-align:center}
.series-settings-form{gap:24px;min-width:0}.series-settings-section{min-width:0;margin:0;padding:22px;border:1px solid var(--line);border-radius:16px;display:grid;gap:18px}.series-settings-section legend{padding:0 8px;font-family:var(--disp);font-size:1.35rem;font-weight:700}.series-settings-section-copy{margin-top:-8px;color:var(--muted);font-size:.9rem}.series-settings-field{display:grid;gap:7px;min-width:0}.series-settings-field>label,.series-settings-checkbox label{font-weight:700}.series-settings-field>input:not([type=checkbox]),.series-settings-field textarea,.series-settings-field select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.series-settings-field>input[type=file]{overflow:hidden}.series-settings-help{display:block;color:var(--muted);line-height:1.45}.series-settings-checkbox{display:flex;align-items:center;gap:10px}.profile-form .series-settings-checkbox input{width:auto;margin:0;padding:0;flex:none}.series-settings-note{margin:0;padding:12px 14px;border-left:3px solid var(--accent);background:var(--panel2);color:var(--muted);font-size:.875rem}.landing-series-website{margin-bottom:14px}
.series-category-bands{display:grid;gap:12px}.series-category-bands h3{margin:8px 0 0}.series-category-band-list{display:grid;gap:6px}.series-category-band-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(130px,1fr) minmax(120px,1fr) auto;align-items:center;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:8px}.series-category-band-row label{display:flex;align-items:center;gap:8px}.series-category-band-row input,.series-category-band-row select{width:100%;min-width:0}.series-abcde-categories[hidden]{display:none}@media(max-width:720px){.series-category-band-row{grid-template-columns:1fr 1fr}.series-category-band-row strong,.series-category-band-row>input{grid-column:1/-1}}
.series-category-band-row:has(.series-category-band-color){grid-template-columns:minmax(100px,1.2fr) minmax(100px,1fr) minmax(100px,1fr) repeat(2,minmax(115px,.8fr)) auto}
.series-category-band-row .series-category-band-color{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:.8rem}
.series-category-band-row input[type=color]{width:42px;height:30px;min-width:42px;padding:2px;cursor:pointer}
.series-category-band-range{grid-column:1/-1;color:var(--muted)}
.series-category-band-error{margin:0;color:#c72c3e;font-weight:700}
@media(max-width:900px){.series-category-band-row:has(.series-category-band-color){grid-template-columns:repeat(2,minmax(0,1fr))}.series-category-band-row:has(.series-category-band-color)>input:first-child{grid-column:1/-1}}
.series-image-preview{display:grid;gap:5px;justify-items:start;min-width:0;color:var(--muted)}.series-image-preview-frame{width:min(100%,180px);aspect-ratio:3/1;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel2);display:grid;place-items:center}.series-image-preview--hero .series-image-preview-frame{aspect-ratio:16/7}.series-image-preview-frame img{display:block;width:100%;height:100%;object-fit:cover}.series-image-preview-frame img[hidden],.series-image-preview-empty[hidden]{display:none}.series-image-preview-empty{font-size:.75rem;text-align:center;padding:8px}.series-image-preview small{font-size:.78rem}
.series-settings-field--banner-managed{position:relative}.series-image-native-input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.series-settings-field--banner-managed .series-image-preview-frame{width:min(100%,260px)}.series-image-preview-actions{display:flex;flex-wrap:wrap;gap:8px}.series-image-preview-actions .btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}.series-image-preview-actions .btn:hover{color:var(--text)}
@media(max-width:720px){.profile-form-layout{grid-template-columns:1fr;gap:24px}.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-hero{flex-wrap:wrap;padding:20px;gap:16px}.profile-wrap{padding:24px 16px}.profile-wrap h1{font-size:2rem}.profile-photo{width:76px;height:76px;border-radius:16px;font-size:1.875rem}.profile-connection{align-items:stretch;flex-direction:column}.account-menu summary{max-width:250px}.profile-form-layout>.profile-form{padding:20px}.series-settings-section{padding:18px 14px}}

.profile-identity .badge{display:inline-block;line-height:1.5}
@media(max-width:520px){.profile-identity{flex:1 1 180px}.profile-hero>.btn{flex-basis:100%;text-align:center}.profile-identity p{overflow-wrap:anywhere}}

/* Compact season row and published WTRL fixtures. */
#seasonRounds{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.round-card{min-width:0;padding:14px}
.round-card .top{flex-wrap:wrap;gap:6px}
.round-card .round-name{display:block;font-family:var(--disp);font-size:1.85rem;font-weight:600;line-height:1.12;margin:8px 0;overflow-wrap:anywhere}
.round-window{color:var(--muted);font-size:0.75rem;line-height:1.5}
.round-active{border-color:var(--orange,#fc6719)}
.fixture-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.fixture-toolbar h3{margin:5px 0 0;font-size:1.25rem}
.fixture-heading{display:flex;align-items:center;gap:16px;padding:20px}
.fixture-heading h4{font-size:1.1875rem;margin:4px 0 6px}
.fixture-heading .muted{font-size:0.8125rem}
.fixture-calendar{flex:0 0 58px;overflow:hidden;border:1px solid var(--line,#343446);border-radius:9px;text-align:center;position:relative}
.fixture-calendar span{display:block;background:#fc6719;color:#170a02;text-transform:uppercase;font-size:0.6875rem;font-weight:800;padding:4px}
.fixture-calendar b{display:block;font-family:var(--disp);font-size:1.625rem;padding:5px 8px;background:#b8b8b8;color:#000}
.fixture-variant{padding:16px 20px;border-top:1px solid var(--line,#343446)}
.fixture-facts{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;font-size:1.21875rem}
.fixture-categories{display:inline-flex;align-items:center;gap:7px;font-size:1.03125rem;font-weight:600;font-family:var(--disp);letter-spacing:.04em}
.zp-category{display:inline-flex;align-items:center;justify-content:center;min-width:1.7em;height:1.7em;border-radius:4px;font-weight:800;line-height:1;color:#fff;letter-spacing:0}
.zp-category-A{background:#dc343b}
.zp-category-B{background:#198b45}
.zp-category-C{background:#2374d5}
.zp-category-D{background:#f5ce32;color:#201a00}
.zp-category-E{background:#8246af}
.fixture-details{margin:16px 0 0;font-size:0.8125rem;line-height:1.65}
.fixture-details>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;margin-top:10px}
.fixture-details dt{font-weight:700;color:var(--muted)}
.fixture-details dd{margin:0;overflow-wrap:anywhere}
.powerup-list{display:flex;flex-wrap:wrap;gap:4px 20px;list-style:none;padding:0;margin:0}
@media(max-width:760px){
 #seasonRounds{display:flex;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}
 #seasonRounds .round-card{flex:0 0 205px;scroll-snap-align:start}
 .fixture-heading{padding:16px;align-items:flex-start}
 .fixture-variant{padding:16px}
 .fixture-details>div{grid-template-columns:1fr;gap:2px}
 .fixture-toolbar .field{width:100%}
 .fixture-toolbar select{width:100%}
}

.powerup-list li{display:flex;align-items:center;gap:8px}
.powerup-icon{width:40px;height:40px;object-fit:contain;flex:0 0 40px}

.segment-item{display:inline-flex;align-items:center;gap:4px;max-width:100%;vertical-align:middle}
.segment-link,.segment-link:visited{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.segment-link:hover,.segment-link:focus-visible{text-decoration:none;color:var(--accent)}
.segment-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.segment-icon{width:20px;height:20px;flex:0 0 20px}

/* Race format labels retain text as well as colour. */
.race-format{display:inline-block;padding:4px 10px;border:1px solid;border-radius:6px;font-size:0.8125rem;font-weight:700;line-height:1.4}
.race-format-rot{background:#392451;color:#e1baff;border-color:#8653af}
.race-format-wtrlttt{background:#173854;color:#a7d8ff;border-color:#407eaf}
.race-format-scratch{background:#4b2b16;color:#ffca98;border-color:#ae6938}
.race-format-race{background:#173c2c;color:#9ee9bc;border-color:#3c9460}

/* Round palette sampled from the supplied season overview graphic. */
#seasonRounds .round-1{background:#401ca8}
#seasonRounds .round-2{background:#285349}
#seasonRounds .round-3{background:#e05325}
#seasonRounds .round-4{background:#8c41f5}
#seasonRounds .round-card{color:#fff;border-color:rgba(255,255,255,.25)}
#seasonRounds .round-card h4,#seasonRounds .round-window{color:#fff}
#seasonRounds .round-card .badge{color:#fff;background:rgba(0,0,0,.22);border-color:rgba(255,255,255,.4)}
#seasonRounds .round-card .badge.round-status[data-status],.sc .sc-status{--status-color:#1d4ed8;background:#fff;color:var(--status-color);border:1px solid currentColor;font-family:var(--body);font-size:.8rem;font-weight:600;line-height:1.4;letter-spacing:.02em;text-transform:none;padding:4px 9px;height:auto}
#seasonRounds .round-card .badge.round-status[data-status="In progress"],.sc .sc-status--active{--status-color:#166534}
#seasonRounds .round-card .badge.round-status[data-status="Completed"],.sc .sc-status--completed{--status-color:#b45309}
.sc-like .sc-icon use[href="#sc-heart"]{stroke:#dc2626;fill:none}
.sc-like[aria-pressed="true"] .sc-icon use[href="#sc-heart"]{fill:#dc2626}
#seasonRounds .round-active{border-color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.35)}

.route-link,.route-link:visited{color:inherit;text-decoration:none}
.route-link:hover,.route-link:focus-visible{color:var(--accent);text-decoration:none}
.route-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}

#seasonRounds .round-name{font-size:1.85rem;margin:0}
#seasonRounds .round-card{text-align:left;cursor:pointer;font:inherit;padding:8px 14px;gap:2px}
#seasonRounds .round-card .badge.round-status[data-status]{font-size:.74rem;padding:3px 7px}
#seasonRounds .round-card[aria-pressed="true"]{outline:2px solid #fff;outline-offset:-3px}
#seasonRounds .round-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#seasonRounds .round-summary{display:grid;grid-template-columns:.7fr 1fr 1.35fr;gap:8px;margin:4px 0 0;padding:4px 0 0;border-top:1px solid color-mix(in srgb,var(--round-summary-ink) 24%,transparent);color:var(--round-summary-ink);font-family:var(--body)}
#seasonRounds .round-summary-stat{display:flex;flex-direction:column-reverse;justify-content:flex-end;min-width:0}
#seasonRounds .round-summary dt{display:flex;align-items:flex-start;gap:4px;margin:3px 0 0;font-size:.65rem;font-weight:500;line-height:1.3}
#seasonRounds .round-summary dd{margin:0;font-size:1.485rem;font-weight:700;line-height:1.05;font-variant-numeric:tabular-nums;white-space:nowrap}
#seasonRounds .round-summary-icon{width:13.5px;height:13.5px;flex:0 0 13.5px}
@media(max-width:850px){#seasonRounds .round-card{flex-basis:min(310px,calc(100vw - 48px))}#seasonRounds .round-summary{gap:5px}#seasonRounds .round-summary dd{font-size:1.26rem}#seasonRounds .round-summary dt{font-size:.62rem;gap:3px}#seasonRounds .round-summary-icon{width:11.7px;height:11.7px;flex-basis:11.7px}}


.category-dev-label{margin-left:6px}

.tzcard .league-start-time{font-size:1.125rem;font-family:var(--disp);font-weight:700;white-space:nowrap;padding:0;border:0;border-radius:0;background:none}
#tzResults .tzhead{flex-wrap:wrap}

.league-race-day>span{font-size:0.8125rem}
.competition-badges{display:flex;flex-wrap:wrap;gap:6px}
.competition-badge{display:inline-block;border:1px solid;border-radius:5px;padding:3px 8px;font-size:0.6875rem;font-weight:700;line-height:1.4;white-space:nowrap}
.competition-open{background:#173854;color:#a7d8ff;border-color:#407eaf}
.competition-open-dev{background:#173c2c;color:#9ee9bc;border-color:#3c9460}
.competition-women{background:#4d233a;color:#ffbadb;border-color:#a9537e}
.competition-women-dev{background:#392451;color:#e1baff;border-color:#8653af}

.club-jersey{width:140px;height:140px;object-fit:contain;border-radius:8px;background:transparent}
#tzResults .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
#tzResults .tzbody{overflow-x:auto}
.league-team{display:grid;grid-template-columns:140px 88px 42px minmax(150px,1fr) 130px 40px;align-items:center;gap:12px;padding:12px 0;border-top:1px solid color-mix(in srgb,var(--text) 14%,transparent);min-width:650px}
.team-categories{display:flex;align-items:center;gap:5px;font-family:var(--disp);font-size:1.03125rem}
.team-jersey-thumb{width:38px;height:44px;object-fit:contain;border-radius:5px;background:transparent}
.jersey-placeholder{background:transparent}
.team-row-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-recruitment{font-size:0.8125rem;white-space:nowrap;color:#ff777f}
.team-recruitment.is-recruiting{color:#9ee9bc}
.team-contact{display:inline-flex;align-items:center;justify-content:center;font-size:1.125rem;color:var(--accent);border:0;background:none;text-decoration:none;line-height:1}
.team-contact:hover{color:var(--accent-2);background:none;text-decoration:none}
.team-contact:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.direct-message-icon{width:26px;height:26px;color:#1769d1}
.direct-message-icon svg{display:block;width:100%;height:100%}
.direct-message-icon:hover{color:#0c4d9f}

#tzResults .tzhead{padding:10px 15px;gap:5px}
#tzResults .tzhead h4,#tzResults .league-start-time{font-size:1.125rem}
#tzResults .tzbody{padding:10px 15px;gap:8px}
#tzResults .league-race-day>span,#tzResults .tzbody>p{font-size:0.6875rem}
#tzResults .competition-badge{font-size:0.5625rem;padding:2px 4px}
#tzResults .league-team{grid-template-columns:5.4rem 4.8rem 24px 5rem minmax(70px,1fr) 3.4rem 22px;gap:5px;padding:9px 0;min-width:490px;font-size:0.625rem}
#tzResults .team-categories{gap:2px;font-size:0.625rem}
#tzResults .team-jersey-thumb{width:24px;height:28px}
#tzResults .team-recruitment{font-size:0.5625rem}
#tzResults .team-contact{padding:2px;font-size:1.125rem;text-align:center}
@media(max-width:1050px){#tzResults .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#tzResults .cards{grid-template-columns:minmax(0,1fr)}}

.club-tag{display:inline-block;max-width:120px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:3px;padding:2px 5px;font-size:0.625rem;font-weight:700;line-height:1.3}

#tzResults .club-tag{justify-self:start;max-width:100%;box-sizing:border-box}

.team-category-label{font-family:var(--body);font-weight:400;color:var(--muted);margin-right:3px}
.team-roster{grid-column:1/-1;font-size:0.6875rem;line-height:1.7;white-space:normal;overflow-wrap:anywhere;color:var(--text)}
.team-roster a{color:inherit;text-decoration:none}
.team-roster a:hover{color:var(--accent)}

.team-recruitment-actions{display:flex;align-items:center;gap:10px}
#clubCards .team-recruitment{font-size:1.125rem;font-family:var(--disp);font-weight:700;color:#570b15}
#clubCards .team-recruitment.is-recruiting{color:#073d25}
#clubCards .team-heading{display:flex;align-items:center;gap:8px;min-width:0}
#clubCards .team-heading h4{overflow-wrap:anywhere}
#clubCards .team-heading .team-jersey-thumb{width:28px;height:34px;flex-shrink:0}
#clubCards .tzhead{gap:10px;align-items:center}
#clubCards .team-recruitment-actions{flex-shrink:0;gap:6px}
#clubCards .tzhead .team-contact{color:var(--accent);font-size:1.125rem}
#clubCards .tzhead .team-contact:hover{color:var(--accent-2)}

#clubCards .team-recruitment{padding:2px 7px;border:1px solid #cb838b;border-radius:5px;background:#f2c7cc;line-height:1.35}
#clubCards .team-recruitment.is-recruiting{background:#c1e5cc;border-color:#6fa982}
.email-icon{display:block;width:22px;height:22px;flex-shrink:0}
.team-card-category{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.team-card-category .team-categories{font-size:1.03125rem;gap:5px}
.team-category-label{margin:0 0 0 4px}

.contact-row{display:flex;align-items:flex-start;gap:12px;margin:18px 0;padding-bottom:18px;border-bottom:1px solid var(--line)}
.contact-row .field{margin:0;min-width:0}
.contact-method{flex:0 0 210px}.contact-country{flex:0 1 230px}.contact-value{flex:1}
.contact-row input,.contact-row select{width:100%;box-sizing:border-box}
.contact-remove{margin-top:29px}.contact-buttons{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){.contact-row{flex-wrap:wrap}.contact-method,.contact-country,.contact-value{flex:1 1 100%}.contact-remove{margin-top:0}}

.gallery-open{display:block;position:relative}.gallery-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:36px;pointer-events:none;text-shadow:0 2px 8px #000}.gitem .cap b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

#mediaSearch{min-width:280px;max-width:100%;background:var(--bg2);border:1px solid var(--line2);color:var(--text);padding:9px 11px;border-radius:8px;font-family:var(--body)}

#mediaSort{margin-left:auto}

.media-pagination{text-align:center;margin:24px 0}.media-pagination p{font-size:0.8125rem}

.spare-contacts{display:flex;gap:8px}.spare-contact{width:30px;height:30px;display:inline-grid;place-items:center;border:0;border-radius:5px;text-decoration:none;color:white;font-size:19px;font-weight:700}.spare-contact.email{background:#fc6719}.spare-contact.messenger{background:#0866ff}.spare-contact.discord{background:#fff}.spare-contact.whatsapp{background:#178447}

.spare-avatar{position:relative;display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;overflow:hidden;border-radius:50%;background:var(--panel2);font-weight:700}.spare-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.spare-contact img{display:block;width:24px;height:24px;object-fit:contain}

.spare-contact.messenger{background:#fff}.spare-contact.discord{background:#fff}.spare-contact{padding:3px;box-sizing:border-box}

.spare-avatar{width:84px;height:84px;border-radius:12px}
.notification-menu{position:relative}.notification-menu summary{position:relative;display:grid;place-items:center;width:40px;height:40px;cursor:pointer;list-style:none}.notification-menu summary::-webkit-details-marker{display:none}.notification-count{position:absolute;right:-2px;top:-2px;min-width:19px;height:19px;padding:0 4px;border-radius:50%;background:#dc2626;color:#fff;font-size:11px;font-weight:700;line-height:19px;text-align:center;box-sizing:border-box}.notification-list{position:absolute;right:0;top:48px;width:min(400px,calc(100vw - 32px));max-height:70vh;overflow:auto;z-index:200;background:var(--panel);border:1px solid var(--line2);border-radius:12px;padding:18px;box-sizing:border-box;box-shadow:0 12px 35px #0009}.notification-item{padding:14px 0;border-bottom:1px solid var(--line2);font-size:14px;line-height:1.5}.notification-item p{margin:0 0 8px}.notification-item small,.notification-note{color:var(--muted);font-size:12px}.notification-actions{display:flex;gap:10px;flex-wrap:wrap}.notification-item blockquote{margin:10px 0;padding:10px;background:var(--bg2);border-left:3px solid var(--accent)}
.notification-reply{display:grid;gap:6px;margin:12px 0 14px;font-size:.8125rem;font-weight:600}.notification-reply textarea{box-sizing:border-box;width:100%;resize:vertical}.notification-actions .notification-action{height:38px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1;text-decoration:none}.notification-actions .notification-message,.notification-actions .notification-accept{color:#fff;border-color:transparent;filter:none}.notification-actions .notification-message{background:#2563eb}.notification-actions .notification-accept{background:#15803d}.notification-actions .notification-message:hover,.notification-actions .notification-message:focus-visible{background:#1d4ed8;color:#fff;filter:none}.notification-actions .notification-accept:hover,.notification-actions .notification-accept:focus-visible{background:#166534;color:#fff;filter:none}.notification-actions .notification-decline{color:#8d201b;border-color:#f0c2c0;background:#fff0ef}.notification-actions .notification-decline:hover{background:#fbe1df;border-color:#dca4a0;color:#8d201b}

.fixture-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start;margin-top:16px}.fixture-detail-layout .fixture-details{margin-top:0}.fixture-route-image{display:block;width:320px;text-decoration:none;color:var(--muted);font-size:12px}.fixture-route-image img{display:block;width:320px;height:220px;object-fit:contain;background:#fff;border:1px solid var(--line2);border-radius:8px;box-sizing:border-box}.fixture-route-image span{display:block;margin-top:8px}.fixture-route-image:hover{color:var(--accent)}@media(max-width:760px){.fixture-detail-layout{grid-template-columns:1fr}.fixture-route-image{max-width:100%}.fixture-route-image img{max-width:100%}}

/* Shared contact marks: the same assets and colours in every contact surface. */
.contact-icon{--contact-size:30px;display:inline-grid;place-items:center;width:var(--contact-size);height:var(--contact-size);padding:3px;box-sizing:border-box;flex:0 0 var(--contact-size);border:0;border-radius:5px;vertical-align:middle;text-decoration:none}
.contact-icon.email{background:#fc6719}.contact-icon.messenger,.contact-icon.discord{background:#fff}.contact-icon.whatsapp{background:#178447}
.contact-icon img{display:block;width:100%;height:100%;object-fit:contain}
.contact-icon-small{--contact-size:26px}
.contact-text-link,.contact-method-control{display:inline-flex;align-items:center;gap:8px}
.contact-method-control{display:flex}.contact-method-control select{min-width:0;flex:1}
.contact-icon:focus-visible{outline:2px solid var(--brand,#fc6719);outline-offset:3px}

.spare-listing-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.spare-listing-actions [hidden]{display:none}

#regTeam[hidden]{display:none}

.contact-priority{grid-column:1/-1;display:flex;align-items:center;gap:12px}.contact-priority [hidden]{display:none}.team-contact-options{display:inline-flex;gap:6px;align-items:center}.team-contact-options .contact-icon{--contact-size:26px}

.contact-row{flex-wrap:wrap}.contact-priority{flex-basis:100%}
.contact-value-control{display:flex;align-items:stretch;gap:10px}
.contact-value-control input{min-width:0;flex:1}
.contact-value-control .contact-prefer{flex-shrink:0;white-space:nowrap}
.contact-prefer[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent,#fff)}
/* Match account controls across the community and profile pages. */
#authArea .account-menu .userchip{height:40px;box-sizing:border-box}

/* Preserve PNG transparency; scale the title jersey without changing its layout height. */
.team-jersey-thumb,.club-jersey{background:transparent}
#clubCards .team-heading .team-jersey-thumb{transform:scale(1.25);margin-inline:3.5px}
#tzResults .league-team{grid-template-columns:5.4rem 64px 5rem minmax(70px,1fr) 4.3rem 26px;gap:5px;padding-top:6px;padding-bottom:6px}
#tzResults .tzbody>.league-team:first-child{border-top:0}
.schedule-league-badge{display:inline-flex;align-items:center;justify-content:center;width:112px;min-height:24px;box-sizing:border-box;border-radius:5px;padding:3px 7px;font-size:.7rem;font-weight:700;line-height:1.2;text-align:center}
#tzResults .team-category-jersey{display:flex;align-items:center;gap:5px}
#tzResults .team-jersey-thumb{width:30px;height:35px;flex-shrink:0}
#tzResults .club-tag{display:inline-flex;align-items:center;height:20px;font-size:.75rem;font-weight:700;line-height:1.3}
#tzResults .team-row-name{font-size:.75rem;font-weight:700;line-height:1.3}
#tzResults .competition-badge{display:inline-flex;align-items:center;justify-content:center;height:20px;box-sizing:border-box;font-size:.625rem;padding:2px 5px;line-height:1.3}
#tzResults .team-categories .zp-category{height:20px;min-width:20px;box-sizing:border-box}
#tzResults .team-recruitment{display:inline-flex;align-items:center;padding:2px 5px;border:1px solid #b9dfc8;border-radius:5px;background:#e9f7ee;color:#145b38;font-family:var(--body);font-size:.75rem;font-weight:700;line-height:1.3;white-space:nowrap}
#tzResults .team-recruitment:not(.is-recruiting){border-color:#f0c2c0;background:#fff0ef;color:#8d201b}

.spare-profile-link{color:inherit;text-decoration:none}.spare-profile-link:hover h4{color:var(--accent)}.spare-profile-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:12px}
.membership-list{display:grid;gap:14px;margin:24px 0}.membership-entry{display:flex;align-items:center;justify-content:space-between;gap:18px}.membership-entry h3{margin:0}.membership-entry p{margin:8px 0}@media(max-width:650px){.membership-entry{align-items:flex-start;flex-direction:column}}
.role-explainer,.membership-intro,.membership-detail{font-family:var(--body);font-size:.875rem;line-height:1.5;color:var(--muted)}.role-explainer{display:grid;gap:6px;margin:14px 0 18px}.role-explainer p{font-size:inherit;line-height:inherit;margin:0}.role-explainer strong{color:var(--text);font-weight:700}.membership-intro{margin:0 0 14px}.membership-detail{margin:0}

/* Public team directory cards use the same compact card language as My Teams. */
#clubCards .tzhead{min-height:100px;box-sizing:border-box;align-items:center}
#clubCards .team-heading{align-self:stretch;align-items:center}
#clubCards .team-heading h4{margin:0;line-height:1.14}
#clubCards .team-recruitment{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid #f0c2c0;border-radius:6px;background:#fff0ef;color:#8d201b;font-family:var(--body);font-size:.8rem;font-weight:700;line-height:1.3}
#clubCards .team-recruitment.is-recruiting{border-color:#b9dfc8;background:#e9f7ee;color:#145b38}
#clubCards .team-card-badges{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding-bottom:2px}
#clubCards .team-fact-badge,#clubCards .competition-badge,#clubCards .team-categories{height:22px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:4px;white-space:nowrap}
#clubCards .team-fact-badge{padding:2px 5px;border:1px solid color-mix(in srgb,currentColor 35%,transparent);font-size:.65625rem;font-weight:700}
#clubCards .competition-badge{padding:2px 5px;font-size:.65625rem}
#clubCards .team-categories{gap:0;font-size:.75rem}
#clubCards .team-categories .zp-category{height:22px;min-width:22px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border-radius:4px}
#clubCards .team-card-badges .team-recruitment{height:22px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0;padding:2px 5px;font-size:.65625rem;line-height:1.2}
#clubCards .team-card-badges .team-contact-options{height:22px;display:inline-flex;align-items:center;flex:0 0 auto}
#clubCards .team-card-badges .direct-message-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}
#clubCards .team-category-label{display:none}
#clubCards .public-team-roster{display:grid;gap:8px;font-size:.8rem;line-height:1.5}
#clubCards .team-captain{display:grid;gap:2px}
#clubCards .team-members{margin:0}
#clubCards .team-members summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;color:var(--muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
#clubCards .team-members summary::-webkit-details-marker{display:none}
#clubCards .team-members summary::before{content:'+';display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid var(--line2);border-radius:4px;font-size:.9rem;line-height:1;color:var(--text)}
#clubCards .team-members[open] summary::before{content:'−'}
#clubCards .team-member-list{display:grid;gap:4px;margin:8px 0 0 21px}
#clubCards .team-member-list a{display:block}

#clubCards .team-fact-badge,#clubCards .competition-badge,#clubCards .team-categories .zp-category{border:0;border-radius:4px;font-weight:800}
#clubCards .team-division-badge{background:var(--panel2);border:1px solid var(--line2);color:var(--text)}
#clubCards .team-meta-label{display:block;color:var(--muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}

#clubCards .tzhead{min-height:76px;padding-top:4px;padding-bottom:4px}
#clubCards .team-heading .team-jersey-thumb{width:76px;height:76px;transform:none;margin:5px 0}

#clubCards .team-region-row{display:flex;justify-content:flex-start;align-items:center;gap:8px}
#clubCards .team-region-row .team-meta-label{margin:0}
#clubCards .team-region-row>span:last-child{display:inline-flex;align-items:center;gap:6px}
#clubCards .region-flag{display:inline-block;width:22px;height:15px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px color-mix(in srgb,var(--text) 16%,transparent);vertical-align:middle}
#clubCards .region-fallback{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:1.1em;line-height:15px;box-shadow:none}
.directory-pending{border-left:4px solid #145b38;background:#e9f7ee;color:#145b38;font-weight:600}
#mediaSearch{flex:1 1 440px;min-width:360px;max-width:560px;height:40px;box-sizing:border-box;padding:7px 11px}
@media(max-width:650px){#mediaSearch{min-width:0;flex-basis:100%;max-width:none}}
:root:not([data-theme=dark]) #mediaSearch{background:#fff}
#mediaSearch{height:42px}
#p-media .controls{background:var(--bg)}

.media-post-caption{display:block;color:inherit;text-decoration:none;font-weight:700}.media-post-caption:hover,.media-post-caption:focus-visible{color:var(--accent);text-decoration:none}.media-post-caption:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}

.gitem .media-post-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* The navigation already identifies the page; omit the repeated introductory strapline. */
.page>.phead>div>.eyebrow{display:none}

.stream-how-to{max-width:780px;margin-bottom:24px}.stream-how-to h3{margin:0 0 8px}.stream-how-to p{max-width:68ch}.stream-listing h3{margin:0}.stream-empty{min-height:130px;display:grid;align-content:center}.stream-empty p{margin:3px 0}
.stream-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stream-card{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.stream-card>button{display:block;width:100%;padding:0;border:0;background:#000;position:relative;cursor:pointer}.stream-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.stream-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:58px;height:44px;border-radius:10px;background:#e7252dcc;color:#fff;font-size:20px}.stream-card>div{padding:14px}.stream-card h3{margin:9px 0 8px;font-size:1.1rem}.stream-card p{margin:0;color:var(--muted);font-size:.8rem}.stream-card .stream-time{margin-top:2px}.stream-dialog{width:min(1280px,calc(100vw - 32px));padding:38px 16px 16px;border:1px solid var(--line2);border-radius:14px;background:var(--panel)}.stream-dialog::backdrop{background:#07101ccc}.stream-dialog-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px}.stream-dialog iframe{width:100%;border:0;aspect-ratio:16/9;background:#000}.stream-dialog #streamChat{aspect-ratio:auto;min-height:420px}.stream-close{position:absolute;right:10px;top:6px;border:0;background:transparent;color:var(--text);font-size:28px;cursor:pointer}@media(max-width:1100px){.stream-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.stream-grid{grid-template-columns:1fr}.stream-dialog-grid{grid-template-columns:1fr}.stream-dialog #streamChat{min-height:300px}}
.live-streams-description span{display:inline-block;margin-top:5px}
.resource-link-title{color:inherit;text-decoration:none}.resource-link-title:hover,.resource-link-title:focus-visible{color:var(--accent);text-decoration:none}.resource-link-title:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}.resource-card .badge.dev{background:var(--panel);color:var(--muted);border-color:var(--line2)}
.resource-card{border-color:var(--line)}.resource-link-brand{display:inline-flex;align-items:center;gap:9px}.resource-link-brand img{width:26px;height:26px;object-fit:contain;border-radius:6px;background:#fff;padding:3px;box-sizing:border-box;box-shadow:0 1px 3px #17263f1f}.resource-card.resource-results{background:#ecf8f0;border-color:#b9dfc8}.resource-card.resource-planning{background:#edf4ff;border-color:#c3d8fa}.resource-card.resource-reference{background:#fff7df;border-color:#edd99c}.resource-card.resource-ratings{background:#f3edff;border-color:#d5c1fa}.resource-card.resource-tech{background:#e7f8f8;border-color:#b4e4e1}:root[data-theme=dark] .resource-card.resource-results{background:#173529}:root[data-theme=dark] .resource-card.resource-planning{background:#172d4b}:root[data-theme=dark] .resource-card.resource-reference{background:#3b321b}:root[data-theme=dark] .resource-card.resource-ratings{background:#30244b}:root[data-theme=dark] .resource-card.resource-tech{background:#153a3b}
#spareCards .card{gap:7px;padding:14px;font-size:.8125rem}#spareCards .kv,#spareCards .kv .muted,#spareCards .card>p{font-size:.8125rem;line-height:1.35}#spareCards .top h4{margin:0;font-size:1.125rem}.spare-divider{height:1px;background:var(--line);margin:2px -14px}.spare-preferred-contact{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}.spare-preferred-contact>span{color:var(--muted);font-size:.8125rem}.spare-round-1{background:#401ca8;color:#fff;border:1px solid #401ca8}#spareCards .badge,#spareCards .competition-badge,#spareCards .schedule-league-badge{display:inline-flex;align-items:center;justify-content:center;width:76px;height:22px;min-height:22px;box-sizing:border-box;font-size:.65625rem;line-height:1.2;padding:3px 5px}#spareCards .competition-badge{white-space:nowrap}
#spareCards .badge{white-space:nowrap}
#spareCards .schedule-league-badge{width:auto;min-width:76px;max-width:60%;height:auto;white-space:normal;overflow-wrap:anywhere}
.notification-reply{display:grid;gap:6px;margin-top:12px;color:var(--muted);font-size:.8rem}.notification-reply textarea{width:100%;box-sizing:border-box;resize:vertical;background:var(--panel);color:var(--text);border:1px solid var(--line2);border-radius:7px;padding:8px;font:inherit}.notification-response{border-left-color:#b9dfc8}
/* Scoring is grouped by the order riders encounter it during a race. */
.scoring-head{margin-bottom:14px}.score-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}.score-summary article{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.score-summary article>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-weight:800}.score-summary h3{margin:0;font-size:1rem}.score-summary p{margin:3px 0 0;font-size:.82rem;color:var(--muted);line-height:1.45}.score-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.score-rule{padding:20px}.score-rule-heading{display:flex;align-items:center;gap:12px}.score-rule-code{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;font-family:var(--disp);font-size:1rem;font-weight:800;background:var(--panel2);color:var(--accent)}.score-rule-heading h3{margin:0;font-size:1.2rem}.score-rule-heading p{margin:2px 0 0;color:var(--muted);font-size:.8rem}.score-copy{margin:16px 0;color:var(--text);font-size:.9rem;line-height:1.55}.score-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;overflow:hidden}.score-examples>div{padding:11px;display:grid;gap:4px}.score-examples>div+div{border-left:1px solid var(--line)}.score-examples span{color:var(--muted);font-size:.72rem}.score-examples strong{font-family:var(--disp);font-size:1.1rem}.score-fin .score-examples{grid-template-columns:repeat(5,minmax(0,1fr))}.score-fts{border:1px solid var(--line);border-radius:9px;overflow:hidden}.score-fts-title{padding:9px 12px;background:var(--panel2);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.score-fts .twrap{border:0}.score-fts table{min-width:0;width:100%}.score-fts td{padding:5px 12px}.score-callout{display:grid;gap:3px;padding:12px;border-radius:9px;background:#fff0ef;border:1px solid #f0c2c0;color:#8d201b}.score-callout span{font-size:.8rem}.score-rule .note{margin:14px 0 0;font-size:.78rem}.score-league{margin-top:18px;padding:22px;display:grid;grid-template-columns:minmax(260px,.9fr) 1.4fr;gap:28px;align-items:start}.score-league h3{margin:4px 0 6px;font-size:1.35rem}.score-league p{margin:0;color:var(--muted);font-size:.88rem;line-height:1.55}.score-league-rules{display:grid;gap:10px}.score-league-rules>div{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.score-league-rules>div:last-child{border-bottom:0}.score-league-rules strong{font-size:.84rem}.score-league-rules span{font-size:.8rem;color:var(--muted);line-height:1.45}.score-reference{margin:14px 0 0;color:var(--muted);font-size:.78rem}@media(max-width:760px){.score-summary,.score-rules,.score-league{grid-template-columns:1fr}.score-fin .score-examples{grid-template-columns:repeat(3,minmax(0,1fr))}.score-fin .score-examples>div:nth-child(4){border-left:0;border-top:1px solid var(--line)}.score-fin .score-examples>div:nth-child(5){border-top:1px solid var(--line)}.score-league-rules>div{grid-template-columns:1fr;gap:3px}}
.direct-messages-layout{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:20px}.direct-conversation-list{border:1px solid var(--line2);border-radius:12px;background:var(--panel);overflow:hidden}.direct-conversation-list h2{padding:18px;margin:0;border-bottom:1px solid var(--line2)}.direct-conversation{position:relative;display:grid;gap:4px;padding:14px 18px;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}.direct-conversation.active{background:var(--panel2)}.direct-conversation span{font-size:.8rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.direct-conversation b{position:absolute;right:14px;top:14px;border-radius:12px;background:#dc2626;color:#fff;font-size:.7rem;padding:2px 7px}.direct-thread{min-height:520px;display:flex;flex-direction:column;overflow:hidden}.direct-conversation-list h2,.direct-thread header{height:68px;box-sizing:border-box;display:flex;align-items:center;padding:0 18px;margin:0;border-bottom:1px solid var(--line2)}.direct-conversation-list h2{font-size:1.2rem}.direct-thread header h2{margin:0;font-size:1.2rem}.direct-thread-messages{display:grid;gap:10px;flex:1;padding:18px}.direct-message{max-width:76%;padding:10px 13px;border-radius:18px 18px 18px 5px;background:#e5e7eb;color:#17263f}.direct-message.mine{margin-left:auto;border-radius:18px 18px 5px 18px;background:#1476ee;color:#fff}.direct-message p{margin:4px 0}.direct-message small{color:#526078}.direct-message.mine small{color:#dbeafe}.direct-compose{display:grid;gap:10px;margin:20px 18px 18px}.direct-compose textarea{width:100%;box-sizing:border-box;resize:vertical}@media(max-width:700px){.direct-messages-layout{grid-template-columns:1fr}.direct-thread{min-height:420px}}
#main:has(.direct-messages-layout){min-height:calc(100vh - var(--header-height, 0px) - 112px)}
.direct-messages-layout{min-height:calc(100vh - var(--header-height, 0px) - 150px)}
.direct-messages-layout>.direct-conversation-list,.direct-messages-layout>.direct-thread{min-height:inherit}
@media(max-width:700px){.direct-messages-layout{min-height:0}.direct-messages-layout>.direct-thread{min-height:420px}}
.admin-club-list{display:grid;gap:10px}.admin-club-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.admin-club-list article>div:first-child{display:grid;gap:4px}.admin-club-list span{font-size:.82rem;color:var(--muted)}.admin-club-list article>div:last-child{display:flex;gap:8px}.admin-club-list form{margin:0}@media(max-width:650px){.admin-club-list article{align-items:flex-start;flex-direction:column}}
/* Compact private-message reading rhythm. */
.direct-thread-messages{gap:6px;padding:14px 18px}.direct-message{max-width:72%;padding:7px 10px;font-size:.82rem;line-height:1.3}.direct-message strong{font-size:.76rem}.direct-message p{margin:2px 0}.direct-message small{font-size:.68rem}.direct-compose{gap:7px;margin:12px 18px 14px}.direct-compose textarea{font-size:.85rem;line-height:1.35;padding:8px 10px}.direct-compose .btn{min-height:36px;font-size:.82rem}
/* Inbox fills the available viewport without pushing below the page footer. */
#main:has(.direct-messages-layout){min-height:0}
.direct-messages-layout{height:calc(100dvh - 270px);min-height:420px}
.direct-messages-layout>.direct-conversation-list,.direct-messages-layout>.direct-thread{min-height:0}
.direct-compose{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
.direct-compose textarea{height:42px;min-height:42px;resize:none}
.direct-compose .btn{height:42px;min-height:42px;white-space:nowrap}
@media(max-width:700px){.direct-messages-layout{height:auto;min-height:0}.direct-messages-layout>.direct-thread{min-height:420px}.direct-compose{grid-template-columns:1fr}.direct-compose textarea{height:auto;min-height:64px}.direct-compose .btn{height:auto}}
/* Keep the Inbox composer in view; messages scroll inside their pane. */
.direct-thread{height:100%}
.direct-thread-messages{min-height:0;overflow-y:auto}
.direct-conversation-list h2,.direct-thread header{height:68px;min-height:68px}
.direct-thread header h2{line-height:1}
.direct-new-message{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:10px;border-bottom:1px solid var(--line)}
.direct-new-message select{min-width:0;padding:7px 8px;font-size:.76rem}.direct-new-message .btn{white-space:nowrap}
.inbox-message-toast{position:fixed;right:20px;bottom:20px;z-index:500;display:block;max-width:min(360px,calc(100vw - 40px));padding:13px 16px;border-radius:9px;background:#1769d1;color:#fff;box-shadow:0 12px 28px #0004;font-weight:700;text-decoration:none;transform:translateY(120px);opacity:0;transition:transform .2s,opacity .2s}.inbox-message-toast.show{transform:translateY(0);opacity:1}.inbox-message-toast:hover{background:#0c4d9f;color:#fff}
.direct-conversation-list h2{justify-content:space-between}.direct-new-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;box-sizing:border-box;color:var(--accent);border:1px solid var(--accent);border-radius:6px;font-size:1.3rem;line-height:1;text-decoration:none}.direct-new-icon:hover{background:var(--accent);color:#fff}.direct-user-search{display:grid;gap:10px;padding:18px;overflow:auto}.direct-user-search label{font-size:.75rem;font-weight:700;text-transform:uppercase;color:var(--muted)}.direct-user-search input{width:100%;box-sizing:border-box}.direct-user-search #recipient-results{display:grid;gap:5px}.direct-user-search #recipient-results button{text-align:left;border:1px solid var(--line);background:var(--panel2);color:var(--text);padding:10px 12px;border-radius:7px;cursor:pointer}.direct-user-search #recipient-results button:hover{border-color:var(--accent);color:var(--accent)}

.direct-user-search-line{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}.direct-user-search-line label{margin:0}.profile-wrap:has(.direct-messages-layout){max-width:1180px}
.direct-user-search #recipient-results{margin-left:31px}
.direct-thread-messages{align-content:start;align-items:start}.direct-message{height:fit-content}

.invitation-cards{display:grid;gap:8px;padding:14px 18px;border-bottom:1px solid var(--line)}.invitation-card{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--line2);border-radius:9px;background:var(--panel2)}.invitation-card-label{font-family:var(--disp);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.invitation-card>strong{font-size:1rem}.invitation-card p{margin:0;font-size:.82rem;color:var(--muted)}.invitation-card .invitation-note{color:var(--text)}.invitation-actions{display:flex;gap:9px;margin-top:3px}.invitation-actions form{margin:0}.invitation-accept{background:#167844;border-color:#167844;color:#fff}.invitation-accept:hover{background:#106337;border-color:#106337;color:#fff}.invitation-decline{color:#b42318;border-color:#d55d55;background:transparent}.invitation-decline:hover{background:#fff0ef;border-color:#b42318;color:#8e1a14}.invitation-status{font-size:.78rem;font-weight:700;color:var(--muted)}

.direct-thread header{justify-content:space-between}.direct-thread header form{margin:0}.direct-delete{padding:6px 10px;font-size:.75rem;color:#b42318;border-color:#d55d55;background:transparent}.direct-delete:hover{background:#fff0ef;border-color:#b42318;color:#8e1a14}

.direct-compose{position:relative}.direct-compose .chat-toolbar{margin:0}.direct-link-preview{display:block;overflow:hidden;margin:8px 0 2px;border:1px solid #ffffff55;border-radius:8px;color:inherit;text-decoration:none;background:#ffffff18}.direct-link-preview img{display:block;width:100%;max-height:180px;object-fit:cover}.direct-link-preview>span{display:grid;gap:2px;padding:8px 10px}.direct-link-preview small{color:inherit;opacity:.78}.direct-link-preview strong{font-size:.82rem;line-height:1.25}.direct-message:not(.mine) .direct-link-preview{border-color:var(--line2);background:var(--panel)}
.direct-compose .chat-toolbar{grid-column:1 / -1}.direct-compose textarea{grid-column:1;grid-row:2}.direct-compose>.btn{grid-column:2;grid-row:2;align-self:stretch}
@media(max-width:700px){.direct-compose .chat-toolbar,.direct-compose textarea,.direct-compose>.btn{grid-column:1;grid-row:auto}}

.direct-conversation{grid-template-columns:38px minmax(0,1fr);align-items:center}.direct-conversation-avatar{position:relative;display:grid!important;place-items:center;width:34px;height:34px;border-radius:50%;overflow:hidden;background:var(--accent);color:#fff;font-weight:700;font-size:.75rem;line-height:1}.direct-conversation-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.direct-conversation-copy{display:grid;gap:4px;min-width:0}.direct-conversation-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.direct-conversation-copy>span{display:block}

.direct-thread header .direct-thread-person{display:flex;align-items:center;gap:10px;min-width:0}.direct-thread-person .direct-conversation-avatar{flex:0 0 34px}.direct-thread-person>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.direct-compose .chat-toolbar{display:flex;align-items:center;gap:6px;margin:0}.direct-compose .chat-toolbar button,.direct-compose .emoji-picker button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line2);background:var(--panel2);color:var(--text);border-radius:5px;min-width:32px;height:30px;padding:0;cursor:pointer}.direct-compose .emoji-picker{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:5px;margin:0}.direct-compose .emoji-picker[hidden]{display:none}
.direct-compose .emoji-picker{position:absolute;z-index:10;left:152px;top:0;width:min(360px,calc(100% - 160px));padding:6px;border:1px solid var(--line2);border-radius:7px;background:var(--panel);box-shadow:0 8px 20px #0002}.direct-compose .emoji-picker[hidden]{display:none}
.direct-compose .emoji-picker{width:max-content;max-width:calc(100% - 160px);flex-wrap:nowrap;overflow-x:auto}
.direct-upload-label{display:inline-flex;align-items:center;justify-content:center;width:42px;min-width:42px;border:1px solid var(--line2);border-radius:6px;background:var(--panel2);color:var(--muted);font-size:1.1rem;cursor:pointer}.direct-upload-label:hover{color:var(--accent);border-color:var(--accent)}.direct-upload-label input{position:absolute;width:1px;height:1px;opacity:0}.direct-upload-label[data-file-name]::after{content:attr(data-file-name);position:absolute;bottom:calc(100% + 4px);right:0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;color:var(--muted)}.direct-message-media{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}.direct-message-media img,.direct-message-media video{display:block;max-width:min(520px,100%);max-height:300px;border-radius:7px;object-fit:contain;background:#000}
.userchip .av{background:#1f72e8;color:#fff}

#p-spare .controls .spare-listing-actions{margin-left:auto}
@media(max-width:700px){#p-spare .controls .spare-listing-actions{margin-left:0;width:100%}}

/* Keep the legal line aligned with the authentication panel. */
.auth-footer{width:100%;margin:18px auto 0;text-align:center;line-height:1.55}
.auth-community-dialog{width:min(620px,calc(100vw - 32px));padding:28px}.auth-community-dialog h2{margin:0;font-size:1.65rem}.auth-community-dialog p{margin:0 0 13px;line-height:1.55}.auth-community-signoff{margin-top:18px!important}.auth-community-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.auth-community-actions .btn{min-height:42px;text-decoration:none}@media(max-width:560px){.auth-community-dialog{padding:22px}.auth-community-actions{flex-direction:column-reverse}.auth-community-actions .btn{width:100%}}

/* About-inspired scoring cards: quiet artwork sits behind, never over, the copy. */
#p-scoring .configured-scoring{border:0;background:transparent;box-shadow:none;padding:0;margin-bottom:24px}
#p-scoring .configured-scoring .phead{padding:clamp(22px,4vw,36px);border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,var(--panel) 30%,var(--panel2));position:relative;overflow:hidden}
#p-scoring .configured-scoring .phead::after{content:"";position:absolute;right:-35px;top:-90px;width:290px;height:290px;border:2px solid color-mix(in srgb,var(--accent) 18%,transparent);border-radius:50%;box-shadow:0 0 0 35px color-mix(in srgb,var(--accent) 5%,transparent),0 0 0 80px color-mix(in srgb,var(--accent) 3%,transparent);pointer-events:none}
#p-scoring .configured-scoring .phead>div{position:relative;z-index:1}
#p-scoring .configured-scoring-grid article,#p-scoring .score-summary article,#p-scoring .score-rule,#p-scoring .score-league{position:relative;isolation:isolate;overflow:hidden;background:#fff}
#p-scoring .configured-scoring-grid article::before,#p-scoring .score-summary article::before,#p-scoring .score-rule::before,#p-scoring .score-league::before{content:"";position:absolute;z-index:-1;right:-55px;top:-65px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle at 40% 40%,color-mix(in srgb,var(--accent) 15%,transparent),color-mix(in srgb,var(--accent) 4%,transparent) 45%,transparent 72%);pointer-events:none}
#p-scoring .configured-scoring-grid article{padding:20px;border-radius:13px}
#p-scoring .configured-scoring-grid h3,#p-scoring .score-rule-heading,#p-scoring .score-league h3{position:relative;z-index:1}
#p-scoring .configured-scoring-grid h3{min-height:2.6em;margin:0 0 14px;font-size:clamp(1.3rem,1.7vw,1.65rem);line-height:1.16;text-wrap:balance}
#p-scoring .configured-scoring-grid p{clear:both}
#p-scoring .score-rule-heading{min-height:72px;padding-bottom:12px;border-bottom:1px solid var(--line)}
#p-scoring .score-rule-code{background:color-mix(in srgb,var(--accent) 12%,white);font-size:1.25rem}
#p-scoring .score-rule{padding:24px}
#p-scoring .score-league{padding:26px}
:root[data-theme=dark] #p-scoring .configured-scoring-grid article,:root[data-theme=dark] #p-scoring .score-summary article,:root[data-theme=dark] #p-scoring .score-rule,:root[data-theme=dark] #p-scoring .score-league{background:var(--panel)}
#p-scoring .configured-scoring-grid article::after,#p-scoring .score-summary article::after,#p-scoring .score-rule::after,#p-scoring .score-league::after{content:"";position:absolute;z-index:-1;right:12px;top:10px;width:90px;height:90px;background-position:center;background-repeat:no-repeat;background-size:contain;opacity:.14;pointer-events:none}
#p-scoring .scoring-card-results::after,#p-scoring .score-league::after{background-image:url('/static/hub/scoring/leaderboard.svg')}
#p-scoring .scoring-card-finish::after,#p-scoring .score-fin::after,#p-scoring .score-summary article:nth-child(2)::after{background-image:url('/static/hub/scoring/finish.svg')}
#p-scoring .scoring-card-gc::after,#p-scoring .score-fts::after{background-image:url('/static/hub/scoring/timer.svg')}
#p-scoring .scoring-card-green::after,#p-scoring .score-summary article:first-child::after{background-image:url('/static/hub/scoring/sprint.svg')}
#p-scoring .scoring-card-polka::after{background-image:url('/static/hub/scoring/mountain.svg')}
#p-scoring .score-fal::after{background-image:url('/static/hub/scoring/flag.svg')}
#p-scoring .score-ttt::after,#p-scoring .score-summary article:nth-child(3)::after{background-image:url('/static/hub/scoring/team.svg')}
#p-scoring .score-rule::after{width:140px;height:140px;right:10px;top:4px;opacity:.11}
/* Option A: compact, quiet native dropdowns throughout RaceCentral. */
select:not([multiple]):not([size]){box-sizing:border-box;height:38px;min-height:38px;padding:0 34px 0 11px;border:1px solid var(--line2);border-radius:6px;background-color:#202a3a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aebbd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;color:var(--text);font-family:var(--body);font-size:.8rem;line-height:1.2;appearance:none;-webkit-appearance:none}
select:not([multiple]):not([size]):hover:not(:disabled){border-color:var(--muted)}
select:not([multiple]):not([size]):disabled{opacity:.6;cursor:not-allowed}
@media(max-width:600px){select:not([multiple]):not([size]){height:44px;min-height:44px}}
/* Soft buttons: align ordinary actions with the compact dropdown system. */
.btn:not(.sm):not(.auth-provider-button){box-sizing:border-box;height:38px;min-height:38px;padding:0 13px;border-radius:6px;font-family:var(--body);font-size:.8rem;line-height:1.2}
.btn:not(.primary):not(.twitch):not(.connected-button):not(.is-connected):not(.auth-provider-button){background:transparent;border-color:var(--line2);color:var(--text)}
.btn.primary:not(.is-connected):not(.twitch){background:#293d68;border-color:#293d68;color:#d4e0ff}
.btn.primary:not(.is-connected):not(.twitch):hover{background:#354e80;border-color:#354e80;color:#fff;filter:none}
.btn:not(.primary):not(.twitch):not(.connected-button):not(.is-connected):not(.auth-provider-button):hover{background:var(--panel2);border-color:var(--muted);color:var(--text);filter:none}
@media(max-width:600px){.btn:not(.sm):not(.auth-provider-button){height:44px;min-height:44px}}

/* Keep the homepage creation action orange without changing other primary actions. */
.btn.primary.create-series-button:not(.is-connected):not(.twitch){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;text-align:center;text-decoration:none;background:#c54a08;border-color:#c54a08;color:#fff}
.btn.primary.create-series-button:not(.is-connected):not(.twitch):hover{background:#b84300;border-color:#b84300;color:#fff;filter:none}
.btn.primary.create-series-button:focus-visible{outline:3px solid var(--accent-2);outline-offset:3px}

/* RC13: a page needs a name for assistive technology even where the visual
   design does not show one. Clipped rather than display:none, so it is still
   announced. Standard clip-path pattern; stays focusable if ever needed. */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.visually-hidden:focus,.visually-hidden:active{position:static!important;width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:normal}

/* Keep the series creation action at the right end of shared navigation. */
.nav a{padding-inline:10px}
.nav a[href="/series/create/"],.welcome-page .welcome-topnav a.create-series-nav{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;align-self:center;margin-inline-start:auto;min-height:38px;padding:8px 14px;border:1px solid #ff6b00;border-radius:6px;background:#ff6b00;color:#0b203e;font-weight:600;text-decoration:none;white-space:nowrap}
.nav a[href="/series/create/"]{margin-block:6px}
.nav a[href="/series/create/"]:hover,.welcome-page .welcome-topnav a.create-series-nav:hover{background:#e95a00;border-color:#e95a00;color:#0b203e}
.nav a[href="/series/create/"]:focus-visible,.welcome-page .welcome-topnav a.create-series-nav:focus-visible{outline:3px solid var(--accent-2);outline-offset:2px}
@media(max-width:600px){.nav a[href="/series/create/"],.welcome-page .welcome-topnav a.create-series-nav{min-height:44px}}

@media(max-width:800px){.welcome-page .landing-topbar{flex-wrap:wrap}.welcome-page .welcome-topnav{width:100%;justify-content:flex-end}}

/* Let each race banner fit its text on every screen size. */
.rd-dashboard>.rd-hero{min-height:0;height:auto}
.rd-dashboard>.rd-hero>.rd-hero-content{padding-block:12px}

/* Race headers use their round card colour, independently of the landing banner. */
#fixtureList .fixture-colour-header{background:linear-gradient(110deg,var(--fixture-header-start),var(--fixture-header-end));color:var(--fixture-header-ink)}
#fixtureList .fixture-colour-header::after{display:none}
#fixtureList .fixture-colour-header h2,#fixtureList .fixture-colour-header p,#fixtureList .fixture-colour-header .rd-note,#fixtureList .fixture-colour-header .route-link{color:inherit}

/* Align guest header actions and use the shared green action accent for sign-in. */
.topbar #authArea>a.btn,.topbar>.theme-toggle{display:inline-flex;align-items:center;justify-content:center;height:38px;min-height:38px}
.topbar #authArea>a.btn.primary{background:#e5f4eb;border-color:#bfdcc9;color:#176c3b}
.topbar #authArea>a.btn.primary:hover,.topbar #authArea>a.btn.primary:focus-visible{background:#d7ecdf;border-color:#8bbca0;color:#176c3b;filter:none}

/* Match homepage action sizing while retaining the orange creation action. */
.welcome-page .welcome-topnav a.btn.create-series-nav{padding:0 13px;background:#ff6b00;border-color:#ff6b00;color:#0b203e}
.welcome-page .welcome-topnav a.btn.create-series-nav:hover{background:#e95a00;border-color:#e95a00;color:#0b203e;filter:none}

/* Directory filters align with its 44px search and scope controls. */
.series-directory-wrap .sc-toolbar .sc-selects select{height:44px;min-height:44px}

/* Match the shared navigation creation button to the guest account actions. */
.nav a[href="/series/create/"]{height:38px;min-height:38px;padding:0 13px;font-size:.8rem;line-height:1.2}

/* Immediate, nonblocking document/data loading feedback. */
.navigation-loading[hidden]{display:none}
.navigation-loading{position:fixed;inset:0;z-index:120;display:grid;place-content:center;justify-items:center;gap:12px;box-sizing:border-box;padding:24px;background:var(--navigation-loading-backdrop,#ffffffb8);background:color-mix(in srgb,var(--bg,#fff) 68%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--text,#142440);font:600 1rem/1.4 var(--body,system-ui,sans-serif);pointer-events:none}
:root[data-theme=dark] .navigation-loading{--navigation-loading-backdrop:#0d1727b8}
.navigation-loading>span:last-child{max-width:min(32rem,calc(100vw - 48px));text-align:center;overflow-wrap:anywhere}
.navigation-loading-spinner{flex:none;width:32px;height:32px;box-sizing:border-box;border:3px solid #ff6b0033;border-top-color:#ff6b00;border-radius:50%;animation:navigation-loading-spin .8s linear infinite}
html[data-navigation-loading=true]{cursor:progress}
html[data-navigation-loading=true]::before{content:'';position:fixed;inset:0 0 auto;height:3px;z-index:121;background:linear-gradient(90deg,transparent,#ff6b00 45%,#ff6b00 55%,transparent);background-size:45% 100%;background-repeat:no-repeat;animation:navigation-loading-track 1.2s ease-in-out infinite;pointer-events:none}
@keyframes navigation-loading-spin{to{transform:rotate(1turn)}}
@keyframes navigation-loading-track{from{background-position:-90% 0}to{background-position:190% 0}}
@media(prefers-reduced-motion:reduce){.navigation-loading-spinner,html[data-navigation-loading=true]::before{animation:none}html[data-navigation-loading=true]::before{background:#ff6b00}}

/* Account actions share one decorative icon column and retain their text labels. */
.account-dropdown>a,.account-logout-form>button{display:flex;align-items:center;gap:10px}
.account-menu-icon{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:20px;color:var(--muted);line-height:1}
.account-menu-icon svg{display:block;width:18px;height:18px}
.account-menu-icon--messages,.notification-menu>span[aria-hidden=true]{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif}
.account-menu-icon--messages{font-size:18px}
.notification-menu>span[aria-hidden=true]{display:block;font-size:24px;line-height:1}

/* Shared schedule cards use the same geometry in both themes. */
#fixtureList>.rd-dashboard{padding:0;background:transparent}
#fixtureList .fixture-powerup-repeat{font-size:.8rem}
#fixtureList .rd-information{grid-template-columns:repeat(3,minmax(0,1fr))}
#fixtureList .rd-information>.rd-map{grid-column:3}
#fixtureList .rd-information--single-info>.rd-panel:not(.rd-map){grid-column:1/span 2}
#fixtureList .rd-information .powerup-list{align-items:flex-start}
#fixtureList .rd-information .powerup-list li{max-width:100%;min-width:0}
#fixtureList .rd-information .powerup-list li>span{min-width:0}
#fixtureList .rd-information--single-info .powerup-list{overflow-x:auto;overscroll-behavior-x:contain}
#fixtureList .rd-information--single-info .powerup-list small{max-width:none;white-space:nowrap}
#fixtureList .rd-information .fixture-powerup-repeat{display:block;margin:10px 0 0}
@media(max-width:1023px){#fixtureList .rd-information{grid-template-columns:repeat(2,minmax(0,1fr))}#fixtureList .rd-information>.rd-map,#fixtureList .rd-information--single-info>.rd-panel:not(.rd-map){grid-column:1/-1}}
@media(max-width:639px){#fixtureList .rd-information{grid-template-columns:minmax(0,1fr)}#fixtureList .rd-information>.rd-panel{grid-column:1/-1}}
/* Reuse the removed visible label's line, balancing the existing 2px/5px gaps. */
#fixtureList .rd-select{position:relative}
#fixtureList .rd-start-categories{display:flex;align-items:center;gap:3px;min-width:0;height:calc(1lh - 3px);flex:0 0 calc(1lh - 3px);font-size:.8rem;line-height:1.55;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;color:var(--muted)}
#fixtureList .rd-start-categories::-webkit-scrollbar{height:0}
#fixtureList .rd-start-categories:focus-visible{outline:2px solid var(--rd-blue);outline-offset:2px}
#fixtureList .rd-start-categories .rd-start-category{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:18px;width:auto;height:18px;padding:0 4px;border:1px solid var(--line);border-radius:4px;box-sizing:border-box;font-size:.72rem;font-weight:600;line-height:1}
#fixtureList .rd-zrs-trigger{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:auto;height:18px;min-height:0;padding:0 8px;border:1px solid var(--line2,#8290a5);border-radius:4px;background:var(--panel2,#e8edf4);color:var(--text,#142440);font:600 .72rem/1 var(--body,sans-serif);letter-spacing:.04em;cursor:pointer}
#fixtureList .rd-zrs-trigger:hover,#fixtureList .rd-zrs-trigger[aria-expanded=true]{border-color:var(--rd-blue,#2468c9);background:var(--panel,#fff)}
#fixtureList .rd-zrs-trigger:focus-visible{outline:2px solid var(--rd-blue,#2468c9);outline-offset:-2px}
.fixture-zrs-popover{position:fixed;inset:auto;z-index:10000;box-sizing:border-box;width:max-content;max-width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:0;padding:12px;border:1px solid var(--line2,#8290a5);border-radius:9px;background:var(--panel,#fff);color:var(--text,#142440);font:400 .8rem/1.45 var(--body,sans-serif);box-shadow:0 8px 28px #0004;overflow:auto;overflow-wrap:anywhere;white-space:normal}
.fixture-zrs-popover-title,.fixture-zrs-popover-set{display:block}
.fixture-zrs-popover-set{margin-top:2px;color:var(--muted,#526178)}
.fixture-zrs-popover ul{display:grid;gap:5px;list-style:none;margin:8px 0 0;padding:0}
.fixture-zrs-popover li{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fixture-zrs-popover-band{min-width:0;padding:2px 6px;border-radius:4px;font-weight:600}
.fixture-zrs-popover li>span:last-child{flex:none}
#fixtureList .rd-card-flames .rd-flame{font-size:18px}

/* Match the series selector's line box plus its 16px padding and 2px border. */
.nav a[href="/series/create/"],.welcome-page .welcome-topnav a.btn.create-series-nav{height:max(38px,calc(1.105rem + 18px));min-height:38px;gap:5px}
.nav a[href="/series/create/"]::before,.welcome-page .welcome-topnav a.btn.create-series-nav::before{content:"+";color:#fff;line-height:1;font-weight:700}

/* The plain shared schedule uses the same desktop thirds. */
#fixtureList .fixture-detail-layout{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#fixtureList .fixture-shared-lists{display:contents}
#fixtureList .fixture-shared-lists>div+div{border-top:0;padding-top:0}
#fixtureList .fixture-shared-lists>div:only-child{grid-column:1/span 2}
#fixtureList .fixture-detail-layout>.fixture-route-image{grid-column:3}
#fixtureList .fixture-shared-lists .fixture-powerup-repeat{display:block;margin:10px 0 0}
@media(max-width:1023px){#fixtureList .fixture-detail-layout{grid-template-columns:repeat(2,minmax(0,1fr))}#fixtureList .fixture-detail-layout>.fixture-route-image,#fixtureList .fixture-shared-lists>div:only-child{grid-column:1/-1}}
@media(max-width:639px){#fixtureList .fixture-detail-layout{grid-template-columns:minmax(0,1fr)}#fixtureList .fixture-shared-lists>div{grid-column:1/-1}}
