/* ── Events module ── */

/* Event name search — browse bar: css/events-browse.css */
#ev-grid-lbl { display: none; }
.ev-search-wrap { margin-bottom: 12px; }
.ev-sw {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 0.5px solid var(--pb);
  border-radius: var(--pr);
  padding: 9px 12px;
}
.ev-sw i { color: #90A4AE; font-size: 15px; flex-shrink: 0; }
.ev-sw input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ps);
  flex: 1;
  font-family: 'Outfit', sans-serif;
  min-width: 0;
}
.ev-sw input::placeholder { color: #B0BEC5; }
.ev-sw:focus-within {
  border-color: var(--pg);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.12);
}

/* Collapsible module filters */
.module-filters-group {
  margin-bottom: 14px;
  max-width: 100%;
}
.module-filters-group .module-filter-toggle-wrap {
  margin-bottom: 0;
}
.module-filters-group .filter-toggle-btn {
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}
.module-filters-group .filter-toggle-btn.expanded {
  border-radius: var(--pr) var(--pr) 0 0;
  border-bottom: none;
  margin-bottom: 0;
}
.module-filters-panel {
  display: none !important;
  background: white;
  border: 0.5px solid var(--pb);
  border-top: none;
  border-radius: 0 0 var(--pr) var(--pr);
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-bottom: 0;
}
.module-filters-panel.open {
  display: block !important;
}
.module-filters-group.is-open .filter-toggle-btn {
  border-color: #9FA8DA;
}
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 0.5px solid var(--pb);
  border-radius: var(--pr);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ps);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.filter-toggle-btn:hover { background: #F7F9F7; border-color: #B0BEC5; }
.filter-toggle-btn.expanded {
  background: var(--pnl);
  border-color: #9FA8DA;
  border-radius: var(--pr) var(--pr) 0 0;
  margin-bottom: 0;
}
.filter-toggle-btn.has-active { border-color: var(--pg); }
.filter-toggle-btn.has-active .filter-active-badge { display: inline-flex !important; }
.filter-toggle-btn i.ti-filter { color: var(--pn); font-size: 15px; }
.filter-chevron { color: #90A4AE; font-size: 16px; margin-left: 2px; }
.filter-active-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--pg);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.filter-panel-section {
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--pb);
}
.filter-panel-section:last-child { border-bottom: none; }
.filter-panel-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #90A4AE;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Events module filters — larger pills + compact multi-column desktop layout */
#view-events .filter-toggle-btn {
  font-size: 14px;
  padding: 10px 16px;
}
#view-events .filter-toggle-btn i.ti-filter { font-size: 17px; }
#view-events .filter-chevron { font-size: 18px; }
#view-events .filter-panel-label {
  font-size: 10px;
  letter-spacing: 0.55px;
  margin-bottom: 9px;
}
#view-events .filter-chip-row { gap: 8px; }
#view-events .fc,
#view-events .vc {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 22px;
}
#view-events .fc .ti,
#view-events .vc .ti {
  font-size: 13px;
}
#view-events .ev-tc {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 22px;
}
#view-events .ev-date-field label {
  font-size: 10px;
  margin-bottom: 5px;
}
#view-events .ev-date-input {
  font-size: 13px;
  padding: 8px 10px;
}
#view-events .ev-date-clear {
  font-size: 11px;
  padding: 6px 12px;
  margin-top: 10px;
}
#view-events .dm-wrap { gap: 10px; }
#view-events .dm-trk { width: 88px; height: 6px; }
#view-events .dm-th {
  width: 14px;
  height: 14px;
}
#view-events #ev-dlbl {
  font-size: 12px;
  min-width: 58px;
}

#view-events .ev-location-row {
  margin-bottom: 6px;
}
#view-events .ev-filter-location-input {
  font-size: 13px;
  padding: 8px 10px;
}
#view-events .ev-loc-btn {
  font-size: 12px;
  padding: 8px 12px;
  white-space: nowrap;
}
#view-events .ev-filter-hint {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
}
#view-events .ev-distance-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
#view-events .ev-distance-lbl {
  margin-bottom: 0;
  flex: 0 0 auto;
}
#view-events .ev-filter-distance-select {
  flex: 1 1 140px;
  min-width: 120px;
  font-size: 13px;
  padding: 8px 10px;
}
#view-events .ev-loc-clear-btn {
  font-size: 12px;
  padding: 8px 12px;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  #view-events .filter-panel-label {
    font-size: 11px;
    margin-bottom: 10px;
  }
  #view-events .fc,
  #view-events .vc,
  #view-events .ev-tc {
    padding: 9px 15px;
    font-size: 13px;
  }
  #view-events .fc .ti,
  #view-events .vc .ti {
    font-size: 14px;
  }
  #view-events .ev-filters-panel.open {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
  }
  #view-events .ev-filters-panel .filter-panel-section {
    flex: 1 1 240px;
    min-width: 220px;
    padding: 14px 16px;
    border-bottom: none;
    border-right: 0.5px solid var(--pb);
  }
  #view-events .ev-filters-panel .filter-panel-section:last-child {
    border-right: none;
  }
  #view-events .ev-filters-panel .filter-panel-section.ev-location-section {
    flex: 1.15 1 280px;
  }
  #view-events .ev-filters-panel .filter-panel-section:nth-child(4) {
    flex: 0.75 1 0;
  }
  #view-events .ev-filters-panel .filter-panel-section:nth-child(5) {
    flex: 1.25 1 0;
  }
  #view-events .ev-loc-btn,
  #view-events .ev-loc-clear-btn {
    font-size: 13px;
    padding: 9px 14px;
  }
  #view-events .ev-filter-location-input,
  #view-events .ev-filter-distance-select {
    font-size: 14px;
  }
  #view-events .ev-date-range-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  #view-events .ev-date-field {
    min-width: 0;
  }
}

@media (min-width: 1280px) {
  #view-events .ev-filters-panel .filter-panel-section {
    flex: 1 1 0;
    min-width: 0;
  }
  #view-events .ev-filters-panel .filter-panel-section:nth-child(1) { flex: 1.2 1 0; }
  #view-events .ev-filters-panel .filter-panel-section:nth-child(2) { flex: 0.9 1 0; }
  #view-events .ev-filters-panel .filter-panel-section.ev-location-section { flex: 1.1 1 0; }
  #view-events .ev-filters-panel .filter-panel-section:nth-child(4) { flex: 0.7 1 0; }
  #view-events .ev-filters-panel .filter-panel-section:nth-child(5) { flex: 1.2 1 0; }
  #view-events .fc,
  #view-events .vc,
  #view-events .ev-tc {
    padding: 10px 16px;
    font-size: 14px;
  }
}

