:root{font-family:-apple-system,BlinkMacSystemFont,'Hiragino Sans',sans-serif;color:#183732;background:#f0f3ed;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #b7c7bb;background:#fff;border-radius:13px;min-height:50px;padding:12px 16px;font-weight:700;transition:background .15s}button:hover{background:#e9f1e1}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #226fbe;outline-offset:3px}input,select{width:100%;min-height:50px;background:white;border:1px solid #aabcac;border-radius:12px;padding:12px;margin:7px 0 17px}label{font-size:13px;font-weight:700}header{max-width:1120px;padding:24px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{font-size:19px;font-weight:850;text-decoration:none;color:#183732;letter-spacing:-.4px}.brand span{font-weight:500;font-size:13px;margin-left:15px;padding-left:15px;border-left:1px solid #b7c7bb}.pill{font-size:11px;border-radius:20px;padding:7px 10px;background:#dde8d8;white-space:nowrap}main{max-width:1120px;margin:auto;padding:12px 24px 60px}h1{font-size:32px;line-height:1.3;letter-spacing:-1px;margin:8px 0 12px}h2{font-size:20px;margin:0 0 10px}h3{font-size:15px;margin:0 0 8px}p{color:#51685b;line-height:1.7;font-size:14px;margin:8px 0 18px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#56704f;margin-bottom:12px}.primary{background:#244c37;color:white;border-color:#244c37}.primary:hover{background:#173c29}.lime{background:#dbef97;border-color:#c1d578}.wide{width:100%}.muted{font-size:12px;color:#5c705e;line-height:1.6}.card{background:#fff;border:1px solid #d3ddcf;border-radius:22px;padding:24px}.grid{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.stack{display:grid;gap:18px}.flex{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.top{margin-top:22px}.step{font-size:12px;color:#5a6f59;margin:12px 0 25px}.step b{color:#204a33}.back{background:none;border:0;padding-left:0;min-height:40px;font-size:13px}.match{margin-top:18px}.match h2{font-size:22px;margin:14px 0}.match .scores{font-size:34px;font-weight:800;margin:20px 0;letter-spacing:2px}.link{color:#315b34;text-decoration:underline;font-size:13px}.optional{background:#e9efdf;border-radius:16px;padding:20px}.option-item{display:flex;gap:15px;align-items:center;padding:16px 0;border-top:1px solid #ccd9c2}.option-item:first-of-type{border-top:0}.round{flex:none;background:#d5e4c4;border-radius:50%;width:34px;height:34px;text-align:center;line-height:34px;font-weight:800}.option-item p{margin:4px 0;font-size:12px}.roster{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.person{min-width:68px;padding:10px 9px;text-align:center}.person b{display:block;font-size:22px;font-variant-numeric:tabular-nums}.person small{font-size:10px}.selected{background:#234b35;color:#fff;border-color:#234b35}.bench .person{border-style:dashed;background:#f4f6f0}.score{background:#193d2d;color:white;border-radius:22px;padding:22px;display:grid;grid-template-columns:1fr 1fr 1fr;text-align:center;align-items:center;gap:8px}.score>div{min-width:0}.score strong{font-size:64px;display:block;line-height:1.2;font-variant-numeric:tabular-nums}.score span{font-size:12px}.score .clock{font-size:29px;letter-spacing:1px}.score button{background:#ffffff10;color:white;border-color:#77937c;font-size:12px;min-height:42px;padding:8px}.tabs{display:flex;gap:8px;margin:20px 0}.tabs button{flex:1;min-width:0}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions button{min-height:86px;text-align:left;font-size:18px}.actions small{display:block;font-weight:400;font-size:11px;margin-top:6px}.row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #e1e7da;padding:15px 0;font-size:13px}.row small{font-size:11px;color:#5b705e}.row button{font-size:12px;padding:8px;min-height:44px}.row:last-child{border:0}.statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.stat{background:#edf2e7;border-radius:14px;padding:16px 10px}.stat strong{display:block;font-size:28px;margin-bottom:4px}.stat span{font-size:11px}.video{border:1px dashed #91a87d;background:#f3f6ec;border-radius:18px;padding:22px}.video p{font-size:12px}.empty{padding:24px 0;color:#61775e;font-size:13px}.boardonly .score{min-height:55vh}.boardonly .score strong{font-size:clamp(65px,14vw,160px)}.boardonly .clock{font-size:42px}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#183c2c;color:white;padding:12px 18px;border-radius:12px;font-size:12px;max-width:90%;display:none;z-index:10}dialog{width:min(92vw,440px);border:0;border-radius:22px;padding:24px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#17392388}dialog button{margin:5px 0}footer{margin-top:25px;font-size:11px;color:#5d705b;line-height:1.6}.sticky{position:sticky;top:10px;z-index:2}.badge{font-size:10px;background:#e7ecdf;padding:4px 7px;border-radius:6px;color:#4f6947}.source{font-size:12px;color:#526c4d;background:#f1f5e9;padding:10px;border-radius:10px}.divider{height:1px;background:#dce5d6;margin:20px 0}@media(max-width:700px){header{padding:20px 16px}.brand{font-size:16px}.brand span{font-size:12px;margin-left:9px;padding-left:9px}main{padding:8px 14px 45px}h1{font-size:27px}.grid{grid-template-columns:1fr;gap:16px}.card{padding:19px;border-radius:19px}.score{padding:17px 10px;border-radius:18px}.score strong{font-size:53px}.score .clock{font-size:23px}.score span{font-size:10px}.person{min-width:64px}.roster{gap:7px}.actions button{padding:13px;font-size:16px}.tabs button{font-size:12px;padding:10px 6px}.statgrid{gap:7px}.stat strong{font-size:24px}.sticky{top:0}.step{margin-bottom:18px}.boardonly .clock{font-size:25px}}

.wide+.wide{margin-top:8px}

.tablet-other{display:none}@media(min-width:900px){.tablet-other{display:block}.recentmain{display:none}}
.header-status{display:grid;justify-items:end;gap:5px}#save-state{font-size:10px;color:#425e49}.save-error{color:#9f1239!important;font-weight:700}.result-icon{height:22px;width:22px;vertical-align:middle;flex:none}.result-button .result-icon{display:block;margin-bottom:8px}.result-button span{display:block}.result-button{border-width:2px}.result-goal{color:#0b3e91!important;background:#e5efff!important;border-color:#1d4ed8!important}.result-saved{color:#8e1835!important;background:#fff0f3!important;border-color:#be123c!important}.result-miss,.result-block{background:#f1f4f3!important;color:#263e3a!important;border-color:#70837d!important}.result-row{border:1px solid;border-left-width:5px;border-radius:12px;padding:13px 12px;margin:10px 0;align-items:center}.result-row b{display:inline-flex;align-items:center;gap:5px}.result-row small{color:inherit}.result-row .result-icon{width:18px;height:18px}.keeper-note{display:inline-block;color:#14532d!important;background:#e3f3e7;padding:4px 6px;border-radius:5px;margin-top:7px}.result-row button{background:#fff;color:#263e3a;border-color:#70837d;min-width:48px}.entry-row{background:#f7f9f4;border:1px solid #becdb9;border-radius:16px;padding:13px;margin:12px 0}.entry-row>.flex>b{font-size:12px;color:#52684d}.entry-ident{display:grid;grid-template-columns:1fr 100px;gap:10px}.entry-ident input,.entry-ident select{margin:5px 0 9px}.remove-entry{min-width:48px;min-height:44px;font-size:12px;padding:8px}.form-error{color:#8e1835;background:#fff0f3;border:1px solid #be123c;padding:12px;border-radius:10px;font-size:13px}.wrap{flex-wrap:wrap}.word-label{font-size:17px!important;line-height:1.3;overflow-wrap:anywhere}.person{min-width:76px;max-width:150px;min-height:76px}.person small{font-size:11px}.role-details{margin:14px 0}.role-details summary{cursor:pointer;min-height:40px;display:list-item;padding:11px 5px}.role-details select{margin-top:8px}.actions{align-items:stretch}.empty{padding:18px;background:#f4f7ef;border-radius:12px;line-height:1.8}.row.result-row{border-bottom:1px solid}.badge{font-size:11px}.tabs .selected{background:#234b35!important}.score button{min-height:44px}.back{min-height:44px}dialog{max-height:92vh;overflow:auto}button:hover{filter:brightness(.97)}@media(max-width:700px){.brand span{display:none}.header-status{max-width:200px}.entry-ident{grid-template-columns:1fr 90px}.person{min-width:70px}.actions button{min-height:100px}.actions small{font-size:11px}.card{padding:16px}.result-row{padding:12px 10px}.score{padding:14px 10px}.score .clock{font-size:22px}.role-details{font-size:11px}main{padding-bottom:55px}.result-button span{font-size:16px}}
button{border-color:#70837d}input,select{border-color:#70837d}.role-details summary:focus-visible,summary:focus-visible{outline:3px solid #226fbe;outline-offset:3px}.person small{color:inherit}
.result-miss,.result-block{color:#8e1835!important;background:#fff0f3!important;border-color:#be123c!important}.team-grid{display:grid;grid-template-columns:1fr;gap:20px}.team-grid.parallel{grid-template-columns:1fr 1fr}.recording-panel{min-width:0}.mode-badge{font-size:13px;font-weight:700}.keeper-current{display:flex;justify-content:space-between;align-items:center;gap:12px}.bench-roster{padding:10px 0}.bench-item{display:flex;align-items:stretch;gap:3px}.drag-handle{touch-action:none;width:44px;min-height:76px;padding:8px;border-style:dashed}.bench .person{background:#f7f8f4}.court-slot.drop-ready{outline:4px solid #0a7250;background:#d8f4e7}.drag-ghost{position:fixed;z-index:9999;pointer-events:none;padding:14px 18px;background:#173d2b;color:white;border-radius:12px;box-shadow:0 10px 25px #0003}.checkline{display:flex;align-items:center;gap:10px}.checkline input{width:22px;height:22px;min-height:22px;margin:0}.logs summary{cursor:pointer;font-weight:700;min-height:44px}.selection-summary{font-size:13px;min-height:22px}.team-switch{max-width:650px}.team-grid:not(.parallel) .person{min-width:90px}.team-grid:not(.parallel) .actions button{min-height:110px}.team-grid:not(.parallel) .roster{gap:12px}@media(max-width:899px){.team-grid.parallel{grid-template-columns:1fr}.team-grid:not(.parallel) .person{min-width:70px}.keeper-current{font-size:12px}.team-grid:not(.parallel) .actions button{min-height:104px}.bench-item .person{min-width:68px;max-width:120px}.team-grid:not(.parallel) .roster{gap:8px}}
.embedded header{display:none}.embedded main{padding:10px 14px;max-width:none}.embedded .role-details,.embedded .back,.embedded .tabs,.embedded footer,.embedded .logs,.embedded main>.source{display:none}.embedded .recording-panel .back{display:inline-block}.embedded .score strong{font-size:48px}.embedded .recording-panel{padding:16px}.embedded .sticky{position:static}.embedded .mode-badge{padding:8px}.embedded .card .divider{margin:12px 0}.embedded .actions button{min-height:90px}.embedded .recording-panel .roster{gap:6px}.embedded .recording-panel .person{min-width:65px}

.result-post{color:#8e1835!important;background:#fff0f3!important;border-color:#be123c!important}.sync-bar{padding:14px;border:2px solid #14532d;border-radius:12px;background:#e3f3e7;margin:12px 0}.sync-bar.pending{background:#fff8db;border-color:#806000;color:#574100}.sync-bar.failed{background:#fff0f3;border-color:#be123c;color:#8e1835}.sync-bar p{margin:6px 0}.sync-bar button{min-height:44px}.sync-disabled{opacity:.65}

.actions .result-goal{grid-column:1/-1;min-height:90px}.embedded .actions .result-goal{min-height:80px}
.shot-detail-dialog{width:min(1020px,96vw);max-width:1020px;padding:24px}.detail-layout,.analysis-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}.half-court{width:100%;height:auto;display:block;touch-action:pan-y;background:#f7faf6;border-radius:16px}.half-court:focus{outline:3px solid #315846;outline-offset:3px}.goal-nine{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));aspect-ratio:3/2;gap:4px;border:3px solid #315846;border-bottom:0;padding:5px;margin:14px 0;background:#f4f7ef}.goal-nine button{padding:8px;min-width:0;min-height:44px;border-radius:8px;font-size:14px}.goal-nine button[aria-pressed=true],#course-editor>button[aria-pressed=true],.course-options button[aria-pressed=true]{background:#173d2b;color:white;border-color:#173d2b}.goal-counts>div{display:grid;align-content:center;text-align:center;gap:5px;background:white;border:1px solid #a5b4aa;border-radius:8px}.goal-counts b{font-size:24px}.course-options{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.detail-footer{position:sticky;bottom:-24px;background:white;padding:16px 0 4px;border-top:1px solid #a5b4aa;margin-top:20px}.analysis-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.row-tools{display:flex;gap:7px;flex-shrink:0}.recent-detail{margin:16px 0}.map-key{font-size:13px}.goal-key{color:#0b3e91}.failure-key{color:#8e1835}.shot-nav{margin-bottom:18px}.analysis-layout .statgrid{gap:8px}.analysis-layout .stat strong{font-size:30px}#detail-error:empty{display:none}@media(max-width:760px){.detail-layout,.analysis-layout{grid-template-columns:1fr;gap:20px}.analysis-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.shot-detail-dialog{padding:16px}.detail-footer{bottom:-16px}.row-tools{flex-wrap:wrap;max-width:64px}.row-tools button{width:100%;padding:7px}.shot-detail-dialog .entry-ident{grid-template-columns:1fr 1fr}.goal-nine{max-width:450px}.half-court{max-width:560px;margin:auto}}

body.poster main{width:1100px;max-width:1100px;margin:0;padding:24px}body.poster header{width:1100px}body.poster .shot-detail-dialog{position:fixed;margin:12px 0 0 16px;width:1000px;max-height:calc(100vh - 24px)}

body.poster header{padding:20px 24px;justify-content:space-between}body.poster .shot-detail-dialog{inset:12px auto auto 16px;margin:0}

.shot-detail-dialog .entry-ident{grid-template-columns:1fr 1fr}
body.poster header{margin:0}

.account-panel { margin: 8px 16px; padding: 8px 12px; border: 1px solid #d5dce5; border-radius: 8px; background: white; color: #172033; }
.account-panel > div { max-height: 45vh; overflow: auto; }
.account-panel button, .account-panel a { margin: 6px 8px 6px 0; display: inline-block; }
.account-panel p { font-size: 14px; line-height: 1.6; }
