:root {
  /* ── Surfaces: graded dark system for depth ──────────────────────────────
     Base → Surface → Elevated gives a clear sense of layers instead of a
     flat black plane. Legacy names (--bg/--surface/--surface2) alias these. */
  --bg-base:             #0a0a0d;
  --bg-surface:          #16161b;
  --bg-surface-elevated: #1d1d24;
  --bg: var(--bg-base); --surface: var(--bg-surface); --surface2: var(--bg-surface-elevated);
  --border: #2a2d38;

  /* ── Accent tokens: split yellow so it keeps its signal value ────────────
     Using one gold for everything (logo, toggles, headers, rank text) drowns
     out its "pay attention" function. Three roles, distinct tokens:
       brand       = logo / identity            (full intensity)
       interactive = active buttons & toggles   (full intensity)
       text-label  = section headers / rank text (dampened gold)            */
  --accent-brand:       #ffd000;
  --accent-interactive: #ffd000;
  --text-label:         #b89b46;
  --accent: var(--accent-brand);   /* legacy alias for remaining accent uses */

  /* --muted: angehoben auf ~5.2:1 Kontrast gegen --bg-base (WCAG AA für
     Kleintext/Caps-Labels); vorher #5e6676 lag darunter. */
  --red: #e8452c; --text: #eceef5; --muted: #7c8395;
  --green: #26c970; --loss: #f05050; --blue: #4a9eff;
  --accent-dim: rgba(255,208,0,.12);
  --accent-glow: rgba(255,208,0,.35);
  /* Unified keyboard-focus ring — one accent halo for every interactive element */
  --focus-ring: 0 0 0 3px rgba(255,208,0,.28);

  /* ── Elevation: subtle shadows so cards lift off the background ──────────*/
  --shadow-card:     0 1px 3px rgba(0,0,0,.4);
  --shadow-elevated: 0 6px 20px rgba(0,0,0,.5);
  --shadow-modal:    0 24px 60px rgba(0,0,0,.6);

  /* ── Overlays: one unified scrim for every modal/overlay backdrop ────────*/
  --scrim: rgba(8,9,13,.72);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; min-height: 100vh; }

/* Subtle elevation on primary cards — adds depth without heavy borders. */
.player-card, .activity-card, .kanban-card, .training-block-card,
.drill-card, .coaching-drill-card, .coaching-player-card, .mk-map-card,
.focus-card, .op-analysis-card, .heute-form-card, .potm-card {
  box-shadow: var(--shadow-card);
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════════════ */

/* Card entrance: slide up + fade */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Modal entrance: subtle pop — rise + fade + micro-scale */
@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Section label slide in from left */
@keyframes labelReveal {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Shimmer for skeleton loaders */
@keyframes shimmer {
  0%   { background-position: -400% center; }
  100% { background-position:  400% center; }
}

/* Subtle rank image glow pulse */
@keyframes rankGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255,208,0,.18)); }
  50%       { filter: drop-shadow(0 0 18px rgba(255,208,0,.45)); }
}

/* POTM shimmer sweep */
@keyframes potmSweep {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(300%)  skewX(-20deg); }
}

/* Bar fill from zero */
@keyframes barFill {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Score counter tick */
@keyframes countUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Live dot */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   ANIMATION UTILITIES
═══════════════════════════════════════════════════════════ */

/* Player cards — staggered entrance */
.player-grid .player-card {
  opacity: 0;
  animation: cardEnter .38s cubic-bezier(.22,.68,0,1.2) forwards;
}
.player-grid .player-card:nth-child(1) { animation-delay: .04s; }
.player-grid .player-card:nth-child(2) { animation-delay: .10s; }
.player-grid .player-card:nth-child(3) { animation-delay: .16s; }
.player-grid .player-card:nth-child(4) { animation-delay: .22s; }
.player-grid .player-card:nth-child(5) { animation-delay: .28s; }

/* Section labels */
.section-label {
  animation: labelReveal .4s ease both;
}

/* Rank images subtle glow */
.rank-img {
  animation: rankGlow 4s ease-in-out infinite;
}

/* Bar fills — apply animation when rendered */
.map-bar-fill {
  animation: barFill .7s cubic-bezier(.4,0,.2,1) both;
}

/* POTM card — shimmer overlay on hover */
.potm-card { overflow: hidden; }
.potm-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-120%) skewX(-20deg);
}
.potm-card:hover::after {
  animation: potmSweep .7s ease forwards;
}

/* Stats counter fade-in */
.stat-val, .modal-stat .val {
  animation: countUp .3s ease both;
}

/* ═══════════════════════════════════════════════════════════
   SKELETON LOADER
═══════════════════════════════════════════════════════════ */

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--surface2) 25%,
    rgba(255,255,255,.05) 50%,
    var(--surface2) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 4px;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  animation: fadeIn .3s ease both !important;
}

/* Override stagger for skeleton cards */
.player-grid .skeleton-card:nth-child(n) {
  animation: fadeIn .3s ease both !important;
  animation-delay: 0s !important;
}
body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.007) 3px, rgba(255,255,255,0.007) 4px); pointer-events: none; z-index: 0; }
#root { position: relative; z-index: 1; }

/* ── HEADER · app bar ──────────────────────────────────────────────────────
   Flat elevated surface, hairline borders, aligned to the 1440px content grid.
   Restrained brand accent — confident type over decorative gradients/glows. */
.header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* Whisper-thin brand accent along the bottom edge — signal, not shout */
.header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,208,0,.55) 20%, rgba(255,208,0,.55) 80%, transparent);
  pointer-events: none;
}
.header-bar {
  max-width: 1440px; margin: 0 auto; padding: 13px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-left { display: flex; align-items: center; gap: 13px; }
.header-logo {
  height: 40px; width: 40px; border-radius: 10px; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
}
/* Brand lockup */
.header-brand { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.header-wordmark {
  font-size: 21px; letter-spacing: -.4px; line-height: 1;
  display: inline-flex; align-items: baseline; color: var(--text);
}
.header-wordmark .wm-siege { font-weight: 600; color: #c9cdd8; }
.header-wordmark .wm-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-brand);
  align-self: flex-end; margin: 0 0 4px 1px; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255,208,0,.55);
}
.header-wordmark .wm-accent {
  font-weight: 900;
  background: linear-gradient(175deg, #ffe27a 0%, var(--accent-brand) 45%, #ffb800 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header-tagline {
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted); line-height: 1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}
/* Live badge — compact status chip next to the brand */
.header-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 2px; padding: 4px 9px;
  font-size: 9px; letter-spacing: 1.4px; font-weight: 700; text-transform: uppercase;
  color: var(--green); background: rgba(38,201,112,.10);
  border: 1px solid rgba(38,201,112,.28); border-radius: 6px;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(38,201,112,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* Right cluster — meta · divider · actions, single toolbar row */
.header-right { display: flex; align-items: center; gap: 14px; }
.header-meta { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.header-meta-sep { width: 1px; height: 11px; background: var(--border); flex-shrink: 0; }
.header-date { font-size: 11px; color: var(--muted); letter-spacing: .2px; white-space: nowrap; }
.header-team-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 4px 3px 10px; background: var(--bg-surface-elevated); border: 1px solid var(--border); border-radius: 7px; white-space: nowrap; }
.header-team-badge[hidden] { display: none; }
.header-team-badge .htb-name { font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.header-team-badge .htb-plat { font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-brand); background: rgba(255,208,0,.1); padding: 2px 6px; border-radius: 4px; }
/* Mobile-only team line in the brand block (replaces the slogan on small screens) */
.header-team-mobile { display: none; align-items: center; gap: 6px; min-width: 0; }
.header-team-mobile .htm-name { font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-team-mobile .htm-plat { flex-shrink: 0; font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--accent-brand); background: rgba(255,208,0,.1); padding: 1px 5px; border-radius: 4px; }
.header-right-sep { width: 1px; height: 24px; background: var(--border); }
.header-actions { display: flex; align-items: center; gap: 8px; }
/* Global active-player selector — app-wide "whose data am I looking at" */
.hdr-player { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; background: var(--bg-surface-elevated); border: 1px solid var(--border); border-radius: 8px; }
.hdr-player[hidden] { display: none; }
.hdr-player-ic { display: inline-flex; color: var(--accent-brand); }
.hdr-player-ic svg { width: 15px; height: 15px; display: block; }
.hdr-player-select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 700;
  letter-spacing: .2px; cursor: pointer; padding: 0 20px 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8395' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.hdr-player-select option { background: var(--bg-surface-elevated); color: var(--text); font-weight: 600; }
/* App-bar buttons — consistent height, subtle elevation, restrained hover */
.hdr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.hdr-btn:hover { border-color: var(--muted); background: #23242d; }
.hdr-btn-ic { font-size: 13px; line-height: 1; opacity: .9; }
/* Primary action — subtle gold framing, the main workflow entry */
.hdr-btn-primary { color: var(--accent-brand); border-color: rgba(255,208,0,.3); }
.hdr-btn-primary:hover { border-color: var(--accent-brand); background: rgba(255,208,0,.08); box-shadow: 0 0 0 1px rgba(255,208,0,.12); }
/* Narrow desktop/tablet: drop the secondary meta line so the player selector
   and primary actions always fit on one comfortable row. */
@media (max-width: 1200px) {
  .header-meta, .header-right-sep { display: none; }
}

/* ── LAYOUT ── */
.container { max-width: 1440px; margin: 0 auto; padding: 36px 44px; }
.section-label { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--text-label); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }

/* ── LOADING / ERROR ── */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 65vh; gap: 18px; }
.spinner { width: 52px; height: 52px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--muted); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.loading-sub { color: var(--border); font-size: 11px; }
.error-box { display: none; background: rgba(232,69,44,0.08); border: 1px solid var(--red); border-radius: 10px; padding: 28px 32px; max-width: 700px; margin: 60px auto; text-align: center; }
.error-box h3 { color: var(--red); font-size: 18px; margin-bottom: 10px; }
.error-box p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.error-box code { background: var(--surface2); padding: 2px 8px; border-radius: 4px; font-size: 12px; color: var(--accent); }

/* ── PLAYER GRID ── */
.player-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 50px; }
@media (max-width: 1200px) { .player-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .player-grid { grid-template-columns: repeat(2,1fr); } }

.player-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; cursor: pointer; }
/* Restrained hover: neutral lift + elevation, subtle gold seam at the top edge.
   Loud full-gold borders are reserved for genuinely selected/active states. */