.ev-date-range-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.ev-date-field {
  flex: 1;
  min-width: 120px;
}
.ev-date-field label {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: #90A4AE;
  margin-bottom: 4px;
}
.ev-date-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  border: 0.5px solid var(--pb);
  border-radius: var(--prs);
  font-family: 'Outfit', sans-serif;
  color: var(--ps);
  background: white;
}
.ev-date-input:focus {
  outline: none;
  border-color: var(--pg);
}
.ev-date-clear {
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  color: var(--pgd);
  background: var(--pgl);
  border: 0.5px solid var(--success-bd);
  border-radius: var(--prs);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.ev-date-clear:hover {
  background: var(--pg);
  color: white;
  border-color: var(--pg);
}
/* Legacy .filter-bar — do not use on collapsible panels (forces display:flex) */
.fc { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 500; cursor: pointer; border: 1px solid #E0E0E0; color: #607D8B; background: white; transition: all 0.15s; }
.fc:hover { border-color: var(--pg); color: var(--pgd); }
.fc.on { background: var(--pgl); border-color: var(--pg); color: var(--pgd); font-weight: 600; }
.fsep { width: 0.5px; height: 18px; background: #ECEFF1; flex-shrink: 0; }
.vc { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 500; cursor: pointer; border: 1px solid #E0E0E0; color: #607D8B; background: white; transition: all 0.15s; display: flex; align-items: center; gap: 3px; }
.vc.pub  { background: #E3F2FD; border-color: #1976D2; color: #0D47A1; }
.vc.priv { background: #F3E5F5; border-color: #7B1FA2; color: #4A148C; }

/* Events tier chips (compact, for filter bar) */
.ev-tc { padding: 4px 9px; border-radius: 20px; font-size: 10px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; white-space: nowrap; }
.ev-tc-all { background: #ECEFF1; color: #607D8B; border-color: #ECEFF1; }
.ev-tc-all.on { background: #455A64; color: white; border-color: #455A64; }
.ev-tc-beg { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-bd); }
.ev-tc-beg.on { background: var(--success-fg); color: white; }
.ev-tc-int { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-bd); }
.ev-tc-int.on { background: #3949AB; color: white; }
.ev-tc-adv { background: #FFF3E0; color: #E65100; border-color: #FFE0B2; }
.ev-tc-adv.on { background: #E65100; color: white; }
.ev-tc-pro { background: #FCE4EC; color: #AD1457; border-color: #F8BBD0; }
.ev-tc-pro.on { background: #AD1457; color: white; }

/* DUPR mini slider in filter bar */
.dm-wrap { display: flex; align-items: center; gap: 8px; }
.dm-trk  { position: relative; width: 72px; height: 5px; background: #ECEFF1; border-radius: 3px; }
.dm-fill { position: absolute; height: 5px; background: var(--pg); border-radius: 3px; top: 0; }
.dm-th   { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: white; border: 2px solid var(--pg); top: 50%; transform: translate(-50%,-50%); cursor: pointer; z-index: 2; }

/* Event grid + cards — responsive columns (Phase 1, RESPONSIVE_DESIGN_PLAN.md) */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 11px;
}
.ec { background: white; border-radius: var(--pr); border: 0.5px solid var(--pb); overflow: hidden; cursor: pointer; transition: all 0.18s; }
.ec:hover { border-color: var(--pg); transform: translateY(-1px); }
.ec.mine      { border-left: 3px solid var(--py); }
.ec.past-card { border-left: 3px solid #90A4AE; opacity: 0.85; }
.ec.dim       { opacity: 0.25; pointer-events: none; }
.ec-hd  { padding: 11px 13px 9px; border-bottom: 0.5px solid var(--pb); display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.ec-hd-main { flex: 1; min-width: 0; }
.ec-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.ec-card-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  border: 0.5px solid;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}
.ec-card-act .ti { font-size: 12px; flex-shrink: 0; }
.ec-card-act--edit {
  color: #1565C0;
  border-color: #90CAF9;
  background: #E3F2FD;
}
.ec-card-act--edit:hover {
  background: #BBDEFB;
  border-color: #42A5F5;
}
.ec-card-act--delete {
  color: #C62828;
  border-color: #EF9A9A;
  background: #FFEBEE;
}
.ec-card-act--delete:hover {
  background: #FFCDD2;
  border-color: #E57373;
}
/* Organizer cards — edit/delete in body footer so card center opens detail, not delete */
.ec-body .ec-card-actions {
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--pb);
  position: relative;
  z-index: 3;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  row-gap: 4px;
  align-items: center;
}
.tb { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; font-weight: 600; padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px; }
.rr { background: var(--success-bg); color: var(--success-fg); }
.lg { background: var(--info-bg); color: var(--info-fg); }
.ld { background: #FFF3E0; color: #E65100; }
.op { background: #E0F7FA; color: #00695C; }
.tm { background: #F3E5F5; color: #6A1B9A; }

/* Tournament card — corner ribbon (white card body) */
.ec[data-type="tm"] {
  position: relative;
  overflow: hidden;
  border-top: 2px solid #CE93D8;
}
.ec[data-type="tm"]:hover {
  border-top-color: #AB47BC;
}
.ec-tn-ribbon {
  position: absolute;
  top: 12px;
  right: -36px;
  z-index: 2;
  width: 132px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #5E1384 0%, #8E24AA 55%, #7B1FA2 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.65px;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(94, 19, 132, 0.32);
  pointer-events: none;
}
.ec-tn-ribbon i { font-size: 9px; opacity: 0.95; }
.ec[data-type="tm"]:hover .ec-tn-ribbon {
  background: linear-gradient(135deg, #6A1B9A 0%, #AB47BC 100%);
}
.ec[data-type="tm"] .ec-hd {
  padding-right: 44px;
}
.ec[data-type="tm"].past-card {
  border-top-color: #B0BEC5;
}
.ec[data-type="tm"].past-card .ec-tn-ribbon {
  background: linear-gradient(135deg, #78909C, #90A4AE);
  box-shadow: none;
}

.cfg-merged-rr-block { border-top: 1px solid var(--pb); padding-top: 10px; }
.mrr-div-row { display: grid; grid-template-columns: 1fr 72px auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.ev-merged-rr { margin-top: 10px; padding: 10px 12px; background: #F3E5F5; border-radius: 8px; }
.ev-merged-hd { font-size: 11px; font-weight: 700; color: #6A1B9A; margin-bottom: 4px; }
.ev-merged-divs { font-size: 11px; color: var(--pn); font-weight: 600; }
.ev-merged-sub { font-size: 10px; color: #78909C; margin-top: 4px; }
.vb-pub  { background: #E3F2FD; color: #0D47A1; }
.vb-priv { background: #F3E5F5; color: #4A148C; }
.org-b   { background: #FFF8E1; color: #E65100; }
.inv-b   { background: var(--success-bg); color: var(--success-fg); }
.past-b  { background: #ECEFF1; color: #607D8B; }
.ec-name { font-size: 12px; font-weight: 600; color: var(--pn); margin-top: 5px; }
.ec-body { padding: 9px 13px; }
.meta    { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.mi      { display: flex; align-items: center; gap: 3px; font-size: 10px; color: #78909C; }
.mi i    { font-size: 11px; }
.sbar-wrap { margin-bottom: 7px; }
.sbar-lbl  { display: flex; justify-content: space-between; font-size: 9px; color: #90A4AE; margin-bottom: 2px; }
.sbar-trk  { height: 4px; background: #ECEFF1; border-radius: 2px; overflow: hidden; position: relative; }
.sbar-fill { height: 4px; border-radius: 2px; position: absolute; top: 0; }
.slbls     { display: flex; justify-content: space-between; font-size: 7px; color: #CFD8DC; margin-top: 1px; }
.prow { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.pavs { display: flex; }
.pa   { width: 20px; height: 20px; border-radius: 50%; border: 2px solid white; margin-left: -4px; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: white; }
.pa:first-child { margin-left: 0; }
.pac  { font-size: 9px; color: #90A4AE; margin-left: 5px; }
.pbar   { height: 3px; background: #ECEFF1; border-radius: 2px; overflow: hidden; margin-top: 5px; }
.pbar-f { height: 100%; border-radius: 2px; }

.ec-cap {
  font-size: 9px;
  font-weight: 600;
  color: var(--pg);
  flex-shrink: 0;
}
.ec-inv-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ec-inv-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 36px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ec-inv-accept {
  background: var(--pg);
  color: white;
  border: 0.5px solid var(--pgd);
}
.ec-inv-accept:hover { background: var(--pgd); }
.ec-inv-decline {
  background: #FCE4EC;
  color: #AD1457;
  border: 0.5px solid #F48FB1;
}
.ec-inv-decline:hover {
  background: #F8BBD0;
  color: #880E4F;
  border-color: #EC407A;
}
.ec-inv-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
}
.ec-inv-status--going { color: #2E7D32; }
.ec-inv-status--waitlist { color: #E65100; }
.ec-inv-status--declined { color: #AD1457; }
.ec-inv-actions--change {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ec-inv-actions--change .ec-inv-status {
  flex: 1 1 100%;
}
.ec-inv-btn--compact {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
}
.declined-b { background: #FFEBEE !important; color: #C62828 !important; }
.waitlist-b { background: #FFF8E1 !important; color: #E65100 !important; }
.ec.ec--declined { opacity: 0.72; }

.ev-rsvp-section {
  background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}
.ev-rsvp-lead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #455A64;
}
.ev-rsvp-lead .ti { font-size: 16px; flex-shrink: 0; margin-top: 1px; color: var(--pg); }
.ev-rsvp-lead--declined .ti { color: #C62828; }
.ev-rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ev-rsvp-actions .btn { flex: 1 1 140px; justify-content: center; min-height: 40px; }
.ev-rsvp-decline-btn {
  border-color: #F48FB1;
  color: #AD1457;
}

@media (min-width: 1024px) {
  .ec-hd { padding: 14px 16px 11px; }
  .badges { gap: 5px; row-gap: 5px; }
  .ec-card-act { font-size: 11px; padding: 6px 10px; }
  .ec-card-act .ti { font-size: 13px; }
  .ec-body .ec-card-actions { margin-top: 12px; padding-top: 10px; }
  .ec[data-type="tm"] .ec-hd { padding-right: 48px; }
  .ec-name { font-size: 16px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
  .ec-body { padding: 12px 16px 14px; }
  .ec .meta { gap: 10px; margin-bottom: 9px; }
  .ec .mi { font-size: 12px; color: #546E7A; }
  .ec .mi i { font-size: 13px; }
  .ec .tb { font-size: 9px; padding: 3px 9px; }
  .ec .sbar-lbl { font-size: 11px; }
  .ec .sbar-lbl span:last-child { font-size: 12px; }
  .ec .slbls { font-size: 8px; }
  .ec .pac { font-size: 11px; color: #78909C; }
  .ec .ec-cap { font-size: 12px; }
  .ec .ec-cap[style] { font-size: 12px !important; }
  .ec .pa { width: 24px; height: 24px; font-size: 9px; }
  .ec .prow { margin-top: 6px; }
  .ec-inv-actions { gap: 10px; margin-top: 10px; }
  .ec-inv-btn {
    font-size: 14px;
    font-weight: 700;
    padding: 11px 16px;
    min-height: 44px;
    border-radius: 10px;
  }
  .ec-inv-btn .ti { font-size: 16px; }
  .ec-inv-decline {
    background: linear-gradient(180deg, #FCE4EC 0%, #F8BBD0 100%);
    border-color: #E91E63;
    color: #880E4F;
    box-shadow: 0 1px 0 rgba(173, 20, 87, 0.08);
  }
  .ec-inv-accept {
    box-shadow: 0 1px 0 rgba(46, 125, 50, 0.12);
  }
  .ec-inv-status { font-size: 12px; }
}

/* Event detail panel */
.ev-detail-hero   { background: var(--pn); border-radius: var(--pr); padding: 16px; margin-bottom: 14px; color: white; }
.ev-detail-name   { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ev-detail-meta   { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-dm            { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,0.75); }
.ev-dm i          { font-size: 13px; }
.event-venue-address { margin-top: 10px; width: 100%; text-align: left; }
.event-venue-address-row {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.88); line-height: 1.35; margin-bottom: 8px;
}
.event-venue-address-row i { font-size: 13px; margin-top: 1px; flex-shrink: 0; opacity: 0.85; }
.event-venue-address-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-venue-directions-btn,
.event-venue-map-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 8px; border: 0.5px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'Outfit', sans-serif;
}
.event-venue-directions-btn:hover,
.event-venue-map-toggle:hover { background: rgba(255,255,255,0.2); }
.event-venue-map-wrap {
  margin-top: 8px; border-radius: 8px; overflow: hidden;
  border: 0.5px solid rgba(255,255,255,0.22);
}
.event-venue-map-wrap iframe { display: block; width: 100%; height: 140px; border: 0; }
#rsvp-address-block { margin-top: 12px; }
.ev-section       { margin-bottom: 16px; }

.dupr-gate-banner {
  background: #E8EAF6;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #1A237E;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dupr-gate-banner-text { flex: 1 1 200px; line-height: 1.4; }
.dupr-gate-banner-text .ti { margin-right: 4px; vertical-align: -1px; }
.dupr-gate-cta {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 6px 12px;
  white-space: nowrap;
}
.ev-sec-title     { font-size: 10px; font-weight: 600; color: #90A4AE; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
/* Event detail — open roster / match log in overlay */
.ev-detail-actions-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .ev-detail-actions-section {
    grid-template-columns: 1fr 1fr;
  }
}
.ev-detail-open-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(145deg, #fff 0%, #F4F7F4 100%);
  border: 1px solid var(--pb);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}
.ev-detail-open-btn:hover {
  border-color: rgba(46, 125, 50, 0.45);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.12);
  transform: translateY(-1px);
}
.ev-detail-open-btn-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pn);
}
.ev-detail-open-btn-left i { font-size: 17px; color: var(--pg); }
.ev-detail-open-icon {
  font-size: 18px;
  color: #90A4AE;
  flex-shrink: 0;
}
.ev-detail-open-btn:hover .ev-detail-open-icon { color: var(--pg); }

/* Roster / match log overlay */
#evDetailOverlay {
  z-index: var(--z-modal-stack-overlay);
}
#evDetailOverlay .ev-detail-modal {
  z-index: var(--z-modal-stack-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  width: calc(100% - 24px);
  max-width: 720px;
  max-height: min(88dvh, calc(100dvh - 32px));
}
#evDetailOverlay.open {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
}
#evDetailOverlay .ev-detail-hd {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--pb);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#evDetailOverlay .ev-detail-hd .modal-hd-text { flex: 1; min-width: 0; }
#evDetailOverlay .ev-detail-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #607D8B;
}
#evDetailOverlay .m-title {
  font-size: 20px;
  font-weight: 700;
}
.ev-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 20px 14px;
  -webkit-overflow-scrolling: touch;
}
.ev-detail-filters {
  flex-shrink: 0;
  background: #FAFBFA;
  border-bottom: 0.5px solid var(--pb);
}
.ev-detail-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 0.5px solid var(--pb);
  background: #FAFBFA;
}
.ev-detail-foot .btn {
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-height: 44px;
}
@media (min-width: 640px) {
  .ev-detail-foot {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 20px 16px;
  }
  .ev-detail-foot .btn {
    width: auto;
    flex: 0 1 auto;
    white-space: nowrap;
    min-height: auto;
  }
}

/* Registered players overlay */
.ev-detail-body:has(.ev-roster-search-wrap) {
  padding-top: 10px;
}
.ev-roster-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.ev-roster-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #90A4AE;
  pointer-events: none;
}
.ev-roster-search-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px 8px 36px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #E0E4E0;
  background: #fff;
}
.ev-roster-search-input:focus {
  border-color: var(--pg);
  outline: none;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.14);
}
.ev-roster-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.ev-roster-stat {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  background: linear-gradient(180deg, #fff 0%, #F7FAF7 100%);
  border: 1px solid #E8ECE8;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.ev-roster-stat-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--pn);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ev-roster-stat-lbl {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78909C;
}
.ev-roster-cap-bar {
  height: 3px;
  border-radius: 999px;
  background: #ECEFF1;
  overflow: hidden;
  margin-bottom: 8px;
}
.ev-roster-cap-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #43A047, #2E7D32);
  transition: width 0.2s ease;
}
.ev-detail-roster-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.ev-roster-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #E8ECE8;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
  cursor: pointer;
}
.ev-roster-card:hover {
  border-color: rgba(46, 125, 50, 0.28);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.08);
  transform: translateY(-1px);
}
.ev-roster-card:focus-visible {
  outline: 2px solid var(--pg);
  outline-offset: 2px;
}
.ev-roster-card-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.ev-roster-card-body {
  flex: 1;
  min-width: 0;
}
.ev-roster-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--pn);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-roster-card-dupr {
  font-size: 11px;
  color: #78909C;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.ev-roster-card-go {
  flex-shrink: 0;
  font-size: 14px;
  color: #B0BEC5;
  transition: color 0.12s, transform 0.12s;
}
.ev-roster-card:hover .ev-roster-card-go {
  color: var(--pg);
  transform: translateX(2px);
}
.ev-roster-card-rank {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pg);
  letter-spacing: 0.02em;
}
.ev-roster-reorder-note {
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.18);
  font-size: 13px;
  line-height: 1.45;
  color: #1B5E20;
}
.ev-roster-reorder-note--muted {
  background: rgba(96, 125, 139, 0.08);
  border-color: rgba(96, 125, 139, 0.16);
  color: #455A64;
}
.ev-roster-reorder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-roster-reorder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: grab;
  user-select: none;
}
.ev-roster-reorder-row--dragging {
  opacity: 0.55;
  cursor: grabbing;
}
.ev-roster-reorder-handle {
  color: #90A4AE;
  font-size: 16px;
  line-height: 1;
}
.ev-roster-reorder-rank {
  min-width: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pg);
}
.ev-roster-reorder-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.ev-roster-reorder-body {
  flex: 1;
  min-width: 0;
}
.ev-roster-reorder-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #263238;
}
.ev-roster-reorder-dupr {
  display: block;
  font-size: 12px;
  color: #78909C;
  margin-top: 2px;
}

/* Game days overlay — pools + weekly opt-in */
.ev-gameday-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 42%, #43A047 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27, 94, 32, 0.22);
}
.ev-gameday-hero-main {
  flex: 1 1 240px;
  min-width: 0;
}
.ev-gameday-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ev-gameday-status--done {
  background: rgba(255, 255, 255, 0.18);
  color: #E8F5E9;
}
.ev-gameday-status--open {
  background: #FFD54F;
  color: #1B5E20;
}
.ev-gameday-status--future {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.ev-gameday-hero-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ev-gameday-hero-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.ev-gameday-stats--hero {
  flex: 1 1 280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.ev-gameday-stat-card {
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  backdrop-filter: blur(4px);
}
.ev-gameday-stat-val {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ev-gameday-stat-lbl {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.ev-gameday-date-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ev-gameday-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #E0E4E0;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: #546E7A;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s, transform 0.12s;
}
.ev-gameday-chip:hover {
  border-color: rgba(46, 125, 50, 0.35);
  color: var(--pn);
  transform: translateY(-1px);
}
.ev-gameday-chip--active {
  border-color: var(--pg);
  background: linear-gradient(180deg, #E8F5E9, #F1FAF2);
  color: #1B5E20;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.12);
}
.ev-gameday-chip--future {
  opacity: 0.72;
  border-style: dashed;
}
.ev-gameday-chip-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.12);
  color: #2E7D32;
  font-variant-numeric: tabular-nums;
}
.ev-gameday-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.ev-gameday-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid #E8ECE8;
  border-radius: 12px;
  background: #FAFBFA;
}
.ev-gameday-panel-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #78909C;
}
.ev-gameday-preview-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #FFF8E1;
  color: #E65100;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.ev-gameday-panel-hint {
  margin: 0 0 8px;
  font-size: 11px;
  color: #90A4AE;
  line-height: 1.35;
}
.ev-gameday-muted {
  font-size: 12px;
  color: #90A4AE;
  margin: 0;
}
.ev-gameday-panel-empty {
  padding: 16px 8px;
  font-size: 12px;
}
.ev-gameday-pool-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ev-gameday-pool-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid #E8ECE8;
  border-radius: 10px;
  background: #fff;
  border-left-width: 4px;
  border-left-color: #FF9800;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.ev-gameday-pool-card--1 { border-left-color: #FB8C00; }
.ev-gameday-pool-card--2 { border-left-color: #43A047; }
.ev-gameday-pool-card--3 { border-left-color: #1E88E5; }
.ev-gameday-pool-card--4 { border-left-color: #8E24AA; }
button.ev-gameday-pool-card {
  cursor: pointer;
  font-family: inherit;
}
button.ev-gameday-pool-card:hover {
  border-color: rgba(46, 125, 50, 0.28);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
  transform: translateY(-1px);
}
.ev-gameday-pool-num {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #E65100;
  min-width: 52px;
}
.ev-gameday-pool-players {
  flex: 1;
  font-size: 12px;
  color: #37474F;
  line-height: 1.4;
}
.ev-gameday-pool-go {
  flex-shrink: 0;
  font-size: 14px;
  color: #B0BEC5;
  margin-top: 1px;
}
.ev-gameday-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ev-gameday-player-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid #E8ECE8;
  border-radius: 10px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.ev-gameday-player-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.ev-gameday-player-text {
  flex: 1;
  min-width: 0;
}
.ev-gameday-player-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pn);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-gameday-player-dupr {
  display: block;
  font-size: 10px;
  color: #90A4AE;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.ev-gameday-filter-toolbar {
  padding-bottom: 0;
}

/* Match log overlay — hero + cards (mirrors game days / roster) */
.ev-ml-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1A237E 0%, #283593 45%, #3949AB 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 35, 126, 0.22);
}
.ev-ml-hero-main {
  flex: 1 1 240px;
  min-width: 0;
}
.ev-ml-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ev-ml-status--live {
  background: rgba(255, 255, 255, 0.18);
  color: #E8EAF6;
}
.ev-ml-status--empty {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}
.ev-ml-hero-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ev-ml-hero-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.ev-ml-stats {
  flex: 1 1 280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.ev-ml-stat-card {
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  backdrop-filter: blur(4px);
}
.ev-ml-stat-val {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ev-ml-stat-lbl {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.ev-ml-date-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ev-ml-body {
  min-width: 0;
}
.ev-ml-date-section {
  margin-bottom: 12px;
}
.ev-ml-date-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pn);
  letter-spacing: -0.01em;
}
.ev-ml-date-title i {
  font-size: 15px;
  color: #3949AB;
}
.ev-ml-pool-panel {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #E8ECE8;
  border-radius: 12px;
  background: #FAFBFA;
  border-left-width: 4px;
  border-left-color: #FF9800;
}
.ev-ml-pool-panel--1 { border-left-color: #FB8C00; }
.ev-ml-pool-panel--2 { border-left-color: #43A047; }
.ev-ml-pool-panel--3 { border-left-color: #1E88E5; }
.ev-ml-pool-panel--4 { border-left-color: #8E24AA; }
.ev-ml-pool-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.ev-ml-pool-hd--solo {
  margin-bottom: 6px;
}
.ev-ml-pool-num {
  font-size: 11px;
  font-weight: 800;
  color: #E65100;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ev-ml-pool-meta {
  font-size: 10px;
  font-weight: 700;
  color: #78909C;
  font-variant-numeric: tabular-nums;
}
.ev-ml-pool-roster {
  flex: 1 1 100%;
  font-size: 11px;
  color: #607D8B;
  line-height: 1.35;
}
.ev-ml-match-list {
  gap: 5px;
}
.ev-ml-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid #E8ECE8;
  border-radius: 10px;
  border-left-width: 3px;
  border-left-color: #B0BEC5;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.ev-ml-card:hover {
  border-color: rgba(57, 73, 171, 0.28);
  box-shadow: 0 4px 12px rgba(57, 73, 171, 0.1);
  transform: translateY(-1px);
}
.ev-ml-card--pool-1 { border-left-color: #FB8C00; }
.ev-ml-card--pool-2 { border-left-color: #43A047; }
.ev-ml-card--pool-3 { border-left-color: #1E88E5; }
.ev-ml-card--pool-4 { border-left-color: #8E24AA; }
.ev-ml-card-main {
  flex: 1;
  min-width: 0;
}
.ev-ml-card-teams {
  font-size: 13px;
  font-weight: 700;
  color: var(--pn);
  line-height: 1.35;
}
.ev-ml-card-meta {
  font-size: 11px;
  color: #90A4AE;
  margin-top: 2px;
}
.ev-ml-card-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.ev-ml-card-score {
  font-size: 17px;
  font-weight: 800;
  color: var(--pn);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ev-ml-empty {
  margin-top: 4px;
}
.ev-ml-filter-toolbar {
  padding-bottom: 0;
}
.ev-ml-flat-section {
  padding: 10px 12px;
  border: 1px solid #E8ECE8;
  border-radius: 12px;
  background: #FAFBFA;
}

.ev-detail-empty {
  text-align: center;
  color: #90A4AE;
  padding: 24px;
}
.ev-matchlog-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-matchlog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #F7F9F7;
  border: 0.5px solid var(--pb);
  border-radius: 8px;
  transition: background 0.12s;
}
.ev-matchlog-row:hover {
  background: #EEF5EE;
  border-color: rgba(46, 125, 50, 0.2);
}
.ev-matchlog-teams {
  font-size: 14px;
  font-weight: 600;
  color: var(--pn);
  line-height: 1.35;
}
.ev-matchlog-meta {
  font-size: 12px;
  color: #78909C;
  margin-top: 3px;
}
.ev-matchlog-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.ev-matchlog-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--pn);
  font-variant-numeric: tabular-nums;
}
.ev-ml-st {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
}
.ev-ml-st--played { background: #E8F5E9; color: #2E7D32; }
.ev-ml-st--cancel { background: #ECEFF1; color: #546E7A; }
.ev-ml-st--forfeit { background: #FFF3E0; color: #E65100; }
.ev-ml-st--sub { background: #E3F2FD; color: #1565C0; }

.ev-pool-assignments { margin-top: 4px; }
.ev-pool-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #F7F9F7;
  border-radius: 8px;
  font-size: 12px;
}
.ev-pool-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--py);
  min-width: 52px;
}
.ev-pool-players { color: #455A64; line-height: 1.4; flex: 1; }
.ev-pool-row-link {
  cursor: pointer;
  transition: background 0.15s;
}
.ev-pool-row-link:hover {
  background: #EEF2F0;
}
.ev-pool-go {
  flex: 0 0 auto;
  font-size: 14px;
  color: #90A4AE;
  margin-left: 4px;
}
.ev-matchlog-grouped .pool-hd,
.event-results-body .pool-hd {
  color: var(--py);
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.pool-hd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 10px 0 4px;
}
.pool-hd-row--solo {
  margin-top: 6px;
}
.ev-pool-roster-hint {
  font-size: 11px;
  color: #78909C;
  margin: 0;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.ev-matchlog-date-hd {
  font-size: 12px;
  font-weight: 700;
  color: var(--pn);
  margin: 10px 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid #ECEFF1;
}
.er-pool-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ECEFF1;
}
.er-pool-section-hd {
  font-size: 12px;
  font-weight: 700;
  color: #546E7A;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.er-pool-match {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #F5F5F5;
}

.pool-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 10px;
}
.matchlog-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 20px 0;
}
.matchlog-filter-search .matchlog-search-input {
  width: 100%;
  min-height: 36px;
  font-size: 14px;
}
.matchlog-filter-search {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.matchlog-filter-search .pool-filter-lbl {
  flex: 0 0 auto;
}
.pool-filter-bar {
  padding: 12px 16px;
  background: #F7F9F7;
  border-bottom: 1px solid #ECEFF1;
}
.ev-detail-filters .pool-filter-bar {
  border-radius: 0;
}
.pool-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pool-filter-lbl {
  flex: 0 0 88px;
  font-size: 11px;
  font-weight: 600;
  color: #546E7A;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pool-filter-select {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  padding: 6px 8px;
}
.pool-filter-chip {
  border: 1px solid #CFD8DC;
  background: #fff;
  color: #455A64;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.pool-filter-chip:hover {
  border-color: var(--py);
  color: var(--pn);
}
.pool-filter-chip.active {
  background: var(--py);
  border-color: var(--py);
  color: #fff;
}
.ev-pool-filter-summary {
  font-size: 12px;
  color: #78909C;
  margin: 0 0 10px;
  line-height: 1.45;
}
.er-pool-section .pool-filter-bar {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ECEFF1;
}
.ev-optin-history { margin-top: 8px; font-size: 12px; }
.ev-optin-history summary { cursor: pointer; color: #546E7A; font-weight: 600; }
.ev-optin-history-list { margin: 8px 0 0; padding-left: 18px; color: #607D8B; }
.optin-count-hint { font-size: 12px; margin-bottom: 8px; }

@media (min-width: 900px) {
  #evDetailOverlay .ev-detail-modal {
    max-width: min(1120px, calc(100vw - 40px));
    max-height: min(94dvh, calc(100dvh - 20px));
  }
  #evDetailOverlay.open {
    padding: 10px;
  }
  #evDetailOverlay .m-title { font-size: 22px; }
  #evDetailOverlay .ev-detail-hd { padding: 12px 20px; }
  .ev-detail-body { padding: 8px 20px 12px; }
  .ev-detail-foot { padding: 10px 20px 12px; }
  .matchlog-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(200px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr);
    gap: 10px 14px;
    align-items: end;
    padding: 10px 20px 0;
  }
  .matchlog-filter-toolbar--no-pools {
    grid-template-columns: minmax(240px, 1fr);
  }
  .pool-filter-chips {
    grid-column: 1 / -1;
    padding: 0 20px 8px;
    margin-top: 0;
  }
  .pool-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .pool-filter-row .pool-filter-lbl {
    flex: 0 0 auto;
  }
  .matchlog-filter-search .pool-filter-lbl {
    flex: 0 0 auto;
  }
  .pool-filter-select {
    width: 100%;
  }
  .ev-matchlog-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 2px 14px;
    padding: 6px 10px;
    align-items: center;
    border-radius: 6px;
  }
  .ev-matchlog-main {
    display: contents;
  }
  .ev-matchlog-teams {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ev-matchlog-meta {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    white-space: nowrap;
    font-size: 11px;
    color: #90A4AE;
  }
  .ev-matchlog-end {
    display: contents;
  }
  .ev-matchlog-score {
    grid-column: 3;
    grid-row: 1;
    font-size: 14px;
  }
  .ev-ml-st {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    font-size: 9px;
    padding: 2px 7px;
  }
  .ev-matchlog-list {
    gap: 3px;
  }
  .pool-hd-row {
    margin: 6px 0 2px;
  }
  .ev-matchlog-date-hd {
    margin: 8px 0 3px;
    font-size: 11px;
  }
  .ev-pool-roster-hint {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ev-detail-roster-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .ev-gameday-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 16px;
  }
  .ev-gameday-pool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ev-gameday-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .ev-gameday-filter-toolbar {
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr);
  }
  .ev-gameday-hero {
    padding: 12px 14px;
  }
  .ev-gameday-hero-title {
    font-size: 20px;
  }
  .ev-gameday-stats--hero {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ev-ml-hero {
    padding: 12px 14px;
  }
  .ev-ml-hero-title {
    font-size: 20px;
  }
  .ev-ml-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ev-ml-date-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: start;
  }
  .ev-ml-date-title {
    grid-column: 1 / -1;
  }
  .ev-ml-pool-panel {
    margin-bottom: 0;
    height: 100%;
  }
  .ev-ml-body:has(> .ev-ml-pool-panel) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  .ev-ml-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    gap: 2px 14px;
    padding: 7px 10px;
    align-items: center;
    transform: none;
  }
  .ev-ml-card:hover {
    transform: none;
  }
  .ev-ml-card-main {
    display: contents;
  }
  .ev-ml-card-teams {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 13px;
    line-height: 1.4;
  }
  .ev-ml-card-meta {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    white-space: nowrap;
    font-size: 11px;
  }
  .ev-ml-card-end {
    display: contents;
  }
  .ev-ml-card-score {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
  }
  .ev-ml-card .ev-ml-st {
    grid-column: 3;
    grid-row: 2;
  }
  .ev-ml-filter-toolbar {
    grid-template-columns: minmax(240px, 1.2fr) minmax(160px, 1fr) minmax(160px, 1fr);
  }
  .ev-roster-summary {
    gap: 8px;
    margin-bottom: 6px;
  }
  .ev-roster-stat {
    padding: 6px 8px;
    border-radius: 8px;
  }
  .ev-roster-stat-val {
    font-size: 16px;
  }
  .ev-roster-card {
    padding: 6px 8px;
    border-radius: 8px;
  }
  .ev-roster-card-av {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .ev-roster-card-name {
    font-size: 12px;
  }
  .ev-roster-card-dupr {
    font-size: 10px;
  }
  .ev-roster-cap-bar {
    margin-bottom: 8px;
  }
}

@media (min-width: 1100px) {
  .ev-detail-roster-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ev-gameday-player-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .ev-detail-roster-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ev-gameday-player-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.roster-list      { display: flex; flex-direction: column; gap: 6px; }
.roster-item      { display: flex; align-items: center; gap: 9px; padding: 7px 10px; background: #F7F9F7; border-radius: var(--prs); }
.roster-item-link { cursor: pointer; transition: background 0.15s, border-color 0.15s; border: 0.5px solid transparent; }
.roster-item-link:hover { background: var(--pgl); border-color: rgba(46, 125, 50, 0.25); }
.roster-item-link:focus-visible { outline: 2px solid var(--pg); outline-offset: 2px; }
.roster-item-go   { font-size: 14px; color: #B0BEC5; flex-shrink: 0; }
.roster-item-link:hover .roster-item-go { color: var(--pg); }
.ri-av            { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; }
.ri-name          { flex: 1; font-size: 12px; font-weight: 500; color: var(--ps); }
.roster-item-link .ri-name { color: var(--pn); font-weight: 600; }
.ri-dupr          { font-size: 10px; color: #90A4AE; }
.ri-status        { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.rs-confirmed     { background: var(--success-bg); color: var(--success-fg); }
.rs-pending       { background: #FFF3E0; color: #E65100; }
.rs-waitlisted     { background: #FFF8E1; color: #E65100; }
.rs-declined      { background: #FFEBEE; color: #C62828; }
.capacity-bar     { height: 6px; background: #ECEFF1; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.capacity-fill    { height: 6px; border-radius: 3px; background: var(--pg); }
.capacity-lbl     { display: flex; justify-content: space-between; font-size: 10px; color: #90A4AE; margin-bottom: 3px; }

/* Match result cards (past events) */
.result-card  { background: #F7F9F7; border-radius: var(--prs); padding: 10px 12px; margin-bottom: 8px; }
.rc-top       { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rc-name      { font-size: 12px; font-weight: 600; color: var(--pn); }
.rc-date      { font-size: 10px; color: #90A4AE; }
.rc-result    { display: flex; gap: 6px; align-items: center; }
.rc-win       { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--success-bg); color: var(--success-fg); }
.rc-loss      { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #FFEBEE; color: #C62828; }
.rc-score     { font-size: 11px; font-weight: 600; color: var(--ps); }

/* Registration list — waitlist section */
.ev-reg-waitlist-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ECEFF1;
}
.ev-reg-waitlist-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ev-reg-waitlist-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--pn);
}
.ev-reg-waitlist-badge {
  font-size: 10px;
  background: #FFF8E1;
  color: #E65100;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Waitlist */
.wl-item    { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #FFF8E1; border-radius: var(--prs); border: 0.5px solid #FFE082; margin-bottom: 6px; }
.ev-reg-roster-list { display: flex; flex-direction: column; gap: 6px; }
.reg-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; background: #E8F5E9; border-radius: var(--prs); border: 0.5px solid #A5D6A7; }
.reg-item .ev-roster-card-body { flex: 1; min-width: 0; }
.reg-pos { width: 28px; height: 28px; border-radius: 50%; background: #C8E6C9; color: #2E7D32; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wl-pos     { width: 22px; height: 22px; border-radius: 50%; background: var(--py); color: var(--pn); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wl-name    { flex: 1; font-size: 12px; font-weight: 500; color: var(--ps); }
.wl-dupr    { font-size: 10px; color: #90A4AE; }
.wl-promote { font-size: 10px; font-weight: 600; color: var(--pg); cursor: pointer; padding: 2px 8px; border-radius: 8px; background: var(--pgl); border: none; }
.wl-promote:hover { background: #C8E6C9; }

/* Create / Edit modal */
#createOverlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-overlay);
  padding: max(16px, env(safe-area-inset-top, 0)) 16px max(16px, env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}
#createOverlay .modal {
  width: min(720px, calc(100vw - 32px));
  max-width: min(720px, calc(100vw - 32px));
  max-height: min(90dvh, calc(100dvh - 32px));
  margin: auto 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#createOverlay .modal-hd {
  flex-shrink: 0;
  padding: 22px 22px 0;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#createOverlay .modal-hd .modal-hd-text {
  flex: 1;
  min-width: 0;
}
#createOverlay .modal-hd .ph-back-btn {
  flex-shrink: 0;
  max-width: min(100%, 9rem);
}
#createOverlay .modal-hd .ph-back-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#createOverlay .create-event-body {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 12px 22px 16px;
  -webkit-overflow-scrolling: touch;
}
#createOverlay .m-actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 12px 22px 22px;
  border-top: 0.5px solid var(--pb);
  background: #fff;
}

#createOverlay .create-capacity-block {
  margin-bottom: 12px;
}

#createOverlay .create-capacity-hint {
  font-size: 13px;
  font-weight: 500;
  color: #37474F;
  margin: 10px 0 0;
  padding: 10px 12px;
  line-height: 1.5;
  background: #EEF3F0;
  border-radius: 8px;
  border-left: 3px solid var(--pg);
}

#createOverlay .create-capacity-block--mlp .create-capacity-hint {
  background: #F5F5F5;
  border-left-color: #90A4AE;
  color: #546E7A;
}

#createOverlay .create-capacity-controls--disabled {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

#createOverlay .create-capacity-mlp-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: #E8EAF6;
  border-radius: 8px;
  color: #3949AB;
  font-size: 12px;
  line-height: 1.45;
}

#createOverlay .create-capacity-mlp-note .ti {
  font-size: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

#createOverlay .cfg-mlp-block .field-hint,
#createOverlay .cfg-mlp-block .trow .td,
#createOverlay .cfg-league-kind-hint,
#createOverlay .cfg-mlp-delegate-hint {
  color: #455A64;
  font-size: 12px;
  line-height: 1.5;
}

#createOverlay .cfg-mlp-block .field-hint.cfg-mlp-hint {
  font-size: 12px;
  margin-top: 6px;
}

#createOverlay .cfg-format-advanced .field-hint {
  color: #546E7A;
}

#createOverlay .cfg-mlp-standings-view-wrap {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 152, 0, 0.06);
  border: 1px solid rgba(255, 152, 0, 0.22);
}

#createOverlay .cfg-mlp-standings-view-lbl {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E65100;
}

#createOverlay .cfg-mlp-standings-view-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#createOverlay .cfg-mlp-standings-view-pill {
  border: 1px solid #CFD8DC;
  background: #fff;
  color: #455A64;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#createOverlay .cfg-mlp-standings-view-pill.on {
  background: #FF9800;
  border-color: #F57C00;
  color: #fff;
}

#createOverlay .cfg-mlp-standings-view-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

/* Create / Edit / Delete — Advanced section readability (desktop) */
@media (min-width: 1024px) {
  #createOverlay .modal {
    width: min(820px, calc(100vw - 48px));
    max-width: min(820px, calc(100vw - 48px));
  }

  #createOverlay .create-event-body {
    padding: 16px 28px 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  #createOverlay .modal-hd {
    padding: 24px 28px 0;
  }

  #createOverlay .modal-hd .m-title {
    font-size: 20px;
  }

  #createOverlay .modal-hd .m-sub {
    font-size: 13px;
    line-height: 1.5;
  }

  #createOverlay .create-capacity-hint {
    font-size: 14px;
    padding: 12px 14px;
    margin-top: 12px;
  }

  #createOverlay .cfg-advanced-toggle {
    padding: 16px 18px;
    margin-top: 16px;
    border-width: 1px;
    border-left: 4px solid var(--pn);
  }

  #createOverlay .cfg-advanced-toggle .tn {
    font-size: 15px;
    font-weight: 600;
    color: var(--pn);
  }

  #createOverlay .cfg-advanced-toggle .td {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 4px;
    color: #607D8B;
  }

  #createOverlay .cfg-adv-icon,
  #createOverlay .cfg-adv-chevron {
    font-size: 22px;
  }

  #createOverlay .cfg-advanced-wrap.open {
    border-width: 1px;
  }

  #createOverlay .cfg-format-advanced {
    padding: 18px 20px 20px;
  }

  #createOverlay .cfg-format-hd {
    font-size: 12px;
    letter-spacing: 0.55px;
    margin-bottom: 14px;
    color: #607D8B;
  }

  #createOverlay .cfg-format-advanced .fl {
    font-size: 12px;
    margin-bottom: 6px;
  }

  #createOverlay .cfg-format-advanced .fi,
  #createOverlay .cfg-format-advanced select.fi {
    font-size: 14px;
    padding: 10px 12px;
  }

  #createOverlay .cfg-format-advanced .field-hint,
  #createOverlay .cfg-format-advanced .type-intro,
  #createOverlay .cfg-format-advanced .type-intro-short {
    font-size: 13px;
    line-height: 1.5;
    color: #546E7A;
  }

  #createOverlay .cfg-mlp-block .field-hint,
  #createOverlay .cfg-mlp-block .trow .td {
    color: #455A64;
    font-size: 13px;
  }

  #createOverlay .cfg-grid-2 {
    gap: 14px;
  }

  #createOverlay .cfg-block,
  #createOverlay .cfg-block-muted,
  #createOverlay .cfg-block-white {
    margin-bottom: 14px;
    padding: 14px 16px;
  }

  #createOverlay .cfg-block-label {
    font-size: 11px;
    margin-bottom: 10px;
  }

  #createOverlay .trow {
    padding: 12px 14px;
    margin-bottom: 8px;
  }

  #createOverlay .trow .tn {
    font-size: 14px;
    font-weight: 500;
  }

  #createOverlay .trow .td {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 3px;
  }

  #createOverlay .tog {
    width: 44px;
    height: 24px;
    flex-shrink: 0;
  }

  #createOverlay .tog::after {
    width: 18px;
    height: 18px;
  }

  #createOverlay .tog.on::after {
    left: 24px;
  }

  #createOverlay .tip-btn {
    width: 22px;
    height: 22px;
    font-size: 15px;
  }

  #createOverlay .cfg-court-weight-title {
    font-size: 15px;
  }

  #createOverlay .cfg-court-weight-lead {
    font-size: 13px;
    line-height: 1.5;
  }

  #createOverlay .cfg-court-weight-icon-wrap {
    width: 42px;
    height: 42px;
  }

  #createOverlay .cfg-court-weight-icon-wrap i {
    font-size: 22px;
  }

  #createOverlay .cfg-court-weight-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  #createOverlay .cfg-ladder-preset-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  #createOverlay .cfg-ladder-preset-hint {
    font-size: 12px;
  }

  #createOverlay .del-confirm {
    font-size: 14px;
    padding: 16px;
  }

  #createOverlay .del-confirm p {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (min-width: 1024px) {
  .field-tip-popover {
    max-width: 640px;
    padding: 20px 22px 22px;
    font-size: 15px;
    line-height: 1.65;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(38, 50, 56, 0.14), 0 2px 8px rgba(38, 50, 56, 0.06);
  }

  .field-tip-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }

  .field-tip-body {
    font-size: 15px;
    line-height: 1.65;
    color: #37474F;
  }

  .field-tip-body p {
    margin: 0 0 10px;
  }

  .field-tip-lead {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
  }

  .field-tip-note {
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 14px;
  }

  .field-tip-list {
    padding-left: 20px;
  }

  .field-tip-list li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.65;
  }

  .field-tip-body code {
    font-size: 13px;
    padding: 2px 6px;
  }

  .field-tip-close {
    top: 10px;
    right: 10px;
    font-size: 18px;
  }

  .field-tip-inactive-banner {
    font-size: 14px;
    line-height: 1.55;
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .field-tip-popover--standings-mode {
    width: min(960px, calc(100vw - 32px));
    max-width: min(960px, calc(100vw - 32px));
    padding: 24px 28px 26px;
    font-size: 16px;
    line-height: 1.65;
  }

  .field-tip-popover--standings-mode .field-tip-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
  }

  .field-tip-popover--standings-mode .field-tip-body {
    font-size: 16px;
    line-height: 1.65;
    color: #37474F;
  }

  .field-tip-popover--standings-mode .standings-mode-tip-row {
    margin-bottom: 16px;
    line-height: 1.65;
  }

  .field-tip-popover--standings-mode .standings-tip-metric {
    font-size: 17px;
  }

  .field-tip-popover--standings-mode .standings-tip-lead {
    font-size: 16px;
  }

  .field-tip-popover--standings-mode .standings-tip-detail {
    font-size: 16px;
    line-height: 1.65;
    color: #263238;
  }

  .field-tip-popover--standings-mode .standings-tip-advanced {
    font-size: 13px;
    padding: 4px 12px;
  }

  .field-tip-popover--standings-mode .standings-tip-dink-special {
    font-size: 12px;
    padding: 4px 12px;
  }

  .field-tip-popover--standings-mode .standings-tip-featured-icon {
    font-size: 17px;
  }

  .field-tip-popover--standings-mode code {
    font-size: 14px;
    padding: 2px 8px;
  }

  .field-tip-popover--standings-mode .standings-mode-tip-divider {
    margin: 16px 0;
  }

  .field-tip-popover--sponsor-tiers {
    width: min(860px, calc(100vw - 32px));
    max-width: min(860px, calc(100vw - 32px));
    padding: 26px 30px 28px;
    font-size: 15px;
    line-height: 1.6;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(38, 50, 56, 0.16), 0 4px 12px rgba(38, 50, 56, 0.08);
  }

  .field-tip-popover--sponsor-tiers .field-tip-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
  }

  .field-tip-popover--sponsor-tiers .field-tip-body {
    font-size: 15px;
    line-height: 1.6;
    color: #263238;
  }

  .field-tip-popover--sponsor-tiers .field-tip-lead {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #37474F;
  }

  .field-tip-popover--sponsor-tiers .field-tip-note {
    font-size: 13px;
    line-height: 1.55;
    padding: 12px 14px;
    margin-top: 4px;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-card {
    padding: 16px 18px;
    border-radius: 12px;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-card--title {
    grid-column: 1 / -1;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-head {
    gap: 10px;
    margin-bottom: 10px;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-chip {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 999px;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-name {
    font-size: 17px;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-desc {
    font-size: 14px;
    line-height: 1.58;
    margin-bottom: 10px;
    color: #263238;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-player {
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .field-tip-popover--sponsor-tiers .sponsor-tier-tip-player i {
    font-size: 15px;
    margin-top: 2px;
  }
}

.create-datetime-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 4px;
  min-width: 0;
  width: 100%;
}
.create-schedule-error {
  color: #C62828;
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 10px;
}
.create-schedule-error[hidden] {
  display: none;
}
.create-time-col--error .ev-time-trigger {
  border-color: #EF9A9A;
  background: #FFEBEE;
}
#createOverlay .fi.create-field--error {
  border-color: #EF9A9A;
  background: #FFEBEE;
}
.create-datetime-row > div {
  min-width: 0;
  overflow: hidden;
}
.create-datetime-row .fl {
  font-size: 10px;
  letter-spacing: 0.25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.create-datetime-row .fi {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
#createOverlay .create-datetime-row input[type="date"],
#createOverlay .create-datetime-row input.ev-time-native {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Create event — custom time picker */
.create-time-col {
  min-width: 0;
  position: relative;
}
.ev-time-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.ev-time-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 0.5px solid #CFD8DC;
  border-radius: var(--prs);
  background: linear-gradient(180deg, #fff 0%, #FAFBFC 100%);
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  text-align: left;
}
.ev-time-trigger:hover {
  border-color: #B0BEC5;
  box-shadow: 0 2px 8px rgba(38, 50, 56, 0.06);
}
.ev-time-trigger:focus-visible {
  outline: none;
  border-color: var(--pg);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
}
.ev-time-trigger[aria-expanded="true"] {
  border-color: var(--pg);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.14);
}
.ev-time-display {
  font-size: 13px;
  font-weight: 600;
  color: var(--pn);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ev-time-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--pgl) 0%, #E8F5E9 100%);
  color: var(--pgd);
  flex-shrink: 0;
  font-size: 15px;
}
.ev-time-popover {
  position: fixed;
  z-index: 12050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.ev-time-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ev-time-popover-inner {
  width: min(320px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  border: 0.5px solid rgba(207, 216, 220, 0.9);
  box-shadow:
    0 4px 6px rgba(38, 50, 56, 0.04),
    0 16px 40px rgba(38, 50, 56, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}
.ev-time-popover-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%);
  color: #fff;
}
.ev-time-popover-preview {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.ev-time-popover-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ev-time-popover-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.ev-time-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 0.5px solid #ECEFF1;
  max-height: 148px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ev-time-quick-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ev-time-quick-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #90A4AE;
}
.ev-time-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ev-time-quick-btn {
  padding: 5px 9px;
  border: 0.5px solid #E0E0E0;
  border-radius: 999px;
  background: #F7F9F7;
  color: #455A64;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.1s;
}
.ev-time-quick-btn.is-active {
  border-color: var(--pg);
  background: var(--pg);
  color: #fff;
}
.ev-time-quick-btn:hover {
  border-color: var(--pg);
  background: var(--pgl);
  color: var(--pgd);
}
.ev-time-quick-btn.is-active:hover {
  background: var(--pgd);
  color: #fff;
}
.ev-time-quick-btn:active {
  transform: scale(0.97);
}
.ev-time-wheels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, #FAFBFC 0%, #fff 100%);
}
.ev-time-wheel-highlight {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 105px;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.22);
  pointer-events: none;
  z-index: 0;
}
.ev-time-wheel-col {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.ev-time-wheel-lbl {
  display: block;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #90A4AE;
  margin-bottom: 4px;
}
.ev-time-wheel-scroller {
  max-height: 168px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  padding: 66px 0;
}
.ev-time-wheel-scroller::-webkit-scrollbar {
  display: none;
}
.ev-time-wheel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #78909C;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color 0.12s, font-size 0.12s, font-weight 0.12s;
  font-variant-numeric: tabular-nums;
}
.ev-time-wheel-item:hover {
  color: #455A64;
}
.ev-time-wheel-item.is-selected {
  color: var(--pgd);
  font-size: 18px;
  font-weight: 700;
}
.ev-time-popover-ft {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 0.5px solid #ECEFF1;
  background: #FAFBFC;
}
.ev-time-popover-ft .btn {
  flex: 1;
  justify-content: center;
  padding: 9px 12px;
  font-size: 12px;
}
.ev-time-cancel {
  flex: 0.85 !important;
}
.ev-time-apply {
  flex: 1.15 !important;
}
#createOverlay .cfg-format-section,
#createOverlay .cfg-format-advanced,
#createOverlay .cfg-advanced-wrap,
#createOverlay .cfg-block,
#createOverlay .cfg-block-muted,
#createOverlay .cfg-block-white {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#createOverlay .cfg-advanced-folds .ev-detail-fold {
  margin-bottom: 10px;
}

#createOverlay .cfg-advanced-folds .ev-detail-fold-body {
  padding: 6px 2px 2px;
}

#createOverlay .cfg-advanced-folds .ev-detail-fold-body > .cfg-block,
#createOverlay .cfg-advanced-folds .ev-detail-fold-body > .cfg-standings-ranking-section {
  margin-bottom: 0;
}

