/* MagicBox home — aligned with Create V2 tokens (--cv2-*) */

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

/* Beat create-v2 full-bleed wrap if html accidentally keeps create-v2-page on Home */
html.create-v2-page .wrap.wrap-home {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.home-hub {
  /* Create V2 chrome tokens (scoped; Home is not .sheet-create-v2) */
  --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-cta: 0 0 18px rgba(0, 212, 255, 0.22), 0 0 28px rgba(168, 85, 247, 0.28);
  --cv2-glow-cta-hover: 0 0 22px rgba(0, 212, 255, 0.3), 0 0 36px rgba(168, 85, 247, 0.36);
  --cv2-gradient-cta: linear-gradient(90deg, #00d4ff, #a855f7, #ff00ff);
  --cv2-radius-xl: 24px;
  --cv2-radius-lg: 20px;
  --cv2-radius-md: 12px;
  --cv2-radius-sm: 10px;
  --cv2-radius-xs: 8px;

  --home-space-4: 4px;
  --home-space-8: var(--cv2-space-8);
  --home-space-12: var(--cv2-space-12);
  --home-space-16: var(--cv2-space-16);
  --home-space-24: var(--cv2-space-24);
  --home-space-32: var(--cv2-space-32);
  --home-space-40: 40px;
  --home-radius: var(--cv2-radius-md);
  --home-radius-lg: var(--cv2-radius-lg);
  --home-border: var(--cv2-border);
  --home-card: var(--cv2-card);
  --home-input: var(--cv2-input);
  --home-accent: var(--cv2-accent);
  --home-accent-border: var(--cv2-accent-border);
  --home-accent-soft: var(--cv2-accent-soft);
  --home-cta: var(--cv2-gradient-cta);
  --home-cta-glow: var(--cv2-glow-cta);
  --home-media-overlay-text: #ffffff;
  --home-media-overlay-muted: rgba(255, 255, 255, 0.78);

  max-width: none;
  margin: 0 auto;
  padding: var(--home-space-8) 0 calc(var(--dock, 72px) + var(--home-space-24));
}

/* Light Theme: remap Home surfaces to existing semantic tokens.
   Dark values above stay as-is so Dark Home does not shift. */
html[data-theme="light"] .home-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);
}

.home-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;
}

/* --- Hero --- */
.home-hero {
  margin: 0 0 var(--home-space-24);
  text-align: center;
}

.home-hero-title {
  margin: 0 0 var(--home-space-8);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.home-hero-sub {
  margin: 0 0 var(--home-space-16);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.home-hero-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.home-hero-types {
  display: flex;
  flex-wrap: wrap;
  gap: var(--home-space-8);
  justify-content: center;
  margin: 0 0 var(--home-space-12);
}

.home-hero-type {
  border: 1px solid var(--home-border);
  background: var(--home-input);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

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

.home-hero-type.is-on {
  color: var(--text);
  border-color: var(--home-accent-border);
  background: var(--home-accent-soft);
  box-shadow: var(--home-glow-hover);
}

.home-hero-type:focus-visible {
  outline: none;
  border-color: var(--home-accent-border);
  box-shadow: var(--home-glow-focus);
}

.home-hero-field {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--home-space-8);
  padding: var(--home-space-8);
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
  background: var(--home-input);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-hero-field:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: var(--home-glow-hover);
}

.home-hero-field:focus-within {
  border-width: 1px;
  border-color: var(--home-accent-border);
  box-shadow: var(--home-glow-focus);
}

.home-hero-field:focus-within:hover {
  border-color: var(--home-accent-border);
  box-shadow: var(--home-glow-focus);
}

.home-hero-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--text);
  font-size: 15px;
  padding: 10px 12px;
}

.home-hero-input::placeholder {
  color: var(--muted);
}

.home-hero-submit {
  flex-shrink: 0;
  border: 0;
  border-radius: var(--home-radius);
  padding: 0 18px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--home-cta);
  box-shadow: var(--home-cta-glow);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.home-hero-submit:hover {
  filter: brightness(1.05);
  box-shadow: var(--cv2-glow-cta-hover, var(--home-cta-glow));
}

