:root {
  --bg: #030812;
  --bg-soft: #091221;
  --bg-elevated: #0d1a2d;
  --panel: rgba(8, 16, 31, 0.88);
  --panel-soft: rgba(10, 21, 38, 0.92);
  --panel-border: rgba(90, 124, 173, 0.24);
  --panel-border-strong: rgba(83, 156, 255, 0.38);
  --text: #f1f6ff;
  --muted: #8fa5c6;
  --muted-strong: #b4c4df;
  --accent: #2f7dff;
  --accent-strong: #6ec1ff;
  --accent-violet: #9a4dff;
  --danger: #ff6b61;
  --warning: #f4b53f;
  --success: #30d17c;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.28);
  --radius-panel: 28px;
  --radius-soft: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI Variable", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 125, 255, 0.22), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(154, 77, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(110, 193, 255, 0.1), transparent 26%),
    linear-gradient(180deg, #02050b 0%, #040b15 18%, #09111f 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.62), transparent 88%);
  opacity: 0.35;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: clamp(260px, 19vw, 312px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(99, 133, 187, 0.16);
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.97), rgba(4, 10, 22, 0.9)),
    radial-gradient(circle at top left, rgba(47, 125, 255, 0.14), transparent 32%);
  backdrop-filter: blur(24px);
  padding: 26px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  isolation: isolate;
}

.sidebar-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    radial-gradient(circle at 30% 0%, rgba(47, 125, 255, 0.1), transparent 30%);
  z-index: -1;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.brand-mark {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(16, 34, 66, 0.9), rgba(7, 16, 30, 0.95));
  border: 1px solid rgba(110, 193, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-soft);
}

.brand-mark-ring {
  position: absolute;
  inset: 9px;
  border-radius: 18px;
  border: 1px solid rgba(47, 125, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(110, 193, 255, 0.08) inset;
}

.brand-mark-core {
  position: relative;
  z-index: 1;
  font-family: "Bahnschrift", "Segoe UI Variable", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #eff6ff;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand h1,
.panel-header h3,
.topbar h2 {
  margin: 0;
}

.brand h1 {
  font-family: "Bahnschrift", "Segoe UI Variable", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
}

.brand-note {
  margin: 0;
  color: var(--muted);
  max-width: 23ch;
  font-size: 0.88rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-family: "Cascadia Code", "Consolas", monospace;
}

.sidebar-intelligence {
  display: grid;
  gap: 12px;
}

.sidebar-intelligence-card,
.sidebar-mini-stat {
  border-radius: var(--radius-soft);
  border: 1px solid rgba(83, 156, 255, 0.18);
  background: linear-gradient(180deg, rgba(13, 27, 49, 0.92), rgba(7, 16, 30, 0.9));
}

.sidebar-intelligence-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-intelligence-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-family: "Cascadia Code", "Consolas", monospace;
}

.sidebar-intelligence-card strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.sidebar-intelligence-card small {
  color: var(--muted);
  line-height: 1.45;
}

.sidebar-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sidebar-mini-stat {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.sidebar-mini-stat span {
  color: var(--muted);
  font-size: 0.73rem;
}

.sidebar-mini-stat strong {
  font-family: "Bahnschrift", "Segoe UI Variable", sans-serif;
  font-size: 0.96rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-group {
  display: grid;
  gap: 10px;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-section-label {
  padding: 2px 10px 0;
  color: #9cc0ff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group-label {
  padding: 4px 10px 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Cascadia Code", "Consolas", monospace;
}

.nav-link,
.ghost-button,
.primary-button {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 180ms ease;
}

.nav-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: rgba(148, 163, 184, 0.035);
  color: var(--text);
  text-align: left;
  border-color: rgba(83, 156, 255, 0.06);
  min-height: 62px;
  padding-inline: 12px;
}

.nav-link:hover,
.nav-link.active {
  background:
    linear-gradient(90deg, rgba(47, 125, 255, 0.26), rgba(47, 125, 255, 0.06)),
    rgba(13, 26, 47, 0.95);
  border-color: rgba(83, 156, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(83, 156, 255, 0.12);
}

.nav-link-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
  font-size: 0;
}

.nav-link-icon svg,
.topbar-icon-glyph svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link.active .nav-link-icon {
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.34), rgba(110, 193, 255, 0.18));
  color: #ffffff;
}

.nav-link-copy {
  display: grid;
  gap: 3px;
}

.nav-link-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.nav-link-copy small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 2px 54px;
  display: grid;
  gap: 6px;
}

.nav-submenu li {
  position: relative;
  color: rgba(210, 224, 247, 0.76);
  font-size: 0.78rem;
  line-height: 1.35;
  padding-left: 14px;
}