#createOverlay .cfg-ladder-subfold {
  margin-top: 10px;
}

#createOverlay .cfg-ladder-subfold .ev-detail-fold-body {
  padding-top: 6px;
}
#createOverlay .cfg-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
#createOverlay input[type="date"],
#createOverlay input[type="time"],
#createOverlay input[type="datetime-local"] {
  min-width: 0;
  max-width: 100%;
}

/* MLP registration closes — styled datetime picker */
.mlp-reg-closes-wrap {
  min-width: 0;
}
.cfg-datetime-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid #CFD8DC;
  background: linear-gradient(145deg, #FAFBFC 0%, #F5F7FA 100%);
  box-shadow: 0 1px 3px rgba(38, 50, 56, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cfg-datetime-card:focus-within,
.cfg-datetime-card--has-value {
  border-color: #90CAF9;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12), 0 2px 8px rgba(25, 118, 210, 0.08);
}
.cfg-datetime-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1976D2 0%, #1565C0 100%);
  color: #fff;
  font-size: 20px;
}
.cfg-datetime-card--has-value .cfg-datetime-card-icon {
  background: linear-gradient(160deg, #2E7D32 0%, #1B5E20 100%);
}
.cfg-datetime-card-main {
  flex: 1;
  min-width: 0;
  padding: 8px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.cfg-datetime-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.cfg-datetime-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.15s ease;
}
.cfg-datetime-trigger:hover {
  opacity: 0.92;
}
.cfg-datetime-trigger:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.35);
}
.cfg-datetime-trigger[aria-expanded="true"] .cfg-datetime-trigger-icon {
  background: linear-gradient(145deg, #BBDEFB 0%, #90CAF9 100%);
  color: #0D47A1;
}
.cfg-datetime-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cfg-datetime-trigger-value {
  font-size: 14px;
  font-weight: 700;
  color: #263238;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cfg-datetime-card--has-value .cfg-datetime-trigger-value {
  color: #1B5E20;
}
.cfg-datetime-trigger-hint {
  font-size: 10px;
  font-weight: 500;
  color: #90A4AE;
  letter-spacing: 0.02em;
}
.cfg-datetime-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #E3F2FD 0%, #BBDEFB 100%);
  color: #1565C0;
  flex-shrink: 0;
  font-size: 17px;
  transition: background 0.15s ease, color 0.15s ease;
}
.cfg-datetime-card--has-value .cfg-datetime-trigger-icon {
  background: linear-gradient(145deg, #E8F5E9 0%, #C8E6C9 100%);
  color: #2E7D32;
}

/* Custom date + time popover (registration closes) */
.cfg-dt-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12040;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cfg-dt-backdrop.open {
  display: block;
}
.cfg-dt-popover {
  z-index: 12055;
}
.cfg-dt-popover-inner {
  width: min(360px, calc(100vw - 24px));
}
.cfg-dt-popover--sheet {
  transform: translateY(100%);
}
.cfg-dt-popover--sheet.open {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  transform: translateY(0) scale(1);
}
.cfg-dt-popover--sheet .cfg-dt-popover-inner {
  width: 100%;
  border-radius: 20px 20px 0 0;
  max-height: min(88vh, 640px);
  overflow-y: auto;
}
.cfg-dt-calendar {
  padding: 12px 14px 10px;
  border-bottom: 0.5px solid #ECEFF1;
}
.cfg-dt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cfg-dt-cal-month {
  font-size: 14px;
  font-weight: 700;
  color: #263238;
  letter-spacing: -0.02em;
}
.cfg-dt-cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0.5px solid #E0E0E0;
  border-radius: 10px;
  background: #FAFBFC;
  color: #455A64;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.cfg-dt-cal-nav-btn:hover {
  border-color: #90CAF9;
  background: #E3F2FD;
  color: #1565C0;
}
.cfg-dt-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.cfg-dt-cal-wd {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #90A4AE;
  padding: 4px 0;
}
.cfg-dt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cfg-dt-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #37474F;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.1s;
}
.cfg-dt-cal-day:hover {
  background: #E3F2FD;
  color: #1565C0;
}
.cfg-dt-cal-day--outside {
  color: #B0BEC5;
  font-weight: 500;
}
.cfg-dt-cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px #90CAF9;
  color: #1565C0;
}
.cfg-dt-cal-day.is-selected {
  background: linear-gradient(145deg, #1976D2 0%, #1565C0 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.35);
}
.cfg-dt-cal-day.is-selected:hover {
  background: linear-gradient(145deg, #1565C0 0%, #0D47A1 100%);
  color: #fff;
}
.cfg-dt-cal-day:active {
  transform: scale(0.94);
}
.cfg-dt-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 8px;
  border-bottom: 0.5px solid #ECEFF1;
}
.cfg-dt-quick-row {
  flex-wrap: wrap;
}
.cfg-dt-wheels .ev-time-wheel-highlight {
  background: rgba(25, 118, 210, 0.1);
  border-color: rgba(25, 118, 210, 0.22);
}
.cfg-dt-wheels .ev-time-wheel-item.is-selected {
  color: #1565C0;
}
.cfg-datetime-preview {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #78909C;
}
.cfg-datetime-preview .ti {
  font-size: 12px;
  vertical-align: -2px;
  margin-right: 3px;
}
.cfg-datetime-preview--set {
  color: #37474F;
}
.cfg-datetime-preview--set strong {
  color: #1565C0;
  font-weight: 700;
}
.cfg-datetime-card--has-value .cfg-datetime-preview--set strong {
  color: #2E7D32;
}
.cfg-datetime-clear {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
  border: none;
  border-left: 1px solid #ECEFF1;
  background: rgba(255, 255, 255, 0.6);
  color: #78909C;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cfg-datetime-clear .ti {
  font-size: 14px;
}
.cfg-datetime-clear:hover {
  background: #FFEBEE;
  color: #C62828;
}
.cfg-mlp-reg-closes-hint .ti {
  font-size: 11px;
  vertical-align: -1px;
  color: #1976D2;
}

.field-tip-popover--mlp-reg-closes {
  width: min(520px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
}
.mlp-reg-tip-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 14px;
}
.mlp-reg-tip-step {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #37474F;
}
.mlp-reg-tip-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.mlp-reg-tip-step ol {
  margin: 0;
  padding-left: 18px;
}
.mlp-reg-tip-step li {
  margin-bottom: 6px;
}
.mlp-reg-tip-step li:last-child {
  margin-bottom: 0;
}
.mlp-reg-tip-step--draft {
  background: linear-gradient(135deg, #E3F2FD 0%, #E8EAF6 100%);
  border: 1px solid #BBDEFB;
}
.mlp-reg-tip-step--captain {
  background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
  border: 1px solid #C8E6C9;
}

.create-venue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}
.create-venue-col {
  min-width: 0;
}
.create-venue-col .fl { margin-bottom: 4px; }
.create-venue-map-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.create-map-preview-link {
  font-size: 10px;
  color: #1976D2;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
}
.create-map-preview-link .ti { font-size: 11px; vertical-align: -1px; }
.create-venue-map-input {
  display: flex;
  gap: 7px;
  align-items: center;
}
.create-venue-map-input .fi { flex: 1; min-width: 0; }
.create-map-pin-btn {
  padding: 7px 10px;
  flex-shrink: 0;
}
.create-map-embed-wrap {
  margin-bottom: 8px;
  border-radius: var(--prs);
  overflow: hidden;
  border: 0.5px solid var(--pb);
}
.create-map-embed-wrap iframe { display: block; }
@media (max-width: 720px) {
  .create-datetime-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .create-datetime-row > div:last-child {
    grid-column: 1 / -1;
  }
  #createOverlay .cfg-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  #createOverlay .modal-hd {
    padding-left: 14px;
    padding-right: 14px;
  }
  #createOverlay .create-event-body {
    padding-left: 14px;
    padding-right: 14px;
  }
  #createOverlay .m-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 480px) {
  .create-datetime-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .create-datetime-row > div:last-child {
    grid-column: auto;
  }
  .create-venue-row { grid-template-columns: minmax(0, 1fr); }
}