.home-hero-submit:focus-visible {
  outline: none;
  box-shadow: var(--home-glow-focus), var(--home-cta-glow);
}

.home-hero-suggest {
  position: absolute;
  left: var(--home-space-8);
  right: var(--home-space-8);
  top: calc(100% + 6px);
  z-index: 20;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
  background: var(--home-card);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: var(--home-space-8);
}

.home-hero-suggest[hidden] {
  display: none !important;
}

.home-hero-suggest-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px 4px;
}

.home-hero-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-hero-suggest-list button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px;
  min-height: 44px;
  border-radius: var(--cv2-radius-xs, 8px);
  font-size: 14px;
  cursor: pointer;
}

.home-hero-suggest-list button:hover,
.home-hero-suggest-list button:focus-visible {
  background: var(--home-accent-soft);
  outline: none;
}

/* --- Sections --- */
.home-sec {
  margin: 0 0 var(--home-space-32);
}

.home-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--home-space-12);
  margin: 0 0 var(--home-space-16);
}

.home-sec-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home-sec-title--solo {
  margin: 0 0 var(--home-space-16);
}

.home-sec-all {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--cv2-radius-xs, 8px);
}

.home-sec-all:hover {
  color: var(--text);
}

.home-sec-all:focus-visible {
  outline: none;
  color: var(--text);
  box-shadow: var(--home-glow-focus);
}

/* --- Quick start --- */
.home-quick {
  display: flex;
  gap: var(--home-space-12);
  overflow-x: auto;
  padding: 2px 2px var(--home-space-8);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-quick::-webkit-scrollbar {
  display: none;
}

.home-quick-item {
  flex: 0 0 auto;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--home-space-8);
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  border-radius: var(--home-radius);
}

.home-quick-label {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.home-quick-ico {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 16px;
  background: var(--home-accent-soft, rgba(168, 85, 247, 0.10));
  border: 1px solid rgba(168, 85, 247, 0.20);
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.home-quick-ico .home-quick-ico-svg {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  pointer-events: none;
}

.home-quick-item:hover .home-quick-ico {
  border-color: var(--home-accent-border);
  background: var(--home-accent-soft);
  box-shadow: var(--home-glow-hover);
}

.home-quick-item:hover,
.home-quick-item:focus-visible {
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.home-quick-item:focus-visible .home-quick-ico {
  border-color: var(--home-accent-border);
  box-shadow: var(--home-glow-focus);
}

.home-quick-item:active .home-quick-ico {
  transform: translateY(1px);
}

.home-quick-item.is-hidden,
.home-quick-item[hidden] {
  display: none !important;
}

/* --- Scroller --- */
.home-scroller {
  position: relative;
}

.home-scroller-track {
  display: flex;
  gap: var(--home-space-12);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  padding-inline-end: 40px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
}

.home-scroller-track::-webkit-scrollbar {
  display: none;
}

.home-scroller-track:focus-visible {
  outline: none;
  box-shadow: var(--home-glow-focus);
  border-radius: var(--home-radius);
}

.home-scroller-btn {
  position: absolute;
  top: 36%;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--home-border);
  background: rgba(20, 20, 20, 0.92);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.home-scroller-btn[hidden] {
  display: none !important;
}

.home-scroller-btn--prev { left: -4px; }
.home-scroller-btn--next { right: -4px; }

.home-scroller-btn:hover {
  border-color: var(--home-accent-border);
}

.home-scroller-btn:focus-visible {
  outline: none;
  box-shadow: var(--home-glow-focus);
}

@media (max-width: 860px) {
  .home-scroller-btn {
    display: none !important;
  }
}

/* --- Idea card (unified) --- */
.home-idea-card {
  flex: 0 0 auto;
  width: min(200px, 42vw);
  scroll-snap-align: start;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border);
  background: var(--home-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.home-idea-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--home-input);
}

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

.home-idea-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;
}

.home-idea-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;
}

