/* Focused readability fixes for the overview recording card and server selector cards. */
.coverage-summary {
  margin: 20px 17px 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  border: 1px solid rgba(113, 133, 255, .18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(113, 133, 255, .1), rgba(46, 213, 173, .045));
}

.coverage-icon {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #91a3ff;
  background: rgba(113, 133, 255, .14);
}

.coverage-icon .ui-icon { width: 21px; height: 21px; }
.coverage-copy { min-width: 0; display: grid; gap: 3px; }
.coverage-copy strong { color: #f0f4ff; font-size: 13px; line-height: 1.3; }
.coverage-copy span { color: var(--cv-muted, #98a4bf); font-size: 11px; line-height: 1.45; }
.coverage-count { color: #aebaff; font-size: 14px; }
.coverage-track {
  grid-column: 2 / 4;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}
.coverage-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7185ff, #4bdcb1); }

.protection-card .coverage-list { margin-top: 0; }
.protection-card .coverage-list li { min-height: 38px; align-items: center; gap: 20px; }
.protection-card .coverage-list li span { line-height: 1.35; }
.protection-card .coverage-list li strong { flex: none; white-space: nowrap; }

.guild-card { padding: 25px !important; }
.guild-card-top { align-items: flex-start !important; gap: 16px !important; }
.guild-title-row { flex-wrap: wrap; row-gap: 7px !important; }
.guild-identity p { margin-top: 8px !important; line-height: 1.45; }

.guild-health {
  margin-top: 26px !important;
  padding: 15px 16px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px !important;
}

.connection-state { min-width: 0; display: flex !important; align-items: center; gap: 10px !important; }
.connection-state > span { min-width: 0; display: grid !important; gap: 3px; }
.connection-state small, .event-total small { color: #77aa96; font-size: 9px; line-height: 1.25; text-transform: uppercase; letter-spacing: .07em; }
.connection-state strong { overflow: hidden; color: #b9ecd6 !important; font-size: 11px !important; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.event-total { min-width: 72px; padding-left: 16px; display: grid; align-content: center; justify-items: end; gap: 3px; border-left: 1px solid rgba(80, 214, 160, .14); }
.event-total strong { color: #ecfff6 !important; font-size: 17px !important; line-height: 1; }
.event-total small { white-space: nowrap; text-transform: none; letter-spacing: 0; }

.guild-details {
  margin: 18px 3px 0 !important;
  padding: 0 2px 17px;
  align-items: center;
  gap: 18px;
}
.guild-details span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.guild-details strong { overflow-wrap: anywhere; color: #c8d0e4 !important; font-size: 11px; text-align: right; }

.guild-card-actions {
  padding-top: 18px !important;
  min-height: 43px;
}
.added-state { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.open-vault { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; font-weight: 700; white-space: nowrap; }

.fixed-setting {
  min-height: 54px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(113, 133, 255, .2);
  border-radius: 11px;
  background: rgba(113, 133, 255, .07);
}
.fixed-setting strong { color: #f0f4ff; font-size: 16px; }
.fixed-setting span { color: #91a3ff; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }

.retention-anchor-note { margin-bottom: 16px; padding: 16px 18px; border-color: rgba(113, 133, 255, .22); background: rgba(113, 133, 255, .06); }
.retention-anchor-note strong { color: #c9d2ff; }
.retention-anchor-note p { margin: 5px 0 0; color: var(--cv-muted, #98a4bf); font-size: 12px; line-height: 1.55; }

@media (max-width: 420px) {
  .coverage-summary { grid-template-columns: 38px minmax(0, 1fr); }
  .coverage-icon { width: 38px; height: 38px; }
  .coverage-count { grid-column: 2; justify-self: start; margin-top: 5px; }
  .coverage-track { grid-column: 1 / -1; }
  .guild-health { grid-template-columns: 1fr !important; }
  .event-total { padding: 12px 0 0; justify-items: start; border-left: 0; border-top: 1px solid rgba(80, 214, 160, .14); }
}
