:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: rgba(17, 24, 39, 0.85);
  --border-color: rgba(55, 65, 81, 0.6);
  --border-focus: #3b82f6;

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;

  --status-online: #10b981;
  --status-degraded: #f59e0b;
  --status-offline: #ef4444;
  --status-pending: #6b7280;
  --status-maintenance: #8b5cf6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-nav {
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 100vh;
}

/* Header */
.top-header {
  height: 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--status-online);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Content Area */
.content-body {
  padding: 2rem;
  flex: 1;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Cards & Panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background: rgba(31, 41, 55, 0.5);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(31, 41, 55, 0.4);
}

/* Badges & Status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-online { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-degraded { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-offline { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-pending { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

.badge-prod { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-stg { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-dev { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

.badge-sha {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
}

/* Component Dots */
.component-health-matrix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.comp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: relative;
  cursor: help;
}

.comp-dot.ONLINE { background: var(--status-online); box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.comp-dot.DEGRADED { background: var(--status-degraded); box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.comp-dot.OFFLINE { background: var(--status-offline); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.comp-dot.UNKNOWN { background: var(--status-pending); }

/* Forms & Inputs */
.input, .select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.55rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.input:focus, .select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}
.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: #374151;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: rgba(10, 14, 23, 0.5);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Code Snippet Box */
.code-box {
  background: #050811;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  word-break: break-all;
}

/* Timeline */
.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
  align-items: center;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-seq {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  min-width: 50px;
}

.timeline-time {
  font-size: 0.775rem;
  color: var(--text-muted);
  min-width: 140px;
}

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.2s ease forwards;
}

.toast-success { border-left: 4px solid var(--status-online); }
.toast-error { border-left: 4px solid var(--status-offline); }
.toast-info { border-left: 4px solid var(--accent-blue); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Control Plane refresh — 2026-09-07
   The operator should see the next useful action before any implementation
   detail. These primitives are shared by fleet, instance, release, alert and
   audit views so new screens do not need inline styling.
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #f4f7fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef2f7;
  --bg-card: #ffffff;
  --border-color: #e1e7ef;
  --border-focus: #2563eb;
  --text-primary: #142033;
  --text-secondary: #637083;
  --text-muted: #8a96a6;
  --accent-blue: #2563eb;
  --accent-cyan: #0f766e;
  --accent-purple: #7c3aed;
  --status-online: #059669;
  --status-degraded: #d97706;
  --status-offline: #dc2626;
  --status-pending: #64748b;
  --status-maintenance: #7c3aed;
  --shadow-card: 0 8px 24px rgba(20, 32, 51, 0.06);
  --shadow-popover: 0 18px 48px rgba(20, 32, 51, 0.16);
}

html { background: var(--bg-primary); }
body {
  background: var(--bg-primary);
  background-image: radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.055), transparent 28rem);
  color: var(--text-primary);
}

