/* Miles & Smiles: supplied VTC artwork and sunset neon palette. */
:root{color-scheme:dark;--navy:#030c1d;--ink:#f4edda;--muted:#a8b8d2;--yellow:#ffd88c;--paper:#071226;--line:#263754}
body{background:radial-gradient(ellipse at top right,#291333 0,transparent 48%),#071226;color:var(--ink)}
.sidebar{background:linear-gradient(180deg,#030b1b,#0b1430);border-right:1px solid #294668;padding-top:20px;overflow-y:auto}
.brand{justify-content:center}.brand-logo{display:block;width:174px;height:174px;object-fit:contain;border-radius:14px}.side-label{margin-top:24px;color:#b5bdd2}
.nav{color:#b6c3d9}.nav:hover{background:#182b43;color:#fff}.nav.active{background:linear-gradient(100deg,#173b50,#2a1737);color:#ffda92;box-shadow:inset 3px 0 #38dcff,inset -1px 0 #ff41bc}.nav:focus-visible{outline-color:#4beaff}
.topbar{background:#0b172a;border-bottom:1px solid var(--line);color:#afc0d9}.topbar b{color:#ffda92}
.page-banner{position:relative;display:grid;place-items:center;min-height:240px;height:clamp(240px,30vw,420px);background:#030b1b url('/brand/banner.png') center 55%/cover no-repeat;border-bottom:1px solid #e5b663;isolation:isolate;padding:36px 24px;text-align:center}
.page-banner::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,#03102699 0,#03102633 50%,transparent 75%);z-index:-1}
.banner-title{max-width:80%;text-shadow:0 3px 12px #000,0 1px 3px #000}.banner-title .eyebrow{color:#8eeeff;letter-spacing:2.5px;font-size:10px}.banner-title h1{font-size:clamp(28px,3.5vw,52px);line-height:1.16;margin:16px 0;color:#ffe1a1;font-weight:800;letter-spacing:-1px}.banner-title p{color:#eef5ff;line-height:1.6;margin:0;font-size:14px}
.page-heading{justify-content:flex-end;margin-bottom:24px}.page-heading:has(.filters[hidden]){display:none}.content{padding-top:28px}
.card,.stat,.welcome{background:#101e34;border-color:#2a3b56;box-shadow:0 8px 24px #0002}.stat.highlight{background:linear-gradient(125deg,#26324a,#2a1c32);border-color:#cfa960;color:#ffdf9f}.stat strong{color:#f8e6bc}.stat small,.stat>span,.card-footer,.muted{color:#acbcd4}.card-footer{background:#0d192e;border-color:#293c59}
.card-heading h2,.tracker-body h3{color:#ffe0a0}.card-heading .eyebrow,.eyebrow{color:#76def7}.tracker-body p,.tracker-body li,.empty p,.welcome-copy p,.access-note{color:#acbcd4}.empty h3{color:#f4e7cf}.empty>span{color:#66dcf7}
th{background:#0b182c;color:#96b0d0;border-color:#263754}td{color:#e6edf7;border-color:#25344d}td small{color:#9eafc9}.me-row{background:#202e44}.me-row td{color:#ffe2a2}tbody tr:hover{background:#192c44}.rank-number,.star-score{color:#ffdc89}
button,select,input{border-color:#3b5273}button{background:#17283f;color:#ecf2ff}button:hover{border-color:#ff62c4;background:#20334e}select,input{background:#0b172c;color:#edf3ff}input::placeholder{color:#8da1bd}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:#4be6ff}
.primary,button.primary{background:linear-gradient(110deg,#ffe5a3,#f8bd62);color:#111b2a;border-color:#ffdb8b;box-shadow:0 3px 18px #ffcf5420}.primary:hover{background:#ffe3a0;color:#111b2a}
a,.text-link,.driver-profile-link{color:#70e5ff}a:hover,.driver-profile-link:hover{color:#ff8bd4}.pill,.platforms span{background:#192d46;color:#ffdd98;border-color:#39516e}.banner{background:linear-gradient(100deg,#173447,#2a1736);color:#f8e7be;border:1px solid #36546c}.banner>div>span:last-child{color:#b0c1d7}.banner button{background:#152338;color:#83e9ff}
.notice,#token-box{background:#30253a;color:#ffe0aa;border-color:#bc8f5e}.notice a{color:#8befff}#device-key{background:#09172b;color:#f6dfaa;border-color:#bd925b}.avatar{background:#19324a;color:#9ceeff}.profile{border-color:#263e59}.side-bottom p,.private,.profile small{color:#9aadc9}
.welcome{grid-template-columns:1fr;min-height:0}.welcome-copy{padding:42px;max-width:760px}.welcome h1{color:#f4e9d3;font-size:clamp(40px,5vw,68px)}.welcome em{color:#ffd68c}.road-art{display:none}
.star-popup{background:#111f34;color:#f6e8cb;border-color:#b58b56;box-shadow:0 12px 40px #0009}.star-popup p{color:#b3c4de}.star-popup .star-popup-note{border-color:#3a4d69}
.live-list{background:#0d192c}.live-driver-card{background:#15263f;color:#f4e6c8;border-color:#304761}.maplibregl-popup-content{background:#101f35;color:#f6ecd7;border:1px solid #3a5477}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#101f35}.maplibregl-popup-close-button{color:#e9effa}.live-marker{color:#fff}.maplibregl-ctrl-group button{background:#fff;color:#152338}.maplibregl-ctrl-attrib{color:#17252e}.maplibregl-ctrl-attrib a{color:#17252e}
footer{border-color:#2a3d59;color:#95a8c4}footer span:first-child{color:#ffd994}
@media(max-width:850px){.sidebar{overflow:visible;padding:12px 18px;border-right:0;border-bottom:1px solid #36506d}.brand-logo{width:100px;height:100px}.sidebar nav{margin-top:10px}.page-banner{height:260px;min-height:220px}.banner-title{max-width:90%}.banner-title h1{font-size:32px}.topbar{gap:12px}.content{padding-top:22px}.welcome-copy{padding:30px}}
@media(max-width:480px){.page-banner{height:230px}.banner-title h1{font-size:27px}.banner-title .eyebrow{font-size:8px;letter-spacing:1px}.banner-title p{font-size:12px}.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:12px 16px}.brand-logo{width:88px;height:88px}.welcome-copy{padding:26px}.sidebar .nav{flex:1 1 30%}}

.job-speed-note{color:#ff93cd;margin-top:6px;line-height:1.5}.speed-rules{padding:24px 0 0}

.board-winner{color:#ffe09b;font-weight:700;margin:10px 0 0}#admin-nav{order:99;margin-top:16px;border-top:1px solid #324662}.table-scroll td{vertical-align:top}

.rank-tag{color:#ffe099!important;font-weight:700}.rank-progress{padding:0 27px 27px}.rank-name{display:block;font-size:25px;color:#ffe09b}.rank-progress progress{width:100%;height:14px;accent-color:#59deef}.discord-rank-preview{max-width:640px;border-left:4px solid #ffd88c;border-radius:8px;background:#2b2d31;color:#f2f3f5;padding:18px;margin:20px 0}.preview-author{display:flex;align-items:center;gap:10px}.preview-author .avatar{width:32px;height:32px}.discord-rank-preview h3{color:#ffe099}.discord-rank-preview>img{width:100%;height:auto;display:block;border-radius:7px;margin:15px 0}.discord-rank-preview small{color:#b6bfcc}.discord-rank-preview p{color:#dae0e9}

.platforms .tracker-download{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:9px;background:#192d46;color:#ffdd98;font-weight:700;text-decoration:none;border:1px solid #39516e}.platforms .tracker-download:hover{border-color:#70e5ff;color:#70e5ff;background:#203953}

.profile-header{align-items:flex-start;gap:24px}.profile-header-main{display:flex;align-items:center;gap:36px;flex:1;min-width:0}.profile-header-person{flex:0 1 285px;min-width:220px}.profile-favourites{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 32px;flex:1;min-width:0;margin:0;padding:6px 0}.profile-favourites dt{font-size:10px;font-weight:700;letter-spacing:.8px;color:#65e3f7;margin-bottom:7px}.profile-favourites dd{margin:0}.profile-favourites strong{display:block;color:#ffdf98;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.profile-favourites small{display:block;color:#b4c5de;font-size:11px;margin-top:4px}.profile-header>.pill{white-space:nowrap}@media(max-width:1150px){.profile-header-main{gap:24px}.profile-favourites{gap:16px 20px}.profile-header>.pill{display:none}}@media(max-width:800px){.profile-header-main{flex-direction:column;align-items:stretch;gap:20px}.profile-header-person{flex:auto;min-width:0}.profile-favourites{padding-top:18px;border-top:1px solid #2d425c}}@media(max-width:420px){.profile-favourites{grid-template-columns:1fr}}

/* Private administration activity page */
.activity-tools{display:flex;gap:16px;align-items:end;padding:0 26px 18px;flex-wrap:wrap}.activity-tools label{margin:0;min-width:180px}.activity-tools label:first-child{flex:1}.activity-note,.activity-bot-help{padding:0 26px;color:#adc4df;line-height:1.7}.activity-bot-help ol{padding-left:22px}.activity-actions{min-width:210px}.activity-actions button{margin:3px 6px 3px 0}.activity-checkbox{display:flex;align-items:center;gap:10px}.activity-checkbox input{width:auto}
tr.activity-inactive td{background:#3b1d26;border-color:#733446}tr.activity-break td{background:#332a15;border-color:#715620}tr.activity-inactive td:first-child{box-shadow:inset 4px 0 #ff7a8c}tr.activity-break td:first-child{box-shadow:inset 4px 0 #ffd267}
@media(max-width:650px){.activity-tools{display:block}.activity-tools label,.activity-tools button{margin-bottom:12px;width:100%}}

/* Event calendar and administration */
.evt-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 26px}.evt-tools label{margin:0}.evt-tools a{margin-right:12px}.evt-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:0 26px 26px}.evt-weekday{text-align:center;font-size:11px;color:#8ee8fa;padding:8px}.evt-calendar-day{background:#14283f;color:#ffdfa0;border:1px solid #3a5271;border-radius:8px;min-height:68px;white-space:normal}.evt-calendar-day small{display:block;color:#8ce8fa;font-size:10px;margin-top:4px}.evt-calendar-day:disabled{opacity:.5;cursor:default;background:#0c192b}.evt-list{display:grid;gap:20px}.evt-card{display:block;overflow:hidden}.evt-card-body{padding:0 26px 26px}.evt-card-body p{line-height:1.65;color:#c5d2e6;margin:6px 0}.evt-card-body h3{color:#83e8ff;margin:22px 0 10px}.evt-route,.evt-attendance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.evt-attendance{grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #334967;margin-top:20px;padding-top:20px}.evt-attendance p{font-size:12px;overflow-wrap:anywhere}.evt-notes{white-space:pre-wrap}.evt-image{display:block;width:100%;height:auto;max-height:540px;object-fit:contain;margin-top:22px;border-radius:8px}.evt-setup{padding:0 26px}.evt-setup li{line-height:1.7}.admin-form textarea{width:100%;font:inherit;resize:vertical;background:#09172c;color:#f1e9d6;border:1px solid #3c5579;border-radius:7px;padding:12px}.evt-tools.admin-wide{padding:0}.evt-card-body .evt-tools{padding:14px 0}#evt-admin-list td:last-child button,#evt-review td:last-child button{margin:4px}#evt-review input{min-width:170px}#evt-preview{margin:20px 0}@media(max-width:700px){.evt-route,.evt-attendance{grid-template-columns:1fr}.evt-calendar{padding:0 10px 16px;gap:3px}.evt-calendar-day{padding:6px 2px;min-height:54px;font-size:12px}.evt-calendar-day small{font-size:9px}.evt-card-body{padding:0 18px 18px}.evt-tools{padding:12px 18px}}

.live-name-link{background:transparent;border:0;color:#6fe4ff;text-decoration:underline;padding:4px 0;cursor:pointer;text-align:left}.live-companion-row{background:#123444}.live-telemetry td{white-space:normal;min-width:65px;padding:16px 12px;font-size:12px}.live-telemetry td:first-child{min-width:100px}.live-telemetry th{white-space:normal;padding:14px 12px}.live-telemetry{min-width:900px}

.live-marker,.live-marker.driving,.live-marker.paused{width:30px;height:34px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer}.live-marker svg{display:block;width:30px;height:34px;overflow:visible;filter:drop-shadow(0 2px 2px #0009)}.live-marker path{fill:#40b5ad;stroke:#fff;stroke-width:1.5;stroke-linejoin:round}.live-marker:focus-visible{outline:2px solid #40b5ad;outline-offset:4px}

.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.table-pagination nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.table-pagination button{min-width:38px;min-height:38px}.table-pagination button[aria-current="page"]{background:#ffcc70;color:#09162a;opacity:1}.table-pagination button:disabled:not([aria-current]){opacity:.45}.pagination-summary{color:#a9c7ea}@media(max-width:650px){.table-pagination{align-items:flex-start;flex-direction:column}.table-pagination nav{gap:4px}}
