/* Stable transport: navigation and scrubber above one permanent action row. */
.tactic-transport{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px;height:44px}
.tactic-transport-center{position:relative;min-width:0;height:44px}
.tactic-transport .studio-heading{height:18px;min-height:18px;margin:0;padding:0 110px 0 0}
.tactic-transport .studio-heading>div{height:18px;min-width:0;gap:4px;white-space:nowrap}
.tactic-transport .studio-heading strong{min-width:0;flex:1;max-width:100%;font-size:10px}
.tactic-transport .studio-heading small{flex-shrink:0;font-size:10px;line-height:18px}
.tactic-transport .tactic-time{position:absolute;top:0;right:0;margin:0;min-height:18px;font-size:10px;line-height:18px;white-space:nowrap}
.tactic-transport .tactic-time [data-tactic-frame-count]{display:none}
.tactic-transport .tactic-timeline input{height:26px;min-height:26px;margin:0;padding:0}
.tactic-transport .tactic-playback{height:26px;min-height:26px;margin:0}
.step-nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:44px;height:44px;padding:0;border:0;border-radius:7px;background:#edf2f6;color:#29465d;font:inherit;font-size:9px;cursor:pointer}
.step-nav-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.step-nav-button:disabled{color:#758794;background:#f1f4f6;opacity:.6;cursor:default}
.step-nav-button:focus-visible,[data-run-step]:focus-visible{outline:2px solid #315dc1;outline-offset:2px}
[data-run-step]{width:59px;min-width:59px;height:20px;min-height:20px;padding:0 1px;border:0;background:transparent;color:#29465d;font:inherit;font-size:10px;line-height:18px;cursor:pointer}
[data-run-step]:disabled{opacity:1;color:#627687}
.tactic-command-row{height:44px;grid-template-columns:minmax(52px,1fr) minmax(108px,1.7fr) minmax(52px,1fr) minmax(52px,1fr);gap:4px}
.tactic-command-row>.btn,.tactic-command-row>.playback-pair{height:44px}
.tactic-command-row .btn{white-space:nowrap}
.tactic-studio>.studio-extras{display:flex;flex-direction:column;gap:0;padding-top:0;border-top:0}
.studio-extras>.keyframe-details,.studio-extras>.studio-templates{width:100%;margin:0;padding:0;border:0;border-bottom:1px solid #dde5eb}
.studio-extras>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin:0;padding:14px 2px;list-style:none;font-size:14px;line-height:24px;color:#29465d}
.studio-extras>details>summary::-webkit-details-marker{display:none}
.studio-extras>details>summary::after{content:'';width:7px;height:7px;flex-shrink:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 6px 3px 0}
.studio-extras>details[open]>summary::after{transform:rotate(225deg);margin-top:5px}
.studio-extras>details[open]>summary{border-bottom:1px solid #e7edf1}
.studio-extras>.keyframe-details>[data-frame-editor]{padding:12px 0 16px}
.studio-extras>.studio-templates>form{padding-top:14px}
.studio-templates>summary>span{margin-left:auto;color:#63778a;font-size:12px}
.studio-speed{padding:8px 0;border-bottom:1px solid #dde5eb}
.run-step-editor{gap:8px 14px;padding:10px 0;border-bottom:1px solid #dde5eb}
.run-step-editor input{font-size:16px}
.tactic-football.is-run-selected svg{outline:2px solid #efd89a;outline-offset:3px;border-radius:50%}
.planned-run.planned-pass{stroke-dasharray:none}
/* Fields align to their content; a tall neighbour cannot stretch an input. */
.form-grid{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr))}
.form-field{align-content:start;gap:8px}
.form-field label{min-height:18px;line-height:18px}
.form-field input:not([type=checkbox]):not([type=radio]),.form-field select{height:48px;min-height:48px;font-size:16px}
.form-field textarea{min-height:96px;font-size:16px}
.form-grid>.team-role-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;min-width:0;padding:0}
.team-role-fields legend{padding:0;margin-bottom:10px;font-size:12px;line-height:18px}
.team-role-fields label{justify-content:center;gap:6px;min-width:0;min-height:46px;padding:8px;white-space:nowrap;font-size:13px}
.team-role-fields input{width:18px;height:18px;flex-shrink:0}
.form-field:has(input)>.field-clear{top:auto;bottom:5px}
.modal-head{align-items:center}
.modal-close{flex-shrink:0;min-width:44px;min-height:44px;border-radius:8px}
.app-confirm-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;background:rgba(17,31,43,.48);overscroll-behavior:contain}
.app-confirm{width:min(100%,420px);padding:24px;background:#fff;border-radius:14px;color:#253e52}
.app-confirm h2{margin:0;font-size:19px;font-weight:600;line-height:1.4}
.app-confirm p{margin:12px 0 24px;font-size:14px;line-height:1.7;color:#52697c}
.app-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.app-confirm-actions .btn{min-width:0;min-height:46px;padding:10px;font-size:14px}
.app-confirm-actions .is-danger{background:#a53b3b;border-color:#a53b3b;color:#fff}
@media(max-width:780px){
 .tactic-studio{padding-top:5px}
 .tactic-transport .studio-heading [data-tactic-title]{display:none}
 .tactic-transport .studio-heading{padding-right:105px}
 .tactic-command-row{margin-top:3px}
 .tactic-command-row .tactic-play{min-width:44px}
 .modal .modal-head h2{font-size:20px;line-height:1.4}
 .modal .form-actions{gap:10px}
 .app-confirm-backdrop{align-items:end;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){.tactic-command-row [data-tactic-keyframe] .control-glyph{display:none}.tactic-transport{gap:4px}.tactic-transport .studio-heading{padding-right:100px}.tactic-transport .studio-heading>div{gap:2px}[data-run-step]{width:54px;min-width:54px}}
.form-grid>.team-role-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.role-custom-toggle{grid-column:1/-1;min-height:44px;border:1px solid #dce5eb;border-radius:8px;background:#fff;color:#34576e;font:inherit;font-size:13px;cursor:pointer}
.role-custom-input{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0}
.role-custom-input[hidden]{display:none}
.team-role-fields .role-custom-input input{width:100%;min-width:0;min-height:44px;height:44px;padding:8px 10px;border:1px solid #dce5eb;border-radius:8px;background:#fff;color:#29465d;font:inherit;font-size:16px}
.role-custom-input button{flex-shrink:0;min-height:44px;padding:0 14px;border:0;border-radius:8px;background:#213e52;color:#fff;font:inherit;font-size:13px;cursor:pointer}
.custom-formation{margin-top:18px;padding-top:12px;border-top:1px solid #e3eaf0}
.custom-formation>[data-custom-formation-open]{min-height:44px}
.custom-formation form{padding-top:8px}
.custom-formation form[hidden]{display:none}
.custom-formation label{display:block;margin-bottom:8px;font-size:13px;color:#526c80}
.custom-formation form>div{display:flex;gap:8px}
.custom-formation input{min-width:0;width:100%;min-height:46px;padding:10px;border:1px solid #dce5eb;border-radius:8px;background:#fff;font:inherit;font-size:16px;color:#29465d}
.custom-formation .btn{flex-shrink:0;min-height:46px}
.tactic-transport{grid-template-columns:94px minmax(0,1fr);gap:8px}
.tactic-timing-modes{height:44px;display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#edf2f6;border-radius:8px}
.tactic-timing-modes button{min-width:44px;min-height:44px;border:0;border-radius:7px;background:transparent;color:#456174;font:inherit;font-size:12px;cursor:pointer}
.tactic-timing-modes button[aria-pressed=true]{background:#213e52;color:#fff}
.tactic-timing-modes button:disabled{opacity:.5;cursor:default}
.tactic-timing-modes button:focus-visible{outline:2px solid #315dc1;outline-offset:2px}
.tactic-authoring-mode{font-size:10px;line-height:18px;white-space:nowrap;color:#526b7f}
.tactic-command-row{grid-template-columns:minmax(50px,1fr) minmax(104px,1.7fr) minmax(66px,1.15fr) minmax(50px,1fr)}

/* Direct manipulation: one playback row, no drawing-tool modes. */
.tactic-command-row{grid-template-columns:minmax(120px,1.5fr) minmax(90px,1fr) minmax(60px,.8fr);gap:6px}
.tactic-command-row .is-editing{background:#213e52;border-color:#213e52;color:#fff}
.pitch-tools [hidden]{display:none}
.page-heading{justify-content:flex-end;min-height:0;margin:0 0 16px;padding:0}
.page-heading:has(>h1:only-child){margin:0}
#page-root h1:not(.visually-hidden){position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.auth-content{padding-top:20px}
