:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #111821;
  --panel-soft: #0f151d;
  --line: rgba(47, 221, 199, 0.22);
  --text: #f3faf9;
  --muted: #9bb4c1;
  --dim: #60747f;
  --teal: #2dddc7;
  --teal-soft: rgba(45, 221, 199, 0.13);
  --chip: #171f2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 66%, rgba(0, 117, 100, 0.18), transparent 30%),
    linear-gradient(135deg, #071018 0%, #0b1119 48%, #071016 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.page {
  width: min(1560px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 38px 0 46px;
}

.hero {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.brand-icon {
  width: 49px;
  height: 49px;
  border: 1px solid rgba(209, 255, 249, 0.9);
  border-radius: 15px;
  position: relative;
  flex: 0 0 auto;
  background: rgba(45, 221, 199, 0.04);
  box-shadow: none;
}

.brand-icon span {
  position: absolute;
  left: 14px;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 999px;
  transform: rotate(-25deg);
}

.brand-icon span:first-child {
  top: 18px;
}

.brand-icon span:last-child {
  top: 29px;
}

.eyebrow {
  display: block;
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
}

h1 {
  display: block;
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

.intro-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.intro-row span {
  display: block;
  width: 60px;
  height: 1px;
  background: #0f7e73;
}

.intro-row p {
  margin: 0;
  color: #a7c5d4;
  font-size: 15px;
}

.filter-panel {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 128px;
  margin-bottom: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(8, 12, 17, 0.86);
  box-shadow: 0 20px 62px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.major-tabs,
.category-tabs {
  align-items: center;
}

.major-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 132px)) minmax(240px, 1fr);
  min-height: 62px;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(var(--category-count, 8), minmax(104px, 1fr));
  min-height: 56px;
  gap: 8px;
  margin: 14px 24px 18px;
  padding: 6px;
  border: 1px solid rgba(130, 164, 180, 0.15);
  border-radius: 14px;
  background: rgba(16, 25, 37, 0.76);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.22);
  overflow-x: auto;
  overflow-y: hidden;
}

.major-tab,
.category-tab {
  border: 0;
  background: transparent;
  color: #adc2d2;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.major-tab:hover,
.category-tab:hover {
  color: var(--teal);
}

.major-tab {
  display: inline-flex;
  align-items: center;
  height: 62px;
  min-width: 132px;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px 14px 0 0;
  border-bottom: 2px solid transparent;
  font-size: 15px;
}

.major-tab.active {
  color: var(--teal);
  font-weight: 700;
  border-bottom-color: var(--teal);
  background: linear-gradient(180deg, rgba(45, 221, 199, 0.12), rgba(45, 221, 199, 0.03));
  box-shadow: 0 10px 32px rgba(45, 221, 199, 0.18);
}

.vault-search {
  justify-self: end;
  width: min(330px, 30vw);
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(130, 164, 180, 0.18);
  border-radius: 999px;
  background: rgba(10, 17, 27, 0.76);
  color: var(--teal);
}

.vault-search span::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 7px 7px 0 -5.5px currentColor;
  transform: rotate(-12deg);
}

.vault-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #d8eef2;
  font: inherit;
  font-size: 13px;
}

.vault-search input::placeholder {
  color: rgba(174, 198, 211, 0.58);
}

.category-tab {
  min-height: 34px;
  width: 100%;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 34px;
  color: #bed1df;
  text-align: center;
}

.category-tab.active {
  background:
    linear-gradient(180deg, #2fd8c9, #28caba);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 16px rgba(45, 221, 199, 0.18);
}

.category-tab.active::after {
  content: none;
}

.content-panel {
  position: relative;
  z-index: 1;
  min-height: 500px;
  margin-top: 0;
  padding: 25px 44px 54px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 0% 45%, rgba(0, 205, 180, 0.14), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(35, 112, 132, 0.08), transparent 32%),
    rgba(8, 14, 22, 0.92);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    0 0 46px rgba(0, 130, 111, 0.1);
}

