#fm-tactics{position:fixed;inset:0;z-index:100000;background:#091621;color:#eef6fa;overflow:auto;padding:12px;padding-bottom:max(24px,env(safe-area-inset-bottom));box-sizing:border-box;font:15px system-ui;display:flex;flex-direction:column;gap:8px}#fm-tactics .ft-head,#fm-tactics .ft-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:center}#fm-tactics .ft-head{justify-content:space-between;color:#baff35}#fm-tactics button,#fm-tactics select,#fm-tactics input{width:auto;max-width:100%;margin:0;padding:9px 11px;border:1px solid #345363;border-radius:8px;background:#1c303d;color:#eef6fa;font:inherit;min-height:40px}#fm-tactics button.active,#fm-tactics button[data-a=save]{background:#baff35;color:#142017}#fm-tactics .ft-field{display:flex;justify-content:center;min-height:0}#fm-tactics canvas{display:block;width:min(100%,520px);height:auto;max-height:65vh;object-fit:contain;touch-action:none;aspect-ratio:3/4;border-radius:8px}#fm-tactics.ft-expanded canvas,#fm-tactics:fullscreen canvas{max-height:82vh}#ft-status,#ft-library{text-align:center}#ft-library div{display:flex;justify-content:center;gap:8px;margin:6px}#fm-tactics-link{color:#baff35!important}
#fm-tactics canvas{width:min(100%,520px,48.75vh);max-height:none;object-fit:fill}#fm-tactics.ft-expanded canvas,#fm-tactics:fullscreen canvas{width:min(100%,750px,61.5vh);max-height:none}
#fm-tactics .ft-controls{display:flex;flex-direction:column;gap:8px;flex-shrink:0}#fm-tactics.ft-collapsed .ft-controls{display:none}#fm-tactics .ft-field{flex-shrink:0;min-width:0}#fm-tactics .ft-always{flex-shrink:0}#fm-tactics canvas,#fm-tactics.ft-expanded canvas,#fm-tactics:fullscreen canvas{width:min(100%,520px,48.75vh);height:auto!important;max-height:none!important;aspect-ratio:3/4!important;object-fit:contain;flex:none}#fm-tactics.ft-landscape canvas,#fm-tactics.ft-landscape.ft-expanded canvas,#fm-tactics.ft-landscape:fullscreen canvas{width:min(100%,1100px,86.67vh);aspect-ratio:4/3!important}#fm-tactics.ft-collapsed canvas{width:min(100%,750px,63vh)}#fm-tactics.ft-collapsed.ft-landscape canvas{width:min(100%,1200px,112vh)} @media(orientation:landscape){#fm-tactics.ft-landscape:not(.ft-collapsed){display:grid;grid-template-columns:minmax(230px,30%) minmax(0,1fr);align-content:start}#fm-tactics.ft-landscape .ft-head,#fm-tactics.ft-landscape .ft-always{grid-column:1/-1}#fm-tactics.ft-landscape .ft-field{grid-column:2;grid-row:3/5;align-items:flex-start}#fm-tactics.ft-landscape .ft-controls{grid-column:1}#fm-tactics.ft-landscape:not(.ft-collapsed) canvas{width:min(100%,1100px,calc((100vh - 130px)*1.3333))}}

/* TACTICS PRO 2.0 */
#fm-tactics{
  gap:6px!important;
  padding:8px!important;
}
#fm-tactics .ft-head{
  gap:6px!important;
  padding:4px!important;
}
#fm-tactics .ft-head strong{
  color:#b5fa50;
  font-size:16px!important;
}
#fm-tactics .ft-bar{
  gap:5px!important;
}
#fm-tactics .ft-bar button{
  min-height:38px!important;
  padding:7px 10px!important;
  font-size:12px!important;
  border-radius:9px!important;
}
#fm-tactics select{
  min-height:38px!important;
  font-size:12px!important;
}
#ft-tools{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px!important;
}
#ft-tools button{
  min-width:0!important;
  padding:7px 3px!important;
  font-size:11px!important;
}
#fm-tactics .ft-field{
  border-radius:12px;
}
@media(min-width:768px){
  #ft-tools{
    grid-template-columns:repeat(10,minmax(0,1fr));
  }
}
#ft-tools button{
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px!important;
  min-height:54px!important;
}
#ft-tools button svg{
  width:22px;
  height:22px;
  color:#b5fa50;
}
#ft-tools button.active svg{
  color:#102000;
}

/* TACTICS PRO — STICKY TOOLS */
#ft-tools{
  position:sticky;
  top:0;
  z-index:20;
  background:#091621;
  padding:6px 0!important;
}
#ft-tools button{
  touch-action:manipulation;
}
#ft-tools button.active{
  background:#b5fa50!important;
  color:#102000!important;
  box-shadow:0 0 10px #b5fa5030;
}
#fm-tactics .ft-controls{
  flex-shrink:0;
}
#fm-tactics .ft-field{
  flex-shrink:0;
}
.ft-team-colors{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:6px;
}
.ft-team-colors label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
}
.ft-team-colors input[type=color]{
  width:36px;
  height:32px;
  padding:2px;
  border:1px solid #405463;
  border-radius:8px;
  background:#20313d;
}
.ft-zoom{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:4px;
  flex-shrink:0;
}
.ft-zoom button{
  min-width:48px;
  min-height:38px;
  background:#20313d;
  color:#b5fa50;
  border:1px solid #405463;
  border-radius:10px;
  font-size:17px;
  font-weight:700;
}
.ft-zoom{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:4px;
  flex-shrink:0;
}
.ft-zoom button{
  min-width:48px;
  min-height:38px;
  background:#20313d;
  color:#b5fa50;
  border:1px solid #405463;
  border-radius:10px;
  font-size:17px;
  font-weight:700;
}
.ft-zone-bar{
  display:flex;
  justify-content:center;
  gap:6px;
  padding:4px;
}
.ft-zone-bar button{
  flex:1;
  min-height:36px;
  background:#20313d;
  color:white;
  border:1px solid #405463;
  border-radius:9px;
  font-size:12px;
}
.ft-zone-bar button.active{
  background:#b5fa50;
  color:#102000;
}
.ft-motion{
  background:#132631;
  border:1px solid #405463;
  border-radius:14px;
  padding:10px;
  flex-shrink:0;
}
.ft-motion strong{
  color:#b5fa50;
  font-size:14px;
}
.ft-motion-buttons{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-top:8px;
}
.ft-motion button{
  background:#20313d;
  color:white;
  border:1px solid #405463;
  border-radius:8px;
  padding:9px;
  font-size:12px;
}
.ft-motion button.active{
  background:#b5fa50;
  color:#102000;
}
#ft-motion-count{
  color:#b5fa50;
  font-size:12px;
}