.player-card:hover { transform: translateY(-4px); border-color: #373b47; box-shadow: var(--shadow-elevated); }
.card-header { background: linear-gradient(160deg, var(--surface2), var(--surface)); padding: 20px 16px 14px; text-align: center; border-bottom: 1px solid var(--border); position: relative; }
.card-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,208,0,0.06), transparent); }
.rank-img { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto 8px; filter: drop-shadow(0 0 12px rgba(255,208,0,0.25)); position: relative; z-index: 1; }
.rank-placeholder { width: 72px; height: 72px; background: var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 8px; }
.player-name { font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 3px; position: relative; z-index: 1; }
.rank-badge { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-label); position: relative; z-index: 1; }
.rp-display { font-size: 11px; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; }
.card-body { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { text-align: center; }
.stat-val { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-val.up { color: var(--green); }
.stat-val.down { color: var(--loss); }
.stat-lbl { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
/* Visual hierarchy: ratio stats (K/D, W/L) are the coaching signal — emphasise.
   Raw counts (Kills, Spiele) are sample size only — de-emphasise. */
.stat-primary { padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.stat-primary .stat-val { font-size: 27px; letter-spacing: -0.5px; }
.stat-primary .stat-lbl { color: var(--text); font-weight: 600; }
.stat-secondary { padding-top: 1px; }
.stat-secondary .stat-val { font-size: 15px; font-weight: 600; color: #aeb4c0; }
.card-insight { padding: 8px 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.insight-tag { font-weight: 600; font-size: 10px; padding: 2px 7px; border-radius: 10px; letter-spacing: 1px; text-transform: uppercase; }
.insight-tag.pos { background: rgba(38,201,112,0.12); color: var(--green); border: 1px solid rgba(38,201,112,0.25); }
.insight-tag.neg { background: rgba(240,80,80,0.12); color: var(--loss); border: 1px solid rgba(240,80,80,0.25); }
.insight-tag.neu { background: rgba(255,208,0,0.10); color: var(--accent); border: 1px solid rgba(255,208,0,0.25); }
.card-foot { padding: 8px 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.xbox-tag { font-size: 10px; background: rgba(16,124,16,0.18); color: #4caf50; border: 1px solid rgba(76,175,80,0.3); padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }
.click-hint { font-size: 10px; color: var(--border); letter-spacing: 1px; transition: color 0.15s; }
.player-card:hover .click-hint { color: var(--accent); }

/* ── GAMES TABLE ── */
.games-table { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 50px; }
.games-note { padding: 10px 20px; background: rgba(255,208,0,0.06); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.games-note span { color: var(--accent); }
.gt-head, .gt-row { display: grid; grid-template-columns: 170px repeat(5, 1fr) 110px; padding: 12px 20px; align-items: center; }
.gt-head { background: var(--surface2); border-bottom: 1px solid var(--border); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.gt-row { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.gt-row:last-child { border-bottom: none; }
.gt-row:hover { background: rgba(255,208,0,0.04); }
.gt-name { font-weight: 600; font-size: 14px; }
.game-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.game-pill.w { background: rgba(38,201,112,0.12); color: var(--green); border: 1px solid rgba(38,201,112,0.28); }
.game-pill.l { background: rgba(240,80,80,0.12); color: var(--loss); border: 1px solid rgba(240,80,80,0.28); }
.rp-delta { font-size: 11px; font-weight: 600; margin-top: 3px; display: block; }
.rp-delta.p { color: var(--green); }
.rp-delta.n { color: var(--loss); }
.trend-cell { text-align: center; }
.trend-icon { font-size: 22px; }
.trend-wr { font-size: 11px; color: var(--muted); margin-top: 2px; }
.no-games { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── COACHING REPORT ── */
.coaching-grade-row { display: flex; gap: 14px; align-items: flex-start; }
.coaching-grade { width: 54px; height: 54px; flex-shrink: 0; border: 2px solid; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; line-height: 1; gap: 1px; }
.coaching-grade span { font-size: 11px; }
.coaching-columns { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.coaching-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.coaching-item.good { background: rgba(38,201,112,0.07); border: 1px solid rgba(38,201,112,0.18); }
.coaching-item.warn { background: rgba(240,80,80,0.07); border: 1px solid rgba(240,80,80,0.18); }
.ci-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.coaching-tilt { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 10px 12px; background: rgba(74,158,255,0.08); border: 1px solid rgba(74,158,255,0.25); border-radius: 8px; font-size: 12px; color: var(--blue); }
.coaching-tips { margin-top: 12px; }
.coaching-tips-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.coaching-tip { font-size: 12px; color: var(--muted); padding: 4px 0; border-bottom: 1px solid var(--border); }
.coaching-tip:last-child { border-bottom: none; }

/* ── OPERATOR RECOMMENDATIONS ── */
.rec-section { margin-bottom: 14px; }
.rec-section-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.rec-row { background: var(--surface2); border-radius: 8px; padding: 9px 12px; margin-bottom: 5px; }
.rec-row:last-child { margin-bottom: 0; }
.rec-op-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.rec-op-stats { font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 1px; margin-left: 6px; }
.rec-tip { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ── MAP SECTION ── */
.map-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 50px; }
.map-note { padding: 10px 20px; background: rgba(255,208,0,0.06); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); letter-spacing: 0.5px; line-height: 1.5; }
.map-note span { color: var(--accent); }
.map-head { display: grid; grid-template-columns: 1fr 130px 90px 60px; padding: 10px 20px; background: var(--surface2); border-bottom: 1px solid var(--border); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.map-row { display: grid; grid-template-columns: 1fr 130px 90px 60px; padding: 13px 20px; border-bottom: 1px solid var(--border); align-items: center; transition: background 0.15s; }
.map-row:last-child { border-bottom: none; }
.map-row:hover { background: rgba(255,208,0,0.04); }
.map-name { font-weight: 600; font-size: 13px; }
.map-bar-wrap { display: flex; align-items: center; gap: 8px; }
.map-bar-bg { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.map-bar-fill { height: 100%; border-radius: 3px; }
.map-pct { font-size: 12px; font-weight: 700; min-width: 36px; text-align: right; }
.map-record { font-size: 12px; color: var(--muted); text-align: center; }
.map-total { font-size: 12px; color: var(--muted); text-align: right; padding-right: 4px; }

/* ── META TABS ── */
.meta-tab-bar { display: flex; align-items: center; gap: 4px; padding: 8px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.meta-tab-btn { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 5px 14px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.meta-tab-btn:hover { border-color: var(--accent); color: var(--text); }
.meta-tab-btn.active { background: var(--accent-interactive); color: #000; border-color: var(--accent-interactive); }

/* ── BAN SUGGESTIONS ── */
.ban-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 0; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: start; transition: background .15s; }
.ban-row:last-child { border-bottom: none; }
.ban-row:hover { background: rgba(255,208,0,0.03); }
.ban-map-name { font-weight: 700; font-size: 13px; padding-top: 4px; }
.ban-side { padding: 0 8px; }
.ban-side-label { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; margin-bottom: 6px; }
.ban-chips { display: flex; flex-direction: column; gap: 4px; }
.ban-chip-wrap { display: flex; align-items: baseline; gap: 7px; }
.ban-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid; white-space: nowrap; flex-shrink: 0; }
.ban-reason { font-size: 11px; color: var(--muted); line-height: 1.3; }

/* ── ALL-TIME CARD extras ── */
.at-card-banner { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0 2px; background: rgba(255,208,0,0.05); border-bottom: 1px solid var(--border); }

/* ── MAP META ── */
.meta-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 50px; }
.meta-note { padding: 10px 20px; background: rgba(255,208,0,0.06); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.meta-note span { color: var(--accent); }
.meta-load-btn { margin-left: auto; background: var(--accent); color: #000; border: none; border-radius: 6px; padding: 5px 14px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: opacity 0.15s; flex-shrink: 0; }
.meta-load-btn:hover { opacity: 0.85; }
.meta-load-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.meta-row { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 0; padding: 12px 20px; border-bottom: 1px solid var(--border); align-items: start; transition: background 0.15s; }
.meta-row:last-child { border-bottom: none; }
.meta-row:hover { background: rgba(255,208,0,0.03); }
.meta-map-name { font-weight: 700; font-size: 13px; padding-top: 4px; }
.meta-side { display: flex; align-items: flex-start; gap: 8px; padding: 0 8px; }
.meta-side-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.meta-side-label.atk { background: rgba(74,158,255,0.15); color: var(--blue); }
.meta-side-label.def { background: rgba(255,208,0,0.15); color: var(--accent); }
.meta-ops { display: flex; flex-wrap: wrap; gap: 5px; }
.op-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; transition: opacity 0.15s; white-space: nowrap; }
.op-chip.op-unloaded { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.op-chip.op-none { background: rgba(255,255,255,0.03); color: var(--muted); border: 1px solid var(--border); opacity: 0.5; }
.op-chip.op-good { background: rgba(38,201,112,0.12); color: var(--green); border: 1px solid rgba(38,201,112,0.3); }
.op-chip.op-ok { background: rgba(255,208,0,0.10); color: var(--accent); border: 1px solid rgba(255,208,0,0.3); }
.op-chip.op-low { background: rgba(240,80,80,0.10); color: var(--loss); border: 1px solid rgba(240,80,80,0.25); }
.op-cov { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 400; opacity: 0.85; }
.op-cov-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.op-cov-dot.good { background: var(--green); }
.op-cov-dot.ok   { background: var(--accent); }
.op-cov-dot.low  { background: var(--loss); }
.op-cov-dot.none { background: var(--muted); width: auto; height: auto; font-size: 9px; }

/* ── POTM ── */
.potm-wrap { margin-bottom: 50px; }
.potm-card { background: linear-gradient(135deg, #17130a, #1c1f2a, #0c0e13); border: 1px solid var(--accent); border-radius: 16px; padding: 40px 44px; display: flex; align-items: center; gap: 40px; position: relative; overflow: hidden; }
.potm-card::before { content: '★'; position: absolute; right: 20px; top: -60px; font-size: 260px; color: rgba(255,208,0,0.04); pointer-events: none; line-height: 1; }
.potm-left { flex-shrink: 0; text-align: center; }
.trophy-icon { font-size: 70px; display: block; line-height: 1; margin-bottom: 10px; }
.potm-badge-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); line-height: 1.5; }
.potm-rank-img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(255,208,0,0.5)); }
.potm-info { flex: 1; position: relative; z-index: 1; }
.potm-sub { font-size: 11px; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.potm-name { font-size: 44px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: var(--text); line-height: 1; margin-bottom: 20px; }
.potm-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 16px; }
.ps-item .ps-val { font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.ps-item .ps-lbl { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.potm-reason { font-size: 13px; color: var(--muted); font-style: italic; line-height: 1.6; border-left: 2px solid var(--accent); padding-left: 12px; }

/* ── MOTIVATION ── */
.motivation { text-align: center; padding: 52px 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; position: relative; overflow: hidden; margin-bottom: 36px; }
.motivation::before { content: '"'; position: absolute; left: 10px; top: -70px; font-size: 260px; color: rgba(255,208,0,0.05); font-family: Georgia, serif; pointer-events: none; }
.quote-text { font-size: 28px; font-weight: 300; color: var(--text); line-height: 1.55; max-width: 860px; margin: 0 auto 18px; position: relative; z-index: 1; }
.quote-text strong { color: var(--accent); font-weight: 700; }
.quote-sub { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); animation: fadeIn .18s ease; }
.modal-overlay.hidden { display: none !important; }
.modal { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-modal); animation: modalPop .22s cubic-bezier(.4,0,.2,1); }
.modal-header { padding: 26px 32px 22px; background: var(--surface2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 22px; }
.modal-rank-img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); flex-shrink: 0; }
.modal-player-name { font-size: 24px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.modal-rank-line { font-size: 12px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.modal-rp { font-size: 11px; color: var(--muted); margin-top: 2px; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.modal-close:hover { border-color: var(--muted); color: var(--text); background: var(--surface2); }
.modal-body { padding: 24px 32px; }
.modal-sec { margin-bottom: 26px; }
.modal-sec-title { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-label); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.modal-sec-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.modal-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.modal-stat { background: var(--surface2); border-radius: 8px; padding: 12px; text-align: center; }
.modal-stat .val { font-size: 22px; font-weight: 700; line-height: 1; }
.modal-stat .val.up { color: var(--green); }
.modal-stat .val.down { color: var(--loss); }
.modal-stat .val.acc { color: var(--accent); }
.modal-stat .lbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.op-head { display: grid; grid-template-columns: 26px 1fr 60px 60px 70px 60px; gap: 10px; padding: 6px 14px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.op-row { display: grid; grid-template-columns: 26px 1fr 60px 60px 70px 60px; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface2); border-radius: 8px; margin-bottom: 6px; font-size: 12px; }
.op-row:last-child { margin-bottom: 0; }
.op-rank-num { font-size: 11px; color: var(--muted); text-align: center; }
.op-name { font-weight: 600; }
.op-side { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.op-side.atk { color: var(--blue); }
.op-side.def { color: var(--accent); }
.op-val { text-align: center; font-weight: 600; }
.op-val.kd-good { color: var(--green); }
.op-val.kd-bad { color: var(--loss); }
.recent-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.chip.w { background: rgba(38,201,112,0.12); color: var(--green); border: 1px solid rgba(38,201,112,0.28); }
.chip.l { background: rgba(240,80,80,0.12); color: var(--loss); border: 1px solid rgba(240,80,80,0.28); }
/* RP trend chart container (replaces old bar sparkline) */
.rp-spark { display: block; margin-top: 10px; width: 100%; }
.rp-spark svg { display: block; overflow: visible; }

/* ── Sortable operator table ── */
.op-head-s {
  display: grid; padding: 5px 10px; margin-bottom: 4px;
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); background: var(--surface2);
  border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--border);
}
.op-th-sortable {
  cursor: pointer; transition: color .15s; text-align: center;
  padding: 3px 0; user-select: none;
}
.op-th-sortable:hover { color: var(--text); }
.op-th-sortable.active { color: var(--accent); }
.op-row-s {
  display: grid; align-items: center;
  padding: 9px 10px; background: var(--surface2);
  border-radius: 0; border-bottom: 1px solid var(--border);
  font-size: 12px; transition: background .12s;
}
.op-row-s:last-of-type { border-bottom: none; border-radius: 0 0 6px 6px; }
.op-row-s:hover { background: rgba(255,208,0,.04); }
.kd-great { color: #26c970; font-weight: 700; }
.op-load-more {
  width: 100%; margin-top: 6px;
  background: var(--surface2); border: 1px dashed var(--border);
  color: var(--muted); font-size: 11px; font-weight: 600;
  letter-spacing: .5px; padding: 8px 0; border-radius: 6px;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.op-load-more:hover { border-color: var(--accent); color: var(--accent); }
.modal-loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.modal-spinner { width: 32px; height: 32px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto 12px; }
.insight-list { display: flex; flex-direction: column; gap: 8px; }
.insight-item { background: var(--surface2); border-radius: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.4; display: flex; align-items: flex-start; gap: 10px; }
.insight-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.insight-text { color: var(--text); }
.insight-text span { color: var(--accent); font-weight: 600; }

/* ── MODAL RANK PROGRESS BAR ── */
.modal-rank-progress { margin-top: 8px; }
.mrp-bar-bg  { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.mrp-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; animation: barFill .5s ease; }
.mrp-label   { font-size: 10px; color: var(--muted); letter-spacing: .5px; }

/* ── MODAL STAT BAR (compact, always visible) ── */
.modal-stat-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  padding: 12px 32px; background: var(--surface2);
  border-bottom: 1px solid var(--border); gap: 4px 0;
}
.msb-item { text-align: center; padding: 0 4px; }
.msb-val  { font-size: 18px; font-weight: 700; line-height: 1; }
.msb-val.up { color: var(--green); }
.msb-val.down { color: var(--loss); }
.msb-lbl  { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* ── MODAL TABS ── */
.modal-tabs {
  display: flex; gap: 2px; padding: 8px 12px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.modal-tab {
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 6px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: .3px;
}
.modal-tab:hover   { color: var(--text); border-color: var(--border); }
.modal-tab.active  { background: var(--accent-interactive); color: #000; border-color: var(--accent-interactive); }
.modal-tab-content { }
.modal-tab-content.hidden { display: none; }

/* ── TEAM STATS BAR ── */
.team-stats-bar { background: rgba(255,208,0,0.06); border-bottom: 1px solid var(--border); padding: 6px 44px; display: flex; align-items: center; gap: 0; flex-wrap: wrap; min-height: 38px; }
.tstat-item { font-size: 12px; color: var(--muted); }
.tstat-item strong { color: var(--text); font-weight: 700; margin-left: 4px; }
.tstat-sep { color: var(--border); margin: 0 14px; font-size: 14px; }

/* ── VIEW TOGGLE ── */
.view-toggle { display: flex; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; margin-left: auto; }
.toggle-btn { background: transparent; border: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; padding: 5px 16px; border-radius: 6px; cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.toggle-btn:hover { color: var(--text); }
.toggle-btn.active { background: var(--accent-interactive); color: #000; }
.toggle-loading { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-left: 10px; animation: pulse 1.5s infinite; }

/* ── PLANNER OPEN BUTTON (header) ── */

/* ── PLANNER MODAL ── */
.planner-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); animation: fadeIn .18s ease; }
.planner-overlay.hidden { display: none !important; }
.planner-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 780px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-modal); animation: modalPop .22s cubic-bezier(.4,0,.2,1); }
.planner-header { padding: 22px 28px 18px; background: var(--surface2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.planner-title { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.planner-week-label { font-size: 12px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.planner-nav { display: flex; align-items: center; gap: 6px; }
.plan-nav-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 32px; height: 32px; border-radius: 8px; font-size: 18px; cursor: pointer; transition: border-color 0.15s, background 0.15s; display: flex; align-items: center; justify-content: center; }
.plan-nav-btn:hover { border-color: var(--muted); background: var(--surface2); }

/* ── PLANNER BODY ── */
#plannerBody { overflow-y: auto; flex: 1; }
.plan-banner { padding: 10px 20px; background: rgba(255,208,0,0.08); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
.plan-share { padding: 10px 20px; border-bottom: 1px solid var(--border); }
.plan-wa-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: #fff; background: #25d366; border: 0; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  transition: filter .15s, transform .1s; }
.plan-wa-btn:hover { filter: brightness(1.05); }
.plan-wa-btn:active { transform: translateY(1px); }
.plan-wa-btn svg { flex-shrink: 0; }
.plan-banner.muted { color: var(--muted); }
.plan-banner strong { color: var(--accent); }
.plan-kv-hint { padding: 8px 20px; background: rgba(240,80,80,0.08); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.plan-kv-hint a { color: var(--accent); }
.plan-scroll { overflow-x: auto; padding: 0 0 4px; }

/* ── PLAN TABLE ── */
.plan-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.plan-table thead th { padding: 10px 8px; background: var(--surface2); border-bottom: 1px solid var(--border); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.plan-name-head { text-align: left; padding-left: 20px !important; min-width: 130px; }
.plan-day-head { text-align: center; min-width: 62px; line-height: 1.3; }
.plan-day-head.today { color: var(--accent); }
.plan-day-date { font-size: 10px; font-weight: 400; }
.plan-name { padding: 12px 8px 12px 20px; font-size: 13px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--border); }
.plan-name.is-me { color: var(--accent); }
.plan-row:hover { background: rgba(255,208,0,0.03); }
.plan-row.my-row { background: rgba(255,208,0,0.04); }
.plan-cell { text-align: center; border-bottom: 1px solid var(--border); padding: 10px 6px; font-size: 13px; font-weight: 700; color: var(--green); width: 62px; }
.plan-cell.editable { cursor: pointer; transition: background 0.12s; }
.plan-cell.editable:hover { background: rgba(255,255,255,0.05); }
.plan-cell:not(.avail) { color: var(--border); font-size: 11px; }
.plan-cell.avail { background: rgba(38,201,112,0.07); }
.plan-cell.editable.avail:hover { background: rgba(240,80,80,0.08); }
.plan-cell.editable:not(.avail):hover { background: rgba(38,201,112,0.10); }
.plan-total { text-align: center; padding: 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.plan-total.best { color: var(--green); background: rgba(38,201,112,0.06); }
.plan-total.zero { color: var(--border); }
.plan-total-denom { font-size: 10px; font-weight: 400; opacity: 0.6; }
.plan-table tfoot tr td { border-top: 2px solid var(--border); border-bottom: none; }

/* ── PLANNER FOOTER ── */
.plan-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--surface2); flex-shrink: 0; }
.plan-footer-label { font-size: 12px; color: var(--muted); }
.plan-footer-label strong { color: var(--accent); }
.plan-pick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-pick-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.plan-pick-btn:hover { border-color: var(--accent); color: var(--accent); }
.plan-switch-btn { background: var(--surface); border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; transition: border-color 0.15s; }
.plan-switch-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── ALL-TIME CARD extras ── */
.at-seasons { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; }
.rank-history { display: flex; align-items: flex-end; gap: 3px; height: 28px; padding: 0 14px 8px; }
.rh-bar { flex: 1; border-radius: 2px 2px 0 0; background: var(--accent); opacity: 0.5; min-height: 4px; transition: opacity 0.2s; }
.rh-bar:last-child { opacity: 1; }
.rh-bar:hover { opacity: 0.9; }

/* ── SEASON TIMER ── */
.season-timer { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.season-timer-clickable { cursor: pointer; border-radius: 6px; padding: 2px 6px; transition: background .15s; }
.season-timer-clickable:hover { background: rgba(255,208,0,.08); }
.season-timer-clickable::after { content: '›'; font-size: 12px; color: var(--muted); margin-left: 3px; }
.timer-label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.timer-value { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 1px 7px; border-radius: 5px; }
.timer-ok     { color: var(--green);  background: rgba(38,201,112,0.12); }
.timer-warn   { color: var(--accent); background: rgba(255,208,0,0.12); }
.timer-urgent { color: var(--loss);   background: rgba(240,80,80,0.12); animation: pulse 1.5s infinite; }
.season-over  { font-size: 11px; color: var(--muted); letter-spacing: 1.4px; }

/* ── PEAK RANK on card ── */
.card-foot { padding: 8px 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.peak-tag { font-size: 10px; letter-spacing: 1px; }
.peak-higher { color: var(--accent); font-weight: 600; }
.peak-same   { color: var(--muted); }

/* ── SESSION ANALYSIS ── */
.sess-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px; background: rgba(255,208,0,0.06); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.sess-header:first-child { border-top: none; }
.sess-label { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.sess-date  { font-size: 12px; color: var(--text); font-weight: 600; }
.sess-meta  { font-size: 11px; color: var(--muted); }
.sess-players { font-size: 11px; color: var(--muted); margin-left: auto; font-style: italic; }
.sess-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.sess-row:hover { background: rgba(255,208,0,0.03); }
.sess-player-name { font-size: 13px; font-weight: 600; min-width: 110px; flex-shrink: 0; }
.sess-cells { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.sess-cell  { display: flex; flex-direction: column; align-items: center; }
.sess-summary { min-width: 60px; text-align: right; flex-shrink: 0; }
.sum-good { color: var(--green);  font-size: 12px; font-weight: 700; }
.sum-bad  { color: var(--loss);   font-size: 12px; font-weight: 700; }
.sum-neu  { color: var(--accent); font-size: 12px; font-weight: 700; }

/* ── FOOTER / UTILS ── */
.footer { text-align: center; padding: 18px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.footer a { color: var(--accent); text-decoration: none; }
.footer-legal { margin-top: 8px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }

/* Privacy / analytics notice bar */
.privacy-notice {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 10001; max-width: min(680px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
  box-shadow: var(--shadow-elevated, 0 8px 28px rgba(0,0,0,.5));
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.privacy-notice .pn-text { flex: 1 1 260px; }
.privacy-notice .pn-link { color: var(--accent); text-decoration: none; white-space: nowrap; }
.privacy-notice .pn-link:hover { text-decoration: underline; }
.privacy-notice .pn-ok {
  background: var(--accent); color: #000; border: none;
  padding: 7px 16px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .3px;
  transition: opacity .15s, transform .1s;
}
.privacy-notice .pn-ok:hover { opacity: .9; }
.privacy-notice .pn-ok:active { transform: translateY(1px); }
/* Keep clear of the mobile bottom nav */
@media (max-width: 720px) {
  .privacy-notice { bottom: 76px; }
}
.hidden { display: none !important; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── MOBILE & PWA ── */
@media (max-width: 640px) {
  /* Header */
  .header-bar { padding: 11px 14px; gap: 12px; }
  .header-left { gap: 10px; }
  .header-logo { height: 34px; width: 34px; border-radius: 9px; }
  .header-wordmark { font-size: 17px; }
  .header-tagline { font-size: 9px; letter-spacing: 1.4px; max-width: 160px; }
  /* Team name stays below the slogan with a little breathing room */
  .header-team-mobile:not([hidden]) { display: flex; max-width: 160px; margin-top: 4px; }
  .header-live-badge { padding: 3px 7px; font-size: 8px; }
  /* Drop the meta line + divider; keep compact icon-only actions */
  .header-meta, .header-right-sep { display: none; }
  .header-right { gap: 8px; }
  .hdr-btn { height: 32px; width: 32px; padding: 0; justify-content: center; }
  .hdr-btn span:not(.hdr-btn-ic) { display: none; }
  /* Player selector stays (core), just compact */
  .hdr-player { height: 32px; padding: 0 4px 0 8px; gap: 5px; }
  .hdr-player-ic { display: none; }
  .hdr-player-select { font-size: 12px; max-width: 96px; }

  /* Layout */
  .container { padding: 16px 12px 80px; } /* bottom pad clears fixed nav */
  .section-label { font-size: 10px; letter-spacing: 3px; }

  /* Player grid */
  .player-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .stat-val { font-size: 17px; }

  /* ── Team stats bar → fixed bottom navigation ── */
  .team-stats-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    border-top: 2px solid var(--border);
    border-bottom: none; min-height: unset;
    background: var(--surface);
    box-shadow: 0 -4px 24px rgba(0,0,0,.45);
  }
  /* Hide the team-stat text content; keep only the toggle */
  .tstat-item, .tstat-sep { display: none; }
  #tstatContent { display: none; }

  /* Toggle becomes a full-width row of icon tabs */
  .view-toggle {
    width: 100%; margin: 0; border-radius: 0; border: none;
    padding: 0; gap: 0; background: transparent;
    justify-content: stretch;
  }
  .toggle-btn {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 54px; padding: 6px 2px; border-radius: 0;
    font-size: 0; /* hide original label text */ white-space: normal;
    gap: 2px; position: relative;
  }
  /* Icon via ::before */
  .toggle-btn::before {
    font-size: 20px; line-height: 1.1; display: block;
  }
  /* Short label via ::after using data-label attribute */
  .toggle-btn::after {
    font-size: 9px; font-weight: 700; letter-spacing: .4px; display: block;
    content: attr(data-label); text-transform: uppercase;
    color: var(--muted); font-family: inherit;
  }
  #btnSeason::before  { content: '📊'; }
  #btnAlltime::before { content: '🏆'; }
  #btnHeute::before   { content: '🎯'; }
  #btnIngame::before  { content: '🎮'; }
  .toggle-btn.active { background: transparent; }
  .toggle-btn.active::after { color: var(--accent-interactive); }
  /* Heute / Ingame tints */
  .heute-btn::after  { color: var(--accent); }
  .ingame-btn::after { color: var(--blue); }
  .heute-btn.active::after  { color: var(--accent-interactive); }
  .ingame-btn.active::after { color: var(--blue); }
  /* Active indicator line at top */
  .toggle-btn.active::before { filter: drop-shadow(0 0 4px rgba(255,208,0,.5)); }

  /* ── Operator table: horizontal scroll ── */
  [id^="op-container-"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .op-head-s, .op-row-s { min-width: 420px; }

  /* ── Map table: compact columns ── */
  .map-head, .map-row {
    grid-template-columns: 1fr 88px 66px 42px;
    padding: 10px 12px;
  }
  .map-record, .map-total { font-size: 11px; }

  /* ── Meta rows: stack to single column ── */
  .meta-row {
    grid-template-columns: 1fr;
    gap: 6px; padding: 12px 14px;
  }
  .meta-map-name { padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .meta-side { padding: 0; }

  /* ── Ban rows ── */
  .ban-row { grid-template-columns: 1fr; gap: 8px; }

  /* ── Meta tab bar ── */
  .meta-tab-bar { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  .meta-load-btn { margin-left: 0; }

  /* ── Session rows ── */
  .sess-header { flex-wrap: wrap; gap: 6px; padding: 8px 12px; font-size: 11px; }
  .sess-players { margin-left: 0; }
  .sess-row { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .sess-player-name { min-width: 80px; font-size: 12px; }
  .sess-cells { gap: 4px; }

  /* ── Modal: slide up from bottom ── */
  .modal { max-width: 100%; margin: 0; border-radius: 16px 16px 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-header { padding: 14px 14px 10px; gap: 10px; }
  .modal-rank-img { width: 48px; height: 48px; }
  .modal-player-name { font-size: 18px; }
  .modal-body { padding: 14px; }
  .modal-stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Modal stat bar: 3-col instead of 6 */
  .modal-stat-bar {
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 14px;
  }
  .msb-val { font-size: 15px; }
  /* Modal tabs: smaller */
  .modal-tab { padding: 5px 11px; font-size: 11px; }

  /* ── POTM ── */
  .potm-card { flex-direction: column; padding: 24px 16px; gap: 14px; text-align: center; }
  .potm-name { font-size: 26px; }
  .potm-stats { justify-content: center; gap: 14px; }
  .ps-item .ps-val { font-size: 22px; }

  /* ── Quote ── */
  .quote-text { font-size: 17px; }
  .motivation { padding: 36px 20px; }

  /* ── Planner ── */
  .planner-modal { border-radius: 16px 16px 0 0; max-height: 95vh; }
  .planner-overlay { align-items: flex-end; padding: 0; }
  .plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan-table { min-width: 420px; }

  /* ── All-time ── */
  .at-hist-row { overflow-x: auto; }

  /* ── Footer: pad above bottom nav ── */
  .footer { font-size: 10px; padding: 12px; padding-bottom: calc(12px + 60px + env(safe-area-inset-bottom, 0)); }
}

@media (max-width: 400px) {
  .player-grid { grid-template-columns: 1fr !important; }
  .header-wordmark { font-size: 16px; }
  .header-tagline { display: none; }
  .toggle-btn { min-height: 50px; }
  .toggle-btn::before { font-size: 18px; }
  /* Reduce op-table min-width for very small screens */
  .op-head-s, .op-row-s { min-width: 380px; }
}

/* ═══════════════════════════════════════════════════════════
   HEUTE ABEND · PRE-SESSION BRIEFING
═══════════════════════════════════════════════════════════ */

/* "Heute Abend" button gets accent tint */
.heute-btn { border-color: rgba(255,208,0,.35) !important; color: var(--accent) !important; }
.heute-btn.active { background: var(--accent) !important; color: #000 !important; }

.heute-wrap {
  display: flex; flex-direction: column; gap: 20px;
  padding-bottom: 40px;
  animation: fadeIn .35s ease;
}

/* Header */
.heute-header-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.heute-reload-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s; flex-shrink: 0;
}
.heute-reload-btn:hover { border-color: var(--accent); color: var(--accent); }
.heute-reload-btn:disabled { opacity: .5; cursor: not-allowed; }
.heute-streak {
  margin-top: 12px; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
}
.heute-streak.win  { background: rgba(38,201,112,.1); color: var(--green); border: 1px solid rgba(38,201,112,.25); }
.heute-streak.loss { background: rgba(74,158,255,.1);  color: var(--blue);  border: 1px solid rgba(74,158,255,.25); }

.heute-header {
  background: linear-gradient(135deg, rgba(255,208,0,.08) 0%, rgba(255,208,0,.02) 100%);
  border: 1px solid rgba(255,208,0,.2);
  border-radius: 14px; padding: 20px 24px;
}
.heute-title   { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: .5px; }
.heute-subtitle{ font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 1.5px; text-transform: uppercase; }

/* Sections */
.heute-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.heute-section-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* ── Formcheck grid ── */
.heute-form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.heute-form-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 7px;
  transition: border-color .2s;
}
.heute-form-card.heute-form-pos { border-color: rgba(38,201,112,.3); }
.heute-form-card.heute-form-neg { border-color: rgba(240,80,80,.3); }
.hfc-top   { display: flex; align-items: center; gap: 7px; }
.hfc-emoji { font-size: 16px; }
.hfc-name  { font-weight: 700; font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hfc-rp    { font-size: 11px; font-weight: 700; flex-shrink: 0; }
.hfc-dots  { display: flex; gap: 4px; align-items: center; }
.form-dot  {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.form-dot.w { background: var(--green); }
.form-dot.l { background: var(--loss); }
.hfc-role  { font-size: 10px; color: var(--muted); }

/* ── Rang progress rows ── */
.heute-rank-row {
  display: grid;
  grid-template-columns: 120px auto 1fr auto 160px;
  align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.heute-rank-row:last-child { border-bottom: none; }
.hrr-name      { font-weight: 700; font-size: 12px; }
.hrr-rank-now,
.hrr-rank-next { display: flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.hrr-rank-img  { width: 20px; height: 20px; object-fit: contain; }
.hrr-bar-wrap  { display: flex; align-items: center; gap: 6px; }
.hrr-bar-bg    { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; min-width: 60px; }
.hrr-bar-fill  { height: 100%; border-radius: 3px; animation: barFill .6s ease forwards; }
.hrr-pct       { font-size: 10px; color: var(--muted); width: 28px; flex-shrink: 0; }
.hrr-target    { font-size: 11px; color: var(--muted); text-align: right; }
.hrr-info      { font-size: 11px; grid-column: 2 / -1; }

/* ── Map recommendation ── */
.heute-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.heute-map-col  { display: flex; flex-direction: column; gap: 6px; }
.heute-map-disclaimer {
  font-size: 9px; color: var(--muted); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; cursor: help; letter-spacing: 1px;
  font-weight: 400; text-transform: none; margin-left: 6px;
}
.heute-map-col-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 2px;
}
.queue-label { color: var(--green); }
.ban-label   { color: var(--loss); }
.heute-map-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid; transition: opacity .15s;
}
.heute-map-chip:hover { opacity: .8; }
.heute-map-chip.queue { background: rgba(38,201,112,.07); border-color: rgba(38,201,112,.25); }
.heute-map-chip.ban   { background: rgba(240,80,80,.07);  border-color: rgba(240,80,80,.25); }
.hmc-name   { font-weight: 700; font-size: 12px; flex: 1; }
.hmc-wr     { font-size: 12px; font-weight: 700; }
.hmc-record { font-size: 10px; color: var(--muted); }

/* ── Operator picks ── */
.heute-ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.heute-ops-col  { display: flex; flex-direction: column; gap: 6px; }
.heute-ops-side-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; align-self: flex-start; margin-bottom: 4px;
}
.heute-ops-side-label.atk { background: rgba(74,158,255,.12); color: var(--blue); }
.heute-ops-side-label.def { background: rgba(255,208,0,.12);  color: var(--accent); }
.heute-op-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
}
.heute-op-chip.priority { border-color: rgba(255,208,0,.3); background: rgba(255,208,0,.05); }
.hop-rank  { font-size: 10px; color: var(--muted); width: 12px; text-align: center; }
.hop-name  { font-weight: 700; font-size: 12px; flex: 1; }
.hop-ban-tag {
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(240,80,80,.15); color: var(--loss);
  border-radius: 4px; padding: 1px 5px;
}
.heute-ban-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; background: rgba(255,208,0,.05);
  border: 1px solid rgba(255,208,0,.15); border-radius: 8px;
  font-size: 11px;
}
.heute-ban-note-label { color: var(--muted); flex-shrink: 0; }
.heute-ban-pill {
  padding: 2px 9px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.heute-ban-pill.atk { background: rgba(74,158,255,.12); color: var(--blue); }
.heute-ban-pill.def { background: rgba(255,208,0,.12);  color: var(--accent); }

/* ── Team composition ── */
.heute-comp-grid  { display: flex; flex-wrap: wrap; gap: 8px; }
.heute-comp-chip  {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 14px; border-radius: 10px; border: 1px solid;
  background: var(--surface2); min-width: 90px; text-align: center;
}
.hcc-icon { font-size: 18px; }
.hcc-name { font-size: 11px; font-weight: 700; }
.hcc-role { font-size: 10px; opacity: .8; }

.heute-comp-checks { display: flex; flex-direction: column; gap: 6px; }
.heute-check-row   { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hcr-icon {
  width: 18px; height: 18px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.hcr-icon.ok   { background: rgba(38,201,112,.15); color: var(--green); }
.hcr-icon.bad  { background: rgba(240,80,80,.15);  color: var(--loss); }
.hcr-icon.warn { background: rgba(245,158,11,.15); color: #f59e0b; }

/* ── IGL Picker ── */
.igl-live-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 2px;
  background: rgba(38,201,112,.15); color: var(--green);
  border: 1px solid rgba(38,201,112,.3); border-radius: 4px;
  padding: 1px 6px; margin-left: 8px; vertical-align: middle;
  text-transform: uppercase;
}
.igl-suggestion {
  font-size: 11px; color: var(--muted); display: block; margin-bottom: 10px;
}
.igl-suggestion strong { color: var(--accent); }
.igl-loading {
  font-size: 12px; color: var(--muted); padding: 8px 0;
}
.igl-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.igl-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight: 600;
  transition: border-color .15s, background .15s, transform .1s;
  flex-direction: column; align-items: flex-start; min-width: 110px;
}
.igl-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.igl-chip-active {
  background: rgba(255,208,0,.1) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.igl-chip-name { font-weight: 700; font-size: 12px; }
.igl-chip-star {
  font-size: 10px; color: var(--accent);
  margin-left: 2px;
}
.igl-chip-wl {
  font-size: 10px; color: var(--muted); font-weight: 400;
  margin-top: 2px;
}
.igl-mic { font-size: 14px; }
.igl-status {
  font-size: 11px; color: var(--green); margin-top: 4px;
  letter-spacing: .3px;
}

/* ── Discord copy button ── */
.heute-copy-wrap { text-align: center; padding: 10px 0; }
.heute-copy-btn {
  background: var(--surface); border: 1px solid var(--accent);
  color: var(--accent); font-size: 13px; font-weight: 700;
  padding: 12px 28px; border-radius: 10px; cursor: pointer;
  letter-spacing: 1px; transition: background .2s, color .2s;
}
.heute-copy-btn:hover { background: var(--accent); color: #000; }

/* ── Mobile overrides ── */
@media (max-width: 620px) {
  /* Heute rank rows: stack to single column */
  .heute-rank-row {
    grid-template-columns: 1fr;
    gap: 4px; padding: 10px 0;
  }
  .hrr-info { grid-column: 1; } /* fix span in 1-col grid */
  .hrr-bar-wrap { width: 100%; }
  .hrr-rank-now, .hrr-rank-next { font-size: 11px; }
  .hrr-target { text-align: left; }

  /* Heute map + ops: single column */
  .heute-map-grid, .heute-ops-grid { grid-template-columns: 1fr; }
  .heute-form-grid { grid-template-columns: 1fr 1fr; }

  /* IGL chips: wrap tightly */
  .igl-chips { gap: 6px; }
  .igl-chip { min-width: 90px; padding: 7px 10px; }
}

/* ═══════════════════════════════════════════════════════════
   IN-GAME TAB
═══════════════════════════════════════════════════════════ */

.ingame-btn { border-color: rgba(74,158,255,.35) !important; color: var(--blue) !important; }
.ingame-btn.active { background: var(--blue) !important; color: #000 !important; }

.ig-wrap { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; animation: fadeIn .3s ease; }

/* Sections */
.ig-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.ig-section-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}

/* Player chips */
.ig-player-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ig-player-chip {
  padding: 9px 18px; border-radius: 8px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600;
  transition: border-color .15s, background .15s, transform .1s;
}
.ig-player-chip:hover { border-color: var(--blue); transform: translateY(-2px); }
.ig-player-chip.active {
  background: rgba(74,158,255,.12); border-color: var(--blue);
  color: var(--blue);
}

/* Map grid */
/* In-game map picker uses the shared .mk-map-card image tiles (see below). */
.ig-map-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  background: var(--accent); color: #000; border: none;
  height: 30px; padding: 0 14px; border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.ig-map-more-btn:hover { opacity: .9; }
.ig-map-more-btn:active { transform: translateY(1px); }

/* Hint / loading */
.ig-hint {
  text-align: center; padding: 40px 20px;
  color: var(--muted); font-size: 13px; letter-spacing: .5px;
}
.ig-loading {
  padding: 32px 20px; text-align: center;
  color: var(--muted); font-size: 13px;
}

/* Results header */
.ig-results-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 14px 18px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px;
  margin-top: 4px;
}
.ig-results-player { font-size: 16px; font-weight: 800; color: var(--blue); }
.ig-results-on     { font-size: 12px; color: var(--muted); }
.ig-results-map    { font-size: 16px; font-weight: 800; color: var(--accent); }
.ig-comm-wr {
  margin-left: auto; font-size: 11px; color: var(--muted);
  letter-spacing: .5px;
}

/* Two-column sides layout */
.ig-sides {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 4px;
}
.ig-side {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; gap: 0;
}
.ig-side-header {
  padding: 10px 14px; font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.ig-side-header.atk { background: rgba(74,158,255,.08);  color: var(--blue); }
.ig-side-header.def { background: rgba(255,208,0,.08);   color: var(--accent); }
.ig-side-sub { font-size: 9px; opacity: .65; font-weight: 500; }

/* Operator grid inside each side */
.ig-op-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 14px;
}
.ig-personal-label {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); padding: 4px 14px 0;
  border-top: 1px solid var(--border);
}

/* Individual operator card */
.ig-op-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid; min-width: 90px; flex: 1;
  transition: transform .1s;
}
.ig-op-card:hover { transform: translateY(-2px); }

.ig-op-great { background: rgba(38,201,112,.08);  border-color: rgba(38,201,112,.35); }
.ig-op-ok    { background: rgba(255,208,0,.07);   border-color: rgba(255,208,0,.3); }
.ig-op-weak  { background: rgba(240,80,80,.08);   border-color: rgba(240,80,80,.3); }
.ig-op-never { background: rgba(255,255,255,.02); border-color: var(--border); opacity: .6; }

.ig-op-personal { border-style: dashed; }

.ig-op-name { font-weight: 700; font-size: 12px; color: var(--text); }
.ig-op-stats {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--muted); flex-wrap: wrap;
}
.ig-op-kd   { font-weight: 700; color: var(--text); }
.ig-op-sep  { color: var(--border); }
.ig-op-never-label { color: var(--muted); font-style: italic; }

.ig-op-ban-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(240,80,80,.15); color: var(--loss);
  border-radius: 4px; padding: 1px 5px; align-self: flex-start; margin-top: 2px;
}
.ig-op-personal-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(255,208,0,.12); color: var(--accent);
  border-radius: 4px; padding: 1px 5px; align-self: flex-start; margin-top: 2px;
}

/* Tactic tip */
.ig-tactic-tip {
  padding: 10px 14px; font-size: 11px; color: var(--muted); line-height: 1.5;
  border-top: 1px solid var(--border); margin-top: auto;
}
.ig-tactic-tip.atk::before { content: ''; }
.ig-tactic-tip.def::before { content: ''; }

/* Ban summary bar */
.ig-ban-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 12px;
}
.ig-ban-label { color: var(--muted); flex-shrink: 0; }
.ig-ban-atk { color: var(--blue); }
.ig-ban-def { color: var(--accent); }

/* Mobile */
@media (max-width: 600px) {
  .ig-sides { grid-template-columns: 1fr; }
  .ig-player-chips { gap: 6px; }
  .ig-player-chip { padding: 8px 12px; font-size: 12px; }
}

/* ── Extra mobile polish ── */
@media (max-width: 640px) {
  /* Heute section: tighter padding */
  .heute-wrap { gap: 14px; padding-bottom: 20px; }
  .heute-section { padding: 14px 14px; }
  .heute-header { padding: 16px 16px; }
  .heute-title { font-size: 17px; }
  .heute-reload-btn { font-size: 11px; padding: 6px 12px; }

  /* Section labels: tighter */
  .section-label { margin-bottom: 12px; }

  /* Games note and map note: smaller padding */
  .games-note, .map-note, .meta-note { padding: 8px 12px; }

  /* Rec rows: tighter */
  .rec-row { padding: 8px 10px; }

  /* Modal: tab-content body padding */
  .modal-tab-content .modal-body { padding: 12px; }
}

/* Safe area insets for iPhone notch/home bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .planner-modal, .modal { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 640px) {
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
      padding-bottom: calc(12px + 54px + env(safe-area-inset-bottom));
    }
  }
}

/* ═══════════════════════════════════════════════════════════
   NEW: HAUPTNAVIGATION — Feed | Coaching | Team
═══════════════════════════════════════════════════════════ */

/* ── Top Navigation Bar ── */
.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.main-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.nav-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  position: relative;
  top: 1px; /* overlap the nav border-bottom */
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-icon { display: inline-flex; align-items: center; }
.nav-icon svg { width: 18px; height: 18px; display: block; }
/* Inactive icons sit slightly back; active inherits the gold via currentColor */
.nav-tab:not(.active) .nav-icon { opacity: .8; }
.nav-label { font-size: 12px; }

@media (max-width: 768px) {
  .main-nav { display: none; } /* replaced by bottom nav on mobile */
}

/* ── Bottom Navigation (Mobile only) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: color .15s;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bnav-btn.active { color: var(--accent); }
.bnav-icon { display: flex; justify-content: center; align-items: center; }
.bnav-icon svg { width: 22px; height: 22px; display: block; }
.bnav-btn:not(.active) .bnav-icon { opacity: .85; }
.bnav-label { display: block; }

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  /* Push footer up so it doesn't sit under bottom-nav */
  .footer {
    margin-bottom: 60px;
  }
  /* Container needs bottom padding for bottom nav */
  .container {
    padding-bottom: 80px;
  }
}

/* ═══════════════════════════════════════════════════════════
   TEAM VIEW — KPI-Leiste mit Season/All-Time Filter
═══════════════════════════════════════════════════════════ */

.team-kpi-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 28px;
}
.tstat-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.view-toggle-inline {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.view-toggle-inline .toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.view-toggle-inline .toggle-btn:hover { border-color: var(--accent); color: var(--text); }
.view-toggle-inline .toggle-btn.active { background: var(--accent-interactive); color: #000; border-color: var(--accent-interactive); }

/* ═══════════════════════════════════════════════════════════
   FEED VIEW — KPI Tiles
═══════════════════════════════════════════════════════════ */

.feed-kpi-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 768px) { .feed-kpi-tiles { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .feed-kpi-tiles { grid-template-columns: 1fr 1fr; } }

.feed-kpi-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  text-align: center;
  transition: border-color .15s;
}
.feed-kpi-tile:hover { border-color: var(--accent); }
.fkt-val {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.fkt-lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   COACHING VIEW
═══════════════════════════════════════════════════════════ */

/* ── Fokus-Themen-Board ── */
.focus-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 50px;
}
.focus-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color .15s;
}
.focus-card:hover { border-color: var(--accent); }
.focus-card.focus-card-done { opacity: 0.55; }
.focus-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.focus-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.focus-card-done .focus-card-title {
  text-decoration: line-through;
  color: var(--muted);
}
.focus-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.fca-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.fca-btn:hover { border-color: var(--accent); color: var(--accent); }
.fca-del:hover { border-color: var(--loss); color: var(--loss); }
.focus-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.focus-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.focus-source-tag {
  font-size: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.focus-date { font-size: 10px; color: var(--muted); }
.focus-active-tag {
  font-size: 10px;
  color: var(--green);
  background: rgba(38,201,112,.1);
  border: 1px solid rgba(38,201,112,.25);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.focus-done-tag {
  font-size: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}
.focus-done-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.focus-add-btn {
  background: var(--accent);
  border: none;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s;
  margin-left: auto;
  flex-shrink: 0;
}
.focus-add-btn:hover { opacity: .85; }

/* ── Fokus-Modal ── */
.focus-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn .18s ease;
}
.focus-modal-overlay.hidden { display: none !important; }
.focus-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-modal);
  animation: modalPop .22s cubic-bezier(.4,0,.2,1);
}
.focus-modal-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}
.focus-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  width: 100%;
  font-family: inherit;
}
.focus-input:focus { border-color: var(--accent); }
.focus-textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  resize: vertical;
  width: 100%;
  font-family: inherit;
  transition: border-color .15s;
}
.focus-textarea:focus { border-color: var(--accent); }
.focus-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.focus-cancel-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}
.focus-cancel-btn:hover { border-color: var(--accent); color: var(--text); }
.focus-save-btn {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.focus-save-btn:hover { opacity: .85; }

/* ── Drills Grid ── */
.coaching-drills-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-bottom: 50px;
}
@media (max-width: 768px) { .coaching-drills-grid { grid-template-columns: 1fr; } }

.coaching-drill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  transition: border-color .15s;
}
.coaching-drill-card:hover { border-color: var(--accent); }
.cdc-icon { font-size: 32px; flex-shrink: 0; line-height: 1.2; }
.cdc-content { flex: 1; min-width: 0; }
.cdc-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cdc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cdc-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.cdc-badge.success {
  background: rgba(38,201,112,.1);
  border-color: rgba(38,201,112,.3);
  color: var(--green);
}
.cdc-setup, .cdc-goal {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 4px;
}
.cdc-setup strong, .cdc-goal strong { color: var(--text); }

/* ── Player Coaching Cards ── */
.coaching-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 50px;
}
.coaching-player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cpc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cpc-rank-img {
  width: 42px; height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.cpc-name {
  font-size: 15px;
  font-weight: 700;
}
.cpc-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.cpc-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cpc-stats strong { font-size: 13px; }
.cpc-hints {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════
   OPERATOR ICONS — r6operators CDN
═══════════════════════════════════════════════════════════ */

/* Generic operator icon — used inline in chips */
.op-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Icon inside op-chip (Coverage tab) */
.op-chip { display: inline-flex; align-items: center; gap: 5px; }
.op-chip-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Icon inside ban chip */
.ban-chip { display: inline-flex; align-items: center; gap: 5px; }
.ban-op-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── In-Game Tab: operator icon (added to existing .ig-op-card) ── */
.ig-op-card { align-items: center; }
.ig-op-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-op-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
/* Re-center op name below icon */
.ig-op-name { text-align: center; }

/* ── Heute Abend: op picks with icon ── */
.heute-op-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hop-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}

/* ── Coaching: meta-operator icon grid ── */
.coaching-op-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}
.coaching-op-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
}
.coaching-op-big-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px;
  transition: transform .15s, border-color .15s;
}
.coaching-op-item:hover .coaching-op-big-icon {
  transform: scale(1.08);
  border-color: var(--accent);
}
.coaching-op-name {
  font-size: 9px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   ACTIVITY FEED — Strava-style session cards
═══════════════════════════════════════════════════════════ */

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
}

.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  animation: cardEnter .35s ease both;
}

.activity-card:hover {
  border-color: #373b47;
  box-shadow: var(--shadow-elevated);
}

/* Header */
.ac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 10px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.ac-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ac-session-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.ac-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Hero: team W/L pill bar */
.ac-hero {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  gap: 3px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.ac-hero-pill {
  min-width: 22px;
  flex: 1;
  max-width: 44px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: opacity .15s;
}

.ac-hero-pill.w { background: var(--green); color: #000; opacity: 0.85; }
.ac-hero-pill.l { background: var(--loss);  color: #fff; opacity: 0.65; }

/* KPI strip */
.ac-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.ac-kpi {
  padding: 10px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.ac-kpi:last-child { border-right: none; }

.ac-kpi-val {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ac-kpi-lbl {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* Per-player rows */
.ac-players {
  padding: 8px 0 4px;
}

.ac-player-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 5px 18px;
  gap: 4px 10px;
  transition: background .15s;
}
.ac-player-row:hover { background: rgba(255,255,255,0.03); }

/* Operator highlights — full-width second line within each player row */
.ac-player-ops {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 2px 0 4px;
}
.ac-op-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 2px 7px 2px 3px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ac-op-good {
  background: rgba(76,175,80,.10);
  border-color: rgba(76,175,80,.35);
  color: var(--green);
}
.ac-op-bad {
  background: rgba(244,67,54,.10);
  border-color: rgba(244,67,54,.35);
  color: var(--loss);
}
.ac-op-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
}
.ac-op-kd {
  font-weight: 700;
  opacity: .85;
  margin-left: 1px;
}

.ac-player-name {
  font-size: 12px;
  font-weight: 600;
  min-width: 88px;
  flex-shrink: 0;
  color: var(--text);
}
.ac-player-name.ac-pr-good { color: var(--green); }
.ac-player-name.ac-pr-bad  { color: var(--loss); }

.ac-player-pills {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
}

.ac-pill {
  width: 18px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
  flex-shrink: 0;
}
.ac-pill.w { background: var(--green); color: #000; opacity: 0.85; }
.ac-pill.l { background: var(--loss);  color: #fff; opacity: 0.7;  }

.ac-player-net {
  font-size: 12px;
  font-weight: 700;
  min-width: 58px;
  text-align: right;
  flex-shrink: 0;
}

/* Footer */
.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.ac-players-list {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* No sessions placeholder */
.no-sessions {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Feed loading skeleton (session data / seasonal phase) */
.feed-loading-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin: 2px 0 12px;
}
.feed-loading-spinner { display: inline-block; animation: spin .8s linear infinite; font-size: 13px; }
.skeleton-tile { pointer-events: none; }
.skeleton-tile .st-top { display: flex; justify-content: space-between; align-items: center; }

/* Reusable inline loading banner (spinner + label) */
.loading-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
}
.loading-inline-spinner { display: inline-block; animation: spin .8s linear infinite; font-size: 13px; }

/* Feed note above activity feed */
.feed-session-note {
  font-size: 11px;
  color: var(--muted);
  padding: 0 0 10px;
  letter-spacing: 0.3px;
}

/* ── Session K/D delta (held-baseline) — reusable colour classes ── */
.spf-great { color: var(--green) !important; }
.spf-ok    { color: var(--text)  !important; }
.spf-weak  { color: var(--loss)  !important; }
.spf-neutral { color: var(--muted) !important; }
.sd-kd-note { font-size: 11px; color: var(--muted); margin: -4px 0 8px; letter-spacing: .2px; }
.sd-kd-note.sd-kd-warn { color: #ff9d5c; }
.sd-clutch-badge { font-size: 11px; font-weight: 700; color: var(--accent); margin-left: 4px; white-space: nowrap; }
.sd-op-mini-icon { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; background: var(--surface2); flex: none; }

/* ═══════════════════════════════════════════════════════════
   GAMEDAY TAB — header strip
═══════════════════════════════════════════════════════════ */

.gameday-header-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.gameday-header-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}

.gameday-header-sub {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Mobile tweaks for activity cards ───────────────────── */
@media (max-width: 640px) {
  .ac-kpis { grid-template-columns: repeat(2, 1fr); }
  .ac-kpi { padding: 8px 10px; }
  .ac-kpi-val { font-size: 15px; }
  .ac-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ac-meta { justify-content: flex-start; }
  .ac-player-name { min-width: 70px; }
  .ac-player-net { min-width: 46px; }
  .ac-player-ops { padding-left: 0; }
  .ac-op-chip { font-size: 9px; padding: 2px 5px 2px 3px; }
  .ac-op-icon { width: 13px; height: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   COACHING PAGE — vollständiges Redesign
═══════════════════════════════════════════════════════════ */

/* ── Page Header ─────────────────────────────────────────── */
.coaching-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  gap: 16px;
  flex-wrap: wrap;
}
.cph-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text);
}
.cph-sub {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Toggle Controls (replaces old dropdown) ─────────────── */
.cph-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.cph-mode-toggle {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.cph-toggle-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-align: left;
}
.cph-tgl-ic { font-size: 15px; line-height: 1; }
.cph-tgl-txt { display: flex; flex-direction: column; line-height: 1.15; }
.cph-tgl-main { font-size: 13px; font-weight: 700; }
.cph-tgl-sub { font-size: 10px; font-weight: 600; opacity: .7; letter-spacing: .3px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.cph-toggle-btn.active { background: var(--accent); color: #000; }
.cph-toggle-btn.active .cph-tgl-sub { opacity: .75; }
.cph-toggle-btn:not(.active):hover { background: rgba(255,255,255,.06); color: var(--text); }
.cph-player-hint { font-size: 10px; letter-spacing: .3px; color: var(--muted); }
.cph-active-player {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px;
}
.cph-ap-ic { font-size: 15px; line-height: 1; }
.cph-ap-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cph-player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 340px;
}
.cph-player-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.cph-player-chip:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.2);
}
.cph-player-chip.selected {
  background: var(--accent-dim);
  border-color: var(--accent-glow);
  color: var(--accent);
}

/* Legacy — kept for safety but no longer rendered */
.cph-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cph-filter-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.cph-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  min-width: 160px;
}
.cph-select:focus { border-color: var(--accent); }

/* ── Section Header ──────────────────────────────────────── */
.coaching-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
  gap: 12px;
}
.csh-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-label);
}
.coaching-add-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.coaching-add-btn:hover { background: var(--accent-dim); border-color: var(--accent); }
.coaching-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 20px;
}

/* ═══════════════════════════════════════════════════════════
   KANBAN BOARD
═══════════════════════════════════════════════════════════ */

.coaching-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 8px;
}

.kanban-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}
.kcol-icon { font-size: 14px; }
.kcol-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex: 1;
}
.kcol-count {
  background: var(--surface2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  min-height: 80px;
}

.kanban-empty {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 20px 8px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* ── Kanban Card ─────────────────────────────────────────── */
.kanban-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: border-color .2s, box-shadow .15s;
  animation: cardEnter .25s ease both;
}
.kanban-card:hover {
  border-color: rgba(255, 208, 0, 0.2);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.kc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.kc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}
.kc-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.kca-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.kca-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.kca-del:hover { color: var(--loss);   border-color: var(--loss);   background: rgba(240,80,80,.1); }

.kc-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.kc-goal {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--text);
  background: rgba(255,208,0,.06);
  border: 1px solid rgba(255,208,0,.15);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 7px;
  line-height: 1.4;
}
.kc-goal-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 1px;
}

.kc-matches {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.kc-match-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.kc-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 7px;
  margin-top: 4px;
}
.kc-source {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Focus Modal ─────────────────────────────────────────── */
.coaching-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .18s ease;
}
.coaching-modal-overlay.hidden { display: none; }

.coaching-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-modal);
  animation: modalPop .22s cubic-bezier(.4,0,.2,1);
}
.cm-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
}
.cm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cm-row {
  display: flex;
  gap: 12px;
}
.cm-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.cm-input, .cm-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.cm-textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color .2s;
  width: 100%;
}
.cm-input:focus, .cm-textarea:focus, .cm-select:focus { border-color: var(--accent); }
.cm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cm-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cm-cancel:hover { border-color: var(--text); color: var(--text); }
.cm-save {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s;
}
.cm-save:hover { opacity: .85; }

/* ═══════════════════════════════════════════════════════════
   TRAININGSBLÖCKE
═══════════════════════════════════════════════════════════ */

.training-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.training-block-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.training-block-card:hover { border-color: rgba(255,208,0,.2); }

.tbc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 16px 10px;
  background: rgba(255,208,0,.05);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.tbc-week {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}
.tbc-dates {
  font-size: 11px;
  color: var(--muted);
}

.tbc-themes {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-theme-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tb-theme-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.tb-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb-bar-bg {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.tb-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}
.tb-prog-text {
  font-size: 11px;
  font-weight: 700;
  min-width: 28px;
  text-align: right;
}
.tb-count-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s;
}
.tb-count-btn:hover { color: var(--accent); border-color: var(--accent); }

.tbc-sessions-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 16px 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.tbc-sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 14px;
}
.tb-session-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tb-sess-date {
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   DRILL-BIBLIOTHEK
═══════════════════════════════════════════════════════════ */

.drill-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.drill-filter-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.drill-filter-btn:hover { color: var(--text); border-color: var(--border); }
.drill-filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding-bottom: 40px;
}

.drill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s;
  animation: cardEnter .25s ease both;
}
.drill-card:hover {
  border-color: rgba(255,208,0,.2);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.dc-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dc-icon { font-size: 22px; flex-shrink: 0; }
.dc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}
.dc-cat-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255,208,0,.2);
}
.dc-meta-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.dc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.dc-row {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.dc-row strong { color: var(--text); }
.dc-criteria {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  padding: 5px 8px;
  background: rgba(38,201,112,.08);
  border: 1px solid rgba(38,201,112,.15);
  border-radius: 6px;
}
.dc-fixes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.drill-fix-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(74,158,255,.08);
  border: 1px solid rgba(74,158,255,.2);
  color: var(--blue);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   PLAYER-MODUS
═══════════════════════════════════════════════════════════ */

.player-coaching-section {
  padding-bottom: 48px;
}

/* ── Main-data summary: capped at ~1/3 viewport so the season tracker below
      stays visible; scrolls internally when the analysis is long. ─────────── */
.pc-summary {
  padding: 2px 0 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Player Header with Grade Badge ──────────────────────── */
.player-coaching-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
  margin-bottom: 4px;
}
.pch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* RP-progress bar (fact borrowed from the Team-tab player detail) */
.pch-progress { display: flex; flex-direction: column; gap: 4px; }
.pch-progress .mrp-bar-bg {
  height: 6px; border-radius: 4px; background: var(--surface2); overflow: hidden;
}
.pch-progress .mrp-bar-fill {
  height: 100%; background: var(--accent); border-radius: 4px;
}
.pch-progress .mrp-label { font-size: 11px; color: var(--muted); }
.pch-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pch-rank-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.pch-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.pch-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.pch-grade {
  width: 46px;
  height: 46px;
  border: 2px solid;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  flex-shrink: 0;
  transition: box-shadow .2s;
}
.pch-grade:hover { box-shadow: 0 0 16px currentColor; opacity: .85; }
.pch-grade-emoji { font-size: 15px; line-height: 1.1; }
.pch-grade-letter { font-size: 15px; font-weight: 900; line-height: 1.1; }

/* ── Stat Tiles ───────────────────────────────────────────── */
.player-stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 7px;
  margin: 10px 0;
}
.pst-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  transition: border-color .2s;
}
.pst-tile:hover { border-color: var(--accent); }
.pst-val {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--text);
}
.pst-peak {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0;
}
.pst-lbl {
  font-size: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
/* Recent form tile */
.pst-form-tile {
  grid-column: span 2;
}
.pst-form-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 6px;
}
.form-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.form-dot.w { background: var(--green); }
.form-dot.l { background: var(--loss); }

/* Hints */
.player-hints-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.player-hint-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.player-hint-item.good {
  background: rgba(38,201,112,.06);
  border-color: rgba(38,201,112,.2);
  color: var(--text);
}
.player-hint-item.warn {
  background: rgba(240,80,80,.06);
  border-color: rgba(240,80,80,.2);
  color: var(--text);
}
.phi-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.player-hint-item.good .phi-icon { color: var(--green); }
.player-hint-item.warn .phi-icon { color: var(--loss); }

/* Player Focus Chips */
.player-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.pf-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  transition: border-color .2s;
}
.pf-chip:hover { border-color: rgba(255,208,0,.3); }
.pf-chip-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.pf-chip-goal {
  font-size: 10px;
  color: var(--accent);
}

/* To-Do List */
.player-todo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: opacity .2s;
}
.todo-item.todo-done { opacity: .5; }
.todo-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: none;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.todo-check:hover { border-color: var(--green); }
.todo-check.checked { background: var(--green); border-color: var(--green); color: #000; }
.todo-text {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.todo-item.todo-done .todo-text {
  text-decoration: line-through;
  color: var(--muted);
}
.todo-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { color: var(--loss); }

.todo-add-row {
  display: flex;
  gap: 8px;
}
.todo-add-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.todo-add-input::placeholder { color: var(--muted); }
.todo-add-input:focus { border-color: var(--accent); }
.todo-add-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  width: 38px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.todo-add-btn:hover { background: var(--accent-dim); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   COACHING REPORT SECTION (CSR)
═══════════════════════════════════════════════════════════ */

.csr-section { margin-bottom: 4px; }

.csr-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.csr-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.55;
}
.csr-good {
  background: rgba(38,201,112,.06);
  border: 1px solid rgba(38,201,112,.2);
  color: var(--text);
}
.csr-warn {
  background: rgba(240,80,80,.06);
  border: 1px solid rgba(240,80,80,.2);
  color: var(--text);
}
.csr-tilt {
  background: rgba(74,158,255,.08);
  border: 1px solid rgba(74,158,255,.25);
  color: var(--blue);
}
.csr-item-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.csr-item-text { flex: 1; }

.csr-quicktips {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.csr-quicktips-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.csr-quicktip {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.csr-quicktip:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   OPERATOR ANALYSIS
═══════════════════════════════════════════════════════════ */

.op-analysis-sublabel {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin: 12px 0 6px;
}

.op-analysis-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.op-analysis-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.op-invest {
  background: rgba(38,201,112,.05);
  border-color: rgba(38,201,112,.15);
}
.op-invest:hover { border-color: rgba(38,201,112,.3); }
.op-reconsider {
  background: rgba(240,80,80,.05);
  border-color: rgba(240,80,80,.15);
}
.op-reconsider:hover { border-color: rgba(240,80,80,.3); }

.op-analysis-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: contain;
  background: var(--surface2);
  flex-shrink: 0;
}
.op-analysis-body { flex: 1; min-width: 0; }
.op-analysis-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.op-analysis-stats {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.op-analysis-tip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.op-new-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.op-new-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: default;
  transition: border-color .2s;
}
.op-new-chip:hover { border-color: rgba(255,208,0,.25); }
.op-new-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--surface);
}
.op-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   RESOURCE LINKS
═══════════════════════════════════════════════════════════ */

.resource-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.resource-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color .2s;
}
.resource-category:hover { border-color: rgba(255,208,0,.2); }
.resource-cat-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.resource-links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.resource-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 5px;
  transition: color .15s, background .15s;
}
.resource-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
.resource-link-arrow {
  font-size: 8px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOKUS-SPRINT CARDS
═══════════════════════════════════════════════════════════ */

.csh-week-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.csh-sub-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.focus-sprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.focus-sprint-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--fsc-accent, var(--accent));
  border-radius: 12px;
  padding: 16px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}
