/* style.css */
:root{
  /* Layout */
  --gap: 16px;

  /* =========================
     BRAND / ACCENT COLORS
     ========================= */

  --accent-primary: #5550FF;
  --accent-primary-hover: #908DFF;
  --accent-primary-active: #4742e6;

  /* =========================
     NEUTRAL COLORS
     ========================= */

  --neutral-primary: #ffffff;
  --neutral-secondary: #F7F7F7;
  --neutral-border: #eeeeee;

  --neutral-text-primary: #111111;
  --neutral-text-secondary: #666666;
  --neutral-inverse: #0C0020;

  /* =========================
     SYSTEM STATES
     ========================= */

  --state-success: #2e7d32;
  --state-danger: #c62828;
  --state-warning: #fdd835;
  --state-info: #1e88e5;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--neutral-primary);
  color: var(--neutral-text-primary);
  overflow: hidden;
}

#app{
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: var(--gap);
}

/* TOPBAR */
#topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}

.auth-status{
  font-weight: 900;
  font-size: 14px;
}

/* Brand (logo + title) */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.topbar-actions{
  display: flex;
  gap: 10px;
}

.topbar-btn{
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-btn:hover{ background: #fafafa; }
.topbar-btn.danger{ border-color: #f3b3b3; }

/* LAYOUT */
#layout{
  min-height: 0;
  display: grid;
  grid-template-rows: 60% 40%;
  gap: 8px;
}

/* TOP (pitch) */
#top{
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-height: 0;
}

/* UPDATED: pitch-wrap becomes 3-col grid so we can show HOME (left) and AWAY (right) labels */
#pitch-wrap{
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;              /* <-- místo grid */
  align-items: center;
  justify-content: center;    /* celý blok doprostřed */
  gap: 8px;                   /* mezera label ↔ hřiště */
  background: #fff;
}

.side-label{
  font-weight: 1000;
  font-size: 13px;
  letter-spacing: 0.10em;
  opacity: .70;
  user-select: none;
  pointer-events: none;
  writing-mode: vertical-rl;
  flex: 0 0 auto;             /* <-- důležité: nenasává šířku */
}

/* labely přitlačíme směrem k hřišti */
.side-label.left{
  transform: rotate(180deg);
}

.side-label.right{
  transform: rotate(0deg);
}

/* na mobilu ještě trochu menší */
/* mobile tweak */
@media (max-width: 680px){
  #pitch-wrap{ gap: 6px; }
  .side-label{ font-size: 12px; opacity: .6; }
}

#pitch-stage{
  position: relative;
  height: 100%;
  aspect-ratio: 708 / 400;
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;             /* <-- důležité */
}

#pitch-svg-container{
  position: absolute;
  inset: 0;
  z-index: 1;
}
#pitch-svg-container svg{
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

#points-layer{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#assist-banner{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #1e88e5;
  background: #e8f2fc;
  color: #0b5cad;
  font-size: 14px;
  width: fit-content;
}

.hidden{ display: none; }

/* BOTTOM */
#bottom{ min-height: 0; }

#bottom-inner{
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap);
  min-height: 0;

  padding: 12px;
  background: #fff;
  border-radius: 12px;
}

#bottom-left,
#bottom-middle,
#bottom-right{
  min-height: 0;
  min-width: 0;
}

/* COMMON */
.panel-title{
  font-weight: 900;
  font-size: 14px;
}
.muted{ opacity: .75; font-size: 12px; }

.btn{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.btn.primary{
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: #fff;
}

.btn.primary:hover{
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
}

.btn.primary:active{
  background: var(--accent-primary-active);
  border-color: var(--accent-primary-active);
}

.btn.ghost:hover{ background: #fafafa; }

/* LEFT panel */
#controls-panel{
  height: 100%;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#lineups{
  display: flex;
  gap: 10px;
}
#lineups .btn{
  flex: 1 1 auto;
}

#actions{
  display: flex;
  gap: 10px;
}
#actions button{
  flex: 1 1 auto;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
#actions button:hover{ background: #fafafa; }

#last-msg{
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #555;
  max-height: 45%;
  overflow: auto;
}

/* QUICKSTATS (middle) */
#quickstats-panel{
  height: 100%;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 0;
}

.qs-table{
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
  min-height: 0;
  display: grid;
  gap: 10px;
}