.content-head {
  display: none;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
}

.active-path {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.content-head > p {
  display: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.copy-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.image-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.card {
  min-height: 214px;
  border: 1px solid rgba(53, 94, 97, 0.62);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  position: relative;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.text-template-card {
  min-height: 220px;
  padding: 0;
  border-color: rgba(54, 111, 124, 0.62);
  border-radius: 9px;
  background:
    radial-gradient(250px 160px at 11% 1%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 66%),
    radial-gradient(220px 145px at 98% -8%, rgba(59, 112, 202, 0.13), transparent 70%),
    linear-gradient(145deg, rgba(11, 27, 37, 0.98), rgba(7, 13, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(103, 235, 226, 0.12), 0 14px 34px rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.text-template-card:hover {
  border-color: rgba(45, 221, 199, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(103, 235, 226, 0.16),
    0 16px 38px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(45, 221, 199, 0.12);
}

.text-template-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(45, 221, 199, 0.1), transparent 45%),
    radial-gradient(220px 120px at 100% -28px, rgba(76, 160, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.text-template-card .card-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 22px 16px;
}

.copy-card-top,
.copy-card-main,
.copy-card-tags,
.copy-card-footer {
  position: relative;
  z-index: 1;
}

.copy-card-top {
  padding: 16px 16px 0;
}

.copy-card-main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 16px 0;
}

.copy-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 68%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.32), transparent 32%),
    color-mix(in srgb, var(--accent) 45%, rgba(6, 16, 25, 0.92));
  color: #ecfffc;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 25%, transparent);
}

.copy-card-icon svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: currentColor;
}

.copy-card-copy {
  min-width: 0;
}

.text-template-card .badge {
  margin-bottom: 0;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(17, 146, 132, 0.96), rgba(12, 120, 109, 0.96));
  color: #dffffb;
}

.text-template-card h3 {
  margin: 0 0 7px;
  font-size: 23px;
  line-height: 1.25;
}

.text-template-card p {
  margin: 16px 0 0;
  max-width: 100%;
  color: #9fb7c5;
  font-size: 13px;
  line-height: 2.05;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-template-card .copy-card-copy p {
  margin-top: 16px;
  line-height: 2.05;
}

.text-template-card a {
  margin-top: auto;
  color: var(--teal);
  font-size: 13px;
}

.text-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #a7bbc7;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.text-detail-link::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px rgba(8, 17, 25, 0.9);
}

.text-detail-link:hover {
  color: var(--teal);
}

.copy-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 16px 68px;
}

.copy-card-tags span {
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #aebfca;
  font-size: 12px;
  font-weight: 800;
}

.copy-card-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  border-top: 1px solid rgba(130, 164, 180, 0.11);
  background: rgba(3, 8, 13, 0.2);
}

.copy-card-footer .text-detail-link {
  min-width: 118px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid rgba(130, 164, 180, 0.3);
  border-radius: 7px;
  background: rgba(14, 22, 32, 0.8);
  color: #e7f4f6;
  font-size: 13px;
  font-weight: 800;
}

.copy-card-footer .text-detail-link::before {
  display: none;
}

.copy-card-footer .text-detail-link::after {
  content: ">";
  color: var(--teal);
  font-size: 15px;
  line-height: 1;
}

.copy-card-footer .text-detail-link:hover {
  border-color: rgba(45, 221, 199, 0.52);
  color: #ffffff;
  background: rgba(18, 30, 42, 0.95);
}

.copy-card-copy-button {
  min-width: 144px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(45, 221, 199, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(45, 221, 199, 0.72), rgba(11, 137, 130, 0.82));
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(45, 221, 199, 0.22);
}

.copy-card-copy-button::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: -3px -3px 0 -1px rgba(10, 150, 140, 0.8), -3px -3px 0 0 currentColor;
}

