.inside-playbook-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 0.25rem;
}

body {
  background-color: #d8bd95 !important;
  background-image:
    linear-gradient(rgba(236, 218, 189, 0.08), rgba(203, 161, 109, 0.1)),
    url("/assets/corkboard-background.png") !important;
  background-repeat: repeat, repeat !important;
  background-size: auto, 512px auto !important;
  background-attachment: fixed !important;
}

.check-index-num {
  font-family: "Patrick Hand", ui-rounded, cursive;
  font-size: 16px;
  line-height: 1;
  min-width: 26px;
  text-align: center;
  margin-right: 2px;
  margin-top: -1px;
  -webkit-text-stroke: 1.1px rgba(58, 58, 58, 0.38);
  display: inline-block;
  flex: 0 0 auto;
}

.check-index-num[data-step="01"] {
  transform: rotate(-2.5deg);
  color: rgba(246, 209, 200, 0.95);
}

.check-index-num[data-step="02"] {
  transform: rotate(1.8deg);
  color: rgba(207, 230, 214, 0.98);
}

.check-index-num[data-step="03"] {
  transform: rotate(-1.2deg);
  color: rgba(207, 226, 246, 0.98);
}

.check-index-num[data-step="04"] {
  transform: rotate(2.2deg);
  color: rgba(246, 230, 168, 0.98);
}

.check-index-num[data-step="05"] {
  transform: rotate(-1.6deg);
  color: rgba(227, 214, 246, 0.98);
}

.check-index-num[data-step="06"] {
  transform: rotate(1.4deg);
  color: rgba(200, 238, 228, 0.98);
}

.inside-chip {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(58, 58, 58, 0.22);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.inside-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 58, 58, 0.42);
  background: rgba(255, 255, 255, 0.75);
}

.conversion-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem 1.2rem;
  align-items: center;
  margin-top: -10px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 2px solid rgba(58, 58, 58, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.conversion-title {
  font-family: "Patrick Hand", ui-rounded, cursive;
  font-size: 1.2rem;
}

.conversion-sub {
  margin: 0.15rem 0 0;
  color: rgba(58, 58, 58, 0.78);
  font-size: 0.92rem;
}

.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.conversion-btn {
  border: 1.5px solid rgba(58, 58, 58, 0.25);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.84rem;
  background: rgba(246, 230, 168, 0.75);
  color: #1f1f1f;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.conversion-btn:hover {
  transform: translateY(-1px);
  background: #f9efc4;
}

.conversion-btn.alt {
  background: rgba(207, 226, 246, 0.75);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  border: 1.5px solid rgba(58, 58, 58, 0.3);
  background: rgba(247, 243, 234, 0.95);
  color: #1f1f1f;
  border-radius: 999px;
  padding: 0.55rem 0.82rem;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 860px) {
  .conversion-panel {
    grid-template-columns: 1fr;
  }

  .conversion-actions {
    justify-content: flex-start;
  }
}

/* Align hero sticky-note callout across original + generated playbooks */
@media (min-width: 821px) {
  .doodle-note {
    right: -28px !important;
    top: -54px !important;
  }

  .doodle-bulb {
    right: -8px !important;
    top: -72px !important;
  }
}

.playbook-section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.playbook-section-num {
  font-family: "Patrick Hand", ui-rounded, cursive;
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1;
  display: inline-block;
  -webkit-text-stroke: 1.5px rgba(58, 58, 58, 0.45);
}

.playbook-section-label {
  display: inline-block;
}

.playbook-section-num[data-step="01"],
.playbook-section-num[data-step="07"] {
  transform: rotate(-2.5deg);
  color: rgba(246, 209, 200, 0.9);
}

.playbook-section-num[data-step="02"],
.playbook-section-num[data-step="08"] {
  transform: rotate(1.8deg);
  color: rgba(207, 230, 214, 0.9);
}

.playbook-section-num[data-step="03"],
.playbook-section-num[data-step="09"] {
  transform: rotate(-1.2deg);
  color: rgba(207, 226, 246, 0.9);
}

.playbook-section-num[data-step="04"],
.playbook-section-num[data-step="10"] {
  transform: rotate(2.2deg);
  color: rgba(246, 230, 168, 0.9);
}

.playbook-section-num[data-step="05"],
.playbook-section-num[data-step="11"] {
  transform: rotate(-1.6deg);
  color: rgba(227, 214, 246, 0.9);
}

.playbook-section-num[data-step="06"],
.playbook-section-num[data-step="12"] {
  transform: rotate(1.4deg);
  color: rgba(200, 238, 228, 0.9);
}

@media print {
  html,
  body {
    height: auto !important;
    overflow: visible !important;
  }

  body {
    background: #ffffff !important;
  }

  .wrap {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .page {
    width: 100% !important;
    margin: 0 0 10mm !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
    break-after: page !important;
    page-break-after: always !important;
  }

  .page:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }

  .prompt-tabs,
  .prompt-select,
  .prompt-tab-count {
    display: none !important;
  }

  .prompt-tab-panel {
    display: block !important;
  }

  .codeish-wrap,
  .codeish-wrap.truncated {
    max-height: none !important;
    overflow: visible !important;
  }

  .prompt-expand-btn {
    display: none !important;
  }

  .collapsible-area-content,
  .collapsible,
  .collapsible-content,
  .collapsible-content.open {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
}
