:root {
  --sdg-shell-bg: #061321;
  --sdg-panel: #0d2033;
  --sdg-panel-2: #10283f;
  --sdg-line: rgba(117, 193, 242, .19);
  --sdg-line-strong: rgba(117, 193, 242, .38);
  --sdg-text: #eef8ff;
  --sdg-muted: #8ea9be;
  --sdg-accent: #63c9ff;
  --sdg-good: #4fdda1;
  --sdg-warning: #ffd06a;
  --sdg-danger: #ff7585;
}

html {
  scroll-behavior: smooth;
}

body.sdg-unified-active {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(28, 100, 160, .20),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 12%,
      rgba(38, 93, 168, .18),
      transparent 32%
    ),
    #07172a;
}

body.sdg-unified-active > :not(
  #sdg-unified-shell
):not(script):not(style):not(link) {
  display: none !important;
}

#sdg-unified-shell {
  position: relative;
  min-height: 100vh;
  color: var(--sdg-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

#sdg-unified-shell * {
  box-sizing: border-box;
}

.sdg-command-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid var(--sdg-line);
  background:
    linear-gradient(
      180deg,
      rgba(5, 18, 32, .98),
      rgba(5, 18, 32, .94)
    );
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.sdg-command-row {
  width: min(1580px, calc(100% - 28px));
  min-height: 66px;
  margin: 0 auto;
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    minmax(300px, 1.5fr)
    auto;
  align-items: center;
  gap: 16px;
}

.sdg-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sdg-brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 201, 255, .38);
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      rgba(99, 201, 255, .20),
      rgba(79, 221, 161, .08)
    );
  box-shadow:
    inset 0 0 16px rgba(99, 201, 255, .08),
    0 0 18px rgba(99, 201, 255, .09);
  color: var(--sdg-accent);
  font-weight: 950;
}

.sdg-brand-copy {
  min-width: 0;
}

.sdg-brand-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.sdg-brand-subtitle {
  margin: 3px 0 0;
  color: var(--sdg-muted);
  font-size: .61rem;
}

.sdg-mission-summary {
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--sdg-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}

.sdg-mission-label {
  margin: 0 0 3px;
  color: var(--sdg-muted);
  font-size: .53rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sdg-mission-name {
  margin: 0;
  overflow: hidden;
  color: var(--sdg-text);
  font-size: .72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdg-mission-detail {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--sdg-muted);
  font-size: .58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdg-command-indicators {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.sdg-indicator {
  min-height: 34px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--sdg-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--sdg-muted);
  font-size: .59rem;
  font-weight: 850;
  white-space: nowrap;
}

.sdg-indicator-dot {
  width: 8px;
  height: 8px;
  background: var(--sdg-warning);
  border-radius: 50%;
}

.sdg-indicator[data-state="online"]
.sdg-indicator-dot {
  background: var(--sdg-good);
  box-shadow: 0 0 10px rgba(79, 221, 161, .72);
}

.sdg-indicator[data-state="critical"]
.sdg-indicator-dot {
  background: var(--sdg-danger);
  box-shadow: 0 0 10px rgba(255, 117, 133, .72);
}

.sdg-alert-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 117, 133, .15);
  color: var(--sdg-danger);
  font-size: .56rem;
}

.sdg-navigation-wrap {
  border-top: 1px solid rgba(117, 193, 242, .08);
}

.sdg-navigation {
  width: min(1580px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sdg-tab {
  position: relative;
  min-height: 45px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--sdg-muted);
  cursor: pointer;
  font: inherit;
  font-size: .64rem;
  font-weight: 850;
  white-space: nowrap;
}

.sdg-tab:hover {
  color: var(--sdg-text);
  background: rgba(99, 201, 255, .045);
}

.sdg-tab[data-active="true"] {
  border-bottom-color: var(--sdg-accent);
  color: var(--sdg-accent);
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(99, 201, 255, .075)
    );
}

.sdg-tab-key {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sdg-line);
  border-radius: 6px;
  color: inherit;
  font-size: .54rem;
}

.sdg-workspace {
  width: min(1580px, calc(100% - 28px));
  margin: 14px auto 28px;
}

.sdg-panel {
  display: none;
  min-height: calc(100vh - 150px);
  animation: sdgFadeIn .16s ease-out;
}

.sdg-panel[data-active="true"] {
  display: block;
}

@keyframes sdgFadeIn {
  from {
    opacity: .35;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sdg-panel-header {
  margin-bottom: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--sdg-line);
  border-radius: 11px;
  background: rgba(9, 27, 45, .84);
}

.sdg-panel-heading {
  margin: 0;
  font-size: .79rem;
  font-weight: 900;
}

.sdg-panel-description {
  margin: 3px 0 0;
  color: var(--sdg-muted);
  font-size: .59rem;
}

.sdg-panel-actions {
  display: flex;
  gap: 6px;
}

.sdg-shell-button {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--sdg-line);
  border-radius: 7px;
  background: rgba(99, 201, 255, .055);
  color: var(--sdg-text);
  cursor: pointer;
  font: inherit;
  font-size: .58rem;
  font-weight: 850;
}

.sdg-shell-button:hover {
  border-color: var(--sdg-line-strong);
  background: rgba(99, 201, 255, .11);
}

.sdg-panel-content {
  min-width: 0;
}

.sdg-panel-content > [id^="sd-phase-"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.sdg-panel-content
#sd-phase-f-executive,
.sdg-panel-content
#sd-phase-a-monitor,
.sdg-panel-content
#sd-phase-b-console,
.sdg-panel-content
#sd-phase-c-factory,
.sdg-panel-content
#sd-phase-d-twin,
.sdg-panel-content
#sd-phase-e-center {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.sdg-legacy-container {
  min-height: 400px;
}

.sdg-legacy-container > * {
  display: block !important;
}

.sdg-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--sdg-line-strong);
  border-radius: 13px;
  background: rgba(13, 32, 51, .68);
  color: var(--sdg-muted);
  text-align: center;
}

.sdg-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--sdg-text);
  font-size: .9rem;
}

.sdg-jump-menu {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10001;
  display: flex;
  gap: 7px;
}

.sdg-jump-button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sdg-line-strong);
  border-radius: 10px;
  background: rgba(7, 23, 42, .95);
  color: var(--sdg-accent);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  font-size: .72rem;
  font-weight: 900;
}

.sdg-jump-button:hover {
  background: rgba(19, 55, 84, .98);
}

.sdg-mobile-menu {
  display: none;
}

@media (max-width: 1050px) {
  .sdg-command-row {
    grid-template-columns: 1fr auto;
  }

  .sdg-mission-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 9px;
  }
}

@media (max-width: 720px) {
  .sdg-command-row,
  .sdg-navigation,
  .sdg-workspace {
    width: calc(100% - 16px);
  }

  .sdg-command-row {
    min-height: 58px;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .sdg-brand-subtitle,
  .sdg-indicator-health {
    display: none;
  }

  .sdg-command-indicators {
    gap: 4px;
  }

  .sdg-indicator {
    min-height: 31px;
    padding: 6px 8px;
  }

  .sdg-navigation-wrap {
    display: none;
  }

  .sdg-mobile-menu {
    display: block;
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .sdg-mobile-select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--sdg-line);
    border-radius: 8px;
    background: var(--sdg-panel);
    color: var(--sdg-text);
    font: inherit;
    font-size: .67rem;
    font-weight: 800;
  }

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

  .sdg-workspace {
    margin-top: 8px;
  }
}
