@font-face{font-family:Local;src:local('Segoe UI')}*{box-sizing:border-box}body{margin:0;background:#eff2f4;color:#212e36;font:14px Local,'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #d59542;outline-offset:3px}button{color:inherit}aside{position:fixed;inset:0 auto 0 0;width:222px;background:#14232d;color:#e9f0f5;padding:32px 18px;display:flex;flex-direction:column;z-index:2}.brand{font-size:26px;font-weight:750;letter-spacing:-1px;text-decoration:none;color:inherit;display:flex;align-items:center;margin:0 8px 36px}.brand>span:last-child{color:#9cc5df}.brand-icon{font-size:36px;color:#b4d3e7;margin-right:10px}.workspace{font-size:10px;letter-spacing:1.8px;color:#8ca5b5;margin:0 10px 22px;display:flex;justify-content:space-between}.workspace span{letter-spacing:0;color:#b2c3ce}nav{display:grid;gap:6px}.nav-item{border:0;background:none;color:#a0b5c2;width:100%;min-height:49px;text-align:left;border-radius:7px;padding:12px 12px;display:flex;align-items:center;gap:12px;font-size:13px}.nav-item>span{font-size:22px;width:24px}.nav-item.active{background:#acd1e8;color:#202f39;font-weight:650}.nav-item b{border-radius:4px;padding:1px 5px;font-size:11px;background:#d6a970;color:#14232d;margin-left:auto}.aside-bottom{margin-top:auto;padding:24px 10px 0;border-top:1px solid #2e3f49}.aside-bottom p{font-size:12px;line-height:1.8;color:#8fa8b8}.save-dot{color:#acd1e8;font-size:12px}.aside-bottom .text-btn{color:#cdd8df;font-size:12px}main{margin-left:222px}header{min-height:78px;display:flex;align-items:center;justify-content:space-between;padding:16px 34px;background:#f7f9fb;border-bottom:1px solid #dae2e7;gap:16px}.breadcrumb{font-size:12px;color:#5e7f93}.breadcrumb span{margin:0 12px;color:#96adbc}.header-right{display:flex;gap:20px;align-items:center}.connection{font-size:11px;color:#536f81}.role-switch{display:flex;background:#e5ebee;border:1px solid #d6dfe4;border-radius:7px;padding:3px}.role-switch button{border:0;background:none;padding:9px 15px;min-height:36px;border-radius:4px;font-size:12px}.role-switch .selected{background:white;box-shadow:0 1px 4px #17283314;font-weight:650}.content{max-width:1600px;margin:auto;padding:30px 34px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#65879d;font-weight:600}h1{font-size:32px;font-weight:650;letter-spacing:-1.1px;margin:8px 0 8px}p{color:#5f8094;line-height:1.65;margin:8px 0 14px}h2{font-size:22px;margin:5px 0}h3{font-size:14px;margin:0;font-weight:650}h4{font-size:12px;margin:10px 0 15px}small{font-size:11px;color:#63869b}.btn{border:1px solid #ced9e0;background:#fff;border-radius:6px;padding:12px 17px;min-height:46px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn:hover{border-color:#66889d;background:#eff6fa}.btn.primary{background:#21333e;color:#fff;border-color:#21333e}.btn.primary:hover{background:#304653}.text-btn{background:none;border:0;padding:8px 0;min-height:34px;color:#4b6575;font-size:11px;font-weight:600}.scoreboard{background:#fff;border:1px solid #d4dde3;border-radius:10px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;padding:22px 34px;margin-bottom:26px;box-shadow:0 3px 4px #23343e10}.score-team{display:flex;align-items:center;gap:20px}.score-team .team-dot{width:40px;height:46px;border-radius:8px;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);border:0;background:#cde0ec}.score-team .team-dot.away{background:#eadbd0}.score-team h2{font-size:21px}.score-team small{font-size:11px}.small-label{font-size:9px;letter-spacing:1.5px;color:#7191a5}.away-label{justify-content:flex-end;text-align:right}.score-center{text-align:center}.set-label{font-size:10px;letter-spacing:1.4px;color:#6a8b9f}.score{display:flex;justify-content:center;align-items:center;gap:24px;font-variant-numeric:tabular-nums;margin:2px 0 3px}.score strong{font-size:54px;line-height:1.2;font-weight:650}.score>span{font-size:28px;font-weight:300;color:#99afbd}.set-score{font-size:10px;color:#6d8ea2}.set-score b{margin:0 8px;color:#445b6a}.set-score>span{margin:0 3px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.section-heading h3{display:flex;align-items:center;gap:8px}.section-heading>span:not(.pill){font-size:10px;color:#6b8ca1}.section-heading.outside{margin:0 0 14px}.team-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#517992}.team-dot.away{background:#b27e5c}.pill{font-size:9px;letter-spacing:.7px;background:#e6edf1;padding:5px 8px;border-radius:4px;color:#567486;white-space:nowrap}.pill.away{background:#f3e7de;color:#956744}.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.courts{display:grid;grid-template-columns:1fr 1fr;gap:16px}.court-panel{border:1px solid #d0dae1;border-radius:9px;background:#fff;overflow:hidden}.court-panel>.section-heading{padding:17px 17px 0}.court{background:#dde7ed;position:relative;margin:0 16px;border:1px solid #b1c6d3;border-radius:4px}.court.away{background:#f0e7de;border-color:#decfbd}.net{height:20px;border-bottom:3px double #66889d;text-align:center;position:relative;background:repeating-linear-gradient(90deg,transparent,transparent 7px,#b2c3ce 8px)}.net span{font-size:8px;letter-spacing:2px;background:#dde7ed;padding:0 7px}.away .net{border-color:#a9957d;background:repeating-linear-gradient(90deg,transparent,transparent 7px,#d3c5b3 8px)}.away .net span{background:#f0e7de}.court-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:132px 132px;position:relative;padding:9px 3px;gap:7px 0;background:linear-gradient(to bottom,transparent 34%,#f5fbfe 34%,#f5fbfe 34.7%,transparent 34.7%)}.player{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid transparent;border-radius:6px;margin:4px;background:transparent;min-width:0;padding:8px 2px;gap:5px;transition:background .12s}.player:hover{background:#ffffff70}.player.chosen{border:1.5px solid #4b7087;background:#ffffff9c;box-shadow:0 3px 7px #36627d20}.away .player.chosen{border-color:#b58a60}.jersey{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #c9d8e1;border-radius:50%;width:43px;height:43px;font-size:20px;font-weight:700;box-shadow:0 2px 4px #213f510c}.jersey.libero{background:#57788d;color:#fff;border-color:#57788d}.away .jersey.libero{background:#a38365;border-color:#a38365}.zone-tag{position:absolute;top:6px;left:7px;font-size:8px;color:#7191a5}.player-name{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-mark{font-size:7px;letter-spacing:.5px;color:#496f87}.libero-under{font-size:8px;color:#6d8da1}.court-bottom{padding:10px 16px;display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;min-height:66px;font-size:9px;color:#6d8ea2}.court-bottom .text-btn{margin-left:auto;font-size:9px}.court-bottom b{font-weight:600;color:#4c6676}.quick-points{display:flex;gap:10px;margin-top:16px}.quick-points .btn:not(.undo){flex:1}.point-home{background:#ccdeea;border-color:#aec7d7;color:#2e4c5f}.point-away{background:#eee4db;border-color:#ddcbb9;color:#8c6543}.quick-points kbd{font:10px inherit;border:1px solid #a9bcc8;border-radius:3px;padding:2px 4px;margin-left:auto;opacity:.7}.undo{font-size:11px;padding:10px}.hint{font-size:10px;color:#7291a5;margin:12px 0;line-height:1.65}.action-panel{background:#fff;border:1px solid #d4dde3;border-radius:9px;padding:19px}.skill-tabs{display:flex;border-bottom:1px solid #dbe3e8;margin:0 -5px 20px;justify-content:space-between}.skill-tabs button{border:0;border-bottom:2px solid transparent;background:none;font-size:11px;padding:12px 5px;color:#7190a4;min-height:44px}.skill-tabs button.active{border-color:#496a7e;color:#2d4655;font-weight:700}.field-label{display:block;font-size:9px;font-weight:600;letter-spacing:.8px;color:#7190a4;margin:16px 0 9px}.zone-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.zone-picker button,.direction button,.block-picker button{border:1px solid #d4dde3;border-radius:5px;background:#f4f8fa;min-height:40px;font-size:12px}.zone-picker .selected,.direction .selected,.block-picker .selected{border-color:#5c8097;background:#deeaf1;color:#324e5f;font-weight:700}.direction,.block-picker{display:flex;gap:6px;margin-top:12px}.direction button,.block-picker button{flex:1;font-size:11px}.grade-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.grade{display:flex;align-items:center;gap:9px;min-height:60px;border:1px solid #d2dce3;border-radius:5px;background:#f3f7fa;padding:10px;text-align:left}.grade b{font-size:24px;font-weight:600;min-width:22px}.grade span{font-size:10px;line-height:1.5;color:#62849a}.grade.win{background:#d0e2ee;border-color:#b0cbdc;color:#2c4e63}.grade.error{background:#f7e9e0;border-color:#ead4c4;color:#a36f4d}.action-note{font-size:9px;line-height:1.7;color:#7997aa;margin-top:15px}.lower-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin-top:22px}.panel{padding:22px;background:#fff;border:1px solid #d4dde3;border-radius:9px;margin-bottom:20px;min-width:0}.lower-grid .panel{margin:0}.prediction-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.prediction-grid>div{min-width:0}.prediction-grid small{font-size:9px}.empty-small{font-size:11px;color:#7997a9;min-height:32px}.bar-row{display:flex;align-items:center;gap:6px;font-size:9px;margin:10px 0}.bar-row>span{min-width:28px}.bar-row>b{font-size:9px;min-width:25px}.bar-track{height:5px;background:#e7eef3;border-radius:3px;flex:1;overflow:hidden}.bar{height:100%;background:#6992ab;border-radius:3px}.recent{display:flex;gap:12px;align-items:center;border-bottom:1px solid #e9eef1;padding:10px 0}.recent:last-child{border:0}.recent b{font-size:11px;font-weight:600}.recent small{display:block;margin-top:4px;font-size:9px}.event-icon{display:flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:5px;background:#e6edf2;color:#63869c;font-size:20px}.event-icon.away{background:#f3ebe4;color:#a0876c}.empty{text-align:center;padding:7px;color:#7191a5}.empty>span{font-size:30px;color:#98afbd}.empty h4{font-size:12px;margin:8px}.empty p{font-size:11px;margin:0}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:20px}.metric{padding:24px;border:1px solid #d4dde3;border-radius:9px;background:#fff;display:flex;flex-direction:column;gap:12px}.metric>span{font-size:10px;letter-spacing:1px;color:#65879d}.metric strong{font-size:40px;font-weight:600}.coach-courts{margin-bottom:22px}.coach-courts .court-grid{grid-template-rows:100px 100px}.coach-courts .player{cursor:default}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-weight:500;color:#7090a3;font-size:10px;white-space:nowrap}td,th{padding:16px 10px;border-bottom:1px solid #e1e9ee}td b{margin-right:10px}.undone{opacity:.4;text-decoration:line-through}.detail-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #e7edf0;font-size:12px}.detail-line>span{font-size:11px;color:#6e8fa3}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid .panel{margin:0}.settings-grid h3{margin-bottom:16px}.settings-grid p{font-size:12px}.settings-grid h4{margin-top:28px}.sync-detail{padding:15px;background:#e9f0f5;border-radius:5px;font-size:12px;line-height:1.8;margin:20px 0}label{display:block;font-size:12px;color:#59778a;margin:14px 0}input,textarea,select{display:block;width:100%;border:1px solid #cdd9e0;border-radius:5px;background:#f8fafc;color:#26343c;padding:11px;margin-top:7px;min-height:43px}input:focus,textarea:focus,select:focus{outline:2px solid #85a7bc;outline-offset:1px}textarea{resize:vertical;line-height:1.7}.key-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:6px 0}.key-row input{width:110px;margin:0}.file-label{cursor:pointer;margin:12px 0}.notice{padding:18px;background:#dae6ed;border:1px solid #b8ccd9;border-radius:7px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px}footer{display:flex;justify-content:space-between;gap:15px;color:#7c99ab;font-size:9px;margin-top:28px;padding:20px 0;border-top:1px solid #d4dee5}dialog{border:1px solid #c4d3dc;border-radius:12px;background:#f7f9fb;color:#233038;width:min(870px,95vw);max-height:90dvh;padding:28px;box-shadow:0 24px 100px #101e2740}dialog::backdrop{background:#14232d90;backdrop-filter:blur(3px)}dialog h2{font-size:25px;margin-bottom:18px}dialog h3{margin-top:28px}dialog p{font-size:12px}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}fieldset{border:1px solid #d2dde4;border-radius:6px;padding:12px 16px}legend{font-size:12px;font-weight:700;color:#4b6576}.form-row{display:flex;gap:15px}.form-row>label{flex:1;min-width:0}.close{border:0;background:transparent;padding:12px 0;margin-top:16px;color:#628499;min-height:44px}.boot-error{padding:40px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);background:#21323c;color:#eff5f9;padding:15px 25px;border-radius:8px;font-size:13px;max-width:90vw;z-index:10;opacity:0;transition:.2s}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}a{color:#446173}
@media(min-width:1600px){.court-grid{grid-template-rows:150px 150px}.live-layout{grid-template-columns:minmax(0,1fr) 340px}.jersey{width:50px;height:50px;font-size:23px}}
@media(max-width:1200px){aside{width:180px;padding:25px 12px}.brand{font-size:23px;margin-left:4px}.brand-icon{font-size:30px}.nav-item{font-size:11px;padding:9px}.workspace{font-size:8px;margin-left:6px;letter-spacing:1px}main{margin-left:180px}.content{padding:24px}header{padding:16px 24px}.live-layout{grid-template-columns:minmax(0,1fr) 270px;gap:15px}.court{margin:0 9px}.court-panel>.section-heading{padding:14px 10px 0}.court-grid{grid-template-rows:116px 116px;gap:3px}.jersey{width:37px;height:37px;font-size:18px}.player{margin:2px}.player-name{font-size:8px}.court-bottom{padding:9px 10px;gap:3px 8px}.quick-points{flex-wrap:wrap}.quick-points .undo{flex-basis:100%;min-height:40px}.header-right{gap:10px}.connection{font-size:9px}.breadcrumb{font-size:10px}.lower-grid{gap:15px}.prediction-grid{gap:12px}.panel{padding:18px}.scoreboard{padding:20px 24px}.score{gap:15px}.score strong{font-size:46px}.score-team{gap:12px}.score-team h2{font-size:18px}.score-team .team-dot{width:30px;height:36px}}
@media(max-width:1000px){aside{width:70px;padding:25px 8px}.brand{font-size:0;margin:0 5px 30px}.brand-icon{font-size:32px}.workspace,.aside-bottom{display:none}.nav-item{font-size:0;justify-content:center;padding:8px;gap:0}.nav-item>span{font-size:24px}.nav-item b{font-size:8px;position:absolute;margin:25px 0 0 26px}main{margin-left:70px}.live-layout{grid-template-columns:minmax(0,1fr) 265px}.content{padding:22px 20px}header{padding:15px 20px}.page-title h1{font-size:29px}.page-title p{font-size:11px}.court-grid{grid-template-rows:112px 112px}.lower-grid{grid-template-columns:1fr}.prediction-grid{gap:28px}.quick-points .btn{font-size:10px;padding:11px}.scoreboard{padding:18px}.score-team h2{font-size:16px}.score-team .team-dot{display:none}}
@media(max-width:780px){.live-layout{grid-template-columns:1fr}.action-panel{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.action-panel>.section-heading,.skill-tabs,.action-note{grid-column:1/-1}.action-panel>.field-label,.action-panel>.zone-picker,.action-panel>.direction,.action-panel>.block-picker,.action-panel>select,.action-panel>.grade-grid{grid-column:1/-1}.zone-picker{grid-template-columns:repeat(6,1fr)}.grade-grid{grid-template-columns:repeat(4,1fr)}.grade{min-height:66px}.skill-tabs button{flex:1}.court-grid{grid-template-rows:120px 120px}.quick-points .undo{flex-basis:auto}.settings-grid{grid-template-columns:1fr}.header-right{flex-wrap:wrap;justify-content:flex-end}.breadcrumb{display:none}header{min-height:65px;justify-content:flex-end}.scoreboard{margin-bottom:22px}.metrics{gap:10px}.metric{padding:16px}.metric>span{font-size:8px}.metric strong{font-size:32px}.metric small{font-size:9px}.page-title{align-items:flex-start}.page-title>.btn{font-size:10px;min-width:95px}.eyebrow{font-size:8px}.score-team small{font-size:9px}.set-score{font-size:9px}.score strong{font-size:40px}.form-columns{grid-template-columns:1fr}}
@media(max-width:520px){aside{position:fixed;inset:auto 0 0;width:100%;height:66px;padding:3px;background:#14232d;z-index:5}.brand{display:none}nav{display:flex;height:100%;justify-content:space-around}.nav-item{width:60px;min-height:48px}.nav-item.active{background:#293b47;color:#acd1e8}main{margin-left:0}header{padding:10px 15px}.content{padding:24px 14px 75px}.page-title{gap:6px}.page-title h1{font-size:25px}.page-title p{max-width:240px}.page-title>.btn{min-width:70px;font-size:9px;padding:9px}.courts{gap:9px}.court-panel>.section-heading h3{font-size:11px}.court-panel>.section-heading .pill{font-size:7px;padding:4px}.court-grid{grid-template-rows:112px 112px}.court{margin:0 7px}.player{margin:1px}.zone-tag{left:3px;top:4px;font-size:7px}.jersey{width:34px;height:34px;font-size:16px}.player-name{font-size:7px}.server-mark{font-size:6px}.court-bottom{font-size:8px}.court-bottom .text-btn{font-size:8px}.section-heading.outside>span{font-size:8px}.scoreboard{padding:18px 12px;grid-template-columns:1fr 1.1fr 1fr}.score-team h2{font-size:13px;overflow-wrap:anywhere}.score{gap:10px}.score strong{font-size:36px}.score-team small{font-size:8px}.small-label{font-size:7px}.grade-grid{grid-template-columns:repeat(2,1fr)}.grade b{font-size:28px}.grade span{font-size:12px}.zone-picker button{min-height:46px}.prediction-grid{gap:13px}.prediction-grid h4{font-size:10px}.prediction-grid .bar-row>span{min-width:20px;font-size:8px}.bar-row{gap:3px}.metrics{grid-template-columns:1fr}.metric{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.metric small{flex-basis:100%}.metric strong{font-size:28px}footer{font-size:8px;flex-direction:column}.connection{max-width:150px;font-size:9px}.role-switch button{padding:8px 10px}dialog{padding:20px}.notice{flex-direction:column;align-items:flex-start}.detail-line{flex-wrap:wrap}#toast{bottom:80px;width:90vw;text-align:center}}
@media(pointer:coarse){.skill-tabs button,.text-btn{min-height:44px}.player{min-height:85px}.grade{min-height:68px}}
@media(max-height:850px) and (min-width:781px){header{min-height:54px;padding-top:8px;padding-bottom:8px}.content.view-live{padding-top:15px}.view-live .page-title{margin-bottom:14px;min-height:42px}.view-live .page-title h1{font-size:25px;margin:0}.view-live .page-title p,.view-live .page-title .eyebrow{display:none}.view-live .scoreboard{padding-top:12px;padding-bottom:12px;margin-bottom:17px}.view-live .score strong{font-size:38px}.view-live .court-grid{grid-template-rows:98px 98px}.view-live .action-panel{padding:15px}.view-live .action-panel .section-heading{margin-bottom:8px}.view-live .skill-tabs{margin-bottom:8px}.view-live .field-label{margin-top:10px;margin-bottom:6px}.view-live .grade{min-height:54px}.view-live .action-note{margin-top:8px}.view-live .quick-points{margin-top:12px}.view-live .hint{margin-top:8px}.view-live .section-heading.outside{margin-bottom:10px}.view-live .lower-grid{margin-top:16px}}
@media(max-height:850px) and (min-width:781px){.content.view-live{padding-top:10px}.view-live .page-title{min-height:34px;margin-bottom:8px}.view-live .page-title h1{font-size:21px}.view-live .page-title>.btn{min-height:34px;padding:8px 12px}.view-live .scoreboard{padding-top:8px;padding-bottom:8px;margin-bottom:14px}.view-live .score strong{font-size:32px}.view-live .score-team h2{font-size:16px}.view-live .score-team .team-dot{width:25px;height:32px}.view-live .court-grid{grid-template-rows:84px 84px}.view-live .court-panel>.section-heading{padding-top:12px;margin-bottom:12px}.view-live .court-bottom{min-height:54px;padding-top:6px;padding-bottom:6px}.view-live .action-panel select{min-height:38px;padding:8px}.view-live .zone-picker button{min-height:36px}.view-live .skill-tabs button{padding-top:8px;padding-bottom:8px}.view-live .grade{min-height:50px}.view-live .action-panel .field-label{margin-top:8px}}
/* Club portal and clear action colors */
.grade.win{background:#0d4e76;border:2px solid #0a3d5c;color:#fff;box-shadow:0 2px 0 #083049}.grade.win span{color:#fff;font-weight:700}.grade.error{background:#c53131;border:2px solid #a11e1e;color:#fff;box-shadow:0 2px 0 #811e1e}.grade.error span{color:#fff;font-weight:700}.grade.win:hover{background:#0b3f60}.grade.error:hover{background:#a82424}.grade b{font-size:30px}.target-toggle{width:100%;margin:8px 0}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#e8eef1}.auth-card{max-width:470px;width:100%;background:white;border:1px solid #cdd8df;border-radius:12px;padding:32px}.auth-brand{font-size:25px;color:#253c4a;margin:0 0 25px}.auth-card h1{font-size:27px}.auth-card .btn{width:100%;margin:10px 0}.form-error{color:#b32121;font-size:13px;line-height:1.6;min-height:1.6em;margin:12px 0}.block{display:block}.member-number{width:72px}.member-profile{min-width:200px}.member-role{min-width:75px}#player-search{margin-bottom:20px}
.single-court-panel{background:#fff;border:1px solid #c2d0d8;border-radius:8px;overflow:hidden}.pitch-heading,.pitch-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px}.pitch-heading>b{display:flex;align-items:center;gap:9px;font-size:14px}.pitch-heading>span{font-size:9px;color:#618297;letter-spacing:.5px;text-align:center}.horizontal-pitch{display:grid;grid-template-columns:1fr 1fr;position:relative;margin:0 14px;border:2px solid #92abba;background:#e6eef3;min-height:294px}.pitch-half{position:relative;background:linear-gradient(90deg,transparent 66%,#fff 66%,#fff 67%,transparent 67%)}.pitch-half.away{background:linear-gradient(90deg,transparent 33%,#fff 33%,#fff 34%,transparent 34%),#f3ece4}.center-net{position:absolute;left:calc(50% - 3px);width:6px;top:-6px;bottom:-6px;border:1px solid #587689;background:repeating-linear-gradient(to bottom,#fff 0,#fff 4px,#587689 4px,#587689 6px);display:flex;align-items:center;justify-content:center;pointer-events:none}.center-net>span{writing-mode:vertical-rl;background:#21333e;color:white;font-size:7px;letter-spacing:2px;padding:12px 4px}.rotation-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,98px);padding:8px 5px}.pitch-player{border:1px solid transparent;border-radius:6px;background:transparent;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:3px;gap:4px;min-width:0}.pitch-player.chosen{border:2px solid #3a6078;background:#ffffffb3}.pitch-player:hover{background:#ffffff90}.pitch-player .jersey{width:40px;height:40px;font-size:20px}.position-mark{font-size:9px;color:#557386;position:absolute;top:5px;left:7px}.pitch-player .player-name{font-size:8px}.pitch-bottom>div{display:flex;align-items:center;justify-content:space-between;gap:10px;width:50%;font-size:10px;color:#567486}.pitch-bottom .text-btn{font-size:10px}.target-grid{display:grid;grid-template-columns:repeat(3,1fr);height:100%;min-height:294px}.target-cell{border:1px dashed #92abba;background:#ffffff30;font-size:22px;color:#405e71;min-height:72px}.target-cell:hover,.target-cell.selected{background:#b2d3e7;border:2px solid #36627e}.coach-surface{margin-bottom:20px}.board-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.board-grid .panel{margin:0}.board-metrics{margin-top:20px}.heat-net{text-align:center;font-size:10px;letter-spacing:3px;border-bottom:3px double #5c7c90;padding-bottom:8px}.heat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:6px}.heat-cell{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;min-height:105px;border:1px solid #cddae2;border-radius:5px}.heat-cell>strong{font-size:27px;font-weight:600}.heat-cell>small{font-size:10px}.heat-cell>span{font-size:10px}.heat-0{background:#f2f6f8;color:#7f9bad}.heat-1{background:#c7e0ef;color:#30566e}.heat-2{background:#74a7c7;color:#213c4c}.heat-3{background:#265978;color:#fff}.heat-3 small{color:#d0dfe8}.direction-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:30px 0}.direction-comparison>div{display:flex;flex-direction:column;gap:12px;padding:22px 10px;background:#e5eef3;text-align:center;border-radius:8px}.direction-comparison strong{font-size:38px}.direction-comparison span{font-size:12px}.stat-bar-row{display:flex;gap:10px;align-items:center;margin:18px 0;flex-wrap:wrap}.stat-bar-row>span{font-size:11px;min-width:110px}.stat-bar-row meter{flex:1;height:15px}.stat-bar-row>b{font-size:12px}.block-combination{display:flex;align-items:center;gap:12px;margin:24px 0;flex-wrap:wrap}.block-combination progress{flex:1;height:16px;accent-color:#185378}.block-combination>b{min-width:80px}.expanded-analytics{position:fixed;inset:0;z-index:6;background:#eff2f4;overflow:auto;max-width:none;padding:22px 30px!important}.expanded-analytics .page-title,.expanded-analytics .scoreboard,.expanded-analytics footer{display:none}.expanded-analytics .board-grid{grid-template-columns:repeat(4,minmax(200px,1fr))}.expanded-analytics .legacy-analytics{display:none}
@media(max-width:1100px){.expanded-analytics .board-grid{grid-template-columns:1fr 1fr}.horizontal-pitch{min-height:270px}.rotation-grid{grid-template-rows:repeat(3,90px)}.pitch-heading>span{font-size:8px}.pitch-bottom{padding:10px}.pitch-bottom>div{font-size:9px;flex-wrap:wrap}.pitch-bottom .text-btn{font-size:9px}}
@media(max-width:780px){.board-grid{grid-template-columns:1fr}.pitch-player .jersey{width:39px;height:39px}.pitch-heading>b{font-size:12px}.pitch-heading>span{font-size:7px}.rotation-grid{grid-template-rows:repeat(3,95px)}.expanded-analytics{padding:14px!important}.expanded-analytics .board-grid{grid-template-columns:1fr}.auth-card{padding:24px}.heat-cell{min-height:90px}}

.recorder-toolbar{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin:12px 0}.recorder-toolbar .btn{min-height:44px}.expanded-input{position:fixed;inset:0;z-index:7;background:#eff2f4;overflow:auto;max-width:none;padding:12px 20px!important}.expanded-input .page-title,.expanded-input footer,.expanded-input .lower-grid{display:none}.expanded-input .scoreboard{padding:8px 18px;margin-bottom:8px}.expanded-input .score{font-size:36px}.expanded-input .live-layout{grid-template-columns:minmax(0,1fr) minmax(280px,350px)}.expanded-input .recorder-toolbar{margin:4px 0 10px}.prediction-popup h2{padding-right:55px}.prediction-popup .panel{border:0;padding:8px 0;box-shadow:none}.prediction-popup .prediction-grid{gap:18px}.prediction-popup .btn.primary{width:100%;min-height:54px;margin-top:12px}#modal:has(.prediction-popup){width:min(900px,94vw);max-width:94vw}#close-modal{min-height:44px;min-width:64px}.expanded-input .grade{min-height:65px}@media(max-width:780px){.expanded-input{padding:10px!important}.expanded-input .live-layout{grid-template-columns:1fr}.recorder-toolbar{justify-content:flex-start}.prediction-popup .prediction-grid{grid-template-columns:1fr}.prediction-popup .panel{margin-bottom:0}}

.import-tools{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.club-import{background:#edf3f6!important;border:1px solid #a4bbc9}.source-player-list{max-height:290px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.source-player{display:flex!important;align-items:center;gap:10px;margin:0!important;min-height:46px;padding:8px;background:white;border:1px solid #ccd7de;border-radius:6px}.source-player input{width:22px!important;min-width:22px;height:22px!important;margin:0!important}.source-player[hidden]{display:none!important}@media(max-width:650px){.source-player-list{grid-template-columns:1fr}}

/* Club light-blue palette. Red remains the error signal. */
:root{--club-blue:#169bd5;--club-light:#e2f4ff;--club-ink:#153d58}body{background:#f2f9fd;color:var(--club-ink)}aside{background:var(--club-light);color:var(--club-ink);border-right:1px solid #bfdff1}.brand>span:last-child,.brand-icon{color:#087fb9}.workspace,.workspace span{color:#4e7992}.nav-item{color:#3b6480}.nav-item.active{background:#72c8ef;color:#083953}.aside-bottom{border-color:#badbea}.aside-bottom p,.aside-bottom .text-btn,.save-dot{color:#376681}.btn.primary{background:#189edb;border-color:#1282b6;color:#fff}.btn.primary:hover{background:#087eb9}.grade.win{background:#087ebc!important;border-color:#086598!important;color:white!important}.grade.win span,.grade.win b{color:white!important}.heat-0{background:#f1f9ff;color:#668ca3}.heat-1{background:#daeffc;color:#285f80}.heat-2{background:#84c9ed;color:#123f5a}.heat-3{background:#137db6;color:#fff}.heat-3 small{color:#e1f3ff}.bar{background:#269fd7}.auth-screen{background:#eaf6fe}.auth-brand{color:#17678f}.import-tools .btn{border-color:#a8d5ed}.club-import{background:#eef8ff!important;border-color:#b4daef!important}.source-player{border-color:#c9e3f2}.pitch-half.away{background:linear-gradient(90deg,transparent 33%,#fff 33%,#fff 34%,transparent 34%),#eef2fc}

.target-grid.six-zones{grid-template-columns:repeat(2,minmax(0,1fr))}.action-panel [hidden]{display:none!important}

.lower-grid.single{grid-template-columns:1fr}
body.focus-mode{overflow:hidden;overscroll-behavior:none}.expanded-input{height:100dvh;overflow:hidden;display:flex;flex-direction:column;gap:6px;padding:8px 12px!important}.expanded-input>.notice,.expanded-input>button[data-do="switch-sides"],.expanded-input .hint,.expanded-input .section-heading.outside>span,.expanded-input .action-note{display:none}.expanded-input .scoreboard{flex:0 0 auto;margin:0;padding:5px 12px;min-height:66px}.expanded-input .score-team h2{font-size:17px}.expanded-input .score-team small,.expanded-input .small-label{font-size:10px}.expanded-input .recorder-toolbar{flex:0 0 auto;margin:0;flex-wrap:nowrap;justify-content:flex-start;gap:6px;overflow-x:auto}.expanded-input .recorder-toolbar .btn{min-height:38px;white-space:nowrap;padding:8px 10px}.expanded-input .live-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,31%);gap:12px;margin:0}.expanded-input .live-layout>div:first-child{display:flex;flex-direction:column;min-height:0;gap:4px}.expanded-input .section-heading.outside{flex:0 0 auto;margin:0;padding:2px}.expanded-input .single-court-panel{flex:1;min-height:0;display:flex;flex-direction:column}.expanded-input .pitch-heading,.expanded-input .pitch-bottom{flex:0 0 auto;padding:6px 9px;gap:5px}.expanded-input .pitch-heading>span{display:none}.expanded-input .horizontal-pitch{flex:1;min-height:0;margin:0 8px}.expanded-input .rotation-grid{height:100%;grid-template-rows:repeat(3,minmax(0,1fr));padding:3px}.expanded-input .pitch-player{min-height:44px;margin:1px}.expanded-input .target-grid{height:100%;min-height:0;grid-template-rows:repeat(3,minmax(0,1fr))}.expanded-input .target-cell{min-height:0}.expanded-input .quick-points{flex:0 0 auto;margin:0;gap:5px}.expanded-input .quick-points .btn{min-height:42px;padding:7px;font-size:11px}.expanded-input .action-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px;align-self:stretch}.expanded-input .action-panel>.section-heading{margin-bottom:5px}.expanded-input .action-panel>label[for="situation"],.expanded-input #situation{display:none}.expanded-input .field-label{margin:7px 0 4px}.expanded-input .grade{min-height:44px;padding:8px}.expanded-input .grade-grid{gap:5px}.expanded-input .grade b{font-size:22px}.expanded-input .zone-picker button{min-height:34px;padding:5px}.expanded-input .skill-tabs{margin-bottom:5px}.expanded-input .skill-tabs button{padding:7px 3px;font-size:11px}.expanded-input .direction button{min-height:36px;padding:6px}.expanded-input .scope-note{font-size:11px;line-height:1.3;margin:4px 0}.expanded-input .action-panel>label:has(#observation-player){margin:4px 0}.expanded-input #observation-player{padding:7px;min-height:36px}.expanded-input .courts{flex:1;min-height:0}.expanded-input .court-panel{display:flex;flex-direction:column;min-height:0}.expanded-input .court{flex:1;min-height:0}.expanded-input .court-grid{height:100%;grid-template-rows:repeat(2,minmax(0,1fr))}.expanded-input .player{min-height:44px}.expanded-input [hidden]{display:none!important}@media(max-height:650px){.expanded-input .pitch-player .player-name,.expanded-input .set-score>span,.expanded-input .score-team .team-dot{display:none}.expanded-input .pitch-player .jersey{width:32px;height:32px;font-size:18px}.expanded-input .scoreboard{min-height:52px}.expanded-input .score{font-size:28px}.expanded-input .pitch-bottom .text-btn{padding:2px}.expanded-input .grade{min-height:38px}.expanded-input .grade span{font-size:10px}}@media(max-width:780px){.expanded-input .live-layout{grid-template-columns:minmax(0,1fr) minmax(230px,38%)}.expanded-input .score-team{gap:4px}.expanded-input .score-team h2{font-size:13px}.expanded-input .pitch-heading>b{font-size:10px}.expanded-input .pitch-bottom>div>span{display:none}}

.prediction-grid.forecast-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.forecast-pair>.panel{box-shadow:none;border:0;padding:8px;margin:0}

.expanded-input .live-layout{align-items:stretch}.expanded-input .live-layout>div:first-child{align-self:stretch}.origin-choice{display:flex;align-items:center;gap:8px;font-size:11px;margin:6px 0}.origin-choice select{padding:5px;min-height:32px;margin:0}#modal:has(.tactics-popup){width:min(1060px,96vw);max-width:96vw}.tactics-popup .section-heading{padding-right:55px}.tactics-popup h2{font-size:21px}.tactics-tabs{display:flex;gap:10px;margin:10px 0}.tactics-tabs .btn{flex:1}.tactics-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tactics-filters label{margin:5px 0}.tactics-filters select{padding:7px}.tactics-metrics,.tactics-legend{display:flex;gap:16px;flex-wrap:wrap;margin:8px 0}.tactics-metrics span{background:#e6f4fc;border-radius:5px;padding:8px}.tactics-metrics b{margin-left:6px}.tactics-court{width:100%;display:block;max-height:49vh}.tactics-legend{font-size:12px}.tactics-popup .hint{font-size:11px;line-height:1.4}@media(max-height:700px){.tactics-popup .btn{padding:7px;min-height:36px}.tactics-popup .section-heading{margin:0}.tactics-tabs{margin:5px 0}.tactics-court{max-height:40vh}.tactics-metrics span{padding:5px}}

.legend-serve{color:#e98216}.legend-attack{color:#148bd3}

.expanded-input .observation-panel .scope-note{display:none}.expanded-input .observation-selection{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:end;gap:7px;margin:3px 0}.expanded-input .observation-selection label{margin:0;font-size:10px}.expanded-input .observation-selection .btn{padding:5px;font-size:10px;min-height:36px;height:36px}.expanded-input .observation-panel .target-toggle{padding:6px;min-height:36px;margin-top:3px}.expanded-input .observation-panel .origin-choice{float:left;width:36%;display:block;font-size:10px;margin:4px 0}.expanded-input .observation-panel .origin-choice select{width:100%;height:32px}.expanded-input .observation-panel .direction{margin:17px 0 4px 39%;gap:4px}.expanded-input .observation-panel .direction button{padding:5px;min-height:32px;font-size:10px}.expanded-input .observation-panel .grade{min-height:40px;padding:6px}.expanded-input .observation-panel .grade-grid{clear:both}.expanded-input .observation-panel .zone-picker{gap:4px}.expanded-input .observation-panel .field-label{margin:5px 0 3px}

:root{--club-blue:#078ed0;--club-light:#d8f1ff;--club-ink:#123954}.btn.primary{background:linear-gradient(135deg,#078ed0,#1266b1);border-color:#096baf}.single-court-panel{border:1px solid #79bde7;box-shadow:0 3px 12px #1b6c9b17}.horizontal-pitch{background:#b8e3fa;border-color:#468eb9}.pitch-half{background:linear-gradient(90deg,transparent 66%,#ffffff 66%,#ffffff 67%,transparent 67%),#c4eaff}.pitch-half.away{background:linear-gradient(90deg,transparent 33%,#ffffff 33%,#ffffff 34%,transparent 34%),#d7e4ff}.pitch-player .jersey{background:linear-gradient(140deg,#0877b9,#164c85);color:white;box-shadow:0 2px 5px #164c8530}.pitch-player .jersey.libero{background:linear-gradient(140deg,#8954c5,#653a9b)}.pitch-player.chosen{border-color:#007dc2;background:#fff8;box-shadow:0 0 0 1px #0a84c2}.pitch-player:has(.server-mark){background:#fff0b7;border-color:#d7a12b}.server-mark{color:#845700!important;font-weight:750}.quick-points .point-home{background:#087dbd;color:#fff;border-color:#0468a0}.quick-points .point-away{background:#d54751;color:#fff;border-color:#b8313d}.quick-points .undo{background:#173f62;color:white;border-color:#173f62}.grade[data-grade="+"]{background:#d3f3ff;border-color:#0c9bc9}.grade[data-grade="-"]{background:#fff0bd;border-color:#d7ab3a}.grade[data-grade="/"]{background:#e9ddff;border-color:#9574cc}.grade[data-grade="o"]{background:#ffe0c6;border-color:#d6863f}.grade[data-grade="'"]{background:#ddf5ed;border-color:#58aa91}.forecast-insight{background:linear-gradient(135deg,#123f64,#102e4a);color:#f2f9ff;border:1px solid #23618a!important;border-radius:12px;padding:16px!important}.forecast-insight h3{font-size:19px;color:white}.forecast-insight p,.forecast-insight small,.forecast-insight .hint{color:#c2dcef}.forecast-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0}.forecast-top>div{background:#082238;border:1px solid #2b5877;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:5px}.forecast-top b{font-size:30px;color:#85d9ff}.forecast-top span{font-weight:700}.forecast-top small{font-size:10px}.forecast-top .forecast-best{background:#0c567a;border-color:#20aadd}.forecast-serve .forecast-top b{color:#ffc877}.forecast-serve .forecast-top .forecast-best{background:#64421f;border-color:#d99739}.forecast-serve .bar{background:#eaa146}.forecast-insight .bar-track{background:#456073}.forecast-insight .bar-row{color:#f3fbff}.insight-card{background:linear-gradient(145deg,#153c5e,#102b43);color:#e8f5ff;padding:20px;border:1px solid #295c7f;border-radius:12px;margin-top:12px}.insight-card h3{font-size:20px;color:white}.insight-card h4{color:#e6f5ff;font-size:14px;margin:22px 0 12px}.insight-card p,.insight-card small,.insight-card .hint{color:#c0d9ec}.insight-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.insight-heading>span{background:#305773;padding:5px 10px;border-radius:20px;font-size:11px}.insight-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.insight-metrics>div{background:#0b263b;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:6px}.insight-metrics span{font-size:11px;color:#b8d7e9}.insight-metrics b{font-size:27px;color:#80d7ff}.insight-metrics .danger b{color:#ff858f}.quality-track{height:23px;border-radius:12px;overflow:hidden;background:#43647b;display:flex;gap:2px}.quality-segment{display:block;min-width:0}.quality-0{background:#28a9ef}.quality-1{background:#5dd7df}.quality-2{background:#f3ce70}.quality-3{background:#eea56e}.quality-4{background:#ed6d7b}.quality-legend{display:flex;gap:13px;flex-wrap:wrap;margin:12px 0}.quality-legend>span{font-size:10px;display:flex;align-items:center;gap:4px}.quality-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.direction-insight{display:grid;grid-template-columns:85px 1fr 55px;align-items:center;gap:12px;margin:13px 0}.direction-insight>small{grid-column:2/4}.direction-insight .bar-track{height:14px;background:#42617a;border-radius:8px}.direction-insight .bar{height:14px;background:#38b4fa;border-radius:8px}.direction-insight .parallel-bar{background:#77d6d9}.analysis-tabs{display:flex;gap:7px;margin:10px 0;flex-wrap:wrap}.analysis-tabs .btn{flex:1;min-height:38px;padding:8px}.analysis-player-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.insight-card th{color:#abd2eb;background:#0e2d45}.insight-card td{color:#e7f4ff;border-color:#355772}.insight-card .positive-cell{color:#7cdfff;font-weight:750}.insight-card .error-cell{color:#ff8b94}.rotation-analysis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rotation-insight{background:#09253b;border:1px solid #2a6287;border-radius:9px;padding:13px;display:flex;flex-direction:column;gap:5px}.rotation-insight h4{margin:0;font-size:14px;color:#a0daff}.rotation-insight>b{font-size:30px;color:#79d5ff}.rotation-insight>span{font-size:11px}.rotation-insight>strong{margin-top:10px;color:#c0eefb}.rotation-popup h2{padding-right:55px}.rotation-preview{border-radius:12px;background:linear-gradient(140deg,#0b6eae,#124972);padding:16px;margin:12px 0}.preview-net{color:#cdeeff;text-align:center;border-bottom:3px double #95d2f3;padding-bottom:12px;letter-spacing:2px;font-size:11px}.preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.preview-grid>div{background:#e0f4ff;border-radius:9px;display:flex;flex-direction:column;align-items:center;padding:16px;gap:5px;color:#124164}.preview-grid b{font-size:29px}.preview-grid span{font-size:11px}.preview-grid .preview-server{background:#ffe39c;color:#694500;box-shadow:0 0 0 2px #ffc543}.rotation-preview-actions{display:flex;gap:10px}.rotation-preview-actions .btn{flex:1}@media(max-width:700px){.insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.forecast-top b{font-size:23px}.forecast-top>div{padding:8px}.analysis-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.situation-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:5px 0 10px}.situation-buttons button{border:1px solid #a9c9df;background:#eef7fd;border-radius:6px;padding:9px 4px;min-height:40px;font-size:10px}.situation-buttons .selected{background:#087fbf;color:white;border-color:#056da6;box-shadow:0 1px 4px #116ba626}.expanded-input .situation-label{display:none}.expanded-input .situation-buttons{margin:5px 0}.expanded-input .situation-buttons button{min-height:32px;padding:5px 3px;font-size:9px}.expanded-input .observation-panel .situation-label,.expanded-input .observation-panel .situation-buttons{display:none}.tactics-popup>.section-heading{position:sticky;top:0;background:#fff;z-index:2;padding-top:5px;padding-bottom:7px}

.tactics-popup .tactics-tabs{position:sticky;top:60px;z-index:2;background:#fff;padding:5px 0;margin:0 0 8px}
/* Large touch targets, compact only when available height requires it. */
.action-panel .grade{min-height:96px}.action-panel .zone-picker button{min-height:64px}.action-panel .situation-buttons button,.action-panel .direction button{min-height:60px}.action-panel .skill-tabs button{min-height:50px}
@media(min-height:900px){.expanded-input .grade{min-height:88px}.expanded-input .zone-picker button{min-height:58px}.expanded-input .situation-buttons button,.expanded-input .direction button{min-height:52px}.expanded-input .skill-tabs button{min-height:44px}}
@media(min-height:760px) and (max-height:899px){.expanded-input .grade{min-height:64px}.expanded-input .zone-picker button{min-height:42px}.expanded-input .situation-buttons button,.expanded-input .direction button{min-height:40px}.expanded-input .skill-tabs button{min-height:40px}}
@media(max-height:759px){.action-panel .grade{min-height:48px}.action-panel .zone-picker button{min-height:36px}.action-panel .situation-buttons button,.action-panel .direction button{min-height:36px}.action-panel .skill-tabs button{min-height:36px}}
.install-app{position:fixed;bottom:12px;left:12px;z-index:9;background:#125b91;color:white;border-color:#125b91;box-shadow:0 2px 10px #12395430}.install-app[hidden],body.focus-mode .install-app{display:none}.install-help p{font-size:15px;line-height:1.6}
/* High contrast touch score cards. */
.action-panel .grade-grid .grade{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;border-radius:12px;border-width:1px;box-shadow:0 3px 0 #10232d25;color:#fff;background:#193f53;border-color:#347792;text-align:center}
.action-panel .grade-grid .grade b{font-size:44px;line-height:1;font-weight:800;color:#8edaff}.action-panel .grade-grid .grade span{font-size:17px;line-height:1.2;font-weight:650;color:#fff}
.action-panel .grade-grid .grade[data-grade="#"]{background:#172f26;border-color:#285c43}.action-panel .grade-grid .grade[data-grade="#"] b{color:#4ee18d}
.action-panel .grade-grid .grade[data-grade="="]{background:#3c2427;border-color:#784149}.action-panel .grade-grid .grade[data-grade="="] b{color:#ff737a}
.action-panel .grade-grid .grade[data-grade="+"]{background:#153e51;border-color:#2b7089}.action-panel .grade-grid .grade[data-grade="+"] b{color:#66d7ff}
.action-panel .grade-grid .grade[data-grade="-"]{background:#493c23;border-color:#897045}.action-panel .grade-grid .grade[data-grade="-"] b{color:#ffda78}
.action-panel .grade-grid .grade[data-grade="/"]{background:#352b4c;border-color:#70608d}.action-panel .grade-grid .grade[data-grade="/"] b{color:#c4a0ff}
.action-panel .grade-grid .grade[data-grade="o"]{background:#493126;border-color:#996a49}.action-panel .grade-grid .grade[data-grade="o"] b{color:#ffb482}
.action-panel .grade-grid .grade[data-grade="'"]{background:#1c403b;border-color:#438479}.action-panel .grade-grid .grade[data-grade="'"] b{color:#89ead6}
.action-panel .grade-grid .grade:disabled{opacity:.68}.action-panel .grade-grid .grade:not(:disabled):active{transform:translateY(2px);box-shadow:none;filter:brightness(1.25)}
.quick-points .point-home{background:#172f26;color:#f4fff8;border-color:#285c43}.quick-points .point-away{background:#3c2427;color:#fff6f6;border-color:#784149}
.action-panel .zone-picker button{font-size:21px;font-weight:650}.action-panel .situation-buttons button{font-size:13px;font-weight:600}.action-panel .direction button{font-size:16px;font-weight:600}
@media(max-height:759px){.expanded-input .action-panel .grade-grid .grade{gap:3px;padding:6px;min-height:62px}.expanded-input .action-panel .grade-grid .grade b{font-size:29px}.expanded-input .action-panel .grade-grid .grade span{font-size:13px}.expanded-input .action-panel .zone-picker button{font-size:17px}.expanded-input .action-panel .situation-buttons button{font-size:11px}}
.situation-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.situation-stat{background:#0a263c;border:1px solid #306385;border-radius:10px;padding:16px}.situation-stat h4{margin:0 0 12px}.situation-stat>strong{display:block;font-size:36px;color:#70d6ff}.situation-stat>strong.negative{color:#ff858e}.situation-stat p{margin:8px 0}.eff-axis{position:relative;height:16px;background:#34556c;border-radius:8px;overflow:hidden;margin-top:12px}.eff-axis:after{content:'';position:absolute;left:50%;height:100%;width:1px;background:#c7e4f6}.eff-fill{position:absolute;height:100%;background:#32b8f5}.eff-fill.negative{background:#f07582}.eff-scale{display:flex;justify-content:space-between;font-size:10px;color:#b9d7e9;margin-top:4px}@media(max-width:550px){.situation-comparison{grid-template-columns:1fr}}
.action-panel .zone-picker.oriented-zones.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.action-panel .zone-picker.oriented-zones.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.oriented-zones{padding:5px; border:1px solid #b5d0e2;border-radius:7px}.oriented-zones[data-target-side="right"]{border-left:4px double #27749c}.oriented-zones[data-target-side="left"]{border-right:4px double #27749c}.oriented-zones[data-target-side="top"]{border-top:4px double #27749c}
.insight-card .analysis-player-grid .btn{color:#123954;background:#fff;border-color:#a9c9df;font-size:16px;font-weight:700}.insight-card .analysis-player-grid .btn:hover{background:#dff2ff;border-color:#4288b3}
.front-switch{font-weight:700;color:#075b93!important;padding:6px!important;min-height:34px}.front-switch.selected{background:#fff0bd;border:1px solid #cf9d38;border-radius:6px;color:#674600!important}.pitch-bottom>div{flex-wrap:wrap}.position-mark,.zone-tag{font-weight:650}
.action-panel .grade-grid .grade[data-grade="*"]{background:#1c403b;border-color:#438479}.action-panel .grade-grid .grade[data-grade="*"] b{color:#89ead6}

.insight-card #analysis-correct-rotation{color:#123954;background:#fff;font-weight:700}
.match-actions .btn{margin:4px 6px 4px 0;white-space:nowrap}.data-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:18px 0}.data-actions .btn{margin:0;min-height:48px;display:inline-flex;align-items:center;justify-content:center}.data-actions input[hidden]{display:none!important}.data-actions .file-label{cursor:pointer}
.prep-courts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.prep-team{min-width:0}.prep-team h3{margin:0 0 12px;font-size:18px}.prep-controls{display:flex;gap:8px;margin-bottom:12px}.prep-controls .btn{flex:1;padding:10px 5px}.prep-pitch{position:relative;background:#c7eafa;border:1px solid #70a5c5;padding:10px;border-radius:9px}.prep-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(95px,1fr));gap:8px}.prep-slot{display:flex;flex-direction:column;justify-content:center;background:#fff;border:1px solid #91bdd9;border-radius:8px;padding:8px;gap:5px;margin:0;min-width:0}.prep-slot>span{font-size:12px;font-weight:750;color:#1d5276}.prep-slot select{width:100%;min-width:0;padding:7px 2px;font-size:17px;font-weight:700;color:#123954;background:#eff8ff;min-height:44px}.prep-slot small{font-size:11px;color:#285676;overflow-wrap:anywhere;line-height:1.3}.prep-c1{background:#fff1bc;border-color:#d1a54c}.prep-net{position:absolute;top:0;bottom:0;width:8px;background:#27769d;writing-mode:vertical-rl;display:flex;align-items:center;justify-content:center;color:#fff;font-size:9px;letter-spacing:2px}.prep-left{padding-right:16px}.prep-left .prep-net{right:0}.prep-right{padding-left:16px}.prep-right .prep-net{left:0}@media(max-width:700px){.prep-courts{grid-template-columns:1fr}.prep-slots{grid-template-rows:repeat(3,minmax(86px,1fr))}}
/* Fast match-day entry: explicit substitution mode and post-grade target selection. */
.replacement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.roster-choice{min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;white-space:normal}.roster-choice b{font-size:30px;color:#125b91}.roster-choice span{font-size:14px}.roster-choice.libero-choice{background:#ede3ff;border-color:#9973ce}.substitution-toggle,.substitution-button{background:#145b8f;color:white;border-color:#145b8f;font-weight:750}.substitution-toggle.selected{background:#ffd886;color:#543e10;border-color:#bc8e2e}.front-switch{border:1px solid #4c98c6!important;background:#e2f3ff;min-height:42px!important;padding:8px 12px!important}.front-switch.selected{background:#ffdb87}.target-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.target-controls .btn{padding:8px 5px;min-height:44px;font-size:12px;white-space:normal}.target-controls .target-toggle{margin:0}.pending-target{border:2px solid #218bc2;background:#eef8ff;padding:12px;border-radius:10px;margin:10px 0}.pending-target h4{margin:0;font-size:17px}.pending-target p{font-size:12px;line-height:1.4}.pending-target>.btn{width:100%;margin-top:10px}.set-lifecycle{padding:15px;background:#d9f0ff;border:2px solid #318bbd;border-radius:10px;margin:12px 0}.set-lifecycle strong{font-size:18px}.set-lifecycle p{font-size:13px;margin:6px 0 10px}.set-lifecycle .btn{margin:4px 8px 4px 0}.expanded-input .set-lifecycle{flex:0 0 auto;margin:0;padding:8px}.expanded-input .set-lifecycle p{margin:3px 0;font-size:11px}.expanded-input .set-lifecycle .btn{min-height:36px;padding:6px 10px}.expanded-input .pending-target .zone-picker button{min-height:46px}.expanded-input .target-controls .btn{min-height:36px;font-size:10px;padding:5px}.action-panel [hidden]{display:none!important}.forecast-condition{border-top:1px solid #4980a4;padding-top:8px;margin-top:12px}.forecast-condition h4{color:#d9f3ff}.substitution-toggle:focus-visible,.roster-choice:focus-visible{outline:3px solid #ffb62f}

/* Keep labels readable when touch/hover lightens dark utility buttons. */
.btn:is(.substitution-toggle,.substitution-button,.install-app):is(:hover,:active,:focus-visible){background:#e2f3ff;color:#123954;border-color:#397da7}
.btn.substitution-toggle.selected:is(:hover,:active,:focus-visible){background:#ffd886;color:#543e10;border-color:#bc8e2e}

/* Align court controls and keep undo beside its event description. */
.pitch-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center}.pitch-bottom>div{width:auto;display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:8px;min-width:0}.pitch-bottom>div>span{flex:1;min-width:0}.pitch-bottom .btn{flex:0 0 auto;min-height:44px;padding:8px 12px;white-space:nowrap}.pitch-bottom .front-switch{margin:0}.quick-points{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action-strip{display:flex;align-items:center;gap:12px;border:1px solid #a9cce2;background:#eaf6ff;border-radius:8px;padding:10px;margin-top:8px;flex:0 0 auto}.action-strip-history{flex:1;min-width:0}.action-strip-label{font-size:11px;color:#3c6681;font-weight:700}.action-strip-history>div{display:flex;gap:12px;overflow-x:auto;white-space:nowrap;font-size:12px;margin:4px 0}.action-strip-history>div>span+span{border-left:1px solid #a9cce2;padding-left:12px}.action-strip-history>strong{display:block;font-size:13px;color:#123954}.action-strip>.undo{flex:0 0 auto;background:#173f62;color:white;border-color:#173f62}.action-strip>.undo:hover{background:#e2f3ff;color:#123954}.expanded-input .action-strip{margin-top:0;padding:6px 8px;gap:8px}.expanded-input .action-strip .btn{min-height:40px}.expanded-input .action-strip-history>div{font-size:11px;margin:2px 0}.expanded-input .action-strip-history>strong{font-size:11px}@media(max-width:700px){.pitch-bottom{gap:6px;padding:8px}.pitch-bottom>div{gap:4px;font-size:10px}.pitch-bottom .btn{font-size:11px;min-height:40px;padding:6px}.pitch-bottom .front-switch{font-size:10px;padding:4px!important}.action-strip{gap:6px}.action-strip>.undo{padding:8px;font-size:11px}}

.forecast-insight .forecast-top{margin:10px 0}.forecast-insight .forecast-top>div{padding:10px;flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:8px}.forecast-insight .forecast-top span,.forecast-insight .forecast-top b{font-size:28px}.forecast-insight .forecast-top small{font-size:12px}.forecast-origin-summary{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 18px}.forecast-origin-summary>strong{font-size:28px;color:#f4fbff;background:#0b304c;border:1px solid #39799f;border-radius:8px;padding:10px 14px}.forecast-origin-summary b{color:#85d9ff;margin-left:8px}.forecast-origin-summary small{display:block;font-size:12px;font-weight:400;margin-top:4px}.forecast-player-summary>div{margin:12px 0}.forecast-player-summary strong{display:flex;align-items:baseline;gap:14px;font-size:26px;flex-wrap:wrap}.forecast-player-summary strong span{font-size:24px;color:#cbeaff}.forecast-player-summary strong b{color:#85d9ff}.forecast-player-summary .bar-track{height:5px;width:min(100%,420px);margin:7px 0 0}.forecast-insight .bar-row{display:grid;grid-template-columns:auto minmax(70px,1fr) auto;max-width:620px;font-size:20px;gap:12px}.forecast-insight .bar-row .bar-track{height:5px}.forecast-insight h4{font-size:18px}.forecast-insight .hint{font-size:12px}@media(max-width:600px){.forecast-player-summary strong,.forecast-origin-summary>strong{font-size:23px}.forecast-player-summary strong span{font-size:21px}.forecast-insight .bar-row{font-size:18px}}

/* Keep grading first and use the space beside the compact toolbar. */
.expanded-input .recorder-toolbar{width:calc(69% - 12px);gap:5px}.expanded-input .recorder-toolbar .btn{font-size:11px;padding:6px 8px}.expanded-input .live-layout>.action-panel{margin-top:-44px}.expanded-input .action-panel .pending-target{margin:6px 0 0;padding:8px}.expanded-input .pending-target .zone-picker{gap:4px}.expanded-input .pending-target .zone-picker button{min-height:36px}.expanded-input .pending-target h4{font-size:13px}.expanded-input .action-panel .grade-grid{margin-bottom:6px}@media(max-width:800px){.expanded-input .recorder-toolbar{width:calc(62% - 12px)}}@media(max-width:600px){.expanded-input .recorder-toolbar{width:100%}.expanded-input .live-layout>.action-panel{margin-top:0}}

/* Compact one-row toolbar and remembered, clearly coloured modes. */
.expanded-input .recorder-toolbar{overflow:visible;scrollbar-width:none;min-height:40px;gap:4px}.expanded-input .recorder-toolbar .btn{flex:1 1 0;min-width:0;height:40px;min-height:40px;white-space:normal;line-height:1.15;font-size:clamp(9px,.82vw,12px);padding:4px 5px}.expanded-input .recorder-toolbar [data-do="auto-prediction"]{flex:.6 1 0}.btn.state-toggle.mode-on,.btn.state-toggle.mode-on:hover,.btn.state-toggle.mode-on:active{background:#19573c;border-color:#28794e;color:#f4fff8}.btn.state-toggle.mode-off,.btn.state-toggle.mode-off:hover,.btn.state-toggle.mode-off:active{background:#7b303a;border-color:#a74955;color:#fff7f7}.target-controls .state-toggle{font-weight:750}.expanded-input .live-layout>.action-panel{margin-top:-46px}.expanded-input .action-panel .target-controls{margin:6px 0}.expanded-input .action-panel .target-controls .btn{min-height:38px;font-size:11px}@media(max-width:600px){.expanded-input .live-layout>.action-panel{margin-top:0}}

/* One enclosing border for targets, with a clear separator below grades. */
.pending-target{border-width:1px}.pending-target .oriented-zones[data-target-side]{border:0;padding:0;border-radius:0}.action-panel .target-controls{border-top:1px solid #cbdde9;padding-top:12px;margin-top:14px}.expanded-input .action-panel .target-controls{border-top:1px solid #cbdde9;padding-top:10px;margin-top:12px}

/* Contextual forecast: separate who / origin / target on a common denominator. */
#modal:has(.prediction-popup){width:min(1100px,96vw);max-width:96vw;max-height:calc(100dvh - 24px);padding:16px;overflow-y:auto}#modal:has(.prediction-popup)>#close-modal{display:none}.prediction-popup>h2{font-size:23px;margin:0 0 10px}.prediction-popup .compact-forecast{margin:0;padding:14px!important}.forecast-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.forecast-heading>span{font-size:13px;color:#cbe6f5}.forecast-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:12px}.forecast-facts-grid.serve-facts{grid-template-columns:1fr}.forecast-facts-grid>section{min-width:0;border:1px solid #38607d;border-radius:8px;padding:10px}.compact-forecast h4{font-size:15px;margin:0 0 8px;color:#c9e9fc}.forecast-fact{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:baseline;gap:8px;padding:5px 0;font-size:25px;font-weight:750}.forecast-fact b{color:#85d9ff}.forecast-fact small{font-size:12px;font-weight:400}.forecast-fact.unknown-fact{font-size:16px;color:#c1d4e1;font-weight:500}.forecast-basis{font-size:12px!important;margin:10px 0!important}.forecast-conditions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.forecast-conditions>section{border-top:1px solid #4b7894;padding-top:8px}.forecast-conditions>section>div{display:flex;gap:12px;flex-wrap:wrap;font-size:21px}.forecast-conditions b{color:#85d9ff}.forecast-conditions small{font-size:12px}.compact-forecast .hint{font-size:11px;line-height:1.3;margin:10px 0 0}.prediction-popup>#prediction-continue{position:sticky;bottom:0;width:100%;margin-top:12px;min-height:44px}.prediction-popup .forecast-fact+.forecast-fact{border-top:1px solid #31536d}@media(max-width:650px){.forecast-facts-grid{gap:6px}.forecast-facts-grid>section{padding:6px}.forecast-fact{font-size:20px;gap:3px;grid-template-columns:1fr auto}.forecast-fact small{grid-column:1/-1}.forecast-fact.unknown-fact{font-size:13px}.forecast-heading{flex-wrap:wrap}.forecast-conditions{gap:6px}}

.linked-attack-head{display:grid;grid-template-columns:210px 1fr;gap:16px;color:#c9e9fc;font-size:13px;font-weight:700;margin:14px 0 6px}.linked-attack-group{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;padding:10px 0;border-top:1px solid #3b617e}.linked-origin{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.linked-origin strong{font-size:25px}.linked-origin>b{font-size:25px;color:#85d9ff}.linked-origin small{width:100%;font-size:12px}.linked-player-row{display:flex;align-items:baseline;gap:10px;padding:4px 0}.linked-player-row>strong{font-size:25px;min-width:42px}.linked-arrow{color:#82ccec}.linked-targets{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 18px}.linked-targets>span{font-size:24px;font-weight:700}.linked-targets b{color:#85d9ff}.linked-targets small{font-size:11px;font-weight:400;margin-left:6px}.linked-origin:has(strong:first-child:last-child){font-size:15px}@media(max-width:700px){.linked-attack-head,.linked-attack-group{grid-template-columns:145px minmax(0,1fr);gap:8px}.linked-origin strong,.linked-origin>b,.linked-player-row>strong,.linked-targets>span{font-size:20px}.linked-player-row{gap:6px}.linked-targets{gap:8px}.linked-attack-head{font-size:11px}}

.prediction-popup .linked-attack-group{padding:7px 0}.prediction-popup .linked-origin{display:grid;grid-template-columns:1fr auto;align-content:start;gap:2px 8px}.prediction-popup .linked-origin strong,.prediction-popup .linked-origin>b{font-size:22px}.prediction-popup .linked-origin small{grid-column:1/-1;width:auto;font-size:11px}.prediction-popup .unknown-origin strong{font-size:14px;align-self:center}.prediction-popup .linked-player-row{padding:0}.prediction-popup .linked-player-row>strong,.prediction-popup .linked-targets>span{font-size:22px}.prediction-popup .linked-attack-head{margin-top:9px}.prediction-popup .forecast-basis{margin:7px 0!important}

.pending-target .zone-picker button.selected{background:#125b91;color:#fff;border:2px solid #073e66;box-shadow:inset 0 0 0 1px #bceaff;font-weight:800}.pending-target .zone-picker button.selected:hover{background:#0b4c7d;color:#fff}

/* Choose the outgoing player in the same positions as the live court. */
.substitution-court{position:relative;border:2px solid #468eb9;background:#c4eaff;padding:10px;max-width:720px;margin:14px auto}.substitution-court.away{background:#d7e4ff}.substitution-court-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(85px,14vh));gap:6px}.substitution-court-player{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid transparent;border-radius:7px;background:transparent;padding:15px 8px 8px}.substitution-court-player:hover,.substitution-court-player:focus-visible{background:#fff9;border-color:#3787b6}.substitution-court-player .jersey{background:linear-gradient(140deg,#0877b9,#164c85);color:#fff;width:52px;height:52px;font-size:28px}.substitution-court-player .jersey.libero{background:linear-gradient(140deg,#8954c5,#653a9b)}.substitution-court-player.is-server{background:#fff0b7;border:2px solid #d7a12b}.substitution-court-player .position-mark{top:8px;left:10px;font-size:12px}.substitution-court-player small{font-size:10px}.substitution-net{position:absolute;top:0;bottom:0;width:6px;background:repeating-linear-gradient(to bottom,#fff 0,#fff 4px,#587689 4px,#587689 6px);border:1px solid #587689;writing-mode:vertical-rl;display:flex;align-items:center;justify-content:center;font-size:9px;letter-spacing:2px;color:#123954;z-index:1}.sub-left .substitution-net{right:-4px}.sub-right .substitution-net{left:-4px}.sub-separate{padding-top:22px}.sub-separate .substitution-net{inset:0 0 auto;width:auto;height:9px;writing-mode:horizontal-tb}.sub-separate .substitution-court-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(85px,17vh))}.sub-libero-label{color:#653a9b;font-weight:750}

#modal:has(.substitution-court){width:min(880px,96vw);max-height:calc(100dvh - 20px);padding:14px 20px;overflow:auto}#modal:has(.substitution-court) h2{font-size:24px;margin:0 0 8px}#modal:has(.substitution-court) p{margin:4px 0 8px;font-size:13px}.substitution-court{margin:8px auto;padding:6px;max-width:650px}.substitution-court-grid{grid-template-rows:repeat(3,minmax(54px,calc((100dvh - 300px)/3)));gap:4px}.substitution-court-player{padding:12px 5px 5px;gap:2px}.substitution-court-player .jersey{width:clamp(32px,7vh,48px);height:clamp(32px,7vh,48px);font-size:clamp(21px,4vh,27px)}.substitution-court-player .position-mark{font-size:11px;top:5px;left:7px}.sub-separate .substitution-court-grid{grid-template-rows:repeat(2,minmax(54px,calc((100dvh - 300px)/2)))}#modal:has(.substitution-court)>#close-modal{margin:4px 0 0;padding:8px 12px;min-height:36px}

#modal:has(.replacement-grid){width:min(880px,96vw);max-height:calc(100dvh - 20px);padding:14px 20px}#modal:has(.replacement-grid) h2{font-size:22px;margin:0 0 6px}#modal:has(.replacement-grid) h3{font-size:15px;margin:8px 0 4px}#modal:has(.replacement-grid) p{font-size:12px;line-height:1.3;margin:4px 0 7px}.replacement-grid{margin:8px 0;gap:6px}.replacement-grid .roster-choice{min-height:clamp(45px,8vh,60px);padding:5px;gap:2px}.replacement-grid .roster-choice b{font-size:25px}.replacement-grid .roster-choice span{font-size:11px}.replacement-grid>.btn:not(.roster-choice){min-height:40px;padding:5px;font-size:12px}#modal:has(.replacement-grid)>#close-modal{margin:4px 0 0;padding:7px 12px;min-height:32px}

.btn.libero-swap{background:#6c4298;border-color:#553079;color:#fff;font-weight:750}.btn.libero-swap:hover{background:#57347d;color:#fff}.pitch-bottom .libero-swap{font-size:11px;padding:6px 8px}.pitch-bottom>div>span{font-size:10px}

.simple-directions{margin-top:12px;padding-top:12px;border-top:1px solid #d4e2ec;display:flex;gap:8px}.simple-directions button{flex:1;min-height:44px}

.origin-picker{width:100%;min-width:0}.origin-picker summary{list-style:none;cursor:pointer;width:100%;text-align:left}.origin-picker summary::-webkit-details-marker{display:none}.origin-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;margin-top:6px;border:1px solid #cbdce8;border-radius:8px;background:#f1f8fc}.origin-options .btn{min-height:44px;padding:7px}.origin-options .origin-clear{grid-column:1/-1}.attack-directions:has(.origin-picker){display:block}

aside nav .nav-item{font-size:16px}aside nav .nav-item>span:first-child{font-size:24px}

#team-form .team-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}#team-form .team-meta>.form-row{display:contents}#team-form .team-meta label{margin:0;min-width:0}#team-form .import-tools{display:flex;gap:10px;margin:12px 0}#team-form .team-members{table-layout:fixed;font-size:14px}#team-form .team-members td,#team-form .team-members th{padding:6px 8px}#team-form .team-members th{font-size:12px;padding-top:10px}#team-form .team-members td:first-child,#team-form .team-members th:first-child{width:76px}#team-form .team-members td:nth-child(3),#team-form .team-members th:nth-child(3){width:92px}#team-form .team-members td:last-child,#team-form .team-members th:last-child{width:92px}#team-form .team-members input,#team-form .team-members select{height:44px;min-height:44px;padding:7px 9px;margin:0;width:100%}#team-form .member-row{height:58px}#team-form .remove-member{min-height:44px;padding:6px;margin:0}#team-form>h3{margin:14px 0 6px}#team-form .hint{font-size:12px;line-height:1.4;margin:10px 0}@media(max-width:600px){#team-form .team-meta{grid-template-columns:1fr}#team-form .team-members td,#team-form .team-members th{padding:5px 3px}#team-form .team-members td:first-child,#team-form .team-members th:first-child{width:56px}#team-form .team-members td:nth-child(3),#team-form .team-members th:nth-child(3){width:68px}#team-form .team-members td:last-child,#team-form .team-members th:last-child{width:72px}}

.portal-nav-icon{width:25px;height:25px;display:block;flex:none}

aside .backup-export{width:100%;margin-top:12px;white-space:normal}.expanded-input .live-layout>div:first-child{overflow-y:auto}.expanded-input .single-court-panel{flex-shrink:0;min-height:295px}.expanded-input .horizontal-pitch{min-height:210px}.expanded-input .pitch-half{min-height:0}.expanded-input .pitch-bottom{min-height:54px}.expanded-input .pitch-bottom>div{flex-wrap:wrap}

.forecast-pair{container-type:inline-size}.forecast-pair>.forecast-insight{min-width:0;overflow-wrap:anywhere}.forecast-pair .linked-attack-head{display:flex;flex-direction:column;gap:6px}.forecast-pair .linked-attack-group{grid-template-columns:1fr}.forecast-pair .linked-player-row{grid-template-columns:auto 16px minmax(0,1fr)}.forecast-pair .forecast-heading{flex-wrap:wrap}.forecast-pair .linked-targets{min-width:0;flex-wrap:wrap}

label.focus-setting{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.5}#focus-default{width:22px;height:22px;min-height:22px;max-height:22px;flex:0 0 22px;padding:0;margin:0}

@media(min-width:1001px){body:has(.install-app:not([hidden])) aside{padding-bottom:90px}}

.pitch-player .jersey{flex:0 0 auto;aspect-ratio:1/1;min-height:40px}.pitch-player{padding:18px 4px 7px;min-height:112px}.rotation-grid{grid-template-rows:repeat(3,minmax(112px,1fr))}.expanded-input .rotation-grid{grid-template-rows:repeat(3,minmax(112px,1fr))}.expanded-input .horizontal-pitch{min-height:342px}.expanded-input .single-court-panel{min-height:425px}.pitch-player .player-name{flex:0 0 auto;max-width:100%;line-height:1.2}.pitch-player .server-mark{flex:0 0 auto}

.timeouts-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0;flex:0 0 auto}.timeouts-row>div{display:flex;align-items:center;gap:8px;min-width:0}.timeouts-row .btn{min-height:38px;padding:6px 10px;font-size:12px}.timeouts-row small{font-size:11px}.substitution-history{padding-top:8px;border-top:1px solid #ccdce6;margin-top:10px}.substitution-history p{margin:5px 0;font-size:12px}.substitution-history>div{display:flex;gap:12px;flex-wrap:wrap}.substitution-history small{font-size:11px}.expanded-input .timeouts-row{margin:0}.expanded-input .timeouts-row .btn{min-height:32px;padding:4px 7px}

.match-report .result-cell{background:#e4edf5!important;font-weight:700!important;color:#111!important}.match-report .action-end{border-right:2px solid #566777!important}.report-team .lineup-cell{font-size:9px;padding:3px!important}.report-bottom{display:grid;grid-template-columns:1fr 2fr 1fr;gap:10px;break-inside:avoid}.report-bottom h3{font-size:11px;margin:6px 0}.report-bottom p{font-size:10px}.report-bottom table{width:100%;border-collapse:collapse}.report-team th:nth-child(2),.report-team td:nth-child(2){width:130px}.match-report{background:white;color:#111;font:12px Arial,sans-serif;padding:18px;min-width:780px}.match-report h1{text-align:center;font-size:22px;margin:0 0 16px}.match-report h2{font-size:16px;margin:0}.report-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:12px}.report-meta p{margin:4px 0}.report-score{border:1px solid #555;padding:8px;min-width:240px}.report-score div{display:flex;justify-content:space-between;gap:25px}.report-sets,.report-team{width:100%;border-collapse:collapse;margin:12px 0 18px;table-layout:fixed}.match-report th,.match-report td{border:1px solid #aaa;padding:6px 4px;text-align:center;font-size:11px;line-height:1.25}.match-report th{background:#e5e5e5;color:#111;white-space:normal;font-weight:700}.report-team th:first-child,.report-team td:first-child{width:30px}.report-team th:nth-child(2),.report-team td:nth-child(2){width:145px;text-align:left}.report-team tfoot{background:#eee;font-weight:700}.report-team-title{background:#ddd;border:1px solid #777;padding:7px;margin-top:14px}.report-note{font-size:10px;line-height:1.5;margin:7px 0}.report-screen-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.report-scroll{overflow:auto}.report-screen-tools label{margin:0}.report-screen-tools select{min-width:170px}.report-screen-tools button{min-height:44px}.report-popup{width:100%}@media print{@page{size:A4 portrait;margin:9mm}html,body{background:white!important;height:auto!important;overflow:visible!important}body:has(#modal)>*:not(#modal){display:none!important}#modal{position:static!important;display:block!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;overflow:visible!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important}#modal::backdrop{display:none}#modal-body{padding:0!important}.report-screen-tools,#close-modal,#toast,.install-app{display:none!important}.report-scroll{overflow:visible!important}.match-report{min-width:0;padding:0;font-size:9px}.match-report th,.match-report td{font-size:8px;padding:3px 2px}.report-team th:nth-child(2),.report-team td:nth-child(2){width:110px}.report-team,.report-meta{break-inside:avoid}.match-report h1{font-size:17px}}

#modal:has(.report-popup){width:min(1200px,96vw);max-width:96vw}.report-screen-tools{align-items:flex-end}.report-screen-tools label{display:grid;gap:6px;flex:0 0 auto;margin:0;font-size:14px}.report-screen-tools select,.report-screen-tools .btn{height:52px;min-height:52px;margin:0}.report-screen-tools select{min-width:210px}.report-popup .match-report{min-width:1000px}@media print{#modal:has(.report-popup){width:100%!important;max-width:none!important}.report-popup .match-report{min-width:0!important}}

.report-popup .match-report{min-width:0;width:100%;padding:12px}.match-report .report-team th{font-size:9.5px;line-height:1.2;padding:5px 2px;overflow-wrap:anywhere}.match-report .report-team td{padding:5px 2px;font-size:10.5px}.match-report .report-team td.result-cell{font-size:10px;white-space:nowrap}.match-report .report-team th:nth-child(2),.match-report .report-team td:nth-child(2){width:125px}.match-report .report-team th:first-child,.match-report .report-team td:first-child{width:27px}@media(max-width:760px){.report-popup .match-report{min-width:900px}}@media print{.match-report .report-team th,.match-report .report-team td,.match-report .report-team td.result-cell{font-size:8px!important;padding:3px 2px!important}.report-popup .match-report{min-width:0!important;padding:0!important}}

.recording-access{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.recording-access>span{flex:1;min-width:220px}

.timeouts-row .timeout-button{display:flex;align-items:center;gap:10px;background:#21864b;color:#fff;border-color:#176a39;min-height:44px}.timeout-button b{font-size:30px;line-height:1;font-weight:850}.timeout-button span{font-size:12px}.timeouts-row .timeout-button:hover{background:#176a39;color:#fff}.timeouts-row .timeout-button:disabled{opacity:.45}

.pitch-bottom>div{flex-wrap:wrap;gap:6px}.pitch-bottom>div>span{flex:1 0 100%}.pitch-bottom .btn{padding:6px 8px}.pitch-bottom .timeout-button,.court-bottom .timeout-button{display:inline-flex;align-items:center;gap:6px;background:#21864b;color:white;border-color:#176a39}.timeout-button b{font-size:28px;line-height:1}.timeout-button span{font-size:13px}.timeout-button:disabled{opacity:.45}.court-bottom{flex-wrap:wrap}@media(max-width:700px){.pitch-bottom>div{gap:3px}.pitch-bottom .btn{padding:5px;font-size:10px}.pitch-bottom .front-switch{padding:5px!important}.pitch-bottom .timeout-button{gap:3px}.timeout-button b{font-size:24px}.timeout-button span{font-size:11px}}

.pitch-bottom>div,.expanded-input .pitch-bottom>div{flex-wrap:nowrap}.pitch-bottom>div>span{flex:1 1 auto;min-width:0;line-height:1.35}.pitch-bottom .libero-swap{white-space:normal;line-height:1.1;min-width:62px}.expanded-input .single-court-panel{min-height:0;flex:1 1 0}.expanded-input .horizontal-pitch{min-height:270px}.expanded-input .rotation-grid{grid-template-rows:repeat(3,minmax(90px,1fr))}.expanded-input .pitch-player{min-height:90px}.expanded-input .pitch-bottom{min-height:54px}.expanded-input .live-layout>div:first-child{overflow-y:auto}.pitch-bottom .btn{padding:6px 7px}.pitch-bottom .front-switch{padding:6px!important}@media(max-width:700px){.pitch-bottom>div>span{font-size:9px}.pitch-bottom .libero-swap{min-width:48px}.pitch-bottom .btn{padding:5px 4px}}

@media(min-width:900px){main:not(.expanded-input) .recorder-toolbar{display:grid;grid-template-columns:1.12fr .72fr 1fr .82fr 1.15fr 1.35fr .7fr;gap:8px;align-items:stretch}main:not(.expanded-input) .recorder-toolbar .btn{min-width:0;white-space:normal;padding:8px 7px;font-size:12px;line-height:1.2;min-height:48px}}

.situation-detected{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;margin:8px 0;border:1px solid #b3d5e8;background:#edf7fc;border-radius:7px}.situation-detected>div{display:flex;flex-direction:column;gap:2px}.situation-detected small{font-size:9px;color:#52758b;letter-spacing:.5px}.situation-detected strong{font-size:14px}.situation-detected span{font-size:10px;color:#52758b}.situation-detected .btn{min-height:36px;padding:6px 10px;font-size:12px}.situation-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.expanded-input .situation-detected{margin:5px 0;padding:5px 8px}

.situation-choice{margin:6px 0}.situation-status{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#52758b;min-height:16px}.situation-choice .situation-buttons{margin:4px 0}.situation-choice .situation-buttons button{font-size:12px;min-height:40px;line-height:1.15}.situation-status .text-btn{font-size:11px;padding:0 4px;min-height:22px}.expanded-input .situation-choice .situation-buttons button{min-height:34px;font-size:11px}

/* Keep navigation inside its allotted space after the larger desktop labels. */
aside nav{min-width:0}.nav-item{min-width:0;max-width:100%;overflow-wrap:anywhere}.nav-item>span{flex:0 0 24px}
@media(min-width:521px) and (max-width:1000px){
 aside{position:sticky;inset:auto;top:0;width:100%;height:auto;padding:8px 12px;z-index:5}
 aside .brand,aside .workspace,aside .aside-bottom{display:none}
 aside nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;height:auto}
 aside .nav-item{width:100%;font-size:14px;gap:8px;min-height:48px;padding:8px;justify-content:center;line-height:1.2}
 aside .nav-item b{position:static;margin:0;font-size:10px}
 main{margin-left:0;min-width:0}
}
@media(max-width:520px){
 aside{position:fixed;inset:auto 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:4px 6px calc(4px + env(safe-area-inset-bottom));z-index:5}
 aside .brand,aside .workspace,aside .aside-bottom{display:none}
 aside nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;height:100%}
 aside .nav-item{position:relative;width:100%;min-width:0;max-width:100%;min-height:56px;flex-direction:column;justify-content:center;font-size:12px;padding:5px 2px;gap:3px;line-height:1.15;text-align:center}
 aside .nav-item>span{flex:0 0 24px;width:24px;height:24px}
 aside .nav-item b{position:absolute;top:0;right:0;margin:0;font-size:9px}
 main{margin-left:0;min-width:0;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 main .content{padding:20px 12px 24px;min-width:0}
 main header{flex-wrap:wrap;gap:8px}
 main .header-right{margin-left:auto;flex-wrap:wrap;gap:8px}
 main .page-title{flex-wrap:wrap}
 .install-app{bottom:calc(86px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 30px)}
}

body:has(.auth-screen) .install-app{display:none!important}

body.auth-mode .install-app{display:none!important}

.password-field{display:flex;align-items:stretch;gap:7px}.password-field input{flex:1;min-width:0;width:0}.password-field .password-toggle{flex:0 0 auto;font-size:12px;min-height:44px;padding:8px 10px;white-space:nowrap}

.auth-card .password-field{position:relative;display:block;width:100%;min-width:0}
.auth-card .password-field input{display:block;width:100%;min-width:0;padding-right:52px;margin:0}
.auth-card .password-field .password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:42px;min-width:42px;height:42px;min-height:42px;margin:0;padding:8px;flex:none;border:0;background:transparent;color:#27647e;box-shadow:none}
.password-toggle .eye-slash{display:block}.password-toggle[aria-pressed="true"] .eye-slash{display:none}
@media(max-width:600px){
 .prediction-grid.forecast-pair{grid-template-columns:minmax(0,1fr);gap:12px;container-type:normal}
 .forecast-pair>.forecast-insight{min-height:0;width:100%;overflow-wrap:normal;word-break:normal}
 .forecast-heading,.forecast-top,.linked-attack-head,.linked-player-row{min-width:0}
 .forecast-heading{flex-wrap:wrap}.forecast-heading h3{font-size:19px}
 .forecast-top{display:flex;flex-wrap:wrap;gap:8px}.forecast-top>div{min-width:0;flex:1 1 100px}
 .forecast-pair .linked-player-row{grid-template-columns:auto 16px minmax(0,1fr)}
 .prediction-grid,.board-grid{grid-template-columns:minmax(0,1fr)}
 .insight-card,.panel,.board-grid>*{min-width:0}
 .analytics-toolbar,.coach-toolbar{flex-wrap:wrap}
 aside .nav-item{font-size:10px;line-height:1.1;overflow:hidden}
 .install-app{bottom:90px!important;max-width:calc(100vw - 24px);font-size:11px;padding:8px 12px;min-height:38px}
 .auth-card{padding:24px 20px;max-width:100%;min-width:0}.auth-screen{padding:16px;min-width:0}
}
/* Compact landscape phone input: preserve the entire court and avoid the old nested grid. */
@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){
 .expanded-input{height:100vh;height:100dvh;gap:4px;padding:4px 6px!important;margin:0;min-width:0}
 .expanded-input .scoreboard{min-height:44px;padding:3px 8px;margin:0;grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr)}
 .expanded-input .score-team{gap:4px;min-width:0}.expanded-input .score-team h2{font-size:13px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .expanded-input .score-team small{font-size:9px}.expanded-input .score-team .team-dot,.expanded-input .small-label{display:none}
 .expanded-input .score strong{font-size:25px}.expanded-input .score{gap:10px;margin:0;line-height:1}.expanded-input .set-label,.expanded-input .set-score{font-size:8px}
 .expanded-input .recorder-toolbar{display:grid;width:100%;grid-template-columns:repeat(7,minmax(0,1fr));height:30px;min-height:30px;gap:3px;margin:0;overflow:visible}
 .expanded-input .recorder-toolbar .btn{height:30px;min-height:30px;padding:2px 3px;font-size:8px;line-height:1.1;white-space:normal}
 .expanded-input .live-layout{grid-template-columns:minmax(0,58fr) minmax(0,42fr);gap:5px;min-height:0;overflow:hidden}
 .expanded-input .live-layout>div:first-child{min-height:0;min-width:0;overflow:hidden;gap:3px}
 .expanded-input .single-court-panel{flex:1 1 0;min-height:0;overflow:hidden}
 .expanded-input .pitch-heading{padding:3px 5px;min-height:18px}.expanded-input .pitch-heading>b{font-size:10px}
 .expanded-input .horizontal-pitch{flex:1 1 0;min-height:0;margin:0 4px}
 .expanded-input .rotation-grid{height:100%;grid-template-rows:repeat(3,minmax(0,1fr));padding:1px}
 .expanded-input .pitch-player{min-height:0;padding:12px 2px 2px;margin:0;gap:1px}
 .expanded-input .pitch-player .jersey{width:26px;height:26px;min-height:26px;font-size:15px}
 .expanded-input .pitch-player .player-name{display:none}.expanded-input .position-mark{font-size:7px;top:2px;left:3px}
 .expanded-input .pitch-player .server-mark{font-size:6px;line-height:1}
 .expanded-input .pitch-bottom{padding:3px;min-height:34px;gap:3px}
 .expanded-input .pitch-bottom>div{gap:3px;flex-wrap:nowrap;justify-content:flex-end}
 .expanded-input .pitch-bottom>div>span{display:none}
 .expanded-input .pitch-bottom .btn{font-size:8px;padding:3px 4px;min-height:28px;height:28px;min-width:0;line-height:1.05}
 .expanded-input .pitch-bottom .front-switch{padding:3px!important}.expanded-input .timeout-button b{font-size:20px}.expanded-input .timeout-button span{font-size:9px}
 .expanded-input .quick-points .btn{height:29px;min-height:29px;font-size:10px;padding:4px}.expanded-input kbd{display:none}
 .expanded-input .action-strip{min-height:34px;padding:3px 5px;gap:4px;margin:0}
 .expanded-input .action-strip-label,.expanded-input .action-strip-history>div{display:none}.expanded-input .action-strip-history>strong{font-size:9px;line-height:1.2}
 .expanded-input .action-strip>.undo{height:28px;min-height:28px;padding:3px 7px;font-size:10px}
 .expanded-input .live-layout>.action-panel{display:block;min-width:0;min-height:0;margin:0;padding:6px;overflow-x:hidden;overflow-y:auto;align-self:stretch}
 .expanded-input .action-panel>.section-heading{margin:0 0 3px}.expanded-input .action-panel h3{font-size:12px}
 .expanded-input .action-panel .pill{font-size:8px;padding:3px;max-width:55%;white-space:normal}
 .expanded-input .skill-tabs{width:100%;min-width:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin:0 0 4px}
 .expanded-input .skill-tabs button{min-width:0;min-height:28px;padding:3px 0;font-size:9px;white-space:normal}
 .expanded-input .field-label{font-size:8px;margin:3px 0}
 .expanded-input .grade-grid{display:grid;width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0 0 4px}
 .expanded-input .grade{width:100%;min-width:0;height:42px;min-height:42px;padding:3px;gap:1px;display:flex;flex-direction:row;justify-content:center;align-items:center}
 .expanded-input .grade b{font-size:24px;flex:0 0 25px}.expanded-input .grade span{font-size:10px;line-height:1.1;overflow-wrap:normal;min-width:0}
 .expanded-input .situation-choice{margin:3px 0}.expanded-input .situation-choice .situation-buttons{gap:3px;margin:0}
 .expanded-input .situation-choice .situation-buttons button{font-size:9px;padding:3px;min-height:28px}.expanded-input .situation-status{font-size:8px;min-height:12px}
 .expanded-input .target-controls{gap:4px;margin:4px 0}.expanded-input .target-controls .btn{font-size:9px;min-height:29px;padding:3px}
 .expanded-input .simple-directions{margin:4px 0;gap:4px}.expanded-input .direction button{min-height:28px;font-size:11px;padding:4px}
 .expanded-input .pending-target .zone-picker button{min-height:28px;font-size:13px;padding:3px}
 .install-app{display:none!important}
}

@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){
 .expanded-input .action-panel .grade-grid .grade{height:42px;min-height:42px;padding:3px;gap:3px;flex-direction:row;align-items:center;justify-content:center}
 .expanded-input .action-panel .grade-grid .grade b{font-size:24px}.expanded-input .action-panel .grade-grid .grade span{font-size:10px}
 .expanded-input .action-panel .target-controls{margin:4px 0;gap:4px}.expanded-input .action-panel .target-controls .btn{height:29px;min-height:29px;padding:3px;font-size:9px;line-height:1.1}
}

@media(orientation:landscape) and (max-height:380px) and (max-width:1100px){.expanded-input .action-panel .grade-grid .grade{height:38px;min-height:38px}}
@media(orientation:landscape) and (max-height:340px) and (max-width:1100px){.expanded-input .action-panel .grade-grid .grade{height:32px;min-height:32px}.expanded-input .pitch-player .jersey{width:22px;height:22px;min-height:22px;font-size:13px}.expanded-input .skill-tabs button{min-height:25px}}

/* Focused court scoreboard: its center shares the court net axis. */
.expanded-input .pitch-heading.court-score-heading{display:block;flex:0 0 auto;padding:3px 8px 4px;min-height:0}
.court-match-header{position:relative;display:flex;justify-content:space-between;align-items:center;min-height:48px}
.court-team-name{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:27%;font-size:15px;line-height:1.2}.court-team-name b{overflow-wrap:anywhere}.court-team-right{text-align:right;align-items:flex-end}.court-team-name small{font-size:10px}
.court-score-center{position:absolute;left:50%;transform:translateX(-50%);width:100px}.court-current-score{display:grid;grid-template-columns:1fr 10px 1fr;align-items:center;gap:2px;text-align:center;font-size:30px;line-height:34px;color:#103e55}.court-current-score strong:first-child{text-align:right}.court-current-score strong:last-child{text-align:left}.court-current-score>span{font-size:25px;color:#54798f}
.court-set-total,.court-current-set{position:absolute;top:50%;transform:translateY(-50%);font-size:11px;font-weight:600;white-space:nowrap;color:#54798f}.court-set-total{right:calc(100% + 5px)}.court-current-set{left:calc(100% + 5px)}
.court-set-scores{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:3px;font-size:10px;line-height:19px}.court-set-scores>span{text-align:center;background:#edf3f7;border-radius:3px;white-space:nowrap;color:#52778b}.court-set-scores>.current{background:#cce9f6;color:#064f75;font-weight:700;outline:1px solid #52a8cf}.court-target-hint{display:block;text-align:center;font-size:9px}
@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){.expanded-input .pitch-heading.court-score-heading{padding:3px 4px 4px}.court-match-header{min-height:36px}.court-team-name{font-size:12px;max-width:28%}.court-team-name small{font-size:8px}.court-current-score{font-size:26px;line-height:29px}.court-set-total,.court-current-set{font-size:10px}.court-set-scores{font-size:9px;line-height:17px}}
@media(max-width:600px){.court-score-center{width:80px}.court-current-score{font-size:24px}.court-set-total,.court-current-set{font-size:9px}.court-team-name{font-size:11px;max-width:24%}.court-team-name small{font-size:8px}}

/* Portrait overview must not force the browser to scale down the whole document. */
@media(max-width:600px){
 .content:not(.expanded-input):not(.expanded-analytics){width:100%;min-width:0}
 .content:not(.expanded-input) .live-layout,.content:not(.expanded-input) .lower-grid{grid-template-columns:minmax(0,1fr);width:100%;min-width:0}
 .content:not(.expanded-input) .live-layout>*,.content:not(.expanded-input) .lower-grid>*,.content:not(.expanded-input) .panel,.content:not(.expanded-input) .action-panel,.content:not(.expanded-input) .single-court-panel{min-width:0;max-width:100%}
 .content:not(.expanded-input) .recorder-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.content:not(.expanded-input) .recorder-toolbar .btn{min-width:0;white-space:normal;padding:8px;font-size:11px}
 .content:not(.expanded-input) .pitch-heading{padding:9px;gap:6px}.content:not(.expanded-input) .pitch-heading>span{display:none}.content:not(.expanded-input) .pitch-heading>b{min-width:0;overflow-wrap:anywhere}
 .content:not(.expanded-input) .horizontal-pitch{margin:0 6px;grid-template-columns:repeat(2,minmax(0,1fr))}.content:not(.expanded-input) .pitch-half{min-width:0}.content:not(.expanded-input) .rotation-grid{padding:3px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,85px)}
 .content:not(.expanded-input) .pitch-player{padding:2px;margin:1px;min-width:0;gap:3px}.content:not(.expanded-input) .pitch-player .jersey{width:30px;height:30px;min-height:30px;font-size:17px}.content:not(.expanded-input) .pitch-player .player-name{max-width:100%;font-size:7px;white-space:normal;text-align:center}.content:not(.expanded-input) .position-mark{left:2px;top:3px;font-size:8px}
 .content:not(.expanded-input) .pitch-bottom{padding:7px;gap:8px;align-items:stretch}.content:not(.expanded-input) .pitch-bottom>div{width:calc(50% - 4px);min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.content:not(.expanded-input) .pitch-bottom>div>span{grid-column:1/-1;white-space:normal}.content:not(.expanded-input) .pitch-bottom .btn{min-width:0;width:100%;padding:4px;font-size:10px;min-height:36px}.content:not(.expanded-input) .timeout-button>b{font-size:22px}
 .content:not(.expanded-input) .action-strip{min-width:0;max-width:100%}.content:not(.expanded-input) .action-strip-history{min-width:0;overflow:hidden}.content:not(.expanded-input) .quick-points .btn{min-width:0;white-space:normal;padding:6px;font-size:11px}.content:not(.expanded-input) .quick-points kbd{display:none}
 .content:not(.expanded-input) .action-panel{padding:12px}.content:not(.expanded-input) .skill-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0 0 12px}.content:not(.expanded-input) .skill-tabs button{font-size:10px;padding:8px 0;min-width:0}.content:not(.expanded-input) .forecast-pair{grid-template-columns:minmax(0,1fr)}
 .content:not(.expanded-input) .scoreboard{grid-template-columns:minmax(0,1fr) 85px minmax(0,1fr);padding:10px 8px;gap:5px}.content:not(.expanded-input) .score-team{min-width:0;gap:0}.content:not(.expanded-input) .score-team h2{font-size:13px;overflow-wrap:anywhere}.content:not(.expanded-input) .score-team .team-dot{display:none}.content:not(.expanded-input) .score{gap:6px}.content:not(.expanded-input) .score strong{font-size:28px}
}
@media(orientation:portrait) and (max-width:600px){
 .expanded-input{overflow-y:auto;overflow-x:hidden;height:100vh;height:100dvh}
 .expanded-input .recorder-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;flex-shrink:0}
 .expanded-input .recorder-toolbar .btn{white-space:normal;min-width:0;font-size:11px}
 .expanded-input .live-layout{display:flex;flex-direction:column;flex:0 0 auto;min-height:0}
 .expanded-input .live-layout>div:first-child{width:100%;flex:0 0 auto}.expanded-input .single-court-panel{flex:0 0 auto;min-height:400px}.expanded-input .horizontal-pitch{min-height:270px;flex:0 0 270px}
 .expanded-input .action-panel{width:100%;overflow:visible;flex:0 0 auto}.expanded-input .pitch-bottom>div{flex-wrap:wrap;min-width:0}.expanded-input .pitch-bottom .btn{font-size:10px;padding:5px;min-height:34px}.expanded-input .court-team-name{max-width:23%;font-size:10px}.expanded-input .court-score-center{width:65px}.expanded-input .court-current-score{font-size:22px}.expanded-input .court-set-total,.expanded-input .court-current-set{font-size:8px}
}

/* Equal, finger-sized controls under each court half in the phone overview. */
@media(max-width:600px){
 .content:not(.expanded-input) .pitch-bottom{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .content:not(.expanded-input) .pitch-bottom>div{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(28px,auto) 48px 48px;gap:6px;align-items:stretch}
 .content:not(.expanded-input) .pitch-bottom>div>span{align-self:start;font-size:10px;line-height:1.3}
 .content:not(.expanded-input) .pitch-bottom .btn{height:48px;min-height:48px;min-width:0;padding:4px;font-size:11px;line-height:1.1;white-space:normal}
 .content:not(.expanded-input) .pitch-bottom .front-switch{padding:4px!important}
 .content:not(.expanded-input) .pitch-bottom .timeout-button b{font-size:26px}
 .content:not(.expanded-input) .rotation-grid{grid-template-rows:repeat(3,100px)}
 .content:not(.expanded-input) .pitch-player{min-height:0;padding:17px 2px 5px;gap:3px;overflow:hidden}
 .content:not(.expanded-input) .pitch-player .player-name{max-height:24px;overflow:hidden}
 .content:not(.expanded-input) .quick-points .btn{min-height:52px;font-size:12px;padding:8px}
 .content:not(.expanded-input) .action-strip>.undo{min-height:48px;font-size:12px}
}

.install-app[hidden]{display:none!important}

/* Override the global OH/OPP minimum in compact landscape input. */
@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){
 .expanded-input .pitch-bottom .front-switch{min-height:28px!important;height:28px;max-height:28px;padding:3px!important}
}

/* Match all function button boxes on tablet and desktop focused courts. */
.expanded-input .pitch-bottom .btn{height:44px;min-height:44px;box-sizing:border-box}
.expanded-input .pitch-bottom .front-switch{height:44px;min-height:44px!important;max-height:44px}
@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){
 .expanded-input .pitch-bottom .btn{height:28px;min-height:28px}
 .expanded-input .pitch-bottom .front-switch{height:28px;min-height:28px!important;max-height:28px}
}
@media(orientation:portrait) and (max-width:600px){
 .expanded-input .pitch-bottom .btn{height:44px;min-height:44px}
}

/* Coach actions wrap without pushing the phone document wider. */
@media(max-width:600px){
 .coach-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:8px;align-items:stretch}
 .coach-toolbar>h3{grid-column:1/-1;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.3}
 .coach-toolbar>.btn{width:100%;min-width:0;min-height:46px;padding:8px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
 .board-grid,.board-metrics{min-width:0;max-width:100%}.board-grid>*{min-width:0;max-width:100%}
}

/* A single scroll surface for statistics; headings follow their content. */
body:has(#modal[open]){overflow:hidden}
#modal:has(.tactics-popup){max-height:calc(100dvh - 24px);height:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px}
#modal:has(.tactics-popup)>#close-modal{display:none}
.tactics-popup>.section-heading,.tactics-popup .tactics-tabs{position:static;top:auto;z-index:auto}
.tactics-popup>.section-heading{padding:0;gap:8px;flex-wrap:wrap}
.tactics-popup h2{margin:0;font-size:21px}
.tactics-popup,.tactics-popup>*{min-width:0;max-width:100%}
.tactics-popup [hidden]{display:none!important}
.tactics-popup .tactics-court{height:auto;aspect-ratio:900/465;max-height:none}
@media(max-width:600px){
 #modal:has(.tactics-popup){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px;overflow-x:hidden}
 .tactics-popup>.section-heading{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:8px}
 .tactics-popup>.section-heading>h2{grid-column:1/-1;font-size:20px}
 .tactics-popup .btn{min-width:0;white-space:normal;padding:8px;min-height:40px}
 .tactics-popup .tactics-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .tactics-popup .tactics-filters{grid-template-columns:minmax(0,1fr);gap:5px}
 .tactics-popup .tactics-filters label{min-width:0}.tactics-popup select{width:100%;min-width:0}
 .tactics-popup .analysis-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .tactics-popup .tactics-metrics,.tactics-popup .tactics-legend{gap:6px;font-size:11px}
 .tactics-popup .tactics-metrics span{padding:6px}
}

/* Six attack evaluations: equal touch targets on phones and tablets. */
.action-panel .grade-grid.attack-grades{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
.action-panel .grade-grid.attack-grades .grade{min-width:0;width:100%;min-height:60px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:6px;white-space:normal}
.action-panel .grade-grid.attack-grades .grade b{flex:0 0 28px;font-size:30px}.action-panel .grade-grid.attack-grades .grade span{min-width:0;font-size:13px;line-height:1.15;overflow-wrap:anywhere}
.action-panel .grade-grid.attack-grades .grade[data-grade="!"]{background:#513878;border-color:#8060a6}.action-panel .grade-grid.attack-grades .grade[data-grade="!"] b{color:#d5b6ff}
.blocked-attack-dialog{max-width:680px;min-width:0}.blocked-attack-dialog .replacement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.blocked-attack-dialog .roster-choice{min-height:76px;min-width:0;white-space:normal;overflow-wrap:anywhere}.blocked-attack-dialog [aria-pressed="true"]{background:#cbeafb;border:2px solid #077ab7;color:#103e55}.blocked-attack-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:12px}.blocked-attack-actions .btn{min-height:48px}
@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){.expanded-input .action-panel .grade-grid.attack-grades .grade{height:42px;min-height:42px;padding:3px;gap:3px}.expanded-input .action-panel .grade-grid.attack-grades .grade b{font-size:24px}.expanded-input .action-panel .grade-grid.attack-grades .grade span{font-size:10px}}
@media(max-width:420px){.blocked-attack-dialog .replacement-grid{gap:5px}.blocked-attack-dialog .roster-choice{padding:7px 3px;font-size:12px}.blocked-attack-actions .btn{flex:1 1 130px}}

.action-panel .grade-grid.attack-grades .grade[data-grade="/"]{background:#402326;border-color:#7e454b}.action-panel .grade-grid.attack-grades .grade[data-grade="/"] b{color:#ff7f88}

@media(min-width:601px) and (max-width:900px){
 .content:not(.expanded-input) .live-layout{grid-template-columns:minmax(0,1fr)}
 .content:not(.expanded-input) .live-layout>*,.content:not(.expanded-input) .single-court-panel,.content:not(.expanded-input) .action-panel{min-width:0;max-width:100%}
 .content:not(.expanded-input) .pitch-bottom{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .content:not(.expanded-input) .pitch-bottom>div{min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .content:not(.expanded-input) .pitch-bottom>div>span{grid-column:1/-1;white-space:normal}
 .content:not(.expanded-input) .pitch-bottom .btn{min-width:0;width:100%;height:44px;min-height:44px;padding:4px;font-size:11px}
 .content:not(.expanded-input) .pitch-heading>span{display:none}
}

.orientation-retry{display:flex;align-items:center;justify-content:center;flex:0 0 auto;gap:10px;padding:7px;background:#e1f2fd;color:#123954;font-size:12px}.orientation-retry .btn{min-height:44px;padding:7px 12px}
@media(orientation:landscape){.orientation-retry{display:none}}
/* Keep the bottom navigation label inside the tap target on small phones. */
@media(max-width:520px){aside nav .nav-item{font-size:11px;line-height:1.15;min-height:60px;height:100%;margin:0;padding:4px 2px;gap:2px;overflow-wrap:normal;word-break:normal;white-space:normal}aside nav .nav-item>span{flex:0 0 22px;width:22px;height:22px}aside nav .portal-nav-icon{width:22px;height:22px}}
@media(max-width:340px){aside nav .nav-item{font-size:10px;line-height:1.1}}

.setter-selector{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:12px 0}.setter-selector .btn{min-width:0;min-height:44px;padding:8px}.setter-rotations{min-width:0}.setter-rotations select{width:100%;max-width:100%}.rotation-zone-cards,.rotation-service-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rotation-zone-card{min-width:0;border:1px solid #c6dce8;border-radius:10px;padding:12px;overflow-wrap:anywhere;background:#f7fbfe}.rotation-zone-card h4{display:flex;justify-content:space-between;gap:8px;margin:0 0 8px}.rotation-zone-card p{margin:8px 0}.rotation-zone-card progress{width:100%;height:12px;accent-color:#0788bb}.rotation-leading{background:#dff2fc;border:2px solid #0788bb}.rotation-emphasis{padding:12px;background:#e3f2fa;border-radius:8px}.rotation-zone-card summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.setter-rotations .hint{overflow-wrap:anywhere}@media(max-width:900px){.rotation-zone-cards,.rotation-service-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.setter-selector{grid-template-columns:repeat(3,minmax(0,1fr))}.rotation-zone-cards,.rotation-service-cards{grid-template-columns:minmax(0,1fr)}.setter-rotations .insight-heading{flex-wrap:wrap}}
.insight-card.setter-rotations{background:#fff;color:#153e53;border-color:#c6dce8}.insight-card.setter-rotations h3,.insight-card.setter-rotations h4{color:#153e53}.insight-card.setter-rotations h4{margin:0 0 8px}.insight-card.setter-rotations p,.insight-card.setter-rotations small,.insight-card.setter-rotations .hint{color:#48697e}.setter-selector .btn:not(.primary){color:#153e53;background:#f5faff}.setter-rotations .rotation-emphasis{color:#153e53}

.insight-card.setter-rotations .rotation-insight{color:#e6f3ff}.insight-card.setter-rotations .rotation-insight h4{color:#a0daff}.insight-card.setter-rotations .rotation-insight>span{color:#d3e7f5}.insight-card.setter-rotations .rotation-insight>small{color:#d3e7f5}

.btn.front-switch.back-receive-switch{background:#eae4fa;border-color:#9176bd;color:#553680!important}.btn.front-switch.back-receive-switch.selected{background:#7750a4;color:#fff!important;border-color:#553680}

@media(max-width:1100px){aside nav:has([data-page="formations"]){grid-template-columns:repeat(5,minmax(0,1fr))}}

.service-error{width:100%;margin:8px 0;min-height:44px;border-color:#9b4050;color:#7b2d3b}.quality-5{background:#9f3944}.quality-4{background:#765ca8}
.action-panel>.service-error,.action-panel>.target-controls{grid-column:1/-1}
.action-panel .grade-grid.attack-grades .grade b{flex:0 0 auto;min-width:28px;white-space:nowrap}
/* Eight match controls share one row; the action panel starts below it. */
main:not(.expanded-input) .recorder-toolbar,.expanded-input .recorder-toolbar{display:grid;width:100%;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;align-items:stretch;height:auto;min-height:44px;overflow:visible}
main:not(.expanded-input) .recorder-toolbar .btn,.expanded-input .recorder-toolbar .btn{width:100%;min-width:0;height:100%;min-height:44px;margin:0;padding:5px 4px;white-space:normal;font-size:clamp(10px,.9vw,12px);line-height:1.15;overflow-wrap:normal}
.expanded-input .live-layout>.action-panel{margin-top:0}
@media(max-width:600px) and (orientation:portrait){main:not(.expanded-input) .recorder-toolbar,.expanded-input .recorder-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* End-of-match text wraps beside the score on narrow courts. */
.court-current-set{max-width:48px;white-space:normal;line-height:1.1}
@media(max-width:600px){.court-current-set{max-width:32px}}

/* Real preparation positions retain the original player selection targets. */
.rotation-grid.formation-grid,.court-grid.formation-grid{display:block;position:relative;min-height:300px;height:100%;padding:0;background-image:none}
.formation-grid>.pitch-player,.formation-grid>.player{position:absolute!important;left:var(--player-x);top:var(--player-y);transform:translate(-50%,-50%);width:clamp(44px,7vw,90px);height:70px;min-height:44px!important;margin:0!important;padding:2px!important;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:visible!important}
.formation-grid .position-mark,.formation-grid .zone-tag,.formation-grid .libero-under{display:none}.formation-grid .player-name{font-size:9px;max-width:95px;line-height:1.05}.formation-grid .server-mark{font-size:8px}.formation-grid>.chosen .jersey{outline:3px solid #d89a24;outline-offset:3px}
.expanded-input .formation-grid{min-height:0!important}.expanded-input .formation-grid>.pitch-player,.expanded-input .formation-grid>.player{height:44px;min-height:44px!important}.formation-grid .jersey{flex-shrink:0}
@media(max-width:600px){.rotation-grid.formation-grid{min-height:310px}.formation-grid>.pitch-player,.formation-grid>.player{width:44px;height:52px}.formation-grid .player-name{display:none}.formation-grid .jersey{width:30px;height:30px;min-height:30px;font-size:17px}.expanded-input .formation-grid .jersey{width:26px;height:26px;min-height:26px;font-size:15px}}
.formation-grid>.pitch-player,.formation-grid>.player{left:clamp(23px,var(--player-x),calc(100% - 23px));top:clamp(23px,var(--player-y),calc(100% - 23px))}

.jersey{position:relative;overflow:visible}.setter-badge{position:absolute;right:-7px;top:-6px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:#fff3b0;color:#173f50;border:1px solid #b87900;font-size:11px;font-weight:800;line-height:1;box-shadow:0 1px 3px #173f5033}

/* Scale player circles with the actual half-court width. */
.pitch-half,.court:has(.formation-grid){container-type:inline-size}
.formation-grid{--marker-size:clamp(36px,14cqw,84px);--marker-edge:calc(var(--marker-size)/2 + 8px)}
.formation-grid>.pitch-player,.formation-grid>.player,.expanded-input .formation-grid>.pitch-player,.expanded-input .formation-grid>.player{width:max(44px,calc(var(--marker-size) + 12px));height:calc(var(--marker-size) + 28px);left:clamp(var(--marker-edge),var(--player-x),calc(100% - var(--marker-edge)));top:clamp(var(--marker-edge),var(--player-y),calc(100% - var(--marker-edge)))}
.formation-grid .jersey,.expanded-input .formation-grid .jersey{width:var(--marker-size);height:var(--marker-size);min-height:var(--marker-size);font-size:calc(var(--marker-size)*.54)}
.formation-grid .player-name{font-size:clamp(9px,1.8cqw,12px);max-width:115px}.formation-grid .setter-badge{width:clamp(17px,3.3cqw,23px);height:clamp(17px,3.3cqw,23px);font-size:clamp(11px,2cqw,14px)}
@media(orientation:landscape) and (max-height:500px){.expanded-input .formation-grid{--marker-size:clamp(28px,8.5vh,42px)}}

/* Court markings follow screen side, including after changing ends. */
.horizontal-pitch>.pitch-half:nth-child(1){background-image:linear-gradient(to right,transparent calc(66.6667% - 2px),white calc(66.6667% - 2px),white calc(66.6667% + 2px),transparent calc(66.6667% + 2px))}
.horizontal-pitch>.pitch-half:nth-child(2){background-image:linear-gradient(to right,transparent calc(33.3333% - 2px),white calc(33.3333% - 2px),white calc(33.3333% + 2px),transparent calc(33.3333% + 2px))}
.pitch-player.front-row .jersey:not(.libero),.player.front-row .jersey:not(.libero){background:linear-gradient(140deg,#078779,#096459);color:#fff}

/* Shared club-page spacing matches Postavitve. */
.content:has(#portal-content){padding-top:16px}.content:has(#portal-content) .page-title{margin-bottom:8px}.content:has(#portal-content) #portal-message:empty{display:none}


/* Keep the service highlight when player positions replace zone cells. */
.formation-grid>.pitch-player:has(.server-mark),.formation-grid>.player:has(.server-mark){background:#fff0b7;border:2px solid #d7a12b;border-radius:9px}.formation-grid .server-mark{color:#765000;font-weight:700}


/* A full touch target, including its service label, stays inside the court. */
.formation-grid>.pitch-player,.formation-grid>.player,.expanded-input .formation-grid>.pitch-player,.expanded-input .formation-grid>.player{left:clamp(max(23px,calc(var(--marker-size)/2 + 6px)),var(--player-x),calc(100% - max(23px,calc(var(--marker-size)/2 + 6px))));top:clamp(calc((var(--marker-size) + 28px)/2),var(--player-y),calc(100% - (var(--marker-size) + 28px)/2))}

/* Match details stay above compact action links. */
.match-table{width:100%;table-layout:fixed}.match-table th:first-child{width:50%}.match-table th:nth-child(2){width:18%}.match-table th:nth-child(3){width:32%}.match-table .match-data td{border-bottom:0;padding:14px 10px 4px;vertical-align:top;overflow-wrap:anywhere}.match-table .match-data td:nth-child(2){white-space:nowrap}.match-table .match-action-row td{padding:0 10px 12px}.match-table .match-actions{display:flex;flex-wrap:wrap;gap:0 18px;min-width:0}.match-link,.match-sort{border:0;background:none;color:#15658a;cursor:pointer;font:inherit;padding:6px 0;min-height:32px;text-align:left}.match-link{font-size:13px;text-decoration:underline;text-underline-offset:3px}.match-sort{width:100%;font-size:13px;font-weight:600}.match-link:focus-visible,.match-sort:focus-visible{outline:2px solid #d39427;outline-offset:2px}.match-table .match-data td:nth-child(3)>*{display:inline-block;margin-right:10px}.match-table .match-data td:nth-child(3)>b{display:block}.match-table small{line-height:1.4}
@media(max-width:600px){.match-table th:first-child{width:44%}.match-table th:nth-child(2){width:24%}.match-table th:nth-child(3){width:32%}.match-table .match-data td{padding:10px 5px 4px;font-size:12px}.match-table .match-action-row td{padding:0 5px 10px}.match-table .match-actions{gap:0 14px}.match-link{min-height:40px}.match-table .match-data td:nth-child(3)>*{margin-right:4px;font-size:11px}}
/* Desktop sidebar stays vertical; five columns apply only to the top/bottom navigation. */
@media(min-width:1001px){aside nav:has([data-page="formations"]){grid-template-columns:minmax(0,1fr)}}

/* Short action labels and the same service cue beside the team name. */
.action-panel .simple-directions button{font-size:13px;line-height:1.15}
.score-team small.service-status,.court-team-name small.service-status{display:inline-flex;align-items:center;gap:3px;background:#fff0b7;border:1px solid #d7a12b;border-radius:5px;padding:3px 6px;color:#765000;font-weight:700;max-width:100%}
@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){.expanded-input .action-panel .simple-directions button{font-size:10px}}

.match-page-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.match-page-actions .btn{white-space:nowrap}@media(max-width:600px){.match-page-actions{width:100%;justify-content:flex-start}.match-page-actions .btn{padding:10px 12px;font-size:12px;min-height:42px}}

.teams-table{width:100%}.teams-table td{vertical-align:middle}.teams-table td:last-child,.teams-table th:last-child{text-align:right}.teams-table td:last-child .btn{white-space:nowrap}.team-starting-lineup{border:1px solid #c7dce8;border-radius:9px;padding:12px;margin:16px 0}.team-starting-lineup legend{padding:0 6px;font-weight:700}.lineup-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lineup-slots label{min-width:0;margin:0;font-weight:700}.lineup-slots select{width:100%;min-width:0;font-weight:400}@media(min-width:1000px){.lineup-slots{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:600px){.teams-table td,.teams-table th{padding:10px 5px;font-size:12px}.teams-table td:last-child .btn{font-size:12px;padding:8px;min-height:40px}.lineup-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}

.team-spreadsheet-import{padding:12px;border:1px solid #c7dce8;border-radius:8px;margin:12px 0}.team-spreadsheet-import summary{cursor:pointer;font-weight:700;min-height:32px}.member-name{margin-top:5px;width:100%}

#team-form:not(.opponent-roster) .member-name{display:none}#team-form.opponent-roster .member-profile{display:none}.team-spreadsheet-import[hidden]{display:none}

.team-form-header{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7fbfd;padding:10px 0;border-bottom:1px solid #c7dce8;margin-bottom:12px}.team-form-header h2{margin:0;min-width:0}.team-form-header>div{display:flex;gap:6px;flex-shrink:0}.team-form-header .btn{white-space:nowrap}#modal:has(#team-form)>#close-modal{display:none}@media(max-width:600px){.team-form-header h2{font-size:19px}.team-form-header{gap:6px}.team-form-header .btn{font-size:12px;padding:8px;min-height:40px}}

.team-spreadsheet-import>summary{display:none}.import-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.import-tools>[hidden]{display:none!important}
.team-spreadsheet-import:not([open]){display:none}

.team-filters{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.team-filters label{flex:1;min-width:140px;max-width:260px}.team-form-header>div{display:flex;flex-wrap:wrap;gap:8px}#modal:has(#match-form)>#close-modal{display:none}.match-form-header{flex-wrap:wrap}.teams-table td{vertical-align:middle}@media(max-width:600px){.teams-table{min-width:580px}.match-form-header>div{width:100%}.match-form-header .btn{flex:1;padding:8px 10px}.team-filters label{max-width:none}}

.lineup-slot{width:100%;text-align:left;white-space:normal;min-height:54px}.lineup-picker{width:min(680px,94vw);max-height:85dvh;border:1px solid #b9d2e2;border-radius:14px;padding:18px;background:#f7fbfd;color:#123f56}.lineup-picker::backdrop{background:#142c3c88}.lineup-player-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lineup-player{display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 6px;border:1px solid #b9d2e2;border-radius:10px;background:white;color:#123f56;font:inherit;cursor:pointer}.lineup-player .jersey{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#176ca6;color:white;font-size:27px;font-weight:750}.lineup-player.selected{background:#dceefa;border:2px solid #1687c1}.lineup-player:focus-visible{outline:3px solid #1687c1;outline-offset:2px}.lineup-player>span:last-child{font-size:13px;overflow-wrap:anywhere}@media(max-width:600px){.lineup-player-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lineup-picker{padding:12px}.lineup-player .jersey{width:48px;height:48px}}

.match-header-state{display:flex;align-items:center;flex-wrap:wrap;gap:14px;min-width:0}.connection.synced{color:#16713b;font-weight:700}.connection.unsynced{color:#b3262e;font-weight:700}.match-header .connection{white-space:nowrap;max-width:none}.match-header .header-right{display:flex;align-items:center;gap:10px}@media(max-width:780px){.match-header .breadcrumb{display:block}.match-header{justify-content:space-between}.match-header-state{gap:8px}.match-header .header-right{margin-left:auto}.match-header .connection{font-size:10px}}

.set-end-actions{display:flex;flex-wrap:wrap;gap:10px}.set-end-confirm p{font-size:14px;line-height:1.5}.set-end-confirm h2{margin-bottom:12px}

.dvw-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.dvw-controls label{margin:0;min-width:130px}.dvw-controls .btn{padding:8px 12px;min-height:42px}.dvw-courts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dvw-lineup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:#d6edfa;padding:8px}.dvw-lineup>div{display:flex;flex-direction:column;align-items:center;border:1px solid #9dbdd1;border-radius:8px;background:white;padding:6px;text-align:center}.dvw-lineup b{border-radius:50%;background:#176ca6;color:white;display:grid;place-items:center;width:42px;height:42px;font-size:24px}.dvw-lineup span{font-size:11px}.dvw-lineup .dvw-active{background:#fff0b7;border-color:#d7a12b}#dvw-progress{width:100%}.dvw-playback details{margin-top:10px}.tactics-filters{flex-wrap:wrap}.tactics-filters>label{min-width:120px!important}@media(max-width:600px){.dvw-controls .btn{flex:1}.dvw-lineup span{font-size:10px}.dvw-courts h4{font-size:13px}}

.overview-team{border-top:1px solid #bfd4e3;padding-top:14px;margin-top:16px}.overview-team details,.setter-rotations details{margin:12px 0}.overview-team summary{cursor:pointer;font-weight:700;padding:8px 0}.match-overview .situation-stat strong{font-size:24px}.match-overview p{line-height:1.5}

.tactics-filters[hidden],.tactics-filters label[hidden]{display:none}

.match-filters{align-items:end}.match-filters .match-search{flex:2;max-width:none;min-width:220px}.match-filters input,.match-filters select{margin-bottom:0}.match-filters label{margin-bottom:0}.match-filters .btn{min-height:44px}@media(max-width:600px){.match-filters .match-search{flex-basis:100%;min-width:0}.match-filters label{min-width:calc(50% - 12px)}.match-filters .btn{width:100%}}

/* Light cards inside the dark analysis panel need their own text palette. */
.insight-card .rotation-zone-card{color:#153e53}
.insight-card .rotation-zone-card h4,.insight-card .rotation-zone-card b,.insight-card .rotation-zone-card strong,.insight-card .rotation-zone-card td,.insight-card .rotation-zone-card summary{color:#153e53}
.insight-card .rotation-zone-card p,.insight-card .rotation-zone-card small,.insight-card .rotation-zone-card .hint{color:#34566b}
.insight-card .rotation-zone-card th{background:#e2eef5;color:#153e53}
.insight-card .rotation-zone-card td{border-color:#bdcfdb}

/* Readable graph labels and controls on light analysis surfaces. */
.tactics-popup .hint{color:#48697e}
.tactics-popup .insight-card .hint{color:#c0d9ec}
.tactics-popup .insight-card .rotation-zone-card .hint{color:#34566b}
.tactics-popup .tactics-filters label{color:#48697e}
.tactics-popup .legend-serve{color:#985000}
.tactics-popup .legend-attack{color:#08669e}
.tactics-popup .btn.primary{background:linear-gradient(135deg,#0875ac,#105da2);color:#fff}
.tactics-popup .insight-card.setter-rotations .hint{color:#48697e}

.report-popup .match-report p,.report-popup .match-report small,.report-popup .match-report .report-note{color:#34566b}.report-popup .report-screen-tools label{color:#48697e}
.team-history summary{cursor:pointer;font-weight:700;color:#153e53}.team-appearance{padding:12px 0;border-bottom:1px solid #c6dce8}.team-appearance p{color:#34566b}.roster-chip{display:inline-block;padding:4px 8px;margin:3px;background:#e7f2f9;border-radius:6px;color:#153e53}.team-appearance .text-btn{margin-left:12px}

.action-strip>.redo{flex-shrink:0;min-height:44px}.action-strip-history{min-width:0}
@media(max-width:600px){.action-strip{flex-wrap:wrap}.action-strip-history{flex-basis:100%}.action-strip>.undo,.action-strip>.redo{flex:1}}
/* Keep imported names visible until a club profile is linked. */
#team-form:not(.opponent-roster) .member-row:has(.member-profile option:checked[value=""]) .member-name{display:block}

/* VolleyStat shared branding 20261026 */
.auth-card .auth-brand{display:flex;align-items:center;gap:14px;margin:0 0 25px;color:#148dcc;font-size:32px;font-weight:800;line-height:1.15;letter-spacing:-.035em}.auth-card .auth-logo{display:block;width:56px;height:56px;flex:0 0 56px}.auth-card .auth-wordmark{color:#148dcc}aside .brand{display:flex;align-items:center;gap:8px}aside .brand .brand-logo{display:block;width:32px;height:32px;flex:0 0 32px}aside .brand .brand-wordmark{color:#148dcc;white-space:nowrap}

aside .brand .brand-wordmark{font-size:26px;font-weight:750;line-height:1.2}

/* Compact club portal: identity row followed by one navigation row. */
aside.portal-sidebar{position:static;inset:auto;width:100%;height:auto;padding:8px 16px;display:block;z-index:auto}
.portal-sidebar .portal-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:6px}
.portal-sidebar .brand{margin:0;flex:0 0 auto;font-size:26px;min-width:0}
.portal-sidebar .header-right{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:10px;min-width:0;font-size:12px}
.portal-sidebar .header-right>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-sidebar .header-right .btn{min-height:34px;padding:7px 11px;font-size:12px;flex:0 0 auto}
.portal-sidebar>.workspace,.portal-sidebar>.aside-bottom{display:none}
.portal-sidebar nav{display:flex;flex-wrap:nowrap;gap:6px;height:auto;width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.portal-sidebar nav .nav-item{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1 0 auto;width:auto;height:auto;min-height:40px;margin:0;padding:8px 12px;font-size:13px;line-height:1.2;gap:7px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.portal-sidebar nav .nav-item>span{flex:0 0 20px;width:20px;height:20px}
.portal-sidebar nav .portal-nav-icon{width:20px;height:20px}
.portal-sidebar+main{margin-left:0}
.portal-sidebar+main>.portal-meta-header:not(:has(select)){display:none}
.portal-sidebar+main>.portal-meta-header:has(select){min-height:0;padding:6px 16px}
.portal-sidebar+main>.portal-meta-header .breadcrumb{display:flex}
@media(max-width:520px){aside.portal-sidebar{padding:7px 12px}.portal-sidebar .brand .brand-logo{width:28px;height:28px;flex-basis:28px}.portal-sidebar .brand .brand-wordmark{font-size:22px}.portal-sidebar .header-right{gap:6px;font-size:11px;max-width:55%}.portal-sidebar .header-right>span{max-width:125px}.portal-sidebar nav .nav-item{font-size:12px;min-height:40px;padding:8px 10px}.portal-sidebar+main>.content{padding-bottom:24px}}

/* Hamburger navigation above page content. */
aside.portal-sidebar{position:sticky;top:0;z-index:1000;padding:7px 16px;border-bottom:1px solid #bfdff1}
.portal-sidebar .portal-topbar{position:relative;z-index:2;justify-content:flex-start;margin:0;min-height:40px;gap:10px}
.portal-sidebar .portal-topbar .header-right{margin-left:auto}
.portal-menu-toggle{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #a8cfe2;border-radius:6px;background:white;color:#153d58}
.portal-sidebar nav{position:absolute;left:12px;right:12px;top:calc(100% + 4px);z-index:2;width:auto;padding:8px;background:#e2f4ff;border:1px solid #a8cfe2;border-radius:8px;box-shadow:0 8px 24px #153d5833}
.portal-sidebar nav[hidden],.portal-menu-backdrop[hidden]{display:none}
.portal-menu-backdrop{position:fixed;inset:0;z-index:1;border:0;border-radius:0;background:#153d581c;padding:0;cursor:default}
@media(max-width:520px){aside.portal-sidebar{padding:7px 10px}.portal-sidebar .portal-topbar{gap:7px}.portal-sidebar .brand{gap:5px}.portal-sidebar .brand .brand-logo{width:24px;height:24px;flex-basis:24px}.portal-sidebar .brand .brand-wordmark{font-size:20px}.portal-sidebar .header-right{max-width:48%;gap:5px}.portal-sidebar .header-right>span{max-width:18vw;font-size:10px}.portal-sidebar .header-right .btn{padding:7px 9px;font-size:11px}.portal-sidebar nav{left:6px;right:6px}}

/* Match controls share the same compact hamburger header. */
.match-sidebar .portal-topbar>.connection{margin-left:auto;white-space:nowrap;max-width:none;font-size:11px}
.match-sidebar .portal-topbar .header-right{margin-left:0;max-width:none;flex:0 0 auto}
.match-sidebar .role-switch{padding:2px}
.match-sidebar .role-switch button{font-size:12px;min-height:30px;padding:7px 10px}
.match-sidebar nav .backup-export{background:transparent;border-color:#a8cfe2;font-size:12px}
@media(max-width:600px){.match-sidebar .brand .brand-wordmark{display:none}.match-sidebar .portal-topbar{gap:6px}.match-sidebar .portal-topbar>.connection{font-size:0;flex:0 0 10px;width:10px;min-width:10px}.match-sidebar .portal-topbar>.connection::before{content:'●';font-size:12px}.match-sidebar .role-switch button{font-size:11px;padding:6px 7px}.match-sidebar .header-right .btn{font-size:11px;padding:7px 8px}.match-sidebar .brand .brand-logo{width:26px;height:26px;flex-basis:26px}.match-sidebar .portal-topbar .header-right{gap:5px}}

/* Keep navigation labels and counters together on wide screens. */
.portal-sidebar nav{justify-content:flex-start}.portal-sidebar nav .nav-item{flex:0 0 auto}.portal-sidebar nav .nav-item b{position:static;flex:0 0 auto;align-self:center;margin:0 0 0 2px;min-width:18px;padding:2px 5px;font-size:11px;line-height:1.2;text-align:center}

/* Full match input owns the viewport; keep its toolbar unobstructed. */
body.focus-mode #app>aside.match-sidebar{display:none}
