:root{--bg:#f7f8fa;--ink:#12392e;--muted:#83908c;--line:#e7ebe8;--orange:#167a50;--green:#12392e;--mint:#eaf0ec;--sidebar:238px}*{box-sizing:border-box}body{margin:0;font-family:'DM Sans',Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:4px}svg.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3,.big-number,.stat-number,.hero-name{font-family:Manrope,Arial,sans-serif}h3{font-size:16px;letter-spacing:-.4px}small{font-size:11px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--ink);color:#c2cfc9;padding:35px 22px 0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:white;margin:0 10px 51px;font-size:11px;font-weight:700;letter-spacing:2px;line-height:1.5}.brandmark{font-family:Manrope,Arial;font-size:44px;letter-spacing:-6px;line-height:1;font-weight:800;position:relative}.brandmark span{font-size:12px;letter-spacing:0;color:var(--orange);margin-left:6px}.nav-label{font-size:9px;letter-spacing:1.6px;color:#8a9d93;margin:0 10px 19px}nav{display:flex;flex-direction:column;gap:9px}nav button{display:flex;align-items:center;gap:13px;padding:14px 16px;text-align:left;font-size:13px;border-radius:8px;color:#b7c5bf;min-height:48px}nav button.active{background:#12392e;color:white}nav button.active svg{color:#626877}.sidebar-bottom{margin-top:auto}.court-mini{color:#12392e;margin:35px 14px 18px}.sidebar-bottom>p{padding:0 13px;font-size:16px;line-height:1.8;color:#8fa098}.sidebar-bottom>p strong{color:#d4ddd7;font-weight:500}.sidebar-bottom>button{display:flex;align-items:center;gap:12px;font-size:12px;padding:20px 12px;margin-top:15px;color:#afc0b6;width:100%}.profile-small{border-top:1px solid #12392e;margin-top:9px;padding:24px 0;display:flex;align-items:center;gap:11px}.profile-small strong{display:block;font-size:12px;color:#eaf0ec}.profile-small small{display:block;margin-top:4px;font-size:10px;color:#98aaa0}.avatar{height:38px;width:38px;display:grid;place-items:center;border-radius:50%;background:#eaf0ec;color:#12392e;font-family:Manrope;font-weight:800;font-size:16px;flex-shrink:0}.online-dot{height:6px;width:6px;background:#626877;border-radius:50%;margin-left:auto}.small{width:33px;height:33px;font-size:13px}main{margin-left:var(--sidebar)}.topbar{height:80px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px}.breadcrumb{font-size:12px;color:#8b938f;display:flex;gap:17px}.breadcrumb strong{font-weight:500;color:#12392e}.top-actions{display:flex;align-items:center;gap:25px}.season-label{display:flex;align-items:center;gap:9px;color:#5b6b62;font-size:12px}.season-label select{border:0;background:none;outline:none;color:#12392e;padding:7px 5px;font-weight:600}.content{max-width:1540px;margin:0 auto;padding:34px 44px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:15px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#77877d;margin-bottom:10px}h1{font-size:30px;line-height:1.3;letter-spacing:-1.3px;font-weight:800}h1>span{color:var(--orange)}.page-heading p{color:#7b8880;font-size:12px;margin-top:8px}.primary{background:var(--ink);color:white;border-radius:7px;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:600;min-height:44px;transition:background .15s}.primary:hover{background:#12392e}.primary .icon{width:16px}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #dce3de;border-radius:7px;padding:12px 17px;font-size:12px;font-weight:500;background:white;min-height:44px}.secondary:hover{background:#eaf0ec}.mode-strip{display:flex;justify-content:space-between;align-items:center;background:#e9f4ec;border:1px solid #e9f4ec;border-radius:7px;padding:10px 14px;font-size:10px;color:#a23818;margin-bottom:22px;gap:12px}.mode-strip>div{display:flex;gap:8px;align-items:center}.mode-dot{width:5px;height:5px;display:inline-block;background:#167a50;border-radius:50%}.mode-strip strong{font-size:10px;color:#a23818}.mode-strip button{font-size:10px;font-weight:600;white-space:nowrap;color:#a23818;min-height:26px}.mode-strip button span{margin-left:8px}.mode-strip.real{background:#eaf0ec;border-color:#eaf0ec;color:#71836f}.mode-strip.real strong,.mode-strip.real button{color:#12392e}.mode-strip.real .mode-dot{background:#626877}.dashboard-top{display:grid;grid-template-columns:1.55fr 1fr;gap:19px;margin-bottom:20px}.hero{position:relative;overflow:hidden;background:#12392e;border-radius:11px;color:white;min-height:240px;padding:29px 30px;display:flex;flex-direction:column;justify-content:space-between}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#12392e 20%,transparent 95%);pointer-events:none}.hero>*:not(.court-art){z-index:1}.hero .eyebrow{color:#626877;letter-spacing:2px;font-size:9px}.hero-name{font-size:48px;font-weight:800;letter-spacing:-2px;line-height:1.2}.hero-meta{font-size:11px;color:#626877;margin-top:8px;display:flex;gap:10px;align-items:center}.hero-meta .sep{height:3px;width:3px;background:#a6b5a9;border-radius:50%}.hero-bottom{display:flex;gap:28px;align-items:center;margin-top:29px}.hero-bottom strong{font-size:17px;font-family:Manrope;font-weight:600;display:block}.hero-bottom small{color:#626877;font-size:9px;display:block;margin-top:5px;letter-spacing:.4px}.hero-bottom .vertical-line{height:28px;width:1px;background:#12392e}.hero-tag{position:absolute;right:22px;top:22px;font-size:9px;border:1px solid #12392e;border-radius:4px;padding:5px 8px;color:#626877;letter-spacing:1px}.court-art{position:absolute;width:420px;right:-133px;top:-46px;transform:rotate(-18deg);color:#626877;opacity:.38;height:330px}.court-art svg{height:100%;width:100%}.ball-art{position:absolute;right:31px;bottom:29px;width:74px;height:74px;filter:drop-shadow(0 9px 15px #12392e55);transform:rotate(-15deg)}.card{background:white;border:1px solid var(--line);border-radius:10px;padding:23px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-heading>span{font-size:10px;color:#8a968f}.text-link{display:inline-flex;align-items:center;gap:6px;color:#64776a;font-size:10px;min-height:32px}.text-link svg{width:13px;height:13px}.season-card{display:flex;flex-direction:column;justify-content:space-between}.record-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0}.big-number{font-size:34px;font-weight:800;letter-spacing:-1.5px}.record-sep{font-size:25px;font-weight:400;color:#c5cdc6;margin:0 9px}.record-detail{display:flex;gap:20px;margin-top:5px;color:#839087;font-size:10px}.record-detail i{width:6px;height:6px;border-radius:50%;display:inline-block;margin-right:4px;background:#626877}.record-detail .loss i{background:#167a50}.donut{width:94px;height:94px;position:relative;display:grid;place-items:center}.donut svg{position:absolute;inset:0;transform:rotate(-90deg)}.donut-center{text-align:center}.donut-center strong{font-size:19px;font-weight:700;letter-spacing:-.6px;display:block}.donut-center span{font-size:8px;color:#8b9b8f}.recent-results{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;color:#7c8a80}.result-pills{display:flex;gap:5px}.result-pill{font-size:9px;background:#eaf0ec;color:#12392e;width:26px;height:25px;display:grid;place-items:center;border-radius:4px;font-weight:700}.result-pill.loss{background:#e9f4ec;color:#167a50}.result-pill.draw,.result-pill.unknown{background:#eff1f1;color:#74837d}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat{padding:19px 21px;background:white;border:1px solid var(--line);border-radius:9px}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7c8c80}.stat-top .stat-icon{height:27px;width:27px;background:#eaf0ec;border-radius:6px;display:grid;place-items:center;color:#7b947c}.stat:first-child .stat-icon{background:#e9f4ec;color:#167a50}.stat-icon svg{height:15px;width:15px}.stat-number{font-size:31px;letter-spacing:-1px;font-weight:800;line-height:1.2;display:inline-block;margin-top:8px}.stat-unit{font-size:10px;color:#95a096;margin-left:6px}.stat-bottom{display:flex;gap:5px;color:#8f9c92;font-size:9px;margin-top:9px}.mid-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:19px;margin-bottom:22px}.chart-card{padding-bottom:13px}.chart-tabs{display:flex;gap:4px;margin:20px 0 9px}.chart-tabs button{font-size:10px;color:#8b9a90;border-radius:5px;padding:6px 10px;min-height:31px}.chart-tabs button.selected{background:#e9f4ec;color:#167a50}.chart-container{height:205px;position:relative}.chart-container svg{width:100%;height:100%;overflow:visible}.chart-container text{font-family:'DM Sans',Arial;font-size:10px;fill:#99a399}.chart-container .chart-point{cursor:pointer}.chart-container .chart-point:focus{outline:none;stroke:#12392e;stroke-width:4px}.chart-caption{color:#929d95;font-size:9px;margin:0 0 0 36px}.latest-card{background:#eaf0ec;border-color:#eaf0ec;position:relative;padding:23px}.latest-top{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8a9d83;margin:21px 0 15px}.latest-match{display:flex;align-items:center;gap:10px}.team-logo{width:39px;height:39px;border-radius:50%;border:1px solid #626877;display:grid;place-items:center;font-weight:800;font-size:10px;color:#12392e;background:#eaf0ec;flex-shrink:0}.latest-match strong{font-family:Manrope;font-size:14px;font-weight:800;display:block}.latest-match small{font-size:9px;color:#626877;display:block;margin-top:4px}.match-score{margin-left:auto;font-family:Manrope;font-weight:800;font-size:23px;letter-spacing:-1px;white-space:nowrap}.match-score span{color:#9caa93;font-weight:400}.latest-statline{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #eaf0ec;padding-top:18px;margin-top:19px}.latest-statline strong{font-family:Manrope;font-size:19px;display:block;text-align:center;letter-spacing:-.5px}.latest-statline small{display:block;text-align:center;font-size:8px;color:#626877;margin-top:4px;letter-spacing:.5px}.latest-card>.text-link{position:absolute;right:21px;top:17px}.badge{display:inline-flex;font-size:8px;border-radius:4px;background:#eaf0ec;color:#12392e;padding:4px 7px;font-weight:600}.badge.loss{background:#e9f4ec;color:#167a50}.badge.draw,.badge.unknown{background:#eef0ed;color:#849084}.bottom-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:19px}.table-card{padding:20px 0 0;overflow:hidden}.table-card>.section-heading{padding:0 23px 12px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#eaf0ec;border-block:1px solid #eaf0ec;color:#95a193;font-size:8px;letter-spacing:.5px;font-weight:500;padding:12px 15px}th:first-child,td:first-child{padding-left:23px}td{font-size:10px;padding:17px 15px;border-bottom:1px solid #f0f2ef;color:#667768}tr:last-child td{border-bottom:0}td strong{font-weight:600;color:#12392e}tbody tr{cursor:pointer}tbody tr:hover{background:#eaf0ec}tbody tr:focus{outline:2px solid #626877;outline-offset:-2px}.result-cell{display:flex;gap:8px;align-items:center}.result-cell .badge{min-width:20px;justify-content:center}td.numeric{color:#12392e;font-family:Manrope;font-weight:700}.notes-card{background:#e9f4ec;border-color:#e9f4ec}.notes-card .note-kicker{color:#167a50;font-size:8px;font-weight:600;letter-spacing:1px;display:flex;align-items:center;gap:6px;margin:22px 0 9px}.note-body{font-size:12px;line-height:1.75;color:#716b5e;white-space:pre-wrap;overflow-wrap:anywhere}.note-source{font-size:9px;color:#167a50;margin-top:13px}.focus-note{border-top:1px solid #e9f4ec;margin-top:16px;padding-top:14px;color:#746c5d;font-size:10px;line-height:1.7;overflow-wrap:anywhere}.focus-note strong{font-size:8px;letter-spacing:1px;display:block;color:#167a50;margin-bottom:5px}footer{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.5px;color:#a1aaa3;margin-top:28px;gap:12px}.footer-dot{color:#167a50;margin:0 5px;font-size:5px}.empty-box{padding:38px 18px;text-align:center;color:#8b9c8a;font-size:12px;line-height:1.7}.empty-box svg{display:block;margin:0 auto 12px;height:30px;width:30px}.empty-box p{margin:8px 0 16px}.filters{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.search-wrap{position:relative;max-width:380px;flex:1}.search-wrap svg{position:absolute;left:14px;top:13px;color:#96a292}.search-wrap input{padding-left:42px;background:white}.filter-select{display:flex;gap:8px}.filter-select select{width:auto;background:white;font-size:11px;min-width:110px}.games-summary{display:flex;gap:22px;margin:0 0 18px;font-size:11px;color:#81917f}.game-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.game-card{cursor:pointer;transition:transform .15s,border-color .15s}.game-card:hover{transform:translateY(-3px);border-color:#626877}.game-card .date-row{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#98a394}.game-card h3{font-size:16px;margin:20px 0 6px}.game-card .game-meta{font-size:10px;color:#8a9983}.game-card .game-score{font-family:Manrope;font-size:32px;font-weight:800;margin:17px 0;letter-spacing:-1px}.game-card .game-score span{color:#626877;font-weight:500}.game-card .game-stats{display:flex;gap:15px;border-top:1px solid var(--line);padding-top:13px;font-size:9px;color:#8b9784}.game-card .game-stats strong{color:#12392e;font-size:13px;margin-right:3px}.dev-chart{margin-bottom:20px}.dev-chart .chart-container{height:270px}.dev-bottom{display:grid;grid-template-columns:1fr 1fr;gap:20px}.progress-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:16px 0;font-size:12px}.progress-row:last-child{border:0}.progress-row span{color:#8b9688;font-size:11px}.dev-note{margin-top:20px;border-left:2px solid var(--orange);padding-left:14px}.dev-note p{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#75806e}.dev-note small{color:#a7ad9d;display:block;margin-bottom:6px}.dev-note strong{color:#167a50;font-size:10px;display:block;margin-top:6px;overflow-wrap:anywhere}dialog{border:0;border-radius:14px;box-shadow:0 25px 100px #12392e33;width:600px;max-width:calc(100vw - 30px);padding:29px;color:var(--ink);max-height:90dvh}dialog::backdrop{background:#12392e77;backdrop-filter:blur(4px)}dialog h2{font-size:25px;letter-spacing:-.8px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.icon-button{font-size:26px;color:#8b9a83;line-height:1;width:40px;height:40px;border-radius:50%;background:#eaf0ec;flex-shrink:0}.form-intro,dialog>p{font-size:12px;color:#8b9781;line-height:1.7;margin:0 0 23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{font-size:11px;display:block;color:#12392e}label>span{color:#167a50}input,select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #eaf0ec;border-radius:6px;padding:11px 12px;background:#eaf0ec;color:#12392e;min-height:43px;outline:none}input:focus,select:focus,textarea:focus{border-color:#626877;box-shadow:0 0 0 3px #eaf0ec}input::placeholder,textarea::placeholder{color:#adb5a3;font-size:11px}.form-section{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.form-section h3{margin-bottom:16px}.form-section>label{margin-top:13px}.score-input{display:flex;align-items:center;justify-content:center;gap:18px}.score-input label{max-width:130px;text-align:center}.score-input input{font-size:25px;text-align:center}.score-input>span{font-size:25px;margin-top:21px;color:#aaa}.stats-inputs{grid-template-columns:repeat(4,1fr);margin-top:15px}.participation{display:flex;align-items:center;gap:12px}.participation select{margin:0;width:auto;min-width:150px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:24px;border-top:1px solid var(--line);margin-top:24px}.form-error{font-size:12px;color:#167a50;margin-top:14px;line-height:1.6}.detail-header{display:flex;justify-content:space-between;gap:20px;align-items:center}.detail-score{text-align:center;font-family:Manrope;font-size:48px;font-weight:800;letter-spacing:-2px;margin:30px 0 10px}.detail-meta{text-align:center;color:#8f9d84;font-size:11px}.detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:25px 0}.detail-stat{text-align:center;background:#eaf0ec;border-radius:8px;padding:16px 5px}.detail-stat strong{display:block;font-family:Manrope;font-size:22px}.detail-stat span{display:block;font-size:9px;color:#626877;margin-top:7px}.detail-note{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#728066;margin-top:12px}.detail-actions{display:flex;justify-content:space-between;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.danger{color:#167a50}.data-options{display:flex;flex-direction:column;gap:12px}.file-label{cursor:pointer}.file-label input{display:none}.muted{font-size:11px!important;color:#99a18f!important;margin-top:20px!important}.data-info{padding:13px;background:#eaf0ec;border-radius:8px;font-size:12px;line-height:1.8;color:#626877;margin:20px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:white;padding:13px 22px;border-radius:8px;box-shadow:0 5px 30px #12392e22;z-index:99;opacity:0;pointer-events:none;transition:all .2s;font-size:12px;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.chart-tooltip{position:absolute;top:6px;right:10px;font-size:10px;padding:6px 10px;border-radius:5px;background:#12392e;color:white;pointer-events:none;box-shadow:0 2px 10px #12392e1f}.dev-empty{margin-top:20px}.demo-edit-note{background:#e9f4ec;color:#167a50;padding:12px;margin-top:20px;font-size:11px;line-height:1.6;border-radius:6px}





@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Live courtside controls: large targets and clear shot outcomes. */
#syncStatus{font-size:14px;line-height:1.6;margin:0 0 16px;color:#12392e;overflow-wrap:anywhere}#syncStatus button{text-decoration:underline;padding:6px;font-size:14px}button:disabled{opacity:.45;cursor:not-allowed}input:disabled,select:disabled{opacity:.65}.live-picker{display:flex;gap:16px;align-items:end;margin-bottom:20px}.live-picker label{flex:1;font-size:14px}.live-picker select{font-size:16px}.live-console{max-width:900px;margin:auto}.live-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.live-head h2{font-size:24px;margin:8px 0}.live-head p{font-size:14px;color:#74836c}.live-goals{display:flex;flex-direction:column;align-items:center;color:var(--ink)}.live-goals strong{font-size:52px;line-height:1}.live-goals span{font-size:14px}.live-period{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:20px 0;font-size:14px}.live-period label{font-size:14px}.live-period select{font-size:16px;margin:6px 0}.shot-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.shot-control{background:#eaf0ec;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:10px}.shot-control h3{font-size:18px;margin:0 0 4px}.shot-control button{min-height:64px;border-radius:8px;font-size:16px;touch-action:manipulation}.shot-made{background:#12392e;color:white}.shot-made strong{margin-left:6px}.shot-miss{background:white;border:1px solid #626877;color:#a23818}.shot-control>span{font-size:14px;text-align:center}.live-counter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.live-counter{border:1px solid #eaf0ec;background:#eaf0ec;border-radius:9px;min-height:94px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:6px;touch-action:manipulation}.live-counter span{font-size:14px}.live-counter strong{font-size:26px;line-height:1}.live-counter small{font-size:14px;color:#626877}.live-counter:last-child{background:#e9f4ec;border-color:#e9f4ec}.live-tools{display:flex;flex-wrap:wrap;gap:10px}.live-tools button,.live-picker button{min-height:48px;font-size:14px}.live-hint{font-size:14px;line-height:1.7;color:#6b7960;margin:18px 0}.shooting-summary{margin:22px 0;border-top:1px solid var(--line);padding-top:18px}.shooting-summary h3{font-size:18px;margin-bottom:16px}.shooting-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.shooting-grid>div{display:flex;flex-direction:column;gap:6px;text-align:center;background:#eaf0ec;border-radius:8px;padding:12px 5px}.shooting-grid span,.shooting-grid small,.shooting-summary p{font-size:14px;line-height:1.6}.shooting-grid strong{font-size:22px}.event-log{max-width:900px;margin:20px auto}.event-log h3{font-size:18px}.event-log h3>span{font-size:14px;color:#819077;margin-left:12px}.event-log ol{list-style:none;padding:0;margin-bottom:0}.event-log li{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}.event-log small{display:block;font-size:14px;color:#819077;margin-bottom:5px}.event-log .text-link{font-size:14px}.event-log p{font-size:16px;line-height:1.6}.live-banner{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:#eaf0ec;border-radius:8px;font-size:16px;margin-bottom:20px}.live-banner button{font-size:14px}.page-heading .primary{min-height:44px}.form-intro,dialog>p,label,.data-info,.form-error{font-size:14px}.form-grid input,.form-grid select,.form-grid textarea{font-size:16px}.form-grid input::placeholder{font-size:14px}.detail-actions{gap:10px;flex-wrap:wrap}.detail-actions button{font-size:14px;min-height:44px}.form-section .section-heading>span{font-size:14px}.modal-footer button{font-size:14px;min-height:44px}


/* Fixed mobile mode. Layout is selected by the user. */
.layout-mobile .topbar{height:64px;padding:0 20px}
.layout-mobile .content{padding:25px 20px 20px}
.layout-mobile h1{font-size:25px}
.layout-mobile .page-heading{align-items:flex-start}
.layout-mobile .page-heading .primary{font-size:0;padding:12px;gap:0}
.layout-mobile .page-heading .primary .icon{width:18px}
.layout-mobile .mode-strip>div{flex-wrap:wrap;gap:4px 8px}
.layout-mobile .mode-strip #modeText{display:block;width:100%;line-height:1.5;margin-left:13px}
.layout-mobile .dashboard-top{grid-template-columns:1fr;gap:15px}
.layout-mobile .hero{min-height:225px}
.layout-mobile .season-card{min-height:200px}
.layout-mobile .record-row{margin:15px 0}
.layout-mobile .stats-row{grid-template-columns:1fr 1fr;gap:12px}
.layout-mobile .mid-grid,.layout-mobile .bottom-grid,.layout-mobile .dev-bottom{grid-template-columns:1fr}
.layout-mobile .latest-card{min-height:245px}
.layout-mobile .latest-card .latest-top{margin-top:25px}
.layout-mobile .latest-statline{margin-top:24px}
.layout-mobile .bottom-grid{gap:18px}
.layout-mobile footer{flex-direction:column;line-height:1.6}
.layout-mobile .game-list{grid-template-columns:1fr 1fr}
.layout-mobile .game-card{padding:16px}
.layout-mobile .game-card .game-stats{gap:9px}
.layout-mobile .filters{flex-wrap:wrap}
.layout-mobile .search-wrap{max-width:none;flex-basis:100%}
.layout-mobile .filter-select{width:100%}
.layout-mobile .filter-select select{flex:1}
.layout-mobile .dev-chart .chart-container{height:210px}
.layout-mobile{--sidebar:0px}
.layout-mobile .sidebar{inset:auto 0 0;width:100%;height:70px;padding:0 12px calc(env(safe-area-inset-bottom)/2);background:#fff;border-top:1px solid var(--line)}
.layout-mobile .brand,.layout-mobile .sidebar-bottom{display:none}
.layout-mobile .sidebar nav{flex-direction:row;justify-content:space-around;gap:0;width:100%;height:100%}
.layout-mobile nav button{width:32%;font-size:9px;display:flex;flex-direction:column;gap:4px;padding:9px 4px;color:#8a9c86;background:none!important}
.layout-mobile nav button.active{color:#12392e}
.layout-mobile nav button.active svg{color:#12392e}
.layout-mobile nav button svg{width:20px;height:20px}
.layout-mobile .topbar{padding-inline:18px;height:60px}
.layout-mobile .breadcrumb{gap:10px;font-size:10px}
.layout-mobile .top-actions{gap:14px}
.layout-mobile .season-label{gap:4px;font-size:10px}
.layout-mobile .season-label .icon{width:15px}
.layout-mobile .season-label select{font-size:11px;padding:6px 0;margin:0;min-height:32px}
.layout-mobile .content{padding:22px 17px 90px}
.layout-mobile .eyebrow{font-size:8px}
.layout-mobile .page-heading{margin-bottom:19px}
.layout-mobile h1{font-size:24px;letter-spacing:-1px}
.layout-mobile .page-heading p{font-size:10px;max-width:230px;line-height:1.6}
.layout-mobile .page-heading .primary{margin-top:12px}
.layout-mobile .mode-strip{font-size:9px;padding:9px 10px;gap:10px;margin-bottom:17px}
.layout-mobile .mode-strip strong,.layout-mobile .mode-strip button{font-size:9px}
.layout-mobile #modeText{font-size:9px}
.layout-mobile .hero{padding:25px;min-height:228px}
.layout-mobile .hero-name{font-size:43px}
.layout-mobile .hero-meta{font-size:10px}
.layout-mobile .hero-tag{font-size:8px}
.layout-mobile .hero-bottom{gap:24px}
.layout-mobile .hero-bottom strong{font-size:15px}
.layout-mobile .ball-art{right:22px;bottom:32px;width:62px}
.layout-mobile .card{padding:20px}
.layout-mobile .table-card{padding:20px 0 0}
.layout-mobile .stats-row{gap:10px;margin-bottom:17px}
.layout-mobile .stat{padding:16px}
.layout-mobile .stat-number{font-size:30px}
.layout-mobile .stat-top{font-size:10px}
.layout-mobile .mid-grid,.layout-mobile .bottom-grid{gap:17px;margin-bottom:17px}
.layout-mobile .chart-tabs{gap:2px;margin-top:16px}
.layout-mobile .chart-tabs button{font-size:9px;padding:7px 8px;min-height:36px}
.layout-mobile .chart-container{height:185px}
.layout-mobile .latest-card{min-height:249px}
.layout-mobile .game-list{grid-template-columns:1fr}
.layout-mobile .game-card{padding:20px}
.layout-mobile .game-card .game-stats{gap:23px}
.layout-mobile .game-card .game-score{margin:14px 0}
.layout-mobile .games-summary{font-size:10px;gap:16px}
.layout-mobile dialog{padding:24px 20px;max-width:calc(100vw - 20px);max-height:93dvh}
.layout-mobile dialog h2{font-size:23px}
.layout-mobile .form-grid{gap:13px 10px}
.layout-mobile .stats-inputs{grid-template-columns:repeat(2,1fr)}
.layout-mobile .form-section h3{font-size:15px}
.layout-mobile .detail-stats{grid-template-columns:repeat(4,1fr);gap:7px}
.layout-mobile .detail-stat strong{font-size:20px}
.layout-mobile .detail-stat{padding:14px 2px}
.layout-mobile .detail-stat span{font-size:8px}
.layout-mobile #toast{bottom:84px}
.layout-mobile footer{font-size:7px;margin-top:25px}
.layout-mobile .filter-select select{min-width:0}
.layout-mobile .dev-bottom{gap:17px}
.layout-mobile .hero .ball-art{top:82px;bottom:auto;right:25px}
.layout-mobile .hero-bottom{gap:18px}
.layout-mobile nav button{width:25%;font-size:12px}
.layout-mobile .live-picker{align-items:stretch;flex-direction:column;gap:10px}
.layout-mobile .live-head h2{font-size:20px}
.layout-mobile .live-goals strong{font-size:44px}
.layout-mobile .live-console{padding:16px}
.layout-mobile .shot-controls{gap:7px}
.layout-mobile .shot-control{padding:10px 5px}
.layout-mobile .shot-control h3{text-align:center;font-size:16px}
.layout-mobile .shot-control button{font-size:14px;min-height:60px}
.layout-mobile .shot-made strong{display:block;margin:4px 0 0}
.layout-mobile .live-counter-grid{grid-template-columns:repeat(3,1fr);gap:8px}
.layout-mobile .live-counter{padding:10px 4px}
.layout-mobile .live-period{align-items:end}
.layout-mobile .live-period>span{max-width:130px;text-align:right}
.layout-mobile .live-tools button{flex:1;flex-basis:40%;font-size:14px}
.layout-mobile .shooting-grid{grid-template-columns:repeat(2,1fr)}
.layout-mobile .top-actions{gap:8px}
.layout-mobile .page-heading .primary{font-size:14px;padding:10px;max-width:115px}
.layout-mobile .page-heading .primary .icon{display:none}
.layout-mobile .page-heading p{font-size:14px}
.layout-mobile .mode-strip,.layout-mobile #modeText,.layout-mobile .mode-strip strong,.layout-mobile .mode-strip button{font-size:14px}
.layout-mobile .mode-strip{flex-wrap:wrap}
.layout-mobile .data-info{font-size:14px}
.layout-mobile #toast{font-size:14px}
.layout-mobile .event-log{padding:16px}
.layout-mobile .event-log li{font-size:16px}
.device-bar{position:sticky;top:0;z-index:55;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100vw;min-height:64px;background:#12392e;color:white;padding:10px 18px;border-bottom:1px solid #12392e}.device-bar>strong{font-size:16px}.layout-mobile{--sidebar:0px}.layout-mobile .app-shell{width:100%;max-width:560px;margin:0 auto;min-width:0}.layout-mobile main{margin:0}.layout-mobile .sidebar{inset:auto auto 0 50%;transform:translateX(-50%);max-width:560px;height:calc(64px + env(safe-area-inset-bottom));padding:0 10px env(safe-area-inset-bottom);box-shadow:0 -3px 20px #12392e12}.layout-mobile .sidebar nav{height:64px}.layout-mobile nav button{min-width:0;font-size:12px;min-height:64px;justify-content:center;gap:3px;padding-block:5px;line-height:1.2}.layout-mobile .brand,.layout-mobile .nav-label,.layout-mobile .sidebar-bottom{display:none}.layout-mobile .topbar{padding:12px 16px;height:auto;min-height:60px;gap:12px}.layout-mobile .breadcrumb{font-size:14px;gap:6px}.layout-mobile .breadcrumb>span,.layout-mobile .breadcrumb{white-space:nowrap}.layout-mobile .breadcrumb{font-size:0}.layout-mobile .breadcrumb strong{font-size:14px}.layout-mobile .top-actions{gap:10px}.layout-mobile .content{padding:20px 16px calc(103px + env(safe-area-inset-bottom))}.layout-mobile h1{font-size:26px}.layout-mobile .page-heading .primary{font-size:14px;max-width:120px}.layout-mobile .page-heading p{font-size:16px}.layout-mobile .stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-mobile .game-list{grid-template-columns:1fr}.layout-mobile .dashboard-top,.layout-mobile .mid-grid,.layout-mobile .bottom-grid,.layout-mobile .dev-bottom{grid-template-columns:1fr}.layout-mobile .content,.layout-mobile .card{min-width:0}.layout-mobile .mode-strip{font-size:14px;flex-wrap:wrap}.layout-mobile .mode-strip>div{flex-wrap:wrap}.layout-mobile #modeText{font-size:14px;margin:0}.layout-mobile .mode-strip button{font-size:14px;min-height:40px}.layout-mobile .form-grid{grid-template-columns:1fr 1fr}.layout-mobile .stats-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-mobile .form-grid input,.layout-mobile .form-grid select,.layout-mobile .form-grid textarea{min-height:52px}.layout-mobile dialog{width:540px;padding:22px 18px;max-width:calc(100vw - 20px)}.layout-mobile .view-live .page-heading p{display:none}.layout-mobile .view-live .mode-strip.real{display:none}.layout-mobile .live-picker{flex-direction:column;align-items:stretch;gap:10px}.layout-mobile .live-picker label{font-size:16px}.layout-mobile .live-picker select{font-size:16px;min-height:54px}.layout-mobile .live-picker button{font-size:16px;min-height:52px}.layout-mobile .live-console{padding:16px}.layout-mobile .live-head h2{font-size:22px}.layout-mobile .live-head>.live-number{width:104px;flex-shrink:0}.layout-mobile .live-head>.live-number input{font-size:32px;text-align:center;min-height:66px}.layout-mobile .shot-controls{grid-template-columns:1fr;gap:16px}.shot-control{padding:18px;gap:14px}.shot-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.shot-title h3{font-size:20px}.shot-title>span{font-size:18px;font-weight:700;color:#12392e}.shot-buttons,.shot-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shot-buttons button{font-size:18px;min-height:84px;font-weight:600}.shot-made strong{display:block;margin:6px 0 0;font-size:22px}.shot-miss{background:#e9f4ec;border-color:#167a50}.live-number{font-size:14px;display:block;min-width:0}.live-number input{font-size:26px;min-height:60px;padding:10px;text-align:center;font-weight:700;max-width:100%;margin-top:6px}.live-number input::placeholder{font-size:16px;font-weight:400}.layout-mobile .live-number{font-size:16px}.layout-mobile .shot-buttons button{min-height:92px;font-size:20px;touch-action:manipulation}.layout-mobile .shot-numbers input{min-height:62px;font-size:28px}.layout-mobile .shot-control h3{text-align:left;font-size:20px}.layout-mobile .live-counter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.live-counter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.counter-control{background:#eaf0ec;border:1px solid #eaf0ec;padding:10px;border-radius:10px;min-width:0}.counter-control .live-counter{width:100%;min-height:84px;background:#12392e;border:0;color:white}.counter-control .live-counter span{font-size:16px}.counter-control .live-counter strong{font-size:24px}.counter-number{display:flex;align-items:end;gap:8px;margin-top:10px}.counter-number .live-number{flex:1}.counter-number input{font-size:24px;min-height:54px;width:100%}.counter-number .secondary{min-height:54px;min-width:52px;padding:8px;font-size:18px}.live-minutes{display:flex;align-items:end;gap:12px;max-width:430px;margin-bottom:20px}.live-minutes .live-number{flex:1}.live-minutes button{min-height:60px;font-size:16px}.live-savebar{position:sticky;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#12392e;color:white;border-radius:10px;box-shadow:0 6px 25px #12392e33;margin-top:22px;z-index:21}.live-savebar>span{font-size:14px;line-height:1.5;flex:1}.live-savebar .primary{background:#eaf0ec;color:#12392e;min-height:58px;font-size:18px;padding:14px 20px}.layout-mobile .live-savebar{bottom:calc(72px + env(safe-area-inset-bottom));margin-inline:-6px}.layout-mobile .live-savebar .primary{min-height:64px;min-width:135px;font-size:20px}.live-tools button{min-height:52px;font-size:16px}.layout-mobile .live-tools button{flex-basis:100%}.live-head>.live-number{max-width:130px}.event-log summary{font-size:16px;min-height:48px;cursor:pointer;font-weight:600;line-height:1.6}.layout-mobile .event-log{padding:16px}.live-hint{font-size:16px;margin-bottom:16px}.layout-mobile .page-heading{gap:10px}.layout-mobile .form-intro,.layout-mobile .data-info,.layout-mobile .detail-note{font-size:16px}.layout-mobile .detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-mobile .detail-stat span{font-size:14px}.layout-mobile .stat-top,.layout-mobile .stat-bottom,.layout-mobile .chart-tabs button{font-size:14px}.layout-mobile .stat-bottom{display:block;line-height:1.6}.layout-mobile td,.layout-mobile th{font-size:14px}.layout-mobile .chart-tabs{flex-wrap:wrap}.layout-mobile .chart-tabs button{min-height:44px}.layout-mobile footer{font-size:12px;line-height:1.6}.layout-mobile .note-body{font-size:16px}.layout-mobile .section-heading>span{font-size:14px}.layout-mobile .latest-statline small{font-size:14px}.layout-mobile .game-card .game-stats{font-size:14px;flex-wrap:wrap}.layout-mobile #toast{bottom:calc(78px + env(safe-area-inset-bottom));font-size:16px}.layout-mobile .live-period label,.layout-mobile .live-period select{font-size:16px}.layout-mobile .shooting-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.layout-mobile .live-savebar{position:fixed;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:528px;margin:0;bottom:calc(72px + env(safe-area-inset-bottom))}.layout-mobile .view-live .content{padding-bottom:calc(193px + env(safe-area-inset-bottom))}.layout-mobile .device-bar{padding-inline:12px}.layout-mobile .device-bar>strong{font-size:14px}
/* Courtside surface: stable one-tap actions, compact counts, persistent Undo. */
.quick-console{max-width:880px;margin:0 auto;color:#12392e}.quick-match{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px;min-height:62px}.quick-player{font-size:12px;font-weight:700;letter-spacing:1px;color:#5d7469}.quick-match h2{font-size:21px;line-height:1.35;letter-spacing:-.5px;margin-top:3px;overflow-wrap:anywhere}.quick-goals{text-align:center;flex-shrink:0;min-width:60px}.quick-goals strong{font-size:38px;font-weight:800;line-height:1;display:block}.quick-goals span{font-size:12px;display:block;margin-top:4px}.quick-shooting{display:flex;justify-content:space-between;gap:8px;background:#eaf0ec;border-radius:7px;padding:8px 10px;font-size:14px;margin-bottom:12px}.quick-shooting>span{white-space:nowrap}.quick-shooting strong{margin-left:3px}.quick-controls{display:grid;grid-template-columns:1fr;gap:12px}.quick-shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quick-shots button{min-height:72px;padding:8px 10px;border-radius:9px;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;touch-action:manipulation;user-select:none;-webkit-user-select:none}.quick-hit{background:#12392e}.quick-miss{background:#167a50}.quick-shots button strong{font-size:27px;line-height:1.1;font-weight:800}.quick-shots button>span{font-size:14px;line-height:1.3;font-weight:600}.quick-shots button strong span{font-size:21px}.quick-shots button:active,.quick-stats button:active{filter:brightness(1.22);transform:scale(.98)}.quick-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick-stats button{border-radius:8px;padding:8px 5px;min-height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#12392e;color:white;touch-action:manipulation;user-select:none;-webkit-user-select:none}.quick-stat>span{font-size:14px;line-height:1.2;font-weight:600}.quick-stats strong{display:flex;align-items:center;justify-content:center;gap:7px;font-size:19px}.quick-stats small{border-radius:5px;background:#ffffff26;min-width:27px;padding:3px 5px;font-size:16px;font-weight:700}.quick-stats .quick-negative{background:#a23818}.quick-stats .quick-defense{grid-column:1/-1;min-height:46px;flex-direction:row;gap:18px;background:#12392e}.quick-defense>span{font-size:14px;font-weight:600}.quick-last-action{font-size:14px;line-height:1.5;color:#12392e;min-height:25px;margin:10px 0 12px;overflow-wrap:anywhere}.quick-savebar{background:#12392e;color:white;position:sticky;bottom:12px;padding:10px 12px;border-radius:10px;box-shadow:0 6px 24px #12392e30;z-index:22}.quick-save-state{font-size:12px;min-height:19px;line-height:1.5;color:#eaf0ec}.quick-save-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:5px}.quick-save-buttons button{min-height:54px;border-radius:7px;padding:10px 8px;font-size:17px;font-weight:700;touch-action:manipulation}.quick-undo{background:#fff;color:#12392e;border:1px solid #eaf0ec}.quick-undo>span{font-size:22px;vertical-align:middle}.quick-save{background:#eaf0ec;color:#12392e}.quick-edit,.event-log,.session-switch{max-width:880px;margin:16px auto;padding:16px}.quick-edit summary,.session-switch summary{font-size:16px;min-height:38px;font-weight:600;line-height:1.5;cursor:pointer}.quick-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.quick-edit .live-tools{gap:10px}.quick-edit .live-number{font-size:14px}.quick-edit .live-number input{min-height:56px;font-size:24px}.session-switch .live-picker{margin-top:14px;margin-bottom:0}.quick-console .form-error:empty{display:none}.quick-console .form-error{margin:8px 0;font-size:14px}.layout-mobile .view-live .page-heading,.layout-mobile .view-live .topbar,.layout-mobile .view-live .mode-strip,.layout-mobile .view-live #syncStatus,.layout-mobile .view-live footer{display:none}.layout-mobile .view-live.sync-issue #syncStatus{display:block;font-size:14px}.layout-mobile .view-live .device-bar{min-height:50px;padding-block:4px}.layout-mobile .view-live .content{padding:10px 12px calc(168px + env(safe-area-inset-bottom))}.layout-mobile .quick-console{padding:0}.layout-mobile .quick-match{min-height:54px;margin-bottom:6px}.layout-mobile .quick-match h2{font-size:19px}.layout-mobile .quick-goals strong{font-size:34px}.layout-mobile .quick-shooting{font-size:14px;padding:7px 8px;margin-bottom:10px}.layout-mobile .quick-savebar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(70px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:536px;padding:8px 10px;margin:0}.layout-mobile .quick-save-buttons{gap:8px;margin-top:3px}.layout-mobile .quick-save-buttons button{min-height:54px;font-size:17px}.layout-mobile .quick-edit,.layout-mobile .event-log,.layout-mobile .session-switch{margin-top:14px;padding:14px}.layout-mobile .quick-edit .live-tools button{flex-basis:auto;flex:1}.layout-mobile .quick-edit-grid{gap:14px 12px}.layout-mobile .quick-last-action{margin-bottom:14px}.layout-mobile .quick-edit summary{font-size:14px}.layout-mobile .quick-console button:focus-visible{outline:3px solid #12392e;outline-offset:2px}

/* Make the live entry explicit wherever a game is added. */
.entry-options{display:grid;gap:14px;margin-top:24px}.entry-options button{display:flex;align-items:center;gap:16px;text-align:left;padding:22px 18px;border-radius:12px;min-height:100px;touch-action:manipulation}.entry-options strong,.form-live-switch strong{display:block;font-size:20px;line-height:1.4}.entry-options small,.form-live-switch small{display:block;font-size:15px;line-height:1.5;margin-top:6px}.entry-options button>span:last-child{margin-left:auto;font-size:26px}.entry-live{background:#eaf0ec;border:2px solid #12392e;color:#12392e}.entry-manual{background:#eaf0ec;border:1px solid #eaf0ec;color:#12392e}.entry-signals{display:flex;flex-direction:column;gap:5px;flex-shrink:0}.entry-signals b{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;color:white;background:#12392e;font-size:24px;line-height:1}.entry-signals b:last-child{background:#167a50}.form-live-switch{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid #12392e;border-radius:10px;background:#eaf0ec;color:#12392e;text-align:left;margin-bottom:24px;min-height:84px;touch-action:manipulation}.form-live-switch strong{font-size:16px}.form-live-switch small{font-size:14px}.form-live-switch .entry-signals{flex-direction:row}.form-live-switch .entry-signals b{width:26px;height:32px;font-size:22px}#formManualSwitch,#moreSetup{display:none}#gameDialog.live-setup .form-section,#gameDialog.live-setup #trackedNotice,#gameDialog.live-setup #formLiveSwitch,#gameDialog.live-setup .setup-extra{display:none}#gameDialog.live-setup .form-grid{grid-template-columns:1fr}#gameDialog.live-setup.setup-expanded .setup-extra{display:block}#gameDialog.live-setup #moreSetup{display:block;margin-top:16px;min-height:48px;width:100%;font-size:16px}#gameDialog.live-setup #formManualSwitch{display:block;margin-bottom:20px;font-size:14px;min-height:44px}#gameDialog.live-setup #saveGameForm{min-height:60px;font-size:18px;flex:1}#gameDialog.live-setup .form-grid input,#gameDialog.live-setup .form-grid select{min-height:56px;font-size:18px}.layout-mobile .entry-options button{padding:18px 14px;gap:12px}.layout-mobile .entry-options strong{font-size:20px}.layout-mobile .form-live-switch .entry-signals{flex-direction:column}.entry-options button:focus-visible,.form-live-switch:focus-visible{outline:3px solid #12392e;outline-offset:3px}

.quick-goals .quick-foul-total{font-size:14px;color:#a23818;margin-top:7px;font-weight:600}.quick-foul-total b{font-size:18px;font-weight:800}

/* Keep game actions in one mobile row; confirm deletion in its own dialog. */
.detail-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;align-items:stretch;gap:8px}.detail-actions button{width:100%;min-width:0;min-height:52px;padding:10px 6px;font-size:14px;white-space:nowrap}.edit-game{background:#12392e;color:white}.edit-game:hover{background:#12392e}.delete-game{display:inline-flex;align-items:center;justify-content:center;background:#167a50;color:white;border-radius:7px;min-width:48px;min-height:52px;padding:10px;touch-action:manipulation}.delete-game:hover{background:#a23818}.delete-game .icon{width:22px;height:22px}.delete-game[hidden]{display:none}.delete-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.delete-dialog-actions button{min-height:54px;font-size:16px;font-weight:600}#deleteDialog{max-width:calc(100vw - 30px);width:460px}#deleteDialog h2{font-size:22px;line-height:1.4}#deleteDialog .modal-head{align-items:start;gap:12px}#deleteDescription{font-size:16px;margin-top:14px;color:#12392e}#deleteError:empty{display:none}#deleteError{margin:16px 0 0}.layout-mobile .detail-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px}.layout-mobile .modal-footer{flex-wrap:wrap}.layout-mobile .modal-footer .delete-game{flex-shrink:0}

/* Player cards and explicit team context. */
#liveProfileButton{display:none}.player-context{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:0 0 20px}.player-context>button{font-size:18px;font-weight:700;text-align:left;overflow-wrap:anywhere;min-height:44px}.player-context label{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;flex:1;max-width:420px}.player-context select{min-width:0;width:100%;font-size:16px;min-height:48px;background:white;padding:8px;border:1px solid #eaf0ec;border-radius:8px}.player-card{border:1px solid #eaf0ec;border-radius:12px;margin:14px 0;padding:14px;background:#fff}.player-card.selected{border:2px solid #12392e;background:#eaf0ec}.player-card-select{display:flex;align-items:start;gap:14px;width:100%;text-align:left;min-height:68px;padding:0}.player-card-select .avatar{width:48px;height:48px;font-size:18px}.player-card-select>span:last-child{flex:1;min-width:0}.player-card-select strong{display:block;font-size:20px;line-height:1.4;overflow-wrap:anywhere}.player-card-select small{display:block;font-size:14px;line-height:1.6;margin-top:5px;color:#12392e;overflow-wrap:anywhere}.player-card-edit{margin-top:14px;min-height:46px;width:100%;font-size:14px}#playerForm>label{display:block;margin-top:22px;font-size:16px}#playerForm input{font-size:16px;min-height:54px;width:100%}.profile-teams-title{font-size:18px;margin-top:24px}#playerError:empty{display:none}#gameTeamLeague{display:block;line-height:1.5;font-size:14px;color:#12392e;margin-top:5px;overflow-wrap:anywhere}.quick-team{display:block;line-height:1.4;font-size:14px;color:#12392e;margin-top:4px;overflow-wrap:anywhere}.layout-mobile .player-context{flex-direction:column;align-items:stretch;gap:6px}.layout-mobile .player-context label{max-width:none}.layout-mobile .view-live .player-context{display:none}.layout-mobile .view-live #liveProfileButton{display:grid;flex-shrink:0}.layout-mobile .quick-match h2{font-size:18px}.layout-mobile #profileButton{min-width:40px;min-height:40px}.layout-mobile .hero-name{overflow-wrap:anywhere}.layout-mobile .hero-meta{flex-wrap:wrap}.layout-mobile #playerDialog .modal-footer button{flex:1}.layout-mobile .quick-player{letter-spacing:.5px}.hero-meta>span{overflow-wrap:anywhere}

.player-card-team{display:block;font-size:14px;margin-top:14px}.player-card-team select{display:block;min-height:50px;width:100%;font-size:16px;margin-top:5px;padding:10px;border:1px solid #eaf0ec;border-radius:8px;background:white}

.device-bar{max-width:560px;width:100%;margin-inline:auto}.layout-mobile .view-live #liveProfileButton{margin-left:auto}

/* Central team setup belongs to the Coach view; profiles choose memberships. */
.layout-mobile .sidebar nav{gap:0}.view-coach .player-context,.view-coach .mode-strip,.view-coach .season-label{display:none}#openCoach{width:100%;margin-top:12px;min-height:52px;font-size:15px}#newPlayer{width:100%;min-height:54px;font-size:16px;margin-top:14px}.coach-summary{display:flex;gap:16px;justify-content:space-between;margin-bottom:18px;font-size:14px;color:#12392e}.coach-teams{display:grid;gap:16px}.coach-team-card{padding:18px}.coach-team-head{display:flex;gap:12px;justify-content:space-between;align-items:start}.coach-team-head>div{min-width:0}.coach-team-head h3{font-size:20px;line-height:1.4;overflow-wrap:anywhere}.coach-team-head .eyebrow{font-size:12px;letter-spacing:.5px;display:block;overflow-wrap:anywhere}.coach-team-head button{min-height:44px;font-size:14px;padding:10px;flex-shrink:0}.coach-roster-count{font-size:14px;margin:16px 0;color:#12392e}.coach-roster{display:grid;gap:8px}.coach-roster button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;border-radius:9px;background:#eaf0ec;min-height:68px}.coach-roster button>span:last-child{min-width:0}.coach-roster strong{display:block;font-size:16px;overflow-wrap:anywhere}.coach-roster small{display:block;font-size:14px;color:#12392e;margin-top:5px}.coach-roster p{font-size:16px;line-height:1.6;color:#12392e}.profile-team-choice{display:flex;align-items:center;gap:14px;border:1px solid #eaf0ec;border-radius:10px;padding:14px;min-height:72px;margin-top:12px;cursor:pointer}.profile-team-choice>span{min-width:0}.profile-team-choice strong{display:block;font-size:16px;overflow-wrap:anywhere}.profile-team-choice small{display:block;font-size:14px;line-height:1.5;color:#12392e;margin-top:5px}#playerForm .profile-team-choice input{width:26px;height:26px;min-height:26px;flex-shrink:0;accent-color:#12392e;margin:0}.profile-team-help{font-size:14px;line-height:1.6;color:#12392e;margin-top:14px}#coachTeamForm>label{display:block;font-size:16px;margin-top:20px}#coachTeamForm input{min-height:54px;font-size:16px}#teamError:empty{display:none}.view-coach #journalEyebrow{color:#12392e}.layout-mobile nav button .icon{width:20px;height:20px}

/* One shared header for the journal and Coach view. */
.layout-mobile .device-bar{min-height:64px;padding:10px 16px;gap:12px}
.layout-mobile .device-bar h1{font-size:18px;line-height:1.3;letter-spacing:-.4px;min-width:0;margin:0}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
#mobileDataButton{color:white;font-size:14px;font-weight:600;min-height:44px;padding:8px}
.layout-mobile #profileButton{width:44px;height:44px;min-width:44px;min-height:44px;font-size:15px;background:#eaf0ec;color:#12392e}
.action-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.action-toolbar .season-label{font-size:14px;gap:6px;min-width:0}
.action-toolbar .season-label select{width:auto;font-size:14px;min-height:44px;margin:0;padding:8px 0}
.action-toolbar .season-picker{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.action-toolbar .season-picker [data-icon]{display:flex;align-items:center;flex-shrink:0}
.action-toolbar .primary{font-size:14px;min-height:48px;padding:10px 14px;flex-shrink:0}
.layout-mobile .content{padding-top:14px}
.view-coach .action-toolbar{justify-content:flex-end}
.layout-mobile .view-live .action-toolbar{display:none}

/* CHASE Stats Soccer: BGZ website colors, with original mobile geometry. */
:root{--bgz-blue:#12392e;--bgz-orange:#167a50;--bgz-white:#fff;--bgz-light-grey:#f4f4f4;--bgz-grey:#d9d9d9;--bg:var(--bgz-light-grey);--ink:var(--bgz-blue);--orange:var(--bgz-orange);--green:var(--bgz-blue);--mint:#eaf0ec;--muted:#626877;--line:var(--bgz-grey)}
body{font-size:16px}.device-bar,.hero,.quick-savebar{background:var(--bgz-blue);color:#fff}.avatar{background:#eaf0ec;color:var(--bgz-blue)}.primary,.edit-game,.entry-signals b,.counter-control .live-counter,.quick-hit,.quick-stats button,.quick-stats .quick-defense{background:var(--bgz-blue);color:white}.quick-miss,.quick-stats .quick-negative,.delete-game,.entry-signals b:last-child{background:var(--bgz-orange);color:#000}.quick-save{background:#fff;color:var(--bgz-blue)}.quick-undo{background:#eaf0ec;color:var(--bgz-blue)}.entry-live,.form-live-switch,.player-card.selected{background:#eaf0ec;border-color:var(--bgz-blue);color:var(--bgz-blue)}.profile-team-choice input{accent-color:var(--bgz-blue)}.mode-strip{background:#e9f4ec;color:#73321e;border-color:#e6b4a4}.mode-strip.real{background:#eaf0ec;color:var(--bgz-blue);border-color:var(--bgz-grey)}.mode-dot{background:var(--bgz-orange)}.mode-strip.real .mode-dot{background:var(--bgz-blue)}.mode-strip button{color:inherit}.chart-tabs button.selected{background:var(--bgz-blue);color:white}.badge.win,.result-pill.win{background:#edf7ee;color:#285c36}.badge.loss,.result-pill.loss{background:#e9f4ec;color:#73321e}.quick-foul-total,.danger{color:#a23818}.quick-last-action,.player-card-select small,.coach-summary,.coach-roster-count,.coach-roster small,.profile-team-help{color:#626877}.coach-roster button{background:#eaf0ec}.layout-mobile .sidebar{background:#fff}.layout-mobile nav button{color:#626877;font-size:14px}.layout-mobile nav button.active,.layout-mobile nav button.active svg{color:var(--bgz-blue)}.layout-mobile nav button.active{box-shadow:inset 0 3px var(--bgz-orange)}.layout-mobile .device-bar h1{font-size:18px}.primary:hover,.edit-game:hover{background:#151d32}.delete-game:hover{background:#167a50;filter:brightness(.92)}.layout-mobile .form-grid input,.layout-mobile .form-grid select,.layout-mobile .form-grid textarea{font-size:16px}.form-error{color:#a23818}.muted{font-size:14px!important;color:#626877!important}.install-gate[hidden]{display:none}.app-ready>#installGate{display:none}

.layout-mobile nav button{padding-inline:3px}.app-ready .device-bar{padding-top:calc(10px + env(safe-area-inset-top))}.layout-mobile .view-live .device-bar{padding-top:calc(4px + env(safe-area-inset-top))}

.quick-shots button.quick-miss{color:#000}.stat-icon{background:#eaf0ec;color:var(--bgz-blue)}.hero .hero-tag,.hero .eyebrow,.hero-meta,.hero-bottom small{color:#dbe0ea}.hero-meta{font-size:14px}.court-art{color:#fff;opacity:.12}.stat-top,.stat-bottom,.record-detail,.chart-caption,.latest-top,.latest-match small,.latest-statline small,.game-meta,.games-summary,.note-body,.note-source,.table-wrap th,.section-heading>span{color:#626877}.note-body{font-size:16px}.layout-mobile .view-live #toast{bottom:calc(173px + env(safe-area-inset-bottom));font-size:14px}.profile-team-help,.form-intro,.data-info{color:#626877}

/* Live actions use semantic success/error colors inside the BGZ frame. */
.quick-console{--live-positive:#15803d;--live-negative:#b91c1c}
.quick-console .quick-shots button.quick-hit,
.quick-console .quick-stats button,
.quick-console .quick-stats .quick-defense{background:var(--live-positive);color:#fff}
.quick-console .quick-shots button.quick-miss,
.quick-console .quick-stats .quick-negative{background:var(--live-negative);color:#fff}
.quick-console .quick-stats small{background:#fff;color:#166534}
.quick-console .quick-stats .quick-negative small{color:#991b1b}
.quick-console .quick-goals>strong{color:var(--live-positive)}
.quick-console .quick-foul-total{color:var(--live-negative)}
.quick-console .quick-shots button:active,
.quick-console .quick-stats button:active{filter:brightness(.9)}

/* Make finalizing a live game visible before the capture controls. */
.quick-finish{width:100%;min-height:48px;font-size:16px;margin:8px 0 0}.quick-finish-help{font-size:14px;line-height:1.5;color:#626877;margin:8px 0 14px}.live-banner>div{min-width:0}.live-banner strong{display:block;font-size:16px}.live-banner p{font-size:14px;line-height:1.5;margin:6px 0 0}.live-banner button{flex-shrink:0;min-height:48px}.live-banner{gap:12px}.card-entry #cardOpenStatus:empty{display:none}.card-entry #cardOpenStatus{color:#a23818;font-size:14px;line-height:1.6;margin:0 0 12px}@media(max-width:380px){.live-banner{flex-wrap:wrap}.live-banner button{width:100%}}

/* Original CHASE artwork with a separate Stats sub-brand. */
.data-demo{display:grid;gap:14px;padding:18px;border-radius:12px;background:#eaf0ec;margin:0 0 20px}.data-demo h3{font-size:18px}.data-demo p{font-size:14px;line-height:1.6;margin-top:6px;color:#626877}.data-demo button{width:100%;min-height:48px;font-size:16px;background:#12392e;color:#fff;border-color:#12392e}.demo-indicator{font-size:12px;font-weight:600;color:#73321e;background:#e9f4ec;border-radius:6px;padding:5px 7px;white-space:nowrap}.demo-indicator[hidden]{display:none}.action-toolbar .season-label{flex-wrap:wrap}.player-context{margin-bottom:8px}.layout-mobile .player-context{gap:0;margin-bottom:8px}.player-context label{max-width:none;width:100%}.player-context select{margin:0}
.device-bar .header-brand{display:flex;align-items:center;flex-shrink:1;min-width:0}.header-logo{display:block;width:112px;height:62px;flex-shrink:0;background:transparent}.header-logo img{display:block;width:100%;height:100%;object-fit:contain}.header-actions{flex-shrink:0}

.quick-savebar .quick-finish{display:block;width:100%;margin-top:8px;min-height:48px;padding:10px 8px;background:transparent;color:#fff;border:1px solid #ffffff66;border-radius:7px;font-size:15px;font-weight:600}.layout-mobile .view-live .content{padding-bottom:calc(228px + env(safe-area-inset-bottom))}#finishGameDialog{width:min(480px,calc(100% - 24px));padding:24px}#finishGameDialog .score-input{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px}#finishGameDialog .score-input label{max-width:none;min-width:0}#finishGameDialog label span{display:block;overflow-wrap:anywhere;font-size:14px}#finishGameDialog .score-input input{font-size:28px;min-height:64px;padding:12px}#finishGameDialog .modal-footer{display:flex;flex-wrap:wrap;gap:10px}#finishGameDialog .modal-footer button{min-height:48px;flex:1;white-space:normal;font-size:16px}


.profile-teams-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.profile-teams-head .profile-teams-title{margin:0}.profile-teams-head .icon-button{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:10px;border-radius:10px;background:#eceef2;color:var(--bgz-blue)}.profile-teams-head .icon{width:24px;height:24px}