.focus-sprint-card:active { transform: scale(.98); }
.focus-sprint-card:hover {
  border-color: var(--fsc-accent, var(--accent));
  transform: translateY(-1px);
}
.focus-sprint-card.fsc-done {
  opacity: 0.55;
  border-left-color: var(--green);
}

.fsc-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.fsc-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fsc-icon { font-size: 18px; }
.fsc-title-area { flex: 1; }
.fsc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}
.fsc-kpi {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.fsc-done-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
}
.fsc-done-btn.done {
  border-color: var(--green);
  color: var(--green);
  background: rgba(38,201,112,.1);
}
.fsc-done-btn:hover { border-color: var(--fsc-accent, var(--accent)); }

.fsc-why {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 6px;
  font-style: italic;
}
.fsc-desc {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.fsc-drills-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fsc-drill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fsc-drill-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.fsc-drill-chip:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* Actions area (video badge + done btn) */
.fsc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fsc-video-badge {
  background: rgba(255,208,0,.1);
  border: 1px solid rgba(255,208,0,.3);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.fsc-click-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  margin-top: 10px;
  opacity: 0.6;
  letter-spacing: 0.3px;
}

/* ── Fokus-Sprint Detail Modal ─────────────────────────────────────────────── */
.fsd-header {
  border-radius: 12px 12px 0 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border-bottom: 1px solid var(--border);
}
.fsd-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fsd-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fsd-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.fsd-kpi {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.fsd-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fsd-why-block {
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 8px;
}
.fsd-why-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.fsd-why-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}
.fsd-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -8px;
}
.fsd-desc-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.fsd-tips-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fsd-tip {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}
.fsd-tip-arrow {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}
.fsd-videos-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fsd-video-link {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.fsd-video-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.fsd-video-icon {
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
}

/* Preset Picker */
#focusPresetPicker { margin-top: 14px; }
.fsp-toggle-btn {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  width: 100%;
}
.fsp-toggle-btn:hover { color: var(--accent); border-color: var(--accent); }

.fsp-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.fsp-preset-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  text-align: left;
}
.fsp-preset-btn.active {
  border-color: var(--fsp-color, var(--accent));
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.fsp-preset-btn:hover { border-color: var(--fsp-color, var(--accent)); color: var(--text); }
.fsp-preset-name { flex: 1; }
.fsp-check {
  font-size: 10px;
  color: var(--fsp-color, var(--green));
  font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════
   MAP KNOWLEDGE GRID
═══════════════════════════════════════════════════════════ */

.mk-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.mk-map-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: border-color .2s, transform .18s, box-shadow .18s;
}
.mk-map-card:hover {
  border-color: var(--mk-accent, var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

/* Background layer: real map image */
.mk-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mk-c1), var(--mk-c2));
  z-index: 0;
}
.mk-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.mk-map-card:hover .mk-card-img { transform: scale(1.06); }

