/* Floorball app — shared styles, adapted from the NHL app design language. */

:root {
  --bg: #0d0f16;
  --panel: #141826;
  --panel-alt: #1c2233;
  --text: #e6e8ec;
  --text-dim: #9aa4b1;
  --accent: #3b82f6;
  --accent-soft: #3b82f622;
  --border: #232a3a;
}

* { box-sizing: border-box; }
body { margin:0; font-family:Inter, system-ui, sans-serif;
  background:linear-gradient(160deg,#05060a,#0f121a); color:var(--text); }

.app-shell { display:grid; grid-template-columns:260px 1fr; min-height:100vh; min-width:0; }
.app-shell > div { min-width:0; }

/* ---------- Sidebar ---------- */
aside { padding:16px 8px 20px; border-right:1px solid var(--border); }
header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.hdr-left { display:flex; align-items:center; gap:10px; min-width:0; }
header img.logo { height:54px; filter:drop-shadow(0 0 4px #000); flex:0 0 auto; }
.hdr-title { min-width:0; }
/* No team (logged out / no memberships) → app title at 24px. */
.hdr-title h1 { margin:0; font-size:24px; font-weight:700; letter-spacing:.2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* With one or more teams the sidebar shows the team name at 16px. */
body.has-team .hdr-title h1 { font-size:16px; }

.team-switcher details { margin-top:0; position:relative; }
.team-switcher summary { list-style:none; cursor:pointer; }
.team-switcher summary::-webkit-details-marker { display:none; }
.team-switcher summary h1 { display:inline; font-size:16px; font-weight:700; letter-spacing:.2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.team-switcher summary h1:hover { color:#fff; }
.team-switcher .switch-hint { display:block; font-size:10px; color:var(--text-dim);
  text-transform:uppercase; letter-spacing:.6px; margin-top:1px; }
.team-switcher .dropdown-menu { position:absolute; top:100%; left:0; min-width:180px; max-width:260px;
  background:#0b1220; border:1px solid #2a3343; border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.4); padding:6px; z-index:50; }
.team-switcher .dropdown-item.active { background:var(--accent-tint); }

/* Slicer panel — header hidden on desktop, shown on mobile as a toggle */
.filters-shell { margin-top:6px; }
.filters-hd { display:none; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 10px; border:1px solid var(--border); border-radius:12px;
  background:rgba(255,255,255,0.02); cursor:pointer; user-select:none; }
.filters-hd .ttl { font-size:12px; letter-spacing:1px; text-transform:uppercase;
  color:var(--text-dim); font-weight:900; }
.filters-hd .sum { font-size:12px; color:var(--text); opacity:.92; font-weight:750;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:56vw; }
.filters { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
body.filters-collapsed .filters { display:none; }
label { font-size:12px; gap:6px; text-transform:uppercase; letter-spacing:.9px;
  color:var(--text-dim); font-weight:600; }
.slicer { display:flex; flex-direction:column; gap:6px; }
.slicer > label { margin-left:2px; }

/* Dropdown slicers (NHL game.html pattern) — full width, team-color-tinted */
.slicer .dropdown { position:relative; }
.slicer .dropdown-btn { width:100%; background:var(--accent-tint);
  border:1px solid var(--accent-border); color:var(--text); padding:10px 12px; border-radius:8px;
  font-weight:600; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer;
  transition:border-color .16s ease, background .16s ease; }
.slicer .dropdown-btn:hover { border-color:var(--accent-light); }
.slicer .dropdown-btn:after { content:''; width:0; height:0;
  border-left:5px solid transparent; border-right:5px solid transparent;
  border-top:6px solid rgba(255,255,255,.8); margin-left:auto; }
.slicer .dropdown-menu { position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:#0b1220; border:1px solid var(--accent-border); border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.4); padding:8px; z-index:40;
  max-height:280px; overflow:auto; }
.slicer .dropdown-item { display:flex; align-items:center; gap:8px; padding:6px;
  border-radius:6px; color:var(--text); text-decoration:none; cursor:pointer; }
.slicer .dropdown-item:hover { background:var(--accent-tint); }
.slicer .dropdown-item input { accent-color: var(--accent); }
.slicer .hidden-select { display:none !important; }
.swatch { width:12px; height:12px; border-radius:50%; display:inline-block; flex:0 0 auto; }

/* ---------- Mobile header actions ---------- */
.hdr-actions { display:none; gap:8px; align-items:center; }
.icon-btn { background:var(--panel-alt); border:1px solid #2a3142; color:var(--text);
  width:40px; height:40px; border-radius:10px; display:inline-flex;
  align-items:center; justify-content:center; cursor:pointer; }
.icon-btn:active { transform:translateY(1px); }
.icon-btn[hidden] { display:none !important; }
.icon { width:20px; height:20px; display:block; }
.mobile-summary { display:none; font-size:12px; color:var(--text-dim); font-weight:650;
  letter-spacing:.2px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mobile-summary.empty { display:none !important; }

/* Mobile menu panel (page nav) */
.mobile-menu { display:none; border:1px solid var(--border); border-radius:12px;
  background:rgba(255,255,255,0.02); overflow:hidden; margin-top:10px; }
.mobile-menu a { display:block; padding:12px 12px; text-decoration:none; color:var(--text);
  font-weight:750; letter-spacing:.2px; border-bottom:1px solid var(--border); }
.mobile-menu a:last-child { border-bottom:none; }
.mobile-menu a.active { background:rgba(255,255,255,0.03);
  outline:2px solid var(--accent-soft); outline-offset:-2px; }
.mobile-menu form { margin:0; }
.mobile-menu button { display:block; width:100%; padding:12px 12px; text-align:left;
  background:transparent; border:none; color:var(--text); font-weight:750; letter-spacing:.2px; }

/* ---------- Top nav ---------- */
.app-main { display:flex; flex-direction:column; min-width:0; }
/* .tabs-row wraps the scrollable page tabs + the fixed right-side controls.
   The right side (language + user menu) must NOT be inside the scroll
   container, or the absolutely-positioned user dropdown gets clipped. */
.tabs-row { display:flex; align-items:stretch; border-bottom:1px solid var(--border); background:var(--panel); }
nav.tabs { display:flex; align-items:center; gap:4px; padding:0 16px;
  flex:1 1 auto; min-width:0;
  /* Between the mobile breakpoint (980px) and full desktop width the nav is
     wider than the viewport — scroll it horizontally instead of overflowing
     the page to the right. */
  overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--border,#2a3343) transparent; }
nav.tabs::-webkit-scrollbar { height:6px; }
nav.tabs::-webkit-scrollbar-thumb { background:var(--border,#2a3343); border-radius:3px; }
nav.tabs::-webkit-scrollbar-track { background:transparent; }
/* Keep the tab links at natural size so they scroll rather than being
   squeezed (the .nav-spacer absorbs the extra space). */
nav.tabs > a { flex-shrink:0; }
nav.tabs a { position:relative; color:var(--text-dim); text-decoration:none; padding:14px 14px;
  font-weight:600; font-size:14px; letter-spacing:.2px;
  border-bottom:2px solid transparent; }
.tabs-side { flex:0 0 auto; display:flex; align-items:center; gap:4px; padding:0 16px 0 4px; }
nav.tabs a:hover { color:var(--text); }
nav.tabs a.active { color:#fff; }
nav.tabs a.active::after {
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:3px; border-radius:3px; background:var(--accent-light);
  box-shadow:0 0 8px -1px var(--accent-light);
}
.nav-spacer { flex:1 1 auto; }
.nav-user { position:relative; }
.nav-user summary { color:var(--text); padding:14px 14px; cursor:pointer;
  font-weight:600; font-size:14px; list-style:none; max-width:160px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav-user summary::-webkit-details-marker { display:none; }
.nav-user summary:after { content:'▾'; margin-left:6px; color:var(--text-dim); }
.nav-user-menu { position:absolute; right:0; top:100%; background:#0b1220;
  border:1px solid #2a3343; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.4);
  min-width:180px; z-index:50; padding:6px; }
.nav-user-menu a, .nav-user-menu button { display:block; width:100%; text-align:left;
  padding:10px 12px; background:transparent; border:none; color:var(--text);
  font-size:14px; cursor:pointer; border-radius:6px; text-decoration:none; }
.nav-user-menu a:hover, .nav-user-menu button:hover { background:rgba(255,255,255,.06); }
.nav-user-link { color:var(--accent) !important; font-weight:700; }

/* ---------- Main content ---------- */
main { padding:32px 42px 80px; max-width:none; }
.flash-stack { margin-bottom:16px; display:flex; flex-direction:column; gap:8px; }
.flash { padding:10px 14px; border-radius:8px; background:var(--panel);
  border:1px solid var(--border); color:var(--text); font-size:14px; }
.flash.info { border-left:3px solid var(--accent); }

/* ---------- Panels — clean, no frames by default ---------- */
.panel { background:transparent; border:none; border-radius:0;
  padding:0; margin-bottom:28px; }
.panel h2 { margin:0 0 12px; font-size:20px; }
.panel-hd { display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,0.06); }
.panel-meta { color:var(--text-dim); font-size:13px; }

/* Form panels (login, register, account) keep a subtle card */
.panel-form { background:var(--panel); border:1px solid var(--border);
  border-radius:12px; padding:24px; margin-bottom:24px; }
.panel-form h2 { margin:0 0 10px; }

.config-btn { background:var(--accent-tint); border:1px solid var(--accent-border); color:var(--text);
  padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:600; font-size:13px; }
.config-btn:hover { background:color-mix(in srgb, var(--accent) 28%, var(--panel-alt));
  border-color:var(--accent-light); }
.config-btn[disabled] { opacity:.5; cursor:not-allowed; }

.placeholder { display:flex; flex-direction:column; gap:6px; padding:18px 0;
  color:var(--text-dim); font-size:14px; }
.gated-note { font-size:13px; color:var(--text-dim); font-style:italic; }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:980px){ .grid-2{ grid-template-columns:1fr; } }

/* ---- Sub-tabs (page-level, below main nav) — NHL app pill-button style ---- */
.subtabs { display:flex; align-items:center; gap:12px; margin:10px 0 20px; flex-wrap:wrap; }
.subtabs .subtab-btn { background:transparent; border:1px solid var(--border);
  color:var(--text); padding:8px 14px; border-radius:10px; font-weight:750;
  letter-spacing:.2px; cursor:pointer; font-size:14px; transition:background .15s, border-color .15s; }
.subtabs .subtab-btn:hover { background:rgba(255,255,255,0.04); }
.subtabs .subtab-btn.active { outline:2px solid var(--accent); }
.subtabs .subtab-spacer { flex:1 0 auto; }
.subtabs .subtab-action { align-self:center; margin-right:4px; }

/* ---- Opponent collapsible rows ---- */
.opp-row .opp-actions { display:none; }
.opp-row.open .opp-actions { display:flex; }

/* ---- Calendar (NHL Schedule style) ---- */
.cal-controls { display:flex; align-items:center; justify-content:center; gap:.75rem;
  margin:0 0 1.25rem; }
.cal-controls .cal-title { font-size:28px; font-weight:600; letter-spacing:1px; color:var(--text);
  min-width:200px; text-align:center; }
.cal-controls button { background:var(--panel-alt); border:1px solid var(--border);
  color:var(--text); padding:8px 14px; font-size:18px; line-height:1; border-radius:10px;
  font-weight:600; cursor:pointer; transition:background .18s; }
.cal-controls button:hover:not(:disabled) { background:var(--panel); }
.cal-controls button:disabled { opacity:.35; cursor:default; }

/* Export/Import buttons row (above month) */
.cal-actions { display:flex; justify-content:flex-end; gap:8px; margin-bottom:6px; }
.cal-actions .config-btn { font-size:12px; }

.cal-month { margin-bottom:32px; }
.cal-day-names { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:6px; }
.cal-day-names div { text-align:center; font-size:12px; font-weight:600; letter-spacing:1px;
  text-transform:uppercase; color:var(--text-dim); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-tile { position:relative; aspect-ratio:7/5; border-radius:10px; padding:6px 6px 4px;
  display:flex; flex-direction:column; justify-content:space-between; overflow:hidden;
  background:#1a2231; border:1px solid #1d2735;
  box-shadow:0 2px 4px -2px rgba(0,0,0,.6); }
.cal-tile.empty { background:transparent; border:none; box-shadow:none; }
.cal-tile:not(.empty) { cursor:pointer; }
.cal-tile:not(.empty):hover { border-color:var(--accent-light); }
.cal-tile .cal-date { position:absolute; top:4px; left:6px; font-size:13px; opacity:.85; z-index:2;
  color:inherit; font-weight:700; }

/* Tile label: event type + time (visible on desktop, hidden on mobile) */
.cal-tile-label {
  position:absolute; bottom:4px; left:6px; right:6px;
  font-size:11px; font-weight:600; letter-spacing:.2px;
  line-height:1.2; z-index:2; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* "+N more" indicator for additional events on same day */
.cal-event-dots {
  position:absolute; top:18px; right:6px; z-index:2;
}
.cal-dot-more {
  font-size:10px; color:var(--text-dim); font-weight:700; line-height:1;
}

/* Opponent logo centered on game tiles (desktop only) */
.cal-opp-logo {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:60%; height:60%; object-fit:contain; opacity:0.2; z-index:1;
  pointer-events:none;
}

/* Game score on top of the logo (desktop only) — always home score first */
.cal-game-score {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  font-size:26px; font-weight:900; letter-spacing:.4px; color:#fff; z-index:2;
  font-variant-numeric:tabular-nums; text-shadow:0 1px 4px rgba(0,0,0,.9);
  pointer-events:none; white-space:nowrap;
}

/* Shot-map marker tooltip (Line Tool / Shooting / Goaltending / On Field) */
.shot-map-tooltip {
  position:fixed; z-index:9999; pointer-events:none;
  background:rgba(10,15,24,0.97); border:1px solid #2a3343; border-radius:8px;
  padding:8px 11px; box-shadow:0 8px 20px rgba(0,0,0,.55);
  color:#e6ecf5; font-size:12px; line-height:1.5; min-width:160px; max-width:240px;
}
.shot-map-tooltip .smt-head { display:flex; align-items:center; gap:9px; font-weight:700; font-size:13px; margin-bottom:5px; }
.shot-map-tooltip .smt-shooter { word-break:break-word; }
.shot-map-tooltip .smt-avatar {
  width:28px; height:28px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; font-weight:800; font-size:11px; color:#fff; flex-shrink:0;
  background:linear-gradient(160deg, #3b82f6, #1e40af);
}
.shot-map-tooltip .smt-avatar-img-wrap { overflow:hidden; background:var(--panel); }
.shot-map-tooltip .smt-avatar-img { width:100%; height:100%; object-fit:cover; display:block; }
.shot-map-tooltip .smt-row { display:flex; justify-content:space-between; gap:16px; }
.shot-map-tooltip .smt-row b { color:#9fb3d1; font-weight:600; }

/* Legend */
.cal-legend { margin-top:8px; font-size:13px; display:flex; gap:24px; align-items:center;
  justify-content:center; flex-wrap:wrap; font-weight:600; color:var(--text-dim); }
.cal-legend .lg-swatch { display:inline-block; width:18px; height:12px; border-radius:4px;
  margin-right:6px; vertical-align:middle; }

/* Legend swatches — reflect the actual tile colors */
.lg-swatch.event-type-game      { background:color-mix(in srgb, var(--accent-light) 28%, #1a2231); }
.lg-swatch.event-type-training  { background:#22c55e; }
.lg-swatch.event-type-camp      { background:#f97316; }
.lg-swatch.event-type-tournament { background:#a855f7; }
.lg-swatch.event-type-other     { background:#6b7280; }

/* Today highlight */
.cal-tile.cal-today {
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 8px -3px var(--accent-light);
}

@media (max-width:600px){
  .cal-tile-label { display:none; }
  .cal-opp-logo   { display:none; }
  .cal-game-score { display:none; }
  .cal-tile .cal-date { font-size:14px; top:50%; left:50%; transform:translate(-50%,-50%); }
}

@media (max-width:980px){
  .cal-tile { aspect-ratio:5/4; }
}

/* ---- Modals ---- */
.modal-backdrop { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,0.6);
  display:flex; align-items:flex-start; justify-content:center; padding:60px 16px 16px;
  overflow:auto; }
.modal-backdrop[hidden] { display:none; }
.modal-card { width:100%; max-width:520px; background:var(--panel);
  border:1px solid var(--border); border-radius:14px;
  box-shadow:0 24px 60px -12px rgba(0,0,0,0.8); }
.modal-hd { display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px; border-bottom:1px solid var(--border); }
.modal-title { font-weight:800; letter-spacing:.2px; font-size:17px; }
.modal-bd { padding:18px; }
.modal-close { background:none; border:none; color:var(--text-dim); font-size:20px;
  cursor:pointer; padding:4px 8px; border-radius:6px; }
.modal-close:hover { color:var(--text); background:var(--panel-alt); }
.modal-card label { display:block; font-size:13px; color:var(--text-dim);
  margin-bottom:4px; font-weight:600; }

/* ---- Bulk editable tables (opponents / players) ---- */
.bulk-tbl { width:100%; border-collapse:collapse; font-size:13px; }
.bulk-tbl th, .bulk-tbl td { padding:6px 8px; border-bottom:1px solid var(--border);
  vertical-align:middle; }
.bulk-tbl th { color:var(--text-dim); text-transform:uppercase; letter-spacing:.5px;
  font-weight:600; font-size:11px; text-align:left; }
.bulk-tbl td input[type="text"], .bulk-tbl td input[type="number"],
.bulk-tbl td input[type="date"], .bulk-tbl td select {
  width:100%; padding:6px 8px; background:#0f1520; border:1px solid #2a3343;
  color:var(--text); border-radius:6px; font-size:13px; box-sizing:border-box; }
.bulk-tbl td input[type="color"] { width:48px; height:34px; padding:2px;
  background:#0f1520; border:1px solid #2a3343; border-radius:6px; cursor:pointer; }
.bulk-tbl td .file-btn { position:relative; display:inline-block; }
.bulk-tbl td .file-btn input[type="file"] { position:absolute; inset:0; opacity:0;
  cursor:pointer; width:100%; height:100%; }
.bulk-tbl td .file-btn .file-label { display:inline-block; padding:6px 10px;
  background:var(--panel-alt); border:1px solid var(--border); border-radius:6px;
  font-size:12px; cursor:pointer; white-space:nowrap; }
.bulk-tbl td .file-btn .file-name { display:block; font-size:11px; color:var(--text-dim);
  margin-top:3px; max-width:120px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; }
.bulk-tbl .row-del { background:none; border:none; color:#ef4444; font-size:16px;
  cursor:pointer; padding:4px 6px; border-radius:4px; }
.bulk-tbl .row-del:hover { background:rgba(239,68,68,0.12); }
.bulk-add-row { margin-top:10px; }

.metrics-table { width:100%; border-collapse:collapse; font-size:13px; }
.metrics-table th, .metrics-table td { padding:10px 14px; border-bottom:1px solid rgba(255,255,255,0.05);
  text-align:left; }
.metrics-table th { color:var(--text-dim); text-transform:uppercase; letter-spacing:.6px;
  font-weight:600; font-size:11px; }
.metrics-table tr:hover td { background:rgba(255,255,255,0.02); }

/* Back links and inline links — light, visible */
a { color:var(--accent-light); text-decoration:none; }
a:hover { color:#fff; }
.back-link { color:var(--accent-light); font-size:14px; font-weight:500; }
.back-link:hover { color:#fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .app-shell { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  aside { border-right:none; border-bottom:1px solid var(--border); padding:12px 10px; }
  .tabs-row { display:none; }
  nav.tabs { display:none; }
  /* Mobile buttons: comfortable, tappable minimum width; button rows wrap
     onto multiple lines instead of squeezing or overflowing. */
  .config-btn { min-width:96px; white-space:normal; }
  div:has(> .config-btn) { flex-wrap:wrap; }
  .hdr-actions { display:flex; }
  .mobile-summary { display:block; }
  .filters-hd { display:flex; }
  .mobile-menu:not([hidden]) { display:block; }
  .mobile-menu[hidden] { display:none !important; }
  body.filters-collapsed .filters { display:none; }
  main { padding:16px 12px; }
}

/* ---------- Mobile portrait (phones) ---------- */
@media (max-width: 600px){
  /* Members tab tables: keep only avatar + name. Hide username, role, position. */
  #panelMembers .metrics-table thead th:nth-child(3),
  #panelMembers .metrics-table tbody td:nth-child(3),
  #panelMembers .metrics-table thead th:nth-child(4),
  #panelMembers .metrics-table tbody td:nth-child(4),
  #panelMembers .metrics-table thead th:nth-child(5),
  #panelMembers .metrics-table tbody td:nth-child(5) { display:none; }

  /* Opponent player tables: keep only avatar + name + actions.
     Hide jersey, number, position, birthday columns (cols 3-6). */
  .opp-body .metrics-table thead th:nth-child(3),
  .opp-body .metrics-table tbody td:nth-child(3),
  .opp-body .metrics-table thead th:nth-child(4),
  .opp-body .metrics-table tbody td:nth-child(4),
  .opp-body .metrics-table thead th:nth-child(5),
  .opp-body .metrics-table tbody td:nth-child(5),
  .opp-body .metrics-table thead th:nth-child(6),
  .opp-body .metrics-table tbody td:nth-child(6) { display:none; }

  /* Modals: nearly full-width, reduced padding. */
  .modal-backdrop { padding:14px 8px 8px; }
  .modal-card { max-width:100%; }
  .modal-hd { padding:12px 14px; }
  .modal-title { font-size:16px; }
  .modal-bd { padding:14px; }

  /* Form rows that use a 2-column grid stack vertically. */
  .modal-card form > div[style*="grid-template-columns:1fr 1fr"],
  .modal-card form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns:1fr !important;
  }

  /* Submit/Cancel button rows stack full-width. */
  .modal-card .config-btn { width:100%; box-sizing:border-box; }
  .modal-bd > div:last-of-type,
  .modal-bd form > div:last-of-type {
    flex-direction:column !important;
  }

  /* Bulk tables: wrap and let each cell take full width so columns
     don't get crushed on a narrow screen. */
  .bulk-tbl, .bulk-tbl thead, .bulk-tbl tbody,
  .bulk-tbl tr, .bulk-tbl th, .bulk-tbl td { display:block; }
  .bulk-tbl thead { display:none; }
  .bulk-tbl tr {
    display:grid; grid-template-columns:1fr; gap:6px;
    padding:10px 8px; border:1px solid var(--border);
    border-radius:10px; margin-bottom:10px;
  }
  .bulk-tbl td { border-bottom:none; padding:0; }
  .bulk-tbl td .file-btn { width:100%; }
  .bulk-tbl td .file-btn .file-label { width:100%; box-sizing:border-box; text-align:center; }

  /* Opponent row action buttons wrap and stretch full-width when visible. */
  .opp-row.open .opp-actions { flex-direction:column; align-items:stretch; }
  .opp-row.open .opp-actions .config-btn { width:100%; box-sizing:border-box; }

  /* Preserve newlines in placeholders so column hints stay readable. */
  .bulk-tbl textarea { white-space:pre-wrap; }
}