.qs-row{
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.qs-side{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qs-label{
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  opacity: .9;
}

.qs-val-wrap{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qs-val{
  font-weight: 1000;
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

.qs-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-weight: 1000;
  line-height: 1;
}
.qs-btn:hover{ background:#fafafa; }

.qs-warn{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 12px;
  color: #fff;
  background: #d32f2f;
}
.qs-warn.hidden{ display:none; }

.qs-footer{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 8px;
  gap: 10px;
}

/* FEED (right) */
#feed-panel{
  height: 100%;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 0;
}

.feed{
  border-radius: 12px;
  padding: 8px;
  min-height: 0;
  overflow: auto;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.feed-item{
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 8px 10px;
  display:grid;
  gap: 6px;
}

.feed-top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items: center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
}

.badge .dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display:inline-block;
  background: #999;
}
/* Away team dots as squares (Board live feed) */
.badge .dot.team-away{
  border-radius: 2px; /* nebo 0px pro ostrý čtverec */
}


.feed-actions{
  display:flex;
  gap: 6px;
  align-items:center;
}

.icon-btn{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}
.icon-btn:hover{ background:#fafafa; }
.icon-btn.danger{ border-color:#f3b3b3; }

.feed-sub{
  font-size: 12px;
  opacity: .8;
}

.feed-foot{
  display:flex;
  justify-content: flex-end;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

/* POINTS */
.point{
  position: absolute;
  width: 19px;
  height: 19px;

  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;   /* důležité */

  color: #fff;
  user-select: none;
  padding-bottom: 2px;
  pointer-events: auto;
}


.point.shot, .badge .dot.shot{ background: oklch(72.3% 0.219 149.579); }
.point.goal, .badge .dot.goal{ background: oklch(44.8% 0.119 151.328); }
.point.on-target, .badge .dot.on-target{ background: oklch(62.7% 0.194 149.214); }
.point.missed, .badge .dot.missed{ background: oklch(79.2% 0.209 151.711); }
.point.blocked, .badge .dot.blocked{ background: oklch(92.5% 0.084 155.995); }
.point.assist, .badge .dot.assist{ background: oklch(62.3% 0.214 259.815); }

.point.foul, .badge .dot.foul{ background: oklch(63.7% 0.237 25.331); }
.point.pass, .badge .dot.pass{ background: #3949ab; }

.point.duel, .badge .dot.duel{ background: oklch(70.5% 0.213 47.604); }
.point.success, .badge .dot.success{ background: oklch(83.7% 0.128 66.29); }
.point.failure, .badge .dot.failure{ background: oklch(47% 0.157 37.304); }

.point.gain, .badge .dot.gain{ background: oklch(71.4% 0.203 305.504); }
.point.loss, .badge .dot.loss{ background: oklch(55.8% 0.288 302.321); }
.point.technical, .badge .dot.technical{ background: oklch(43.8% 0.218 303.724); }

.point.standard, .badge .dot.standard{ background: oklch(65.6% 0.241 354.308); }

/* MODAL */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 50;
}

.modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}

.modal-card{
  width: min(720px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  overflow: hidden;
}

.modal-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.modal-title{
  font-weight: 900;
  font-size: 16px;
}

.modal-subtitle{
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.modal-close{
  border: 1px solid #eee;
  background: #fff;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.modal-close:hover{ background: #fafafa; }

.modal-body{ padding: 14px 16px; }

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.field input,
.field select,
.field textarea{
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  font-size: 14px;
  color: #111;
}

.secondary{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.secondary-title{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
  color: #111;
}

.hint{
  font-size: 12px;
  color: #777;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--neutral-border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--neutral-text-primary);

  display: inline-flex;       /* ✅ stabilní velikost */
  align-items: center;        /* ✅ */
  line-height: 1;             /* ✅ stejné pro active i non-active */
  box-sizing: border-box;     /* ✅ */
  outline: none;              /* ✅ aby focus ne“nafukoval” */
}

.chip:focus{
  outline: none;
}

.chip:hover{
  background: #fafafa;
}

.chip.active{
  border: 1px solid rgba(85, 80, 255, 0.55);
  background: rgba(85, 80, 255, 0.10);
  color: var(--neutral-text-primary);
  line-height: 1;
}

.chip.active:hover{
  border-color: rgba(85, 80, 255, 0.75);
  background: rgba(85, 80, 255, 0.14);
}

.modal-footer{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #eee;
}

@media (max-width: 680px){
  #bottom-inner{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }

  /* labels smaller on mobile */
  #pitch-wrap{ grid-template-columns: 44px 1fr 44px; }
  .side-label{ font-size: 12px; opacity: .6; }
}

.modal.hidden{ display: none !important; }
.modal-backdrop.hidden{ display: none !important; }

.lineup-grid{
  grid-template-columns: 1fr !important;
}

/* ============================================================
   LOGIN PAGE (added)
   ============================================================ */

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title{
  font-weight: 1000;
  letter-spacing: 0.02em;
}

#login-main{
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 12px;
}

.login-card{
  width: min(520px, 100%);
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 18px;
}

.login-title{
  margin: 0;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: 0.01em;
}

.login-subtitle{
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--neutral-text-secondary);
}

.login-form{
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.login-btn{
  margin-top: 4px;
  width: 100%;
}

.login-status{
  min-height: 18px;
  font-size: 13px;
  color: #555;
  opacity: .9;
}

.login-hint{
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  line-height: 1.35;
}

.login-link{
  font-weight: 900;
  color: var(--neutral-text-secondary);
  cursor: pointer;
  margin-left: 4px;
  transition: opacity 0.15s ease;
}

.login-link:hover{
  opacity: 0.7;
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.dash-app{
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: var(--gap);
  overflow: hidden;
}

/* topbar (same visual system) */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--neutral-border, #eee);
  border-radius: 12px;
  background: var(--neutral-primary, #fff);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}

.brand-logo{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* toolbar under nav */
.dash-toolbar{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px;
  border: 1px solid var(--neutral-border, #eee);
  border-radius: 12px;
  background: var(--neutral-secondary, #f7f7f7);
}

.dash-search{
  position: relative;
  flex: 1 1 auto;
  min-width: 260px;
}

.dash-search input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--neutral-border, #eee);
  background: var(--neutral-primary, #fff);
  font-weight: 800;
  font-size: 14px;
}

/* grid of match cards (3 columns on desktop) */
.match-grid{
  min-height: 0;
  overflow: auto;
  padding: 2px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.match-card{
  border: 1px solid var(--neutral-border, #eee);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.match-head{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:flex-start;
}

.match-title{
  font-weight: 1000;
  font-size: 16px;
  line-height: 1.15;
}

.match-date{
  font-size: 12px;
  font-weight: 900;
  opacity: .75;
  white-space: nowrap;
}

.match-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  align-content: flex-start;
  line-height: 1; 
}

.match-tags .tag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--neutral-border, #eee);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  opacity: .9;
}

.match-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-status{
  margin-top: 10px;
}

/* modal tag input row */
/* Fix: Selected tags box shouldn't stretch to height of left column */
.dash-tag-grid{
  align-items: start;          /* místo stretch */
}

.dash-tag-grid .field{
  align-self: start;           /* pojistka */
}

.dash-tag-add{
  display:flex;
  gap: 10px;
}

#selected-tags.chips{
  align-content: flex-start;
  align-items: flex-start;
}

/* responsive */
@media (max-width: 980px){
  .match-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-tag-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .dash-toolbar{
    flex-direction: column;
    align-items: stretch;
  }
  .dash-search{ min-width: 0; }
  .match-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   TAG ADMIN MODAL (unused tags)
   ============================================================ */

.tag-admin-list{
  display: grid;
  gap: 8px;
}

.tag-admin-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--neutral-border, #eee);
  border-radius: 12px;
  background: #fff;
}

.tag-admin-name{
  font-weight: 900;
  font-size: 13px;
}

.tag-admin-remove{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(229,57,53,0.55);
  background: #fff;
  color: #e53935;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.tag-admin-remove:hover{
  background: rgba(229,57,53,0.08);
}

/* ============================================================
   QUICKSTATS — Period selector + Checkbox (timeouts)
   ============================================================ */
/* Checkbox (timeouts) – custom UI but still accessible */
/* Time-out checkbox — stable (no layout jump) */
.qs-check{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.qs-check input[type="checkbox"]{
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  display: grid;
  place-items: center;
  font-weight: 1000;
  line-height: 1;
}

.qs-check input[type="checkbox"]:hover{
  background:#fafafa;
}

.qs-check input[type="checkbox"]:checked{
  border-color: rgba(85, 80, 255, 0.55);
  background: rgba(85, 80, 255, 0.10);
}

.qs-check input[type="checkbox"]:checked::after{
  content: "X";
}

/* Toggle box in bottom-left */
.toggle-box{
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.toggle-title{
  font-weight: 900;
  font-size: 12px;
  opacity: .75;
}

.toggle-item{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.toggle-item input{
  width: 16px;
  height: 16px;
}

/* Hide points by team (only affects pitch visuals) */
.point.team-hidden{
  display: none !important;
}

/* ============================================================
   Pitch Toggles — medium size (aligned with action buttons)
   ============================================================ */

#point-toggles.toggle-box{
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;

  padding: 12px;
  box-sizing: border-box;
  display: grid;
  gap: 10px;
}

/* row height tuned to match buttons */
#point-toggles .toggle-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  height: 38px;              /* same height as buttons */
  padding: 0 10px;

  border-radius: 12px;
  border: 1px solid #f0f0f0;
  background: #fff;

  cursor: pointer;
  user-select: none;
}

#point-toggles .toggle-item:hover{
  background: #fafafa;
}

#point-toggles .toggle-label{
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
}

/* switch proportionally larger */
#point-toggles input[type="checkbox"]{
  width: 40px;
  height: 22px;
  margin: 0;

  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #f3f3f3;

  appearance: none;
  -webkit-appearance: none;

  position: relative;
  transition: background .15s ease, border-color .15s ease;
}

/* knob */
#point-toggles input[type="checkbox"]::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);

  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ddd;

  transition: left .15s ease;
}

/* active state */
#point-toggles input[type="checkbox"]:checked{
  background: rgba(85, 80, 255, 0.18);
  border-color: rgba(85, 80, 255, 0.40);
}

#point-toggles input[type="checkbox"]:checked::after{
  left: 20px;
}

/* ============================================================
   LEFT PANEL footer alignment FIX
   - make left divider line align with middle/right
   - ONLY adjust left panel, do not touch qs-footer/feed-foot
   ============================================================ */

/* LEFT panel — make it structurally like middle/right */
#controls-panel{
  height: 100%;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 12px;

  display: grid;
  grid-template-rows: auto 1fr auto; /* title | body | footer */
  gap: 10px;
  min-height: 0;
}

/* scrollable inner body (like .qs-table / .feed) */
#controls-panel .controls-body{
  border-radius: 12px;
  padding: 10px;
  min-height: 0;
  overflow: auto;

  display: grid;
  gap: 12px;
}

/* footer aligned with others */
#last-msg{
  border-top: 1px solid #eee;
  padding-top: 8px;
  font-size: 13px;
  color: #555;

  margin-top: 0;     /* už nepotřebujeme */
  max-height: none;  /* důležité */
  overflow: hidden;  /* ať se footer nevlní */
}

/* Left panel: ensure content box doesn't stretch buttons vertically */
#controls-panel .controls-body{
  align-content: start;
}

#controls-panel #actions,
#controls-panel #lineups{
  align-self: start;
}

.btn.full{
  width: 100%;
}

/* Visual filters grid inside modal */
.vf-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vf-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  height: 38px;
  padding: 0 10px;

  border-radius: 12px;
  border: 1px solid #f0f0f0;
  background: #fff;

  cursor: pointer;
  user-select: none;
}

