:root {
  --night: #11111a;
  --night-soft: #191927;
  --cream: #fff7e8;
  --ink: #1d1d2b;
  --muted-cream: #b9b6c7;
  --pink: #f36b9b;
  --yellow: #f4d35e;
  --mint: #a7e8d4;
  --lavender: #a993ff;
  --coral: #e29684;
  --soft-mint: #9fc8bc;
  --hairline: rgba(255, 247, 232, .16);
  --display: "Fredoka", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  --ui: "Inter", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--ui);
}

html { scroll-behavior: smooth; }
body { color: var(--cream); background: var(--night); }
body::before { display: none; }
a { color: inherit; }
.app-shell { width: 100%; padding: 0; }
.topbar { min-height: 80px; padding: 22px 24px; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; background: var(--night); }
.brand-lockup { color: var(--cream); text-decoration: none; }
.brand-lockup:hover, .brand-lockup:focus-visible { color: var(--cream); text-decoration: none; }
.brand-lockup h1 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; letter-spacing: -.02em; }
.topbar h1 { color: var(--cream); }
.sparkle-mark { flex: 0 0 56px; width: 56px; height: 56px; color: var(--cream); }
.brand-lockup h1, .hero-copy h2, .section-heading h2, .library-header .eyebrow, .starter-banner h2, .seo-card-index h2 { font-family: var(--display); letter-spacing: 0; }
.brand-byline { margin: 7px 0 0; color: var(--muted-cream); font-size: .82rem; }
.topbar-actions { gap: 22px; }
.topbar-actions > a:not(.header-cta) { color: var(--muted-cream); font-size: .92rem; text-decoration: none; }
.topbar-actions > a:not(.header-cta):hover { color: var(--cream); }
.header-cta { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 18px; border: 1px solid var(--pink); border-radius: 24px; background: rgba(243, 107, 155, .08); color: var(--cream); font-size: .88rem; text-decoration: none; box-shadow: 3px 3px 0 rgba(243, 107, 155, .28); }
.header-cta::after { content: ""; position: absolute; inset: -4px -5px; border: 2px solid rgba(243, 107, 155, .7); border-radius: 49% 51% 48% 52%; transform: rotate(-2deg); pointer-events: none; }
.header-cta > span { color: var(--yellow); font-size: .85rem; }
.header-cta:hover, .header-cta:focus-visible { border-color: var(--pink); background: var(--pink); color: #17121b; }
.workspace { display: block; }
.sleepy-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(24px, 5vw, 72px); min-height: 520px; padding: 30px clamp(28px, 8vw, 126px) 38px; overflow: hidden; border: 0; background: radial-gradient(circle at 78% 26%, rgba(41, 54, 96, .55), transparent 24%), linear-gradient(120deg, #11111a 0%, #151522 55%, #101827 100%); }
.hero-copy { align-self: center; max-width: 560px; }
.eyebrow { letter-spacing: .13em; }
.moon-mark { font-size: 1.7rem; line-height: .7; letter-spacing: 0; }
.hero-copy h2 { margin: 0; color: var(--cream); font-size: 5.8rem; font-weight: 500; line-height: .84; }
.hero-copy h2 em { color: var(--pink); font-style: normal; }
.hero-title-word { position: relative; display: inline-block; }
.hero-moon-mark { position: relative; top: -.85em; display: inline-block; margin-left: .08em; color: var(--mint); font-size: .28em; line-height: 1; transform: scaleX(-1) rotate(-8deg); }
.hero-trail { width: min(320px, 80%); height: 24px; margin: 24px 0 18px; fill: none; stroke: var(--pink); stroke-width: 2.5; stroke-linecap: round; }
.hero-description { max-width: 500px; color: var(--muted-cream); font-size: 1.15rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button.primary-action { min-height: 54px; padding: 0 25px; border: 0; border-radius: 28px; background: var(--pink); color: #17121b; font-size: 1rem; text-decoration: none; }
.button.primary-action:hover { background: #ff82ac; color: #17121b; }
.quiet-action { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: 1px solid rgba(255,247,232,.22); border-radius: 28px; background: transparent; color: var(--cream); text-decoration: none; }
.quiet-action:hover { border-color: var(--mint); background: rgba(167,232,212,.08); color: var(--cream); }
.hero-stat { margin-top: 34px; color: var(--muted-cream); font-size: .86rem; }
.sparkle-dot { color: var(--yellow); padding-right: 8px; }
.hero-card-stage { position: relative; display: flex; align-items: center; justify-content: center; align-self: center; min-height: 440px; }
.hero-card-back { position: absolute; inset: 10% 7% 7% 11%; border: 1px solid rgba(169,147,255,.26); border-radius: 18px; background: #1b1b32; transform: rotate(4deg); }
.hero-card { position: relative; top: auto; right: auto; width: min(100%, 340px); margin-top: 48px; padding: 10px 10px 0; border: 1px solid rgba(169,147,255,.32); border-radius: 18px; background: #20233d; box-shadow: 0 32px 75px rgba(0,0,0,.35); transform: rotate(2deg); }
.hero-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 12px; background: #172238; }
.hero-card-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 6px 14px; }
.hero-card-meta strong { grid-column: 1 / -1; font-size: 1.2rem; }
.hero-card-meta span { color: var(--muted-cream); font-size: .78rem; }
.hero-card-meta b { display: none; }
.paper-label { position: absolute; z-index: 4; top: 8px; left: 4%; padding: 13px 18px; color: #181522; background: var(--yellow); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 0 5px 0 rgba(0,0,0,.14); }
.doodle-crown { position: absolute; z-index: 3; top: 0; right: 3%; width: 62px; height: 48px; fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: rotate(8deg); }
.section-heading { display: flex; align-items: flex-start; gap: 20px; }
.section-heading h2 { font-size: 2.4rem; font-weight: 500; }
.section-number { display: none; }
.mood-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.mood-chip { position: relative; min-height: 46px; padding: 0 18px; border: 1px solid rgba(169,147,255,.28); border-radius: 24px; background: #191827; color: var(--cream); font-size: .9rem; }
.mood-chip:hover, .mood-chip:focus-visible { border-color: var(--pink); background: #211e35; color: var(--cream); }
.mood-chip.is-active { border-color: var(--pink); background: #191827; color: var(--cream); box-shadow: 0 4px 0 rgba(243, 107, 155, .16); }
.mood-chip.is-active::after { content: ""; position: absolute; inset: -5px -7px; border: 3px solid var(--pink); border-radius: 48% 52% 51% 49%; transform: rotate(-4deg); pointer-events: none; }
.more-chip { border-style: dashed; }
.library-panel { position: relative; padding: 72px clamp(28px, 9vw, 150px) 76px; border: 0; border-radius: 0; background: var(--night); box-shadow: none; }
.latest-panel { padding-bottom: 40px; }
.latest-panel::after { content: "✦"; position: absolute; top: 36px; left: 7%; color: var(--yellow); font-size: 1.35rem; transform: rotate(12deg); }
.homepage-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px clamp(28px, 9vw, 150px); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: #151522; }
.homepage-suggestion .eyebrow { margin: 0 0 8px; color: var(--pink); font-size: .74rem; }
.homepage-suggestion h2 { max-width: 720px; margin: 0; color: var(--cream); font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.08; }
.homepage-suggestion p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted-cream); font-size: .92rem; }
.library-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.library-header .eyebrow { margin-bottom: 8px; color: var(--cream); font-size: 1.45rem; font-weight: 500; text-transform: none; }
.collection-meta { margin: 0; color: var(--muted-cream); font-size: .88rem; }
.library-header h2 { color: var(--muted-cream); font-size: .9rem; font-weight: 400; }
.library-actions { gap: 12px; }
.library-actions .coffee-button { display: none; }
.collection-panel { padding-top: 44px; }
.collection-page-main { min-height: calc(100vh - 101px); background: var(--night); }
.collection-page-shell .topbar { position: sticky; top: 0; z-index: 20; background: rgba(17, 17, 26, .96); backdrop-filter: blur(14px); }
.collection-page-main .collection-panel { padding-top: clamp(24px, 4vw, 48px); }
.collection-page-heading h1 { display: inline; margin: 4px 14px 0 0; color: var(--cream); font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 500; line-height: 1; }
.collection-page-heading .collection-meta { display: inline; color: var(--muted-cream); font-size: 1rem; }
.collection-page-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0; }
.collection-page-heading > div > .eyebrow { flex-basis: 100%; }
.collection-page-heading .collection-description { display: none; }
.collection-page-main .active-filter-chip[hidden],
.collection-page-main .clear-filters-link[hidden] { display: none !important; }
.collection-panel .library-header { margin-bottom: 30px; }
.collection-page-main .library-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.collection-page-main #downloadChecklistButton { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid rgba(169,147,255,.28); border-radius: 21px; background: #191827; color: var(--cream); font-family: inherit; font-size: .88rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.collection-page-main #downloadChecklistButton:hover:not(:disabled), .collection-page-main #downloadChecklistButton:focus-visible:not(:disabled) { border-color: var(--pink); background: #211e35; color: var(--cream); }
.collection-page-main #downloadChecklistButton:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.collection-controls { display: grid; gap: 0; min-width: 0; max-width: 100%; margin-bottom: 34px; padding: 0; border: 0; }
.collection-search-row { display: grid; grid-template-columns: minmax(190px, .42fr) minmax(320px, 1fr); align-items: end; gap: 34px; }
.collection-control-copy h2 { margin: 0; color: var(--cream); font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.collection-control-copy p { margin: 6px 0 0; color: var(--muted-cream); font-size: .9rem; }
.collection-search-field { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; border: 1px solid rgba(255,247,232,.22); border-radius: 27px; background: #191927; transition: border-color 160ms ease, box-shadow 160ms ease; }
.collection-search-field:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(243,107,155,.12); }
.collection-search-field svg { width: 20px; height: 20px; fill: none; stroke: var(--muted-cream); stroke-width: 2; stroke-linecap: round; }
.collection-search-field input { width: 100%; min-width: 0; min-height: 52px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--cream); caret-color: var(--pink); -webkit-text-fill-color: var(--cream); font-size: .95rem; }
.collection-search-field input::placeholder { color: rgba(185,182,199,.72); opacity: 1; }
.collection-search-field input::-webkit-search-cancel-button { filter: invert(1); opacity: .86; }
.collection-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.collection-page-main .collection-filter-row { display: block; min-width: 0; max-width: 100%; }
.collection-page-main .mood-chips { flex-wrap: nowrap; align-items: center; min-width: 0; max-width: 100%; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.collection-sort-control { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; color: var(--muted-cream); font-size: .8rem; }
.collection-sort-control select { min-height: 44px; padding: 0 34px 0 14px; border: 1px solid rgba(255,247,232,.2); border-radius: 22px; background: #191927; color: var(--cream); font: inherit; }
.filters-dialog .filters-panel { color: var(--cream); background: #171724; }
.filters-dialog .filter-heading { border-color: var(--hairline); }
.filters-dialog .filter-heading h2 { color: var(--cream); font-family: var(--display); font-weight: 500; }
.filters-dialog .filter-heading .eyebrow, .filters-dialog .filter-group-label { color: var(--pink); }
.filters-dialog .filter-group { border-color: var(--hairline); background: rgba(255,247,232,.035); }
.filters-dialog .field span { color: var(--muted-cream); }
.filters-dialog .field select, .filters-dialog .field input { border-color: rgba(255,247,232,.2); background: #101019; color: var(--cream); color-scheme: dark; }
.filters-dialog .field input::placeholder { color: rgba(185,182,199,.72); }
.filters-dialog .field select:focus-visible, .filters-dialog .field input:focus-visible { border-color: var(--pink); outline-color: rgba(243,107,155,.28); }
.filters-dialog .link-button { color: var(--mint); }
.filters-dialog .icon-button { border-color: rgba(255,247,232,.22); background: #101019; color: var(--cream); }
.filters-dialog .filter-group-secondary { grid-template-columns: minmax(0, 1fr); }
.view-all-link { display: inline-flex; }
.view-all-link { color: var(--muted-cream); font-size: .9rem; text-decoration: none; }
.active-filter-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 18px; border: 1px solid var(--pink); border-radius: 24px; background: rgba(243,107,155,.88); color: #321624; font-size: .9rem; }
.active-filter-group { display: contents; }
.active-filter-chip button { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.active-filter-chip button:hover, .active-filter-chip button:focus-visible { background: rgba(50,22,36,.14); }
.clear-filters-link { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--muted-cream); font: inherit; font-size: .82rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.clear-filters-link:hover, .clear-filters-link:focus-visible { color: var(--cream); }
.clear-collection-button { min-height: 38px; padding: 0 14px; border: 1px solid rgba(243,107,155,.65); border-radius: 20px; background: transparent; color: var(--cream); font: inherit; font-size: .82rem; cursor: pointer; }
.clear-collection-button:hover, .clear-collection-button:focus-visible { background: var(--pink); color: #211522; }
.search-suggestion-prompt { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.search-suggestion-prompt[hidden] { display: none; }
.search-suggestion-prompt h3 { margin: 0; color: var(--cream); font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.search-suggestion-prompt p { margin: 5px 0 0; color: var(--muted-cream); font-size: .9rem; }
.search-suggestion-link { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; min-height: 46px; padding: 0 19px; border: 1px solid var(--pink); border-radius: 24px; background: rgba(243,107,155,.08); color: var(--cream); text-decoration: none; box-shadow: 3px 3px 0 rgba(243,107,155,.28); }
.search-suggestion-link::after { content: ""; position: absolute; inset: -4px -5px; border: 2px solid rgba(243,107,155,.7); border-radius: 49% 51% 48% 52%; transform: rotate(-2deg); pointer-events: none; }
.search-suggestion-link > span { color: var(--yellow); }
.search-suggestion-link:hover, .search-suggestion-link:focus-visible { border-color: var(--pink); background: var(--pink); color: #17121b; }
.suggestion-dialog { width: min(620px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(169,147,255,.42); border-radius: 18px; background: #171724; color: var(--cream); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.suggestion-dialog::backdrop { background: rgba(8,8,14,.78); backdrop-filter: blur(5px); }
.suggestion-panel { position: relative; display: grid; gap: 16px; padding: 32px; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.suggestion-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,247,232,.24); border-radius: 50%; background: transparent; color: var(--cream); font-size: 1.35rem; }
.suggestion-close:hover, .suggestion-close:focus-visible { border-color: var(--pink); background: rgba(243,107,155,.12); color: var(--cream); }
.suggestion-panel h2 { margin: 0; color: var(--cream); font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 500; }
.suggestion-intro { max-width: 480px; margin: -6px 0 4px; color: var(--muted-cream); }
.suggestion-field { display: grid; gap: 7px; color: var(--muted-cream); font-size: .82rem; }
.suggestion-field input, .suggestion-field textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(255,247,232,.22); border-radius: 10px; background: #101019; color: var(--cream); font: inherit; padding: 12px 14px; }
.suggestion-field input:focus, .suggestion-field textarea:focus { border-color: var(--pink); outline: 2px solid rgba(243,107,155,.2); }
.suggestion-field small { min-height: 1em; color: var(--mint); }
.suggestion-field small:empty, .suggestion-results:empty { display: none; }
.suggestion-results { display: grid; gap: 8px; }
.suggestion-result { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid rgba(169,147,255,.32); border-radius: 10px; background: rgba(169,147,255,.08); color: var(--cream); text-align: left; cursor: pointer; }
.suggestion-result:hover, .suggestion-result:focus-visible { border-color: var(--pink); background: rgba(243,107,155,.12); }
.suggestion-result span, .suggestion-selected span { color: var(--muted-cream); font-size: .8rem; }
.suggestion-selected { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 13px; border: 1px solid var(--mint); border-radius: 10px; background: rgba(155,226,207,.08); }
.suggestion-selected[hidden] { display: none !important; }
.suggestion-selected img { width: 42px; height: 58px; object-fit: cover; border-radius: 5px; background: #101019; }
.suggestion-selected div { display: grid; gap: 3px; flex: 1 1 auto; }
.suggestion-selected span { color: var(--muted-cream); font-size: .8rem; }
.suggestion-selected button { border: 0; background: transparent; color: var(--cream); font-size: 1.2rem; cursor: pointer; }
.suggestion-submit { justify-self: start; border: 0; background: var(--pink); color: #17121b; }
.suggestion-footnote { margin: -5px 0 0; color: var(--muted-cream); font-size: .76rem; }
.suggestion-success { display: grid; gap: 14px; }
.suggestion-success[hidden] { display: none !important; }
.suggestion-panel.is-success > :not(.suggestion-success) { display: none; }
.suggestion-success h2 { margin: 0; }
.suggestion-success h2 span { color: var(--pink); }
.suggestion-success p:not(.eyebrow) { margin: 0; color: var(--muted-cream); }
.suggestion-done { justify-self: start; min-height: 46px; padding: 0 24px; border: 0; border-radius: 24px; background: var(--pink); color: #17121b; font: inherit; font-weight: 700; cursor: pointer; }
.suggestion-done:hover, .suggestion-done:focus-visible { background: var(--yellow); color: #17121b; }

@media (min-width: 1100px) {
  .homepage-suggestion h2 { max-width: none; white-space: nowrap; font-size: clamp(1.45rem, 2vw, 1.8rem); }
}
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
#latestGrid { grid-template-rows: 1fr; }
.card-tile { overflow: visible; padding: 10px; border: 1px solid rgba(169,147,255,.2); border-radius: 18px; background: #191927; box-shadow: none; }
.card-tile:hover, .card-tile:focus-visible { border-color: var(--pink); background: #211e35; box-shadow: 0 20px 40px rgba(0,0,0,.22); transform: translateY(-4px); }
.card-tile:nth-child(7)::before { content: "⌁"; position: absolute; z-index: 2; top: -12px; right: 16px; color: var(--pink); font-size: 2.4rem; line-height: 1; transform: rotate(8deg); }
.card-tile:nth-child(13)::before { content: "☾"; position: absolute; z-index: 2; top: -10px; left: 14px; color: var(--mint); font-size: 2rem; line-height: 1; transform: rotate(-14deg); }
.card-image-frame { min-height: 0; padding: 20px; border-radius: 12px; background: #1b2940; aspect-ratio: 3 / 4; }
.card-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 17px 6px 8px; }
.card-title-row h3 { color: var(--cream); font-size: 1.2rem; font-weight: 500; }
.card-subtitle { color: var(--muted-cream); font-size: .88rem; }
.card-body .price-pill { display: none; }
.starter-banner { display: flex; align-items: center; gap: 22px; margin: 0; padding: 34px clamp(28px, 9vw, 150px); border-top: 1px solid rgba(169,147,255,.25); border-bottom: 1px solid rgba(169,147,255,.25); background: #1d1b36; }
.starter-banner .moon-mascot { color: var(--mint); font-size: 4rem; line-height: .7; }
.starter-banner .eyebrow { margin-bottom: 6px; color: var(--pink); }
.starter-banner h2 { color: var(--cream); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 450; }
.starter-banner .quiet-action { margin-left: auto; min-height: 48px; white-space: nowrap; }
.seo-card-index { margin: 0; border-top: 1px solid var(--hairline); background: var(--night); }
.seo-card-index-inner { width: min(1140px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0; }
.seo-card-index h2, .seo-card-index .notes, .seo-card-index ol { color: var(--cream); }
.seo-card-index a { color: var(--muted-cream); }
.comet-intro { display: none; }
.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; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(460px, calc(100vw - 36px));
  padding: 13px 20px;
  border: 1px solid rgba(169, 147, 255, .38);
  border-radius: 24px;
  background: rgba(25, 24, 39, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 247, 232, .06);
  color: var(--cream);
  font-family: var(--ui);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 800px) {
  .app-shell { width: 100%; padding: 0; }
  .topbar { width: 100%; box-sizing: border-box; align-items: flex-start; flex-wrap: wrap; border-radius: 0; padding: 18px 18px; }
  .topbar-actions { display: grid; grid-template-columns: auto auto minmax(0, 1fr); width: 100%; min-width: 0; justify-content: flex-start; gap: 14px; }
  .topbar-actions .header-search { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .topbar-actions .header-cta { margin-left: auto; }
  .sleepy-hero { grid-template-columns: 1fr; min-height: 0; padding: 40px 24px 34px; }
  .hero-copy h2 { font-size: 4rem; }
  .hero-card-stage { min-height: 470px; margin-top: 10px; }
  .hero-card { width: min(86vw, 380px); }
  .hero-card-back { right: 6%; left: 8%; }
  .scribble-note { right: 0; }
  .library-panel { padding: 52px 24px 60px; }
  .homepage-suggestion { align-items: flex-start; flex-direction: column; gap: 24px; padding: 34px 24px 40px; }
  .library-header { align-items: flex-start; margin-bottom: 28px; }
  .library-actions { display: flex; }
  .collection-search-row { grid-template-columns: 1fr; gap: 16px; }
  .collection-filter-row { align-items: stretch; flex-direction: column; }
  .collection-page-main .collection-filter-row { display: block; }
  .collection-page-main .mood-chips { margin: -6px -4px; padding: 6px 4px 10px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%); }
  .mood-chips { flex-wrap: nowrap; min-width: 0; max-width: 100%; margin: -6px -4px; padding: 6px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .mood-chip { flex: 0 0 auto; }
  .collection-sort-control { justify-content: space-between; }
  .collection-sort-control select { flex: 1 1 auto; max-width: 240px; }
  .search-suggestion-prompt { align-items: flex-start; flex-direction: column; gap: 18px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
  #latestGrid { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  #latestGrid .card-tile { flex: 0 0 min(72vw, 240px); }
  .card-tile { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; height: auto; align-self: start; min-width: 0; overflow: hidden; padding: 7px; border-radius: 13px; }
  .card-image-frame { width: 100%; min-width: 0; overflow: hidden; padding: 9px; border-radius: 9px; }
  .card-image-frame img { min-width: 0; max-width: 100%; }
  .card-body { flex: 0 0 auto; width: 100%; min-width: 0; padding: 12px 3px 5px; }
  .card-title-row h3 { font-size: .98rem; }
  .card-subtitle { font-size: .75rem; }
  .starter-banner { align-items: flex-start; padding: 22px 24px; }
  .starter-banner .moon-mascot { font-size: 3rem; }
  .starter-banner { flex-wrap: wrap; }
  .starter-banner .quiet-action { margin-left: 0; }
  .seo-card-index-inner { width: min(100% - 48px, 1140px); }
  .toast { right: 16px; left: 16px; bottom: 20px; max-width: none; justify-content: center; text-align: center; }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .hero-copy h2 { font-size: 4.8rem; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