.copy-placeholder-card {
  min-height: 254px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-color: rgba(130, 164, 180, 0.22);
  background: rgba(9, 17, 27, 0.66);
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.copy-placeholder-card::before {
  display: none;
}

.text-template-card.copy-placeholder-card {
  background: rgba(9, 17, 27, 0.66);
}

.copy-placeholder-card:hover {
  border-color: rgba(45, 221, 199, 0.72);
  background: rgba(9, 20, 28, 0.78);
  box-shadow: inset 0 0 0 1px rgba(45, 221, 199, 0.08), 0 0 28px rgba(45, 221, 199, 0.13);
}

.copy-placeholder-card:hover .placeholder-plus {
  border-color: rgba(45, 221, 199, 0.72);
  color: var(--teal);
  box-shadow: 0 0 20px rgba(45, 221, 199, 0.15);
}

.video-template-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  border-color: rgba(74, 103, 114, 0.46);
  background: rgba(10, 16, 23, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.video-template-card:hover {
  border-color: rgba(45, 221, 199, 0.68);
  box-shadow: 0 0 26px rgba(45, 221, 199, 0.12), 0 18px 42px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.video-template-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060b11;
}

.video-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 14, 0.72));
  pointer-events: none;
}

.video-duration {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(2, 6, 10, 0.68);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.video-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-height: 92px;
  padding: 15px 15px 14px;
}

.video-card-body h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.3;
}

.video-card-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #aebec8;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.video-card-tags span {
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(135, 156, 169, 0.12);
  color: #aebec8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.video-category-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #159b88;
  color: #f2fffc;
  font-size: 12px;
  font-weight: 800;
}

.video-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}

.vault-pagination {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 8px;
  padding-top: 18px;
}

.vault-page-button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(130, 164, 180, 0.22);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.78);
  color: #aebec8;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.vault-page-button:hover:not(:disabled),
.vault-page-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #071016;
}

.vault-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.vault-page-nav {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  padding: 0;
  place-items: center;
}

.vault-page-nav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vault-page-ellipsis {
  position: relative;
  display: inline-flex;
}

.vault-page-ellipsis::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.vault-ellipsis-button {
  font-size: 17px;
  letter-spacing: 2px;
}

.vault-page-picker {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: 220px;
  max-height: 230px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 9px;
  overflow-y: auto;
  border: 1px solid rgba(130, 164, 180, 0.24);
  border-radius: 12px;
  background: rgba(10, 18, 25, 0.98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.vault-page-ellipsis:hover .vault-page-picker,
.vault-page-ellipsis:focus-within .vault-page-picker,
.vault-page-ellipsis.is-open .vault-page-picker {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.vault-page-picker button {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aebec8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vault-page-picker button:hover,
.vault-page-picker button:focus-visible {
  background: var(--teal);
  color: #071016;
}

.vault-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  right: 0;
  color: #8fa4b0;
  font-size: 13px;
}

.vault-page-jump input {
  width: 58px;
  height: 38px;
  box-sizing: border-box;
  border: 1px solid rgba(130, 164, 180, 0.24);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.78);
  color: #e7f4f6;
  font: inherit;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.vault-page-jump input:focus {
  border-color: var(--teal);
}

.vault-page-jump input::-webkit-inner-spin-button,
.vault-page-jump input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

@media (max-width: 1180px) {
  .major-tabs {
    grid-template-columns: repeat(3, minmax(96px, 1fr)) minmax(220px, 1.4fr);
    gap: 10px;
  }

  .category-tabs {
    grid-template-columns: repeat(var(--category-count, 8), minmax(112px, 1fr));
  }

  .vault-page-jump {
    position: static;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

.video-detail-button,
.video-copy-button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.video-detail-button {
  min-width: 118px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(130, 164, 180, 0.3);
  border-radius: 7px;
  background: rgba(14, 22, 32, 0.8);
  color: #e7f4f6;
}

.video-detail-button::after {
  content: ">";
  margin-left: 9px;
  color: var(--teal);
}

.video-detail-button:hover {
  border-color: rgba(45, 221, 199, 0.52);
  background: rgba(18, 30, 42, 0.95);
  color: #ffffff;
}

.video-copy-button {
  min-width: 108px;
  border: 1px solid rgba(130, 164, 180, 0.22);
  background: rgba(12, 18, 26, 0.76);
  color: #aebec8;
}

.video-copy-button::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: -3px -3px 0 -1px rgba(10, 18, 26, 0.9), -3px -3px 0 0 currentColor;
}

.placeholder-plus {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px dashed rgba(150, 170, 184, 0.34);
  border-radius: 999px;
  color: #88a0b5;
  font-size: 40px;
  line-height: 1;
}

.copy-placeholder-card p {
  margin: 0;
  color: #95a8b5;
  font-size: 14px;
  line-height: 1.7;
}

.text-detail-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  max-height: calc(100vh - 260px);
  min-height: 680px;
  overflow: hidden;
}

.text-detail-view {
  width: 100%;
  min-height: 680px;
  max-height: calc(100vh - 260px);
  margin: 0;
  padding: 0 0 34px;
  border: 1px solid rgba(45, 221, 199, 0.24);
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 221, 199, 0.12), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(76, 160, 255, 0.12), transparent 28%),
    rgba(8, 13, 20, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 168, 176, 0.34) transparent;
}

.text-detail-view::-webkit-scrollbar {
  width: 5px;
}

.text-detail-view::-webkit-scrollbar-track {
  background: transparent;
}

.text-detail-view::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(150, 168, 176, 0.28);
}

