/* Ideas catalog — Create V2 chrome, scoped to .ideas-hub / .wrap-ideas */

.wrap-ideas {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

html.create-v2-page .wrap.wrap-ideas {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .wrap-ideas,
  html.create-v2-page .wrap.wrap-ideas {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1280px) {
  .wrap-ideas,
  html.create-v2-page .wrap.wrap-ideas {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1600px) {
  .wrap-ideas,
  html.create-v2-page .wrap.wrap-ideas {
    max-width: 1440px;
  }
}

.ideas-hub {
  --cv2-space-8: 8px;
  --cv2-space-12: 12px;
  --cv2-space-16: 16px;
  --cv2-space-24: 24px;
  --cv2-space-32: 32px;
  --cv2-border: rgba(255, 255, 255, 0.08);
  --cv2-card: #1a1a1a;
  --cv2-input: #0f0f0f;
  --cv2-accent: #a855f7;
  --cv2-accent-soft: rgba(168, 85, 247, 0.14);
  --cv2-accent-border: rgba(168, 85, 247, 0.55);
  --cv2-glow-selected: var(--ui-selected-glow, 0 0 0 1px rgba(168, 85, 247, 0.14), 0 0 12px rgba(168, 85, 247, 0.18));
  --cv2-glow-cta: 0 0 18px rgba(0, 212, 255, 0.22), 0 0 28px rgba(168, 85, 247, 0.28);
  --cv2-gradient-cta: linear-gradient(90deg, #00d4ff, #a855f7, #ff00ff);
  --cv2-radius-lg: 20px;
  --cv2-radius-md: 12px;
  --cv2-radius-sm: 10px;
  --cv2-radius-xs: 8px;

  --ideas-border: var(--cv2-border);
  --ideas-card: var(--cv2-card);
  --ideas-input: var(--cv2-input);
  --ideas-accent: var(--cv2-accent);
  --ideas-accent-soft: var(--cv2-accent-soft);
  --ideas-accent-border: var(--cv2-accent-border);
  --ideas-glow-selected: var(--cv2-glow-selected);
  --ideas-cta: var(--cv2-gradient-cta);
  --ideas-radius: var(--cv2-radius-md);
  --ideas-radius-sm: var(--cv2-radius-sm);
  --ideas-radius-lg: var(--cv2-radius-lg);

  max-width: 100%;
  overflow-x: clip;
  padding: var(--cv2-space-8) 0 calc(var(--dock, 72px) + var(--cv2-space-24));
  box-sizing: border-box;
}

/* Light Theme: remap Ideas surfaces to existing semantic tokens (Home/Create pattern). */
html[data-theme="light"] .ideas-hub {
  --cv2-border: var(--border);
  --cv2-card: var(--card);
  --cv2-input: var(--elev);
  --cv2-accent-soft: var(--chip-on);
  --cv2-accent-border: rgba(138, 43, 226, 0.45);
  --cv2-glow-selected: var(--ui-selected-glow, 0 0 0 1px rgba(138, 43, 226, 0.14), 0 0 12px rgba(138, 43, 226, 0.12));
}

html[data-theme="light"] .ideas-sort select option,
html[data-theme="light"] select[data-ideas-sort] option {
  background: var(--card);
  color: var(--text);
}

html[data-theme="light"] dialog.ideas-drawer .ideas-drawer-inner {
  background: var(--card);
  border-left-color: var(--border);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .idea-card:hover {
    background: var(--hover);
  }
}

.ideas-hub .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top control block — centered on desktop; catalog toolbar/grid stay full width */
.ideas-hub-controls {
  --ideas-controls-max: 800px; /* within Home-adjacent 760–850px band */
  width: 100%;
  max-width: var(--ideas-controls-max);
  margin: 0 auto var(--cv2-space-16);
  text-align: center;
  box-sizing: border-box;
}

/* Header */
.ideas-hub-head {
  margin: 0 0 var(--cv2-space-16);
}

.ideas-hub-title {
  margin: 0 0 var(--cv2-space-8);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.ideas-hub-lead {
  margin: 0 auto;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 42rem;
}

/* Search */
.ideas-hub-search {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 0 var(--cv2-space-16);
  text-align: left;
}

.ideas-search-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--ideas-border);
  border-radius: var(--ideas-radius-sm);
  background: var(--ideas-input);
  color: var(--text);
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ideas-search-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.ideas-search-input:hover {
  border-color: var(--ui-hover-form-border, rgba(168, 85, 247, 0.35));
  box-shadow: var(--ui-hover-form-glow, var(--ideas-glow-hover));
}

.ideas-search-input:focus {
  outline: none;
  border-color: var(--ideas-accent-border, var(--ui-focus-border));
  box-shadow: var(--ideas-glow-focus, var(--ui-focus-glow));
}

.ideas-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.55) 0 35%, transparent 36%),
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.55) 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, rgba(255, 255, 255, 0.55) 43% 57%, transparent 58%);
  cursor: pointer;
  opacity: 0.7;
}

