:root {
  --cc-bg: rgba(10, 15, 27, .96);
  --cc-card: rgba(17, 24, 40, .92);
  --cc-card-soft: rgba(24, 34, 55, .72);
  --cc-line: rgba(148, 163, 184, .17);
  --cc-text: #f6f8ff;
  --cc-muted: #9cabc6;
  --cc-blue: #6e8cff;
  --cc-cyan: #4fe0c1;
  --cc-violet: #9c7cff;
  --cc-green: #40d89c;
  --cc-amber: #f7c66b;
  --cc-red: #ff7188;
}

.control-center {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.cc-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--cc-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 10%, rgba(79, 224, 193, .19), transparent 34%),
    radial-gradient(circle at 12% 0%, rgba(110, 140, 255, .34), transparent 48%),
    linear-gradient(140deg, #151c3e 0%, #0c1628 52%, #092426 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.cc-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .025),
              0 0 0 70px rgba(255, 255, 255, .018);
  pointer-events: none;
}

.cc-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--cc-cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cc-cyan);
  box-shadow: 0 0 0 5px rgba(79, 224, 193, .12);
}

.cc-hero h2 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.cc-hero p {
  max-width: 760px;
  margin: 0;
  color: #b2c2df;
  font-size: 15px;
  line-height: 1.65;
}

.cc-refresh {
  flex: 0 0 auto;
  min-width: 120px;
}