.nav-submenu li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(110, 193, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px 4px;
  border-top: 1px solid rgba(90, 124, 173, 0.16);
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-footer strong {
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.content {
  min-width: 0;
  padding: 28px 28px 32px;
}

.workspace {
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 22px;
}

.topbar-copy {
  flex: 1;
  padding: 8px 2px;
}

.topbar h2 {
  font-family: "Bahnschrift", "Segoe UI Variable", sans-serif;
  max-width: 900px;
  font-size: clamp(2rem, 2vw + 1.2rem, 2.8rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.topbar-description {
  margin: 12px 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.topbar-meta {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: min(640px, 52%);
}

.topbar-status-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-status-card,
.topbar-user-card,
.topbar-date-chip {
  border-radius: 22px;
  border: 1px solid rgba(90, 124, 173, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 20, 36, 0.96), rgba(8, 16, 28, 0.92)),
    radial-gradient(circle at top right, rgba(47, 125, 255, 0.1), transparent 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-status-card {
  min-width: 244px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-status-card-system {
  border-color: rgba(48, 209, 124, 0.25);
}

.topbar-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #3ceb8b, #10b05e);
  box-shadow: 0 0 0 5px rgba(48, 209, 124, 0.1);
}

.topbar-status-copy {
  display: grid;
  gap: 4px;
}

.topbar-status-copy strong,
.topbar-user-copy strong {
  font-size: 1rem;
}

.topbar-status-copy small,
.topbar-user-copy small,
.topbar-date-chip small {
  color: var(--muted);
  line-height: 1.45;
}

.topbar-icon-button {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(90, 124, 173, 0.2);
  background: linear-gradient(180deg, rgba(18, 36, 65, 0.92), rgba(10, 20, 36, 0.96));
  color: var(--text);
  cursor: pointer;
  transition: 180ms ease;
}

.topbar-icon-button:hover {
  border-color: rgba(83, 156, 255, 0.36);
  transform: translateY(-1px);
}

.topbar-icon-glyph {
  display: grid;
  place-items: center;
  font-size: 0;
}

.topbar-icon-button-alerts .notification-dot {
  position: absolute;
  top: -8px;
  right: -8px;
}

.topbar-user-card {
  min-width: 220px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(51, 84, 140, 0.92), rgba(17, 32, 57, 0.96));
  border: 1px solid rgba(110, 193, 255, 0.22);
  color: #f4f8ff;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.topbar-user-copy {
  display: grid;
  gap: 2px;
}

.topbar-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-date-chip {
  min-width: 122px;
  padding: 12px 16px;
  display: grid;
  gap: 2px;
}

.topbar-date-chip strong {
  font-size: 0.92rem;
}

.topbar-refresh-button {
  min-width: 148px;
}

.notification-dot {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 96, 107, 0.24);
  background: linear-gradient(180deg, rgba(255, 93, 93, 0.98), rgba(191, 41, 49, 0.96));
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row.compact {
  margin-top: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel + .panel,
.view + .view {
  margin-top: 18px;
}

.view[data-view-panel="dashboard"] {
  background:
    linear-gradient(180deg, rgba(12, 25, 43, 0.94), rgba(7, 17, 31, 0.9)),
    radial-gradient(circle at top right, rgba(74, 210, 200, 0.08), transparent 34%);
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header .eyebrow {
  margin-bottom: 8px;
}

.ghost-button {
  background: rgba(148, 163, 184, 0.07);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.12);
}

.ghost-button:hover {
  background: rgba(47, 125, 255, 0.16);
  border-color: rgba(83, 156, 255, 0.28);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #1f9bff 52%, var(--accent-violet));
  color: #f7fbff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(47, 125, 255, 0.28);
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.wide,
.full {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.message-banner {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(83, 156, 255, 0.26);
  background: linear-gradient(90deg, rgba(47, 125, 255, 0.12), rgba(47, 125, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.message-banner.error {
  border-color: rgba(255, 107, 97, 0.38);
  background: linear-gradient(90deg, rgba(255, 107, 97, 0.16), rgba(255, 107, 97, 0.04));
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(90, 124, 173, 0.18);
  background: rgba(5, 11, 22, 0.8);
  color: var(--text);
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

.dashboard-groups,
.dashboard-group {
  display: grid;
  gap: 14px;
}

.dashboard-group-heading {
  gap: 6px;
  margin: 0;
  padding: 2px 4px 0 16px;
  border-left: 3px solid rgba(74, 210, 200, 0.42);
}

.dashboard-group-heading strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.dashboard-group-heading span {
  max-width: 78ch;
}

.dashboard-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(74, 210, 200, 0.18);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.94), rgba(11, 26, 47, 0.88)),
    radial-gradient(circle at top right, rgba(74, 210, 200, 0.1), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 50px rgba(0, 0, 0, 0.24);
}

.dashboard-command-panel[data-tone="warning"] {
  border-color: rgba(244, 184, 96, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.94), rgba(54, 31, 9, 0.72)),
    radial-gradient(circle at top right, rgba(244, 184, 96, 0.12), transparent 34%);
}

.dashboard-command-panel[data-tone="danger"] {
  border-color: rgba(255, 123, 114, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.94), rgba(62, 20, 18, 0.76)),
    radial-gradient(circle at top right, rgba(255, 123, 114, 0.12), transparent 34%);
}

.dashboard-command-panel[data-tone="success"] {
  border-color: rgba(77, 212, 159, 0.24);
}

.dashboard-command-copy,
.dashboard-health-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.dashboard-command-copy h4 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.02;
  max-width: 14ch;
}

.dashboard-lead-text {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 72ch;
}

.dashboard-lead-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text);
  font-size: 0.82rem;
}

.dashboard-chip--neutral {
  color: var(--muted);
}

.dashboard-chip--accent {
  background: rgba(74, 210, 200, 0.16);
  border-color: rgba(74, 210, 200, 0.24);
  color: #b8fff5;
}

.dashboard-chip--success {
  background: rgba(77, 212, 159, 0.16);
  border-color: rgba(77, 212, 159, 0.24);
  color: #b8ffe2;
}

.dashboard-chip--warning {
  background: rgba(244, 184, 96, 0.18);
  border-color: rgba(244, 184, 96, 0.24);
  color: #ffe0a8;
}

.dashboard-chip--danger {
  background: rgba(255, 123, 114, 0.16);
  border-color: rgba(255, 123, 114, 0.24);
  color: #ffd3cf;
}

.health-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.health-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(3, 10, 22, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.health-card--accent {
  border-color: rgba(74, 210, 200, 0.18);
}

.health-card--success {
  border-color: rgba(77, 212, 159, 0.2);
}

.health-card--warning {
  border-color: rgba(244, 184, 96, 0.22);
}

.health-card--danger {
  border-color: rgba(255, 123, 114, 0.22);
}

.health-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.health-value {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.health-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  grid-column: span 1;
  display: grid;
  gap: 12px;
  min-height: 138px;
  background: rgba(3, 10, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  padding: 18px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(148, 163, 184, 0.16);
}

.stat-card-primary {
  grid-column: span 1;
}

.stat-card--success::before {
  background: linear-gradient(90deg, rgba(77, 212, 159, 0.9), rgba(74, 210, 200, 0.9));
}

.stat-card--warning::before {
  background: linear-gradient(90deg, rgba(244, 184, 96, 0.92), rgba(74, 210, 200, 0.75));
}

.stat-card--accent::before {
  background: linear-gradient(90deg, rgba(74, 210, 200, 0.92), rgba(14, 165, 233, 0.88));
}

.stat-card--danger::before {
  background: linear-gradient(90deg, rgba(255, 123, 114, 0.95), rgba(244, 184, 96, 0.9));
}

.stat-card h4,
.stat-card p {
  margin: 0;
}

.stat-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.stat-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(110, 193, 255, 0.14);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-icon--success {
  color: #79f0b0;
  background: rgba(48, 209, 124, 0.08);
  border-color: rgba(48, 209, 124, 0.16);
}

.stat-icon--warning {
  color: #ffd082;
  background: rgba(244, 181, 63, 0.1);
  border-color: rgba(244, 181, 63, 0.18);
}

.stat-icon--accent {
  color: #8beaff;
  background: rgba(74, 210, 200, 0.1);
  border-color: rgba(74, 210, 200, 0.18);
}

.stat-icon--danger {
  color: #ff9d96;
  background: rgba(255, 107, 97, 0.1);
  border-color: rgba(255, 107, 97, 0.18);
}

.stat-topline {
  display: grid;
  gap: 8px;
}

.stat-card h4 {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-card-primary .stat-value {
  font-size: 3rem;
}

.stat-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stat-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7eb6ff;
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-footer-arrow {
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  grid-column: span 6;
  display: grid;
  align-content: start;
  gap: 14px;
  background: rgba(3, 10, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-card-wide {
  grid-column: span 7;
}

.dashboard-card-compact {
  grid-column: span 5;
}

.dashboard-card-full {
  grid-column: 1 / -1;
}

.dashboard-card-span-2 {
  grid-column: span 7;
}

.dashboard-card-span-3 {
  grid-column: 1 / -1;
}

.dashboard-card-highlight {
  grid-column: span 5;
  background:
    radial-gradient(circle at top right, rgba(47, 125, 255, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(11, 23, 41, 0.9), rgba(7, 16, 30, 0.9));
  border-color: rgba(110, 193, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.22);
}

.dashboard-command-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-row-primary .dashboard-card-instances {
  grid-column: span 5;
}

.dashboard-row-primary .dashboard-card-license {
  grid-column: span 4;
}

.dashboard-row-primary .dashboard-card-alerts {
  grid-column: span 3;
}

.dashboard-row-secondary .dashboard-card-clients {
  grid-column: span 6;
}

.dashboard-row-secondary .dashboard-card-processes,
.dashboard-row-secondary .dashboard-card-activity {
  grid-column: span 3;
}

.dashboard-row-tertiary .dashboard-card-workflow {
  grid-column: span 7;
}

.dashboard-row-tertiary .dashboard-card-system {
  grid-column: span 5;
}

.signal-list,
.timeline-list,
.process-grid,
.workflow-stage-rail,
.system-board,
.license-hero-copy {
  display: grid;
  gap: 12px;
}

.signal-item,
.timeline-item,
.process-item,
.system-board-card,
.workflow-focus-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(145deg, rgba(7, 17, 31, 0.9), rgba(10, 22, 39, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.signal-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
}

.signal-item-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.06);
}

.signal-item--success .signal-item-mark {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(48, 209, 124, 0.12);
}

.signal-item--warning .signal-item-mark {
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(244, 181, 63, 0.12);
}

.signal-item--danger .signal-item-mark {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 107, 97, 0.12);
}

.signal-item-copy,
.timeline-item-copy,
.process-item-copy {
  display: grid;
  gap: 4px;
}

.signal-item-copy strong,
.timeline-item-copy strong,
.process-item-copy strong,
.system-board-card strong,
.workflow-focus-detail strong {
  font-size: 0.96rem;
}

.signal-item-copy span,
.timeline-item-copy span,
.process-item-copy span,
.process-item small,
.system-board-card small,
.workflow-focus-detail span {
  color: var(--muted);
  line-height: 1.45;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
}

.timeline-item-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 4px;
  background: rgba(148, 163, 184, 0.32);
}

.timeline-item-mark.success {
  background: var(--success);
}

.timeline-item-mark.warning {
  background: var(--warning);
}

.timeline-item-mark.danger {
  background: var(--danger);
}

.timeline-item time {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.process-item {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.process-item-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.process-item-order {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(47, 125, 255, 0.16);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-line {
  min-height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.progress-line-bar {
  display: block;
  min-height: 10px;
  border-radius: inherit;
  background: rgba(148, 163, 184, 0.28);
}

.progress-line-bar--success {
  background: linear-gradient(90deg, rgba(48, 209, 124, 0.96), rgba(110, 193, 255, 0.75));
}

.progress-line-bar--warning {
  background: linear-gradient(90deg, rgba(244, 181, 63, 0.96), rgba(255, 149, 0, 0.72));
}

.progress-line-bar--danger {
  background: linear-gradient(90deg, rgba(255, 107, 97, 0.96), rgba(185, 28, 28, 0.78));
}

.progress-line-bar--accent {
  background: linear-gradient(90deg, rgba(47, 125, 255, 0.96), rgba(110, 193, 255, 0.78));
}

.license-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.license-hero-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(7, 17, 31, 0.94) 0 58%, transparent 59%),
    conic-gradient(from -90deg, rgba(47, 125, 255, 0.96) 0 var(--license-percent, 0%), rgba(148, 163, 184, 0.14) var(--license-percent, 0%) 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.license-hero-ring-inner {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 16, 30, 0.96), rgba(7, 16, 30, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.license-hero-ring-inner strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.license-hero-ring-inner span,
.license-hero-metric span,
.workflow-stage strong,
.workflow-focus-head span {
  color: var(--muted);
}

.license-hero-metric {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.license-hero-metric strong {
  font-size: 1.3rem;
}

.workflow-stage-rail {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.workflow-stage {
  display: grid;
  gap: 8px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(7, 16, 30, 0.88), rgba(7, 16, 30, 0.66));
}

.workflow-stage-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.workflow-stage--success {
  border-color: rgba(48, 209, 124, 0.26);
}

.workflow-stage--success .workflow-stage-index {
  background: rgba(48, 209, 124, 0.2);
  color: #fff;
}

.workflow-stage--warning {
  border-color: rgba(244, 181, 63, 0.24);
}

.workflow-stage--warning .workflow-stage-index {
  background: rgba(244, 181, 63, 0.22);
  color: #fff;
}

.workflow-stage--danger {
  border-color: rgba(255, 107, 97, 0.26);
}

.workflow-stage--danger .workflow-stage-index {
  background: rgba(255, 107, 97, 0.22);
  color: #fff;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.workflow-focus-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.workflow-focus-head,
.workflow-focus-detail {
  display: grid;
  gap: 5px;
}

.workflow-focus-progress {
  min-height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.workflow-focus-progress-bar {
  display: block;
  min-height: 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(47, 125, 255, 0.98), rgba(110, 193, 255, 0.82));
}

.system-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.system-board-card {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.dashboard-command-panel-compact {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  padding-block: 18px;
}

.dashboard-command-panel-compact .dashboard-command-copy h4 {
  max-width: none;
  font-size: 1.56rem;
}

.dashboard-command-panel-compact .dashboard-lead-text {
  font-size: 0.92rem;
  line-height: 1.55;
}

.system-board-card--success {
  border-color: rgba(48, 209, 124, 0.2);
}

.system-board-card--warning {
  border-color: rgba(244, 181, 63, 0.22);
}

.system-board-card--danger {
  border-color: rgba(255, 107, 97, 0.22);
}

.system-board-label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
  align-items: end;
}

.pulse-day {
  display: grid;
  gap: 10px;
}

.pulse-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  min-height: 164px;
  padding: 12px 10px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.04), rgba(148, 163, 184, 0)),
    rgba(7, 17, 31, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.pulse-bar {
  flex: 1;
  min-height: 10px;
  border-radius: 999px 999px 6px 6px;
  background: rgba(148, 163, 184, 0.22);
  height: var(--bar-size, 12px);
}

.pulse-bar--incidents {
  background: linear-gradient(180deg, rgba(255, 123, 114, 0.98), rgba(255, 123, 114, 0.48));
}

.pulse-bar--alerts {
  background: linear-gradient(180deg, rgba(244, 184, 96, 0.98), rgba(244, 184, 96, 0.46));
}

.pulse-bar--actions {
  background: linear-gradient(180deg, rgba(74, 210, 200, 0.98), rgba(14, 165, 233, 0.48));
}

.pulse-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pulse-metrics {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.coverage-panel,
.mix-list,
.pressure-list {
  display: grid;
  gap: 14px;
}

.coverage-stack {
  display: grid;
  gap: 12px;
}

.coverage-bar {
  display: flex;
  min-height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.coverage-segment {
  min-width: 0;
  background: rgba(148, 163, 184, 0.16);
}

.coverage-segment--success {
  background: linear-gradient(90deg, rgba(77, 212, 159, 0.96), rgba(74, 210, 200, 0.92));
}

.coverage-segment--warning {
  background: linear-gradient(90deg, rgba(244, 184, 96, 0.95), rgba(255, 123, 114, 0.72));
}

.coverage-segment--danger {
  background: linear-gradient(90deg, rgba(255, 123, 114, 0.96), rgba(173, 35, 35, 0.8));
}

.coverage-segment--neutral {
  background: rgba(148, 163, 184, 0.26);
}

.coverage-legend {
  display: grid;
  gap: 10px;
}

.coverage-item,
.mix-row,
.pressure-item,
.view-filter-bar {
  display: grid;
  gap: 8px;
  padding: 14px 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7, 17, 31, 0.84), rgba(9, 20, 36, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.dashboard-clickable {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.dashboard-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 210, 200, 0.24);
  background: linear-gradient(135deg, rgba(10, 22, 39, 0.94), rgba(10, 26, 46, 0.84));
}

.coverage-row,
.mix-head,
.pressure-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.coverage-item strong,
.mix-row strong,
.pressure-item strong {
  line-height: 1.3;
}

.coverage-meta,
.mix-meta,
.pressure-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mix-track,
.pressure-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
}

.mix-fill,
.pressure-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill-width, 0%);
  border-radius: inherit;
  background: rgba(148, 163, 184, 0.22);
}

.mix-fill--danger,
.pressure-fill--danger {
  background: linear-gradient(90deg, rgba(255, 123, 114, 0.96), rgba(244, 184, 96, 0.84));
}

.mix-fill--warning,
.pressure-fill--warning {
  background: linear-gradient(90deg, rgba(244, 184, 96, 0.96), rgba(255, 210, 133, 0.82));
}

.mix-fill--accent,
.pressure-fill--accent {
  background: linear-gradient(90deg, rgba(74, 210, 200, 0.96), rgba(14, 165, 233, 0.82));
}

.mix-fill--success,
.pressure-fill--success {
  background: linear-gradient(90deg, rgba(77, 212, 159, 0.96), rgba(74, 210, 200, 0.8));
}

.pressure-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.view-filter-bar {
  margin-bottom: 14px;
  padding: 12px 14px;
}

.view-filter-content,
.view-filter-copy,
.view-filter-actions {
  display: flex;
  gap: 12px;
}

.view-filter-content {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.view-filter-copy {
  flex-direction: column;
  align-items: flex-start;
}

.view-filter-copy strong {
  line-height: 1.25;
}

.view-filter-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.view-filter-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(74, 210, 200, 0.12);
  border: 1px solid rgba(74, 210, 200, 0.18);
  color: #b8fff5;
  font-size: 0.8rem;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  position: relative;
  padding-right: 102px;
}

.section-heading strong {
  letter-spacing: 0.02em;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading-action {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  background: transparent;
  color: #78b5ff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0;
  cursor: pointer;
}

.section-heading-action:hover {
  color: #a8d2ff;
  text-decoration: underline;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-item {
  display: grid;
  gap: 8px;
  padding: 14px 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7, 17, 31, 0.84), rgba(9, 20, 36, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.summary-item strong,
.summary-item span {
  display: block;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.summary-row strong {
  line-height: 1.35;
}

.summary-text {
  line-height: 1.5;
}

.summary-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid transparent;
  color: var(--text);
}

.pill.pill--ok {
  background: rgba(77, 212, 159, 0.16);
  border-color: rgba(77, 212, 159, 0.22);
  color: #b8ffe2;
}

.pill.pill--warning {
  background: rgba(244, 184, 96, 0.18);
  border-color: rgba(244, 184, 96, 0.22);
  color: #ffe0a8;
}

.pill.pill--accent {
  background: rgba(74, 210, 200, 0.16);
  border-color: rgba(74, 210, 200, 0.22);
  color: #a7fff1;
}

.pill.pill--danger {
  background: rgba(255, 123, 114, 0.18);
  border-color: rgba(255, 123, 114, 0.22);
  color: #ffd3cf;
}

.pill.priority-crítico,
.pill.priority-critical {
  background: rgba(255, 123, 114, 0.18);
  color: #ffd3cf;
}

.pill.priority-alto,
.pill.priority-high {
  background: rgba(244, 184, 96, 0.18);
  color: #ffd9a3;
}

.pill.priority-medio,
.pill.priority-medium {
  background: rgba(74, 210, 200, 0.16);
  color: #a7fff1;
}

.pill.priority-bajo,
.pill.priority-low {
  background: rgba(148, 163, 184, 0.16);
  color: #d7e3f6;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-wrap.compact {
  padding-top: 4px;
}

.table-wrap.compact table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table-wrap.compact thead th {
  padding-top: 0;
  padding-bottom: 8px;
  border-bottom: 0;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.table-wrap.compact tbody td {
  background: linear-gradient(180deg, rgba(11, 23, 41, 0.92), rgba(8, 18, 32, 0.9));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  padding-top: 13px;
  padding-bottom: 13px;
}

.table-wrap.compact tbody td:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 14px 0 0 14px;
}

.table-wrap.compact tbody td:last-child {
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0 14px 14px 0;
}

.table-wrap.compact tbody tr:hover td {
  background: linear-gradient(180deg, rgba(17, 34, 61, 0.96), rgba(9, 20, 36, 0.94));
  border-color: rgba(83, 156, 255, 0.18);
}

.cell-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.info-strip,
.settings-grid {
  display: grid;
  gap: 12px;
}

.info-strip {
  padding: 14px 16px;
  background: rgba(244, 184, 96, 0.08);
  border: 1px solid rgba(244, 184, 96, 0.22);
  border-radius: 16px;
}

.info-strip.subtle {
  background: rgba(148, 163, 184, 0.05);
  border-color: rgba(148, 163, 184, 0.14);
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.inline-form-field {
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
  margin-top: 8px;
}

.inline-form-field span {
  color: var(--muted);
  font-size: 0.86rem;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 16px;
}

.view-shell {
  display: grid;
  gap: 18px;
}

.view-hero-grid,
.view-dual-grid {
  display: grid;
  gap: 16px;
}

.view-hero-grid--three {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr) minmax(280px, 0.8fr);
}

.view-hero-grid--catalog {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.view-hero-grid--two,
.view-dual-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.view-summary-card,
.view-focus-card,
.view-table-card,
.view-form-card,
.view-history-card,
.view-spotlight-card,
.view-progress-card,
.view-workbench-card {
  min-height: 100%;
}

.view-summary-card,
.view-focus-card,
.view-form-card,
.view-history-card,
.view-spotlight-card {
  background:
    linear-gradient(180deg, rgba(10, 21, 37, 0.96), rgba(5, 12, 24, 0.94)),
    radial-gradient(circle at top right, rgba(91, 162, 255, 0.08), transparent 34%);
}

.view-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.view-summary-card .setting-card {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.9), rgba(4, 10, 22, 0.88));
}

.view-focus-card .summary-list,
.view-focus-card .signal-list,
.view-spotlight-card .summary-list,
.view-history-card .summary-list {
  margin-top: 4px;
}

.view-table-card .table-wrap {
  margin-top: 4px;
}

.view-progress-card {
  margin-top: 0;
  align-self: stretch;
}

.view-form-card .form-grid {
  margin-top: 4px;
}

.view-form-card .info-strip,
.view-history-card .info-strip {
  margin-top: 16px;
}

.support-layout {
  margin-bottom: 16px;
}

.support-backup-hero {
  display: grid;
  gap: 14px;
}

.support-backup-path-form {
  margin-top: 2px;
}

.support-backup-path-hint {
  margin: 0;
}

.support-backup-spotlight {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(9, 20, 36, 0.82)),
    radial-gradient(circle at top right, rgba(74, 210, 200, 0.08), transparent 34%);
}

.support-backup-spotlight[data-tone="success"] {
  border-color: rgba(77, 212, 159, 0.24);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(10, 39, 28, 0.82)),
    radial-gradient(circle at top right, rgba(77, 212, 159, 0.1), transparent 34%);
}

.support-backup-spotlight[data-tone="warning"] {
  border-color: rgba(244, 184, 96, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(54, 31, 9, 0.76)),
    radial-gradient(circle at top right, rgba(244, 184, 96, 0.12), transparent 34%);
}

.support-backup-spotlight[data-tone="danger"] {
  border-color: rgba(255, 123, 114, 0.3);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(62, 20, 18, 0.8)),
    radial-gradient(circle at top right, rgba(255, 123, 114, 0.12), transparent 34%);
}

.support-backup-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-backup-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-backup-run-list {
  display: grid;
  gap: 12px;
}

.support-backup-run-file {
  color: var(--text);
  font-weight: 600;
}

.policy-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(74, 210, 200, 0.2);
  background: rgba(3, 10, 22, 0.55);
}

.policy-card h4 {
  margin: 0 0 10px;
}

.agent-inline-note {
  margin: 0 0 12px;
  line-height: 1.5;
}

.policy-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Bahnschrift", "Segoe UI Variable", sans-serif;
  color: var(--text);
  line-height: 1.45;
}

.install-code-panel {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(74, 210, 200, 0.08);
  border: 1px solid rgba(74, 210, 200, 0.2);
}

.install-code-panel code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(3, 10, 22, 0.72);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions button {
  min-width: 92px;
}

.table-stack {
  display: grid;
  gap: 4px;
}

.muted-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setting-card {
  background: rgba(3, 10, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 16px;
}

.setting-card strong,
.setting-card span {
  display: block;
}

.setting-card strong {
  margin-bottom: 8px;
}

.toggle-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.toggle-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.toggle-field span {
  color: var(--text);
}

.tenant-module-fieldset {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(74, 210, 200, 0.18);
  background: rgba(3, 10, 22, 0.52);
}

.tenant-module-fieldset legend {
  padding: 0 8px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.tenant-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tenant-module-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 17, 31, 0.72);
}

.tenant-module-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.tenant-module-option span {
  color: var(--text);
}

.tenant-module-option small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.tenant-module-option--dense {
  align-items: flex-start;
}

.tenant-module-option--dense input {
  margin-top: 2px;
}

.tenant-module-option--locked {
  border-color: rgba(244, 184, 96, 0.26);
  background:
    linear-gradient(180deg, rgba(20, 28, 42, 0.92), rgba(7, 17, 31, 0.88)),
    radial-gradient(circle at top right, rgba(244, 184, 96, 0.08), transparent 36%);
}

.tenant-provision-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(74, 210, 200, 0.24);
  background:
    linear-gradient(180deg, rgba(11, 24, 40, 0.94), rgba(7, 17, 31, 0.88)),
    radial-gradient(circle at top right, rgba(74, 210, 200, 0.1), transparent 32%);
}

.tenant-provision-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.tenant-provision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tenant-provision-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.tenant-row-selected {
  background: rgba(74, 210, 200, 0.08);
}

.tenant-workbench-shell {
  margin-top: 18px;
  overflow: hidden;
}

.broker-operation-progress-shell {
  margin-top: 18px;
  overflow: hidden;
}

.broker-progress-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top right, rgba(91, 162, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(9, 18, 33, 0.96), rgba(4, 10, 22, 0.96));
}

.broker-progress-card--ok {
  border-color: rgba(77, 212, 159, 0.22);
  background:
    radial-gradient(circle at top right, rgba(77, 212, 159, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.96), rgba(4, 10, 22, 0.96));
}

.broker-progress-card--warning {
  border-color: rgba(244, 184, 96, 0.24);
  background:
    radial-gradient(circle at top right, rgba(244, 184, 96, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(11, 20, 36, 0.96), rgba(4, 10, 22, 0.96));
}

.broker-progress-card--danger {
  border-color: rgba(255, 123, 114, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 123, 114, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(13, 20, 36, 0.96), rgba(4, 10, 22, 0.96));
}

.broker-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.broker-progress-head h4 {
  margin: 0;
  font-size: 1.45rem;
}

.broker-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.broker-progress-summary {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.broker-progress-current {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(6, 14, 26, 0.68);
}

.broker-progress-current--ok {
  border-color: rgba(77, 212, 159, 0.22);
  background: rgba(15, 50, 38, 0.22);
}

.broker-progress-current--warning {
  border-color: rgba(244, 184, 96, 0.22);
  background: rgba(58, 42, 16, 0.24);
}

.broker-progress-current--danger {
  border-color: rgba(255, 123, 114, 0.22);
  background: rgba(63, 22, 24, 0.26);
}

.broker-progress-current strong {
  color: var(--text);
}

.broker-progress-current p,
.broker-progress-error p,
.broker-progress-step-copy p,
.broker-progress-note span {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.broker-progress-steps {
  display: grid;
  gap: 12px;
}

.broker-progress-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 17, 31, 0.72);
}

.broker-progress-step--done {
  border-color: rgba(77, 212, 159, 0.18);
  background: rgba(15, 50, 38, 0.18);
}

.broker-progress-step--running {
  border-color: rgba(244, 184, 96, 0.22);
  background: rgba(58, 42, 16, 0.22);
}

.broker-progress-step--failed {
  border-color: rgba(255, 123, 114, 0.2);
  background: rgba(63, 22, 24, 0.22);
}

.broker-progress-step-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  font-size: 1.1rem;
}

.broker-progress-step-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.broker-progress-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.broker-progress-step-head strong {
  color: var(--text);
}

.broker-progress-error {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 123, 114, 0.24);
  background: rgba(63, 22, 24, 0.22);
}

.broker-progress-error strong {
  color: #ffd4d2;
}

.broker-progress-actions {
  margin-top: 4px;
}

.broker-progress-note {
  padding-top: 2px;
}

.tenant-workbench-shell-inner {
  display: grid;
  gap: 18px;
}

.tenant-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(74, 210, 200, 0.18);
  background:
    radial-gradient(circle at top right, rgba(74, 210, 200, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(11, 24, 40, 0.94), rgba(7, 17, 31, 0.88));
}

.tenant-spotlight h4 {
  margin: 0;
  font-size: 1.45rem;
}

.tenant-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  color: var(--muted);
}

.tenant-spotlight-meta span {
  overflow-wrap: anywhere;
}

.tenant-spotlight-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tenant-spotlight-stats article {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 17, 31, 0.68);
}

.tenant-spotlight-stats strong,
.tenant-spotlight-stats span {
  display: block;
}

.tenant-spotlight-stats strong {
  font-size: 1.3rem;
}

.tenant-spotlight-stats span {
  margin-top: 6px;
  color: var(--muted);
}

.tenant-workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tenant-subpanel {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(6, 14, 26, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tenant-subpanel--full-span {
  grid-column: 1 / -1;
}

.tenant-subpanel--capacity {
  background:
    radial-gradient(circle at top right, rgba(244, 184, 96, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(9, 18, 33, 0.94), rgba(4, 10, 22, 0.94));
  border-color: rgba(244, 184, 96, 0.16);
}

.tenant-subpanel--plan {
  background:
    radial-gradient(circle at top left, rgba(91, 162, 255, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(8, 18, 36, 0.94), rgba(4, 10, 22, 0.94));
  border-color: rgba(91, 162, 255, 0.16);
}

.tenant-subpanel--subscription {
  background:
    radial-gradient(circle at top right, rgba(77, 212, 159, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.94), rgba(4, 10, 22, 0.94));
  border-color: rgba(77, 212, 159, 0.16);
}

.tenant-subpanel--billing {
  background:
    radial-gradient(circle at bottom left, rgba(244, 184, 96, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.96), rgba(4, 10, 22, 0.96));
  border-color: rgba(244, 184, 96, 0.14);
}

.tenant-subpanel--collection {
  background:
    radial-gradient(circle at top left, rgba(255, 123, 114, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(11, 18, 33, 0.96), rgba(4, 10, 22, 0.96));
  border-color: rgba(255, 123, 114, 0.16);
}

.tenant-subpanel--full {
  padding: 18px;
}

.tenant-inline-form {
  gap: 14px;
}

.tenant-plan-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.tenant-plan-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(91, 162, 255, 0.18);
  background: rgba(7, 17, 31, 0.7);
}

.tenant-plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tenant-plan-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.tenant-plan-card-head span,
.tenant-plan-meta {
  color: var(--muted);
}

.tenant-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.84rem;
}

.tenant-subscription-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.tenant-subscription-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(77, 212, 159, 0.18);
  background: rgba(7, 17, 31, 0.7);
}

.tenant-subscription-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tenant-subscription-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
}

.tenant-subscription-card-head span {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-subscription-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-subscription-chip--neutral {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
}

.tenant-subscription-chip--ok {
  border-color: rgba(77, 212, 159, 0.28);
  background: rgba(77, 212, 159, 0.12);
}

.tenant-subscription-chip--warning {
  border-color: rgba(244, 184, 96, 0.28);
  background: rgba(244, 184, 96, 0.12);
}

.tenant-subscription-chip--danger {
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.12);
}

.tenant-billing-shell {
  display: grid;
  gap: 18px;
}

.tenant-collection-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
}

.tenant-collection-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 123, 114, 0.18);
  background: rgba(7, 17, 31, 0.72);
}

.tenant-collection-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tenant-collection-card-head {
  display: grid;
  gap: 10px;
}

.tenant-collection-card-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tenant-billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tenant-billing-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 17, 31, 0.72);
}

.tenant-billing-stat strong {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tenant-billing-stat span {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.tenant-billing-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.tenant-billing-stack {
  display: grid;
  gap: 16px;
}

.tenant-invoice-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-invoice-chip--neutral {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
}

.tenant-invoice-chip--ok {
  border-color: rgba(77, 212, 159, 0.28);
  background: rgba(77, 212, 159, 0.12);
}

.tenant-invoice-chip--warning {
  border-color: rgba(244, 184, 96, 0.28);
  background: rgba(244, 184, 96, 0.12);
}

.tenant-invoice-chip--danger {
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.12);
}

.tenant-billing-health-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-billing-health-chip--neutral {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
}

.tenant-billing-health-chip--ok {
  border-color: rgba(77, 212, 159, 0.28);
  background: rgba(77, 212, 159, 0.12);
}

.tenant-billing-health-chip--accent,
.tenant-billing-health-chip--warning {
  border-color: rgba(244, 184, 96, 0.28);
  background: rgba(244, 184, 96, 0.12);
}

.tenant-billing-health-chip--danger {
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.12);
}

.tenant-plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-plan-chip--neutral {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
}

.tenant-plan-chip--ok {
  border-color: rgba(77, 212, 159, 0.28);
  background: rgba(77, 212, 159, 0.12);
}

.tenant-plan-chip--warning {
  border-color: rgba(244, 184, 96, 0.28);
  background: rgba(244, 184, 96, 0.12);
}

.tenant-plan-chip--danger {
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.12);
}