/* Fallback: when image fails, show CSS gradient */
.mk-no-img .mk-card-bg {
  background: linear-gradient(135deg, var(--mk-c1), var(--mk-c2));
}

/* Dark gradient overlay – bottom-heavy for legibility */
.mk-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.75) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: background .2s;
}
.mk-map-card:hover .mk-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.2) 40%,
    rgba(0,0,0,.82) 100%
  );
}

/* Accent stripe at bottom edge */
.mk-map-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mk-accent, var(--accent));
  opacity: 0;
  z-index: 3;
  transition: opacity .2s;
}
.mk-map-card:hover::after { opacity: 1; }

/* Selected state — Gameday map picker */
.mk-map-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow), 0 8px 24px rgba(0,0,0,.5); }
.mk-map-card.selected::after { opacity: 1; }
.mk-card-check {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #000; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s;
}
.mk-map-card.selected .mk-card-check { opacity: 1; transform: scale(1); }

/* Gameday map footer + "Mehr über XY" detail button */
.gmk-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.gmk-hint { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.gmk-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #000; border: none;
  height: 40px; padding: 0 20px; border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.gmk-more-btn:hover { opacity: .9; }
.gmk-more-btn:active { transform: translateY(1px); }
.gmk-more-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Text content — pinned to bottom */
.mk-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-card-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  line-height: 1.2;
}
.mk-card-sites {
  font-size: 10px;
  color: var(--mk-accent, var(--accent));
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════
   MAP DETAIL MODAL
═══════════════════════════════════════════════════════════ */

.mkd-header {
  position: relative;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  min-height: 140px;
}
/* Real map image fills the header */
.mkd-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
/* Dark overlay so text stays readable */
.mkd-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.45) 100%
  );
  z-index: 1;
}
/* Content sits above overlay */
.mkd-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 20px;
}
.mkd-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.mkd-header-emoji { font-size: 36px; flex-shrink: 0; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.mkd-header-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.mkd-header-overview {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  max-width: 480px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.mkd-close-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.mkd-close-btn:hover { background: rgba(255,255,255,.2); }

.mkd-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}
.mkd-body::-webkit-scrollbar { width: 4px; }
.mkd-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.mkd-section {}
.mkd-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mkd-accent, var(--accent));
  margin-bottom: 10px;
}

