/* Compact, keyboard-native sport switch. Football remains the default entry. */
.topbar .sport-switch{width:5.8rem;min-height:38px;margin:0;padding:7px 26px 7px 12px;background-color:rgba(118,118,128,.09);border:1px solid transparent;border-radius:10px;font:600 13px/1.4 system-ui;color:#202124;cursor:pointer;transition:background-color 150ms ease,transform 120ms ease}
.sport-switch:active{transform:scale(.97)}.sport-switch:focus-visible{outline:3px solid #007aff;outline-offset:3px}
body[data-sport="baseball"] .format-picker,body[data-sport="baseball"] label[for="presentationGroup"],body[data-sport="baseball"] #presentationGroup,body[data-sport="baseball"] #presentationHint{display:none!important}
body[data-sport="baseball"] .tactics-pitch{aspect-ratio:1600/1080;height:auto;min-height:0;background:#e1ebe5 url('assets/baseball-field.svg') center/100% 100% no-repeat;border:1px solid #cfdfd4;border-radius:20px;overflow:visible}
body[data-sport="baseball"] .tactics-pitch:before,body[data-sport="baseball"] .tactics-pitch:after{display:none}
body[data-sport="baseball"] .tactics-player{width:50px;min-width:44px;height:44px;border-radius:12px;background:#fff;color:#203b30;box-shadow:0 2px 8px #183d241f;border:1px solid #cadbcf;font:700 14px/1 system-ui;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;transition:transform 150ms ease,box-shadow 150ms ease}
body[data-sport="baseball"] .tactics-player small{font:500 9px/1.1 system-ui;white-space:nowrap}
body[data-sport="baseball"] .tactics-player[data-line="0"]{border-top:3px solid #b67b42}
body[data-sport="baseball"] .tactics-player[data-line="1"]{border-top:3px solid #44846b}
body[data-sport="baseball"] .tactics-player[data-line="2"]{border-top:3px solid #5086be}
body[data-sport="baseball"] .tactics-player:active{transform:translate(-50%,-50%) scale(.95)}
body[data-sport="baseball"] .tactics-player:focus-visible{outline:3px solid #007aff;outline-offset:2px}
@media(max-width:600px){.topbar .sport-switch{min-height:44px;width:5.4rem}.project-actions{gap:6px!important}.topbar{flex-wrap:wrap}.brand small{max-width:14rem}}
@media(prefers-reduced-motion:reduce){.sport-switch,body[data-sport="baseball"] .tactics-player{transition:none!important}}
@media(prefers-contrast:more){.topbar .sport-switch,body[data-sport="baseball"] .tactics-player{border:1px solid #203b30}}
body[data-sport="baseball"] .formation-settings>.field-row{display:block;margin-top:18px}
body[data-sport="baseball"] .formation-settings>.field-row>div:first-child{display:none}

.field-size-control{margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #e8e8ed}.field-size-heading{display:flex;align-items:center;gap:12px}.field-size-heading label{margin:0;flex:1}.field-size-heading output{font:600 14px ui-monospace,monospace;color:#007aff}.field-size-heading button{min-height:44px}.field-size-control input[type=range]{width:100%;min-height:44px;accent-color:#007aff;margin:0;cursor:pointer}.field-size-control p{font-size:12px;line-height:1.5;color:#6e6e73;margin:0}.field-size-control input:focus-visible{outline:3px solid #007aff;outline-offset:3px;border-radius:6px}

/* Compact, keyboard-native sport switch. Football remains the default entry. */
.topbar .sport-switch{width:5.8rem;min-height:38px;margin:0;padding:7px 26px 7px 12px;background-color:rgba(118,118,128,.09);border:1px solid transparent;border-radius:10px;font:600 13px/1.4 system-ui;color:#202124;cursor:pointer;transition:background-color 150ms ease,transform 120ms ease}
.sport-switch:active{transform:scale(.97)}.sport-switch:focus-visible{outline:3px solid #007aff;outline-offset:3px}
body[data-sport="volleyball"] .format-picker,body[data-sport="volleyball"] label[for="presentationGroup"],body[data-sport="volleyball"] #presentationGroup,body[data-sport="volleyball"] #presentationHint{display:none!important}
body[data-sport="volleyball"] .tactics-pitch{aspect-ratio:1600/1080;height:auto;min-height:0;background:#e1ebe5 url('assets/volleyball-court.svg') center/100% 100% no-repeat;border:1px solid #cfdfd4;border-radius:20px;overflow:visible}
body[data-sport="volleyball"] .tactics-pitch:before,body[data-sport="volleyball"] .tactics-pitch:after{display:none}
body[data-sport="volleyball"] .tactics-player{width:50px;min-width:44px;height:44px;border-radius:12px;background:#fff;color:#203b30;box-shadow:0 2px 8px #183d241f;border:1px solid #cadbcf;font:700 14px/1 system-ui;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;transition:transform 150ms ease,box-shadow 150ms ease}
body[data-sport="volleyball"] .tactics-player small{font:500 9px/1.1 system-ui;white-space:nowrap}
body[data-sport="volleyball"] .tactics-player[data-line="0"]{border-top:3px solid #b67b42}
body[data-sport="volleyball"] .tactics-player[data-line="1"]{border-top:3px solid #44846b}
body[data-sport="volleyball"] .tactics-player[data-line="2"]{border-top:3px solid #5086be}
body[data-sport="volleyball"] .tactics-player:active{transform:translate(-50%,-50%) scale(.95)}
body[data-sport="volleyball"] .tactics-player:focus-visible{outline:3px solid #007aff;outline-offset:2px}
@media(max-width:600px){.topbar .sport-switch{min-height:44px;width:5.4rem}.project-actions{gap:6px!important}.topbar{flex-wrap:wrap}.brand small{max-width:14rem}}
@media(prefers-reduced-motion:reduce){.sport-switch,body[data-sport="volleyball"] .tactics-player{transition:none!important}}
@media(prefers-contrast:more){.topbar .sport-switch,body[data-sport="volleyball"] .tactics-player{border:1px solid #203b30}}
body[data-sport="volleyball"] .formation-settings>.field-row{display:block;margin-top:18px}
body[data-sport="volleyball"] .formation-settings>.field-row>div:first-child{display:none}


body[data-sport="volleyball"] .drag-handle{display:none}
body[data-sport="volleyball"] .tactics-player{width:62px}
body[data-sport="volleyball"] .tactics-player[data-line="3"]{border-top:3px solid #b36c48}
#liberoControls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #dce3e8;font-size:13px;color:#586271}
#liberoControls[hidden],#volleyballRoleField[hidden]{display:none}
@media(max-width:600px){body[data-sport="volleyball"] .tactics-player{width:48px}body[data-sport="volleyball"] .tactics-player small{font-size:8px}}
