.promppt-library {
  --promppt-navy: #233859;
  --promppt-teal: #278ca4;
  --promppt-teal-pale: #e9f7fa;
  --promppt-card: #f5f7f8;
  --promppt-muted: #5d6a7d;
  --promppt-line: #dbe3e8;
  color: var(--promppt-navy);
  font-family: "Google Sans", "Product Sans", Arial, Helvetica, sans-serif;
}

.promppt-library *,
.promppt-library *::before,
.promppt-library *::after {
  box-sizing: border-box;
}

.promppt-library__panel {
  overflow: hidden;
  border: 1px solid rgba(35, 56, 89, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(23, 42, 73, 0.08);
}

.promppt-library__section {
  padding: 42px 38px 46px;
  scroll-margin-top: 110px;
}

.promppt-library__section + .promppt-library__section {
  border-top: 1px solid var(--promppt-line);
}

.promppt-library__section-header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 27px;
}

.promppt-library__number {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid #b8e5ed;
  border-radius: 17px;
  background: var(--promppt-teal-pale);
  color: var(--promppt-teal);
  font-size: 16px;
  font-weight: 900;
}

.promppt-library__eyebrow {
  margin: 1px 0 5px;
  color: var(--promppt-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.promppt-library__section-title {
  margin: 0;
  color: var(--promppt-navy);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.promppt-library__intro {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--promppt-muted);
  font-size: 14px;
  line-height: 1.6;
}

.promppt-library__resources {
  display: grid;
  gap: 14px;
}

.promppt-resource {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--promppt-card);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.promppt-resource:hover {
  border-color: #cde9ee;
  background: #f8fbfc;
}

.promppt-resource__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #b8e5ed;
  border-radius: 13px;
  background: #fff;
  color: var(--promppt-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.promppt-resource__icon--video {
  padding-left: 3px;
  border-radius: 50%;
  background: var(--promppt-teal-pale);
  font-size: 17px;
}

.promppt-resource__icon--link {
  font-size: 18px;
}

.promppt-resource__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.promppt-resource__title {
  margin: 0;
  color: var(--promppt-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.promppt-resource__duration {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5ecef;
  color: #526174;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.promppt-resource__description {
  margin: 5px 0 0;
  color: var(--promppt-muted);
  font-size: 13px;
  line-height: 1.48;
}

.promppt-resource__note {
  margin: 7px 0 0;
  color: #6a5b42;
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
}

.promppt-resource__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  min-height: 46px;
  margin: 0;
  padding: 10px 16px;
  border: 2px solid var(--promppt-navy);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--promppt-navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.promppt-resource__action:hover,
.promppt-resource__action:focus-visible {
  border-color: var(--promppt-navy);
  background: var(--promppt-navy);
  color: #fff;
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.promppt-resource__action:focus-visible {
  box-shadow: 0 0 0 4px rgba(39, 140, 164, 0.25);
}

.promppt-lightbox {
  width: min(1000px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: #0c1729;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.promppt-lightbox::backdrop {
  background: rgba(10, 20, 35, 0.82);
  backdrop-filter: blur(4px);
}

.promppt-lightbox[open] {
  animation: promppt-dialog-in 0.18s ease-out;
}

.promppt-lightbox__window {
  overflow: hidden;
  border-radius: inherit;
}

.promppt-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
  padding: 12px 14px 12px 22px;
  background: var(--promppt-navy);
}

.promppt-lightbox__title {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promppt-lightbox__close {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 300 28px/1 "Google Sans", "Product Sans", Arial, Helvetica, sans-serif;
}

.promppt-lightbox__close:hover,
.promppt-lightbox__close:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--promppt-navy);
  outline: none;
}

.promppt-lightbox__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.promppt-lightbox__stage iframe,
.promppt-lightbox__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.promppt-lightbox-open {
  overflow: hidden;
}

@keyframes promppt-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
  .promppt-library__section {
    padding: 32px 18px 36px;
  }

  .promppt-library__section-header {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .promppt-library__number {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .promppt-library__section-title {
    font-size: 22px;
  }

  .promppt-resource {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .promppt-resource__icon {
    width: 42px;
    height: 42px;
  }

  .promppt-resource__action {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
    min-height: 40px;
    margin-top: 2px;
    padding: 8px 14px;
  }

  .promppt-lightbox {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .promppt-lightbox__bar {
    min-height: 56px;
    padding: 8px 9px 8px 16px;
  }

  .promppt-lightbox__title {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promppt-library *,
  .promppt-library *::before,
  .promppt-library *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
