.presentation-card-preview {
  container-type: inline-size;
  width: 100%;
}

.presentation-runbook-card {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 7.2%;
  border: 1px solid rgba(10, 24, 45, 0.14);
  border-radius: 18px;
  color: #07152c;
  background: #eef5ff;
  box-shadow: 0 22px 54px rgba(10, 28, 57, 0.2);
  isolation: isolate;
}

.presentation-runbook-card::before,
.presentation-runbook-card::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: '';
}

.presentation-runbook-card::before {
  background-image: var(--runbook-background);
  background-position: center;
  background-size: cover;
}

.presentation-runbook-card::after {
  z-index: -1;
  background: rgba(255, 255, 255, 0.18);
}

.presentation-runbook-card.theme-executive {
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.18);
  background: #0b1930;
}

.presentation-runbook-card.theme-executive::after {
  background: rgba(5, 17, 36, 0.2);
}

.runbook-card-brand,
.presentation-runbook-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.runbook-card-brand b {
  color: #1768ff;
  font-weight: 760;
  letter-spacing: 0;
}

.theme-executive .runbook-card-brand b {
  color: #8db8ff;
}

.theme-training .runbook-card-brand b {
  color: #c8533f;
}

.presentation-runbook-card > header {
  position: relative;
  padding: 8.5% 0 6.5%;
}

.presentation-runbook-card > header p {
  margin: 0 0 5px;
  opacity: 0.7;
  font-size: 8px;
  font-weight: 680;
  line-height: 1.35;
}

.presentation-runbook-card > header h3 {
  max-width: 77%;
  margin: 0;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.presentation-runbook-card > header strong {
  position: absolute;
  top: 34%;
  right: 0;
  color: #1768ff;
  font-size: 10px;
  font-weight: 800;
}

.theme-executive .presentation-runbook-card > header strong {
  color: #8db8ff;
}

.theme-training .presentation-runbook-card > header strong {
  color: #c8533f;
}

.runbook-card-surface {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 9%;
  border: 1px solid rgba(7, 21, 44, 0.1);
  border-radius: 13px;
  color: #07152c;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.theme-executive .runbook-card-surface {
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fbff;
  background: rgba(5, 17, 36, 0.86);
}

.theme-training .runbook-card-surface {
  color: #152b30;
  background: rgba(255, 252, 246, 0.91);
}

.runbook-card-surface > section {
  min-width: 0;
}

.runbook-card-surface > section > span {
  display: block;
  margin-bottom: 3px;
  color: #1768ff;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.theme-executive .runbook-card-surface > section > span {
  color: #8db8ff;
}

.theme-training .runbook-card-surface > section > span {
  color: #c8533f;
}

.runbook-card-surface p {
  margin: 0;
  font-size: 7px;
  font-weight: 610;
  line-height: 1.38;
}

.runbook-card-timeline ol,
.runbook-card-reminders ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runbook-card-timeline li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid rgba(7, 21, 44, 0.1);
  font-size: 6px;
  line-height: 1.2;
}

.theme-executive .runbook-card-timeline li {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.runbook-card-timeline li b {
  color: #1768ff;
}

.theme-executive .runbook-card-timeline li b {
  color: #8db8ff;
}

.runbook-card-timeline li em {
  overflow: hidden;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runbook-card-timeline li small {
  opacity: 0.62;
  font-size: 5.5px;
}

.runbook-card-reminders li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.runbook-card-reminders li b {
  display: grid;
  min-height: 18px;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  background: #1768ff;
  font-size: 6px;
}

.theme-executive .runbook-card-reminders li b {
  color: #07152c;
  background: #8db8ff;
}

.theme-training .runbook-card-reminders li b {
  background: #c8533f;
}

.runbook-card-question {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(7, 21, 44, 0.1);
}

.theme-executive .runbook-card-question {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.presentation-runbook-card > footer {
  margin-top: 6%;
  opacity: 0.7;
  font-size: 6px;
  letter-spacing: 0;
  text-transform: none;
}

.presentation-runbook-card > footer span {
  max-width: 74%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container (min-width: 300px) {
  .runbook-card-brand,
  .presentation-runbook-card > footer { font-size: 11px; }
  .presentation-runbook-card > header p { font-size: 11px; }
  .presentation-runbook-card > header h3 { font-size: 25px; }
  .presentation-runbook-card > header strong { font-size: 14px; }
  .runbook-card-surface { gap: 12px; }
  .runbook-card-surface > section > span { font-size: 8px; }
  .runbook-card-surface p { font-size: 10px; }
  .runbook-card-timeline li {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    font-size: 9px;
  }
  .runbook-card-timeline li small { font-size: 8px; }
  .runbook-card-reminders li { grid-template-columns: 30px minmax(0, 1fr); }
  .runbook-card-reminders li b { min-height: 25px; font-size: 9px; }
  .presentation-runbook-card > footer { font-size: 8px; }
}
