/* ── System Details — stat card grid ────────────────────────────────────── */

.system-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.system-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  transition: background 0.18s, border-color 0.18s;
}

html.dark .system-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.system-stat-card:hover {
  background: rgba(0, 0, 0, 0.055);
  border-color: rgba(99, 145, 210, 0.35);
}

html.dark .system-stat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 145, 210, 0.35);
}

.system-stat-icon {
  font-size: 1.3em !important;
  margin-top: 0.1em;
  color: var(--tcm-blue-color);
  opacity: 0.75;
  flex-shrink: 0;
}

.system-stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.system-stat-label {
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

html.dark .system-stat-label {
  color: rgba(255, 255, 255, 0.38);
}

.system-stat-value {
  font-size: 0.97em;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
  word-break: break-all;
}

html.dark .system-stat-value {
  color: rgba(255, 255, 255, 0.87);
}

.system-stat-value a {
  color: var(--tcm-blue-color);
  text-decoration: none;
}

.system-stat-value a:hover {
  text-decoration: underline;
}

.system-stat-value i.icon {
  cursor: pointer;
  opacity: 0.45;
  font-size: 0.85em;
  transition: opacity 0.15s;
}

.system-stat-value i.icon:hover {
  opacity: 1;
}

/* ── Links — card grid ───────────────────────────────────────────────────── */

.system-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.system-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  color: inherit;
}

html.dark .system-link-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.system-link-card:hover {
  background: rgba(99, 145, 210, 0.08);
  border-color: rgba(99, 145, 210, 0.4);
  transform: translateY(-2px);
  color: inherit;
}

.system-link-icon {
  font-size: 1.8em !important;
  color: var(--tcm-blue-color);
  opacity: 0.8;
  margin: 0 !important;
}

.system-link-label {
  font-size: 0.95em;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.78);
}

html.dark .system-link-label {
  color: rgba(255, 255, 255, 0.85);
}

.system-link-url {
  font-size: 0.75em;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: rgba(0, 0, 0, 0.38);
  word-break: break-all;
}

html.dark .system-link-url {
  color: rgba(255, 255, 255, 0.32);
}

/* ── Backup button in panel header ───────────────────────────────────────── */

.system-backup-btn {
  margin-left: auto;
  padding: 0.3rem 0.85rem;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--tcm-blue-color);
  background: rgba(99, 145, 210, 0.1);
  border: 1px solid rgba(99, 145, 210, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.system-backup-btn:hover {
  background: rgba(99, 145, 210, 0.2);
  border-color: rgba(99, 145, 210, 0.55);
}

/* ── Backups table ───────────────────────────────────────────────────────── */

#system-backups {
  width: 100%;
}

.system.info .label:not(.inverted) {
  background-color: color-mix(in srgb, #2185d0, transparent) !important;
}
.system.info .inverted.label {
  background-color: color-mix(in srgb, #54c8ff, transparent) !important;
}