/* Sites */
.mkd-sites-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mkd-site-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.mkd-site-num {
  width: 20px;
  height: 20px;
  background: var(--mkd-accent, var(--accent));
  color: #000;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Callouts */
.mkd-callouts-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mkd-callouts-col {}
.mkd-callouts-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mkd-atk-label { color: #ff6f6f; }
.mkd-def-label { color: #6fb3ff; }
.mkd-callout-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mkd-callout-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.mkd-atk {
  background: rgba(255,111,111,.1);
  border-color: rgba(255,111,111,.3);
  color: #ff9090;
}
.mkd-def {
  background: rgba(111,179,255,.1);
  border-color: rgba(111,179,255,.3);
  color: #90c0ff;
}

/* Operators */
.mkd-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mkd-ops-sublabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mkd-op-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 7px;
}
.mkd-op-atk { border-left: 2px solid rgba(255,111,111,.5); }
.mkd-op-def { border-left: 2px solid rgba(111,179,255,.5); }
.mkd-op-icon { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mkd-op-body { flex: 1; }
.mkd-op-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.mkd-op-tip {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Operator Loadout Block (shared by mkd-op-card + rec-row) ── */
.op-loadout {
  margin-top: 7px;
  background: rgba(255,208,0,.04);
  border: 1px solid rgba(255,208,0,.12);
  border-radius: 6px;
  padding: 7px 10px;
}
.op-loadout-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
  opacity: 0.8;
}
.op-loadout-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: baseline;
}
.ol-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.ol-val {
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
}
.ol-note {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  font-style: italic;
}

/* Tactics */
.mkd-tactics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mkd-tactic {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.mkd-tactic-num {
  width: 24px;
  height: 24px;
  background: var(--mkd-accent, var(--accent));
  color: #000;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.mkd-tactic-body { flex: 1; }
.mkd-tactic-spot {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.mkd-tactic-tip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Videos */
.mkd-videos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mkd-video-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.mkd-video-link:hover {
  border-color: var(--mkd-accent, var(--accent));
  background: rgba(255,208,0,.04);
  color: var(--accent);
}
.mkd-video-icon {
  width: 28px;
  height: 28px;
  background: #ff0000;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .mk-map-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile: Coaching layout adjustments ─────────────────── */
@media (max-width: 800px) {
  .coaching-kanban { grid-template-columns: 1fr; }
  .coaching-page-header { flex-direction: column; }
  .cph-controls { align-items: flex-start; }
  .cph-player-chips { max-width: 100%; justify-content: flex-start; }
  .cph-mode-toggle { width: 100%; }
  .cph-toggle-btn { flex: 1; text-align: center; padding: 7px 10px; }
  .player-stat-tiles { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
  .pst-form-tile { grid-column: span 2; }
  .cm-row { flex-direction: column; }
  .drill-grid { grid-template-columns: 1fr; }
  .training-blocks-grid { grid-template-columns: 1fr; }
  .resource-categories-grid { grid-template-columns: 1fr; }
  .pch-grade { width: 44px; height: 44px; }
  .pch-grade-emoji { font-size: 14px; }
  .pch-grade-letter { font-size: 14px; }
  .focus-sprint-grid { grid-template-columns: 1fr; }
  .mk-map-grid { grid-template-columns: repeat(2, 1fr); }
  .mkd-callouts-block { grid-template-columns: 1fr; }
  .mkd-ops-grid { grid-template-columns: 1fr; }
  .mkd-header { flex-wrap: wrap; }
  .mkd-header-overview { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   TEAM SETTINGS HEADER BUTTON
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   TEAM SETUP OVERLAY
═══════════════════════════════════════════════════════════ */

.team-setup-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .3s ease;
}
.team-setup-overlay.hidden { display: none; }

.team-setup-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: modalPop .24s cubic-bezier(.4,0,.2,1);
}

.team-setup-logo {
  text-align: center;
  margin-bottom: 28px;
}
.setup-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 16px var(--accent-glow));
}
.team-setup-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.team-setup-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .5px;
}

/* Tab bar */
.setup-tab-bar {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 24px;
}
.setup-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.setup-tab.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

/* Panel description */
.setup-panel-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Form inputs */
.setup-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 14px;
}
.setup-input {
  display: block;
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color .15s;
  appearance: none;
}
.setup-input:focus { border-color: var(--accent); }
.setup-code-input {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
}
.setup-input::placeholder { color: var(--muted); }

/* Player rows */
.setup-player-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.setup-player-input { flex: 1; }
.setup-remove-player {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.setup-remove-player:hover { border-color: var(--loss); color: var(--loss); }

.setup-add-player-btn {
  background: none;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
  transition: border-color .15s, color .15s;
}
.setup-add-player-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Error text */
.setup-error {
  font-size: 12px;
  color: var(--loss);
  min-height: 16px;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* Buttons */
.setup-btn-primary {
  display: block;
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 20px;
  cursor: pointer;
  margin-top: 18px;
  transition: opacity .15s;
}
.setup-btn-primary:hover { opacity: .88; }
.setup-btn-primary:disabled { opacity: .5; cursor: default; }

.setup-btn-secondary {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.setup-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Success screen */
.setup-success {
  text-align: center;
  padding: 8px 0;
}
.setup-success-icon { font-size: 40px; margin-bottom: 10px; }
.setup-success-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.setup-success-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.setup-success-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.setup-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface2);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
}
.setup-code-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent);
  font-family: monospace;
}
.setup-copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.setup-copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.setup-success-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════
   TEAM SETTINGS MODAL (in-app modal)
═══════════════════════════════════════════════════════════ */

.team-settings-modal {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 320px;
  padding: 26px 28px 24px;
}
.tsm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tsm-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.tsm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.tsm-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.tsm-value {
  font-size: 13px;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tsm-copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.tsm-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.tsm-admin-section, .tsm-leave-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tsm-admin-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.tsm-leave-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  text-align: center;
}
.tsm-leave-btn:hover { border-color: var(--loss); color: var(--loss); }
.tsm-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.tsm-actions .setup-btn-primary { margin-top: 0; flex: 1; }

/* ── Mobile: team setup ───────────────────────── */
@media (max-width: 480px) {
  .team-setup-modal { padding: 24px 18px; }
  .setup-code-text { font-size: 22px; letter-spacing: 4px; }
  .setup-code-input { font-size: 18px; letter-spacing: 4px; }
}

/* ═══════════════════════════════════════════════════════════
   SESSION DETAIL OVERLAY
═══════════════════════════════════════════════════════════ */

/* Card hint footer */
.ac-detail-hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 0 2px;
  opacity: 0;
  transition: opacity .2s;
}
.activity-card:hover .ac-detail-hint { opacity: 1; }

/* Overlay */
.session-detail-overlay {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  animation: fadeIn .18s ease;
}
.session-detail-overlay.hidden { display: none; }

.session-detail-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  animation: modalPop .22s cubic-bezier(.4,0,.2,1);
}