.text-detail-sidebar {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-back-button {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(150, 170, 184, 0.26);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8e8ee;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.detail-back-button:hover {
  border-color: rgba(45, 221, 199, 0.72);
  color: #ffffff;
}

.detail-side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(150, 170, 184, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-side-nav a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 34px;
  border-radius: 3px;
  color: #93a8b6;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.detail-side-nav a::before {
  content: "";
  position: absolute;
  left: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7890a4;
}

.detail-side-nav a.active,
.detail-side-nav a:hover {
  background: rgba(45, 221, 199, 0.12);
  color: #d8f4f1;
}

.detail-side-nav a.active::before,
.detail-side-nav a:hover::before {
  background: var(--teal);
  box-shadow: 0 0 14px rgba(45, 221, 199, 0.72);
}

.text-detail-hero {
  min-height: 154px;
  padding: 36px 34px 26px;
  border-bottom: 1px solid rgba(45, 221, 199, 0.2);
  background:
    radial-gradient(360px 160px at 100% 0%, rgba(45, 221, 199, 0.14), transparent 70%),
    rgba(13, 20, 28, 0.82);
}

.text-detail-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 5px;
}

.text-detail-hero h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.2;
}

.text-detail-hero p,
.text-detail-section p,
.text-detail-section li {
  color: #b9d0dc;
  font-size: 14px;
  line-height: 1.8;
}

.text-detail-section {
  padding: 28px 34px;
  border-bottom: 1px solid rgba(130, 164, 180, 0.12);
}

.text-detail-section h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 20px;
}

