.courses-frame{display:block;width:100%;height:1050px;border:0;border-radius:14px;background:#14191f}.courses-embedded .page{width:100%;max-width:none;padding:0}.courses-embedded .skip-link{display:none}.courses-embedded .live-main{margin:0;padding:16px}.courses-embedded h1{font-size:clamp(25px,4vw,40px)}.courses-embedded .live-aside img{max-height:110px;width:auto}.courses-embedded .live-layout{margin-top:16px}@media(max-width:700px){.courses-embedded .live-main{padding:8px}.courses-frame{height:1400px}}
.courses-embedded{background:#14191f;color:#f4f7fa}.courses-embedded .live-main{background:#14191f}.courses-embedded .map-panel,.courses-embedded .live-aside,.courses-embedded .leaderboard{background:#202832;border-color:#394551;border-radius:12px}.courses-embedded h1,.courses-embedded h2{font-family:Segoe UI,Arial,sans-serif;color:#f4f7fa}.courses-embedded .intro,.courses-embedded p{color:#b5c0cd}.courses-embedded h1 span{color:#ff334b}.courses-embedded .live-layout{grid-template-columns:minmax(0,1fr) 260px}.courses-embedded .live-aside{padding:18px}.courses-embedded .live-aside .button{font-size:14px}.courses-embedded .board-heading{flex-wrap:wrap;gap:10px}.courses-embedded .live-layout>*{min-width:0}@media(max-width:760px){.courses-embedded .live-layout{grid-template-columns:1fr}.courses-embedded .live-aside{display:block}.courses-embedded .live-aside img{float:right;width:85px}.courses-embedded .table-scroll{max-width:100%;overflow:auto}}
/* Courses libres : pleine largeur, carte a gauche et pilotes a droite. */
.racing[data-view=courses] main{display:block}
.racing[data-view=courses] #courses-libres{width:100%;max-width:none;grid-column:1/-1}
.racing[data-view=courses] .courses-frame{width:100%;max-width:none;display:block}
body[data-courses] .live-main{width:100%;max-width:none}
body[data-courses] .live-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:20px;align-items:start}
body[data-courses] .live-layout>.leaderboard{margin:0;min-width:0;width:100%;box-sizing:border-box}
body[data-courses] .map-panel{width:100%;box-sizing:border-box}
body[data-courses] #track-map{height:480px}
body[data-courses] .courses-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 20px;padding:16px 18px;background:#202832;border:1px solid #394551;border-radius:12px}
body[data-courses] .courses-toolbar span{font-size:13px;color:#b5c0cd}
body[data-courses] .courses-toolbar .button{margin:0;white-space:normal;font-size:14px}
body[data-courses] .leaderboard .board-heading{padding:16px}
body[data-courses] .leaderboard th,body[data-courses] .leaderboard td{padding:12px 8px;font-size:12px}
body[data-courses] .leaderboard .table-scroll{width:100%;max-width:100%;overflow:auto}
body[data-courses] .leaderboard table{min-width:540px}
body[data-courses] .board-note{margin:14px 16px;font-size:12px}
@media(max-width:850px){body[data-courses] .live-layout{grid-template-columns:1fr}body[data-courses] #track-map{height:350px}body[data-courses] .courses-toolbar{flex-direction:column;align-items:stretch}body[data-courses] .courses-toolbar .button{text-align:center}}

.racing .team-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:32px;padding:30px;margin-bottom:24px;border:1px solid #53616e;border-radius:14px;background:linear-gradient(120deg,#344653,#26313d);grid-column:1/-1}.racing .welcome-copy h2{font-size:clamp(24px,3vw,36px);line-height:1.12;margin:8px 0 16px;font-style:normal;letter-spacing:-.8px}.racing .welcome-copy>p{font-size:14px;line-height:1.65;color:#e0e8ed;max-width:520px}.racing .welcome-copy .eyebrow{font-size:10px;color:#ff9ba7;letter-spacing:1.5px}.racing .welcome-new{margin:16px 0 0}.racing .welcome-new a{color:#fff;text-underline-offset:4px}.racing .welcome-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:center}.racing .welcome-choice{display:flex;flex-direction:column;gap:14px;padding:22px 18px;border:1px solid #85949f;border-radius:10px;background:#f0f3f5;color:#1c2933;text-decoration:none;transition:transform .15s,border-color .15s}.racing .welcome-choice.chrono{border-top:4px solid #ff334b}.racing .welcome-choice.free-race{border-top:4px solid #3d9aa7}.racing .welcome-choice strong{font-size:19px;line-height:1.25}.racing .welcome-choice>span:last-child{font-size:12px;line-height:1.6;color:#40515e}.racing .choice-label{font-size:9px;font-weight:800;letter-spacing:1px;color:#526471}.racing .welcome-choice:hover{transform:translateY(-3px);border-color:#fff}.racing .welcome-choice:focus-visible{outline:3px solid #ff7385;outline-offset:4px}@media(max-width:850px){.racing .team-welcome{grid-template-columns:1fr;gap:20px;padding:22px}.racing .welcome-choices{grid-template-columns:1fr 1fr}}@media(max-width:480px){.racing .welcome-choices{grid-template-columns:1fr}.racing .welcome-choice{padding:18px}.racing .welcome-copy h2 br{display:none}}@media(prefers-reduced-motion:reduce){.racing .welcome-choice{transition:none}}

@media(min-width:1000px){.racing[data-view=courses] .courses-frame{height:100%!important}.courses-embedded .live-main{padding:0}.courses-embedded .live-main>.eyebrow,.courses-embedded .live-main>.board-heading{display:none}.courses-embedded .intro{margin:0;font-size:14px;max-width:none}.courses-embedded .courses-toolbar{margin:10px 0;padding:10px 16px}.courses-embedded .live-layout{margin-top:10px;gap:16px}.courses-embedded #track-map{height:clamp(240px,calc(100vh - 190px),430px)}.courses-embedded .table-scroll{max-height:calc(100vh - 250px);overflow:auto}.courses-embedded .board-note{font-size:11px;margin:8px 12px}}
@media(min-width:1000px){body.courses-embedded[data-courses] .courses-toolbar{margin:8px 0 12px;padding:8px 12px}body.courses-embedded[data-courses] .courses-toolbar .button{padding:10px 14px}body.courses-embedded[data-courses] .live-layout{margin-top:8px;gap:16px}body.courses-embedded[data-courses] #track-map{height:calc(100vh - 210px);min-height:180px;max-height:360px}body.courses-embedded[data-courses] .leaderboard .board-heading{padding:12px;margin:0}body.courses-embedded[data-courses] .leaderboard h2{font-size:20px}body.courses-embedded[data-courses] .map-tools,body.courses-embedded[data-courses] #selected-driver{font-size:11px;margin:5px 12px}body.courses-embedded[data-courses] .board-note{font-size:11px;margin:8px 12px}body.courses-embedded[data-courses] th{background:#1e2630;color:#bccbd8}body.courses-embedded[data-courses] td{color:#edf2f7;border-color:#49596b55}body.courses-embedded[data-courses] .map-panel{padding:10px}body.courses-embedded[data-courses] .table-scroll{max-height:calc(100vh - 230px);overflow:auto}}

/* Courses : espace de travail a la hauteur de l'ecran. */
.racing[data-view=courses] .race-banner,.racing[data-view=courses] .view-intro,.racing[data-view=courses] footer{display:none!important}
.racing[data-view=courses]>.page{width:100%;max-width:none;padding:0;height:100dvh;display:flex;flex-direction:column}
.racing[data-view=courses] .race-nav{flex-shrink:0;margin:0;border-radius:0}
.racing[data-view=courses] main{flex:1;min-height:0;padding:10px;margin:0;width:100%;box-sizing:border-box}
.racing[data-view=courses] #courses-libres{height:100%;min-height:0;margin:0}
.racing[data-view=courses] .courses-frame{height:100%!important;border-radius:8px}
.courses-embedded .live-main>.eyebrow,.courses-embedded .live-main>.board-heading{display:none!important}
body.courses-embedded .live-main{height:100dvh;display:flex;flex-direction:column;padding:10px;box-sizing:border-box}
body.courses-embedded .intro{font-size:14px;margin:0 0 6px}
body.courses-embedded .courses-toolbar{flex-shrink:0;margin:0 0 10px;padding:6px 10px}
body.courses-embedded .courses-toolbar .button{padding:8px 12px}
body.courses-embedded .live-layout{flex:1;min-height:0;margin:0;align-items:stretch;gap:12px}
body.courses-embedded .live-layout[hidden]{display:none!important}
body.courses-embedded .map-panel{display:flex;flex-direction:column;min-height:0;padding:8px}
body.courses-embedded #track-map{flex:1;height:0;min-height:0;max-height:none;width:100%}
body.courses-embedded .map-tools,body.courses-embedded #selected-driver{flex-shrink:0;font-size:11px;margin:4px 8px}
body.courses-embedded .leaderboard{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body.courses-embedded .leaderboard .board-heading{flex-shrink:0;margin:0;padding:10px}
body.courses-embedded .leaderboard .table-scroll{flex:1;min-height:0;max-height:none;overflow:auto}
body.courses-embedded .leaderboard th,body.courses-embedded .leaderboard td{padding:9px 7px}
body.courses-embedded .leaderboard .board-note{display:none}
#courses-history:not([hidden]){flex:1;min-height:0;overflow:auto;padding:12px;background:#202832;border:1px solid #394551;border-radius:12px}
#courses-history details{padding:12px;border-bottom:1px solid #53616e}#courses-history summary{cursor:pointer;font-weight:700}#courses-history p,#courses-history li{font-size:14px}#courses-history ol{list-style:none;padding:0}
@media(max-width:850px){body.courses-embedded .live-layout{grid-template-columns:1fr 1.1fr;gap:6px}body.courses-embedded .courses-toolbar{flex-direction:row}body.courses-embedded .courses-toolbar .button{font-size:11px}body.courses-embedded .map-tools label,body.courses-embedded #selected-driver{display:none}body.courses-embedded .leaderboard h2{font-size:14px}.racing[data-view=courses] main{padding:5px}}
body.racing[data-view="courses"] #courses-libres #courses-frame.courses-frame{height:100%!important;min-height:0!important;max-height:none!important}

/* Shared viewport shell: retain the team's existing typefaces. */
body.racing{margin:0;height:100dvh;overflow:hidden}
body.racing>.page{width:100%;max-width:none;height:100dvh;padding:0;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
body.racing .race-banner,body.racing .view-intro,body.racing footer{display:none!important}
body.racing .race-nav{flex:none;margin:0;border-radius:0;padding:0 12px;overflow-x:auto}
body.racing .race-nav a{padding-block:13px}
.team-masthead{display:flex;align-items:center;justify-content:center;gap:16px;padding:5px 16px;background:linear-gradient(110deg,#182530,#34222b);flex:none}
.team-masthead h2{font-family:Impact,'Arial Black',sans-serif;font-style:italic;letter-spacing:1.5px;font-size:28px;margin:0;color:#fff4df}
.team-masthead h2 span{color:#ff4658}.team-masthead img{object-fit:contain}
body.racing main{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px;overflow:hidden;box-sizing:border-box}
body.racing [hidden]{display:none!important}
body.racing[data-view=home] .team-welcome{flex:1;min-height:0;height:100%;margin:0;grid-template-rows:minmax(0,1fr) auto;overflow:auto}
body.racing[data-view=home] .home-art{height:100%;min-height:0;aspect-ratio:auto;object-fit:cover}
body.racing[data-view=home] .welcome-choices{grid-column:1/-1;grid-template-columns:1fr 1fr}
body.racing[data-view=home] .welcome-copy{padding:20px 28px}
body.racing[data-view=hotlap] .challenge-strip{flex:none;margin:0;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:8px}
body.racing[data-view=hotlap] .challenge-strip>div{padding:8px 12px}
body.racing[data-view=hotlap] .challenge-title h2{font-size:22px}
body.racing[data-view=hotlap] .challenge-strip strong{font-size:19px}
body.racing[data-view=hotlap] .race-grid{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-rows:auto minmax(0,1fr) auto;gap:10px}
body.racing[data-view=hotlap] .race-map{grid-column:1;grid-row:1/3;min-height:0}
body.racing[data-view=hotlap] #track-map{flex:1;height:0;min-height:0}
body.racing[data-view=hotlap] .hotlap-board-tabs{grid-column:2;grid-row:1}
body.racing[data-view=hotlap] .top-board,body.racing[data-view=hotlap] .live-board{grid-column:2!important;grid-row:2!important;min-height:0;height:100%}
body.racing[data-view=hotlap] .race-actions{grid-row:3!important}
body.racing[data-view=hotlap] .race-actions .race-cta{min-height:0;padding:12px 16px}
body.racing[data-view=vote] .community-vote{flex:1;min-height:0;margin:0;overflow:auto}
body.racing[data-view=vote] .combo-polls{margin:16px 20px}
body.racing[data-view=vote] .vote-option{min-height:56px;padding:10px}
body.racing[data-view=history] .bottom{flex:1;min-height:0;display:flex;margin:0}
body.racing[data-view=history] .podium-history{flex:1;min-height:0;display:flex;flex-direction:column}
body.racing[data-view=history] #history{flex:1;min-height:0;overflow:auto}
body.racing[data-view=team] main{display:grid;grid-template-columns:1fr 1.15fr;grid-template-rows:auto minmax(0,1fr)}
body.racing[data-view=team] .profile-bar{grid-column:1/-1;margin:0;padding:10px 16px;max-height:30dvh;overflow:auto}
body.racing[data-view=team] .pilot-hall{grid-column:1;grid-row:2;min-height:0;margin:0;overflow:auto}
body.racing[data-view=team] .bottom{grid-column:2;grid-row:2;min-height:0;margin:0;display:flex;overflow:auto}
body.racing[data-view=team] #team{height:auto;min-height:0;flex:1;padding:20px}
body.racing[data-view=paddock] .profile-bar{flex:none;max-height:25dvh;overflow:auto;margin:0!important}
body.racing[data-view=paddock] .paddock-tabs{flex:none;margin:0}
body.racing[data-view=paddock] .paddock-social{flex:1;min-height:0;margin:0;overflow:auto;padding:16px!important}
body.racing[data-view=paddock] .paddock-layout{flex:1;min-height:0;overflow:hidden;margin:0}
body.racing[data-view=paddock] .steam-presence,body.racing[data-view=paddock] .paddock-chat{height:100%;min-height:0;box-sizing:border-box;overflow:auto;display:flex;flex-direction:column}
body.racing[data-view=paddock] .chat-messages{flex:1;min-height:0;max-height:none;overflow:auto}
body.racing[data-view=paddock] #chat-form{flex:none;padding:12px}
@media(max-width:700px){
 .team-masthead{gap:10px}.team-masthead img{width:45px;height:45px}.team-masthead h2{font-size:22px}
 body.racing main{padding:6px;gap:6px}body.racing .race-nav{padding:0 6px}body.racing .race-nav a{padding:12px 10px}
 body.racing[data-view=home] .team-welcome{grid-template-columns:1fr!important;grid-template-rows:auto minmax(120px,1fr) auto}
 body.racing[data-view=home] .welcome-copy{padding:12px 16px}body.racing[data-view=home] .welcome-copy h2{font-size:24px}
 body.racing[data-view=home] .welcome-copy>p{font-size:12px;margin:5px 0}
 body.racing[data-view=home] .welcome-choices{padding:8px;gap:8px}body.racing[data-view=home] .welcome-choice{padding:10px;font-size:11px}
 body.racing[data-view=hotlap] .challenge-strip{grid-template-columns:1fr 1fr;gap:4px}
 body.racing[data-view=hotlap] .challenge-strip>div{padding:5px 8px}body.racing[data-view=hotlap] .challenge-title h2{font-size:17px}
 body.racing[data-view=hotlap] .challenge-strip strong{font-size:15px}
 body.racing[data-view=hotlap] .race-grid{grid-template-columns:1fr;grid-template-rows:minmax(100px,.8fr) auto minmax(100px,1fr) auto;gap:5px}
 body.racing[data-view=hotlap] .race-map{grid-column:1;grid-row:1;overflow:auto}
 body.racing[data-view=hotlap] .race-map .panel-heading{padding:6px 0}
 body.racing[data-view=hotlap] .hotlap-board-tabs{grid-column:1;grid-row:2}
 body.racing[data-view=hotlap] .top-board,body.racing[data-view=hotlap] .live-board{grid-column:1!important;grid-row:3!important}
 body.racing[data-view=hotlap] .race-actions{grid-row:4!important}
 body.racing[data-view=hotlap] .race-actions .race-cta{padding:8px;font-size:10px}
 body.racing[data-view=team] main{grid-template-columns:1fr;grid-template-rows:auto minmax(100px,1fr) minmax(120px,1fr)}
 body.racing[data-view=team] .bottom{grid-column:1;grid-row:3}
 body.racing[data-view=team] .profile-bar{flex-direction:row;align-items:center}
}

/* Keep the map's drawing surface large, including compact displays. */
body.racing[data-view=hotlap] .race-map{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;align-items:stretch;overflow:hidden}
body.racing[data-view=hotlap] #track-map{height:100%;min-height:0;width:100%;align-self:stretch;box-sizing:border-box}
@media(max-width:700px){
 body.racing[data-view=hotlap] .race-grid{grid-template-rows:minmax(240px,1.1fr) auto minmax(100px,1fr) auto}
 body.racing[data-view=hotlap] .race-map .panel-heading{padding:5px 0}
 body.racing[data-view=hotlap] .map-tools{padding:4px 0;font-size:10px}
 body.racing[data-view=hotlap] #selected-driver{display:none}
 body.racing[data-view=hotlap] .race-map .hotlap-rules{margin-top:0}
 body.racing[data-view=hotlap] .hotlap-rules-content{max-height:70%;bottom:30px}
}

@media(max-width:700px){body.racing[data-view=hotlap] .race-grid{grid-template-rows:minmax(300px,1.2fr) auto minmax(100px,1fr) auto}}

/* Wide, short windows need a compact challenge bar, not a compressed track. */
@media(min-width:701px){
 body.racing[data-view=hotlap] .challenge-strip>div{padding:7px 12px}
 body.racing[data-view=hotlap] .challenge-strip .eyebrow,body.racing[data-view=hotlap] .challenge-strip .label{margin:0 0 3px;line-height:1.2}
 body.racing[data-view=hotlap] .challenge-strip strong{margin-top:0}
 body.racing[data-view=hotlap] .challenge-title h2{margin:0}
 body.racing[data-view=hotlap] .challenge-calendar p{margin:3px 0;line-height:1.25}
 body.racing[data-view=hotlap] .race-map .panel-heading{padding:7px 0}
 body.racing[data-view=hotlap] #selected-driver{display:none}
 body.racing[data-view=hotlap] .race-map .hotlap-rules{margin-top:0}
}
@media(min-width:701px) and (max-height:650px){
 body.racing[data-view=hotlap] main{gap:6px;padding:6px}
 body.racing[data-view=hotlap] .challenge-strip{gap:6px}
 body.racing[data-view=hotlap] .challenge-strip>div{padding:5px 9px}
 body.racing[data-view=hotlap] .challenge-title h2{font-size:19px}
 body.racing[data-view=hotlap] .challenge-strip strong{font-size:16px}
 body.racing[data-view=hotlap] .challenge-strip .eyebrow{font-size:8px;letter-spacing:.7px}
 body.racing[data-view=hotlap] .challenge-calendar .status-pill{padding:3px 6px}
 body.racing[data-view=hotlap] .race-grid{gap:6px}
 body.racing[data-view=hotlap] .race-map .panel-heading{padding:5px 0}
 body.racing[data-view=hotlap] .race-actions .race-cta{padding:8px 12px}
 body.racing[data-view=hotlap] .race-map .map-tools{padding-top:4px}
 body.racing[data-view=hotlap] .top-board .panel-heading,body.racing[data-view=hotlap] .live-board .panel-heading{padding:6px 12px}
}

.acc-dashboard{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}.acc-dashboard .challenge-strip{flex:none;margin:0}.acc-ranking{flex:1;min-height:0;display:flex;flex-direction:column}.acc-ranking .table-scroll{flex:1;min-height:0;overflow:auto}.acc-ranking td{padding:8px 12px}.acc-bottom{display:grid;grid-template-columns:1.3fr 1fr;gap:10px;flex:none;max-height:30dvh;overflow:auto}.acc-access{padding:12px 18px}.acc-access h2{font-family:Impact,'Arial Black',sans-serif;font-size:21px;margin:0}.acc-access p{font-size:12px;margin:8px 0}.acc-access a{margin-right:8px}.acc-archives{padding:14px 18px;overflow:auto;font-size:12px}.acc-archives summary{cursor:pointer;font-weight:bold}.acc-dashboard .challenge-title h2{font-size:24px}.acc-dashboard .challenge-strip strong{font-size:19px}@media(max-width:700px){.acc-bottom{grid-template-columns:1fr}.acc-dashboard .challenge-strip>div{padding:8px}.acc-dashboard .challenge-title h2{font-size:20px}.acc-dashboard .challenge-strip strong{font-size:16px}}
.acc-access h2{font-weight:400;letter-spacing:1px;text-shadow:none;line-height:1.3}

.last-podium{flex:none;padding:8px 12px;background:#202832;border-bottom:1px solid #52606b}.last-podium>strong{font-size:12px;color:#f3cb72}.last-podium-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:5px}.last-podium-list div{min-width:0;display:flex;flex-direction:column;font-size:12px}.last-podium-list span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.last-podium-list b{color:#eee;font-variant-numeric:tabular-nums}
