:root{--ink:#142237;--muted:#68758a;--line:#e4e8ee;--canvas:#f4f6f8;--home:#2877ee;--away:#d86b43;--navy:#101d32;--radius:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button{touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #83b7ff;outline-offset:3px}button{transition:background .15s,transform .12s}button:active:not(:disabled){transform:translateY(1px)}button[hidden],[hidden]{display:none!important}a{color:inherit}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line)}.top-inner{max-width:1360px;margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:18px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:15px;font-weight:850;letter-spacing:.6px;white-space:nowrap}.brand-live{color:var(--home);margin-left:4px}.lab-tag{font-size:9px;letter-spacing:1.3px;font-weight:700;border-left:1px solid var(--line);padding-left:13px;margin-left:4px;color:var(--muted)}.top-actions{display:flex;gap:12px;align-items:center}.local-badge{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-right:6px}.local-badge span,.footer-dot{width:5px;height:5px;display:inline-block;background:#4e9e88;border-radius:50%}.button{border:1px solid transparent;border-radius:9px;padding:10px 15px;font-size:12px;font-weight:650;min-height:39px;background:#fff;color:var(--ink)}.button.quiet{background:transparent}.button.quiet:hover{background:#f0f3f7}.button.outline{border-color:#dce2e9}.button.outline:hover{background:#f4f7fa}.button.primary{background:#2167dc;color:#fff}.button.primary:hover{background:#1856bf}.button.small{padding:9px 13px}.text-button{background:none;border:0;padding:0;color:#3c5b82;font-size:11px;font-weight:650;min-height:28px}.text-button:hover{text-decoration:underline}main{max-width:1360px;margin:auto;padding:30px 36px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:750;color:#8b95a3;margin-bottom:7px}h1{font-size:29px;letter-spacing:-1.1px;margin:0;font-weight:730}.page-heading p{font-size:12px;color:var(--muted);margin:6px 0 0}.heading-actions{display:flex;gap:18px;align-items:center}.demo-badge{font-size:10px;background:#fbf0db;color:#84652a;border:1px solid #efdfc0;border-radius:30px;padding:6px 10px}.dashboard{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(310px,1fr);gap:20px;align-items:start}.scoreboard{background:var(--navy);color:#fff;border-radius:var(--radius);overflow:hidden;min-height:357px;box-shadow:0 8px 24px #101d3210}.board-top{display:flex;align-items:center;justify-content:space-between;padding:18px 24px 0}.board-label{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.25px;font-weight:650;color:#a7b5c8}.live-dot{height:6px;width:6px;background:#96a5b9;border-radius:50%}.live-dot.running{background:#6dd0a4;box-shadow:0 0 0 4px #6dd0a417}.board-undo{color:#a7b5c8;border:0;background:none;font-size:10px;padding:5px}.board-undo:hover:not(:disabled){color:#fff}.score-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(168px,1.1fr) minmax(0,1fr);padding:19px 24px 12px;gap:18px}.team{text-align:center;min-width:0}.team-marker{display:inline-flex;background:#22446b;color:#8fc0ff;font-weight:700;font-size:9px;letter-spacing:1.1px;border:1px solid #315983;border-radius:5px;min-width:36px;height:24px;align-items:center;justify-content:center;padding:0 6px}.away .team-marker{background:#452f2e;color:#f0ae8c;border-color:#604136}.team h2{font-size:17px;font-weight:650;margin:9px 0 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:-.2px}.goal-count{font-size:79px;font-weight:650;line-height:1.17;letter-spacing:-4px;font-variant-numeric:tabular-nums;margin:3px 0 8px}.score-buttons{display:flex;align-items:center;justify-content:center;gap:6px}.goal-button{border:0;padding:9px 12px;min-height:39px;font-weight:650;font-size:12px;color:#fff;border-radius:7px;white-space:nowrap;display:flex;align-items:center;gap:10px;justify-content:center}.home-goal{background:#286de0}.home-goal:hover{background:#3980f2}.away-goal{background:#a64f33}.away-goal:hover{background:#be6142}kbd{font-size:9px;font-family:inherit;line-height:1;display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:17px;border:1px solid #ffffff28;border-radius:3px;font-weight:500;color:inherit;opacity:.65;padding:0 3px}.minus-button{border:1px solid #ffffff1a;background:#ffffff06;color:#b7c4d5;border-radius:7px;min-height:39px;width:31px;font-size:18px}.minus-button:hover{background:#ffffff15}.turnover-button{background:transparent;color:#8d9eb5;font-size:10px;border:0;margin-top:8px;min-height:28px}.turnover-button:hover{color:#fff}.turnover-button span{font-size:14px;display:inline-block;margin:0 3px}.clock-column{display:flex;flex-direction:column;align-items:center;padding-top:9px;min-width:0}.period-badge{color:#a9bedb;font-size:9px;letter-spacing:1.2px;border:1px solid #ffffff1d;border-radius:25px;padding:5px 10px;white-space:nowrap}.clock-display{display:flex;align-items:center;position:relative;font-family:ui-monospace,SFMono-Regular,"Roboto Mono",Consolas,monospace;background:none;border:0;color:#fff;letter-spacing:-2.8px;font-weight:500;font-size:47px;padding:13px 0 0;line-height:1.15;white-space:nowrap}.clock-edit-icon{position:absolute;right:-16px;top:24px;color:#7a91af;font:12px sans-serif;opacity:0}.clock-display:hover .clock-edit-icon{opacity:1}.clock-caption{color:#7288a5;font-size:9px;letter-spacing:.1px;margin-top:4px}.start-button{display:flex;gap:9px;align-items:center;justify-content:center;background:#edf3fc;border:0;border-radius:7px;color:#142237;font-size:11px;min-height:40px;padding:10px 12px;margin-top:23px;white-space:nowrap;font-weight:700;min-width:166px}.start-button:hover{background:#fff}.start-button kbd{border-color:#14223725;font-size:8px;min-width:31px}.start-button #startIcon{font-size:10px}.start-button.is-running{background:#ffffff0d;border:1px solid #ffffff24;color:#e4edf9}.board-detail{font-size:9px;color:#6e829d;margin-top:13px;text-align:center}.finish-button{border:1px solid #ffffff35;background:transparent;color:#fff;border-radius:6px;font-size:10px;padding:8px 11px;margin-top:10px}.board-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #ffffff0c;padding:13px 23px;font-size:9px;color:#6f839f;min-height:40px}.board-bottom #lastAction{color:#aab8ca;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px;min-width:0}.card h2{font-size:13px;font-weight:700;letter-spacing:-.15px;margin:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}.research-tag{font-size:8px;letter-spacing:.9px;color:#8c97a6;background:#f4f6f8;padding:5px 7px;border-radius:4px;font-weight:650}.win-label{display:flex;align-items:center;gap:6px;font-size:12px;color:#55667d}.team-dot{display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;vertical-align:middle}.home-dot{background:var(--home)}.away-dot{background:var(--away)}.draw-dot{background:#c5cdd8}.status-inline{margin-left:auto;font-size:9px;color:#8793a4;max-width:160px;text-align:right}.status-inline.error{color:#a94a38}.main-probability{display:flex;align-items:baseline;gap:2px;font-size:59px;letter-spacing:-3px;line-height:1.15;font-weight:620;color:#2167dc;margin:8px 0 14px;font-variant-numeric:tabular-nums}.prob-unit{font-size:31px;letter-spacing:-1px;color:#6190d3}.prob-bar{display:flex;gap:3px;height:8px;border-radius:5px;overflow:hidden;background:#f0f3f6}.prob-bar span{height:100%;transition:width .3s ease}.prob-bar #barHome{background:var(--home);width:0}.prob-bar #barDraw{background:#cad2dd;width:0}.prob-bar #barAway{background:var(--away);width:0}.prob-breakdown{display:grid;grid-template-columns:repeat(3,1fr);margin:15px 0 19px;gap:8px}.prob-breakdown>div{display:flex;flex-direction:column;gap:7px}.prob-breakdown>div>span{display:flex;gap:5px;align-items:center;font-size:9px;color:#738197}.prob-breakdown strong{font-weight:650;font-size:14px;letter-spacing:-.1px;font-variant-numeric:tabular-nums}.model-label{display:block;font-size:9px;color:#8893a3;margin-bottom:6px}.probability-card select{font-size:10px;padding:9px 28px 9px 10px;min-height:35px;background-color:#f8f9fb}.model-context{font-size:9px;line-height:1.65;color:#8390a1;margin:8px 0 5px}.model-info{font-size:9px}.subtle{color:#8b96a6;font-size:10px;font-weight:400}.possession-card{grid-column:1;grid-row:2}.possession-card .card-heading{margin-bottom:13px}.possession-controls{display:flex;gap:12px;align-items:center}.segmented{display:flex;padding:3px;border-radius:8px;background:#f1f4f8;border:1px solid #e8ecf2;gap:2px}.possession-segments{flex:1}.segmented button{flex:1;min-width:0;border:0;background:transparent;color:#8490a0;font-size:11px;padding:9px 7px;border-radius:5px;min-height:35px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.segmented button.selected{color:#245ca6;background:#fff;box-shadow:0 1px 4px #17253b0d}.segmented button[data-possession="-1"].selected{color:#a45335}.segmented button[data-possession="0"].selected{color:#596579}.possession-controls>.button{font-size:10px;min-height:43px;padding:8px 12px}.pending-row{display:flex;align-items:center;gap:10px;margin-top:13px}.pending-row label{font-size:10px;color:#7c889a;flex:1}.pending-row select{max-width:145px;font-size:10px;min-height:31px;padding:6px 27px 6px 9px}.pending-row .text-button{font-size:9px}.context-card{grid-column:1;grid-row:3}.context-card .card-heading{margin-bottom:16px}.context-teams{display:grid;grid-template-columns:1fr 1fr;gap:21px}.context-team+div{border-left:1px solid #edf0f4;padding-left:21px}.context-team-name{display:flex;align-items:center;gap:7px;font-size:11px;margin-bottom:17px;min-width:0}.context-team-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.capacity{margin-left:auto;font-size:9px;color:#929cab;white-space:nowrap;font-weight:400}.resource-line{display:flex;gap:8px;align-items:center;font-size:9px;color:#8490a1;margin-bottom:10px}.resource-line strong{margin-left:auto;color:#58677b;font-size:10px;font-weight:600}.timeout-dots{display:flex;gap:4px}.timeout-dots i{width:5px;height:5px;border:1px solid #cbd5e3;border-radius:50%;display:inline-block;background:#d7e5f8}.timeout-dots i.used{background:#fff;border-color:#d9dee7}.timeout-button{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid #dfe5ed;background:#fbfcfd;border-radius:6px;padding:9px 10px;font-size:10px;color:#3a5271;min-height:35px;font-weight:550}.timeout-button:hover{background:#f2f6fc}.timeout-button span{font-size:8px;font-weight:400;color:#94a0af}.reduction-label{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#8490a1;margin-top:15px}.reduction-label .text-button{font-size:10px;color:#3a6190;min-height:25px}.penalty-list{display:flex;gap:6px;flex-wrap:wrap;min-height:29px;align-items:center;margin-top:3px}.empty-penalty{font-size:9px;color:#a8b1bd}.penalty-chip{display:inline-flex;align-items:center;background:#fff3e7;border:1px solid #f0d9c1;border-radius:5px;color:#936134;font-size:10px;font-variant-numeric:tabular-nums;overflow:hidden}.penalty-chip button{border:0;background:transparent;color:inherit;font-size:10px;padding:5px 7px;min-height:27px}.penalty-chip button+button{border-left:1px solid #f0d9c1;font-size:13px;padding-left:6px;padding-right:6px}.keeper-label{display:flex;align-items:center;gap:6px;color:#8994a4;font-size:9px;margin-top:12px}.keeper-label input{width:12px;height:12px;margin:0;accent-color:#2877ee}.keeper-label span{font-size:8px;color:#b1b9c4;margin-left:auto}.context-note{font-size:8px;line-height:1.7;color:#99a3b0;margin:16px 0 0;border-top:1px solid #f0f2f5;padding-top:10px}.chart-card{grid-column:1;grid-row:4}.chart-card .card-heading p{margin:5px 0 0;font-size:9px}.chart-legend{display:flex;gap:6px;align-items:center;font-size:9px;color:#7c8ba0}.chart-container{position:relative;min-height:200px;width:100%}.chart-container svg{display:block;width:100%;height:auto;min-height:200px;overflow:visible}.chart-empty{position:absolute;left:0;right:0;top:40%;text-align:center;font-size:12px;font-weight:500;color:#9aa7b8;pointer-events:none;line-height:1.8}.chart-empty small{font-size:10px;font-weight:400}.chart-tooltip{position:absolute;pointer-events:none;background:var(--navy);color:#fff;padding:8px 10px;border-radius:6px;font-size:10px;line-height:1.7;box-shadow:0 6px 15px #101d3220;white-space:nowrap;z-index:3}.chart-footer{display:flex;gap:10px;justify-content:space-between;color:#a0a9b6;font-size:8px;margin-top:8px}.feed-card{grid-column:2;grid-row:2/5;align-self:start;min-height:300px}.event-feed{list-style:none;padding:0;margin:0}.feed-empty{color:#a0a9b6;font-size:11px;line-height:1.8;padding:25px 10px;text-align:center}.event-item{display:grid;grid-template-columns:39px 1fr auto;gap:10px;align-items:center;border-top:1px solid #f0f2f5;padding:13px 0}.event-item:first-child{border-top:0}.event-time{font-family:ui-monospace,Consolas,monospace;color:#9ba7b7;font-size:9px}.event-content{font-size:10px;color:#596d85;line-height:1.5}.event-content strong{font-weight:600;color:#2e435f}.event-content small{display:block;font-size:8px;color:#9ba5b3}.event-score{font-size:10px;color:#8490a1;font-variant-numeric:tabular-nums}.event-icon{font-size:8px;background:#edf3fc;color:#6893d2;border-radius:4px;padding:4px 5px;min-width:26px;text-align:center}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e5e9ef;color:#939eae;margin-top:26px;padding:20px 0 25px;font-size:9px}.page-footer>span:first-child{display:flex;gap:6px;align-items:center}.page-footer .text-button{color:#8391a3;font-size:9px}.alert{border:1px solid #e9d9c2;background:#fff8ed;color:#81643e;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;border-radius:8px;margin-bottom:18px}.alert button{border:0;background:none;font-size:20px;color:inherit}.busy .main-probability{opacity:.55}.finish-button:hover{background:#ffffff10}
input,select{border:1px solid #dce2ea;border-radius:7px;background:#fff;color:#243b58;width:100%;padding:10px 11px;min-height:40px;font-size:12px}input[type=checkbox]{width:auto;min-height:auto}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23828f9f' stroke-width='1.3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:29px}.setup-dialog,.small-dialog{color:var(--ink);border:1px solid #dde4ed;border-radius:17px;box-shadow:0 20px 90px #0d1c3440;padding:27px 29px;background:#fff;max-height:90dvh;overflow:auto}.setup-dialog{width:min(620px,94vw)}.small-dialog{width:min(450px,92vw)}dialog::backdrop{background:#0c1c39a3;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:9px}.dialog-heading h2{font-size:21px;letter-spacing:-.6px;margin:0;font-weight:650}.close-button{border:0;background:#f2f5f9;border-radius:50%;height:29px;width:29px;font-size:21px;color:#8897aa;line-height:1}.dialog-description{color:#8a96a7;font-size:11px;line-height:1.7;margin:0 0 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}label{font-size:10px;color:#697c94;line-height:1.5}label>input:not([type=checkbox]),label>select{display:block;margin-top:5px}.three-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}fieldset{margin:0;padding:0;border:0}.odds-fields{padding-top:13px;border-top:1px solid var(--line);margin:20px 0}.odds-fields legend{font-size:12px;font-weight:650;float:left;display:flex;justify-content:space-between;width:100%;margin-bottom:10px;color:#425873}.odds-fields legend span{font-size:9px;color:#9aa5b4;font-weight:400}.odds-format{display:flex;align-items:center;gap:14px;margin-bottom:11px}.odds-format select{display:inline-block;width:140px;margin-top:0;min-height:33px;padding-top:7px;padding-bottom:7px;font-size:11px}.field-help{font-size:9px;color:#99a3b2;line-height:1.8;margin:9px 0 0}.check-row{display:flex;align-items:center;gap:7px;font-size:10px;margin:12px 0 17px}.check-row input{accent-color:#2877ee}.advanced-setup{border-top:1px solid #edf0f4;padding-top:14px;margin-top:16px}.advanced-setup summary{font-size:11px;font-weight:650;color:#526b8c;cursor:pointer}.advanced-teams{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}.advanced-teams legend{font-size:11px;font-weight:650;color:#36577f;margin-bottom:12px}.advanced-teams label{display:block;margin-bottom:10px;font-size:9px}.advanced-teams input{min-height:33px;padding-top:7px;padding-bottom:7px;font-size:11px}.field-optional{font-size:8px;color:#b0b7c3}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.form-error{color:#a3483d;background:#fff3f1;border:1px solid #f3ded9;border-radius:6px;padding:9px 12px;font-size:11px;line-height:1.6}.info-content{font-size:11px;line-height:1.85;color:#738298}.info-content strong{color:#4c6484;font-weight:650}.info-content dl{display:flex;border:1px solid #e5ebf3;border-radius:8px;background:#f7f9fc;padding:15px;gap:25px;margin:18px 0}.info-content dt{font-size:22px;color:#2d619f;font-weight:650;letter-spacing:-.4px}.info-content dd{margin:0;color:#9aa5b4;font-size:9px}.shortcut-list{margin-top:20px}.shortcut-list>div{display:flex;justify-content:space-between;gap:25px;padding:13px 0;border-bottom:1px solid #edf0f5;font-size:11px;color:#697d97}.shortcut-list kbd{border-color:#cad4e1;color:#57718e;opacity:1;padding:4px 8px;height:24px;font-size:11px}.small-dialog>label{display:block;margin-top:15px}.small-dialog form>label{display:block;margin-top:17px}
@media(min-width:1450px){main{padding-top:38px}.scoreboard{min-height:370px}.score-layout{padding-top:23px;padding-bottom:18px}.goal-count{font-size:85px}.clock-display{font-size:51px}}
@media(max-width:1100px){.top-inner,main{padding-left:24px;padding-right:24px}.dashboard{grid-template-columns:minmax(0,1.75fr) minmax(285px,1fr);gap:16px}.score-layout{padding-left:16px;padding-right:16px;gap:8px;grid-template-columns:1fr 153px 1fr}.scoreboard{min-height:350px}.goal-count{font-size:68px}.team h2{font-size:15px}.clock-display{font-size:41px}.start-button{min-width:144px;font-size:10px;gap:7px}.goal-button{padding-left:10px;padding-right:10px;font-size:11px;gap:6px}.goal-button kbd{display:none}.card{padding:18px 19px}.board-bottom{padding-left:17px;padding-right:17px;font-size:8px}.local-badge{display:none}.context-teams{gap:15px}.context-team+div{padding-left:15px}.capacity{font-size:8px}.main-probability{font-size:55px}}
@media(max-width:1024px){.dashboard{grid-template-columns:1fr}.probability-card{grid-column:1;grid-row:2}.possession-card{grid-row:3}.context-card{grid-row:4}.chart-card{grid-row:5}.feed-card{grid-column:1;grid-row:6;min-height:160px}.score-layout{grid-template-columns:1fr 1.1fr 1fr;gap:20px;padding:18px 30px 13px}.goal-count{font-size:77px}.clock-display{font-size:48px}.team h2{font-size:17px}.start-button{min-width:166px;font-size:11px}.goal-button{font-size:12px;padding-left:17px;padding-right:17px}.scoreboard{min-height:350px}.probability-card{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.probability-card .card-heading{grid-column:1/3}.win-label{grid-column:1;grid-row:2}.main-probability{grid-column:1;grid-row:3;margin:7px 0 12px}.prob-bar{grid-column:1/3;grid-row:4}.prob-breakdown{grid-column:2;grid-row:2/4;align-self:center;margin:0 0 15px}.model-label{grid-column:1/3;margin-top:16px}.probability-card select{grid-column:1/3}.model-context{grid-column:1/3}.model-info{grid-column:1/3;text-align:left}.prob-breakdown strong{font-size:16px}.status-inline{font-size:8px}.page-footer{flex-wrap:wrap;font-size:8px}.page-footer>span:nth-child(2){order:3;flex-basis:100%}.context-note{font-size:9px}.feed-card .event-feed{max-height:340px;overflow:auto}.topbar{height:66px}.brand{font-size:13px}.brand img{width:29px;height:29px}.lab-tag{font-size:8px}.heading-actions{flex-direction:column;align-items:flex-end;gap:4px}.page-heading{margin-bottom:20px}main{padding-top:26px}.top-actions{gap:4px}.top-actions>.button{font-size:10px;padding:8px 10px}.card-heading .subtle{font-size:9px}}
@media(max-width:520px){.top-inner,main{padding-left:16px;padding-right:16px}.topbar{height:62px}.brand{font-size:11px;gap:7px}.brand img{width:25px;height:25px}.brand-live{margin-left:2px}.lab-tag{display:none}.top-actions .button{font-size:9px;padding:7px 8px;min-height:32px}.top-actions #importButton{display:none}.top-actions #exportButton span{display:none}h1{font-size:25px}.eyebrow{font-size:8px}.page-heading p{font-size:10px}.demo-badge{font-size:8px;padding:5px 7px}.heading-actions>.text-button{font-size:9px}.dashboard{gap:13px}.board-top{padding:13px 15px 0}.board-label{font-size:8px;letter-spacing:.8px}.board-undo{font-size:9px}.score-layout{grid-template-columns:minmax(0,1fr) 119px minmax(0,1fr);gap:6px;padding:16px 13px 12px}.team-marker{font-size:8px;min-width:30px;height:21px}.team h2{font-size:13px;margin-top:8px}.goal-count{font-size:58px;letter-spacing:-3px;line-height:1.3;margin-bottom:8px}.clock-column{padding-top:7px}.period-badge{font-size:7px;padding:5px 7px;letter-spacing:.8px}.clock-display{font-size:34px;letter-spacing:-2px;padding-top:16px}.clock-caption{font-size:7px;margin-top:5px}.start-button{min-width:113px;font-size:9px;padding:10px 8px;gap:6px;min-height:37px;margin-top:25px}.start-button kbd{display:none}.board-detail{font-size:7px;line-height:1.5;margin-top:13px}.goal-button{font-size:10px;padding:9px 10px;min-height:36px}.score-buttons{gap:4px}.minus-button{width:23px;min-height:36px;font-size:15px}.turnover-button{font-size:8px;margin-top:6px}.board-bottom{font-size:7px;padding:12px 13px;gap:10px;min-height:37px}.board-bottom>span:last-child{max-width:112px;text-align:right;line-height:1.6}.scoreboard{min-height:309px}.card{padding:17px 16px;border-radius:13px}.probability-card{column-gap:10px}.card h2{font-size:12px}.research-tag{font-size:7px}.main-probability{font-size:49px}.prob-unit{font-size:25px}.prob-breakdown{gap:8px;margin-bottom:5px}.prob-breakdown strong{font-size:12px}.prob-breakdown>div>span{font-size:8px}.status-inline{max-width:110px;font-size:7px}.win-label{font-size:10px}.model-context{font-size:9px}.possession-controls{gap:7px}.possession-controls>.button{font-size:9px;padding:8px;min-height:39px}.segmented{padding:2px}.segmented button{font-size:10px;padding:7px 5px;min-height:33px}.context-teams{gap:12px}.context-team+div{padding-left:12px}.context-team-name{gap:5px;font-size:10px;margin-bottom:16px}.capacity{font-size:7px}.resource-line{font-size:8px;gap:5px}.resource-line strong{font-size:9px}.timeout-dots{gap:3px}.timeout-dots i{width:4px;height:4px}.timeout-button{font-size:9px;padding:8px 7px}.timeout-button span{font-size:7px}.reduction-label{font-size:8px;gap:6px}.reduction-label .text-button{font-size:9px;white-space:nowrap}.keeper-label{font-size:8px;gap:4px}.keeper-label span{font-size:7px}.context-note{font-size:8px}.chart-legend{font-size:8px}.chart-container,.chart-container svg{min-height:160px}.chart-footer{font-size:7px}.setup-dialog,.small-dialog{padding:22px 20px;border-radius:14px}.dialog-heading h2{font-size:20px}.advanced-teams{gap:14px}.advanced-teams label{font-size:8px}.three-fields{gap:9px}.form-grid{gap:13px 12px}.chart-empty{font-size:11px}.page-footer{margin-top:20px;padding-top:16px}.finish-button{font-size:8px;padding:7px}.footer-dot{height:4px;width:4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* Keep both primary panels aligned while preserving the mobile stack. */
.scoreboard{align-self:stretch;display:flex;flex-direction:column}.score-layout{flex:1;align-items:center}.board-bottom{margin-top:auto}
@media(max-width:520px){.goal-button{padding-left:7px;padding-right:7px}}

@media(max-width:520px){.goal-button,.minus-button,.start-button{min-height:44px}.segmented button{min-height:39px}.timeout-button{min-height:40px;font-size:10px}.context-team-name{font-size:11px}.resource-line,.reduction-label,.keeper-label{font-size:9px}}

/* Match controls stay usable on a touch screen, in either orientation. */
.mobile-dock{display:none}
input,select,fieldset,.form-grid>label,.three-fields>label{min-width:0}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.three-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.odds-fields legend{float:none}.odds-format{clear:both;flex-wrap:wrap}.odds-format select{flex:0 1 140px;max-width:100%}
@media(pointer:coarse),(max-width:1024px){
  .button,.text-button,.board-undo,.goal-button,.minus-button,.turnover-button,.start-button,.finish-button,.timeout-button,.segmented button,.penalty-chip button,.close-button,summary{min-height:44px}
  .minus-button,.penalty-chip button+button,.close-button{min-width:44px}
  input,select,.probability-card select,.pending-row select,.odds-format select,.advanced-teams input{font-size:16px;min-height:46px}
  input[type=checkbox]{min-height:22px;width:22px;height:22px;flex-shrink:0}
  .keeper-label,.check-row{min-height:44px}
  .goal-button{font-size:14px}.turnover-button{font-size:12px}.board-undo{font-size:12px}
  .card h2{font-size:16px}.card-heading .subtle,.subtle{font-size:12px}
  .context-team-name{font-size:14px}.capacity{font-size:11px}
  .resource-line,.reduction-label,.keeper-label{font-size:12px}.resource-line strong{font-size:13px}
  .timeout-button{font-size:13px}.timeout-button span,.keeper-label span{font-size:10px}
  .reduction-label .text-button{font-size:13px;min-width:44px;min-height:44px}.empty-penalty,.penalty-chip button{font-size:12px}
  .context-note,.model-context,.field-help{font-size:12px}.model-label,.model-info,.pending-row label{font-size:12px}
  .form-grid label,.three-fields label,.check-row,.advanced-teams label,.small-dialog label{font-size:13px}
  .dialog-description,.info-content{font-size:13px}.advanced-setup summary{font-size:14px;display:list-item;padding:10px 0}
  .advanced-teams legend,.odds-fields legend{font-size:14px}.odds-fields legend span{font-size:11px}
  .close-button{display:flex;align-items:center;justify-content:center;flex-shrink:0}
}
@media(max-width:1024px){
  main{padding-bottom:calc(155px + env(safe-area-inset-bottom,0px))}
  .top-inner{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
  .top-actions>.button{font-size:12px;min-height:44px}
  .scoreboard{min-height:340px}.goal-count{font-size:76px}.team h2{font-size:20px}
  .clock-caption,.board-detail{font-size:11px}.period-badge,.board-label{font-size:10px}
  .start-button{font-size:14px;min-height:48px}.board-bottom{font-size:10px}
  .probability-card{column-gap:24px}.probability-card .win-label{grid-column:1/3;grid-row:2;font-size:13px}
  .probability-card .main-probability{grid-column:1;grid-row:3}
  .probability-card .prob-breakdown{grid-column:2;grid-row:3;margin:0 0 12px}
  .prob-breakdown>div>span{font-size:12px;min-width:0}.prob-breakdown>div>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .prob-breakdown strong{font-size:19px}.status-inline{font-size:11px;max-width:60%}
  .probability-card select{min-height:46px}.model-label{margin-top:15px}
  .possession-controls>.button{font-size:13px;min-height:48px}.segmented button{font-size:14px}
  .pending-row{gap:12px;flex-wrap:wrap}.pending-row select{max-width:180px}
  .context-teams{gap:24px}.context-team+div{padding-left:24px}.context-team-name{margin-bottom:14px}
  .context-note{line-height:1.65}.chart-card .card-heading p,.chart-legend{font-size:12px}
  .chart-footer,.event-time{font-size:11px}.event-content{font-size:13px}.event-content small{font-size:11px}.event-score{font-size:13px}
  .feed-card .event-feed{max-height:none;overflow:visible}.event-item{grid-template-columns:48px minmax(0,1fr) auto;gap:12px}
  .page-footer{font-size:11px;line-height:1.6}.page-footer .text-button{font-size:12px}
  .mobile-dock.is-visible{display:grid;grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);gap:9px;position:fixed;z-index:20;bottom:0;left:0;right:0;max-width:760px;margin:0 auto;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left));background:#101d32f5;backdrop-filter:blur(15px);border:1px solid #ffffff1c;border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -8px 30px #101d3220;color:#fff}
  .dock-probabilities{grid-column:1/4;display:flex;justify-content:space-between;gap:10px;padding:0 3px 2px;font-size:11px;color:#b9c7da;font-variant-numeric:tabular-nums}
  .dock-probabilities strong{color:#fff;margin-left:3px}.dock-probabilities .dock-home-probability{color:#8dbaff}.dock-probabilities .dock-away-probability{color:#f2ac8d}
  .dock-goal{border:0;border-radius:9px;min-width:0;min-height:64px;padding:8px 10px;color:#fff;text-align:left;display:flex;flex-direction:column;gap:5px}
  .dock-goal>span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
  .dock-goal strong{font-size:18px;display:flex;align-items:center;justify-content:space-between;gap:6px;font-variant-numeric:tabular-nums}.dock-goal strong>span+span{font-size:12px;white-space:nowrap}
  .dock-clock{border:1px solid #ffffff30;background:#ffffff0c;border-radius:9px;color:#fff;padding:7px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px}
  .dock-clock strong{font-size:24px;font-family:ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-1px}.dock-clock>span{font-size:10px}
  .dialog-footer .button{font-size:14px;min-height:48px}.dialog-heading h2{font-size:22px}
}
@media(max-width:600px){
  .topbar{height:64px}.top-inner{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:8px}
  .brand>span{display:none}.brand img{width:30px;height:30px}.top-actions{gap:4px;margin-left:auto}
  .top-actions #importButton{display:block}.top-actions .button{font-size:12px;min-height:44px;padding:8px 10px}
  main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-top:18px}
  .page-heading{gap:10px;margin-bottom:16px}.page-heading p{font-size:12px;line-height:1.5}.eyebrow{font-size:9px}h1{font-size:25px}
  .heading-actions{gap:3px}.heading-actions>.text-button{font-size:12px}.demo-badge{font-size:9px;white-space:nowrap}
  .dashboard{gap:14px}.scoreboard{min-height:0;border-radius:14px}.board-top{padding:5px 14px 0;gap:10px}.board-label{font-size:9px;letter-spacing:.5px}.board-undo{font-size:11px;padding:8px 0;max-width:150px}
  .score-layout{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"clock clock" "home away";gap:15px 18px;padding:9px 16px 8px;align-items:start}
  .team.home{grid-area:home}.team.away{grid-area:away}
  .clock-column{grid-area:clock;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"period start" "time start" "caption start" "detail detail";column-gap:12px;row-gap:2px;padding:0 0 13px;border-bottom:1px solid #ffffff12;text-align:left}
  .period-badge{grid-area:period;justify-self:start;font-size:9px;padding:4px 9px;letter-spacing:.8px}
  .clock-display{grid-area:time;justify-self:start;font-size:47px;letter-spacing:-2px;padding:0;min-height:54px}
  .clock-caption{grid-area:caption;font-size:10px;margin:0}.clock-edit-icon{opacity:1;top:18px;right:-18px}
  .start-button{grid-area:start;min-width:133px;min-height:52px;font-size:14px;padding:12px;margin:0;align-self:center;gap:8px}.start-button kbd{display:none}
  .finish-button{grid-area:start;min-height:48px;min-width:130px;font-size:12px;margin:0;align-self:center}
  .board-detail{grid-area:detail;font-size:10px;margin-top:7px;text-align:left;line-height:1.5}
  .team-marker{height:24px;font-size:10px}.team h2{font-size:16px;margin:6px 0 0;min-height:22px}
  .goal-count{font-size:58px;line-height:1.1;letter-spacing:-2px;margin:5px 0 10px}
  .score-buttons{gap:7px}.goal-button{flex:1;min-width:0;font-size:14px;min-height:48px;padding:9px 6px}.minus-button{min-width:44px;width:44px;min-height:48px;font-size:22px}
  .turnover-button{font-size:12px;min-height:44px;margin-top:1px}.board-bottom{font-size:10px;padding:10px 14px;gap:12px;min-height:38px}.board-bottom>span:last-child{display:none}
  .card{padding:18px 16px}.card-heading{margin-bottom:15px}.research-tag{font-size:8px}.probability-card{column-gap:12px;grid-template-columns:100px minmax(0,1fr)}
  .main-probability{font-size:44px;letter-spacing:-2px}.prob-unit{font-size:25px}.prob-breakdown{gap:8px}.prob-breakdown strong{font-size:16px}.prob-breakdown>div>span{font-size:11px}.prob-breakdown>div{min-width:0}
  .status-inline{font-size:10px}.model-context{font-size:12px;line-height:1.6}.model-info{font-size:12px}.model-label{font-size:12px}
  .possession-controls{flex-direction:column;align-items:stretch;gap:10px}.segmented button{font-size:14px;min-height:46px;padding:8px}.possession-controls>.button{font-size:13px;min-height:46px}
  .pending-row label{font-size:12px;min-width:100px}.pending-row select{max-width:160px;min-width:0;font-size:16px}.pending-row .text-button{font-size:12px}
  .context-teams{gap:14px}.context-team+div{padding-left:14px}.context-team-name{font-size:14px;flex-wrap:wrap;gap:5px;margin-bottom:12px}.context-team-name strong{max-width:calc(100% - 12px)}.capacity{font-size:11px;margin:0;flex-basis:100%}
  .resource-line{font-size:11px;gap:5px;flex-wrap:wrap}.resource-line strong{font-size:12px}.timeout-dots{gap:3px}.timeout-dots i{width:5px;height:5px}
  .timeout-button{font-size:12px;flex-direction:column;align-items:flex-start;gap:4px;padding:9px;min-height:58px}.timeout-button span{font-size:10px}
  .reduction-label{font-size:11px;flex-wrap:wrap;gap:0;margin-top:12px}.reduction-label .text-button{font-size:13px;width:100%;text-align:left}
  .penalty-list{min-height:44px;gap:6px}.penalty-chip button{font-size:12px;min-height:44px;padding:8px}.penalty-chip button+button{min-width:44px;font-size:18px}
  .empty-penalty{font-size:11px}.keeper-label{font-size:12px;gap:7px;flex-wrap:wrap;line-height:1.5}.keeper-label span{font-size:10px;margin-left:29px}.context-note{font-size:11px}
  .chart-legend,.chart-card .card-heading p{font-size:11px}.chart-card .card-heading{flex-wrap:wrap}.chart-container,.chart-container svg{min-height:145px}.chart-footer{font-size:10px;line-height:1.6;align-items:flex-start}.chart-footer>span:first-child{max-width:75%}
  .event-content{font-size:13px}.event-content small{font-size:11px}.event-time,.event-score{font-size:11px}.event-item{gap:9px}
  .setup-dialog,.small-dialog{width:calc(100vw - 24px);max-width:620px;max-height:calc(100dvh - 24px);padding:20px 18px;border-radius:16px;margin:auto}
  .dialog-description{font-size:13px}.dialog-footer{position:sticky;bottom:-20px;background:#fff;z-index:1;margin-left:-18px;margin-right:-18px;padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 16px #ffffffed}
  .dialog-footer .button{flex:1;padding:11px 8px}.form-grid{gap:14px 12px}.three-fields{gap:10px}.form-grid label,.three-fields label{font-size:13px}
  .advanced-teams{grid-template-columns:1fr;gap:14px}.advanced-teams fieldset+fieldset{border-top:1px solid var(--line);padding-top:17px}.advanced-teams label{font-size:13px}
  .field-help,.check-row{font-size:12px}.info-content dl{gap:20px}.info-content dd{font-size:11px}.form-error{font-size:13px}
}
@media(max-width:360px){.top-actions .button{padding:8px;font-size:11px}.score-layout{padding-left:12px;padding-right:12px;column-gap:12px}.goal-button{font-size:12px}.clock-display{font-size:38px;letter-spacing:-1.5px}.start-button{min-width:116px;font-size:12px;padding:10px}.finish-button{min-width:116px;font-size:11px}.probability-card{grid-template-columns:87px minmax(0,1fr)}.prob-breakdown strong{font-size:14px}.main-probability{font-size:39px}.dock-goal{padding-left:8px;padding-right:8px}.dock-goal strong>span+span{font-size:11px}}