.text-detail-section ol {
  margin: 0;
  padding: 16px 18px 16px 36px;
  border: 1px solid rgba(45, 221, 199, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.subpage-prompt-box {
  position: relative;
  border: 1px solid rgba(45, 221, 199, 0.16);
  border-radius: 16px;
  background: rgba(4, 8, 12, 0.58);
  overflow: hidden;
}

.subpage-prompt-box pre {
  min-height: 300px;
  max-height: 460px;
  margin: 0;
  padding: 20px 20px 70px;
  overflow: auto;
  color: #dceff3;
  font: inherit;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 168, 176, 0.34) transparent;
}

.subpage-prompt-box:not(:has(.copy-button)) pre {
  min-height: 0;
  max-height: none;
  padding: 16px 18px;
}

.example-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.mini-info-card {
  min-height: 74px;
  padding: 15px 16px;
  border: 1px solid rgba(45, 221, 199, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.mini-info-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.mini-info-card strong {
  color: #dceff3;
  font-size: 14px;
  line-height: 1.55;
}

.text-detail-section h4 {
  margin: 24px 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.script-table-wrap {
  overflow: auto;
  border: 1px solid rgba(45, 221, 199, 0.14);
  border-radius: 14px;
  background: rgba(3, 8, 13, 0.42);
}

.script-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.script-table th,
.script-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(130, 164, 180, 0.12);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.script-table th {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  background: rgba(45, 221, 199, 0.08);
}

.script-table td {
  color: #d6e6ec;
  font-size: 13px;
}

.script-table tr:last-child td {
  border-bottom: 0;
}

.compact-note {
  padding: 16px 18px;
  border: 1px solid rgba(45, 221, 199, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: #dceff3;
  line-height: 1.75;
}

.usage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.usage-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(45, 221, 199, 0.18);
  border-radius: 999px;
  background: rgba(45, 221, 199, 0.08);
  color: #dceff3;
  font-size: 13px;
  font-weight: 700;
}

.detail-footnote {
  display: none;
}

.subpage-prompt-box pre::-webkit-scrollbar {
  width: 5px;
}

.subpage-prompt-box pre::-webkit-scrollbar-track {
  background: transparent;
}

.subpage-prompt-box pre::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(150, 168, 176, 0.28);
}

.subpage-prompt-box .copy-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.image-template-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: 304px;
  min-height: 304px;
  margin: 0;
  border-radius: 16px;
  align-items: stretch;
}

.image-template-card.is-landscape {
  grid-template-columns: 300px minmax(0, 1fr);
  height: 304px;
  min-height: 304px;
}

.image-template-card.is-square {
  grid-template-columns: 300px minmax(0, 1fr);
  height: 304px;
  min-height: 304px;
}

.image-template-card.is-portrait {
  grid-template-columns: 300px minmax(0, 1fr);
  height: 430px;
  min-height: 430px;
}

.image-template-card .badge {
  padding: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(17, 146, 132, 0.96), rgba(12, 120, 109, 0.96));
  color: #dffffb;
  font-size: 12px;
}

.prompt-image-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 304px;
  aspect-ratio: auto;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 24% 26%, rgba(45, 221, 199, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(8, 13, 19, 0.98), rgba(4, 8, 12, 0.98));
}

.preview-main-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 2;
  object-fit: cover;
  object-position: center;
}

.preview-blur-bg {
  display: none;
}

.prompt-image-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-right: 1px solid rgba(45, 221, 199, 0.16);
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.28);
}

.image-zoom-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(7, 10, 14, 0.88);
  color: #ffffff;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.image-zoom-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-image-preview:hover .image-zoom-icon,
.prompt-image-preview:focus-visible .image-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.prompt-image-preview.is-portrait .preview-blur-bg {
  opacity: 0;
}

.prompt-image-preview.is-portrait .preview-main-img {
  object-fit: cover;
  padding: 0;
}

.prompt-image-preview.is-landscape .preview-main-img,
.prompt-image-preview.is-square .preview-main-img {
  object-fit: cover;
  object-position: center;
}

.prompt-image-preview.is-landscape {
  aspect-ratio: auto;
}

.prompt-image-preview.is-square {
  aspect-ratio: auto;
}

.prompt-image-preview.is-portrait {
  aspect-ratio: auto;
}

.image-template-card.is-portrait .prompt-image-preview {
  min-height: 430px;
}

.prompt-image-preview.is-landscape .preview-main-img,
.prompt-image-preview.is-square .preview-main-img,
.prompt-image-preview.is-portrait .preview-main-img {
  object-fit: cover;
  object-position: center;
}

.prompt-image-preview.is-loading .preview-main-img,
.prompt-image-preview.is-loading .preview-blur-bg,
.prompt-image-preview.is-error .preview-main-img,
.prompt-image-preview.is-error .preview-blur-bg {
  opacity: 0;
}

.image-missing {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 4;
}