.tenant-plan-chip--accent {
  border-color: rgba(91, 162, 255, 0.3);
  background: rgba(91, 162, 255, 0.12);
}

.tenant-capacity-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.tenant-capacity-headline {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(244, 184, 96, 0.16);
  background: rgba(7, 17, 31, 0.68);
}

.tenant-capacity-headline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tenant-capacity-headline strong {
  color: var(--text);
}

.tenant-capacity-headline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  color: var(--muted);
}

.tenant-capacity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tenant-capacity-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.84), rgba(4, 10, 22, 0.96));
}

.tenant-capacity-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tenant-capacity-card-topline strong,
.tenant-capacity-figures strong {
  color: var(--text);
}

.tenant-capacity-card-topline span,
.tenant-capacity-note,
.tenant-capacity-meta {
  color: var(--muted);
}

.tenant-capacity-card-topline > div {
  display: grid;
  gap: 6px;
}

.tenant-capacity-figures {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tenant-capacity-figures strong {
  font-size: 1.45rem;
}

.tenant-capacity-progress {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.tenant-capacity-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 212, 159, 0.92), rgba(244, 184, 96, 0.92));
}

.tenant-capacity-card--warning .tenant-capacity-progress span,
.tenant-capacity-card--danger .tenant-capacity-progress span,
.tenant-capacity-card--blocked .tenant-capacity-progress span {
  background: linear-gradient(90deg, rgba(244, 184, 96, 0.92), rgba(255, 123, 114, 0.96));
}