.sd-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.sd-modal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.sd-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.sd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sd-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.sd-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.sd-header-kpis {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.sd-hkpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sd-hkpi-val {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sd-hkpi-lbl {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Sections */
.sd-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sd-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Chart */
.sd-chart-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
}
.sd-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats table */
.sd-table-wrap {
  overflow-x: auto;
}
.sd-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.sd-stats-table thead tr {
  border-bottom: 1px solid var(--border);
}
.sd-stats-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  text-align: left;
}
.sd-stats-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.sd-stats-row:last-child td { border-bottom: none; }
.sd-player-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sd-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sd-player-name-cell {
  font-weight: 600;
  color: var(--text);
}

/* Kills/Deaths + Entry: raw counts on top, graded ratio/percent chip below */
.sd-kd-cell, .sd-entry-cell { vertical-align: middle; }
.sd-kd-counts, .sd-ent-counts {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.sd-kd-k { color: var(--text); }
.sd-kd-d { color: var(--muted); }
.sd-kd-sep { color: var(--border-strong, #3a3d48); margin: 0 2px; font-weight: 600; }
.sd-kd-ratio, .sd-ent-pct {
  display: inline-block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.sd-kd-ratio { background: rgba(255,255,255,.05); }
.sd-ent-good { color: var(--green); background: rgba(38,201,112,.12); }
.sd-ent-mid  { color: var(--accent); background: rgba(255,208,0,.12); }
.sd-ent-bad  { color: var(--loss); background: rgba(240,80,80,.12); }

/* Round log */
.sd-rounds-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sd-round-row {
  display: grid;
  grid-template-columns: 28px 44px 1fr 52px 70px 72px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--surface2);
}
.sd-round-row:nth-child(even) { background: rgba(255,255,255,.02); }
.sd-round-num {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}
.sd-round-time {
  color: var(--muted);
  font-size: 11px;
}
.sd-round-player {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sd-round-result {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
}
.sd-round-result.win  { background: rgba(38,201,112,.12); color: var(--green); }
.sd-round-result.loss { background: rgba(240, 80, 80,.12); color: var(--loss); }
.sd-round-rp {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sd-round-total {
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Summary */
.sd-summary-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sd-summary-col {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd-summary-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--muted);
}
.sd-summary-item {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  padding-left: 4px;
}
.sd-summary-item.pos { color: var(--green); }
.sd-summary-item.neg { color: var(--loss); }
.sd-summary-item.neutral { color: var(--muted); font-style: italic; }

/* ── Tilt flag in stats table ── */
.sd-tilt-flag {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  color: var(--loss);
  opacity: 0.85;
  cursor: help;
}

/* ── Evening Insights chips ── */
.sd-insights-section { background: rgba(255,255,255,.02); border-radius: 10px; }
.sdi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sdi-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  min-width: 90px;
  flex: 1;
  text-align: center;
}
.sdi-chip-pos  { border-color: rgba(38,201,112,.3); background: rgba(38,201,112,.06); }
.sdi-chip-neg  { border-color: rgba(240,80,80,.3);  background: rgba(240,80,80,.06); }
.sdi-chip-icon { font-size: 18px; line-height: 1; }
.sdi-chip-val  { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.1; margin-top: 2px; }
.sdi-chip-lbl  { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* ── Operator Profiles ── */
.sd-op-note {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(255,208,0,.05);
  border-left: 2px solid rgba(255,208,0,.3);
  border-radius: 0 4px 4px 0;
}
.sd-op-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.sd-op-player {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sd-op-player-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}
.sd-op-player-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sd-op-rows { padding: 6px 0; }
.sd-op-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.sd-op-row:last-child { border-bottom: none; }
.sd-op-side {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: .4px;
  flex-shrink: 0;
}
.sd-op-atk { background: rgba(255,152,0,.18); color: #ffb84d; }
.sd-op-def { background: rgba(74,158,255,.18); color: #7db8ff; }
.sd-op-name { flex: 1; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-op-kd   { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.sd-op-wr   { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.sd-op-m    { font-size: 10px; color: var(--muted); flex-shrink: 0; opacity: .7; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .session-detail-modal { border-radius: 12px; }
  .sd-modal-body { padding: 14px; gap: 18px; }
  .sd-header { flex-direction: column; }
  .sd-header-kpis { gap: 14px; }
  .sd-summary-cols { grid-template-columns: 1fr; }
  .sd-round-row { grid-template-columns: 24px 36px 1fr 44px 60px; }
  .sd-round-total { display: none; }
  .sdi-chip { min-width: 70px; padding: 10px 10px; }
  .sdi-chip-val { font-size: 13px; }
  .sd-op-profiles { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   SEASON CHANGE MODAL
═══════════════════════════════════════════════════════════ */

.scm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, #0f1a2a, #1a2d1a);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid var(--border);
}
.scm-header-left { flex: 1; }
.scm-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,208,0,.15);
  border: 1px solid rgba(255,208,0,.3);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.scm-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.scm-release {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

.scm-body {
  padding: 18px 24px 22px;
  max-height: calc(80vh - 130px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.scm-body::-webkit-scrollbar { width: 4px; }
.scm-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.scm-section {}
.scm-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.scm-item {
  display: flex;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
}
.scm-item-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 72px;
  flex-shrink: 0;
  padding-top: 1px;
}
.scm-item-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.scm-disclaimer {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(255,208,0,.05);
  border: 1px solid rgba(255,208,0,.15);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scm-patchlink {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
}
.scm-patchlink:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   TEAM ROLES — Badge auf Karte, Distribution Panel, Picker
═══════════════════════════════════════════════════════════ */

/* ── Role badge on player card (in card-foot) ── */
.card-role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: opacity .15s, transform .1s;
  line-height: 1.6;
}
.card-role-badge:hover { opacity: .85; transform: translateY(-1px); }
.card-role-unset {
  background: var(--surface2) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
}
/* Suggested (stat-based, not yet confirmed): dashed border, slightly transparent */
.card-role-suggested {
  background: transparent !important;
  border-style: dashed !important;
  opacity: .85;
}

/* ── Role Distribution Panel ── */
.role-dist-wrap {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 4px;
}
.role-chips-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.role-chip {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  transition: border-color .15s, transform .1s;
  min-width: 110px; text-align: left;
}
.role-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.role-chip-name { font-size: 12px; font-weight: 700; color: var(--text); }
.role-chip-role { font-size: 10px; font-weight: 600; margin-top: 3px; }
/* Suggested chip: dashed border */
.role-chip-suggested { border-style: dashed !important; opacity: .9; }

.role-warnings { display: flex; flex-direction: column; gap: 6px; }
.role-warning {
  font-size: 12px; color: var(--muted);
  padding: 6px 10px; border-left: 3px solid var(--border);
  background: rgba(255,255,255,.03); border-radius: 0 6px 6px 0;
  display: flex; gap: 7px; align-items: flex-start;
}
.role-status-ok {
  font-size: 11px; color: var(--green);
  letter-spacing: 1px; text-transform: uppercase;
}
.role-status-partial {
  font-size: 11px; color: var(--muted);
  letter-spacing: 1px;
}

/* ── Role Picker Modal ── */
.role-picker-modal { padding: 0 0 6px; }
.role-picker-grid {
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px 0 12px;
}
.role-picker-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  text-align: left; width: 100%;
  transition: border-color .15s, background .15s;
  position: relative;
}
.role-picker-option:hover,
.role-picker-option.active {
  border-color: var(--role-color, var(--accent));
  background: rgba(255,255,255,.04);
}
.role-picker-option.active { background: color-mix(in srgb, var(--role-color, var(--accent)) 12%, transparent); }
.rpo-icon  { font-size: 22px; line-height: 1; flex-shrink: 0; }
.rpo-label { font-size: 14px; font-weight: 700; color: var(--role-color, var(--text)); min-width: 64px; }
.rpo-desc  { font-size: 11px; color: var(--muted); flex: 1; }
.rpo-check { font-size: 14px; color: var(--role-color, var(--green)); margin-left: auto; }
/* "Empfohlen" badge inside picker */
.rpo-suggested-badge {
  margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 6px; border-radius: 10px;
  background: rgba(255,208,0,.15); color: var(--accent); border: 1px solid rgba(255,208,0,.3);
}
/* Highlighted option (suggested, not active) */
.role-picker-option.suggested {
  border-color: var(--role-color, var(--border));
  border-style: dashed;
}
/* Hint line below header */
.role-picker-hint {
  font-size: 11px; color: var(--muted); letter-spacing: .5px;
  padding: 4px 2px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.role-picker-clear {
  display: block; width: 100%; padding: 9px 16px; margin-top: 4px;
  background: rgba(240,80,80,.08); border: 1px solid rgba(240,80,80,.25);
  color: var(--loss); border-radius: 8px; cursor: pointer; font-size: 12px;
  font-weight: 600; letter-spacing: .5px; transition: background .15s;
}
.role-picker-clear:hover { background: rgba(240,80,80,.15); }

/* Mobile adjustments */
@media (max-width: 600px) {
  .role-chips-grid { gap: 8px; }
  .role-chip { min-width: 90px; padding: 8px 10px; }
  .rpo-desc { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SEASON PROGRESS BOARD (.spb-*)
═══════════════════════════════════════════════════════════ */

.spb-snap-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 700; border-radius: 8px;
  border: 1px solid var(--accent-glow); color: var(--accent); background: rgba(99,102,241,.1);
  cursor: pointer; letter-spacing: .5px; transition: background .15s;
}
.spb-snap-btn:hover { background: rgba(99,102,241,.2); }
.spb-snap-btn:disabled { opacity: .5; cursor: not-allowed; }

.spb-player-list {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 16px; background: var(--card); border-radius: 12px;
  border: 1px solid var(--border); margin-bottom: 8px;
}

.spb-player-row {
  display: flex; align-items: center; gap: 16px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.spb-player-row:last-child { border-bottom: none; }

.spb-player-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  min-width: 110px; flex-shrink: 0;
}

.spb-stat-group {
  display: flex; align-items: center; gap: 6px; flex: 1;
}
.spb-stat-label {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .8px; min-width: 22px;
}
.spb-stat-val {
  font-size: 14px; font-weight: 700; color: var(--text); min-width: 36px;
}
.spb-stat-delta { font-size: 12px; font-weight: 700; }

.spb-rank-col {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: 11px; gap: 2px; min-width: 80px; text-align: right;
}

.spb-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 24px; text-align: center;
  background: var(--card); border-radius: 12px; border: 1px dashed var(--border);
  margin-bottom: 8px;
}
.spb-empty-icon { font-size: 32px; }
.spb-empty-text { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 320px; }

.spb-footer {
  font-size: 11px; color: var(--muted); text-align: center; padding: 4px 0 8px;
}
.spb-refresh-btn {
  background: none; border: none; color: var(--accent); font-size: 11px;
  cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline;
}
.spb-refresh-btn:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   ATK / DEF SPLIT BLOCK (.ads-*)
═══════════════════════════════════════════════════════════ */

.atk-def-split-block {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 12px;
}

.ads-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.ads-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text);
}
.ads-subtitle {
  font-size: 10px; color: var(--muted); font-style: italic;
}

.ads-bars {
  display: flex; flex-direction: column; gap: 12px;
}

.ads-side {
  display: flex; align-items: center; gap: 10px;
}
.ads-side-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; min-width: 100px; flex-shrink: 0;
}
.ads-bar-track {
  flex: 1; height: 8px; background: var(--border); border-radius: 99px; overflow: hidden;
}
.ads-bar-fill {
  height: 100%; border-radius: 99px; transition: width .4s ease;
}
.ads-side-stats {
  display: flex; align-items: center; gap: 6px; min-width: 200px; flex-shrink: 0;
}
.ads-kd {
  font-size: 13px; font-weight: 700; min-width: 52px;
}
.ads-wr { font-size: 11px; color: var(--muted); }
.ads-matches { font-size: 10px; color: var(--muted); margin-left: 4px; }

.ads-flag {
  margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2px;
}
.ads-note {
  margin-top: 6px; font-size: 10px; color: var(--muted); font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   SESSION DIARY — Activity card block (.ac-diary-*)
═══════════════════════════════════════════════════════════ */

.ac-diary {
  border-top: 1px solid var(--border);
  padding: 10px 16px 6px;
}

.ac-diary-inner {
  display: flex; flex-direction: column; gap: 8px;
}

.ac-diary-statements {
  display: flex; flex-direction: column; gap: 4px;
}

.ac-diary-row {
  display: flex; gap: 8px; align-items: baseline;
}
.ac-diary-row.ac-diary-mine .ac-diary-name { color: var(--accent); }

.ac-diary-name {
  font-size: 11px; font-weight: 700; color: var(--muted);
  min-width: 60px; flex-shrink: 0; text-align: right;
}
.ac-diary-text {
  font-size: 12px; color: var(--text); line-height: 1.45;
  flex: 1; word-break: break-word;
}

.ac-diary-btn {
  align-self: flex-start;
  padding: 5px 12px; font-size: 11px; font-weight: 700; border-radius: 7px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--muted); cursor: pointer; letter-spacing: .3px;
  transition: background .15s, color .15s, border-color .15s;
}
.ac-diary-btn:hover {
  background: rgba(99,102,241,.12); border-color: var(--accent-glow);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   SESSION DIARY MODAL (.diary-modal-*)
═══════════════════════════════════════════════════════════ */

.diary-modal-overlay {
  position: fixed; inset: 0; z-index: 9900;
  background: var(--scrim); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  animation: fadeIn .18s ease;
}

.diary-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 460px; box-shadow: var(--shadow-modal);
  display: flex; flex-direction: column; overflow: hidden;
  animation: modalPop .22s cubic-bezier(.4,0,.2,1);
}

.diary-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
}
.diary-modal-title { font-size: 14px; font-weight: 700; color: var(--text); }
.diary-modal-close {
  background: none; border: none; color: var(--muted); font-size: 16px;
  cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1;
  transition: color .15s;
}
.diary-modal-close:hover { color: var(--text); }

.diary-modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }

.diary-modal-hint {
  font-size: 11px; color: var(--muted); line-height: 1.5;
}

.diary-modal-textarea {
  width: 100%; min-height: 100px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 13px; line-height: 1.5; resize: vertical;
  font-family: inherit; transition: border-color .15s;
  box-sizing: border-box;
}
.diary-modal-textarea:focus { outline: none; border-color: var(--accent-glow); }

.diary-modal-counter {
  font-size: 11px; color: var(--muted); text-align: right;
}

.diary-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 16px; border-top: 1px solid var(--border); gap: 10px;
}

.diary-modal-delete {
  background: none; border: 1px solid rgba(240,80,80,.3); color: var(--loss);
  padding: 7px 12px; border-radius: 8px; font-size: 12px; cursor: pointer;
  font-weight: 600; transition: background .15s;
}
.diary-modal-delete:hover { background: rgba(240,80,80,.1); }

.diary-modal-actions { display: flex; gap: 8px; margin-left: auto; }

.diary-modal-cancel {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 7px 14px; border-radius: 8px; font-size: 12px; cursor: pointer;
  font-weight: 600; transition: background .15s;
}
.diary-modal-cancel:hover { background: rgba(255,255,255,.05); }

.diary-modal-save {
  background: var(--accent); border: none; color: #000;
  padding: 7px 18px; border-radius: 8px; font-size: 12px; font-weight: 700;
  cursor: pointer; letter-spacing: .3px; transition: opacity .15s;
}
.diary-modal-save:hover { opacity: .88; }
.diary-modal-save:disabled { opacity: .5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   SESSION DIARY TIMELINE in Coaching view (.diary-*)
═══════════════════════════════════════════════════════════ */

.diary-timeline {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 8px;
}

.diary-entry {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; transition: border-color .15s;
}
.diary-entry:hover { border-color: var(--accent-glow); }

.diary-entry-date {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted); margin-bottom: 10px;
}

.diary-entry-statements { display: flex; flex-direction: column; gap: 8px; }

.diary-stmt-row { display: flex; gap: 10px; align-items: baseline; }

.diary-stmt-player {
  font-size: 12px; font-weight: 700; color: var(--accent);
  min-width: 90px; flex-shrink: 0;
}
.diary-stmt-text {
  font-size: 13px; color: var(--text); line-height: 1.5; word-break: break-word;
}

.diary-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 24px; text-align: center;
  background: var(--card); border-radius: 12px; border: 1px dashed var(--border);
}
.diary-empty-icon { font-size: 32px; }
.diary-empty-text {
  font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 340px;
}

@media (max-width: 600px) {
  .spb-player-row { flex-wrap: wrap; gap: 8px; }
  .spb-player-name { min-width: 100%; }
  .ads-bars { gap: 12px; }
  .diary-modal { max-width: 100%; margin: 8px; }
  .ac-diary-name { min-width: 50px; }
}

/* ── Team-Impact · Clutch / Entry / Aim Leaderboards ────────────────────── */
#teamImpactSection { margin-bottom: 28px; }
.ti-load-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.ti-load-hint { font-size: 11px; color: var(--muted); }
.ti-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.ti-boards { display: flex; flex-direction: column; gap: 14px; }
.ti-board { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ti-board-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 8px; flex-wrap: wrap; }
.ti-board-title { font-size: 14px; font-weight: 700; color: var(--text); }
.ti-board-sub { font-size: 11px; color: var(--muted); }
.ti-rows { display: flex; flex-direction: column; }
.ti-row { display: grid; grid-template-columns: 18px 10px 90px 1fr auto; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--border); }
.ti-rank { font-size: 11px; color: var(--muted); text-align: center; }
.ti-dot { width: 8px; height: 8px; border-radius: 50%; }
.ti-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-bar-wrap { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.ti-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.ti-val { font-size: 14px; font-weight: 700; text-align: right; min-width: 38px; }
.ti-sub { grid-column: 3 / -1; font-size: 11px; color: var(--muted); margin-top: -2px; }
.ti-takeaway { padding: 10px 16px; font-size: 12px; line-height: 1.5; color: var(--text); background: rgba(255,208,0,0.06); border-top: 1px solid var(--border); }
.ti-takeaway strong { color: var(--accent); }
.ti-datanote { margin-top: 14px; padding: 12px 16px; font-size: 12px; line-height: 1.55; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
.ti-datanote strong { color: var(--text); }
.ti-datanote code { background: var(--surface2); padding: 1px 5px; border-radius: 4px; font-size: 11px; color: var(--accent); }

/* ── Spielplan · Wochentag / Tageszeit Performance ──────────────────────── */
#scheduleSection { margin-bottom: 28px; }
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sched-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.sched-block-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sched-row { display: grid; grid-template-columns: 64px 1fr 38px; align-items: center; gap: 8px; padding: 5px 0; }
.sched-label { font-size: 12px; font-weight: 600; color: var(--text); }
.sched-range { font-size: 10px; color: var(--muted); font-weight: 400; }
.sched-bar-wrap { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.sched-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.sched-wr { font-size: 13px; font-weight: 700; text-align: right; }
.sched-meta { grid-column: 1 / -1; font-size: 10px; color: var(--muted); margin-top: -3px; }
.sched-note { margin-top: 10px; font-size: 11px; color: var(--muted); }
@media (max-width: 560px) { .sched-grid { grid-template-columns: 1fr; } }

/* ── Session-Popup · Team-Synergie-Sektion (lesbar, ersetzt Hover) ──────── */
.sd-section-title .sd-syn-score { float: right; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: none; }
.sd-syn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sd-syn-metrics { display: flex; flex-direction: column; gap: 9px; }
.sd-syn-row { display: grid; grid-template-columns: 84px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sd-syn-row strong { text-align: right; font-size: 12px; }
.sd-syn-bar { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.sd-syn-bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.sd-syn-comp-list { display: flex; flex-direction: column; gap: 6px; }
.sd-syn-comp { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text); }
.sd-syn-role { font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.sd-syn-checks { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px solid var(--border); }
.sd-syn-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text); line-height: 1.4; }
.sd-syn-check-ic { font-weight: 900; flex-shrink: 0; width: 14px; text-align: center; }
@media (max-width: 560px) { .sd-syn-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   FEED INSIGHT CHIPS + DETAIL MODAL
═══════════════════════════════════════════════════════════ */
.feed-insight-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.insight-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text);
  text-align: left; flex: 1 1 240px; max-width: 360px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow-card);
}
.insight-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.ic-meta:hover    { border-color: #06b6d4; }
.ic-pattern:hover { border-color: #a855f7; }
.ic-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.ic-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ic-title { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.ic-sub { font-size: 11px; color: var(--muted); }
.ic-count {
  flex-shrink: 0; min-width: 26px; height: 26px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 13px; font-weight: 800; color: #0a0a0d;
}
.ic-meta .ic-count    { background: #06b6d4; }
.ic-pattern .ic-count { background: #a855f7; }

.insight-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface2), var(--surface));
}
.imh-title { font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.imh-intro { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; max-width: 520px; }
.insight-modal-body { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.insight-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--muted); border-radius: 10px; padding: 14px 16px;
}
.insight-row.it-pos { border-left-color: var(--green); }
.insight-row.it-neg { border-left-color: var(--loss); }
.insight-row.it-neu { border-left-color: var(--blue); }
.ir-icon { font-size: 20px; line-height: 1.2; }
.ir-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.ir-detail { font-size: 12px; color: var(--muted); line-height: 1.6; }
.ir-detail strong { color: var(--text); font-weight: 700; }
.ir-value { font-size: 18px; font-weight: 800; white-space: nowrap; align-self: center; }
.ir-value.it-pos { color: var(--green); }
.ir-value.it-neg { color: var(--loss); }
.ir-value.it-neu { color: var(--blue); }
.insight-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 10px; }
.insight-disclaimer { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--border); }

@media (max-width: 800px) {
  .insight-chip { flex: 1 1 100%; max-width: none; }
  .insight-row { grid-template-columns: auto 1fr; }
  .ir-value { grid-column: 2; justify-self: start; }
}

/* ═══════════════════════════════════════════════════════════
   UNIFIED INTERACTIVE STATES — one focus/hover language app-wide
═══════════════════════════════════════════════════════════ */

/* Keyboard focus: a single accent ring for every interactive control.
   :focus-visible fires only for keyboard nav, so mouse clicks stay clean. */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Text fields: consistent accent border + subtle ring on focus (mouse & key) */
.focus-input:focus,
.focus-textarea:focus,
.cph-select:focus,
.cm-input:focus,
.cm-textarea:focus,
.cm-select:focus,
.todo-add-input:focus,
.setup-input:focus,
.diary-modal-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

/* ── Language switch (Team settings) ─────────────────────────────────────────*/
.tsm-lang-switch { display: inline-flex; gap: 6px; }
.tsm-lang-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.tsm-lang-btn:hover { color: var(--text); }
.tsm-lang-btn.active { background: var(--accent-interactive); border-color: var(--accent-interactive); color: #0a0a0d; }
.tsm-lang-hint { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.tsm-edit-hint { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════
   SEASON FOCUS TRACKER (.sft-*) — persönliches Saison-Coaching
═══════════════════════════════════════════════════════════ */
.sft-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; box-shadow: var(--shadow-card); }
.sft-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.sft-kicker { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.sft-title { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.sft-season-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }

.sft-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.sft-metric { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; }
.sft-metric-lbl { font-size: 10px; color: var(--muted); margin-bottom: 5px; letter-spacing: .3px; }
.sft-metric-val { font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.sft-metric-sub { font-size: 12px; color: var(--muted); font-weight: 600; }

.sft-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.sft-tab { padding: 8px 14px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .15s, border-color .15s; }
.sft-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.sft-tab:not(.on):hover { color: var(--text); }

.sft-timeline-lbl { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sft-timeline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sft-wn { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.sft-wc { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 1.5px solid var(--border); color: var(--muted); background: var(--surface2); position: relative; transition: transform .12s; }
.sft-wn:hover .sft-wc { transform: scale(1.08); }
.sft-wc.ach { background: rgba(38,201,112,.14); border-color: rgba(38,201,112,.5); color: var(--green); }
.sft-wc.fail { background: rgba(240,80,80,.12); border-color: rgba(240,80,80,.45); color: var(--loss); }
.sft-wc.partial { border-color: var(--muted); color: var(--text); }
.sft-wc.cur { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.sft-wc.locked { opacity: .4; }
.sft-wc.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.sft-carry { position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--surface); }
.sft-wl { font-size: 9px; color: var(--muted); }

.sft-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.sft-card.sft-current { border-color: var(--accent-glow); }
.sft-locked { text-align: center; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px; }
.sft-lock-ic { font-size: 22px; }
.sft-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

.sft-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sft-card-kicker { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.sft-focus-field { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.sft-focus-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s; }
.sft-focus-input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.sft-focus-input::placeholder { color: var(--muted); font-weight: 400; }
/* Weekly-goal suggestion picker */
.sft-suggest {
  width: 100%; max-width: 340px;
  appearance: none; -webkit-appearance: none;
  background: var(--surface); border: 1px dashed var(--border); border-radius: 8px;
  padding: 7px 30px 7px 11px; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; outline: none; transition: border-color .15s, color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8395' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.sft-suggest:hover { border-color: var(--accent); color: var(--text); }
.sft-suggest:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.sft-suggest option { background: var(--surface2); color: var(--text); font-weight: 500; }
.sft-suggest optgroup { background: var(--bg); color: var(--muted); font-style: normal; font-weight: 700; }

.sft-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.sft-badge-xs { font-size: 9px; padding: 1px 7px; }
.sft-badge.bs { background: rgba(38,201,112,.14); color: var(--green); border: 1px solid rgba(38,201,112,.4); }
.sft-badge.bw { background: rgba(240,80,80,.12); color: var(--loss); border: 1px solid rgba(240,80,80,.4); }
.sft-badge.ba { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-glow); }
.sft-badge.bm { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

.sft-ins { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; margin-bottom: 12px; }
.sft-ins-lbl { font-size: 10px; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }
.sft-notes { width: 100%; background: none; border: none; outline: none; resize: vertical; min-height: 48px; color: var(--text); font-family: inherit; font-size: 13px; line-height: 1.6; }
.sft-notes::placeholder { color: var(--muted); }

.sft-row2 { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.sft-rating { display: flex; gap: 6px; align-items: center; }
.sft-rdot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); background: none; cursor: pointer; padding: 0; transition: background .12s, border-color .12s; }
.sft-rdot.on { background: var(--accent); border-color: var(--accent); }
.sft-rating-val { font-size: 12px; color: var(--muted); margin-left: 4px; }
.sft-carry-toggle { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); cursor: pointer; }
.sft-carry-toggle input { accent-color: var(--accent); }

.sft-toggles { display: flex; gap: 8px; }
.sft-tgl { flex: 1; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.sft-tgl:hover { background: var(--surface); color: var(--text); }
.sft-tgl.yes { background: rgba(38,201,112,.14); border-color: rgba(38,201,112,.45); color: var(--green); }
.sft-tgl.no { background: rgba(240,80,80,.12); border-color: rgba(240,80,80,.4); color: var(--loss); }
.sft-kv-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.sft-kv-row strong { color: var(--text); }

.sft-review-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.sft-rstat { text-align: center; padding: 14px 10px; }
.sft-rstat-ic { font-size: 18px; }
.sft-rstat-val { font-size: 21px; font-weight: 800; margin: 8px 0 3px; color: var(--text); }
.sft-rstat-lbl { font-size: 10px; color: var(--muted); }
.sft-hard { margin-bottom: 16px; }
.sft-hard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sft-chart-card { margin-bottom: 16px; }
.sft-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sft-legend { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); }
.sft-lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 2px; vertical-align: middle; }
.sft-lg-kd { background: var(--blue); }
.sft-lg-wl { background: var(--green); }
.sft-chart-wrap { width: 100%; }
.sft-chart { width: 100%; height: auto; display: block; }
.sft-review-timeline { display: flex; flex-direction: column; gap: 10px; }
.sft-ri { display: flex; gap: 12px; }
.sft-rdtl { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.sft-rdtl.s { background: rgba(38,201,112,.14); color: var(--green); }
.sft-rdtl.w { background: rgba(240,80,80,.12); color: var(--loss); }
.sft-rdtl.n { background: var(--surface); color: var(--muted); }
.sft-ri-body { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.sft-ri-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sft-ri-focus { font-size: 14px; font-weight: 600; color: var(--text); }
.sft-ri-dots { display: flex; gap: 3px; }
.sft-dot-mini { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.sft-dot-mini.on { background: var(--accent); }
.sft-ri-notes { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }

@media (max-width: 560px) {
  .sft-metrics { grid-template-columns: repeat(2,1fr); }
  .sft-review-stats { grid-template-columns: 1fr; }
  .sft-toggles { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   FEED — Sessions overview + compact 2-column session tiles
═══════════════════════════════════════════════════════════ */
.sessions-overview { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-card); }
.so-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.so-title { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-label); }
.so-sub { font-size: 10px; color: var(--muted); }
.so-body { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.so-metrics { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; }
.so-metric { display: flex; flex-direction: column; gap: 3px; }
.so-val { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.5px; color: var(--text); }
.so-lbl { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.so-minis { display: flex; gap: 8px; margin-left: auto; align-items: flex-end; }
.so-mini { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; }
.so-mini-bar-wrap { width: 12px; height: 40px; background: var(--surface2); border-radius: 3px; display: flex; align-items: flex-end; overflow: hidden; }
.so-mini-bar { width: 100%; border-radius: 3px; transition: height .4s ease; }
.so-mini-lbl { font-size: 8px; color: var(--muted); letter-spacing: .5px; }

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

.session-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow-card); animation: cardEnter .3s ease both;
}
.session-tile:hover { transform: translateY(-3px); border-color: #373b47; box-shadow: var(--shadow-elevated); }
.st-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.st-head-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-label { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.st-date { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-syn { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 2px 9px; border: 1px solid; border-radius: 20px; white-space: nowrap; }
.st-hero { display: flex; flex-wrap: wrap; gap: 3px; }
.st-pill { width: 16px; height: 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; }
.st-pill.w { background: var(--green); color: #000; opacity: .9; }
.st-pill.l { background: var(--loss); color: #fff; opacity: .72; }
.st-pill-more { font-size: 10px; color: var(--muted); align-self: center; margin-left: 2px; }
.st-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-stats.st-stats-4 { grid-template-columns: repeat(4, 1fr); }
.st-stat { display: flex; flex-direction: column; gap: 3px; }
.st-stat-val { font-size: 17px; font-weight: 800; line-height: 1; color: var(--text); }
.st-stat-den { font-size: 11px; color: var(--muted); font-weight: 500; }
.st-stat-lbl { font-size: 9px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.st-players { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-hint { font-size: 10px; color: var(--border); letter-spacing: .5px; white-space: nowrap; flex-shrink: 0; }
.session-tile:hover .st-hint { color: var(--accent); }

@media (max-width: 720px) {
  .session-grid { grid-template-columns: 1fr; }
  .so-body { gap: 14px; }
  .so-metrics { grid-template-columns: repeat(2, auto); gap: 14px 22px; }
  .so-minis { margin-left: 0; }
}

/* Session diary when shown inside the session-detail modal (moved from feed tile) */
.sd-diary-section .ac-diary { border-top: none; padding: 0; }
.sd-diary-section .ac-diary-name { text-align: left; }

/* ── Gameday accordion (minimizable Meta analysis above the maps) ────────────*/
.gd-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 8px 0 24px;
  overflow: hidden;
}
.gd-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-label);
  user-select: none;
}
.gd-accordion-summary::-webkit-details-marker { display: none; }
.gd-accordion-summary:hover { color: var(--text); }
.gd-acc-chevron { transition: transform .2s; color: var(--muted); font-size: 14px; }
.gd-accordion[open] .gd-acc-chevron { transform: rotate(180deg); }
.gd-accordion .meta-section {
  border: 0; background: transparent; margin: 0; padding: 0 14px 16px;
}

/* ── One-time welcome splash (post team creation) ──────────────────────────── */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
  background: radial-gradient(120% 90% at 50% -10%, rgba(255,208,0,.10), transparent 60%), rgba(6,7,10,.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s ease;
}
.welcome-overlay.show { opacity: 1; }
.welcome-card {
  position: relative; width: 100%; max-width: 620px;
  background: linear-gradient(180deg, var(--bg-surface-elevated, #1d1d24), var(--bg-surface, #16161b));
  border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 30px 26px; margin: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,208,0,.08);
  transform: translateY(14px) scale(.99); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.welcome-overlay.show .welcome-card { transform: translateY(0) scale(1); }
.wl-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 380px; height: 240px; background: radial-gradient(circle, rgba(255,208,0,.18), transparent 70%);
  pointer-events: none; filter: blur(6px); }

.wl-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wl-brand { display: flex; align-items: center; gap: 11px; }
.wl-logo { height: 40px; width: 40px; border-radius: 10px; }
.wl-wordmark { font-size: 22px; letter-spacing: -.4px; line-height: 1; display: inline-flex; align-items: baseline; color: var(--text); }
.wl-tagline { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-label, #8b90a0); }

.wl-hero { position: relative; margin: 22px 0 18px; }
.wl-welcome { font-size: 26px; font-weight: 800; letter-spacing: -.4px; color: var(--text); line-height: 1.15; }
.wl-sub { margin-top: 6px; font-size: 14px; color: var(--muted, #9aa0b0); }

.wl-code-block { position: relative; background: rgba(255,208,0,.05); border: 1px solid rgba(255,208,0,.22);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; }
.wl-code-label { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-brand); font-weight: 800; }
.wl-code-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.wl-code { font-size: 24px; font-weight: 800; letter-spacing: 3px; color: var(--text); font-variant-numeric: tabular-nums; flex: 1; }
.wl-copy { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #0a0a0d; background: var(--accent-brand);
  border: 0; padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: filter .15s; }
.wl-copy:hover { filter: brightness(1.08); }
.wl-code-hint { margin-top: 8px; font-size: 12px; color: var(--muted, #9aa0b0); }

.wl-section-label { font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--text-label, #8b90a0);
  font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.wl-section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }

.wl-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.wl-step { display: flex; gap: 13px; align-items: flex-start; }
.wl-step-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #0a0a0d;
  background: var(--accent-brand); box-shadow: 0 0 14px rgba(255,208,0,.3); }
.wl-step-title { font-size: 14px; font-weight: 700; color: var(--text); }
.wl-step-text { font-size: 13px; color: var(--muted, #9aa0b0); margin-top: 2px; line-height: 1.5; }

.wl-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.wl-benefit { background: var(--bg-surface, #16161b); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.wl-benefit-ic { font-size: 20px; line-height: 1; margin-bottom: 8px; }
.wl-benefit-title { font-size: 13px; font-weight: 700; color: var(--text); }
.wl-benefit-text { font-size: 12px; color: var(--muted, #9aa0b0); margin-top: 3px; line-height: 1.45; }

.wl-cta { width: 100%; font-size: 15px; font-weight: 800; letter-spacing: .3px; color: #0a0a0d;
  background: linear-gradient(180deg, #ffe27a, var(--accent-brand)); border: 0; border-radius: 12px;
  padding: 14px; cursor: pointer; transition: filter .15s, transform .1s;
  box-shadow: 0 8px 24px rgba(255,208,0,.22); }
.wl-cta:hover { filter: brightness(1.06); }
.wl-cta:active { transform: translateY(1px); }
.wl-footnote { text-align: center; font-size: 11px; color: var(--text-label, #8b90a0); margin-top: 12px; }

@media (max-width: 560px) {
  .welcome-overlay { padding: 20px 12px; }
  .welcome-card { padding: 24px 20px 22px; border-radius: 16px; }
  .wl-welcome { font-size: 22px; }
  .wl-benefits { grid-template-columns: 1fr; }
  .wl-code { font-size: 20px; letter-spacing: 2px; }
}

/* ── Patch Notes widget (Gameday) ──────────────────────────────────────────── */
.pn-body { padding: 14px 16px 16px; }
.pn-loading, .pn-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }
.pn-empty a { color: var(--accent-brand); text-decoration: none; margin-left: 4px; }
.pn-badge { font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; flex-shrink: 0; white-space: nowrap; }
.pn-badge-patch { color: #0a0a0d; background: var(--accent-brand); }
.pn-badge-update { color: var(--accent-brand); background: rgba(255,208,0,.12); }
.pn-badge-maint { color: #ff9d5c; background: rgba(255,157,92,.14); }
.pn-badge-news { color: var(--muted); background: rgba(255,255,255,.06); }

.pn-latest { display: block; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, rgba(255,208,0,.06), transparent);
  border: 1px solid rgba(255,208,0,.22); border-radius: 12px; padding: 14px; transition: border-color .15s, transform .1s; }
.pn-latest:hover { border-color: rgba(255,208,0,.45); }
.pn-latest-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pn-latest-date { font-size: 11px; color: var(--muted); font-weight: 600; }
.pn-latest-title { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.3; }
.pn-latest-summary { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.pn-latest-cta { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--accent-brand); }

.pn-list-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-label);
  font-weight: 700; margin: 18px 0 8px; }
.pn-list { display: flex; flex-direction: column; gap: 2px; }
.pn-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  padding: 9px 8px; border-radius: 8px; transition: background .12s; }
.pn-item:hover { background: rgba(255,255,255,.04); }
.pn-item-title { flex: 1; min-width: 0; font-size: 13px; color: var(--text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-item-date { flex-shrink: 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.pn-stale { margin-top: 12px; font-size: 11px; color: #ff9d5c; }
.pn-source { margin-top: 14px; font-size: 11px; color: var(--text-label); }
.pn-source a { color: var(--muted); text-decoration: none; }
.pn-source a:hover { color: var(--accent-brand); }

@media (max-width: 560px) {
  .pn-item-title { white-space: normal; }
  .pn-item { align-items: flex-start; }
}

/* ── Feed patch hint (live day & day before) ───────────────────────────────── */
.patch-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 16px;
  border-radius: 12px; border: 1px solid rgba(255,208,0,.28);
  background: linear-gradient(120deg, rgba(255,208,0,.10), rgba(255,208,0,.03)); animation: fadeIn .3s ease; }
.patch-hint-pre { border-color: rgba(120,170,255,.32);
  background: linear-gradient(120deg, rgba(120,170,255,.12), rgba(120,170,255,.03)); }
.patch-hint .ph-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.patch-hint .ph-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.patch-hint .ph-label { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-brand); }
.patch-hint-pre .ph-label { color: #86b0ff; }
.patch-hint .ph-title { font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.patch-hint .ph-title:hover { color: var(--accent-brand); }
.patch-hint-pre .ph-title:hover { color: #86b0ff; }
.patch-hint .ph-close { flex-shrink: 0; background: none; border: 0; color: var(--muted); font-size: 14px;
  cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1; transition: color .15s, background .15s; }
.patch-hint .ph-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