.prompt-image-preview:not(.is-loading):not(.is-error) .image-missing {
  display: none;
}

.thumb {
  height: 86px;
  padding: 16px;
  background:
    radial-gradient(circle at 25% 42%, var(--accent), transparent 34%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, rgba(45, 221, 199, 0.12), rgba(8, 12, 17, 0.92));
}

.badge {
  display: inline-flex;
  border-radius: 8px;
  background: rgba(0, 126, 115, 0.72);
  color: var(--teal);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.card-body {
  padding: 16px 18px;
}

.prompt-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  overflow: hidden;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 34px;
}

.mini-badge {
  display: inline-flex;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #b9cbd4;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: #a9c7d6;
  font-size: 12px;
  line-height: 1.55;
}

.effect {
  color: #a9c7d6;
}

.prompt-text {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(45, 221, 199, 0.14);
  border-radius: 10px;
  background: rgba(6, 10, 14, 0.55);
  color: #d7e8ee;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 168, 176, 0.34) transparent;
}

.prompt-text::-webkit-scrollbar,
.modal-content pre::-webkit-scrollbar {
  width: 5px;
}

.prompt-text::-webkit-scrollbar-track,
.modal-content pre::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-text::-webkit-scrollbar-thumb,
.modal-content pre::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(150, 168, 176, 0.28);
}

.prompt-text:hover::-webkit-scrollbar-thumb,
.modal-content pre:hover::-webkit-scrollbar-thumb {
  background: rgba(150, 168, 176, 0.46);
}

.prompt-box {
  position: relative;
  flex: 1;
  min-height: 88px;
  overflow: hidden;
}

/* Image-list prompt previews keep their frame crisp while only the protected
   prompt text is blurred. Video, copy and detail layouts intentionally retain
   their existing presentation. */
.image-card-grid .prompt-box {
  border: 1px solid rgba(45, 221, 199, 0.24);
  border-radius: 10px;
  background: rgba(6, 10, 14, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.image-card-grid .prompt-box > .prompt-text {
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.image-card-grid .prompt-box.member-prompt-locked {
  border-color: rgba(45, 221, 199, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(45, 221, 199, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  justify-content: space-between;
}

.copy-button {
  align-self: flex-start;
  height: 30px;
  border: 1px solid rgba(45, 221, 199, 0.52);
  border-radius: 999px;
  background: rgba(45, 221, 199, 0.08);
  color: var(--teal);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.prompt-copy-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 13, 18, 0.92);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.card-actions .prompt-copy-button,
.action-copy-button {
  position: static;
  right: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  min-width: 104px;
  height: 32px;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  border-color: rgba(28, 220, 199, 0.72);
  background: rgba(10, 150, 140, 0.16);
  color: #2ff3dc;
  box-shadow: inset 0 0 18px rgba(45, 221, 199, 0.08);
}

.prompt-copy-button::before,
.action-copy-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: -3px -3px 0 -1px rgba(8, 13, 18, 0.92), -3px -3px 0 0 currentColor;
}

.card-actions .prompt-copy-button::before,
.action-copy-button::before,
.modal-content .action-copy-button::before {
  box-shadow: -3px -3px 0 -1px rgba(10, 150, 140, 0.16), -3px -3px 0 0 currentColor;
}

.copy-button:hover {
  border-color: rgba(45, 221, 199, 0.72);
  color: #ffffff;
}

.detail-button {
  min-width: 104px;
  height: 32px;
  border: 1px solid rgba(150, 170, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8e8ee;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.detail-button::after {
  content: ">";
  display: inline-block;
  margin-left: 12px;
  color: #2ff3dc;
  transform: translateY(-1px);
}

.detail-button:hover {
  border-color: rgba(45, 221, 199, 0.72);
  color: #ffffff;
}

.card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.card-index {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 32px;
}

.detail-modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 9, 0.76);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(320px, 48%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(45, 221, 199, 0.26);
  border-radius: 20px;
  background: rgba(13, 18, 25, 0.97);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58), 0 0 70px rgba(45, 221, 199, 0.1);
}

.detail-modal.is-text-detail .modal-panel {
  width: min(860px, calc(100vw - 48px));
  grid-template-columns: 1fr;
}

.detail-modal.is-text-detail .modal-image-wrap {
  display: none;
}

.detail-modal.is-text-detail .modal-content {
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 38px 42px 34px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-image-wrap {
  min-height: 520px;
  max-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(45, 221, 199, 0.12), transparent 34%),
    #070b10;
  overflow: auto;
}

.modal-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 34px 30px 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 221, 199, 0.08), transparent 30%),
    rgba(7, 12, 18, 0.36);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 38px;
}

.modal-content h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.28;
}