.app-container { min-height: 100vh; }
.sidebar {
  width: 248px;
  background: #111a2a;
  border-right: 0;
  box-shadow: 8px 0 28px rgba(20, 32, 51, 0.06);
  position: relative;
  z-index: 20;
}
.sidebar-header {
  min-height: 80px;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #60a5fa, #14b8a6);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 5px 18px rgba(20, 184, 166, 0.22);
}
.logo-badge { display: none; }
.logo-title { color: #f8fafc; font-size: 0.98rem; letter-spacing: 0.01em; line-height: 1.1; }
.brand-subtitle { color: #8291a8; font-size: 0.68rem; margin-top: 0.22rem; }
.sidebar-nav { padding: 1.35rem 0.8rem; gap: 0.25rem; }
.nav-section-label {
  color: #718099;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0 0.75rem 0.5rem;
}
.nav-section-label-spaced { margin-top: 1.55rem; }
.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0.62rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #aab7c9;
  font-size: 0.84rem;
  gap: 0.65rem;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #f8fafc; }
.nav-item.active { background: #1f65d6; border-color: rgba(147, 197, 253, 0.16); color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25); }
.nav-icon { width: 20px; color: currentColor; font-size: 1.05rem; text-align: center; }
.nav-item-arrow { margin-left: auto; color: rgba(255, 255, 255, 0.38); font-size: 1.2rem; line-height: 1; }
.nav-count { margin-left: auto; min-width: 20px; padding: 0.12rem 0.38rem; border-radius: 999px; background: #ef4444; color: #fff; text-align: center; font-size: 0.68rem; font-weight: 800; }
.nav-count + .nav-item-arrow { margin-left: 0.1rem; }
.sidebar-footer { padding: 1rem 1.05rem; border-top: 1px solid rgba(255, 255, 255, 0.08); justify-content: flex-start; gap: 0.6rem; }
.sidebar-footer .btn-secondary { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); color: #e5edf7; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #24446f; color: #bfdbfe; font-size: 0.75rem; font-weight: 800; flex: 0 0 auto; }
.user-profile { min-width: 0; flex: 1; }
.user-name { display: block; overflow: hidden; color: #f8fafc; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.user-role { display: block; color: #8291a8; font-size: 0.63rem; letter-spacing: 0.06em; text-transform: uppercase; }
.logout-link { color: #8da1bc; font-size: 0.7rem; text-decoration: none; }
.logout-link:hover { color: #fff; }

.main-content { background: var(--bg-primary); color: var(--text-primary); }
.top-header {
  height: 76px;
  padding: 0 2.2rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 0 rgba(20, 32, 51, 0.02);
  backdrop-filter: blur(12px);
}
.header-title-group { gap: 0.75rem; }
.header-context-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dbe5f2; border-radius: 10px; background: #eff6ff; color: var(--accent-blue); font-size: 1.1rem; }
.header-title { color: var(--text-primary); font-size: 0.94rem; line-height: 1.1; }
.header-subtitle { color: var(--text-muted); font-size: 0.68rem; margin-top: 0.25rem; }
.live-indicator { padding: 0.28rem 0.58rem; background: #ecfdf5; border-color: #bbf7d0; color: #047857; font-size: 0.66rem; }
.live-indicator .pulse-dot { width: 6px; height: 6px; box-shadow: 0 0 6px currentColor; }
.header-last-sync { color: var(--text-muted); font-size: 0.68rem; }
.content-body { width: 100%; max-width: 1640px; margin: 0 auto; padding: 2rem 2.2rem 3rem; }

.page-heading, .instance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.page-title { color: var(--text-primary); font-size: clamp(1.45rem, 2vw, 1.85rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.page-description { max-width: 680px; margin-top: 0.45rem; color: var(--text-secondary); font-size: 0.84rem; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.55rem; }
.eyebrow, .section-kicker { color: var(--accent-blue); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; line-height: 1.3; text-transform: uppercase; }
.section-kicker { color: var(--text-muted); }
.card-subtitle { margin-top: 0.28rem; color: var(--text-secondary); font-size: 0.75rem; line-height: 1.45; }
.muted-label { display: block; color: var(--text-muted); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.35; text-transform: uppercase; }
.separator { color: #b1bccb; margin: 0 0.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 1.2rem; }
.metric-card { min-height: 124px; padding: 1.05rem 1.15rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 13px; box-shadow: var(--shadow-card); }
.metric-card-top { display: flex; align-items: center; gap: 0.5rem; }
.metric-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.9rem; font-weight: 800; }
.metric-card-success .metric-icon { background: #ecfdf5; color: var(--status-online); }
.metric-card-warning .metric-icon { background: #fffbeb; color: var(--status-degraded); }
.metric-card-danger .metric-icon { background: #fef2f2; color: var(--status-offline); }
.metric-card-info .metric-icon { background: #eff6ff; color: var(--accent-blue); }
.metric-label { color: var(--text-secondary); font-size: 0.7rem; font-weight: 700; }
.metric-value { display: block; margin-top: 0.65rem; color: var(--text-primary); font-family: var(--font-mono); font-size: 1.55rem; letter-spacing: -0.04em; }
.metric-subtext { display: block; margin-top: 0.25rem; color: var(--text-muted); font-size: 0.68rem; }

.card { margin-bottom: 1.2rem; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--shadow-card); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.card-header-compact { padding-bottom: 0.95rem; }
.card-title { color: var(--text-primary); font-size: 0.96rem; font-weight: 800; letter-spacing: -0.015em; }
.summary-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #eff6ff; color: var(--accent-blue); font-weight: 800; }
.summary-icon-muted { background: var(--bg-tertiary); color: var(--text-secondary); }
.fleet-summary-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); gap: 0.9rem; }
.fleet-summary-grid .card { min-height: 214px; }
.release-summary-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; }
.release-version { display: block; margin-top: 0.25rem; color: var(--text-primary); font-family: var(--font-mono); font-size: 1.7rem; letter-spacing: -0.06em; }
.release-meta { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.7rem; }
.release-count-highlight { min-width: 110px; padding: 0.65rem 0.75rem; border: 1px solid #dbeafe; border-radius: 10px; background: #f8fbff; text-align: right; }
.release-count-highlight strong { display: block; color: var(--accent-blue); font-family: var(--font-mono); font-size: 1.35rem; }
.release-count-highlight span { color: var(--text-muted); font-size: 0.65rem; }
.release-status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0 1.25rem 1.1rem; }
.release-status-item { display: flex; align-items: center; gap: 0.38rem; color: var(--text-secondary); font-size: 0.68rem; }
.release-status-item strong { margin-left: auto; color: var(--text-primary); font-family: var(--font-mono); }
.quick-steps { display: grid; gap: 0.1rem; padding: 0.6rem 1.25rem 1.1rem; list-style: none; }
.quick-steps li { display: flex; align-items: center; gap: 0.65rem; padding: 0.4rem 0; }
.quick-steps li > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #eff6ff; color: var(--accent-blue); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 800; }
.quick-steps strong, .quick-steps small { display: block; }
.quick-steps strong { color: var(--text-primary); font-size: 0.72rem; }
.quick-steps small { margin-top: 0.1rem; color: var(--text-muted); font-size: 0.66rem; }

.fleet-card-header { align-items: flex-end; }
.table-toolbar, .release-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.55rem; }
.search-field { min-width: 245px; display: flex; align-items: center; gap: 0.45rem; padding: 0 0.7rem; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-secondary); color: var(--text-muted); }
.search-field:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.search-field .input { width: 100%; min-width: 0; padding: 0.55rem 0.1rem; border: 0; background: transparent; box-shadow: none; }
.filter-tabs { display: inline-flex; align-items: center; gap: 0.18rem; padding: 0.2rem; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-tertiary); }
.filter-tab { padding: 0.4rem 0.58rem; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); cursor: pointer; font: inherit; font-size: 0.67rem; font-weight: 700; white-space: nowrap; }
.filter-tab:hover { color: var(--text-primary); }
.filter-tab.is-active { background: var(--bg-secondary); color: var(--accent-blue); box-shadow: 0 1px 4px rgba(20, 32, 51, 0.1); }
.table-container { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.76rem; }
.table th { padding: 0.7rem 1.15rem; background: #f8fafc; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 0.85rem 1.15rem; border-bottom: 1px solid #edf1f5; color: var(--text-primary); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fbff; }
.table-row-clickable { cursor: pointer; }
.table-action-column { width: 1%; text-align: right; white-space: nowrap; }
.instance-name-cell { display: flex; align-items: center; gap: 0.6rem; min-width: 180px; }
.instance-name-cell > div { min-width: 0; }
.instance-name-cell strong, .instance-name-cell span { display: block; }
.instance-name-cell strong { overflow: hidden; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.instance-name-cell > div > span { margin-top: 0.18rem; overflow: hidden; color: var(--text-muted); font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.instance-status-mark { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.instance-status-mark.badge-online { background: var(--status-online); }
.instance-status-mark.badge-degraded { background: var(--status-degraded); }
.instance-status-mark.badge-offline { background: var(--status-offline); }
.version-cell strong, .version-cell span { display: block; }
.version-cell strong { font-family: var(--font-mono); font-size: 0.74rem; }
.version-cell span, .last-seen { color: var(--text-muted); font-size: 0.66rem; }
.table-warning-note { display: block; margin-top: 0.25rem; color: var(--status-degraded); font-size: 0.62rem; font-weight: 700; }
.component-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.component-pill { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.35rem; border-radius: 5px; background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.62rem; font-weight: 700; }
.component-pill-success { background: #ecfdf5; color: #047857; }
.component-pill-warning { background: #fffbeb; color: #b45309; }
.component-pill-danger { background: #fef2f2; color: #b91c1c; }
.component-pill-neutral { background: #f1f5f9; color: #64748b; }
.table-cell-muted { color: var(--text-muted); font-size: 0.68rem; }

.badge { padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.1; text-transform: none; white-space: nowrap; }
.badge-online { background: #ecfdf5; border: 1px solid #bbf7d0; color: #047857; }
.badge-degraded { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.badge-offline { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.badge-pending, .badge-secondary { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
.badge-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.badge-prod { background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9; }
.badge-stg { background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490; }
.badge-dev { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
.status-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.status-dot-success { background: var(--status-online); }
.status-dot-warning { background: var(--status-degraded); }
.status-dot-danger { background: var(--status-offline); }
.status-dot-info { background: var(--accent-blue); }
.status-dot-neutral { background: var(--status-pending); }

.btn { min-height: 34px; padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.74rem; font-weight: 750; box-shadow: none; }
.btn-icon { font-size: 1rem; line-height: 0.8; }
.btn-primary { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-secondary { background: #fff; border-color: #dbe2eb; color: #435268; }
.btn-secondary:hover { background: #f8fafc; border-color: #bdc9d8; color: var(--text-primary); }
.btn:disabled { cursor: not-allowed; opacity: 0.58; box-shadow: none; }
.btn-sm { min-height: 30px; padding: 0.38rem 0.58rem; font-size: 0.67rem; }

.breadcrumb-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.back-link { padding: 0; border: 0; background: transparent; color: var(--accent-blue); cursor: pointer; font: inherit; font-size: 0.72rem; font-weight: 750; }
.back-link:hover { color: #1d4ed8; }
.instance-heading { align-items: center; }
.instance-heading-main { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.instance-avatar, .customer-avatar { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: linear-gradient(145deg, #dbeafe, #ccfbf1); color: #1d4ed8; font-size: 1.05rem; font-weight: 850; }
.customer-avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 0.74rem; }
.instance-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.48rem; margin-top: 0.22rem; }
.instance-title-row .page-title { font-size: 1.35rem; }
.instance-subtitle { margin-top: 0.35rem; color: var(--text-secondary); font-size: 0.74rem; }
.instance-subtitle code, .identity-code { color: #49627d; font-family: var(--font-mono); font-size: 0.68rem; }

.update-hero { margin-bottom: 1.2rem; padding: 1.3rem 1.4rem; border: 1px solid #dbe5f2; border-radius: 15px; background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); box-shadow: var(--shadow-card); }
.update-hero-success { border-color: #ccebdc; background: linear-gradient(135deg, #fff 0%, #f4fcf8 100%); }
.update-hero-warning { border-color: #f4dfad; background: linear-gradient(135deg, #fff 0%, #fffaf0 100%); }
.update-hero-danger { border-color: #f2caca; background: linear-gradient(135deg, #fff 0%, #fff7f7 100%); }
.update-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.update-hero h3 { margin-top: 0.18rem; color: var(--text-primary); font-size: 1.18rem; letter-spacing: -0.025em; }
.update-hero p { max-width: 750px; margin-top: 0.3rem; color: var(--text-secondary); font-size: 0.75rem; }
.update-hero-status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.6rem; border: 1px solid var(--border-color); border-radius: 999px; background: rgba(255, 255, 255, 0.72); color: var(--text-secondary); font-size: 0.68rem; white-space: nowrap; }
.version-compare { display: grid; grid-template-columns: minmax(160px, 1fr) 30px minmax(160px, 1fr) auto; align-items: center; gap: 0.7rem; margin-top: 1.15rem; }
.version-block { min-height: 66px; padding: 0.7rem 0.8rem; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; }
.version-block strong, .version-block code { display: block; }
.version-block strong { margin-top: 0.22rem; color: var(--text-primary); font-family: var(--font-mono); font-size: 0.95rem; }
.version-block code { margin-top: 0.18rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; }
.version-block-target { border-color: #bfdbfe; background: #f8fbff; }
.version-arrow { color: var(--accent-blue); font-size: 1.15rem; font-weight: 800; text-align: center; }
.update-hero-action { display: flex; justify-content: flex-end; }
.rollout-progress { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid rgba(148, 163, 184, 0.23); }
.progress-label { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.66rem; font-weight: 750; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin-top: 0.55rem; }
.progress-step { position: relative; display: flex; align-items: center; gap: 0.35rem; color: var(--text-muted); font-size: 0.65rem; }
.progress-step span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #dbe2eb; border-radius: 50%; background: #fff; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.58rem; }
.progress-step.is-complete { color: var(--status-online); }
.progress-step.is-complete span { border-color: #a7f3d0; background: #ecfdf5; color: var(--status-online); }
.progress-step.is-current { color: var(--accent-blue); }
.progress-step.is-current span { border-color: #bfdbfe; background: #eff6ff; color: var(--accent-blue); }

.detail-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.2rem; }
.detail-metric { min-width: 0; padding: 0.9rem 1rem; border: 1px solid var(--border-color); border-radius: 11px; background: #fff; box-shadow: var(--shadow-card); }
.detail-metric strong { display: block; overflow: hidden; margin-top: 0.35rem; color: var(--text-primary); font-family: var(--font-mono); font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-metric small { display: block; overflow: hidden; margin-top: 0.25rem; color: var(--text-muted); font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-metric-success { border-top: 3px solid #34d399; }
.detail-metric-warning { border-top: 3px solid #fbbf24; }
.detail-metric-danger { border-top: 3px solid #f87171; }
.detail-metric-info { border-top: 3px solid #60a5fa; }
.detail-metric-neutral { border-top: 3px solid #cbd5e1; }

.rollout-detail-body { padding: 0 1.25rem 1.15rem; }
.rollout-detail-card .card-header { align-items: center; }
.rollout-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.rollout-facts > div { padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 9px; background: #fbfcfe; }
.rollout-facts strong, .rollout-facts small { display: block; }
.rollout-facts strong { margin-top: 0.3rem; color: var(--text-primary); font-size: 0.78rem; }
.rollout-facts small { margin-top: 0.18rem; color: var(--text-muted); font-size: 0.64rem; }
.inline-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; margin-top: 0.8rem; padding: 0.65rem 0.75rem; border-radius: 8px; font-size: 0.68rem; }
.inline-alert-danger { border: 1px solid #fecaca; background: #fff7f7; color: #991b1b; }
.inline-alert-danger span { color: #b45309; }

.release-catalog-header { align-items: center; }
.catalog-current { min-width: 100px; padding: 0.55rem 0.7rem; border: 1px solid #dbeafe; border-radius: 9px; background: #f8fbff; text-align: right; }
.catalog-current strong { display: block; margin-top: 0.2rem; color: var(--accent-blue); font-family: var(--font-mono); font-size: 0.85rem; }
.release-toolbar { justify-content: flex-start; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.release-search-field { flex: 1 1 260px; }
.catalog-result-count { margin-left: auto; color: var(--text-muted); font-size: 0.68rem; white-space: nowrap; }
.release-list { display: grid; gap: 0.55rem; padding: 0.85rem 1.25rem 1.15rem; }
.release-card { padding: 0.85rem 0.9rem; border: 1px solid var(--border-color); border-radius: 11px; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.release-card:hover { border-color: #bfdbfe; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08); transform: translateY(-1px); }
.release-card-current { border-color: #a7f3d0; background: #fbfffd; }
.release-card-main, .release-card-info { display: flex; align-items: center; gap: 1rem; }
.release-card-main { justify-content: space-between; }
.release-card-heading { display: flex; align-items: center; gap: 0.55rem; min-width: 175px; }
.release-card-marker { width: 9px; height: 9px; }
.release-version-line { display: flex; align-items: center; gap: 0.5rem; }
.release-version-line strong { color: var(--text-primary); font-family: var(--font-mono); font-size: 0.91rem; }
.current-label { padding: 0.15rem 0.35rem; border-radius: 4px; background: #ecfdf5; color: #047857; font-size: 0.58rem; font-weight: 800; }
.release-date { display: block; margin-top: 0.18rem; color: var(--text-muted); font-size: 0.63rem; }
.release-card-info { align-items: flex-start; margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid #edf1f5; }
.release-change-summary { flex: 1 1 40%; min-width: 180px; }
.release-change-summary strong { display: block; overflow: hidden; margin-top: 0.22rem; color: var(--text-primary); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.release-change-summary small { display: block; margin-top: 0.18rem; color: var(--text-muted); font-size: 0.63rem; }
.release-identity { min-width: 150px; }
.release-identity code, .release-identity small { display: block; }
.release-identity code { margin-top: 0.22rem; color: #49627d; font-family: var(--font-mono); font-size: 0.68rem; }
.release-identity small { margin-top: 0.18rem; color: var(--text-muted); font-size: 0.63rem; }
.release-card-action { margin-left: auto; }
.release-changes { margin-top: 0.65rem; padding-top: 0.55rem; border-top: 1px dashed #dbe2eb; }
.release-changes summary { display: flex; align-items: center; justify-content: space-between; color: var(--accent-blue); cursor: pointer; font-size: 0.65rem; font-weight: 750; list-style: none; }
.release-changes summary::-webkit-details-marker { display: none; }
.release-changes ul { display: grid; gap: 0.35rem; margin: 0.55rem 0 0; padding: 0; list-style: none; }
.release-changes li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.4rem 0.5rem; border-radius: 6px; background: #f8fafc; }
.release-changes li strong { color: var(--text-primary); font-size: 0.66rem; }
.release-changes li span { color: var(--text-muted); font-size: 0.6rem; text-align: right; }
.release-empty-state { margin: 0 1.25rem 1.15rem; }
.global-release-list { display: grid; gap: 0.55rem; padding: 0.85rem 1.25rem 1.15rem; }
.global-release-row { padding: 0.88rem 0.95rem; border: 1px solid var(--border-color); border-radius: 11px; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.global-release-row:hover { border-color: #bfdbfe; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.07); }
.global-release-main { display: grid; grid-template-columns: minmax(155px, 0.8fr) minmax(220px, 1.7fr) minmax(145px, 0.75fr) auto auto; align-items: center; gap: 1rem; }
.global-release-version, .global-release-version > div { display: flex; align-items: center; gap: 0.55rem; }
.global-release-version strong, .global-release-version small { display: block; }
.global-release-version strong { color: var(--text-primary); font-family: var(--font-mono); font-size: 0.9rem; }
.global-release-version small { margin-top: 0.16rem; color: var(--text-muted); font-size: 0.62rem; }
.global-release-change strong, .global-release-change small, .global-release-identity code, .global-release-identity small { display: block; }
.global-release-change strong { overflow: hidden; margin-top: 0.2rem; color: var(--text-primary); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.global-release-change small, .global-release-identity small { margin-top: 0.18rem; color: var(--text-muted); font-size: 0.62rem; }
.global-release-identity code { margin-top: 0.2rem; color: #49627d; font-family: var(--font-mono); font-size: 0.66rem; }
.global-release-toolbar { flex: 1; justify-content: flex-end; }

.credentials-card { margin-bottom: 1.2rem; }
.credentials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding: 0 1.25rem 1.15rem; }
.credential-list { margin: 0.55rem 0 0; padding: 0; list-style: none; }
.credential-item { padding: 0.55rem 0; border-bottom: 1px solid #edf1f5; }
.credential-item:last-child { border-bottom: 0; }
.credential-heading { display: flex; align-items: center; gap: 0.45rem; }
.credential-heading code { color: #49627d; font-family: var(--font-mono); font-size: 0.68rem; }
.credential-heading .badge { font-size: 0.58rem; }
.credential-meta, .credential-enrollment { margin-top: 0.25rem; color: var(--text-muted); font-size: 0.65rem; }
.credential-empty { color: var(--text-muted); font-size: 0.68rem; }
.collapsible-card { overflow: hidden; }
.card-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; cursor: pointer; list-style: none; }
.card-summary::-webkit-details-marker { display: none; }
.card-summary:hover { background: #fbfcfe; }
.summary-chevron { color: var(--text-muted); font-size: 1.15rem; transition: transform 0.15s ease; }
.collapsible-card[open] .summary-chevron { transform: rotate(180deg); }
.technical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; padding: 0 1.25rem 1.15rem; }
.technical-value { min-width: 0; padding: 0.7rem; border: 1px solid var(--border-color); border-radius: 8px; background: #fbfcfe; }
.technical-value strong, .technical-value code { display: block; overflow: hidden; margin-top: 0.25rem; color: var(--text-primary); font-family: var(--font-mono); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.technical-value code { color: #49627d; }
.governance-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; }
.governance-copy { min-width: 0; }
.governance-card .card-title { margin-top: 0.18rem; }
.jobs-table-container { border-top: 1px solid var(--border-color); }
.jobs-table td code { display: block; margin-top: 0.18rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.6rem; }

.empty-state, .loading-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.35rem; padding: 2rem 1rem; color: var(--text-muted); text-align: center; }
.empty-state strong, .loading-state p { color: var(--text-secondary); font-size: 0.78rem; }
.empty-state span:last-child { font-size: 0.68rem; }
.empty-state-icon { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 0.2rem; border-radius: 10px; background: var(--bg-tertiary); color: var(--accent-blue); font-size: 1rem; }
.empty-state-table { min-height: 150px; }
.loading-spinner { width: 22px; height: 22px; margin-bottom: 0.6rem; border: 2px solid #dbeafe; border-top-color: var(--accent-blue); border-radius: 50%; animation: cp-spin 0.8s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

.alert-list, .audit-list { padding: 0.45rem 1.25rem 1rem; }
.alert-row, .audit-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid #edf1f5; }
.alert-row:last-child, .audit-row:last-child { border-bottom: 0; }
.alert-severity { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 0.34rem; border-radius: 50%; background: var(--accent-blue); }
.alert-severity-critical, .alert-severity-high { background: var(--status-offline); }
.alert-severity-medium, .alert-severity-warning { background: var(--status-degraded); }
.alert-copy { min-width: 0; flex: 1; }
.alert-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.alert-title-row strong { color: var(--text-primary); font-family: var(--font-mono); font-size: 0.72rem; }
.alert-copy p { margin-top: 0.25rem; color: var(--text-secondary); font-size: 0.75rem; }
.alert-copy small { display: block; margin-top: 0.28rem; color: var(--text-muted); font-size: 0.63rem; }
.audit-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #ecfdf5; color: var(--status-online); font-size: 0.75rem; font-weight: 800; }
.audit-copy { min-width: 0; flex: 1; }
.audit-copy strong, .audit-copy span { display: block; }
.audit-copy strong { color: var(--text-primary); font-size: 0.74rem; }
.audit-copy span { margin-top: 0.18rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.63rem; }
.audit-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 0.25rem; }
.audit-meta small { color: var(--text-muted); font-size: 0.63rem; }

.input, .select, .form-input { background: #fff; border-color: #dbe2eb; color: var(--text-primary); border-radius: 8px; }
.input::placeholder { color: #a2adba; }
.input:focus, .select:focus, .form-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.modal-overlay { background: rgba(15, 23, 42, 0.58); backdrop-filter: blur(5px); }
.modal-card { background: #fff; border-color: #dbe2eb; border-radius: 14px; box-shadow: var(--shadow-popover); color: var(--text-primary); }
.modal-header { padding: 1.1rem 1.25rem; border-color: var(--border-color); }
.modal-title { font-size: 0.98rem; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 0.9rem 1.25rem; background: #f8fafc; border-color: var(--border-color); }
.modal-close { color: var(--text-muted); }
.code-box { background: #101827; border-color: #26364f; border-radius: 8px; }
#toast-container { right: 1.5rem; bottom: 1.5rem; }
.toast { background: #fff; border-color: #dbe2eb; color: var(--text-primary); box-shadow: var(--shadow-popover); }

@media (max-width: 1180px) {
  .content-body { padding-right: 1.35rem; padding-left: 1.35rem; }
  .fleet-summary-grid { grid-template-columns: 1fr; }
  .detail-metric-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-card-header, .release-catalog-header { align-items: flex-start; flex-direction: column; }
  .table-toolbar, .release-toolbar { width: 100%; justify-content: flex-start; }
  .global-release-main { grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.5fr) auto auto; }
  .global-release-identity { display: none; }
}
@media (max-width: 780px) {
  .app-container { display: block; }
  .sidebar { width: 100%; min-height: auto; }
  .sidebar-header { min-height: 64px; padding: 0.9rem 1rem; }
  .sidebar-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0.55rem; gap: 0.25rem; }
  .nav-section-label { display: none; }
  .nav-item { justify-content: center; min-height: 38px; padding: 0.4rem; }
  .nav-item > span:not(.nav-icon):not(.nav-count):not(.nav-item-arrow) { display: none; }
  .nav-item-arrow { display: none; }
  .nav-icon { font-size: 1rem; }
  .sidebar-footer { display: none; }
  .main-content { max-height: none; }
  .top-header { height: 64px; padding: 0 1rem; }
  .header-context-mark, .header-subtitle, .header-last-sync { display: none; }
  .content-body { padding: 1.25rem 1rem 2rem; }
  .page-heading, .instance-heading { flex-direction: column; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .page-actions .btn { flex: 1; }
  .metric-grid, .detail-metric-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .metric-card { min-height: 110px; padding: 0.8rem; }
  .metric-label { font-size: 0.63rem; }
  .metric-value { font-size: 1.3rem; }
  .release-summary-main { align-items: flex-start; flex-direction: column; }
  .release-count-highlight { width: 100%; text-align: left; }
  .release-status-row { grid-template-columns: 1fr; }
  .table-toolbar, .release-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; min-width: 0; }
  .filter-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .filter-tab { flex: 0 0 auto; }
  .version-compare { grid-template-columns: 1fr; }
  .version-arrow { transform: rotate(90deg); }
  .update-hero-action { justify-content: stretch; }
  .update-hero-action .btn { width: 100%; }
  .update-hero-top { flex-direction: column; }
  .release-card-info { align-items: stretch; flex-direction: column; gap: 0.7rem; }
  .release-card-action { margin-left: 0; }
  .release-card-action .btn { width: 100%; }
  .global-release-main { display: flex; align-items: flex-start; flex-direction: column; gap: 0.65rem; }
  .global-release-main > .badge, .global-release-main > .btn { align-self: stretch; text-align: center; }
  .global-release-change, .global-release-version, .global-release-identity { width: 100%; }
  .release-changes li { align-items: flex-start; flex-direction: column; gap: 0.18rem; }
  .release-changes li span { text-align: left; }
  .rollout-facts, .credentials-grid, .technical-grid { grid-template-columns: 1fr; }
  .governance-card { align-items: flex-start; flex-direction: column; }
  .governance-card .btn { width: 100%; }
}
