.lfg-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.lfg-overview-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(227,27,43,.025));
}

.lfg-overview-card span,
.lfg-overview-card small {
  color: var(--muted, #9ca0ae);
}

.lfg-overview-card strong {
  align-self: center;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1;
}

.lfg-subheader {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
}

.lfg-slot-editor {
  display: grid;
  gap: 10px;
}

.lfg-slot-row {
  display: grid;
  grid-template-columns: minmax(100px, .6fr) minmax(220px, 2fr) minmax(110px, .65fr) 42px;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}

.lfg-slot-row .field {
  margin: 0;
}

.lfg-slot-row .lfg-remove-slot {
  width: 42px;
  height: 42px;
  margin-bottom: 1px;
  font-size: 1.35rem;
}

.field-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.field-with-unit input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.field-with-unit > span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--muted, #a5a8b3);
  background: rgba(255,255,255,.025);
  font-size: .82rem;
}

.lfg-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.lfg-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #dfe2ea;
  background: rgba(255,255,255,.025);
  font-size: .78rem;
}

.lfg-role-summary {
  margin: 12px 0 0;
  color: var(--muted, #a7aab6);
  font-size: .85rem;
}

.lfg-editor-details {
  margin-top: 14px;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
}

.lfg-editor-details > summary {
  cursor: pointer;
  padding: 14px 0 4px;
  color: #dfe2ea;
  font-weight: 700;
  list-style: none;
}

.lfg-editor-details > summary::-webkit-details-marker {
  display: none;
}

.lfg-editor-details > summary::after {
  content: '＋';
  float: right;
  color: var(--accent, #e31b2b);
}

.lfg-editor-details[open] > summary::after {
  content: '−';
}

.lfg-editor-details > form {
  padding-top: 14px;
}

.lfg-event-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.lfg-event-stats span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  color: var(--muted, #a4a7b2);
  background: rgba(255,255,255,.018);
  font-size: .76rem;
}

.lfg-event-stats strong {
  color: #f1f3f7;
  font-size: 1rem;
}

.lfg-template-card,
.lfg-event-card {
  overflow: visible;
}

select[multiple] {
  min-height: 128px;
  padding: 8px;
}

select[multiple] option {
  padding: 7px 8px;
  border-radius: 7px;
}

select[multiple] option:checked {
  background: rgba(227,27,43,.28) linear-gradient(0deg, rgba(227,27,43,.28), rgba(227,27,43,.28));
}

@media (max-width: 1180px) {
  .lfg-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lfg-event-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .lfg-overview-grid,
  .lfg-event-stats {
    grid-template-columns: 1fr;
  }

  .lfg-slot-row {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
  }

  .lfg-slot-row .lfg-remove-slot {
    grid-column: 1 / -1;
    width: 100%;
  }
}
