:root{font:16px Inter,system-ui,Arial,sans-serif;color:#17243a;background:#f5f7fc}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #f8a66a;outline-offset:2px}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}aside{background:#18233b;color:white;padding:29px 17px;display:flex;flex-direction:column;gap:34px}.brand{font-weight:900;font-size:23px;padding-left:12px}.brand span{color:#ff7c42}.brand small{display:block;font-weight:500;font-size:13px;color:#b3c1d9;margin-top:5px}nav{display:grid;gap:8px}nav button{border:0;background:transparent;color:#c5d0e4;text-align:left;padding:14px;border-radius:12px;font-weight:750}nav button.active,nav button:hover{background:#304160;color:white}.side-note{font-size:13px;line-height:1.5;color:#b8c5dc;background:#263653;padding:17px;border-radius:13px;margin-top:auto}main{padding:28px 34px 55px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:21px}.eyebrow{color:#f1753d;font-size:12px;font-weight:900;letter-spacing:.1em}h1{font-size:31px;letter-spacing:-1px;margin:3px 0 4px}h2{font-size:22px;letter-spacing:-.5px;margin:0 0 5px}h3{font-size:17px;margin:0 0 10px}p{color:#738197;line-height:1.5;margin:0}.header-actions{text-align:right}.header-actions span{display:block;font-size:12px;color:#8c99ab;margin-top:6px}.light,.orange{border:0;border-radius:10px;padding:10px 14px;font-weight:800}.light{background:#fff;border:1px solid #dfe5f0;color:#263653}.orange{background:#f4783c;color:white}.light:hover,.orange:hover{filter:brightness(.97)}.scoreboard{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin-bottom:20px}.score{background:#fff;border:1px solid #e3e8f2;border-radius:15px;padding:16px 19px;box-shadow:0 5px 16px #2034560b}.score b{font-size:29px;display:block}.score span{font-size:13px;color:#8390a4;font-weight:650}.page{display:none}.page.active{display:block}.hero{background:linear-gradient(115deg,#26365d,#6a5aad);border-radius:20px;color:white;padding:25px 29px;display:flex;justify-content:space-between;align-items:center;min-height:178px;overflow:hidden;margin-bottom:18px}.hero h2{font-size:25px;max-width:710px;margin:10px 0}.hero p{color:#e8eaff;max-width:700px}.mini{background:#ffffff28;padding:6px 10px;border-radius:30px;font-size:12px;font-weight:850}.mascot{width:150px;flex:none;filter:drop-shadow(0 15px 10px #16244977);animation:bob 3.5s ease-in-out infinite}@keyframes bob{50%{transform:translateY(-8px) rotate(3deg)}}.routes{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:25px}.route-card{border:2px solid #e7eaf3;background:white;border-radius:14px;padding:15px;text-align:left;transition:transform .2s,border-color .2s,box-shadow .2s}.route-card:hover{transform:translateY(-3px);box-shadow:0 7px 20px #1c2f5116}.route-card.active{border-color:#ff8c53;background:#fff7f1}.route-card b{display:block;font-size:16px}.route-card small{display:block;color:#7d8b9d;margin-top:4px}.route-card .route-ico{font-size:23px;margin-bottom:6px}.board-top{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:17px}.board-top p{max-width:850px}.board-top .pill{background:#fff0e8;color:#c45e31;border-radius:30px;padding:8px 13px;font-size:13px;font-weight:850;white-space:nowrap}.track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px;position:relative}.track:before{content:"";position:absolute;left:4%;right:4%;top:51%;border-top:5px dashed #ffbd89;z-index:0}.station{position:relative;z-index:1;background:#fff;border:2px solid #e3e8f2;border-radius:18px;min-height:168px;padding:16px;box-shadow:0 6px 18px #22345811}.station:nth-child(2n){transform:translateY(15px)}.station.finish{background:#fff7ec;border-color:#ffd29b}.station-head{display:flex;align-items:center;gap:9px}.station-number{width:31px;height:31px;border-radius:9px;background:#fff0e3;color:#df6a31;display:grid;place-items:center;font-weight:900;flex:none}.station b{font-size:15px}.station p{font-size:12px;line-height:1.42;margin:8px 0 11px}.tokens{display:flex;gap:5px;flex-wrap:wrap}.token{border:2px solid #fff;background:#5667b9;color:white;border-radius:50%;width:35px;height:35px;font-size:11px;font-weight:900;box-shadow:0 2px 7px #27386555;position:relative}.token:hover{transform:scale(1.12)}.station small{font-size:12px;color:#9aa5b4}.board-bottom,.insights{display:grid;grid-template-columns:1.25fr .75fr;gap:17px}.box{background:white;border:1px solid #e3e8f2;border-radius:17px;padding:21px;margin-bottom:17px;box-shadow:0 5px 16px #2034560a}.rule{display:grid;grid-template-columns:95px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid #edf0f5;font-size:13px}.rule b{color:#5e58a5}.rule span{color:#6f7e92}.unassigned{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.unassigned button{border:0;border-radius:40px;padding:7px 11px;background:#edf0f8;color:#465673;font-weight:700;font-size:12px}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.section-head input{border:1px solid #dce2ed;border-radius:10px;padding:10px 12px;min-width:260px}.lead-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lead-row{border:1px solid #e5eaf3;border-radius:13px;padding:14px;text-align:left;background:#fff}.lead-row:hover{background:#fff9f5;border-color:#f6c9a6}.lead-row b{display:block}.lead-row small{color:#7f8da1}.lead-row span{display:inline-block;margin-top:8px;font-size:12px;color:#cc6636;background:#fff0e8;padding:4px 7px;border-radius:7px}.insights .big-number{font-size:34px;font-weight:900}.insight-line{display:flex;justify-content:space-between;border-bottom:1px solid #edf0f5;padding:11px 0;font-size:14px}.insight-line span{color:#76859a}.footnote{font-size:13px}.event{padding:11px 0;border-bottom:1px solid #edf0f5}.event b{display:block}.event small{color:#91a0b2}.event p{font-size:13px}dialog{border:0;border-radius:19px;padding:0;width:min(760px,calc(100% - 20px));max-height:90vh;box-shadow:0 20px 70px #17233b66}dialog::backdrop{background:#16233bbb}.dialog-head{background:#233353;color:white;padding:21px 24px;display:flex;justify-content:space-between}.dialog-head h2{margin-top:5px}.dialog-head button{border:0;background:transparent;color:white;font-size:26px}.dialog-content{padding:22px 24px;overflow:auto;max-height:66vh}.stepper{display:flex;gap:4px;margin-bottom:19px}.stepper span{height:7px;background:#e4e9f1;border-radius:8px;flex:1}.stepper span.done{background:#f98249}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-content label{display:block;font-size:13px;font-weight:750;margin-bottom:12px}.dialog-content input,.dialog-content textarea,.dialog-content select{display:block;width:100%;margin-top:5px;border:1px solid #dce3ee;border-radius:9px;padding:9px 10px;font-weight:400}.dialog-content textarea{min-height:63px;resize:vertical}.checks,.touch{background:#f5f7fc;border-radius:12px;padding:15px;margin:10px 0 17px}.checks label{margin:9px 0;font-weight:500}.checks input{display:inline;width:auto;margin-right:6px}.touch h3{margin-bottom:12px}.dialog-actions{display:flex;justify-content:space-between;padding:0 24px 22px}.history-empty{color:#8e9aae;font-size:13px;padding:15px;background:#f5f7fc;border-radius:10px}.history-item{border-left:3px solid #fa9057;padding:3px 0 14px 12px;margin:10px 0;font-size:13px}.history-item small{color:#8d9aad}.history-item p{font-size:13px}#toast{display:none;position:fixed;bottom:22px;right:22px;background:#253759;color:white;padding:13px 17px;border-radius:10px;box-shadow:0 9px 24px #22345744;max-width:350px;z-index:10}@media(max-width:1100px){.shell{grid-template-columns:1fr}aside{display:block;padding:15px}.brand{display:inline-block;margin-right:30px}nav{display:inline-flex;gap:5px}.side-note{display:none}.track{grid-template-columns:repeat(2,1fr)}.scoreboard,.routes{grid-template-columns:repeat(2,1fr)}main{padding:20px}}@media(max-width:650px){header,.board-top{display:block}.header-actions{text-align:left;margin-top:13px}.hero{padding:20px}.hero h2{font-size:21px}.mascot{display:none}.track,.board-bottom,.insights,.lead-list,.form-grid{grid-template-columns:1fr}.station:nth-child(2n){transform:none}.track:before{display:none}.scoreboard,.routes{grid-template-columns:repeat(2,1fr)}.section-head{display:block}.section-head input{width:100%;min-width:0;margin-top:13px}}
.hour-note{font-size:12px;color:#8290a3;margin:-5px 0 15px}.dialog-content input[readonly]{background:#f3f5f9;color:#5c6c84}
.sources{border:1px solid #e4eaf2;border-radius:12px;margin:14px 0;padding:13px;background:#fff}.sources summary{cursor:pointer;font-weight:800;color:#293c5d}.source-columns{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:13px}.source-columns>div{min-width:0;max-height:290px;overflow:auto;background:#f6f8fc;padding:12px;border-radius:9px}.source-columns h4{margin:0 0 10px}.source-msg{font-size:12px;border-bottom:1px solid #e3e7ef;padding:8px 0}.source-msg small{color:#8290a4}.source-msg p{color:#35445d;font-size:12px;margin-top:4px}.source-columns pre{white-space:pre-wrap;font:12px/1.5 system-ui;color:#35445d;margin:0}.source-meta{font-size:12px;color:#8b99ad;margin-top:8px}@media(max-width:650px){.source-columns{grid-template-columns:1fr}}
/* Corrida de Valor: tabuleiro físico, com trilha sinuosa e peças. */
:root{color:#252119;background:#fbf7ef}aside{background:#191919;color:#fff4e4}nav button.active,nav button:hover{background:#f68b3e;color:#211c17}.side-note{background:#2b2824;color:#eedbc9}main{background:#fbf7ef}.hero{background:radial-gradient(circle at 80% 20%,#a95527 0,#4e2e1b 35%,#1c1a19 80%);border:2px solid #ed984e;box-shadow:0 14px 32px #42280f29}.hero p{color:#f7e5d5}.score,.box,.route-card{border-color:#ecdcc9;box-shadow:0 5px 15px #533a1c0b}.route-card.active{border-color:#ef8433;background:#fff0dc}.board-top .pill{background:#2b2420;color:#ffb065}.race-board{position:relative;background:radial-gradient(circle at 10% 15%,#ffe8bf,#f7d5a3 42%,#eab576 100%);border:12px solid #342418;border-radius:34px;padding:22px 24px 34px;margin-bottom:22px;box-shadow:0 14px 0 #b26b37,0 25px 30px #3925153b,inset 0 0 0 3px #f8d8aa;overflow:hidden}.race-board:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#b77c4440 1px,transparent 1px);background-size:18px 18px;pointer-events:none}.race-banner{position:relative;z-index:2;display:flex;justify-content:space-between;gap:10px;align-items:center;background:#241b17;color:#ffe3bb;border-radius:13px;padding:11px 15px;font-weight:900;font-size:11px;letter-spacing:.1em;margin-bottom:24px}.race-banner span:first-child,.race-banner span:last-child{color:#ffa452}.track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px;position:relative;margin:0}.track:before{display:none}.race-line{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible;filter:drop-shadow(0 3px 1px #a46033aa);pointer-events:none}.station,.station:nth-child(2n){transform:none}.station{z-index:1;min-height:148px;border:3px solid #fff9e9;border-radius:24px;background:linear-gradient(160deg,#fffaf0,#fce8cf);padding:9px 10px 10px;box-shadow:0 6px 0 #a86737,0 10px 15px #53351a40;transition:transform .18s,box-shadow .18s}.station:hover{transform:translateY(-5px);box-shadow:0 11px 0 #a86737,0 18px 22px #53351a40}.station:nth-of-type(4n+2){background:linear-gradient(160deg,#fff6e6,#ffd8a8)}.station:nth-of-type(4n+3){background:linear-gradient(160deg,#fff8ed,#ffe1ba)}.station.finish{background:linear-gradient(135deg,#242019,#4b2d1e);border-color:#ffd082;color:#fff}.station-open{display:flex;align-items:flex-start;width:100%;gap:8px;border:0;background:transparent;text-align:left;color:inherit;padding:1px}.station-number{width:35px;height:35px;flex:none;border-radius:50%;background:#f58336;color:#fff;box-shadow:inset 0 -3px #bc5c22;display:grid;place-items:center;font-size:12px}.finish .station-number{background:#ffd473;color:#282019;box-shadow:none}.station-copy{display:grid;min-width:0}.station-copy small{font-size:10px;color:#bc622c;letter-spacing:.08em;font-weight:900}.finish .station-copy small{color:#ffcb7b}.station-copy b{font-size:15px;line-height:1.15}.station-copy em{font-style:normal;color:#795e47;font-size:11px;line-height:1.28;margin-top:5px}.finish .station-copy em{color:#f3d6bd}.station-arrow{margin-left:auto;color:#db722c;font-size:18px}.tokens{margin:10px 0 0 42px;min-height:31px;align-items:center}.token{width:31px;height:31px;border:2px solid #fff5df;box-shadow:0 3px 0 #5b3528,0 5px 7px #42250e77;z-index:2}.extra-token{font-size:11px;font-weight:900;color:#8a522e}.stage-content{padding:23px 26px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.stage-detail{border:1px solid #ead7c0;background:#fffaf2;border-radius:13px;padding:15px}.stage-detail small{color:#cf6d2a;font-size:11px;font-weight:900;letter-spacing:.08em}.stage-detail p{margin-top:7px;color:#453c31;font-size:14px}.stage-detail a{color:#c46028;font-weight:800}.stage-caution{font-size:11px!important;color:#85715d!important}.dialog-head{background:#28201a}.checks,.touch,.source-columns>div{background:#fbf4e9}.lead-row:hover{background:#fff5e8;border-color:#f4b87b}
@media(max-width:1000px){.race-board{overflow-x:auto}.track{min-width:760px}.race-banner{min-width:760px}}
@media(max-width:650px){.race-board{padding:15px;border-width:8px}.track{grid-template-columns:repeat(4,180px);min-width:780px;gap:22px 13px}.station{min-height:160px}.race-banner{min-width:780px}.stage-content{grid-template-columns:1fr}}
.stage-participants{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.stage-participants button{border:1px solid #eeb176;background:#fff2db;border-radius:20px;padding:7px 10px;color:#553219;font-size:12px;font-weight:800}.stage-participants span{font-size:13px;color:#8d7865}.unassigned{max-height:310px;overflow:auto;align-content:flex-start}
.stage-wide,.stage-actions{grid-column:1/-1}.stage-detail label{display:block;color:#453c31;font-size:13px;font-weight:800;margin-top:12px}.stage-detail textarea,.stage-detail select{display:block;width:100%;margin-top:5px;border:1px solid #dfc7a9;border-radius:9px;background:#fff;padding:10px;color:#352b22}.stage-detail textarea{min-height:75px;resize:vertical;line-height:1.45}.stage-detail #stage-message{min-height:125px}.stage-detail #stage-instruction{min-height:100px}.stage-detail #stage-status{margin-top:10px;font-size:12px;color:#76543a}.stage-detail #stage-video{margin-top:9px}.stage-actions{display:flex;justify-content:flex-end;padding-bottom:8px}

.scoreboard{grid-template-columns:repeat(4,1fr)}.routes{grid-template-columns:repeat(3,1fr)}.route-preview{grid-column:1/-1;min-height:180px}.route-preview p{margin-top:12px}.lead-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.overview-card{border:1px solid #e3e8f2;background:#fffaf5;border-radius:14px;padding:15px;min-height:105px}.overview-card small{display:block;color:#dc703c;font-weight:900;letter-spacing:.08em;font-size:11px}.overview-card b{display:block;margin:7px 0;color:#202c3d}.overview-card span{color:#7a8799;font-size:12px}.lead-edit{border:1px solid #e3e8f2;border-radius:14px;padding:15px;margin:15px 0}.lead-edit summary{font-weight:850;cursor:pointer;color:#304160}.lead-edit[open] summary{margin-bottom:15px}@media(max-width:760px){.scoreboard{grid-template-columns:repeat(2,1fr)}.routes{grid-template-columns:1fr}.lead-overview{grid-template-columns:1fr}}

.instruction-box{display:flex;align-items:stretch;gap:8px}.instruction-box textarea{flex:1;min-width:0}.instruction-box button{align-self:flex-start;margin-top:5px;min-width:46px;height:46px;font-size:21px;padding:7px}.instruction-box button.recording{background:#f4783c;color:white;border-color:#f4783c;animation:mic-pulse 1.2s ease-in-out infinite}@keyframes mic-pulse{50%{box-shadow:0 0 0 7px #f4783c33}}#stage-mic-status{font-size:12px;color:#76543a;min-height:18px;margin:7px 0}

.stage-detail #stage-message{font-weight:400}.message-preview-wrap{margin-top:14px}.message-preview-wrap small{display:block;margin-bottom:7px}.message-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#e7ffd9;color:#142111;border-radius:12px 12px 3px 12px;padding:14px 16px;font-size:14px;line-height:1.55;font-weight:400;min-height:70px;max-width:560px;margin-left:auto;box-shadow:0 2px 6px #283d1920}.message-preview strong{font-weight:700}.message-preview em{font-style:italic}.preview-empty{color:#68805d}

.stage-batch-tools,.stage-batch-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}.stage-batch-tools label,.stage-batch-actions label{flex:1;min-width:130px}.stage-batch-tools select,.stage-batch-actions select{margin-top:4px;width:100%}.stage-participants{display:grid;gap:7px;max-height:300px;overflow:auto}.stage-lead-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e8d7c2;border-radius:10px;padding:8px;background:#fff}.stage-lead-row label{display:flex;align-items:flex-start;gap:8px;margin:0;flex:1}.stage-lead-row input{margin-top:3px}.stage-lead-row span{font-size:12px;font-weight:750}.stage-lead-row small{display:block;font-size:10px;font-weight:400;color:#765f4b;letter-spacing:0;margin-top:3px}.stage-lead-row button{font-size:11px;padding:6px 8px;white-space:nowrap}.stage-plan-results{display:grid;gap:6px;max-height:250px;overflow:auto}.stage-plan-result{padding:8px;border-radius:8px;background:#fff;border:1px solid #ead8c7;font-size:11px;color:#4d3a2c}.stage-plan-result b{display:block;font-size:12px}.stage-plan-result.ready{border-color:#a8c992;background:#f4ffed}
#stage-dialog[open]{width:min(1280px,calc(100vw - 24px));max-width:none;max-height:94vh;display:flex;flex-direction:column}
#stage-dialog .dialog-head{flex:none}
#stage-dialog .stage-content{overflow-y:auto;min-height:0;grid-template-columns:minmax(0,1fr) minmax(260px,320px);padding:22px;gap:16px}
#stage-dialog .stage-wide{min-width:0}
#stage-dialog #stage-message,#stage-dialog #stage-message-5min,#stage-dialog #stage-message-30min{min-height:220px;max-height:70vh;font-weight:400;font-size:15px;line-height:1.65;padding:16px;white-space:pre-wrap;overflow-wrap:break-word}
#stage-dialog .message-preview-wrap{margin:10px 0 22px}
#stage-dialog .message-preview{width:100%;max-width:none;min-height:140px;height:auto;overflow:visible;margin-left:0;padding:19px 22px;font-size:15px;line-height:1.7}
@media(max-width:800px){#stage-dialog .stage-content{grid-template-columns:1fr}#stage-dialog .message-preview{max-width:100%}}
.test-lead-card{display:grid;gap:6px;margin:12px 0;padding:13px;border:1px solid #eab889;border-radius:12px;background:#fff3e5;color:#49311f}.test-lead-card span{font-size:13px}.test-lead-card small{font-size:11px;line-height:1.4;color:#77614d}.test-lead-card button{justify-self:start;margin-top:5px}.dialog-actions{gap:8px;flex-wrap:wrap}
#stage-title-input{display:block;width:100%;margin-top:5px;padding:12px 14px;border:1px solid #dfc7a9;border-radius:9px;background:#fff;color:#352b22;font-size:17px;font-weight:750}

/* Casas da corrida: cada etapa tem seu próprio emblema e cor. */
.race-board{padding:26px 30px 38px;background:radial-gradient(circle at 30% 15%,#fff0d6,#f4cf98 56%,#e7ab6a)}
.track{gap:46px 42px}
.race-line{filter:drop-shadow(0 7px 2px #5c321b55)}
.station,.station:nth-child(2n),.station:nth-of-type(4n+2),.station:nth-of-type(4n+3){min-height:202px;padding:14px 15px 12px;border:2px solid #fff6e9;border-top:7px solid var(--stage-accent);border-radius:19px 19px 24px 24px;background:radial-gradient(circle at 100% 0,var(--stage-soft),transparent 62%),linear-gradient(158deg,#fffaf2,#fbe8cf);box-shadow:0 7px 0 #844a2d,0 14px 20px #55351b38,inset 0 0 0 1px #ce9a6b55;transform:none;overflow:hidden}
.station:before{content:"";position:absolute;right:-20px;top:34px;width:76px;height:76px;border:11px solid var(--stage-accent);border-radius:50%;opacity:.10;pointer-events:none}
.station:nth-of-type(3n+2){border-radius:25px 16px 24px 18px}
.station:nth-of-type(3n+3){border-radius:17px 25px 17px 25px}
.station:hover{transform:translateY(-5px);box-shadow:0 12px 0 #844a2d,0 21px 24px #55351b42}
.station-open{position:relative;z-index:1;gap:10px;min-height:108px}
.station-emblem{flex:none;display:grid;place-items:center;width:41px;height:41px;border-radius:13px;background:var(--stage-accent);color:#fff;font-size:23px;font-weight:900;box-shadow:0 3px 0 #63371955;transform:rotate(-7deg)}
.station:nth-of-type(3n+2) .station-emblem{transform:rotate(7deg)}
.station-copy small{font-size:10px;color:var(--stage-accent);letter-spacing:.11em}
.station-copy b{font-size:16px;line-height:1.14;margin-top:3px}
.station-copy em{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px;line-height:1.35;margin-top:6px}
.station-arrow{font-size:18px;color:var(--stage-accent);line-height:1}
.station-footer{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px dashed #d9b68c;padding-top:9px;margin-top:8px}
.station-count{display:inline-flex;align-items:baseline;gap:4px;border-radius:20px;background:#2c211b;color:#ffe5c5;padding:4px 8px;font-size:10px;font-weight:800;white-space:nowrap}
.station-count strong{font-size:14px;color:#ffb36b}
.racer-list{display:flex;gap:4px;flex-wrap:wrap;align-items:center;min-width:0}
.racer{display:inline-flex;align-items:center;gap:4px;max-width:87px;padding:3px 6px 3px 3px;border:1px solid #e3bc91;border-radius:16px;background:#fffaf1;color:#493522;font-size:10px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.racer span{display:grid;place-items:center;flex:none;width:18px;height:18px;border-radius:50%;background:var(--stage-accent);color:#fff;font-size:10px}
.racer-more{font-size:10px;color:#8d572d;font-weight:900}
.station.finish{background:radial-gradient(circle at 95% 10%,#6a422c,#2b211b 72%);border-color:#ffd38b;box-shadow:0 7px 0 #6c3e25,0 14px 22px #29190e66}
.station.finish .station-copy small,.station.finish .station-arrow{color:#ffd177}
.station.finish .station-copy em{color:#f6dfc4}
.station.finish .station-footer{border-color:#8a6748}
@media(max-width:1000px){.track{min-width:940px;gap:38px 30px}}
@media(max-width:650px){.track{grid-template-columns:repeat(4,210px);min-width:920px;gap:38px 24px}.station{min-height:215px}.race-board{padding:18px}}
.stage-detail .cadence-minutes{display:inline-block;width:76px;margin:0 5px;padding:7px 8px;border:1px solid #dfc7a9;border-radius:8px;background:#fff;color:#352b22;text-align:center;font-weight:850}
.scoreboard{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:900px){.scoreboard{grid-template-columns:repeat(2,minmax(0,1fr))}}

.message-polish-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}.message-polish-actions button{font-size:12px;padding:8px 11px}.message-polish-actions span{font-size:12px;color:#76543a;flex:1 1 220px}
.dispatch-dialog{width:min(720px,calc(100% - 20px));max-height:88vh}.dispatch-dialog .dialog-content{max-height:70vh;overflow:auto}.dispatch-details{display:grid;gap:10px;margin:14px 0}.dispatch-details .stage-plan-result{margin:0}.dispatch-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}#dispatch-status{font-size:13px;color:#86542f}
.queue-bulk{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.queue-item{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #e4e7ed;border-radius:14px;padding:14px 16px;margin:9px 0;background:#fff}
.queue-item b{display:block;color:#24314a}.queue-item small{display:block;color:#758397;margin-top:5px}.queue-actions{display:flex;gap:8px;flex-wrap:wrap}.queue-actions button{white-space:nowrap}#queue-status{min-height:20px;color:#9c552e;font-size:13px}
@media(max-width:650px){.queue-item{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.shell{grid-template-columns:minmax(0,1fr)}aside,main{width:100%;min-width:0}aside nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}aside nav button{min-width:0;white-space:normal;padding:10px 12px}.brand{display:block;margin:0 0 10px}}