.m-title { font-size: 16px; font-weight: 700; color: var(--pn); margin-bottom: 2px; }
.m-sub   { font-size: 11px; color: #90A4AE; margin-bottom: 16px; }
.tg  { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.to  { border: 1.5px solid #ECEFF1; border-radius: var(--prs); padding: 9px; cursor: pointer; text-align: center; transition: all 0.15s; }
.to:hover { border-color: var(--pg); }
.to.sel   { border-color: var(--pg); background: var(--pgl); }
.to-ic { font-size: 16px; margin-bottom: 2px; }
.to-n  { font-size: 11px; font-weight: 600; color: var(--pn); }
.to-d  { font-size: 9px; color: #90A4AE; margin-top: 1px; }
.vis-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 3px; }
.vo      { border: 2px solid #ECEFF1; border-radius: 9px; padding: 12px; cursor: pointer; text-align: center; transition: all 0.15s; }
.vo:hover { border-color: #B0BEC5; }
.vo.sp   { border-color: #1976D2; background: #E3F2FD; }
.vo.sv   { border-color: #7B1FA2; background: #F3E5F5; }
.vo-ic { font-size: 20px; margin-bottom: 4px; }
.vo-n  { font-size: 12px; font-weight: 600; color: var(--pn); }
.vo-d  { font-size: 10px; color: #78909C; margin-top: 2px; line-height: 1.3; }
.lbox  { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--pgl); border-radius: var(--prs); border: 0.5px solid rgba(76,175,80,0.3); }
.lurl  { flex: 1; font-size: 10px; color: var(--pgd); font-family: monospace; }
.cpb   { font-size: 10px; font-weight: 600; color: var(--pgd); cursor: pointer; }
.inv-sec  { background: #F7F9F7; border-radius: var(--prs); padding: 12px; }
.inv-add  { display: flex; gap: 7px; margin-bottom: 8px; }
.inv-add--search { margin-bottom: 0; margin-top: 8px; }
.inv-inp  { flex: 1; padding: 7px 10px; border: 0.5px solid #CFD8DC; border-radius: var(--prs); font-size: 11px; outline: none; font-family: 'Outfit', sans-serif; min-width: 0; }
.inv-inp:focus { border-color: var(--pg); }
.ev-invite-browse-btn {
  flex-shrink: 0;
  padding: 7px 10px;
  font-size: 11px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ev-invite-summary {
  font-size: 10px;
  font-weight: 600;
  color: #546E7A;
  margin: 0 0 6px;
}
.ev-invite-quick {
  margin-bottom: 10px;
}
.ev-invite-quick-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78909C;
  margin-bottom: 6px;
}
.ev-invite-quick-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-invite-quick-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-invite-quick-group-lbl {
  font-size: 9px;
  font-weight: 600;
  color: #90A4AE;
}
.ev-invite-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ev-invite-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 4px;
  border: 1px solid #E8EAF6;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--pn);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ev-invite-quick-chip:hover {
  border-color: #9FA8DA;
  background: #EEF2FF;
  box-shadow: 0 1px 4px rgba(30, 58, 138, 0.08);
}
.ev-invite-quick-chip--action,
.ev-invite-quick-chip--group,
.ev-invite-quick-chip--event {
  padding: 4px 10px;
  gap: 4px;
}
.ev-invite-quick-chip--action i,
.ev-invite-quick-chip--group i,
.ev-invite-quick-chip--event i {
  font-size: 13px;
  color: var(--pn);
}
.ev-invite-quick-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ev-invite-quick-name {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-list--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: none;
  margin-bottom: 8px;
  min-height: 0;
}
.inv-list--chips:empty {
  display: none;
}
.ii.ev-invite-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid #C5CAE9;
  background: #EEF2FF;
  max-width: 100%;
}
.ii.ev-invite-chip .ii-av,
.ii.ev-invite-chip .pa {
  width: 22px;
  height: 22px;
  font-size: 8px;
  flex-shrink: 0;
}
.ii.ev-invite-chip .ii-n {
  font-size: 11px;
  font-weight: 600;
  color: var(--pn);
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.ii.ev-invite-chip .ii-s {
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 6px;
  flex-shrink: 0;
}
.ii.ev-invite-chip .ii-s.s-pend { display: none; }
.ii.ev-invite-chip.ii--declined {
  border-color: #FFCDD2;
  background: #FFEBEE;
}
.ev-invite-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.08);
  color: var(--pn);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.ev-invite-chip-remove:hover { background: rgba(30, 58, 138, 0.16); }
.ev-invite-chip-remove .ti { font-size: 11px; }
.ev-invite-player-add {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8F5E9;
  color: #2E7D32;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ev-invite-player-add .ti { font-size: 14px; }
.ev-invite-browse-overlay {
  z-index: 2400;
}
.ev-invite-browse-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: min(100%, 520px);
  max-height: min(88vh, 640px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  z-index: 2401;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  font-family: 'Outfit', sans-serif;
}
.ev-invite-browse-sheet.open {
  transform: translateX(-50%) translateY(0);
}
.ev-invite-browse-grab {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #CFD8DC;
  margin: 8px auto 4px;
  flex-shrink: 0;
}
.ev-invite-browse-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px;
  border-bottom: 1px solid #ECEFF1;
  flex-shrink: 0;
}
.ev-invite-browse-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--pn);
  margin: 0;
}
.ev-invite-browse-tools {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.ev-invite-browse-tool-btns {
  display: flex;
  gap: 6px;
}
.ev-invite-browse-players {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
}
.ev-invite-browse-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #ECEFF1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ev-invite-browse-player:hover:not(.ev-invite-browse-player--disabled) {
  border-color: #9FA8DA;
  background: #F7F9F7;
}
.ev-invite-browse-player--on {
  border-color: #7986CB;
  background: #EEF2FF;
  box-shadow: 0 0 0 1px #C5CAE9;
}
.ev-invite-browse-player--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ev-invite-browse-player input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--pn);
}
.ev-invite-browse-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ev-invite-browse-player-text { flex: 1; min-width: 0; }
.ev-invite-browse-player-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pn);
}
.ev-invite-browse-player-meta {
  display: block;
  font-size: 10px;
  color: #90A4AE;
  margin-top: 1px;
}
.ev-invite-browse-empty {
  font-size: 11px;
  color: #90A4AE;
  text-align: center;
  padding: 24px 12px;
}
.ev-invite-browse-foot {
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ECEFF1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  background: #FAFAFA;
}
.ev-invite-browse-count {
  font-size: 11px;
  font-weight: 600;
  color: #546E7A;
}
.ev-invite-browse-foot-btns {
  display: flex;
  gap: 8px;
}
#ev-invite-browse-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (min-width: 721px) {
  .ev-invite-browse-sheet {
    bottom: auto;
    top: 50%;
    border-radius: 14px;
    max-height: min(80vh, 560px);
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    pointer-events: none;
  }
  .ev-invite-browse-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .ev-invite-browse-grab { display: none; }
}
.ev-invite-player-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.ev-invite-search-empty {
  font-size: 10px;
  color: #90A4AE;
  margin: 0 0 8px;
  line-height: 1.4;
}
.ev-invite-player {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid #ECEFF1;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.ev-invite-player:hover:not(:disabled) { border-color: #9FA8DA; background: #F7F9F7; }
.ev-invite-player--selected { border-color: #7986CB; background: #EEF2FF; box-shadow: 0 0 0 1px #C5CAE9; }
.ev-invite-player--disabled { opacity: 0.55; cursor: not-allowed; }
.ev-invite-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ev-invite-player-text { flex: 1; min-width: 0; }
.ev-invite-player-name { display: block; font-size: 11px; font-weight: 600; color: var(--pn); }
.ev-invite-player-meta { display: block; font-size: 9px; color: #90A4AE; }
.ev-invite-status { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 8px; flex-shrink: 0; }
.ev-invite-status--invited { background: #E8F5E9; color: #2E7D32; }
.ev-invite-status--declined { background: #FFEBEE; color: #C62828; }
.inv-list { display: flex; flex-direction: column; gap: 5px; max-height: 140px; overflow-y: auto; }
.inv-list.inv-list--chips { max-height: none; overflow: visible; }
.ii    { display: flex; align-items: center; gap: 7px; padding: 6px 8px; background: white; border-radius: 6px; border: 0.5px solid var(--pb); }
.ii-av { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: white; flex-shrink: 0; }
.ii-n  { flex: 1; font-size: 11px; font-weight: 500; color: var(--ps); }
.ii-d  { font-size: 9px; color: #90A4AE; }
.ii-s  { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 8px; }
.s-pend { background: #FFF3E0; color: #E65100; }
.s-acc  { background: var(--success-bg); color: var(--success-fg); }
.s-decl { background: #FFEBEE; color: #C62828; }
.ii--declined { opacity: 0.88; }
.ii-x  { color: #CFD8DC; cursor: pointer; font-size: 13px; }
.ii-x:hover { color: #E53935; }

/* DUPR slider in modal */
.dm-modal-trk  { position: relative; height: 6px; background: #ECEFF1; border-radius: 3px; margin: 14px 6px 5px; }
.dm-modal-fill { position: absolute; height: 6px; background: var(--pg); border-radius: 3px; top: 0; }
.dm-modal-th   { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: white; border: 2.5px solid var(--pg); top: 50%; transform: translate(-50%,-50%); cursor: grab; z-index: 2; }
.dm-modal-lbls { display: flex; justify-content: space-between; font-size: 9px; color: #90A4AE; padding: 0 2px; }
.dm-modal-vals { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 7px; }
.dm-modal-v    { background: white; border: 0.5px solid #CFD8DC; border-radius: 5px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--pn); min-width: 48px; text-align: center; }
.m-actions { display: flex; gap: 7px; justify-content: flex-end; margin-top: 16px; }

/* Delete confirm */
.del-confirm    { background: #FFF5F5; border: 1px solid #FFCDD2; border-radius: var(--prs); padding: 12px; margin-bottom: 14px; }
.del-confirm p  { font-size: 12px; color: #C62828; margin-bottom: 10px; }
.del-confirm-btns { display: flex; gap: 8px; }

#createOverlay.create-overlay--delete .create-event-body > :not(.del-confirm) {
  display: none;
}
#createOverlay.create-overlay--delete .m-actions .btn-g {
  display: none;
}

/* RSVP view */
.rsvp-cancel-btn   {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
}
.rsvp-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.rsvp-back-btn {
  margin: 0;
}
.rsvp-hero         { background: var(--pn); border-radius: 16px; padding: 24px; text-align: center; margin-bottom: 20px; }
.rsvp-badge        { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.15); color: white; font-size: 10px; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.rsvp-title        { color: white; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.rsvp-sub          { color: rgba(255,255,255,0.65); font-size: 12px; }
.rsvp-meta         { display: flex; justify-content: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.rsvp-mi           { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.8); }
.rsvp-card         { background: white; border-radius: var(--pr); border: 0.5px solid var(--pb); padding: 20px; max-width: 420px; margin: 0 auto; }
.rsvp-form-title   { font-size: 14px; font-weight: 600; color: var(--pn); margin-bottom: 14px; }
.rsvp-field        { margin-bottom: 12px; }
.rsvp-label        { font-size: 10px; font-weight: 600; color: var(--ps); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 4px; }
.rsvp-input        { width: 100%; padding: 9px 11px; border: 0.5px solid #CFD8DC; border-radius: var(--prs); font-size: 13px; outline: none; font-family: 'Outfit', sans-serif; }
.rsvp-input:focus  { border-color: var(--pg); }
.rsvp-spots        { display: flex; align-items: center; justify-content: space-between; background: #F7F9F7; border-radius: var(--prs); padding: 10px 12px; margin-bottom: 14px; }
.rsvp-spots-lbl    { font-size: 12px; color: var(--ps); }
.rsvp-spots-val    { font-size: 13px; font-weight: 700; color: var(--pg); }
.rsvp-success      { text-align: center; padding: 24px 0; }
.rsvp-success-icon  { font-size: 40px; color: var(--pg); margin-bottom: 10px; }
.rsvp-success-title { font-size: 16px; font-weight: 700; color: var(--pn); margin-bottom: 6px; }
.rsvp-success-sub   { font-size: 12px; color: #90A4AE; }
.rsvp-full-banner  { background: #FFF8E1; border: 1px solid #FFE082; border-radius: var(--prs); padding: 10px 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #E65100; font-weight: 500; }

/* Final / live standings — full-screen overlay on desktop */
#eventResultsOverlay {
  z-index: var(--z-modal-stack-overlay);
}
#eventResultsOverlay .event-results-modal {
  z-index: var(--z-modal-stack-panel);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  max-height: 92vh;
  width: calc(100% - 24px);
  max-width: 560px;
}
#eventResultsOverlay.open {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
}
#eventResultsOverlay .event-results-hd {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 14px 4px;
  border-bottom: 0.5px solid var(--pb);
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#eventResultsOverlay .modal-hd-text {
  min-width: 0;
}
#eventResultsOverlay .event-results-hd-main {
  flex: 1;
  min-width: 0;
  display: block;
}
#eventResultsOverlay .event-results-ranking {
  display: none;
}
#eventResultsOverlay .event-results-ranking:not(:empty) {
  display: block;
}
#eventResultsOverlay .event-results-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #546E7A;
  line-height: 1.35;
}
.event-results-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 4px 12px 6px;
  display: flex;
  flex-direction: column;
}
.event-results-foot {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 12px 18px 16px;
  border-top: 0.5px solid var(--pb);
  background: #FAFBFA;
}
.er-meta { margin-bottom: 12px; }

/* Full-screen standings layout (tablet+) */
@media (min-width: 768px) {
  #eventResultsOverlay.open {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }
  #eventResultsOverlay .event-results-modal {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh !important;
    border-radius: 0;
  }
  #eventResultsOverlay .event-results-hd {
    padding: 8px 16px 6px;
  }
  #eventResultsOverlay .event-results-hd-main {
    display: block;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) {
    display: grid;
    grid-template-columns: minmax(140px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 8px 14px;
    padding: 8px 12px;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-header {
    margin-bottom: 0;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-sub {
    display: none;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-track {
    padding: 0;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-node {
    min-width: 0;
    max-width: none;
    padding: 6px 8px;
    gap: 2px;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-node-name {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-node-role {
    font-size: 11px;
  }
  #eventResultsOverlay .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-title {
    font-size: 13px;
  }
  #eventResultsOverlay .event-results-sub {
    font-size: 13px;
    margin-top: 2px;
  }
  #eventResultsOverlay .m-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  .event-results-body {
    padding: 6px 14px 8px;
  }
  .event-results-foot {
    padding: 6px 16px 8px;
  }
}

.er-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 16px;
}
.er-layout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.er-meta-pill {
  font-size: 11px;
  font-weight: 600;
  color: #546E7A;
  background: #F4F6F4;
  border: 0.5px solid var(--pb);
  padding: 5px 12px;
  border-radius: 999px;
}
.er-meta-pill--mode {
  background: var(--pg);
  color: #fff;
  border-color: var(--pg);
}
.er-layout-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 16px 24px;
  flex-shrink: 0;
}
.er-podium-card {
  flex: 1 1 320px;
  max-width: 100%;
  padding: 16px 20px;
  background: linear-gradient(180deg, #F7F9F7 0%, #fff 100%);
  border: 0.5px solid var(--pb);
  border-radius: 14px;
}
.er-tables--fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.er-tables--fill .standings-board {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.er-tables--fill .standings-board-scroll {
  flex: 1;
  min-height: 200px;
  max-height: none;
  overflow: auto;
}

.er-layout--table-only {
  gap: 0;
  flex: 1;
  min-height: 0;
}
#eventResultsOverlay .event-results-body {
  padding-top: 4px;
}
#eventResultsOverlay .er-ranking-bar {
  flex-shrink: 0;
  margin-bottom: 4px;
}
@media (min-width: 768px) {
  #eventResultsOverlay .event-results-body {
    padding-top: 4px;
    padding-bottom: 8px;
  }
}
.er-layout-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.er-layout--table-only .er-tables--fill {
  flex: 1;
  min-height: 0;
}

/* Podium inside light results modal (override live-session narrow names) */
.event-results-body .podium {
  margin-bottom: 0;
  gap: 12px 16px;
}
.event-results-body .podium-place {
  min-width: 100px;
}
.event-results-body .podium-av {
  width: 52px;
  height: 52px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.event-results-body .podium-name {
  max-width: none;
  width: auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--pn) !important;
}
.event-results-body .podium-score {
  font-size: 11px;
  color: #607D8B !important;
  white-space: nowrap;
}
.event-results-body .podium-block {
  width: 72px;
}
.event-results-body .podium-block.p1 { height: 72px; font-size: 22px; }
.event-results-body .podium-block.p2 { height: 56px; font-size: 18px; }
.event-results-body .podium-block.p3 { height: 44px; font-size: 16px; }

.event-results-body .er-view-toggle {
  flex: 0 0 auto;
  align-self: center;
  margin-bottom: 0;
}
.ev-panel-results-cta[hidden] { display: none !important; }

.ev-mlp-results-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  padding-top: 0;
}
.ev-mlp-results-link {
  width: 100%;
  justify-content: center;
}
.ev-mlp-results-link {
  width: 100%;
  justify-content: center;
}

/* MLP past season — full-screen results like live session */
#eventResultsOverlay.event-results-overlay--mlp.open {
  background: #ECEFF1;
  backdrop-filter: none;
}
#eventResultsOverlay .event-results-modal--mlp {
  max-width: none;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh !important;
  border-radius: 0;
  background: #ECEFF1;
}
#eventResultsOverlay .event-results-modal--mlp .event-results-hd {
  background: #fff;
  border-bottom: 0.5px solid var(--pb);
  padding: 8px 14px 6px;
}
#eventResultsOverlay .event-results-modal--mlp .m-title {
  color: var(--ps);
  font-weight: 700;
}
#eventResultsOverlay .event-results-modal--mlp .event-results-sub {
  color: #546E7A;
  font-size: 12px;
}
#eventResultsOverlay .event-results-body--mlp {
  padding: 0;
  background: #ECEFF1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#eventResultsOverlay .event-results-body--mlp .mlp-past-results-tabs.ls-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 0.5px solid var(--pb);
  gap: 2px;
  padding: 6px 8px 0;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#eventResultsOverlay .event-results-body--mlp .mlp-past-results-tabs .ls-tab {
  color: #455A64;
  font-weight: 700;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  cursor: pointer;
}
#eventResultsOverlay .event-results-body--mlp .mlp-past-results-tabs .ls-tab .ti {
  font-size: 17px;
}
#eventResultsOverlay .event-results-body--mlp .mlp-past-results-tabs .ls-tab:hover:not(.on) {
  color: var(--pn);
  background: #ECEFF1;
  border-color: var(--pb);
}
#eventResultsOverlay .event-results-body--mlp .mlp-past-results-tabs .ls-tab.on {
  color: var(--pn);
  background: #ECEFF1;
  border-color: var(--pb);
  border-bottom: 3px solid var(--pg);
  box-shadow: 0 -1px 4px rgba(17, 24, 39, 0.04);
}
#eventResultsOverlay .event-results-body--mlp .mlp-past-results-tabs .ls-tab.on .ti {
  color: var(--pg);
}
#eventResultsOverlay .event-results-body--mlp .ls-content-light.ls-mlp-screen {
  min-height: 0;
  padding: 12px 14px 24px;
  background: #ECEFF1;
}
#eventResultsOverlay .event-results-body--mlp .mlp-standings-panel,
#eventResultsOverlay .event-results-body--mlp .mlp-standings-controls-card,
#eventResultsOverlay .event-results-body--mlp .mlp-standings-results-card {
  margin-bottom: 12px;
}
#eventResultsOverlay .event-results-body--mlp .mlp-po-tree,
#eventResultsOverlay .event-results-body--mlp .mlp-po-podium {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ev-results-view-btn { margin-bottom: 8px; padding-top: 0; }
.ev-your-results { margin-bottom: 12px; }

