.runbook-demo-content {
  max-width: 1180px;
}

.runbook-demo-content h4 {
  color: #172033;
  font-size: 2rem;
}

.runbook-demo-content > section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5rem;
}

.runbook-evidence-status {
  background: #fff8e6;
  border: 1px solid #e8c96a;
  border-radius: .4rem;
  color: #584817;
  margin-bottom: 2rem;
  padding: .9rem 1rem;
}

.runbook-verification-panel {
  border: 1px solid #d8dee8;
  border-radius: .4rem;
  margin: 1rem 0;
  overflow: hidden;
}

.runbook-rollback {
  background: #f6f8fa;
  border-left: 3px solid #64748b;
  padding: .7rem .85rem;
}

.runbook-eyebrow,
.runbook-code-label {
  color: #64748b !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.runbook-eyebrow {
  margin-bottom: .3rem;
}

.runbook-resources {
  color: #64748b;
  font-size: .9rem;
  margin-top: 1rem;
}

.runbook-resources a {
  white-space: nowrap;
}

.runbook-code-block {
  background: #f7f9fc;
  border: 1px solid #d8dee8;
  border-left: 3px solid #0d6efd;
  border-radius: .35rem;
  margin-bottom: 1.4rem;
  position: relative;
}

.runbook-code-block pre {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  margin: 0;
  overflow-x: auto;
  padding: 1rem 3rem 1rem 1.2rem;
}

.runbook-copy-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 2.25rem;
  position: absolute;
  right: .55rem;
  top: .55rem;
  width: 2.25rem;
  z-index: 1;
}

.runbook-copy-button span::before,
.runbook-copy-button span::after {
  border: 1.5px solid #536175;
  border-radius: 2px;
  content: '';
  height: .72rem;
  position: absolute;
  width: .62rem;
}

.runbook-copy-button span::before {
  left: .65rem;
  top: .65rem;
}

.runbook-copy-button span::after {
  left: .88rem;
  top: .88rem;
}

.runbook-copy-button.copied::after {
  color: #16803a;
  content: 'Copied';
  font-size: .7rem;
  position: absolute;
  right: 2.15rem;
  top: .65rem;
}

.runbook-verification-panel summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(145px, auto) minmax(0, 1fr) auto;
  list-style: none;
  padding: .9rem 1.1rem .9rem 2.7rem;
  position: relative;
}

.runbook-verification-panel summary::-webkit-details-marker {
  display: none;
}

.runbook-verification-panel summary::before {
  border-bottom: 2px solid #526176;
  border-right: 2px solid #526176;
  content: '';
  height: .45rem;
  left: 1.15rem;
  position: absolute;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  width: .45rem;
}

.runbook-verification-panel[open] summary::before {
  transform: rotate(45deg) translateY(-2px);
}

.runbook-verification-panel[open] summary {
  color: #0d6efd;
}

.runbook-summary-title {
  font-weight: 700;
}

.runbook-summary-preview {
  color: #64748b;
  font-size: .86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runbook-panel-body {
  border-top: 1px solid #edf0f4;
  padding: 1rem 1.25rem 1.25rem 2.7rem;
}

.runbook-panel-body .runbook-code-block:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .runbook-howto-page .howto-sidebar {
    max-height: 16rem;
    overflow-y: auto;
  }

  .runbook-verification-panel summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .runbook-summary-preview {
    display: none;
  }

  .runbook-panel-body {
    padding-left: 1rem;
  }
}

/* ---- verify panels (per-channel evidence) ---- */
.runbook-verify-heading {
  margin: 1.4rem 0 .6rem;
}

.runbook-verification-panel.runbook-verify-watcher { border-left: 3px solid #64748b; }
.runbook-verification-panel.runbook-verify-monitoring { border-left: 3px solid #0d6efd; }
.runbook-verification-panel.runbook-verify-sdk { border-left: 3px solid #237a36; }
.runbook-verification-panel.runbook-verify-agent { border-left: 3px solid #7c3aed; }

.runbook-source-badge {
  background: #eef2f7;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  color: #465469;
  font-size: .72rem;
  padding: .12rem .5rem;
  white-space: nowrap;
}

.runbook-panel-image,
.runbook-section-image {
  border: 1px solid #d8dee8;
  border-radius: .35rem;
  display: block;
  margin: .5rem 0 1rem;
  max-width: 100%;
}

.runbook-panel-path {
  background: #f6f8fa;
  border-left: 3px solid #0d6efd;
  margin: 0 0 .5rem;
  padding: .7rem .85rem;
}

.runbook-interpretation {
  background: #f0f6ff;
  border: 1px solid #9fc4ff;
  border-radius: .3rem;
  color: #243447 !important;
  margin: .2rem 0 0;
  padding: .6rem .8rem;
}

.runbook-demo-content :not(pre) > code {
  background: #eef2f7;
  border: 1px solid #d8dee8;
  border-radius: .25rem;
  color: #243447;
  font-size: .85em;
  padding: .1rem .35rem;
  white-space: nowrap;
}

.runbook-agent-prompt {
  margin: 0 0 .6rem;
}

.runbook-panel-quote {
  background: #faf9ff;
  border: 1px solid #e0d8f5;
  border-radius: .3rem;
  padding: .6rem .85rem;
}

.runbook-panel-quote p {
  margin: 0 0 .4rem;
}

.runbook-panel-quote p:last-child {
  margin-bottom: 0;
}
