.dcc-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.dev-shell.dcc-command-shell {
  max-width: 1480px;
  padding: 20px 22px 64px;
}

.dcc-command-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 58%, #0f3d4a 100%);
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 18px;
  color: #f8fafc;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .24);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.dcc-command-hero h1 {
  margin: 6px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.dcc-command-hero p {
  margin: 0;
  color: #cbd5e1;
  font-weight: 650;
}

.dcc-command-hero .dcc-eyebrow {
  color: #facc15;
  letter-spacing: .08em;
}

.dcc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 430px;
}

.dcc-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.dcc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  padding: 7px 11px;
  color: #e2e8f0;
  font-size: 12px;
}

.dcc-status-pill em {
  color: #94a3b8;
  font-style: normal;
  font-weight: 850;
}

.dcc-status-pill strong {
  color: #ffffff;
  font-weight: 950;
}

.dcc-status-pill.is-pass strong,
.dcc-mini-status.is-pass,
.dcc-workspace-status.is-pass {
  color: #16a34a;
}

.dcc-status-pill.is-warning strong,
.dcc-mini-status.is-warning,
.dcc-workspace-status.is-warning {
  color: #d97706;
}

.dcc-status-pill.is-fail strong,
.dcc-mini-status.is-fail,
.dcc-workspace-status.is-fail {
  color: #dc2626;
}

.dcc-status-pill.is-info strong,
.dcc-mini-status.is-info,
.dcc-workspace-status.is-info {
  color: #0284c7;
}

.dcc-command-btn,
.dcc-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 38px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.dcc-command-btn.is-primary,
.dcc-card-action {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
}

.dcc-command-btn.is-gold {
  background: #facc15;
  border-color: #facc15;
  color: #1f2937;
}

.dcc-command-btn.is-light {
  background: rgba(255, 255, 255, .95);
}

.dcc-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0 18px;
  padding: 10px;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
}

.dcc-sticky-nav a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.dcc-sticky-nav a:hover,
.dcc-sticky-nav a:focus-visible {
  background: #eff6ff;
  color: #0369a1;
  outline: 2px solid transparent;
}

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

.dcc-overview-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.dcc-overview-card h2 {
  margin: 0;
  font-size: 18px;
}

.dcc-overview-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.4;
  font-size: 14px;
}

.dcc-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 950;
}

.dcc-mini-status,
.dcc-workspace-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
}

.dcc-overview-card .dcc-card-action {
  margin-top: auto;
  width: fit-content;
}

.dcc-alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 12px 14px;
  color: #334155;
}

.dcc-alert-strip strong {
  color: #0f172a;
}

.dcc-hero {
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.dcc-eyebrow {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dcc-hero h1 {
  margin: 6px 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.dcc-muted {
  color: #546179;
  line-height: 1.5;
}

.dcc-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dcc-workspace-panel,
.dcc-tenant-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.dcc-workspace-panel > summary,
.dcc-tenant-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 950;
}

.dcc-workspace-panel > summary::-webkit-details-marker,
.dcc-tenant-panel > summary::-webkit-details-marker {
  display: none;
}

.dcc-workspace-panel > summary span:first-child,
.dcc-tenant-panel > summary span:first-child {
  display: grid;
  gap: 3px;
}

.dcc-workspace-panel > summary em,
.dcc-tenant-panel > summary em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
}

.dcc-workspace-panel[open] > summary,
.dcc-tenant-panel[open] > summary {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 14px 14px 0 0;
}

.dcc-workspace-panel .sr-panel,
.dcc-workspace-panel .platform-health,
.dcc-workspace-panel .pci-panel {
  margin-top: 0;
  border: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: none;
}

.dcc-workspace-panel .sr-table-wrap,
.dcc-workspace-panel .pci-table-wrap,
.dcc-workspace-panel .ph-logs {
  max-height: 520px;
  overflow: auto;
}

.dcc-governance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.dcc-governance h2 {
  margin: 4px 0 6px;
}

.dcc-governance p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.dcc-governance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  max-width: 620px;
}

.dcc-circuit-group button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  padding: 11px 12px;
  font-weight: 950;
  cursor: pointer;
}

.dcc-circuit-group td {
  padding: 0 !important;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.dcc-circuit-counts {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.dcc-circuit-row-hidden {
  display: none;
}

.pci-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.dcc-module-card {
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  padding: 16px;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
}

.dcc-module-card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.dcc-module-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
  font-size: 14px;
}

.dcc-module-card span {
  margin-top: auto;
  color: #0f766e;
  font-weight: 900;
  font-size: 13px;
}

.dcc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dcc-button,
.dcc-link {
  border: 1px solid #cbd7e6;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.dcc-button.is-primary,
.dcc-link.is-primary {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #ffffff;
}

.dcc-tenant-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  padding: 14px;
}

.dcc-tenant-panel summary {
  cursor: pointer;
  font-weight: 900;
}

.dcc-doc-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  margin-top: 18px;
}

.dcc-doc-list,
.dcc-doc-view,
.dcc-panel {
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  padding: 16px;
}

.dcc-doc-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 750;
}

.dcc-doc-list a:hover,
.dcc-doc-list a.is-active {
  background: #eff6ff;
}

.dcc-markdown {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.dcc-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dcc-rule-card {
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  padding: 15px;
}

.dcc-rule-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.dcc-rule-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.dcc-tenant-panel {
  padding: 0;
  border-radius: 14px;
}

.dcc-tenant-panel > .dcc-muted,
.dcc-tenant-panel > .dev-empty,
.dcc-tenant-panel > .dev-grid {
  margin: 14px;
}

@media (max-width: 760px) {
  .dev-shell.dcc-command-shell {
    padding: 14px 12px 46px;
  }

  .dcc-command-hero,
  .dcc-governance {
    grid-template-columns: 1fr;
  }

  .dcc-hero-actions,
  .dcc-governance-actions {
    justify-content: flex-start;
  }

  .dcc-overview {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 761px) and (max-width: 1100px) {
  .dcc-command-hero,
  .dcc-governance {
    grid-template-columns: 1fr;
  }

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