.er-summary-podium { display: flex; flex-direction: column; gap: 8px; }
.er-summary-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #F7F9F7; border-radius: 8px; }
.er-summary-medal { font-size: 16px; width: 22px; text-align: center; }
.er-view-toggle { margin-bottom: 12px; }
.er-view-toggle .er-toggle-btn { font-size: 11px; padding: 6px 14px; background: #F7F9F7; color: var(--pn); border: 0.5px solid var(--pb); }
.er-view-toggle .er-toggle-btn.active { background: var(--pg); color: white; border-color: var(--pg); }
.event-results-body .podium-name { color: var(--pn); }
.event-results-body .podium-score { color: #90A4AE; }
.er-actions { margin-top: 16px; text-align: center; }
#eventResultsOverlay .final-screen { padding: 0; }

/* Standings table on light modal (not live-session dark shell) */
.event-results-body .standings-table,
.event-results-body .er-tables .standings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}
.event-results-body .standings-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: #37474F;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pb);
}
.event-results-body .standings-table td {
  padding: 10px;
  font-size: 12px;
  color: var(--pn);
  border-bottom: 1px solid #ECEFF1;
}
.event-results-body .standings-table td:first-child {
  font-weight: 600;
  color: #90A4AE;
  width: 28px;
}
.event-results-body .standings-table td:nth-child(2) {
  font-weight: 600;
  color: var(--pn);
}
/* MLP standings — center all columns (overrides event-results left-align defaults) */
.event-results-body .standings-table.mlp-standings-table th,
.event-results-body .standings-table.mlp-standings-table td,
#eventResultsOverlay .standings-table.mlp-standings-table th,
#eventResultsOverlay .standings-table.mlp-standings-table td {
  text-align: center;
  vertical-align: middle;
}
.event-results-body .standings-table.mlp-standings-table .st-col-player,
.event-results-body .standings-table.mlp-standings-table .st-player,
#eventResultsOverlay .standings-table.mlp-standings-table .st-col-player,
#eventResultsOverlay .standings-table.mlp-standings-table .st-player {
  justify-content: center;
}
.event-results-body .standings-table.mlp-standings-table .mlp-standings-player-link.st-player,
#eventResultsOverlay .standings-table.mlp-standings-table .mlp-standings-player-link.st-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.event-results-body .standings-table.mlp-standings-table .mlp-standings-player-link:hover .st-player-name,
.event-results-body .standings-table.mlp-standings-table .mlp-standings-player-link:focus-visible .st-player-name,
#eventResultsOverlay .standings-table.mlp-standings-table .mlp-standings-player-link:hover .st-player-name,
#eventResultsOverlay .standings-table.mlp-standings-table .mlp-standings-player-link:focus-visible .st-player-name {
  color: var(--pn, #1565C0);
  text-decoration: underline;
}
.event-results-body .standings-table.mlp-standings-table .st-col-metric,
.event-results-body .standings-table.mlp-standings-table .st-col-num,
.event-results-body .standings-table.mlp-standings-table .st-metric-cell,
.event-results-body .standings-table.mlp-standings-table .st-metric-val,
#eventResultsOverlay .standings-table.mlp-standings-table .st-col-metric,
#eventResultsOverlay .standings-table.mlp-standings-table .st-col-num,
#eventResultsOverlay .standings-table.mlp-standings-table .st-metric-cell,
#eventResultsOverlay .standings-table.mlp-standings-table .st-metric-val {
  text-align: center;
}
.event-results-body .standings-table.mlp-standings-table .st-metric-cell,
#eventResultsOverlay .standings-table.mlp-standings-table .st-metric-cell {
  justify-content: center;
}
.event-results-body .standings-table.mlp-standings-table td:nth-child(2),
#eventResultsOverlay .standings-table.mlp-standings-table td:nth-child(2) {
  text-align: center;
}
.event-results-body .standings-table.mlp-standings-table .st-th-metric-inner,
#eventResultsOverlay .standings-table.mlp-standings-table .st-th-metric-inner {
  justify-content: center;
  width: 100%;
}
.event-results-body .standings-table--modern.mlp-standings-table .st-th-rank,
.event-results-body .standings-table--modern.mlp-standings-table .st-th-player,
.event-results-body .standings-table--modern.mlp-standings-table .st-th-metric,
.event-results-body .standings-table--modern.mlp-standings-table .st-th-num,
#eventResultsOverlay .standings-table--modern.mlp-standings-table .st-th-rank,
#eventResultsOverlay .standings-table--modern.mlp-standings-table .st-th-player,
#eventResultsOverlay .standings-table--modern.mlp-standings-table .st-th-metric,
#eventResultsOverlay .standings-table--modern.mlp-standings-table .st-th-num {
  text-align: center;
}
.event-results-body .standings-table--modern.mlp-standings-table .st-col-rank,
.event-results-body .standings-table--modern.mlp-standings-table .st-squad-cell,
#eventResultsOverlay .standings-table--modern.mlp-standings-table .st-col-rank,
#eventResultsOverlay .standings-table--modern.mlp-standings-table .st-squad-cell {
  text-align: center;
}
.event-results-body .ls-hint {
  font-size: 11px;
  color: #607D8B;
  margin-bottom: 8px;
}