.tenant-capacity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.84rem;
}

.tenant-capacity-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tenant-capacity-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-capacity-pill--ok {
  border-color: rgba(77, 212, 159, 0.24);
  background: rgba(77, 212, 159, 0.12);
}

.tenant-capacity-pill--warning {
  border-color: rgba(244, 184, 96, 0.28);
  background: rgba(244, 184, 96, 0.12);
}

.tenant-capacity-pill--danger,
.tenant-capacity-pill--blocked {
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.12);
}

.tenant-capacity-compact {
  display: grid;
  gap: 6px;
}

.tenant-role-fieldset {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(244, 184, 96, 0.16);
  background: rgba(10, 18, 32, 0.72);
}

.tenant-role-fieldset legend {
  padding: 0 8px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.tenant-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tenant-role-option {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 17, 31, 0.72);
}

.tenant-role-option input {
  margin: 0;
}

.tenant-role-option span {
  color: var(--text);
  font-weight: 600;
}

.tenant-role-option small {
  color: var(--muted);
  line-height: 1.35;
}

.tenant-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tenant-role-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
}

.tenant-role-chip--warning {
  border-color: rgba(244, 184, 96, 0.34);
  background: rgba(244, 184, 96, 0.12);
}

.tenant-role-chip--ok {
  border-color: rgba(77, 212, 159, 0.28);
  background: rgba(77, 212, 159, 0.12);
}