.cc-global-search {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(5, 10, 20, .68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.cc-search-icon {
  color: var(--cc-cyan);
  font-size: 20px;
}

.cc-global-search input {
  width: 100%;
  padding: 4px 0;
  border: 0;
  outline: 0;
  color: var(--cc-text);
  background: transparent;
  font-size: 16px;
}

.cc-search-hint {
  color: #72809b;
  font-size: 12px;
  white-space: nowrap;
}

.cc-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: #0d1423;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

.cc-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 0;
  border-radius: 13px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.cc-search-result:hover { background: rgba(110, 140, 255, .12); }
.cc-search-result-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  color: var(--cc-cyan);
  background: rgba(255, 255, 255, .035);
}
.cc-search-result strong,
.cc-search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-search-result small { margin-top: 4px; color: var(--cc-muted); }
.cc-search-result em { color: #7483a0; font-size: 11px; font-style: normal; }

.cc-navigation {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: rgba(13, 19, 33, .88);
  scrollbar-width: thin;
}

.cc-navigation button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #aab8d1;
  background: transparent;
  font-weight: 700;
  transition: .18s ease;
}

.cc-navigation button:hover { color: white; background: rgba(255, 255, 255, .05); }
.cc-navigation button.is-active {
  color: white;
  border-color: rgba(110, 140, 255, .42);
  background: linear-gradient(135deg, rgba(110, 140, 255, .28), rgba(79, 224, 193, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.cc-view { display: grid; gap: 18px; }
.cc-loading,
.cc-empty {
  padding: 32px;
  color: var(--cc-muted);
  text-align: center;
  border: 1px dashed var(--cc-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .018);
}

.cc-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.cc-section-heading h3 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.025em; }
.cc-section-heading p { margin: 0; color: var(--cc-muted); line-height: 1.5; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-button {
  padding: 10px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  color: white;
  background: rgba(255, 255, 255, .045);
  font-weight: 750;
}
.cc-button:hover { border-color: rgba(110, 140, 255, .5); background: rgba(110, 140, 255, .12); }
.cc-button.primary { border-color: transparent; background: linear-gradient(135deg, #755dff, #397ff4); }
.cc-button.danger { color: #ffabb7; border-color: rgba(255, 113, 136, .35); }
.cc-button:disabled { opacity: .45; cursor: not-allowed; }

.cc-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cc-kpi {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--cc-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(110, 140, 255, .10), transparent 54%),
    var(--cc-card);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}
.cc-kpi-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  color: var(--cc-cyan);
  background: rgba(255, 255, 255, .045);
}
.cc-kpi-value { margin-top: 15px; font-size: 31px; font-weight: 850; letter-spacing: -.04em; }
.cc-kpi-label { color: var(--cc-muted); font-size: 13px; }
.cc-kpi-note { margin-top: 5px; color: #7e8da9; font-size: 11px; }

.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-card {
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 20px;
  background: var(--cc-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}
.cc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--cc-line);
  background: rgba(255, 255, 255, .02);
}
.cc-card-head h4 { margin: 0 0 4px; font-size: 16px; }
.cc-card-head p { margin: 0; color: var(--cc-muted); font-size: 12px; line-height: 1.45; }
.cc-card-body { padding: 16px 18px; }

.cc-list { display: grid; gap: 9px; }
.cc-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .022);
}
.cc-list-item:hover { border-color: rgba(110, 140, 255, .34); }
.cc-list-main { min-width: 0; }
.cc-list-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list-main small { display: block; margin-top: 5px; color: var(--cc-muted); line-height: 1.4; }
.cc-list-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  color: #b9c7df;
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.cc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cc-badge.healthy, .cc-badge.success, .cc-badge.up, .cc-badge.approved, .cc-badge.completed, .cc-badge.measured, .cc-badge.automatic { color: var(--cc-green); border-color: rgba(64, 216, 156, .3); }
.cc-badge.critical, .cc-badge.down, .cc-badge.failed, .cc-badge.open { color: var(--cc-red); border-color: rgba(255, 113, 136, .32); }
.cc-badge.high, .cc-badge.warning, .cc-badge.degraded, .cc-badge.ready { color: var(--cc-amber); border-color: rgba(247, 198, 107, .3); }
.cc-badge.medium, .cc-badge.monitoring, .cc-badge.running { color: var(--cc-blue); }
.cc-badge.collecting, .cc-badge.unknown, .cc-badge.not_checked { color: #8f9db8; }

.cc-health-ring {
  --score: 0;
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cc-cyan) calc(var(--score) * 1%), rgba(255,255,255,.08) 0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.cc-health-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #11192a;
}
.cc-health-ring strong { grid-area: 1 / 1; z-index: 1; font-size: 27px; }

.cc-project-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
}
.cc-select,
.cc-input,
.cc-textarea {
  width: 100%;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  color: white;
  background: #0b1220;
  outline: 0;
}
.cc-select, .cc-input { min-height: 43px; padding: 9px 12px; }
.cc-textarea { min-height: 105px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.cc-select:focus, .cc-input:focus, .cc-textarea:focus { border-color: var(--cc-blue); box-shadow: 0 0 0 3px rgba(110, 140, 255, .12); }

.cc-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--cc-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 15%, rgba(79, 224, 193, .15), transparent 35%),
    linear-gradient(135deg, rgba(110, 140, 255, .13), rgba(255, 255, 255, .02));
}
.cc-project-hero h3 { margin: 0 0 7px; font-size: 28px; }
.cc-project-hero p { margin: 0; color: var(--cc-muted); }
.cc-project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.cc-metric-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; }
.cc-mini-metric { padding: 13px; border: 1px solid var(--cc-line); border-radius: 14px; background: rgba(255,255,255,.025); }
.cc-mini-metric strong { display: block; font-size: 21px; }
.cc-mini-metric span { color: var(--cc-muted); font-size: 11px; }

