:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#f3f8ff;background:#071325;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.04em}h2{letter-spacing:-.025em}small,.muted{color:#9caec3}.shell{max-width:1100px;margin:auto;padding:16px 18px 30px}.header,.header-right,.row,.race-actions,.section-title,.bottom-actions,.race-head,.line,.lane-top,.lane-count,.lane-data,.timer,.timer-summary,.tabs,.rank,.athlete,.athlete-actions{display:flex;align-items:center;gap:10px}.header{justify-content:space-between;padding:8px 0 18px}.header-right{flex-wrap:wrap}.brand{display:flex;align-items:center;gap:7px;background:none;border:0;color:#f3f8ff;font-weight:900;letter-spacing:.08em;font-size:18px}.brand svg,.brand b,.eyebrow{color:#5ce0ef}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:6px 10px;font-size:11px;font-weight:800}.good{background:#0d3c37;color:#6ee7b7}.bad{background:#4b2330;color:#ff9ba5}.small,.back,.text-btn{background:none;border:0;color:#94b7cb}.small,.back{font-size:13px}.back{display:inline-flex;align-items:center;margin-bottom:12px}.text-btn{padding:10px 0}.center{min-height:100vh;display:grid;place-content:center;text-align:center;padding:20px}.center code{color:#5ce0ef}.home,.create{max-width:1000px;margin:auto}.hero{display:flex;align-items:center;justify-content:space-between;border-radius:26px;padding:32px;background:linear-gradient(120deg,#10374b,#09203b 55%,#0b1a2f);border:1px solid #24465b;margin-bottom:18px}.hero h1{max-width:580px;font-size:clamp(28px,5vw,48px);margin:8px 0}.hero p{color:#b3c4d4}.hero-icon{color:#3cd8e3;padding:18px;border-radius:24px;background:#0c3041}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.14em}.cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.panel{padding:20px;border-radius:20px;background:#101f34;border:1px solid #243950;margin-bottom:16px}.panel h2{display:flex;align-items:center;gap:8px;font-size:19px}.panel p{color:#b0c1d1}.panel h3{margin-top:20px}.stack{display:flex;flex-direction:column;gap:11px}.stack label,.team-fields label,.cols label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#a9c1d3}.stack input,.stack select,.row input,.team-fields input,.cols input,.cols select{width:100%;min-width:0;background:#081629;border:1px solid #35506a;color:#fff;border-radius:11px;padding:11px 12px;outline:none}.stack input:focus,.row input:focus,.team-fields input:focus{border-color:#50cfe3}.row input{flex:1}.row{min-width:0}.wrap{flex-wrap:wrap}.row button,.stack button,.panel button:not(.list-item):not(.text-btn):not(.back),.race-actions button,.section-title button,.bottom-actions button,.warning button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #316379;border-radius:11px;background:#143a50;color:#ddfaff;padding:10px 12px;font-weight:800}.stack button,.panel button.primary{background:#4edbd6!important;color:#052635!important;border-color:#4edbd6!important}.list-item{display:flex;justify-content:space-between;align-items:center;width:100%;background:#0b1b2d;border:1px solid #27405a;border-radius:12px;padding:12px;color:#fff;text-align:left;margin-bottom:7px}.list-item small,.athlete small,.rank small{display:block;margin-top:4px;font-size:11px}.create{margin-top:15px}.team-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.toast{position:fixed;z-index:50;right:15px;bottom:15px;background:#14595d;border:1px solid #60d8d8;padding:12px 16px;border-radius:13px;max-width:min(450px,95vw);box-shadow:0 12px 35px #0009}.warning{background:#513917;color:#ffe0a4;border:1px solid #9b6a20;padding:12px;border-radius:12px;margin:10px 0}.race-head{display:block;padding:4px 0 10px}.race-head h1{font-size:clamp(20px,3vw,29px);margin:6px 0 12px}.race-actions{flex-wrap:wrap}.race-actions button{font-size:12px;padding:7px 9px}.timer{background:linear-gradient(110deg,#123c51,#101f36);border:1px solid #236279;border-radius:18px;padding:12px 16px;margin:10px 0;min-height:90px}.timer-btn{width:55px;height:55px;border:0;border-radius:14px;display:grid;place-items:center;background:#49ddaf;color:#052629;flex-shrink:0}.timer-btn.amber{background:#f8c34d}.timer>div:nth-child(2){min-width:120px}.timer strong{display:block;font-size:clamp(24px,5vw,37px);font-family:ui-monospace,Consolas,monospace;line-height:1.15}.timer small{display:block;font-size:11px}.timer-summary{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.timer-summary span{background:#ffffff13;border-radius:9px;padding:6px;font-size:10px;color:#a8bacd}.timer-summary b{display:block;font-size:14px;color:#fff}.tabs{margin:14px 0;overflow-x:auto;border-bottom:1px solid #274057}.tabs button{border:0;background:none;color:#a3b9cc;padding:10px 13px;display:flex;align-items:center;gap:6px;white-space:nowrap;font-weight:700}.tabs svg{width:17px;height:17px}.tabs .selected{color:#55e0e8;border-bottom:2px solid #55e0e8}.section-title{justify-content:space-between;margin:14px 0 9px}.section-title h2{font-size:17px;margin:3px 0}.lane-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lane{--accent:#25c6dc;min-width:0;min-height:175px;border:1px solid #3b4c60;border-left:4px solid var(--accent);background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 22%,#102038),#0c192d 68%);border-radius:17px;padding:12px 14px;color:#fff;text-align:left;display:flex;flex-direction:column;justify-content:space-between;transition:transform .12s,filter .12s}.lane:active:not(:disabled){transform:scale(.975)}.lane:disabled{opacity:.8}.lane.ours{border:2px solid #5de9aa;box-shadow:0 0 0 2px #3be8a526}.lane.flash{filter:brightness(2)}.lane-top{justify-content:space-between}.lane-number{display:grid;place-items:center;background:var(--accent);border-radius:9px;width:35px;height:35px;font-size:20px}.lane-place{font-size:10px;font-weight:900;color:#99dddf}.lane-name{font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lane-count{font-size:30px;font-weight:900;line-height:1}.lane-count small{font-size:9px;line-height:1.3;letter-spacing:.06em}.lane-data{gap:5px}.lane-data span{min-width:0;flex:1;padding:5px;background:#ffffff12;border-radius:8px;font-size:9px;color:#a8bdce}.lane-data b{display:block;color:#fff;font-size:12px}.lane-action{display:block;text-align:center;background:#ffffff1d;padding:6px;border-radius:8px;font-size:10px;font-weight:900}.bottom-actions{justify-content:space-between;flex-wrap:wrap;margin:12px 0;color:#a8bacd;font-size:12px}.bottom-actions .danger{color:#ffc2c2;background:#572537;border-color:#b4515d}.athlete{border:1px solid #30475c;border-radius:12px;padding:9px;margin:7px 0;min-width:0}.athlete>span:nth-child(2){flex:1;min-width:0}.athlete-actions{gap:3px}.athlete-actions button{padding:6px!important;font-size:11px}.line{justify-content:space-between;border-bottom:1px solid #283c51;padding:9px 0;font-size:12px;flex-wrap:wrap}.rank{border:1px solid #2c455d;border-radius:12px;padding:12px;margin:9px 0}.rank-ours{border-color:#61d9a9;background:#19433855}.rank>span{flex:1;min-width:0}.rank i{display:block;height:5px;border-radius:10px;margin-top:8px}.qr{background:#fff;color:#06172a;width:max-content;padding:12px;border-radius:12px;margin-bottom:14px}.qr p{margin:5px 0 0;text-align:center;color:#06172a}footer{display:flex;align-items:center;gap:5px;color:#7893a7;font-size:11px;padding:18px 0}.compact .lane{min-height:125px}@media(max-width:650px){.shell{padding:9px 10px 20px}.cols{grid-template-columns:1fr}.hero{padding:19px}.hero-icon{display:none}.panel{padding:15px}.timer{gap:8px;padding:9px}.timer-summary{display:none}.race-actions button{font-size:11px}.lane-grid{gap:7px}.lane{min-height:150px;padding:9px}.lane-count{font-size:26px}.lane-data span{font-size:8px}.lane-data b{font-size:10px}.lane-place{font-size:8px}.team-fields{grid-template-columns:1fr}.tabs{justify-content:space-between}.tabs button{font-size:10px;padding:8px 6px}.tabs svg{width:15px;height:15px}.athlete{flex-wrap:wrap}.athlete-actions{width:100%;justify-content:flex-end}}@media(max-height:730px)and (max-width:650px){.lane{min-height:120px}.race-head h1{margin:3px 0 5px}.timer{min-height:65px}.timer-btn{width:42px;height:42px}.tabs{margin:8px 0}}@media print{.header,.tabs,.race-actions,.bottom-actions,.timer-btn,.section-title button,.toast,.warning,footer{display:none!important}.shell{max-width:none;color:#111;background:#fff}.panel,.rank{background:#fff;color:#111;border-color:#999}.panel p,.muted{color:#333}.race-head,.timer{color:#111;background:#fff}.timer strong{color:#111}.cols{grid-template-columns:1fr}}@media(max-width:650px){.shell:has(.lane-grid){min-height:100dvh;display:flex;flex-direction:column}.shell:has(.lane-grid) .lane-grid{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}.shell:has(.lane-grid) .lane{min-height:0;gap:3px}.shell:has(.lane-grid) .race-actions{display:none}.shell:has(.lane-grid) .header{padding-bottom:5px}.shell:has(.lane-grid) .race-head{padding:0}.shell:has(.lane-grid) .race-head .back{margin-bottom:3px}.shell:has(.lane-grid) .timer{margin:5px 0}.shell:has(.lane-grid) .tabs{margin:5px 0}.shell:has(.lane-grid) .section-title{margin:4px 0}.shell:has(.lane-grid) .section-title h2{font-size:14px}.shell:has(.lane-grid) .bottom-actions{margin:4px 0}.shell:has(.lane-grid) footer{padding:2px 0}.shell:has(.lane-grid) .lane-data span{padding:3px}.shell:has(.lane-grid) .lane-action{padding:4px}}@media(max-width:650px)and (max-height:640px){.shell:has(.lane-grid) .lane{min-height:100px}.shell:has(.lane-grid) .lane-grid{flex:none}.shell:has(.lane-grid) .race-head .eyebrow{display:none}.shell:has(.lane-grid) footer{display:none}}