.tenant-role-chip--danger {
  border-color: rgba(255, 123, 114, 0.32);
  background: rgba(255, 123, 114, 0.12);
}

.tenant-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 17, 31, 0.6);
}

.tenant-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.tenant-user-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.tenant-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tenant-access-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.82), rgba(4, 10, 22, 0.92));
}

.tenant-access-card--disabled {
  opacity: 0.72;
  border-style: dashed;
}

.tenant-access-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tenant-access-card-header strong {
  color: var(--text);
}

.tenant-access-card small,
.tenant-access-hint,
.tenant-access-lock {
  color: var(--muted);
  line-height: 1.35;
}

.tenant-access-lock {
  font-size: 0.8rem;
}

.tenant-access-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.tenant-access-pill--warning {
  border-color: rgba(244, 184, 96, 0.28);
  background: rgba(244, 184, 96, 0.12);
}

.tenant-access-pill--ok {
  border-color: rgba(77, 212, 159, 0.24);
  background: rgba(77, 212, 159, 0.12);
}

.tenant-access-pill--neutral {
  border-color: rgba(148, 163, 184, 0.14);
}

.tenant-state-stack {
  display: grid;
  gap: 6px;
}

.tenant-module-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tenant-module-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 17, 31, 0.72);
  color: var(--text);
}

