:root {
  --bg: #01040f;
  --bg-2: #050b1d;
  --surface: rgba(8, 12, 28, 0.85);
  --surface-soft: rgba(18, 25, 50, 0.85);
  --surface-strong: rgba(11, 16, 35, 0.95);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(59, 130, 246, 0.4);
  --text: #f8fafc;
  --text-muted: #a5b4fc;
  --accent: #38bdf8;
  --accent-strong: #6366f1;
  --accent-secondary: #34d399;
  --accent-soft: rgba(59, 130, 246, 0.15);
  font-family: "Inter", "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 45%),
    linear-gradient(180deg, #040617 0%, #01030d 100%);
  color: var(--text);
}

body::selection {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}

.ambient-orb {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.2) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.primary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 1.5rem;
  justify-content: stretch;
}

.primary-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.primary-column--left {
  min-width: 0;
}

.primary-column--right {
  min-width: 0;
}

.page-header {
  display: block;
  background: linear-gradient(135deg, rgba(3, 6, 18, 0.9), rgba(10, 15, 40, 0.9));
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.22), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
  transform: translateY(-5%);
  z-index: 0;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.page-header__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
}

.page-header__top-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.page-switch {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(4, 10, 24, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.7rem;
  color: var(--text);
  transition: border 0.2s ease, transform 0.2s ease;
}

.page-switch:hover,
.page-switch:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}


.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.hero-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-meta-row .hero-chips {
  margin: 0;
}

.hero-meta-row .page-header__timestamp {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 0.85rem;
  color: #e0e7ff;
}

.hero-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.hero-callout {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 90px;
}

.hero-callout__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3rem;
  color: var(--text-muted);
}

.hero-callout__value {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-callout__detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-sync {
  margin: 0;
  font-size: 0.9rem;
  color: #a7f3d0;
  letter-spacing: 0.08rem;
}
.hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.hero-summary__chip {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.75);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-summary__label {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hero-summary__value {
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-summary__meta {
  font-size: 0.75rem;
  color: #dbeafe;
}


.timestamp {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}


section {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px rgba(3, 5, 15, 0.8);
  backdrop-filter: blur(12px);
  animation: surfaceFade 0.6s ease both;
}

.system-updates .updates-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.updates-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}

.updates-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.updates-filter-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 6, 23, 0.7);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: #cbd5f5;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.updates-filter-chip:hover,
.updates-filter-chip:focus-visible {
  border-color: rgba(59, 130, 246, 0.7);
}

.updates-filter-chip--active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(56, 189, 248, 0.35));
  border-color: rgba(59, 130, 246, 0.8);
  color: #fff;
}