/* ── Modern standings board (event panel + results modal) ── */
.ev-ongoing-standings { margin-bottom: 20px; }
.ev-standings-ranking {
  margin-bottom: 8px;
}
.ev-standings-ranking-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F7F9F7 0%, #EEF2EE 100%);
  border: 0.5px solid var(--pb);
}
.ev-standings-ranking-edit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #455A64;
  flex: 1 1 220px;
  min-width: 0;
}
.ev-standings-ranking-edit-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.12);
}
.ev-standings-ranking-edit-text strong {
  color: var(--pn);
  font-weight: 700;
}
.ev-standings-edit-link {
  display: inline;
  margin: 0 2px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #1565C0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ev-standings-edit-link:hover {
  color: #0D47A1;
}
.ev-standings-ranking-meta {
  flex-shrink: 0;
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  color: #78909C;
  white-space: nowrap;
}

.standings-board {
  border: 0.5px solid var(--pb);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}
.standings-board-scroll {
  max-height: min(420px, 55vh);
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.standings-table--modern {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.standings-table--modern thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.standings-table--modern th {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: #263238;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 12px 12px;
  background: #EEF2EE;
  border-bottom: 2px solid #CFD8DC;
  white-space: nowrap;
  line-height: 1.25;
}
.standings-table--modern .st-th-num,
.standings-table--modern .st-th-metric {
  text-align: right;
}
.standings-table--modern .st-th-num--full {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
  white-space: normal;
  line-height: 1.25;
  min-width: 5.5em;
}
.standings-table--modern td {
  padding: 11px 12px;
  font-size: 14px;
  color: var(--pn);
  border-bottom: 1px solid #ECEFF1;
  vertical-align: middle;
}
.standings-table--modern tbody tr:nth-child(even) td {
  background: #FAFBFA;
}
.standings-table--modern tbody tr:last-child td {
  border-bottom: none;
}
.standings-table--modern tbody tr:hover td {
  background: #F9FBF9;
}
.standings-table--modern .st-row--podium td {
  background: linear-gradient(90deg, rgba(249, 168, 37, 0.08) 0%, transparent 55%);
}
.standings-table--modern .st-row--idle td {
  opacity: 0.55;
}
.standings-table--modern .st-row--idle .st-metric-fill {
  width: 0 !important;
}

.st-col-rank { width: 40px; text-align: center; }
.st-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.st-rank.gold   { background: linear-gradient(145deg, #FFE082, #F9A825); color: #5D4037; }
.st-rank.silver { background: linear-gradient(145deg, #ECEFF1, #B0BEC5); color: #37474F; }
.st-rank.bronze { background: linear-gradient(145deg, #FFCCBC, #A1887F); color: #4E342E; }
.st-rank.other  { background: #ECEFF1; color: #546E7A; font-weight: 700; }
.st-rank.rank4 {
  background: linear-gradient(145deg, #E3F2FD, #BBDEFB);
  color: #0D47A1;
}
.st-rank.rank5 {
  background: linear-gradient(145deg, #F3E5F5, #E1BEE7);
  color: #4A148C;
}
.st-rank-medal {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.st-rank-medal.gold {
  background: linear-gradient(145deg, #FFF3E0, #FFE082);
  color: #E65100;
  box-shadow: 0 1px 4px rgba(230, 81, 0, 0.2);
}
.st-rank-medal.silver {
  background: linear-gradient(145deg, #FAFAFA, #ECEFF1);
  color: #546E7A;
  box-shadow: 0 1px 3px rgba(84, 110, 122, 0.15);
}
.st-rank-medal.bronze {
  background: linear-gradient(145deg, #FFF8E1, #FFCCBC);
  color: #8D6E63;
  box-shadow: 0 1px 3px rgba(141, 110, 99, 0.15);
}
.st-rank-medal.rank4 {
  background: linear-gradient(145deg, #E3F2FD, #BBDEFB);
  color: #1565C0;
  box-shadow: 0 1px 3px rgba(21, 101, 192, 0.15);
}
.st-rank-medal.rank5 {
  background: linear-gradient(145deg, #F3E5F5, #E1BEE7);
  color: #6A1B9A;
  box-shadow: 0 1px 3px rgba(106, 27, 154, 0.15);
}
.st-rank-medal-slot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-block;
}

.st-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.st-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.st-col-player {
  width: 1%;
  white-space: nowrap;
  min-width: 7.5rem;
  max-width: 11rem;
}
.standings-table--modern .st-th-player {
  min-width: 7.5rem;
  max-width: 11rem;
}
.standings-table--modern .st-th-metric,
.standings-table--modern .st-col-metric {
  min-width: 6.75rem;
}
.standings-table--modern .st-th-metric--full {
  min-width: 7.25rem;
}
.standings-table--modern .st-th-num,
.standings-table--modern .st-col-num {
  min-width: 2.75rem;
}
.st-player-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--pn);
  line-height: 1.3;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}
.st-tag {
  font-size: 9px;
  font-weight: 700;
  color: #E65100;
  background: #FFF3E0;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: 1px;
}

.st-col-metric { min-width: 96px; text-align: right; }
.st-metric-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 80px;
}
.st-metric-bar {
  flex: 1 1 48px;
  max-width: 72px;
  height: 7px;
  border-radius: 999px;
  background: #E8ECE8;
  overflow: hidden;
}
.st-metric-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #66BB6A, var(--pg));
  transition: width 0.2s ease;
}
.st-metric-val {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--pg);
  min-width: 2.75em;
  text-align: right;
}
.st-metric-plain {
  font-weight: 700;
  font-size: 14px;
}

/* Full standings / leaderboard with readable column titles — center metric + numeric columns */
.standings-table--align-center .st-th-metric,
.standings-table--align-center .st-th-metric--full,
.standings-table--align-center .st-th-num,
.standings-table--align-center .st-th-num--full {
  text-align: center;
}
.standings-table--align-center .st-col-metric,
.standings-table--align-center .st-col-num {
  text-align: center;
}
.standings-table--align-center .st-metric-cell {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.standings-table--align-center .st-metric-val {
  text-align: center;
  min-width: 2.75em;
}
.standings-table--align-center .st-metric-bar {
  max-width: 56px;
  width: 100%;
}
.standings-table--align-center .st-th-rank--label {
  text-transform: none;
  letter-spacing: 0;
}

.st-col-num { text-align: right; white-space: nowrap; }
.st-num {
  display: inline-block;
  min-width: 24px;
  font-weight: 800;
  font-size: 15px;
}
.st-num--w { color: var(--pg); }
.st-num--l { color: #EF5350; }
.st-col-num--muted {
  color: #455A64;
  font-size: 14px;
  font-weight: 700;
}
.st-diff {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 6px;
}
.st-diff--pos { color: #2E7D32; background: #E8F5E9; }
.st-diff--neg { color: #C62828; background: #FFEBEE; }
.st-diff--zero { color: #90A4AE; background: #F5F5F5; }

#evPanelBody .standings-board .ls-hint,
.event-results-body .standings-board .ls-hint {
  margin: 0;
  padding: 10px 14px;
  font-size: 11px;
  color: #607D8B;
  background: #FAFBFA;
  border-bottom: 1px solid #ECEFF1;
  line-height: 1.45;
}
#evPanelBody .ev-ongoing-standings .ev-results-view-btn,
#evPanelBody .ev-ongoing-standings .btn {
  margin-top: 12px;
}
#evPanelBody .standings-board,
.ev-detail-fold-body .standings-board {
  max-width: 100%;
}
#evPanelBody .standings-board-scroll,
.ev-detail-fold-body .standings-board-scroll {
  overflow-x: auto;
}

@media (max-width: 640px) {
  .standings-board-scroll { max-height: 360px; }
  .standings-table--modern {
    min-width: min(100%, 36rem);
  }
  .standings-table--modern th,
  .standings-table--modern td {
    padding: 8px 10px;
    font-size: 12px;
  }
  .st-av { width: 28px; height: 28px; font-size: 10px; }
  .st-metric-bar { max-width: 56px; }
}

/* Full standings overlay — ranking rules card */
.er-ranking-rules {
  flex-shrink: 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, #F0F7F1 0%, #FAFBFA 48%, #EEF4FC 100%);
  border-bottom: 1px solid rgba(46, 125, 50, 0.12);
}
.er-ranking-rules-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.er-ranking-rules-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.er-ranking-rules-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pn);
  letter-spacing: -0.01em;
}
.er-ranking-rules-lead {
  margin: 4px 0 0;
  font-size: 14px;
  color: #546E7A;
  line-height: 1.5;
}
.er-ranking-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.er-ranking-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 200px;
  max-width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(176, 190, 197, 0.35);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}
.er-ranking-step--primary {
  border-color: rgba(46, 125, 50, 0.35);
  background: linear-gradient(145deg, #fff 0%, #F1F8E9 100%);
  box-shadow: 0 3px 12px rgba(46, 125, 50, 0.1);
}
.er-ranking-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #66BB6A, var(--pg));
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35);
}
.er-ranking-step--primary .er-ranking-step-num {
  background: linear-gradient(145deg, #F9A825, #F57F17);
  box-shadow: 0 2px 6px rgba(245, 127, 23, 0.35);
}
.er-ranking-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.er-ranking-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78909C;
}
.er-ranking-step-body strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--pn);
  line-height: 1.35;
}

.standings-board--fullscreen {
  border: none;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 24px rgba(17, 24, 39, 0.08),
    0 0 0 1px rgba(176, 190, 197, 0.25);
  background: #fff;
}

/* Compact ranking pipeline — chip row (results overlay, event panel, live session) */
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline--compact {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  padding: 4px 10px;
  min-height: 0;
  border-radius: 8px;
  background: #F4F7F4;
  border: 0.5px solid rgba(46, 125, 50, 0.22);
  box-shadow: none;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline--compact .er-ranking-pipeline-compact-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #546E7A;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline--compact .er-ranking-pipeline-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  padding: 0;
  overflow: visible;
  flex: 1 1 auto;
  min-width: 0;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 8px 2px 3px;
  border-radius: 999px;
  background: #fff;
  border: 0.5px solid rgba(176, 190, 197, 0.55);
  font-size: 12px;
  font-weight: 700;
  color: #1a2332;
  line-height: 1.2;
  white-space: nowrap;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--primary {
  border-color: rgba(46, 125, 50, 0.45);
  background: #F1F8E9;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip-step {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #78909C;
  flex-shrink: 0;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--primary .er-ranking-pipeline-chip-step {
  background: linear-gradient(145deg, #F9A825, #F57F17);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--pointShare .er-ranking-pipeline-chip-step,
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--pointPct .er-ranking-pipeline-chip-step {
  background: linear-gradient(145deg, #42A5F5, #1565C0);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--gameWinRate .er-ranking-pipeline-chip-step,
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--winpct .er-ranking-pipeline-chip-step {
  background: linear-gradient(145deg, #7E57C2, #4527A0);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--courtPts .er-ranking-pipeline-chip-step,
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip--courtPointPct .er-ranking-pipeline-chip-step {
  background: linear-gradient(145deg, #26A69A, #00695C);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(160px, 28vw);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline--compact .er-ranking-pipeline-sep {
  display: inline-flex;
  align-items: center;
  color: #81C784;
  font-size: 11px;
  padding: 0 1px;
  flex-shrink: 0;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline--compact .er-metric-tip {
  position: static;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  font-size: 14px;
  color: #546E7A;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline--compact .er-metric-tip:hover,
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline--compact .er-metric-tip:focus-visible {
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 50%;
}

/* Ranking pipeline — event results overlay header (inline with title) */
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline {
  min-width: 0;
  padding: 10px 12px 11px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(232, 245, 233, 0.95) 0%, rgba(255, 255, 255, 0.98) 38%, rgba(238, 244, 252, 0.95) 100%);
  border: 1px solid rgba(46, 125, 50, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 18px rgba(46, 125, 50, 0.1);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-header-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(145deg, #66BB6A, #2E7D32);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.35);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-header-text {
  min-width: 0;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1B5E20;
  line-height: 1.25;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #455A64;
  line-height: 1.35;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node {
  position: relative;
  flex: 1 1 0;
  min-width: 108px;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 9px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(176, 190, 197, 0.45);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node--primary {
  border-color: rgba(46, 125, 50, 0.55);
  background: linear-gradient(180deg, #fff 0%, #F1F8E9 100%);
  box-shadow:
    0 0 0 1px rgba(46, 125, 50, 0.12),
    0 4px 14px rgba(46, 125, 50, 0.14);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node-step {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #78909C, #546E7A);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node--primary .er-ranking-pipeline-node-step {
  background: linear-gradient(145deg, #F9A825, #F57F17);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #546E7A;
  line-height: 1.2;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node--primary .er-ranking-pipeline-node-role {
  color: #2E7D32;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node-name {
  font-size: 13px;
  font-weight: 800;
  color: #1a2332;
  line-height: 1.3;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node .er-metric-tip--prominent {
  position: static;
  align-self: center;
  margin-top: 6px;
  width: auto;
  height: auto;
  min-height: 32px;
  padding: 6px 14px;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  color: #1B5E20;
  background: linear-gradient(180deg, #F1F8F2 0%, #E8F5E9 100%);
  border: 1.5px solid rgba(46, 125, 50, 0.45);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.14);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node .er-metric-tip--prominent:hover,
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node .er-metric-tip--prominent:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #66BB6A, var(--pg));
  border-color: var(--pg);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node .er-metric-tip--prominent .er-metric-tip-lbl {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node .er-metric-tip:not(.er-metric-tip--prominent) {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  font-size: 13px;
  color: #78909C;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node:not(.er-ranking-pipeline-node--primary)[data-metric="pointShare"] .er-ranking-pipeline-node-step,
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node:not(.er-ranking-pipeline-node--primary)[data-metric="pointPct"] .er-ranking-pipeline-node-step {
  background: linear-gradient(145deg, #42A5F5, #1565C0);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node:not(.er-ranking-pipeline-node--primary)[data-metric="gameWinRate"] .er-ranking-pipeline-node-step,
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node:not(.er-ranking-pipeline-node--primary)[data-metric="winpct"] .er-ranking-pipeline-node-step {
  background: linear-gradient(145deg, #7E57C2, #4527A0);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node:not(.er-ranking-pipeline-node--primary)[data-metric="courtPts"] .er-ranking-pipeline-node-step {
  background: linear-gradient(145deg, #26A69A, #00695C);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-node:not(.er-ranking-pipeline-node--primary)[data-metric="clutch"] .er-ranking-pipeline-node-step {
  background: linear-gradient(145deg, #FFB74D, #EF6C00);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-arrow {
  flex: 0 0 32px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 28px;
  color: #43A047;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-arrow-line {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(102, 187, 106, 0.35), rgba(46, 125, 50, 0.85));
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-arrow .ti {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.9));
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel {
  background: linear-gradient(135deg, #E8F5E9 0%, #F7FBF7 42%, #EEF4FC 100%);
  border: 1px solid rgba(46, 125, 50, 0.22);
  border-radius: 10px;
  padding: 12px 14px 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 10px rgba(46, 125, 50, 0.08);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  color: var(--pg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(46, 125, 50, 0.15);
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.12);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pg);
  line-height: 1.2;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-lead {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: #546E7A;
  line-height: 1.4;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(176, 190, 197, 0.4);
  border-radius: 10px;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step--primary {
  border-color: rgba(46, 125, 50, 0.35);
  background: linear-gradient(145deg, #fff 0%, #F1F8E9 100%);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #66BB6A, var(--pg));
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step--primary .er-ranking-panel-step-num {
  background: linear-gradient(145deg, #F9A825, #F57F17);
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  min-width: 0;
  flex: 1;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78909C;
  width: 100%;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step-metric {
  font-size: 12px;
  font-weight: 700;
  color: var(--pn);
  line-height: 1.25;
}
.er-metric-tip--prominent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 5px 12px;
  border: 1.5px solid rgba(46, 125, 50, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, #F1F8F2 0%, #E8F5E9 100%);
  color: #1B5E20;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.12);
}
.er-metric-tip--prominent:hover,
.er-metric-tip--prominent:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #66BB6A, var(--pg));
  border-color: var(--pg);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  outline: none;
}
.er-metric-tip-lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
:is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-panel-step .er-metric-tip--prominent {
  margin-top: 4px;
  align-self: flex-start;
}
.er-metric-tip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: #78909C;
  cursor: pointer;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}
.er-metric-tip:not(.er-metric-tip--prominent):hover,
.er-metric-tip:not(.er-metric-tip--prominent):focus-visible {
  color: var(--pg);
  background: rgba(46, 125, 50, 0.12);
  outline: none;
}
.er-metric-tip-float {
  display: none;
  position: fixed;
  z-index: 1335;
  width: min(300px, calc(100vw - 24px));
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 12px 14px 14px;
  background: #fff;
  border: 1px solid rgba(46, 125, 50, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.18);
  pointer-events: auto;
}
.er-metric-tip-float.open {
  display: block;
}
.er-metric-tip-float-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #F4F6F4;
  color: #78909C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.er-metric-tip-float-close:hover {
  background: #ECEFF1;
  color: var(--pn);
}
.er-metric-tip-float-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0 28px 8px 0;
  line-height: 1.35;
}
.er-metric-tip-title-name {
  color: #1565C0;
}
.er-metric-tip-float-body {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: #37474F;
}
.er-metric-tip-float-body > p:first-child {
  color: #1B5E20;
  font-weight: 600;
}
.er-metric-tip-float-body > p:first-child strong {
  color: #546E7A;
  font-weight: 700;
}
.er-metric-tip-float-body > p:not(:first-child),
.er-metric-tip-float-body > ul {
  color: #37474F;
  font-weight: 400;
}
.er-metric-tip-float-body p {
  margin: 0 0 8px;
}
.er-metric-tip-float-body p:last-child {
  margin-bottom: 0;
}
.er-metric-tip-float-body ul {
  margin: 4px 0 8px;
  padding-left: 18px;
}
.er-metric-tip-float-body li {
  margin-bottom: 3px;
}
.er-metric-tip-float-body code {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #FFF9C4;
  color: #5D4037;
}
.er-metric-tip-float--wide {
  width: min(440px, calc(100vw - 24px));
}
.er-metric-tip-float--prominent {
  width: min(440px, calc(100vw - 24px));
  padding: 18px 20px 20px;
  border-width: 2px;
  border-color: rgba(46, 125, 50, 0.35);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.22);
}
.er-metric-tip-float--prominent .er-metric-tip-float-close {
  width: 32px;
  height: 32px;
  font-size: 16px;
  top: 10px;
  right: 10px;
}
.er-metric-tip-float--prominent .er-metric-tip-float-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}
.er-metric-tip-float--prominent .er-metric-tip-title-name {
  color: #1565C0;
}
.er-metric-tip-float--prominent .er-metric-tip-float-body {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}
.er-metric-tip-float--prominent .er-metric-tip-float-body > p:first-child {
  color: #1B5E20;
  font-weight: 600;
}
.er-metric-tip-float--prominent .er-metric-tip-float-body > p:not(:first-child),
.er-metric-tip-float--prominent .er-metric-tip-float-body > ul {
  color: #263238;
  font-weight: 400;
}
.er-metric-tip-float--prominent .er-metric-tip-float-body code {
  font-size: 13px;
  padding: 2px 7px;
  background: #FFF9C4;
  color: #5D4037;
}
.er-metric-tip-float--prominent.er-metric-tip-float--wide {
  width: min(480px, calc(100vw - 24px));
}
/* Full standings overlay — larger, easier-to-read Explain popups (desktop-first) */
.er-metric-tip-float--standings {
  width: min(520px, calc(100vw - 32px));
  max-height: min(82vh, 680px);
  padding: 20px 22px 22px;
}
.er-metric-tip-float--standings .er-metric-tip-float-title {
  font-size: 19px;
  margin-bottom: 12px;
  padding-right: 36px;
}
.er-metric-tip-float--standings .er-metric-tip-float-body {
  font-size: 16px;
  line-height: 1.72;
}
.er-metric-tip-float--standings .er-metric-tip-float-body > p:first-child {
  font-size: 16px;
}
.er-metric-tip-float--standings .er-metric-tip-float-body code {
  font-size: 14px;
  padding: 2px 8px;
}
.er-metric-tip-float--standings .er-metric-tip-float-body ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.er-metric-tip-float--standings .er-metric-tip-float-body li {
  margin-bottom: 6px;
}
.er-metric-tip-examples {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #F6FAF7 0%, #EEF5EF 100%);
  border: 1px solid rgba(46, 125, 50, 0.18);
}
.er-metric-tip-examples-hd {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2E7D32;
  margin-bottom: 10px;
}
.er-metric-tip-examples ul {
  margin: 0 !important;
  padding-left: 20px !important;
}
.er-metric-tip-examples li {
  margin-bottom: 8px !important;
  line-height: 1.55;
  color: #263238;
}
.er-metric-tip-examples li:last-child {
  margin-bottom: 0 !important;
}
.er-metric-tip-float--standings .er-metric-tip-examples {
  padding: 16px 18px;
}
.er-metric-tip-float--standings .er-metric-tip-examples-hd {
  font-size: 12px;
  margin-bottom: 12px;
}
.er-metric-tip-float--standings .er-metric-tip-examples li {
  font-size: 15px;
  line-height: 1.6;
}
@media (min-width: 1024px) {
  .er-metric-tip-float--standings {
    width: min(580px, calc(100vw - 48px));
    padding: 24px 26px 26px;
  }
  .er-metric-tip-float--standings.er-metric-tip-float--wide {
    width: min(620px, calc(100vw - 48px));
  }
  .er-metric-tip-float--standings .er-metric-tip-float-title {
    font-size: 21px;
  }
  .er-metric-tip-float--standings .er-metric-tip-float-body {
    font-size: 17px;
    line-height: 1.75;
  }
  .er-metric-tip-float--standings .er-metric-tip-examples li {
    font-size: 16px;
  }
  #eventResultsOverlay .st-th-metric-inner .er-metric-tip {
    width: 26px;
    height: 26px;
    font-size: 17px;
  }
  #eventResultsOverlay .er-ranking-pipeline--compact .er-metric-tip {
    width: 26px;
    height: 26px;
    font-size: 17px;
  }
}
.er-metric-tip-float-body strong {
  color: #546E7A;
  font-weight: 700;
}
.er-metric-tip-float-body > p:first-child strong {
  color: #546E7A;
}
.st-th-metric-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.st-th-metric-inner .er-metric-tip {
  font-size: 14px;
  width: 20px;
  height: 20px;
  color: #546E7A;
}
#eventResultsOverlay .st-th-metric-inner .er-metric-tip {
  color: #455A64;
}

#eventResultsOverlay .standings-board--dense .standings-board-scroll {
  flex: 1;
  min-height: 0;
}
#eventResultsOverlay .standings-board--dense {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}
#eventResultsOverlay .standings-table--modern {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
#eventResultsOverlay .standings-table--modern th {
  font-size: 15px;
  font-weight: 800;
  padding: 11px 10px;
  background: linear-gradient(180deg, #E8EFE8 0%, #DDE8DE 100%);
  color: #1a2332;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 2px solid #B0BEC5;
  line-height: 1.3;
  vertical-align: bottom;
}
#eventResultsOverlay .standings-table--modern .st-th-rank {
  width: 44px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #37474F;
  text-align: center;
}
#eventResultsOverlay .standings-table--modern .st-th-rank--label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a2332;
}
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-th-metric,
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-th-metric--full,
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-th-num,
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-th-num--full {
  text-align: center;
}
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-col-metric,
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-col-num {
  text-align: center;
}
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-metric-cell {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-metric-val {
  text-align: center;
  min-width: 2.75em;
}
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-metric-bar {
  max-width: 56px;
  width: 100%;
}
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-num,
#eventResultsOverlay .standings-table--modern.standings-table--align-center .st-diff {
  margin-left: auto;
  margin-right: auto;
}
#eventResultsOverlay .standings-table--modern .st-th-player {
  width: auto;
  min-width: 7.5rem;
  max-width: 11rem;
  font-size: 15px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: #1a2332;
}
#eventResultsOverlay .standings-table--modern .st-th-metric--full {
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a2332;
  white-space: nowrap;
  line-height: 1.3;
  max-width: none;
}
#eventResultsOverlay .standings-table--modern .st-th-metric--full[data-metric="pointPct"] .st-th-metric-inner {
  white-space: nowrap;
}
#eventResultsOverlay .standings-table--modern .st-th-num {
  width: auto;
  min-width: 2.75rem;
  font-size: 13px;
  font-weight: 800;
  color: #37474F;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
#eventResultsOverlay .standings-table--modern .st-th-num--full {
  width: auto;
  min-width: 5.5em;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a2332;
  white-space: normal;
  line-height: 1.25;
}
#eventResultsOverlay .st-th-metric-inner {
  gap: 5px;
}
#eventResultsOverlay .standings-table--modern td {
  padding: 10px 10px;
  font-size: 15px;
  color: #1a2332;
}
#eventResultsOverlay .standings-table--modern tbody tr:nth-child(even) td {
  background: #F6F8F6;
}
#eventResultsOverlay .standings-table--modern tbody tr:hover td {
  background: #EEF5EE;
}
#eventResultsOverlay .st-col-player {
  width: 20%;
  white-space: nowrap;
  max-width: none;
  padding-right: 8px;
}
#eventResultsOverlay .st-th-player {
  width: 20%;
}
#eventResultsOverlay .st-player-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a2332;
}
#eventResultsOverlay .st-col-rank {
  width: 42px;
  padding-right: 2px;
  text-align: center;
}
#eventResultsOverlay .st-rank-medal {
  width: 30px;
  height: 30px;
  font-size: 17px;
}
#eventResultsOverlay .st-player {
  gap: 8px;
}
#eventResultsOverlay .st-av {
  width: 30px;
  height: 30px;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
#eventResultsOverlay .st-rank {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
}
#eventResultsOverlay .st-rank-num {
  line-height: 1;
}
#eventResultsOverlay .st-rank.other {
  background: #ECEFF1 !important;
  color: #37474F !important;
  border: 1px solid #B0BEC5;
}
#eventResultsOverlay .st-rank.gold {
  background: linear-gradient(145deg, #FFE082, #F9A825) !important;
  color: #5D4037 !important;
}
#eventResultsOverlay .st-rank.silver {
  background: linear-gradient(145deg, #ECEFF1, #B0BEC5) !important;
  color: #37474F !important;
}
#eventResultsOverlay .st-rank.bronze {
  background: linear-gradient(145deg, #FFCCBC, #A1887F) !important;
  color: #4E342E !important;
}
#eventResultsOverlay .st-rank.rank4 {
  background: linear-gradient(145deg, #E3F2FD, #BBDEFB) !important;
  color: #0D47A1 !important;
}
#eventResultsOverlay .st-rank.rank5 {
  background: linear-gradient(145deg, #F3E5F5, #E1BEE7) !important;
  color: #4A148C !important;
}
#eventResultsOverlay .st-metric-bar {
  flex: 1 1 40px;
  max-width: 64px;
  height: 8px;
  background: #D5DDD5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
#eventResultsOverlay .st-metric-val {
  font-size: 16px;
  font-weight: 800;
  color: #1B5E20;
  min-width: 3em;
}
#eventResultsOverlay .st-metric-plain {
  font-size: 15px;
  font-weight: 800;
  color: #1a2332;
}
#eventResultsOverlay .st-metric-cell {
  gap: 8px;
  min-width: 88px;
}
#eventResultsOverlay .st-num {
  font-size: 17px;
  font-weight: 800;
}
#eventResultsOverlay .st-col-num--muted {
  font-size: 15px;
  font-weight: 700;
  color: #37474F;
}
#eventResultsOverlay .st-diff {
  font-size: 14px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
#eventResultsOverlay [data-metric="pointShare"] .st-metric-fill,
#eventResultsOverlay [data-metric="pointPct"] .st-metric-fill {
  background: linear-gradient(90deg, #42A5F5, #2E7D32);
}
#eventResultsOverlay [data-metric="gameWinRate"] .st-metric-fill,
#eventResultsOverlay [data-metric="winpct"] .st-metric-fill {
  background: linear-gradient(90deg, #7E57C2, #3949AB);
}
#eventResultsOverlay [data-metric="clutch"] .st-metric-fill {
  background: linear-gradient(90deg, #FFB74D, #F57C00);
}
#eventResultsOverlay [data-metric="confidence"] .st-metric-fill {
  background: linear-gradient(90deg, #4DD0E1, #00838F);
}
#eventResultsOverlay .st-row--podium td {
  background: linear-gradient(90deg, rgba(255, 224, 130, 0.14) 0%, transparent 50%);
}
@media (min-width: 768px) {
  #eventResultsOverlay .standings-table--modern .st-th-metric--full {
    font-size: 15px;
    max-width: none;
  }
}

@media (min-width: 1200px) {
  #eventResultsOverlay .m-title {
    font-size: 22px;
  }
  #eventResultsOverlay .event-results-body {
    padding: 8px 20px 10px;
  }
  #eventResultsOverlay .standings-table--modern th {
    font-size: 16px;
    padding: 12px 12px;
  }
  #eventResultsOverlay .standings-table--modern .st-th-player,
  #eventResultsOverlay .standings-table--modern .st-th-metric--full {
    font-size: 16px;
  }
  #eventResultsOverlay .standings-table--modern .st-th-num {
    font-size: 14px;
  }
  #eventResultsOverlay .standings-table--modern td {
    padding: 11px 12px;
    font-size: 16px;
  }
  #eventResultsOverlay .st-player-name {
    font-size: 16px;
  }
  #eventResultsOverlay .st-metric-bar {
    max-width: 72px;
  }
  #eventResultsOverlay .st-metric-val {
    font-size: 17px;
  }
  #eventResultsOverlay .st-num {
    font-size: 18px;
  }
  #eventResultsOverlay .st-col-num--muted {
    font-size: 16px;
  }
  #eventResultsOverlay .st-diff {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  #eventResultsOverlay.open {
    align-items: flex-end;
    padding: 0;
    background: rgba(17, 24, 39, 0.45);
  }
  #eventResultsOverlay .event-results-modal {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    height: auto;
    border-radius: 16px 16px 0 0;
  }
  #eventResultsOverlay .standings-table--modern,
  #evPanelBody .standings-table--modern,
  .ev-detail-fold-body .standings-table--modern {
    min-width: 36rem;
  }
  .er-tables--fill .standings-board-scroll {
    max-height: min(48vh, 420px);
  }
  .event-results-body .podium-name {
    white-space: normal;
    max-width: 88px;
    font-size: 11px;
  }
}