.cc-flow-list { display: grid; gap: 10px; }
.cc-flow {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 86px minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.cc-node { min-width: 0; padding: 11px 12px; border: 1px solid var(--cc-line); border-radius: 12px; background: #111a2c; }
.cc-node strong, .cc-node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-node small { margin-top: 4px; color: var(--cc-muted); }
.cc-edge { position: relative; color: var(--cc-muted); font-size: 10px; text-align: center; }
.cc-edge::after { content: "→"; display: block; margin-top: 3px; color: var(--cc-cyan); font-size: 23px; }

.cc-dependency-search {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(110, 140, 255, .28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(110, 140, 255, .09), rgba(79, 224, 193, .045));
}
.cc-dependency-search label { color: #dfe7f7; font-size: 13px; font-weight: 800; }
.cc-dependency-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.cc-dependency-search > p { margin: 0; }
.cc-dependency-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-dependency-suggestions p { width: 100%; margin: 0 0 3px; color: var(--cc-muted); }
.cc-result-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 18px 13px; }
.cc-result-heading h4 { margin: 0 0 4px; font-size: 21px; }
.cc-result-heading p { margin: 0; color: var(--cc-muted); font-size: 12px; }
.cc-path-list { display: grid; gap: 10px; }
.cc-dependency-path {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.cc-dependency-path.is-single-line { margin-top: 12px; border-color: rgba(79, 224, 193, .24); }
.cc-path-node {
  flex: 0 0 auto;
  min-width: 145px;
  max-width: 250px;
  padding: 11px 12px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: #111a2c;
}
.cc-path-node.is-root { border-color: rgba(79, 224, 193, .42); background: rgba(79, 224, 193, .08); }
.cc-path-node.is-muted { border-style: dashed; background: rgba(148, 163, 184, .045); }
.cc-path-node strong, .cc-path-node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-path-node small { margin-top: 4px; color: var(--cc-muted); }
.cc-path-edge { flex: 0 0 auto; align-self: center; min-width: 62px; color: var(--cc-muted); text-align: center; }
.cc-path-edge small { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.cc-path-edge b { display: block; margin-top: 3px; color: var(--cc-cyan); font-size: 22px; }
.cc-dependency-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.cc-dependency-detail { overflow: hidden; border: 1px solid var(--cc-line); border-radius: 14px; background: rgba(255,255,255,.018); }
.cc-dependency-detail summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 13px; cursor: pointer; color: #e7eefb; font-size: 12px; font-weight: 800; }
.cc-dependency-detail summary small { color: var(--cc-muted); font-size: 10px; font-weight: 600; }
.cc-dependency-detail > div { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 13px 13px; }
.cc-dependency-detail > div span { padding: 5px 8px; border: 1px solid var(--cc-line); border-radius: 999px; color: #c8d5e8; background: rgba(255,255,255,.025); font-size: 10px; overflow-wrap: anywhere; }

.cc-callout {
  padding: 16px 18px;
  border: 1px solid rgba(110, 140, 255, .25);
  border-radius: 16px;
  background: rgba(110, 140, 255, .07);
}
.cc-callout.success { border-color: rgba(64, 216, 156, .26); background: rgba(64, 216, 156, .07); }
.cc-callout strong { display: block; margin-bottom: 5px; color: #edf3ff; }
.cc-callout p { margin: 0; color: var(--cc-muted); font-size: 12px; line-height: 1.55; }

.cc-incident-list,
.cc-change-list { display: grid; gap: 12px; }
.cc-incident-card,
.cc-change-event {
  padding: 18px;
  border: 1px solid var(--cc-line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(17, 26, 44, .98), rgba(11, 18, 32, .98));
}
.cc-incident-card h4,
.cc-change-event h4 { margin: 3px 0 5px; font-size: 17px; }
.cc-incident-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.cc-incident-facts > div { padding: 13px; border: 1px solid var(--cc-line); border-radius: 14px; background: rgba(255,255,255,.025); }
.cc-incident-facts small,
.cc-incident-facts strong,
.cc-incident-facts p { display: block; }
.cc-incident-facts small { color: var(--cc-cyan); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.cc-incident-facts strong { margin-top: 6px; color: #f2f6ff; font-size: 13px; line-height: 1.45; }
.cc-incident-facts p { margin: 6px 0 0; color: var(--cc-muted); font-size: 11px; line-height: 1.48; }
.cc-incident-timeline { display: grid; gap: 0; margin-top: 15px; padding: 2px 4px; }
.cc-incident-event { display: grid; grid-template-columns: 17px 1fr; gap: 10px; min-width: 0; }
.cc-incident-event > span { position: relative; width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--cc-cyan); border-radius: 50%; background: #101929; }
.cc-incident-event > span::after { content: ""; position: absolute; top: 9px; left: 2px; width: 1px; height: calc(100% + 35px); background: var(--cc-line); }
.cc-incident-event:last-child > span::after { display: none; }
.cc-incident-event > div { padding-bottom: 15px; }
.cc-incident-event strong,
.cc-incident-event small { display: block; }
.cc-incident-event small { margin-top: 2px; color: var(--cc-muted); font-size: 10px; }
.cc-incident-event p { margin: 6px 0 0; color: #c7d3e6; font-size: 11px; line-height: 1.5; }

.cc-change-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.cc-change-event { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 13px; }
.cc-change-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(110,140,255,.3); border-radius: 13px; color: var(--cc-cyan); background: rgba(110,140,255,.09); font-size: 20px; }
.cc-change-body { min-width: 0; }
.cc-change-details { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.cc-change-details span { min-width: 105px; padding: 8px 10px; border: 1px solid var(--cc-line); border-radius: 10px; background: rgba(255,255,255,.022); }
.cc-change-details small,
.cc-change-details strong { display: block; }
.cc-change-details small { color: var(--cc-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .045em; }
.cc-change-details strong { margin-top: 3px; overflow-wrap: anywhere; color: #dce6f5; font-size: 11px; }
.cc-explainer {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: var(--cc-card);
}
.cc-explainer > span { color: var(--cc-cyan); font-size: 22px; }
.cc-explainer > div { min-width: 0; }
.cc-explainer strong, .cc-explainer small { display: block; }
.cc-explainer small { margin-top: 5px; color: var(--cc-muted); font-size: 11px; line-height: 1.45; }
.cc-step-number { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 8px; border-radius: 8px; color: var(--cc-cyan); background: rgba(79, 224, 193, .11); font-size: 11px; font-weight: 900; }
.cc-empty-state { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--cc-line); border-radius: 18px; text-align: center; }
.cc-empty-state.success { border-color: rgba(64, 216, 156, .28); background: rgba(64, 216, 156, .045); }
.cc-empty-state strong { display: block; color: var(--cc-green); font-size: 17px; }
.cc-empty-state p { margin: 7px 0 0; color: var(--cc-muted); }

.cc-domain-grid,
.cc-security-grid,
.cc-backup-grid,
.cc-capacity-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.cc-domain-card,
.cc-security-card,
.cc-backup-card,
.cc-capacity-card {
  padding: 17px;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: var(--cc-card);
}
.cc-domain-card h4,
.cc-security-card h4,
.cc-backup-card h4,
.cc-capacity-card h4 { margin: 0 0 7px; font-size: 16px; overflow-wrap: anywhere; }
.cc-domain-card p,
.cc-security-card p,
.cc-backup-card p,
.cc-capacity-card p { margin: 0; color: var(--cc-muted); font-size: 12px; line-height: 1.5; }
.cc-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }

.cc-progress { overflow: hidden; height: 8px; margin-top: 12px; border-radius: 999px; background: rgba(255,255,255,.07); }
.cc-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cc-violet), var(--cc-cyan)); }

.cc-table-wrap { overflow: auto; border: 1px solid var(--cc-line); border-radius: 18px; }
.cc-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--cc-card); }
.cc-table th, .cc-table td { padding: 13px 14px; border-bottom: 1px solid var(--cc-line); text-align: left; vertical-align: middle; }
.cc-table th { color: #b4c2db; background: rgba(255,255,255,.035); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.cc-table td { color: #e5eaf5; font-size: 13px; }
.cc-table tr:last-child td { border-bottom: 0; }
.cc-table small { display: block; margin-top: 4px; color: var(--cc-muted); }

.cc-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 22px;
  color: white;
  background: #101727;
  box-shadow: 0 36px 120px rgba(0,0,0,.68);
}
.cc-dialog::backdrop { background: rgba(1, 4, 12, .78); backdrop-filter: blur(8px); }
.cc-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--cc-line); }
.cc-dialog-head h3 { margin: 0 0 5px; }
.cc-dialog-head p { margin: 0; color: var(--cc-muted); font-size: 12px; }
.cc-dialog-close { width: 36px; height: 36px; border: 1px solid var(--cc-line); border-radius: 11px; color: white; background: rgba(255,255,255,.04); }
.cc-dialog-form { max-height: calc(100vh - 150px); overflow: auto; padding: 20px 22px 24px; }
.cc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.cc-field { display: grid; gap: 6px; }
.cc-field.full { grid-column: 1 / -1; }
.cc-field label { color: #b4c2da; font-size: 12px; font-weight: 750; }
.cc-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.cc-form-message { min-height: 20px; margin-top: 12px; color: var(--cc-red); font-size: 13px; }
.cc-read-view { grid-column: 1 / -1; display: grid; gap: 18px; min-width: 0; }
.cc-read-section { display: grid; gap: 10px; min-width: 0; }
.cc-read-section h4 { margin: 0; }
.cc-diff { overflow: hidden; border: 1px solid var(--cc-line); border-radius: 14px; background: #090f1b; }
.cc-diff-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--cc-line); background: rgba(255,255,255,.035); }
.cc-diff pre,
.cc-job-trace {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #cad8ea;
  background: #050a12;
  font: 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}
.cc-note { padding: 13px; border: 1px solid var(--cc-line); border-radius: 13px; background: rgba(255,255,255,.025); }
.cc-note strong, .cc-note small { display: block; }
.cc-note small { margin-top: 3px; color: var(--cc-muted); }
.cc-note p { margin: 9px 0 0; color: #d9e3f3; white-space: pre-wrap; }

.cc-toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(79, 224, 193, .35);
  border-radius: 14px;
  color: white;
  background: #122532;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

@media (max-width: 920px) {
  .cc-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cc-grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cc-metric-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .cc-hero-top, .cc-section-heading { align-items: stretch; flex-direction: column; }
  .cc-refresh { width: 100%; }
  .cc-search-hint { display: none; }
  .cc-grid, .cc-grid.three, .cc-domain-grid, .cc-security-grid,
  .cc-backup-grid, .cc-capacity-grid { grid-template-columns: 1fr; }
  .cc-project-hero { grid-template-columns: 1fr; }
  .cc-health-ring { width: 88px; }
  .cc-health-ring::before { width: 64px; height: 64px; }
  .cc-metric-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cc-flow { grid-template-columns: 1fr; }
  .cc-edge::after { content: "↓"; }
  .cc-form-grid { grid-template-columns: 1fr; }
  .cc-field.full { grid-column: auto; }
  .cc-project-toolbar { grid-template-columns: 1fr; }
  .cc-dependency-search > div { grid-template-columns: 1fr; }
  .cc-change-search-grid,
  .cc-incident-facts { grid-template-columns: 1fr; }
  .cc-dependency-detail-grid { grid-template-columns: 1fr; }
  .cc-change-event { grid-template-columns: 1fr; }
  .cc-explainer { grid-template-columns: 1fr; }
  .cc-explainer > span { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 460px) {
  .cc-kpis { grid-template-columns: 1fr; }
  .cc-hero { padding: 22px; border-radius: 22px; }
  .cc-global-search { grid-template-columns: auto 1fr; }
  .cc-metric-strip { grid-template-columns: 1fr 1fr; }
}