.ideas-search-input::-webkit-search-cancel-button:hover {
  opacity: 1;
}

/* Filters */
.ideas-hub-filters {
  margin: 0;
  max-width: 100%;
}

.ideas-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cv2-space-8);
  overflow-x: visible;
  padding: 2px 0 var(--cv2-space-8);
  margin: 0;
  max-width: 100%;
}

.ideas-pills::-webkit-scrollbar {
  display: none;
}

.ideas-pills--secondary:empty {
  display: none;
}

.ideas-pill {
  flex: 0 0 auto;
  border: 1px solid var(--ideas-border);
  background: var(--ideas-input);
  color: var(--muted);
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ideas-pill:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: var(--ideas-glow-hover);
}

.ideas-pill.is-on,
.ideas-pill[aria-pressed="true"],
.ideas-pill[aria-checked="true"] {
  color: var(--text);
  border-color: var(--ideas-accent-border);
  background: var(--ideas-accent-soft);
  box-shadow: var(--ideas-glow-selected);
}

.ideas-pill:focus-visible {
  outline: none;
  border-color: var(--ideas-accent-border);
  box-shadow: var(--ideas-glow-focus);
}

/* Toolbar */
.ideas-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cv2-space-8) var(--cv2-space-12);
  margin: 0 0 var(--cv2-space-16);
  max-width: 100%;
}

.ideas-counter {
  margin: 0;
  margin-right: auto;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.ideas-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cv2-space-8);
  align-items: center;
}

.ideas-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ideas-sort select,
select[data-ideas-sort] {
  min-height: 36px;
  border: 1px solid var(--ideas-border);
  border-radius: var(--ideas-radius-sm);
  background-color: var(--ideas-input);
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.45) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.45) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 28px 7px 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ideas-sort select:hover,
select[data-ideas-sort]:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--ideas-glow-hover);
}

.ideas-sort select:focus,
select[data-ideas-sort]:focus {
  outline: none;
  border-color: var(--ideas-accent-border, var(--ui-focus-border));
  box-shadow: var(--ideas-glow-focus, var(--ui-focus-glow));
}

.ideas-sort select option,
select[data-ideas-sort] option {
  background: #121212;
  color: #f5f5f5;
}

.ideas-saved-btn,
.ideas-reset-btn,
.ideas-load-more {
  min-height: 36px;
  border: 1px solid var(--ideas-border);
  border-radius: var(--ideas-radius-sm);
  background: var(--ideas-input);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ideas-saved-btn:hover,
.ideas-reset-btn:hover,
.ideas-load-more:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: var(--ideas-glow-hover);
}

.ideas-saved-btn.is-on,
.ideas-saved-btn[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--ideas-accent-border);
  background: var(--ideas-accent-soft);
  box-shadow: var(--ideas-glow-selected);
}

.ideas-saved-btn:focus-visible,
.ideas-reset-btn:focus-visible,
.ideas-load-more:focus-visible {
  outline: none;
  border-color: var(--ideas-accent-border);
  box-shadow: var(--ideas-glow-focus);
}

/* Grid */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cv2-space-12);
  max-width: 100%;
}