@media (min-width: 1200px) {
  #eventResultsOverlay .er-metric-chip-label {
    max-width: 160px;
  }
}

@media (max-width: 767px) {
  #eventResultsOverlay .event-results-hd-main {
    display: block;
  }
  :is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline:not(.er-ranking-pipeline--compact) .er-ranking-pipeline-node {
    min-width: 108px;
  }
  :is(#eventResultsOverlay, .ev-standings-ranking, .ls-content-light:not(.ls-standings-screen):not(.ls-mlp-standings-screen)) .er-ranking-pipeline-chip-name {
    max-width: min(120px, 36vw);
  }
}

/* Event detail as modal overlay (same UX pattern as player/facility) */
#evPanelOverlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-overlay);
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(1px);
}
#evPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  width: min(1080px, calc(100vw - 32px));
  height: min(88vh, 860px);
  max-height: min(88vh, 860px);
  border-radius: 14px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -48%) scale(0.985);
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
  z-index: var(--z-modal-panel);
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#evPanel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#evPanel:not(.open) {
  display: none;
}

@media (min-width: 1024px) {
  #evPanel {
    width: min(1280px, calc(100vw - var(--sidebar-w, 210px) - 28px));
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
    left: auto;
    right: 14px;
    top: 10px;
    transform: translate(0, -48%) scale(0.985);
  }
  #evPanel.open {
    transform: translate(0, 0) scale(1);
  }
  #evPanel .panel-body {
    padding: 14px 20px;
  }
}

@media (min-width: 1280px) {
  #evPanel {
    width: min(1480px, calc(100vw - var(--sidebar-w, 210px) - 24px));
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
  }
}

@media (min-width: 1536px) {
  #evPanel {
    width: min(1680px, calc(100vw - var(--sidebar-w, 210px) - 20px));
  }
}

@media (max-width: 767px) {
  #evPanel {
    width: calc(100vw - 10px);
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 12px;
  }
}

/* Keep footer actions (Start / Edit / Delete) visible — body scrolls inside fixed panel height */
#evPanel .panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#evPanel .panel-actions {
  flex-shrink: 0;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.pb-reconcile { margin: 8px 0 0; }
.pb-reconcile--ok { color: var(--ok, #2e7d32); }
