/* FuseGuard console + Connect wizard — polished surfaces */

.ent-kpi-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .ent-kpi-row--3 {
    grid-template-columns: 1fr;
  }
}

/* —— FuseGuard —— */

.fuse-console {
  gap: 1.25rem;
}

.fuse-console-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52rem;
}

.fuse-kpi-row .ent-kpi {
  min-height: 5rem;
}

.fuse-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.fuse-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fuse-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.fuse-tab.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.18);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.fuse-tab-panel {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.fuse-activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fuse-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 14rem);
}

.fuse-filter-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fuse-filter-select {
  min-height: 2.25rem;
  font-size: 0.85rem;
}

.fuse-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fuse-activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.86rem;
  line-height: 1.45;
}

.fuse-activity-row strong {
  color: var(--breaking);
  font-weight: 600;
}

.fuse-activity-row .meta {
  grid-column: 1 / -1;
  font-size: 0.75rem;
}

.fuse-activity-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}

.fuse-fleet-table {
  width: 100%;
  font-size: 0.85rem;
}

.fuse-fleet-table th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.5rem;
}

.fuse-fleet-row.selected {
  background: rgba(99, 102, 241, 0.1);
}

.fuse-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 800px) {
  .fuse-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.fuse-metrics-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Connect wizard —— */

.connect-wizard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 960px;
}

.connect-wizard-hero {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.connect-wizard-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.connect-wizard-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
}

.connect-client-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.connect-client-group-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.connect-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
}

.connect-client-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.9rem 0.95rem;
  min-height: 7.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.connect-client-tile:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.04));
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.connect-client-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.connect-client-tile .catalog-brand {
  flex-shrink: 0;
}

.connect-client-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.connect-client-desc {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: auto;
}

.connect-wizard h2 {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.connect-verify-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.connect-verify-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.connect-verify-item.is-ok {
  color: var(--ok, #34d399);
  background: rgba(52, 211, 153, 0.08);
}

.connect-verify-icon {
  width: 1.25rem;
  text-align: center;
  font-weight: 700;
}
