.service-card-actions {
  display: grid;
  gap: .5rem;
}
.service-card-actions summary {
  min-height: 2.75rem;
  gap: .65rem;
  padding-block: .45rem;
}
.service-demo-launch {
  justify-self: start;
  min-height: 2.75rem;
  padding: .3rem .7rem;
  border: 1px solid #a9c9d0;
  border-radius: .35rem;
  background: #edf7f8;
  color: #075060;
  font-size: .875rem;
  font-weight: 730;
  cursor: pointer;
}
.service-demo-launch:hover { background: #def2f5; border-color: #6e9fac; }

.service-demo {
  width: min(52.5rem, calc(100% - 1.75rem));
  max-height: calc(100% - 1.75rem);
  max-height: calc(100dvh - 1.75rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #3c6274;
  border-radius: .85rem;
  background: #081c29;
  color: #edf9fc;
  box-shadow: 0 1.25rem 5rem #020e17c0;
  color-scheme: dark;
  overscroll-behavior: contain;
}
.service-demo::backdrop { background: #030d18be; }
.service-demo :focus-visible { outline-color: var(--cyan); outline-offset: 3px; }
.service-demo-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .75rem;
  padding: clamp(.95rem, 3vw, 1.65rem);
  background: #0d2636;
  border-bottom: 1px solid #385666;
}
.service-demo-category { margin-bottom: .38rem; color: #9ee6ee; font-size: .82rem; font-weight: 700; }
.service-demo-header h2 { font-size: clamp(1.38rem, 4.2vw, 2.15rem); letter-spacing: -.037em; }
.service-demo-body { padding: clamp(.95rem, 3vw, 1.65rem); min-width: 0; }
.service-demo-body .rack-experience { margin-inline: auto; max-width: 42rem; }
.service-demo-body .rack-close { display: none; }
.demo-panel p { line-height: 1.48; }
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}
.demo-card {
  min-width: 0;
  padding: clamp(.8rem, 2.6vw, 1.25rem);
  border: 1px solid #315365;
  border-radius: .55rem;
  background: #0e2838;
}
.demo-card h3 { margin-bottom: .72rem; font-size: 1.06rem; }
.demo-card > p + p { margin-top: .65rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .95rem; }
.service-demo-close, .demo-button {
  font: inherit;
  font-size: .86rem;
  font-weight: 730;
  cursor: pointer;
  min-height: 2.48rem;
  padding: .38rem .7rem;
  border-radius: .35rem;
  border: 1px solid #5d8292;
  background: #153546;
  color: #edf9fc;
}
.service-demo-close:hover, .demo-button:not(:disabled):hover { border-color: var(--cyan); }
.demo-button.demo-primary { background: #77dfed; color: #09222e; border-color: #77dfed; }
.demo-button.demo-primary:not(:disabled):hover { background: #a2edf5; }
.demo-button:disabled { opacity: .48; cursor: default; }
.demo-label { display: block; margin-bottom: .38rem; font-size: .86rem; font-weight: 700; }
.demo-control {
  width: 100%;
  min-height: 2.65rem;
  font: inherit;
  border: 1px solid #5c7c8d;
  border-radius: .32rem;
  padding: .36rem .52rem;
  background: #0a1d2a;
  color: #eef8fb;
}
.demo-field + .demo-field { margin-top: .8rem; }
.demo-controls label:has(output) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .7rem; }
.demo-controls input[type=range] {
  display: block;
  width: 100%;
  min-height: 1.85rem;
  margin: 0;
  accent-color: var(--cyan);
}
.demo-controls output { color: #9ceeef; font-weight: 750; font-variant-numeric: tabular-nums; }
.demo-status { margin-top: .9rem; color: #ace8ed; font-size: .9rem; }
.demo-status[data-tone=warning] { color: #ffda9e; }
.demo-note { margin-top: .95rem; color: #b3cbd6; font-size: .82rem; }
.demo-readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: .8rem;
}
.demo-readouts > div { border-top: 1px solid #3e6577; padding-top: .6rem; }
.demo-readouts dt { color: #c5d9df; font-size: .82rem; }
.demo-readouts dd { margin-top: .2rem; font-size: clamp(1.1rem, 3.8vw, 1.65rem); font-weight: 760; font-variant-numeric: tabular-nums; }
.demo-flow {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.demo-flow li {
  display: flex;
  gap: .55rem;
  align-items: center;
  color: #d5f0f1;
  font-size: .84rem;
  font-weight: 700;
}
.demo-flow li + li::before { content: "→"; color: #76d9e6; }
.demo-incident { margin: 0; }
.demo-incident > div { padding: .48rem 0; border-top: 1px solid #395a6c; }
.demo-incident dt { color: #b8d0da; font-size: .8rem; }
.demo-incident dd { margin-top: .18rem; font-weight: 710; }
.demo-events {
  border-left: 1px solid #4d8496;
  margin: 0 0 0 .25rem;
  padding-left: .85rem;
  list-style: none;
}
.demo-events li { position: relative; margin-bottom: .85rem; line-height: 1.44; }
.demo-events li::before {
  position: absolute;
  left: -1.11rem;
  top: .4rem;
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: #87def0;
  content: "";
}
.demo-events li:last-child { margin-bottom: 0; }
.demo-resource + .demo-resource { margin-top: .8rem; }
.demo-resource div { display: flex; flex-wrap: wrap; gap: .15rem .65rem; justify-content: space-between; font-size: .85rem; }
.demo-resource span:last-child { color: #b8eaf1; font-variant-numeric: tabular-nums; }
.demo-resource meter { display: block; width: 100%; height: .78rem; }
.demo-resource meter::-webkit-meter-bar { background: #071924; border: 1px solid #436778; }
.demo-resource meter::-webkit-meter-optimum-value { background: #77dfed; }
.demo-resource meter::-moz-meter-bar { background: #77dfed; }
.demo-document {
  margin: .45rem 0 0;
  padding: .75rem;
  border-radius: .35rem;
  color: #173442;
  background: #eaf4f7;
  font: 500 .82rem/1.58 ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.demo-ring {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(2.45rem, auto));
  gap: clamp(2.2rem, 9vw, 4rem) clamp(1.8rem, 8vw, 3.75rem);
  align-items: stretch;
  padding: .15rem;
}
.demo-ring-node {
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid #628497;
  border-radius: .35rem;
  background: #0a1e2c;
  padding: .32rem;
  font-size: .9rem;
  font-weight: 710;
}
.demo-ring-edge { position: absolute; pointer-events: none; border: 0 dashed #7398aa; }
.demo-ring-edge[data-link=ab], .demo-ring-edge[data-link=dc] { left: 25%; width: 50%; border-top-width: 3px; }
.demo-ring-edge[data-link=ab] { top: 1.35rem; }
.demo-ring-edge[data-link=dc] { bottom: 1.28rem; }
.demo-ring-edge[data-link=ad], .demo-ring-edge[data-link=bc] { top: 1.35rem; bottom: 1.35rem; border-left-width: 3px; }
.demo-ring-edge[data-link=ad] { left: 24%; }
.demo-ring-edge[data-link=bc] { right: 24%; }
.demo-ring-edge[data-state=active] { border-style: solid; border-color: #7ae0ee; }
.demo-ring-edge[data-state=cut] { border-style: dotted; border-color: #ffd195; }
.demo-ring-edge[data-state=cut]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "×";
  transform: translate(-50%, -50%);
  color: #ffd195;
  background: #102838;
  padding: 0 .15rem;
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 800;
}

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