body.embed-mode {
  padding-top: 0;
}

.nav-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-open-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.prompt-library-section {
  padding-top: 0;
}

.case-card {
  position: relative;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition);
}

.case-card:hover::after {
  border-color: rgba(255, 255, 255, 0.08);
}

.case-header-left .case-cat-label {
  color: var(--text-muted);
}

.case-prompt-body {
  max-height: 180px;
  overflow-y: auto;
}

.case-prompt-copy,
.modal-prompt-copy,
.modal-btn {
  appearance: none;
}

.case-thumb-video {
  position: relative;
  overflow: hidden;
}

.case-thumb-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.modal-btn-fill {
  background: linear-gradient(135deg, #5bbdff, #4b7cff);
  color: #06101c;
}

.modal-btn-fill:hover {
  background: linear-gradient(135deg, #74cbff, #6790ff);
}

.modal-btn:disabled,
.modal-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.modal-btn-fill:disabled,
.modal-btn-fill[aria-disabled="true"] {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.92);
}

.modal-btn-fill:disabled:hover,
.modal-btn-fill[aria-disabled="true"]:hover {
  background: rgba(148, 163, 184, 0.18);
}

.modal-head {
  align-items: center;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(91, 189, 255, 0.34);
  background: rgba(91, 189, 255, 0.12);
  color: #eef6ff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.modal-close:hover {
  background: rgba(91, 189, 255, 0.22);
  border-color: rgba(91, 189, 255, 0.58);
  color: #ffffff;
  transform: scale(1.04);
}

body.embed-mode .hero,
body.embed-mode .footer {
  display: none;
}

body.embed-mode .section {
  padding: 0;
}

body.embed-mode .nav {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.96);
}

body.embed-mode .nav-inner {
  padding: 0 18px;
}

body.embed-mode .nav-logo {
  font-size: 15px;
}

body.embed-mode .nav-menu-btn {
  display: none !important;
}

body.embed-mode .container {
  max-width: none;
  padding: 0 18px 20px;
}

body.embed-mode .search-box {
  margin: 0 0 18px;
  max-width: none;
}

body.embed-mode .filter-bar {
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.platform-bar {
  display: none;
}

.filter-wrap {
  position: relative;
}

.nav-menu-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.embed-mode .pagination {
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  body.embed-mode .container {
    padding: 0 14px 16px;
  }

  body.embed-mode .nav-actions {
    gap: 10px;
  }

  body.embed-mode .nav-menu-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 24px;
  }

  body.embed-mode .filter-wrap {
    position: sticky;
    top: 60px;
    z-index: 25;
    margin: 0 -14px 12px;
    padding: 6px 14px 10px;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(14px);
  }

  body.embed-mode .platform-bar,
  body.embed-mode .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 0;
    padding: 2px 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  body.embed-mode .platform-bar {
    margin-bottom: 8px;
  }

  body.embed-mode .platform-bar::-webkit-scrollbar,
  body.embed-mode .filter-bar::-webkit-scrollbar {
    display: none;
  }

  body.embed-mode .platform-chip,
  body.embed-mode .filter-bar .filter-tab {
    flex: 0 0 auto;
  }

  body.embed-mode .platform-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }

  body.embed-mode .platform-chip.active {
    background: rgba(91, 189, 255, 0.18);
    border-color: rgba(91, 189, 255, 0.44);
    color: #fff;
  }

  body.embed-mode .cases-grid.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.embed-mode .cases-grid.compact-grid .case-card {
    overflow: hidden;
    border-radius: 16px;
  }

  body.embed-mode .cases-grid.compact-grid .case-header,
  body.embed-mode .cases-grid.compact-grid .case-desc,
  body.embed-mode .cases-grid.compact-grid .case-prompt-box,
  body.embed-mode .cases-grid.compact-grid .case-meta {
    display: none;
  }

  body.embed-mode .cases-grid.compact-grid .case-thumb,
  body.embed-mode .cases-grid.compact-grid .case-thumb img,
  body.embed-mode .cases-grid.compact-grid .case-thumb video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  body.embed-mode .cases-grid.compact-grid .case-title {
    padding: 8px 8px 10px;
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3.2em;
  }

  body.embed-mode .cases-grid.compact-grid .skeleton-card {
    min-height: 0;
  }
}
