.rally-online-root {
  --ol-ink:#f7f1df; --ol-quiet:#b8c5cc; --ol-gold:#ffcf61; --ol-edge:#43525b;
  --ol-card:#26343f; --ol-deep:#172630;
  box-sizing:border-box; color:var(--ol-ink); color-scheme:dark;
}
#panel.rally-online-root {width:min(760px,calc(100% - 24px));max-width:760px;padding:0;overflow:auto;max-height:calc(100% - 20px)}
.rally-online {text-align:left;padding:clamp(16px,3vw,30px);background:linear-gradient(145deg,#30404c 0%,#1d303c 45%,#202c39 100%);border-radius:inherit;font-family:inherit;box-sizing:border-box}
.rally-online *, .rally-online *::before, .rally-online *::after {box-sizing:border-box}
.rally-online :is(h2,h3,p,ol) {margin:0}
.rally-online .ol-top {display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:17px}
.rally-online .ol-brand {font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--ol-gold);margin:0 0 3px}
.rally-online .ol-title {font-size:clamp(24px,4vw,36px);line-height:1.04;font-weight:850;letter-spacing:-.04em;color:#fff4d8}
.ol-layout {display:grid;grid-template-columns:1.12fr .88fr;gap:12px;align-items:start}
.ol-room {grid-template-columns:.94fr 1.06fr}
.ol-stack {min-width:0;display:grid;gap:12px}
.rally-online .ol-card {min-width:0;padding:14px;border:1px solid var(--ol-edge);border-radius:9px;background:var(--ol-card)}
.rally-online .ol-label {font-size:15px;line-height:1.25;font-weight:820;color:#fff0c6;margin-bottom:9px}
.rally-online .ol-copy,.rally-online .ol-status {color:#dae2df;font-size:13px;line-height:1.45}
.rally-online .ol-copy {margin:0 0 11px}
.rally-online .ol-status {padding:8px 2px;color:#ffe0a0}
.ol-count {font-size:12px;color:#c3d6d6;font-variant-numeric:tabular-nums}
.rally-online .ol-field {display:flex;flex-direction:column;gap:4px;margin:9px 0;font-size:12px;font-weight:700;color:#e4e6d9}
.rally-online :is(.ol-input,.ol-select) {box-sizing:border-box;width:100%;min-width:0;min-height:43px;border:1px solid #6c7f87;border-radius:6px;background:#172b37;color:#fff2d6;font:inherit;font-size:16px;line-height:1.2;padding:8px 10px}
.ol-code-input {letter-spacing:.13em;text-transform:uppercase}
.rally-online .ol-btn {width:auto;min-width:0;min-height:42px;padding:8px 12px;border:1px solid #839495;border-radius:6px;background:#344a56;box-shadow:none;color:#f8f2e3;font:inherit;font-weight:760;font-size:14px;text-transform:none;letter-spacing:normal;line-height:1.2;cursor:pointer;text-shadow:none}
.rally-online .ol-btn:hover:enabled {background:#405b67;border-color:#ecd59f}
.rally-online .ol-btn.ol-primary {background:#ffcc5d;border-color:#ffe8a6;color:#2d291e}
.rally-online .ol-btn.ol-primary:hover:enabled {background:#ffdf8a}
.rally-online .ol-btn:disabled {opacity:.52;cursor:default}
.rally-online :is(button,input,select,summary):focus-visible {outline:3px solid #ffe799;outline-offset:2px}
.ol-entry .ol-card>.ol-btn {width:100%}
.ol-divider {height:1px;background:var(--ol-edge);margin:16px 0}
.ol-driver-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:12px}
.rally-online .ol-btn.ol-driver {display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:2px;background:#1a2e3b;border-color:#445b66;padding:3px 1px 5px}
.ol-driver .ol-portrait {width:100%;height:43px;object-fit:contain}
.ol-driver span {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.rally-online .ol-btn[aria-pressed=true] {border-color:#ffcf61;background:#3c4b44;box-shadow:inset 0 0 0 1px #ffcf61;color:#ffdf8f}
.ol-actions {display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-top:16px}
.rally-online .ol-quiet {background:transparent;border-color:#657782}
.rally-online .ol-error {margin:0 0 12px;padding:8px 10px;border-left:3px solid #ffb79b;background:#503b39;color:#fff1df;font-size:13px}
.rally-online [hidden]{display:none!important}
.ol-code-chip {display:grid;grid-template-columns:auto auto;align-items:center;column-gap:8px;flex-shrink:0}
.rally-online .ol-code-chip .ol-label {grid-column:1;font-size:10px;font-weight:700;color:#c0d0d5;margin:0}
.ol-room-code {grid-column:1;letter-spacing:.13em;font-size:15px;user-select:all;color:#fff1bc}
.rally-online .ol-small {grid-column:2;grid-row:1/3;min-height:36px;font-size:12px;padding:5px 8px}
.rally-online .ol-people {display:grid;list-style:none;padding:0}
.ol-person {display:flex;align-items:center;gap:7px;min-width:0;padding:7px 0;border-top:1px solid #42535e;font-size:13px}
.ol-person:first-child{border-top:0}
.ol-person .ol-portrait {width:34px;height:34px;flex-shrink:0;object-fit:contain;border-radius:6px;background:#23313b}
.ol-person-name {display:flex;flex-direction:column;min-width:0;word-break:break-word}
.ol-person-name small {font-size:10px;color:#c3d2d3}
.ol-player-state {margin-left:auto;text-align:right;font-size:11px;color:#f4dfae;white-space:normal;max-width:7rem}
.ol-rule {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;font-size:13px}
.ol-world {border-top:1px solid #405363}
.ol-world summary {min-height:40px;padding:10px 0;cursor:pointer;font-size:13px;font-weight:700;color:#f3e7c7}
.ol-tracks {display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 10px}
.rally-online .ol-track {min-height:42px;font-size:12px;text-align:left;background:#203541;padding:7px;overflow-wrap:anywhere}
.rally-online .ol-lead {margin:0 0 12px}
.ol-podium {display:flex;justify-content:center;align-items:end;gap:5px;margin:12px auto 18px}
.ol-platform {display:flex;flex-direction:column;align-items:center;flex:0 1 31%;min-width:0;gap:3px;color:#fff6e3}
.ol-platform img {width:66px;max-width:90%;height:55px;object-fit:contain}
.ol-platform strong {font-size:13px;max-width:100%;overflow-wrap:anywhere;text-align:center}
.ol-platform span {background:#7c99a1;color:#172832;text-align:center;width:100%;padding:5px;font-weight:800;height:30px}
.ol-platform.ol-place-1 span {height:49px;background:#e4ad43;color:#302914}
.ol-platform.ol-place-3 span {height:24px;background:#c08a68;color:#312824}
.ol-medal {width:17px;color:#f4d57c;text-align:center;font-size:14px}
.rally-online .ol-scoring{margin:.65em 0 0;color:#e3ce94;font-size:12px}
.ol-ranking{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px;color:#f2eee3}
.ol-ranking :is(th,td){text-align:right;padding:.45em .35em;border-bottom:1px solid #54606a}
.ol-ranking th{font-size:.84em;color:#d9c698;font-weight:650}
.ol-ranking .ol-rank-driver,.ol-ranking th:nth-child(2){text-align:left}
.ol-ranking .ol-rank-driver strong,.ol-ranking .ol-rank-driver small{display:block;overflow-wrap:anywhere;line-height:1.16}
.ol-rank-driver>span{display:inline-block;vertical-align:middle;max-width:16ch}
.ol-rank-driver .ol-portrait{width:36px;height:36px;vertical-align:middle;margin-right:.45em}
.ol-rank-driver small{color:#c4cbd0;font-size:.81em}
.ol-ranking .ol-self{background:#374a55}.ol-ranking .ol-total{color:#ffe28d}
.ol-rank{color:#f4d878;font-size:1.22em}.ol-rank[data-place="2"]{color:#d8e6e9}.ol-rank[data-place="3"]{color:#edb48b}
@media(max-width:580px){.rally-online .ol-ranking{font-size:12px}.ol-ranking :is(th,td){padding:.55em .19em}.ol-ranking .ol-portrait{display:none}.ol-rank-driver>span{max-width:12ch}}
@media(max-width:580px){
  #panel.rally-online-root {width:calc(100% - 10px);max-height:calc(100% - 8px)}
  .rally-online {padding:14px 12px}
  .ol-layout {grid-template-columns:1fr;gap:9px}
  .rally-online .ol-card {padding:11px}
  .ol-driver-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
  .rally-online .ol-top {gap:6px;margin-bottom:10px}
  .rally-online .ol-room .ol-stack {gap:9px}
  .rally-online .ol-top .ol-small {min-height:40px}
  .ol-driver .ol-portrait {height:35px}
  .ol-actions {margin-top:11px}
  .rally-online .ol-btn {min-height:44px}
}
#online-overlay:not([hidden]){position:absolute;inset:0;z-index:18;display:grid;place-items:center;padding:8px;background:rgba(15,24,38,.85);overflow:hidden}
#online-content{width:min(780px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;border:2px solid #d6b368;border-radius:12px;box-shadow:0 10px 24px #10182688}