.modal-effect,
.modal-section p {
  margin: 0;
  color: #b9d0dc;
  line-height: 1.7;
}

.modal-divider {
  height: 1px;
  margin: 8px 0 10px;
  background: linear-gradient(90deg, rgba(45, 221, 199, 0.55), rgba(45, 221, 199, 0.08));
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-section h3 {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.modal-prompt-section {
  min-height: 0;
  flex: 1;
}

.modal-extra {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-steps {
  margin: 0;
  padding: 15px 18px 15px 34px;
  border: 1px solid rgba(45, 221, 199, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: #d7e8ee;
  line-height: 1.75;
}

.detail-steps li + li {
  margin-top: 8px;
}

.modal-prompt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.modal-content pre {
  flex: 1;
  min-height: 160px;
  max-height: 220px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid rgba(45, 221, 199, 0.18);
  border-radius: 14px;
  background: rgba(4, 8, 12, 0.62);
  color: #dceff3;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 168, 176, 0.34) transparent;
}

.modal-content .copy-button {
  margin-top: 0;
  border-radius: 8px;
}

.prompt-box,
.modal-prompt-card,
.subpage-prompt-box {
  position: relative;
}

.prompt-vault-member [hidden],
.prompt-vault-admin [hidden],
html:not(.prompt-vault-member):not(.prompt-vault-admin) [hidden] {
  display: none !important;
}

.member-prompt-locked {
  isolation: isolate;
  overflow: hidden;
}

.member-prompt-locked > :is(pre, .prompt-text) {
  user-select: none;
  filter: blur(4px);
  opacity: 0.7;
  transition: filter 220ms ease, opacity 220ms ease;
}

.member-prompt-locked::after {
  content: "";
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 999px;
  background: rgba(4, 12, 15, 0.86);
  padding: 7px 12px;
  color: #8ce9dc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  white-space: nowrap;
}

.prompt-vault-admin .member-prompt-locked::after {
  display: none;
  content: "";
}

.member-prompt-locked > .member-prompt-unlock-link {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(45, 212, 191, 0.46);
  border-radius: 999px;
  background: rgba(4, 16, 18, 0.88);
  width: 150px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  color: #8ce9dc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.member-prompt-locked > .member-prompt-admin-label {
  pointer-events: none;
}

.member-prompt-locked > .member-prompt-unlock-link:hover,
.member-prompt-locked > .member-prompt-unlock-link:focus-visible {
  border-color: #2dd4bf;
  background: #2dd4bf;
  color: #04100e;
  outline: none;
  transform: translate(-50%, -50%) translateY(-1px);
}

.member-prompt-locked > .member-prompt-unlock-link:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.member-prompt-locked > .member-prompt-unlock-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.member-prompt-locked > .member-prompt-unlock-link .member-prompt-unlock-arrow {
  width: 12px;
  height: 12px;
  transition: transform 180ms ease;
}

.image-card-grid .member-prompt-locked > .member-prompt-unlock-link {
  width: 144px;
  height: 36px;
  min-height: 36px;
  gap: 7px;
  font-size: 11px;
}

.image-card-grid .member-prompt-locked > .member-prompt-unlock-link svg {
  width: 13px;
  height: 13px;
}

.image-card-grid .member-prompt-locked > .member-prompt-unlock-link .member-prompt-unlock-arrow {
  width: 11px;
  height: 11px;
}

.member-prompt-locked > .member-prompt-unlock-link:hover .member-prompt-unlock-arrow,
.member-prompt-locked > .member-prompt-unlock-link:focus-visible .member-prompt-unlock-arrow {
  transform: translateX(2px);
}

.member-prompt-visibility-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 5;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 7px;
  background: rgba(4, 15, 18, 0.9);
  color: #62e9d2;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.member-prompt-visibility-toggle:hover,
.member-prompt-visibility-toggle:focus-visible,
.member-prompt-visibility-toggle.is-revealed {
  background: #2dd4bf;
  color: #04100e;
  outline: none;
}

.member-prompt-visibility-toggle:active {
  transform: scale(0.96);
}

.member-prompt-visibility-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.member-prompt-revealed > :is(pre, .prompt-text) {
  filter: none;
  opacity: 1;
}

.empty {
  grid-column: 1 / -1;
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(45, 221, 199, 0.26);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(15, 21, 29, 0.58);
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copy-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-card-grid {
    grid-template-columns: 1fr;
  }

  .video-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .text-detail-page {
    grid-template-columns: 1fr;
  }

  .text-detail-sidebar {
    position: static;
  }

  .detail-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100vw - 28px, 1560px);
  }

  .hero {
    gap: 12px;
  }

  h1 {
    font-size: 30px;
  }

  .filter-panel {
    padding: 0;
  }

  .major-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 12px 12px;
  }

  .vault-search {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .category-tabs {
    grid-template-columns: repeat(var(--category-count, 8), minmax(112px, 1fr));
    margin: 10px 12px 14px;
  }

  .major-tab,
  .category-tab {
    font-size: 13px;
  }

  .content-head {
    display: block;
  }

  .content-head > p {
    margin-top: 12px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .copy-card-grid {
    grid-template-columns: 1fr;
  }

  .image-card-grid {
    grid-template-columns: 1fr;
  }

  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .image-template-card {
    grid-template-columns: minmax(132px, 38%) minmax(0, 1fr);
    height: 304px;
    min-height: 304px;
  }

  .image-template-card.is-portrait {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    height: 430px;
    min-height: 430px;
  }

  .prompt-image-preview {
    height: 100%;
    min-height: 304px;
  }

  .image-template-card.is-portrait .prompt-image-preview {
    min-height: 430px;
  }

  .card-body {
    padding: 14px;
  }

  .prompt-card-body {
    gap: 8px;
  }

  .card h3 {
    font-size: 16px;
  }

  .prompt-text {
    padding: 9px;
  }

  .source-row {
    padding-right: 0;
  }

  .card-index {
    display: none;
  }

  .detail-modal {
    padding: 18px;
  }

  .modal-panel {
    width: min(100%, 680px);
    max-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-image-wrap {
    min-height: 320px;
    max-height: 52vh;
  }

  .modal-content {
    padding: 24px 20px 22px;
  }

  .modal-content h2 {
    font-size: 22px;
  }
}
.vault-engagement {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.vault-engagement button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  font: 500 12px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.vault-engagement button:hover,
.vault-engagement button:focus-visible { background: rgba(255,255,255,.06); color: #aebec8; outline: none; }
.vault-engagement button:active { transform: scale(.96); }
.vault-engagement button:first-child.is-active { color: #fb7185; }
.vault-engagement button:last-child.is-active { color: #2dd4bf; }
.vault-engagement svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vault-engagement .vault-thumbs-up-icon {
  transform: translateY(-0.25px);
}
.vault-engagement button:first-child.is-active svg { fill: currentColor; }
.copy-card-footer,
.video-actions {
  justify-content: space-between;
}
.copy-card-footer .vault-engagement,
.video-actions .vault-engagement,
.card-actions .vault-engagement {
  width: auto;
  padding-top: 0;
  border-top: 0;
}