@media (min-width: 768px) {
  .ideas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cv2-space-16);
  }
}

@media (min-width: 1024px) {
  .ideas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .ideas-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .ideas-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Cards */
.idea-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ideas-border);
  border-radius: var(--ideas-radius-lg);
  background: var(--ideas-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.idea-card:focus-visible {
  outline: none;
  border-color: var(--ideas-accent-border);
  box-shadow: var(--ideas-glow-focus);
}

@media (hover: hover) and (pointer: fine) {
  .idea-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-1px);
    box-shadow: var(--ideas-glow-hover);
    background: #1e1e1e;
  }

  .idea-card:hover .idea-card-media img {
    transform: scale(1.02);
  }

  .idea-card:hover .idea-card-overlay {
    opacity: 1;
  }
}

.idea-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ideas-input);
  flex: 0 0 auto;
}

.idea-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.idea-card-media-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
  display: grid;
  place-items: center;
}

.idea-card-media-mark--play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid rgba(255, 255, 255, 0.92);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 2px;
}

.idea-card-media-mark--audio {
  align-items: end;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.idea-card-media-mark--audio::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.85);
  box-shadow: 6px -4px 0 rgba(0, 212, 255, 0.85), 12px 2px 0 rgba(0, 212, 255, 0.85);
}

.idea-card-topline {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 44px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  pointer-events: none;
}

.idea-card-type,
.idea-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: var(--cv2-radius-xs);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idea-card-type {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.idea-card-save {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.idea-card-save:hover {
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.45);
}

.idea-card-save[aria-pressed="true"] {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.55);
}

.idea-card-save:focus-visible {
  outline: none;
  box-shadow: var(--ideas-glow-focus);
}

.idea-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.idea-card-use {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(168, 85, 247, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.idea-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.idea-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.idea-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.idea-card-io {
  margin: 0;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idea-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  min-height: 18px;
}

.idea-card-meta .idea-card-io {
  margin: 0;
  padding-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.idea-card-price {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.ideas-drawer-price-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* Empty / load more */
.ideas-empty {
  display: none;
  text-align: center;
  padding: var(--cv2-space-32) var(--cv2-space-16);
  color: var(--muted);
}

.ideas-empty:not([hidden]) {
  display: block;
}

.ideas-empty-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}

.ideas-empty-hint {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
}

.ideas-empty .ideas-reset-btn {
  color: var(--text);
}

.ideas-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--cv2-space-24);
}

.ideas-load-more {
  min-height: 44px;
  padding: 0 22px;
  background: var(--ideas-card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.ideas-load-more[hidden],
.ideas-empty[hidden] {
  display: none !important;
}

/* Detail drawer */
dialog.ideas-drawer {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  color: inherit;
}

dialog.ideas-drawer::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

dialog.ideas-drawer[open] {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

dialog.ideas-drawer .ideas-drawer-inner {
  position: relative;
  width: min(420px, 100%);
  height: 100%;
  background: var(--ideas-card, #121212);
  border-left: 1px solid var(--ideas-border);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  box-sizing: border-box;
}

.ideas-drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--ideas-border);
  background: var(--ideas-input);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  line-height: 1;
}

.ideas-drawer-close:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: var(--ideas-glow-hover);
}

.ideas-drawer-close:focus-visible {
  outline: none;
  border-color: var(--ideas-accent-border);
  box-shadow: var(--ideas-glow-focus);
}

.ideas-drawer-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--ideas-radius);
  overflow: hidden;
  background: var(--ideas-input);
  margin-bottom: 16px;
}

.ideas-drawer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ideas-drawer-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  padding-right: 36px;
  line-height: 1.25;
}

.ideas-drawer-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.ideas-drawer dl.ideas-drawer-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.ideas-drawer dl.ideas-drawer-meta div {
  display: grid;
  gap: 2px;
}

.ideas-drawer dl.ideas-drawer-meta dt {
  font-size: 12px;
  color: var(--muted);
}

.ideas-drawer dl.ideas-drawer-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.ideas-drawer-actions {
  margin-top: 16px;
}