.category-panels {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.category-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.category-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.category-panel__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-panel__header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-panel__count {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.category-panel__toggle {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.category-panel__toggle span {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.category-panel__toggle.is-open span {
  transform: rotate(180deg);
}

.category-panel__toggle-label {
  font-size: 0.7rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.category-panel__body {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.category-panel__body.is-empty {
  padding: 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.category-panel__body.collapsed {
  display: none;
}


.update-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.35);
}

.update-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.update-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.update-card__time {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.update-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.update-card--alert {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 15px 22px rgba(248, 113, 113, 0.25);
}

.update-card--success {
  border-color: rgba(52, 211, 153, 0.55);
}

.update-card--info {
  border-color: rgba(59, 130, 246, 0.25);
}

.updates-placeholder {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.orchestrator .card {
  padding: 1.25rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 20, 37, 0.85), rgba(3, 6, 19, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.2);
  animation: float 0.6s ease 0.1s both;
}

.orchestrator .status {
  margin: 0;
  font-weight: 600;
}

.orchestrator-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.orchestrator-actions button {
  border: none;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(12, 74, 110, 0.55);
  transition: transform 0.2s ease;
}

.orchestrator-actions button:hover {
  transform: translateY(-1px) scale(1.01);
}

.agent-status__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.status-card {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(5, 9, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 20px 30px rgba(2, 6, 18, 0.45);
}

.status-card--alert {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 18px 32px rgba(244, 63, 94, 0.2);
}

.status-card--online {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 18px 32px rgba(52, 211, 153, 0.2);
}

.status-card--online .status-card__value {
  color: #34d399;
}

.status-card__label {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.status-card__value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.agent-status__details {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.offline-panel {
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 1.05rem;
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 15px 30px rgba(3, 5, 15, 0.4);
}

.offline-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.offline-panel__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.offline-panel__hint {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.28rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.offline-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.offline-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.65);
  font-size: 0.85rem;
  color: #cbd5f5;
}

.offline-list-item__name {
  font-weight: 600;
  color: #fff;
}

.offline-list-item__timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}

.agent-onboarding__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.agent-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-field label {
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.75rem;
}

.form-field input,
.form-field textarea {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-size: 0.95rem;
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-actions button {
  border: none;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.agent-form-status {
  margin: 0;
  font-size: 0.85rem;
  color: #34d399;
}

.agent-form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.onboarding-story {
  background: rgba(2, 6, 23, 0.7);
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.onboarding-story h3 {
  margin: 0;
  font-size: 1.3rem;
}

.onboarding-story-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.onboarding-story-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.onboarding-guidance {
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.75);
  color: #dbeafe;
  font-size: 0.85rem;
  line-height: 1.6;
}

.onboarding-guidance p {
  margin: 0;
}

.story-card {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.story-card__host {
  font-size: 0.85rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.story-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.story-card__summary {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.story-card__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

.story-card ul {
  margin: 0;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.story-card li::marker {
  color: var(--accent);
}

.agents {
  margin-top: 0.5rem;
}

.agents .agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch;
}

.agent-card {
  padding: 1.4rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 30px rgba(3, 5, 15, 0.6);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: float 0.6s ease both;
}

.agent-card--placeholder {
  opacity: 0.6;
  border-style: dashed;
}

.agent-card--clickable {
  cursor: pointer;
}

.agent-card--clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.agent-card--active {
  border-color: rgba(52, 211, 153, 0.9);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.4), 0 30px 45px rgba(2, 6, 23, 0.45);
}

.agent-card--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.agent-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.agent-role {
  margin: 0.1rem 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.agent-card-description {
  margin: 0.45rem 0 0;
  color: #cbd5f5;
  font-size: 0.9rem;
  min-height: 42px;
}

.agent-card-status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.agent-card-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.agent-card-tag {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.15);
  color: #dbeafe;
}

.flow-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.command-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.command-form input {
  flex: 1;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  font-size: 1rem;
}

.command-form input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.6);
}

.command-form button {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  font-weight: 600;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
}

.log {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(2, 6, 23, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px dashed rgba(255, 255, 255, 0.3);
  min-height: 130px;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
}

.log-item {
  margin: 0;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  color: #cfd9ff;
}


.corillo-chat__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 1rem;
}

.corillo-chat__feed {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.8);
  padding: 1.25rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
}

.corillo-chat__members {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.corillo-chat__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.corillo-chat__summary p {
  margin: 0;
  font-size: 0.85rem;
}

.corillo-chat__summary strong {
  color: #fff;
  font-size: 1rem;
}

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

.corillo-members-list li {
  font-size: 0.9rem;
  color: #cbd5f5;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.65);
}

.corillo-member-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.chat-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.chat-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-toolbar__control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 150px;
}

.chat-toolbar__control--grow {
  flex: 1;
  min-width: 220px;
}

.chat-toolbar__label {
  font-size: 0.65rem;
  letter-spacing: 0.28rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chat-toolbar__control select,
.chat-toolbar__control input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1rem;
  min-height: 44px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-size: 0.9rem;
}

.chat-toolbar__control select:focus,
.chat-toolbar__control input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 2px;
}

.chat-toolbar button {
  border: none;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  min-width: 160px;
  align-self: flex-end;
  box-shadow: 0 10px 30px rgba(2, 6, 18, 0.4);
}

.chat-feed {
  min-height: 280px;
  max-height: 420px;
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
}

.chat-feed,
.corillo-chat__feed {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.45) transparent;
}

.chat-feed::-webkit-scrollbar,
.corillo-chat__feed::-webkit-scrollbar {
  width: 8px;
}

.chat-feed::-webkit-scrollbar-track,
.corillo-chat__feed::-webkit-scrollbar-track {
  background: transparent;
}

.chat-feed::-webkit-scrollbar-thumb,
.corillo-chat__feed::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.chat-entry {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  animation: float 0.5s ease both;
}

.chat-entry.corillo-entry {
  border-color: rgba(16, 185, 129, 0.25);
}

.chat-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.chat-entry-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.chat-entry-agent {
  font-weight: 600;
  color: #fff;
}

.chat-entry-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-entry-room {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.chat-entry-event {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.chat-entry-detail {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #cbd5f5;
  line-height: 1.4;
}

.chat-entry-text {
  margin: 0.2rem 0 0;
  color: #e0e7ff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-placeholder,
.chat-error {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.chat-aside {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  max-height: 340px;
  overflow-y: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.chat-aside h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.chat-room-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-room-item {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-room-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.chat-room-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.dashboard-shell.is-locked {
  filter: blur(4px) saturate(0.85);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}

.password-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(5, 6, 23, 0.95)),
    rgba(5, 8, 22, 0.95);
  padding: 2rem 1rem;
  z-index: 1000;
}

.password-overlay[hidden] {
  display: none !important;
}

.password-panel {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  width: min(480px, 100%);
  text-align: center;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55);
}

.password-panel__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.8rem;
}

.password-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.password-panel p {
  margin: 0 0 1rem;
  color: #cbd5f5;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.password-input-label {
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.password-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.password-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #f87171;
  margin: 0;
}

.password-submit {
  border: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
}

.global-toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.7);
  background: rgba(2, 6, 23, 0.95);
  color: #ecfeff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1100;
}

.global-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes surfaceFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-health {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .hero-health {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 2fr);
    align-items: start;
  }
}
.health-score-card {
  background: rgba(2, 6, 23, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.65);
}
.health-score-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.health-score-card__label {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.77rem;
  color: var(--text-muted);
}
.health-score-card__status {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25rem;
  color: #f97316;
}
.health-score-card__value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fff;
}
.health-score-card__summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.health-summary-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.health-summary-list__item {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.health-score-card__meta {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.health-score-card--ok {
  border-color: rgba(34, 197, 94, 0.4);
}
.health-score-card--warn {
  border-color: rgba(251, 146, 60, 0.4);
}
.health-score-card--critical {
  border-color: rgba(248, 113, 113, 0.5);
}
.health-alerts-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.alert-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  gap: 0.6rem;
}
.alert-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.alert-card__badge {
  padding: 0.1rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
}
.alert-card--stale .alert-card__badge {
  border-color: rgba(34, 197, 94, 0.6);
  color: #86efac;
}
.alert-card--blocked .alert-card__badge {
  border-color: rgba(251, 146, 60, 0.6);
  color: #fcd34d;
}
.alert-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.alert-card__entry {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.alert-card__entry-title {
  margin: 0;
  font-weight: 600;
  color: #fff;
}
.alert-card__entry-detail {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.alert-card__entry-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.alert-card__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.alert-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.incident-timeline {
  background: rgba(2, 6, 23, 0.8);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}
.incident-timeline__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 320px;
  overflow-y: auto;
}
.incident-timeline__item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.incident-timeline__item--alert {
  border-color: rgba(248, 113, 113, 0.6);
}
.incident-timeline__item--warn {
  border-color: rgba(251, 146, 60, 0.6);
}
.incident-timeline__item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.incident-timeline__badge {
  font-size: 0.65rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}
.incident-timeline__item--alert .incident-timeline__badge {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
}
.incident-timeline__item--warn .incident-timeline__badge {
  background: rgba(251, 146, 60, 0.2);
  color: #fde047;
}
.incident-timeline__time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.incident-timeline__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.incident-timeline__detail {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.incident-timeline__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.incident-timeline__placeholder {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
@media (max-width: 980px) {
  .hero-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-callouts {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .hero-hint {
    font-size: 0.85rem;
  }

  .primary-layout {
    grid-template-columns: 1fr;
  }

  .corillo-chat__layout {
    grid-template-columns: 1fr;
  }

  .chat-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .command-form {
    flex-direction: column;
  }

  .command-form button {
    width: 100%;
  }

  .agent-form {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 1.25rem;
  }

  .agent-onboarding__layout {
    grid-template-columns: 1fr;
  }
}
