/* The catalog reads as a library, with a single focused preview surface. */
body.prompt-modal-open {
  overflow: hidden;
}
.prompt-page {
  min-height: calc(100dvh - var(--cb-header-height));
}
.prompt-hero {
  max-width: 880px;
  padding: 0 0 36px;
}
.prompt-hero h1 { max-width: 850px; }
.prompt-hero .lead {
  max-width: 650px;
}
.prompt-search {
  display: block;
  width: 100%;
}
.prompt-search-hero {
  margin-top: 30px;
}
.prompt-search input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--cb-surface);
  color: var(--cb-text);
  box-shadow: var(--cb-shadow);
}
.prompt-search input::placeholder {
  color: var(--cb-text-muted);
}
.prompt-catalog {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  column-gap: 48px;
  padding-top: 28px;
  scroll-margin-top: calc(var(--cb-header-height) + 24px);
}
.prompt-catalog-bar {
  position: sticky;
  top: calc(var(--cb-header-height) + 30px);
  grid-row: span 3;
  align-self: start;
}
.prompt-catalog-bar .section-head {
  margin-bottom: 24px;
}
.prompt-catalog-bar .section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 550;
}
.prompt-group-select-wrap {
  display: none;
}
.prompt-categories-scroll {
  max-height: calc(100dvh - var(--cb-header-height) - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  padding: 4px;
  margin: -4px;
}
.prompt-categories {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.prompt-category {
  min-height: 44px;
  padding: 11px 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--cb-text-soft);
  font-size: 13px;
  text-align: left;
}
.prompt-category:hover {
  background: var(--cb-surface-muted);
  color: var(--cb-text);
}
.prompt-category.active {
  background: var(--cb-accent-soft);
  color: var(--cb-accent);
  font-weight: 600;
}
.prompt-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.prompt-featured-filter {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 5px;
  background: var(--cb-surface-muted);
  color: var(--cb-text-soft);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.prompt-featured-filter:hover,
.prompt-featured-filter[aria-pressed="true"] {
  background: var(--cb-accent-soft);
  color: var(--cb-accent);
}
.prompt-results-count {
  margin: 0;
  color: var(--cb-text-muted);
  font-size: 12px;
}
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  min-width: 0;
}
.prompt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: 22px 20px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--cb-text);
  text-align: left;
  transition: background var(--cb-duration-fast), box-shadow var(--cb-duration-fast);
}
.prompt-card:hover {
  box-shadow: var(--cb-shadow);
  background: var(--cb-surface);
}
.prompt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.prompt-card-cat,
.prompt-featured-badge,
.prompt-verified {
  color: var(--cb-text-muted);
  font-size: 12px;
  line-height: 1.7;
}
.prompt-featured-badge {
  color: var(--cb-accent);
}
.prompt-card h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.prompt-card h3 svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 9px;
  vertical-align: -1px;
  color: var(--cb-text-muted);
}
.prompt-card-summary {
  margin: 0;
  color: var(--cb-text-soft);
  font-size: 14px;
  line-height: 1.8;
}
.prompt-card-tags,
.prompt-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  color: var(--cb-text-muted);
  font-size: 12px;
}
.prompt-card-tags span,
.prompt-modal-tags span {
  overflow-wrap: anywhere;
}
.prompt-load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}
.prompt-load-more,
.prompt-retry {
  min-height: 46px;
  padding: 10px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--cb-surface-muted);
  color: var(--cb-text);
  font-size: 13px;
}
.prompt-load-more:hover,
.prompt-retry:hover {
  background: var(--cb-accent-soft);
  color: var(--cb-accent);
}
.prompt-loading,
.prompt-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  color: var(--cb-text-muted);
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}
.prompt-loading .prompt-retry {
  display: block;
  margin: 22px auto 0;
}
.section-head {
  margin-bottom: 26px;
}
.section-head h2 {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 550;
}
.prompt-help > p,
.prompt-hero-aside-lead {
  margin: 0;
  color: var(--cb-text-soft);
  font-size: 14px;
  line-height: 1.9;
}
.prompt-hero-aside-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
}
.prompt-help {
  max-width: 880px;
  margin-top: 48px;
  padding: 12px 0;
}
.prompt-help summary {
  padding-block: 12px;
  color: var(--cb-text);
  font-size: 14px;
  cursor: pointer;
}
.prompt-hero-aside {
  padding: 22px 0;
}
.prompt-hero-aside h2 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 550;
}
.prompt-standard-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 26px;
}
.prompt-standard-list dt {
  font-size: 14px;
  font-weight: 550;
}
.prompt-standard-list dd {
  margin: 10px 0 0;
  color: var(--cb-text-muted);
  font-size: 13px;
  line-height: 1.85;
}
.prompt-cta {
  max-width: 880px;
  padding-top: 64px;
}
.prompt-cta-inner {
  display: block;
  margin-top: 0;
  padding: 0;
}
.prompt-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 550;
}
.prompt-cta p {
  max-width: 65ch;
  color: var(--cb-text-soft);
  font-size: 14px;
  line-height: 1.9;
}
.prompt-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}
.prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 28px;
  border: 0;
  background: transparent;
  color: var(--cb-text);
}
.prompt-modal[open] {
  display: grid;
  place-items: center;
}
.prompt-modal::backdrop {
  background: #1A1A1Aa6;
  backdrop-filter: blur(6px);
}
.prompt-modal-backdrop {
  position: absolute;
  inset: 0;
}
.prompt-modal-dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--cb-surface);
  box-shadow: var(--cb-shadow-lg);
}
.prompt-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 5px;
  background: var(--cb-surface-muted);
  color: var(--cb-text);
}
.prompt-modal-close:hover {
  background: var(--cb-accent-soft);
  color: var(--cb-accent);
}
.prompt-modal-close svg,
.prompt-copy svg {
  width: 18px;
  height: 18px;
}
.prompt-modal-body {
  max-height: inherit;
  padding: 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.prompt-modal-body:focus-visible {
  outline-offset: -5px;
}
.prompt-modal-header {
  padding-right: 36px;
}
.prompt-modal-header h2 {
  margin: 20px 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.prompt-modal-summary {
  color: var(--cb-text-soft);
  font-size: 14px;
  line-height: 1.85;
}
.prompt-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.prompt-modal-scroll {
  margin-top: 28px;
  padding: 24px;
  border-radius: 7px;
  background: var(--cb-surface-muted);
}
.prompt-content {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--cb-text-soft);
  font: 14px/1.95 var(--cb-font);
}
.prompt-modal-footer {
  margin-top: 26px;
}
.prompt-modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.prompt-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--cb-action);
  color: var(--cb-on-action);
  font-size: 14px;
  font-weight: 550;
}
.prompt-copy:hover {
  background: var(--cb-action-hover);
}
.prompt-copy.is-copied {
  background: var(--cb-surface-muted);
  color: var(--cb-success);
}
.prompt-status {
  margin: 0;
  color: var(--cb-text-soft);
  font-size: 13px;
}
.prompt-status[data-error="true"] {
  color: var(--cb-danger);
}
.prompt-modal-tip,
.prompt-modal-loading,
.prompt-modal-error {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.85;
}
.prompt-modal-tip,
.prompt-modal-loading {
  color: var(--cb-text-muted);
}
.prompt-modal-error {
  margin-bottom: 18px;
  color: var(--cb-danger);
}
@media (max-width: 900px) {
  .prompt-catalog {
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 24px;
  }
  .prompt-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .prompt-hero {
    padding: 0 0 32px;
  }
  .prompt-catalog {
    display: block;
    padding-top: 16px;
  }
  .prompt-catalog-bar {
    position: static;
  }
  .prompt-catalog-bar .section-head,
  .prompt-categories-scroll {
    display: none;
  }
  .prompt-group-select-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    font-size: 13px;
  }
  .prompt-group-select-wrap select {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: var(--cb-surface);
    color: var(--cb-text);
  }
  .prompt-grid,
  .prompt-standard-list {
    grid-template-columns: 1fr;
  }
  .prompt-card {
    padding: 24px 12px;
  }
  .prompt-cta {
    padding-top: 52px;
  }
  .prompt-help {
    margin-top: 46px;
  }
  .prompt-modal {
    padding: 12px;
  }
  .prompt-modal-dialog {
    max-height: calc(100dvh - 24px);
    border-radius: 9px;
  }
  .prompt-modal-body {
    padding: 30px 20px;
  }
  .prompt-modal-scroll {
    padding: 18px;
  }
}