.tenant-module-summary-chip strong {
  font-size: 0.78rem;
  font-weight: 600;
}

.table-wrap.compact {
  margin-top: 16px;
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
}

.ai-status-card {
  min-height: 100%;
}

.ai-analysis-card {
  display: grid;
  gap: 16px;
}

.ai-disclaimer {
  margin-top: 4px;
}

.ai-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-card {
  grid-column: 1 / -1;
}

.ai-steps-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.ai-result-grid p,
.ai-steps-list {
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 1400px) {
  .dashboard-command-panel,
  .health-rail {
    grid-template-columns: 1fr;
  }

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

  .stat-card,
  .stat-card-primary {
    grid-column: span 1;
  }

  .dashboard-row-primary .dashboard-card-instances,
  .dashboard-row-primary .dashboard-card-license,
  .dashboard-row-secondary .dashboard-card-clients,
  .dashboard-row-tertiary .dashboard-card-workflow {
    grid-column: span 7;
  }

  .dashboard-row-primary .dashboard-card-alerts,
  .dashboard-row-secondary .dashboard-card-processes,
  .dashboard-row-secondary .dashboard-card-activity,
  .dashboard-row-tertiary .dashboard-card-system {
    grid-column: span 5;
  }
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .sidebar {
    min-height: 100vh;
    max-height: 100vh;
    padding: 22px 16px;
    border-right: 1px solid var(--panel-border);
    border-bottom: 0;
  }

  .brand {
    gap: 12px;
    margin-bottom: 8px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .brand h1 {
    font-size: 1.7rem;
  }

  .nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-group {
    gap: 8px;
  }

  .nav-submenu {
    padding-left: 48px;
  }

  .nav-link {
    min-height: 0;
    text-align: left;
    padding: 11px 12px;
  }

  .sidebar-footer {
    margin-top: auto;
    padding-top: 10px;
  }

  .content {
    padding: 20px 16px 24px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-header .ghost-button,
  .panel-header .primary-button,
  .hero-actions .ghost-button,
  .hero-actions .primary-button {
    align-self: flex-start;
  }

  .view-filter-content,
  .view-filter-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .ai-layout,
  .ai-result-grid,
  .license-hero-card,
  .workflow-layout,
  .settings-grid,
  .view-hero-grid,
  .view-dual-grid,
  .support-backup-meta-grid,
  .form-grid.two-columns,
  .agent-layout,
  .knowledge-layout,
  .tenant-module-grid,
  .tenant-provision-grid,
  .tenant-workbench-grid,
  .tenant-user-layout,
  .tenant-access-grid,
  .tenant-spotlight,
  .tenant-plan-grid,
  .tenant-subscription-grid,
  .tenant-collection-grid,
  .tenant-billing-layout,
  .tenant-capacity-overview {
    grid-template-columns: 1fr;
  }

  .view-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tenant-capacity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tenant-billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .broker-progress-head,
  .broker-progress-step-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tenant-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .dashboard-grid,
  .dashboard-command-grid,
  .dashboard-row,
  .system-board,
  .workflow-stage-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card,
  .stat-card-primary,
  .dashboard-card,
  .dashboard-card-highlight,
  .dashboard-card-span-2,
  .dashboard-card-compact {
    grid-column: span 1;
  }

  .dashboard-card-wide,
  .dashboard-card-span-3,
  .dashboard-card-full {
    grid-column: 1 / -1;
  }

  .dashboard-row-primary .dashboard-card-instances,
  .dashboard-row-primary .dashboard-card-license,
  .dashboard-row-primary .dashboard-card-alerts,
  .dashboard-row-secondary .dashboard-card-clients,
  .dashboard-row-secondary .dashboard-card-processes,
  .dashboard-row-secondary .dashboard-card-activity,
  .dashboard-row-tertiary .dashboard-card-workflow,
  .dashboard-row-tertiary .dashboard-card-system {
    grid-column: span 1;
  }

  .stat-card {
    min-height: 122px;
  }

  .stat-card-primary .stat-value {
    font-size: 2.55rem;
  }

  .dashboard-command-copy h4 {
    max-width: none;
    font-size: 1.7rem;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-meta {
    min-width: 0;
  }

  .topbar-status-strip,
  .topbar-actions-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 12px;
  }

  .tenant-capacity-grid,
  .tenant-role-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand h1 {
    font-size: 1.45rem;
  }

  .content {
    padding: 18px 12px 22px;
  }

  .stats-grid,
  .dashboard-grid,
  .dashboard-command-grid,
  .dashboard-row,
  .system-board,
  .workflow-stage-rail,
  .view-metric-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .broker-progress-card {
    padding: 18px;
  }

  .broker-progress-step {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .stat-card-primary,
  .dashboard-card,
  .dashboard-card-highlight,
  .dashboard-card-span-2,
  .dashboard-card-span-3,
  .dashboard-card-wide,
  .dashboard-card-compact,
  .dashboard-card-full {
    grid-column: 1 / -1;
  }

  .tenant-role-grid,
  .tenant-spotlight-stats {
    grid-template-columns: 1fr;
  }
}