.vf-item:hover{ background:#fafafa; }

.vf-label{
  font-weight: 1000;
  font-size: 13px;
  letter-spacing: .2px;
}

/* switch (same as your medium toggle) */
.vf-item input[type="checkbox"]{
  width: 40px;
  height: 22px;
  margin: 0;

  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #f3f3f3;

  appearance: none;
  -webkit-appearance: none;

  position: relative;
  transition: background .15s ease, border-color .15s ease;
}

.vf-item input[type="checkbox"]::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);

  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ddd;

  transition: left .15s ease;
}

.vf-item input[type="checkbox"]:checked{
  background: rgba(85, 80, 255, 0.18);
  border-color: rgba(85, 80, 255, 0.40);
}

.vf-item input[type="checkbox"]:checked::after{
  left: 20px;
}

/* Assist disabled state */
.field.is-disabled{
  opacity: .45;
  pointer-events: none; /* blokne klikání na celý blok */
}

.field.is-disabled select{
  background: #f3f3f3;
}

/* default = neutral (unassigned) */
.point:not([data-team]),
.point[data-team=""]{
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.9);
  height: 21px;
  width: 21px;
}

/* HOME = circle solid */
.point[data-team="home"]{
  border-radius: 50%;
  outline: none;
}

/* AWAY = square solid */
.point[data-team="away"]{
  border-radius: 3px;
  outline: none;
}

/* ============================================================
   POINT TOOLTIP (Board hover)
   ============================================================ */

.point-tip{
  position: absolute;
  z-index: 20;
  pointer-events: none;

  min-width: 220px;
  max-width: 320px;

  background: rgba(255,255,255,0.98);
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);

  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.25;
}

/* little label row */
.point-tip .tip-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-weight: 1000;
  margin-bottom: 6px;
}

.point-tip .tip-sub{
  opacity: .85;
}

/* reuse dot styles from feed */
.point-tip .badge{
  margin: 0;
}