.home-idea-media-mark--audio {
  gap: 3px;
  grid-auto-flow: column;
  align-items: end;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.home-idea-media-mark--audio::before,
.home-idea-media-mark--audio::after {
  content: '';
  width: 3px;
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.85);
}

.home-idea-media-mark--audio::before {
  height: 12px;
  box-shadow: 6px -4px 0 rgba(0, 212, 255, 0.85), 12px 2px 0 rgba(0, 212, 255, 0.85);
}

.home-idea-media-mark--audio::after {
  display: none;
}

.home-idea-type {
  position: absolute;
  top: var(--home-space-8);
  left: var(--home-space-8);
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: var(--cv2-radius-xs, 8px);
  background: rgba(0, 0, 0, 0.55);
  color: var(--home-media-overlay-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-idea-badge {
  position: absolute;
  top: var(--home-space-8);
  right: var(--home-space-8);
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: var(--cv2-radius-xs, 8px);
  background: rgba(0, 0, 0, 0.55);
  color: var(--home-media-overlay-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-idea-badge--popular {
  border-color: rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}

.home-idea-badge--new {
  border-color: rgba(168, 85, 247, 0.45);
  color: #ddd6fe;
}

.home-idea-badge--business {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

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

.home-idea-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--home-media-overlay-text);
  background: rgba(168, 85, 247, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-idea-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 92px;
  background: var(--home-card);
}

.home-idea-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;
  min-height: 2.6em;
}

.home-idea-io,
.home-idea-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;
}

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

.home-idea-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--home-space-8);
  margin-top: auto;
  padding-top: var(--home-space-8);
}

.home-idea-price {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.home-idea-use {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-accent);
  flex-shrink: 0;
  margin-left: auto;
}

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

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

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

@media (hover: none) {
  .home-idea-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4));
  }

  .home-idea-cta {
    font-size: 12px;
    min-height: 30px;
  }
}

/* --- Continue (result-oriented, distinct from IdeaCard) --- */
.home-continue-card {
  flex: 0 0 auto;
  width: min(220px, 58vw);
  max-width: 240px;
  scroll-snap-align: start;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border);
  background: var(--home-card);
  overflow: hidden;
}

.home-continue-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--home-input);
  overflow: hidden;
}

.home-continue-media img,
.home-continue-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-continue-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  color: var(--muted);
}

.home-continue-ph--unavailable {
  gap: 6px;
  padding: 12px;
  text-align: center;
  font-size: 22px;
}

.home-continue-ph-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
}

.home-continue-actions {
  position: absolute;
  left: var(--home-space-8);
  right: var(--home-space-8);
  bottom: var(--home-space-8);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.home-continue-actions a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--home-media-overlay-text);
  text-decoration: none;
}

.home-continue-actions a:focus-visible {
  outline: none;
  box-shadow: var(--home-glow-focus);
}

.home-continue-card:hover .home-continue-actions,
.home-continue-card:focus-within .home-continue-actions {
  opacity: 1;
}

@media (hover: none) {
  .home-continue-actions {
    opacity: 1;
  }
}

.home-continue-body {
  padding: 10px 12px 12px;
  background: var(--home-card);
}

.home-continue-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-continue-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.home-sec--continue .home-continue-card {
  border-style: solid;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.06);
}

/* --- What's new --- */
.home-new-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-space-12);
}

.home-new-card {
  display: flex;
  align-items: center;
  gap: var(--home-space-12);
  padding: 14px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
  background: var(--home-card);
  text-decoration: none;
  color: var(--text);
  min-height: 72px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-new-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: var(--home-glow-hover);
}

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

.home-new-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--home-radius);
  background: var(--home-accent-soft);
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 18px;
}

.home-new-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-new-text strong {
  font-size: 14px;
}

.home-new-text span {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-new-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-accent);
}