.ideas-drawer-use,
a.ideas-drawer-use {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--ideas-radius);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--ideas-cta);
  box-shadow: var(--cv2-glow-cta);
  box-sizing: border-box;
}

.ideas-drawer-use:hover,
a.ideas-drawer-use:hover {
  filter: brightness(1.05);
}

.ideas-drawer-use:focus-visible,
a.ideas-drawer-use:focus-visible {
  outline: none;
  box-shadow: var(--ideas-glow-focus), var(--cv2-glow-cta);
}

/* Mobile compaction */
@media (max-width: 767px) {
  .ideas-hub-controls {
    margin-bottom: 12px;
  }

  .ideas-hub-head {
    margin-bottom: 12px;
  }

  .ideas-hub-search {
    margin-bottom: 12px;
    max-width: none;
  }

  .ideas-pill {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .ideas-hub-toolbar {
    margin-bottom: 12px;
  }

  .ideas-counter {
    flex: 1 1 100%;
    margin-right: 0;
  }

  .idea-card-desc {
    -webkit-line-clamp: 1;
  }

  .idea-card-body {
    min-height: 72px;
    padding: 8px 10px 10px;
  }

  .idea-card-title {
    font-size: 13px;
  }

  dialog.ideas-drawer[open] {
    align-items: flex-end;
    justify-content: stretch;
  }

  dialog.ideas-drawer .ideas-drawer-inner {
    width: 100%;
    height: auto;
    max-height: min(88vh, 720px);
    border-left: 0;
    border-top: 1px solid var(--ideas-border);
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 419px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .idea-card-desc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idea-card,
  .idea-card-media img,
  .idea-card-overlay,
  .ideas-pill,
  .ideas-search-input,
  .ideas-saved-btn,
  .ideas-reset-btn {
    transition: none;
  }

  .idea-card:hover {
    transform: none;
  }
}

.idea-card-io--primary {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ideas-drawer-io {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.ideas-have {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.ideas-have select {
  max-width: 140px;
}
@media (max-width: 640px) {
  .ideas-have-label { display: none; }
  .ideas-toolbar-actions {
    flex-wrap: wrap;
  }
}

/* Final Ideas visual polish */
.ideas-hub-head .ideas-hub-title,
.ideas-hub-head h1 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ideas-hub-lead,
.ideas-hub-head .cab-lead,
.ideas-hub-head p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.ideas-counter {
  font-size: 12px;
  font-weight: 500;
}
.ideas-pills--primary .ideas-pill {
  min-height: 36px;
}
.ideas-pills--secondary .ideas-pill {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
  background: transparent;
}
.ideas-pills--secondary .ideas-pill.is-on,
.ideas-pills--secondary .ideas-pill[aria-pressed="true"],
.ideas-pills--secondary .ideas-pill[aria-checked="true"] {
  opacity: 1;
  background: rgba(168, 85, 247, 0.1);
}
.idea-card-save:hover {
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: var(--ideas-glow-hover);
}
.idea-card-save[aria-pressed="true"] {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.16);
}
.idea-card-save:disabled,
.idea-card-save.is-loading {
  opacity: 0.65;
  cursor: wait;
}
.idea-card-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, 0.55));
}
.idea-card-io--primary {
  font-weight: 500;
}
dialog.ideas-drawer .ideas-drawer-inner {
  background: var(--ideas-card, #121214);
  border-left-color: rgba(168, 85, 247, 0.16);
}
.ideas-drawer-title {
  font-size: 18px;
  font-weight: 700;
}
.ideas-drawer-media {
  aspect-ratio: 3 / 4;
  max-height: min(48vh, 420px);
}
.ideas-drawer-media img {
  object-fit: cover;
}
.ideas-search-input::-webkit-search-cancel-button {
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.75) 0 35%, transparent 36%),
    linear-gradient(45deg, transparent 42%, rgba(201, 162, 255, 0.75) 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, rgba(201, 162, 255, 0.75) 43% 57%, transparent 58%);
}
@media (max-width: 390px) {
  .wrap-ideas {
    padding-left: 16px;
    padding-right: 16px;
  }
}

