/* Lobby: quiet surfaces, one focal task, touch targets at every breakpoint. */
body.lobby-design{background:#101619;color:#ecf0ed}
.lobby-design .shell{grid-template-columns:196px minmax(0,1fr)}
.lobby-design aside{background:#121b1e;border-color:#263237;padding:28px 16px;gap:8px}
.lobby-design aside .brand{font-size:19px;margin-bottom:42px}
.lobby-design .nav{gap:5px}.lobby-design .nav button{font-size:14px;padding:11px 12px;border-radius:8px}
.lobby-design .nav button.active{background:#25352c;color:#d8ed95}
.lobby-design .account{font-size:12px}.lobby-design .account button{font-size:13px;min-height:40px;padding:8px 12px}
.lobby-page{max-width:1240px;margin:0 auto;padding:28px clamp(24px,4vw,56px) 48px;min-width:0;font-size:15px;line-height:1.5}
.lobby-page *{min-width:0}.lobby-page [hidden]{display:none!important}
.lobby-page h1{font-size:34px;line-height:1.15;letter-spacing:-1px;font-weight:650;margin:10px 0}
.lobby-page h2{font-size:21px;line-height:1.35;letter-spacing:-.4px;font-weight:600;margin-bottom:12px}
.lobby-page h3{font-size:16px;line-height:1.4;letter-spacing:0;font-weight:600}
.lobby-page p{color:#9cabb0;line-height:1.55;margin-bottom:14px}
.lobby-page .eyebrow{font-size:10px;letter-spacing:1.8px;color:#b5c892}
.lobby-page button{min-height:44px;padding:10px 16px;border:1px solid #344349;background:#1b282d;border-radius:8px;line-height:1.3;transition:background .15s,border-color .15s}
.lobby-page button:hover{background:#25363b;border-color:#809571}
.lobby-page button.primary{background:#d7eb9a;border-color:#d7eb9a;color:#172316;font-weight:600}
.lobby-page button.primary:hover{background:#e4f4b9}
.lobby-page button:disabled{cursor:default;opacity:.45}
.lobby-page :focus-visible{outline:2px solid #d7eb9a;outline-offset:4px}
.lobby-page label{font-size:13px;color:#b6c2c5;font-weight:500;margin:14px 0;gap:7px}
.lobby-page input,.lobby-page select,.lobby-page textarea{border:1px solid #38494e;background:#121e22;border-radius:8px;padding:11px 12px;color:#e5edeb;font-size:16px;min-height:44px}
.lobby-page textarea{min-height:100px;line-height:1.5}
.lobby-page .inline{font-size:13px;font-weight:400}.lobby-page .inline input{min-height:20px;flex-shrink:0}
.lobby-page .panel{padding:24px;border-color:#2a3a3f;background:#172226;border-radius:12px;max-width:none;box-shadow:none}
.lobby-page .toolbar{gap:8px;margin:16px 0;align-items:center}
.lobby-page .error:empty{display:none}.lobby-page .error{min-height:0;font-size:14px;margin:12px 0}
.lobby-page .empty{border:1px dashed #35454a;border-radius:12px;padding:28px;font-size:14px}
.session-topbar{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:22px;position:relative;z-index:8}
.session-topbar #lobby-exit{padding:6px 0;background:none;border-color:transparent;color:#a6b6bb;font-size:13px;margin:0}
.lobby-page .quiet-details{border:1px solid #2c3c41;border-radius:10px;padding:0 18px;background:#152024;margin:14px 0}
.lobby-page .quiet-details>summary{font-size:14px;font-weight:500;min-height:48px;display:list-item;align-content:center;margin:0;padding:12px 0;color:#c4d0d1;list-style-position:inside;overflow-wrap:anywhere}
.lobby-page .quiet-details[open]>summary{margin-bottom:12px;border-bottom:1px solid #2a393e}
.lobby-page .quiet-details[open]{padding-bottom:18px}
.lobby-page .session-menu{position:relative;margin:0;padding:0 14px;min-width:170px;background:#182429}
.lobby-page .session-menu[open]{position:absolute;right:0;top:0;width:min(450px,100%);z-index:10;box-shadow:0 16px 50px #0007;padding:0 18px 18px}
.lobby-page .session-menu>summary{min-height:42px;padding:10px 0;font-size:13px}
.session-date{font-size:12px}.session-menu .panel{padding:16px;background:#142024}.session-menu .strategy-fields{grid-template-columns:1fr}
.lobby-page .lobby-members{gap:6px;margin:12px 0}.lobby-page .lobby-members>span{border:0;background:#213036;padding:8px 10px;font-size:12px}.lobby-members small{font-size:11px}
.lobby-page .match-header{gap:24px;align-items:center;flex-wrap:nowrap;margin-bottom:4px}
.lobby-page .match-header>div:first-child{flex:1}.lobby-page .match-header p{font-size:13px;margin:0}
.lobby-page .lobby-score{padding:0 0 0 26px;border-left:1px solid #344348;border-radius:0;background:transparent;gap:24px;flex-shrink:0}
.lobby-page .lobby-score span{font-size:11px;gap:0;color:#8b9fa4;text-transform:uppercase;letter-spacing:1px}
.lobby-page .lobby-score b{font-size:36px;font-weight:500;line-height:1.2;color:#edf2e8;letter-spacing:0;font-variant-numeric:tabular-nums}
.session-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 22px;min-height:28px}
.lobby-page #lobby-sync{font-size:11px;color:#879c91;margin:0;text-align:right;flex:1}
.lobby-page .round-history-menu{border:0;padding:0;background:none;margin:0}.lobby-page .round-history-menu>summary{padding:6px 0;min-height:32px;font-size:12px;color:#82989e}.round-history-menu .toolbar{max-width:540px}
.lobby-page .lobby-steps{display:flex;gap:0;margin:0 0 28px;border-bottom:1px solid #2a383d;counter-reset:steps;overflow-x:auto;flex-wrap:nowrap}
.lobby-page .lobby-steps span{counter-increment:steps;white-space:nowrap;border-radius:0;padding:13px 16px 13px 0;margin-right:22px;background:none;color:#73888f;font-size:12px;border-bottom:2px solid transparent}
.lobby-page .lobby-steps span:before{content:counter(steps,decimal-leading-zero);font-size:10px;margin-right:8px;opacity:.65}
.lobby-page .lobby-steps .current{color:#d7eb9a;border-bottom-color:#d7eb9a}
.lobby-page .waiting-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.waiting-layout .panel>p:last-child{font-size:12px;margin-top:18px;margin-bottom:0}
.lobby-page .lobby-roster{gap:0;margin:16px 0}.lobby-roster>span{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #2c3a3f;font-size:13px}
.lobby-page .site-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.lobby-page .site-card{display:flex;flex-direction:column;align-items:start;padding:22px;min-height:150px}
.lobby-page .site-card h3{margin-bottom:10px;font-size:17px}.lobby-page .site-card button{margin-top:auto}.lobby-page .site-card .hint{font-size:12px;margin:0 0 18px}.lobby-page .site-card.blocked{opacity:.58;background:transparent}.site-card.blocked button{display:none}
.lobby-page .op-chip{background:#223237;border-radius:5px;gap:5px;padding:4px 7px;font-size:11px}.lobby-page .op-chip img{width:23px;height:23px}.lobby-page .op-chip.banned{color:#f3ada1;background:#3e2929}
.lobby-page .op-chips{gap:5px;margin:8px 0 12px}.lobby-page .plan-preview{margin:10px 0 16px}.plan-preview>strong{font-size:13px;font-weight:500}
.lobby-page #edit-bans{margin-top:20px;background:transparent;border-color:transparent;font-size:12px;color:#8c9fa5}
.lobby-page #lobby-stage[data-phase=ban]{max-width:840px;margin-inline:auto}.lobby-page #ban-form .strategy-fields{grid-template-columns:1fr 1fr;gap:24px}.lobby-page #ban-form>button{margin-top:14px}
.lobby-page .ban-impact{border-radius:6px;background:#322a22;padding:12px 16px;font-size:13px}.ban-impact p:last-child{margin:0}
.lobby-page .ban-note{background:none;border-bottom:1px solid #2d3b40;padding:8px 0}.lobby-page #ban-advice h3{display:none}.lobby-page #ban-advice>p{font-size:13px}.lobby-page #ban-advice summary{font-size:13px;font-weight:400}
.lobby-page .site-context{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;padding:18px 22px}.site-context h2{font-size:18px;margin:0;flex:1 1 260px}.site-context>p{font-size:12px;margin:0}.lobby-page .site-change{margin:0;border:0;background:none;padding:0}.lobby-page .site-change>summary{font-size:12px;min-height:32px}.site-change[open]{flex-basis:100%}.site-context>p:last-of-type{flex-basis:100%;font-size:11px}
.lobby-page .lobby-plan-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.lobby-page .lobby-plan-grid .panel{padding:16px;background:#19292d}.lobby-page .selected-plan{border-color:#829961!important}
.lobby-page #no-plan{font-size:12px;margin-bottom:10px}.lobby-page .match-slots{display:block;max-width:760px;margin:14px 0 20px}.lobby-page .my-pick{background:#18262a;border:1px solid #3c5144;border-radius:12px;padding:22px}.my-pick h3{font-size:17px;margin-bottom:10px}.my-pick>p{font-size:12px}.my-pick>button{margin-top:14px}
.lobby-page [data-pick-form]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;align-items:end}.lobby-page [data-pick-form]>label{margin:0}.lobby-page [data-pick-form]>button{margin:0;min-width:120px}.lobby-page .pick-details{grid-column:1/-1;width:100%;margin:0;background:#142024}.lobby-page .pick-details textarea{min-height:90px}
.lobby-page .team-status{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.lobby-page .team-status-card{display:flex;align-items:center;gap:10px;background:transparent;border:1px solid #2c3c41;padding:8px 12px}.team-status-card h3{font-size:12px;margin:0}.team-status-card>p{display:none}.team-status-card>p:first-of-type{display:block;font-size:11px;margin:0}.team-status-card .op-chip{margin:0}.team-status-card .mission-text{display:none}
.lobby-page .selection-action{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #304047;padding:18px 0;margin-top:22px;gap:18px}.selection-action>span{font-size:13px;color:#94a5a9}.lobby-page .secondary-actions{background:none;border:0;padding:0;margin:0}.lobby-page .secondary-actions>summary{font-size:12px;color:#7f959d;min-height:32px}
.lobby-page .round-context{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px}.round-context h2{font-size:17px;margin:0}.lobby-page .lock-badge{font-size:10px;font-weight:500;padding:6px 9px;background:#29332b;color:#bacaa8;border-radius:5px}.round-context h3{margin:0;color:#d7eb9a}
.lobby-page #round-result-controls{margin:12px 0 18px;display:flex;justify-content:flex-end;gap:14px;flex-wrap:wrap}.lobby-page #round-result-controls:empty{display:none}.lobby-page #round-result-controls>details{width:100%;margin:4px 0}.lobby-page #round-result-controls summary{font-size:12px;font-weight:400;color:#95a8ad}.lobby-page #result-form{width:min(100%,680px);margin:0 auto}.lobby-page .final-score{width:100%}.final-score h2{font-size:21px}
.round-tabs{display:flex;gap:4px;padding:4px;background:#152125;border:1px solid #2c3c41;border-radius:10px;margin:18px 0}.lobby-page .round-tabs button{flex:1;background:none;border:0;color:#93a8af;font-size:13px;min-height:44px}.lobby-page .round-tabs button[aria-selected=true]{background:#2a3b3f;color:#ecf2e5}
.lobby-page #lobby-tactics>label{max-width:420px;margin:12px 0}.lobby-page #lobby-board .toolbar{margin:12px 0;gap:6px}.lobby-page #lobby-board .toolbar>label{margin:0 8px 0 0;display:flex;align-items:center;gap:10px}.lobby-page #lobby-board .toolbar select{width:auto;max-width:190px;font-size:13px}.lobby-page #lobby-board .toolbar button{font-size:12px;padding:8px 12px}.lobby-page #lobby-board .toolbar button.active{background:#d7eb9a;color:#152015;border-color:#d7eb9a}
.lobby-page .tactical-board{height:clamp(340px,52vh,660px);min-height:0;border:1px solid #3b4c51;border-radius:12px}
.lobby-page .round-panel{padding:20px;background:#172226;border:1px solid #2b3b40;border-radius:12px}.round-panel .round-summary{font-size:13px}.round-panel .match-roster{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.round-panel .slot{background:#1d2d31;font-size:13px}.lobby-page #my-round-role{margin:0 0 20px;border-color:#64734d}.lobby-page #lobby-personal{padding-bottom:0;max-width:760px}.lobby-page .match-personal{margin-top:0;border-color:#2c3d42}.lobby-page .match-personal input[type=number]{font-size:20px}.lobby-page #personal-save-state:empty{display:none}
.lobby-page #lobby-list{margin:18px 0 24px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.lobby-page .strategy-card{border-color:#2e3e43;background:#172327;padding:20px;gap:9px;border-radius:12px}.lobby-page .strategy-card strong{font-size:16px;font-weight:550;letter-spacing:-.3px}.lobby-page .strategy-card span{font-size:13px}.lobby-page #legacy-history{background:none;border-color:transparent;color:#778e96;font-size:12px;padding:8px 0}.lobby-page #new-lobby{margin:22px 0;max-width:640px}.lobby-page #lobby-create+h2{margin-top:32px}
@media(min-width:1600px){.lobby-page{padding-top:40px}}
@media(max-width:1024px){.lobby-design .shell{grid-template-columns:168px minmax(0,1fr)}.lobby-design aside{padding-inline:12px}.lobby-design aside .brand{font-size:17px}.lobby-page{padding:24px}.lobby-page .waiting-layout{grid-template-columns:1fr}.lobby-page .lobby-steps span{margin-right:12px;padding-right:8px;font-size:11px}}
@media(max-width:760px){
 .lobby-design .shell{display:block}.lobby-design aside{display:grid;grid-template-columns:1fr auto;height:auto;padding:12px 16px 8px;position:static;gap:8px;border-bottom:1px solid #2b393e}.lobby-design aside .brand{font-size:15px;margin:0;align-self:center}.lobby-design .brand br{display:none}.lobby-design .nav{grid-column:1/-1;grid-row:2;display:flex;margin:0;gap:4px;padding:3px 0;scrollbar-width:none}.lobby-design .nav button{font-size:12px;padding:9px 12px;min-height:40px}.lobby-design .account{grid-column:2;grid-row:1;margin:0;gap:8px}.lobby-design .account small{display:none}.lobby-design .account button{min-height:36px;font-size:11px;padding:6px 10px}
 .lobby-page{padding:18px 16px 30px;font-size:14px}.lobby-page h1{font-size:28px}.lobby-page h2{font-size:19px}.lobby-page .panel{padding:18px}.session-topbar{margin-bottom:18px;gap:10px}.lobby-page .session-menu{min-width:0}.lobby-page .session-menu>summary{font-size:12px}.lobby-page .match-header{gap:14px}.lobby-page .lobby-score{width:auto;gap:14px;padding-left:14px;justify-content:initial}.lobby-page .lobby-score b{font-size:28px}.lobby-page .match-header p{font-size:11px}.session-meta{margin-bottom:16px;gap:6px}.lobby-page .lobby-steps{margin-bottom:20px}.lobby-page .lobby-steps span{font-size:0;margin-right:10px;padding:9px 3px;flex-shrink:0}.lobby-page .lobby-steps span:before{font-size:10px;margin:0}.lobby-page .lobby-steps span.current{font-size:12px;padding-inline:6px}.lobby-page .lobby-steps span.current:before{margin-right:7px}
 .lobby-page .site-grid{grid-template-columns:1fr;gap:10px}.lobby-page .site-card{padding:18px;min-height:0}.lobby-page .site-card h3{font-size:16px}.lobby-page .site-card.blocked{padding:14px 18px}.site-card.blocked p{font-size:12px;margin:0}.lobby-page .lobby-plan-grid{grid-template-columns:1fr}.lobby-page .op-chip{font-size:11px}.lobby-page #ban-form .strategy-fields{grid-template-columns:1fr;gap:0}.lobby-page .site-context{gap:8px}.site-context h2{flex-basis:100%}.site-context>button{width:100%;font-size:13px}.lobby-page .my-pick{padding:18px}.lobby-page [data-pick-form]{grid-template-columns:1fr}.lobby-page .pick-details{grid-column:1}.lobby-page .team-status{gap:6px}.lobby-page .team-status-card{padding:8px;font-size:11px;gap:6px;flex-wrap:wrap}.lobby-page .round-tabs button{font-size:12px;padding:10px 6px}.lobby-page .round-context h2{font-size:16px}.lobby-page .round-context{padding:14px}.lobby-page .tactical-board{height:clamp(290px,47svh,520px)}.lobby-page #lobby-board .toolbar{gap:5px}.lobby-page #lobby-board .toolbar>label{flex-basis:100%;margin-bottom:5px}.lobby-page #lobby-board .toolbar select{flex:1;max-width:none}.lobby-page #lobby-board .toolbar button{min-height:42px;padding:8px 10px}.lobby-page .match-personal .strategy-fields{grid-template-columns:1fr 1fr;gap:12px}.lobby-page .match-personal .strategy-fields>label:last-child{grid-column:1/-1}.lobby-page .round-panel{padding:16px}.lobby-page .round-panel .match-roster{grid-template-columns:1fr}.lobby-page #lobby-list{grid-template-columns:1fr}.lobby-page #lobby-personal{padding-bottom:env(safe-area-inset-bottom,0px)}
}
@media(prefers-reduced-motion:reduce){.lobby-page *{transition:none!important;scroll-behavior:auto!important}}
.lobby-page #lobby-stage .quiet-details{margin-top:12px;margin-bottom:12px}.lobby-page #lobby-stage .site-change{margin:0;padding-bottom:0}.lobby-page #lobby-stage .pick-details{margin:0}.lobby-page #lobby-stage .secondary-actions{margin:0}.lobby-page .team-status-card>p:first-of-type{display:none}.lobby-page .team-status-card>p:has(+form){display:none}
.lobby-page .ready-status{font-size:11px;color:#b6c79f}.lobby-page[data-stage=live] .lobby-steps{display:none}.lobby-page #lobby-stage[data-phase=live]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lobby-page #lobby-stage[data-phase=live]>.round-context{flex:1}.lobby-page #lobby-stage[data-phase=live]>#round-result-controls{margin:0}.lobby-page #lobby-stage[data-phase=live]:has(#result-form){display:block}.lobby-page #lobby-stage[data-phase=live]:has(#result-form)>#round-result-controls{margin-top:16px}
.lobby-page .live-strategy-picker{margin:0 0 12px}.lobby-page .live-strategy-picker>summary{min-height:40px;padding:9px 0;font-size:12px}.lobby-page .live-strategy-picker label{margin:8px 0}.lobby-page .lobby-members strong{overflow-wrap:anywhere}.lobby-design:has(.lobby-page[data-stage=live]) aside{align-self:start}
@media(max-width:760px){.lobby-design:has(.lobby-page[data-stage=live]) aside{display:none}.lobby-page[data-stage=live]{padding-top:12px}.lobby-page[data-stage=live] .session-topbar{margin-bottom:10px}.lobby-page[data-stage=live] .session-meta{margin:4px 0 14px}.lobby-page[data-stage=live] .round-tabs{margin:12px 0}}
.lobby-design #toast{background:#24392d;color:#e0ebd1;border:1px solid #64794c;box-shadow:0 8px 24px #0005;font-size:13px;line-height:1.4;padding:10px 16px;bottom:16px;max-width:min(460px,calc(100vw - 32px));border-radius:8px}