/* --- Final CTA (compact, not a second hero) --- */
.home-final-cta {
  margin: 0 0 var(--home-space-24);
  padding: var(--home-space-24) var(--home-space-16);
  text-align: center;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border);
  background: var(--home-card);
}

.home-final-title {
  margin: 0 0 var(--home-space-8);
  font-size: 18px;
  font-weight: 800;
}

.home-final-sub {
  margin: 0 0 var(--home-space-16);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.home-final-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--home-radius);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--home-cta);
  box-shadow: var(--home-cta-glow);
}

.home-final-btn:hover {
  filter: brightness(1.05);
}

.home-final-btn:focus-visible {
  outline: none;
  box-shadow: var(--home-glow-focus), var(--home-cta-glow);
}

/* --- Responsive --- */
@media (min-width: 1024px) {
  .home-idea-card {
    width: 188px;
  }
}

@media (min-width: 1280px) {
  .home-idea-card {
    width: 196px;
  }

  .home-quick {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow: visible;
    gap: var(--home-space-12);
    padding-bottom: 0;
  }

  .home-quick-item {
    width: auto;
  }

  .home-scroller-track {
    padding-inline-end: 2px;
  }
}

@media (max-width: 900px) {
  .home-new-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .home-hub {
    padding-bottom: calc(var(--dock, 72px) + var(--home-space-16));
  }

  .home-hero {
    margin-bottom: var(--home-space-24);
    text-align: left;
  }

  .home-hero-types {
    justify-content: flex-start;
  }

  .home-hero-field {
    flex-direction: column;
  }

  .home-hero-submit {
    width: 100%;
  }

  .home-sec {
    margin-bottom: var(--home-space-32);
  }

  .home-sec-title {
    font-size: 16px;
  }

  .home-idea-card {
    width: min(168px, 46vw);
  }

  .home-quick-item {
    width: 88px;
  }

  .home-quick-ico {
    width: 56px;
    height: 56px;
    padding: 0;
  }

  .home-quick-ico .home-quick-ico-svg {
    width: 24px;
    height: 24px;
  }

  .home-final-title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scroller-track,
  .home-idea-card,
  .home-idea-overlay,
  .home-continue-actions,
  .home-quick-ico,
  .home-new-card {
    scroll-behavior: auto;
    transition: none;
  }

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

/* Product loop: continue status + compact saved rail */
.home-continue-status {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: var(--home-media-overlay-text);
}
.home-continue-card.is-failed .home-continue-status {
  background: rgba(255,77,94,.85);
}
.home-sec--saved .home-idea-card {
  width: 168px;
}

/* Final Home visual polish */
.home-hero {
  margin-bottom: var(--home-space-20, 20px);
}
.home-hero-title {
  font-weight: 700;
}
.home-hero-submit {
  min-height: 42px;
  padding: 0 16px;
}
.home-quick {
  padding-inline-end: 28px;
}
@media (min-width: 900px) {
  .home-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    overflow: visible;
    padding-inline-end: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .home-quick-item {
    width: auto;
  }
}
.home-quick-item:focus-visible {
  outline: none;
  box-shadow: var(--home-glow-focus);
}
.home-idea-io {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, rgba(255, 255, 255, 0.5));
}
.home-continue-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-continue-card:hover {
  border-color: rgba(168, 85, 247, 0.28);
  transform: translateY(-1px);
  box-shadow: var(--home-glow-hover);
}
.home-scroller-btn:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: var(--home-glow-hover);
}
.home-final {
  border-color: var(--home-border);
  background: var(--home-card);
}

html[data-theme="light"] .home-scroller-btn {
  background: var(--elev);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(20, 22, 30, 0.12);
}

html[data-theme="light"] .home-idea-card:hover {
  background: var(--hover);
}

html[data-theme="light"] .home-hero-suggest {
  box-shadow: 0 16px 36px rgba(20, 22, 30, 0.12);
}
@media (max-width: 390px) {
  .wrap.wrap-home {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-idea-card {
    width: min(188px, 72vw);
  }
}

