/* SearchBots — a clean, search-engine-style directory UI. Dark theme only. */

:root {
  color-scheme: dark;
  --bg: #202124;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --link: #8ab4f8;
  --link-visited: #c58af9;
  --border: #3c4043;
  --border-soft: #3c4043;
  --chip: #303134;
  --chip-text: #e8eaed;
  --blue: #8ab4f8;
  --blue-icon: #8ab4f8;
  --footer-bg: #171717;
  --surface: #303134;
  --surface-hover: #3c4043;
  --snippet: #bdc1c6;
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  --shadow-suggest: 0 4px 12px rgba(0, 0, 0, 0.5);
  --font: "Inter", Arial, Helvetica, sans-serif;
  --logo: "Inter", Arial, Helvetica, sans-serif;
  --header-h: 72px;
  --chrome-left: 24px;
  --logo-col: 228px;
  --chrome-gap: 16px;
  --content-left: calc(var(--chrome-left) + var(--logo-col) + var(--chrome-gap));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

.preview-banner {
  display: none;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 6px 16px;
  box-sizing: border-box;
  background: #3c4043;
  color: #e8eaed;
  border-bottom: 1px solid #5f6368;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

body.preview-mock .preview-banner,
.preview-banner:not([hidden]) {
  display: block;
}

img,
svg {
  display: block;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* Logo lockups */
.logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
}

.logo-header {
  width: 212px;
  height: auto;
}

.logo-home {
  width: min(560px, 92vw);
  height: auto;
}

.logo-footer {
  width: 133px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.logo-auth {
  width: 180px;
  height: auto;
  margin: 0 auto 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand:visited {
  text-decoration: none;
}

/* Views */
.view {
  display: none;
}

body.view-home .view-home-only,
body.view-results .view-results-only,
body.view-detail .view-detail-only,
body.view-submit .view-submit-only,
body.view-about .view-about-only,
body.view-collection .view-collection-only,
body.view-shared .view-collection-only {
  display: block;
}

body.view-home .brand-compact,
body.view-home .header-search,
body.view-home .tabs-wrap {
  display: none;
}

body.view-home .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  justify-content: flex-end;
  height: auto;
  padding: 18px 20px 0;
  background: transparent;
}

body:not(.view-home) .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: var(--logo-col) minmax(0, 692px) auto;
  gap: 8px var(--chrome-gap);
  align-items: center;
  min-height: var(--header-h);
  padding: 16px 24px 0 var(--chrome-left);
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

body.view-results .topbar {
  padding-bottom: 0;
  border-bottom: none;
}

body:not(.view-home) .brand-compact {
  display: flex;
  align-items: center;
  max-width: var(--logo-col);
}


/* Top links */
.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.top-links a,
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.top-links a:visited,
.footer-links a:visited {
  color: var(--text);
}

.top-links a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

/* Home */
#view-home {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 22vh 20px 40px;
}

body.view-home #view-home {
  display: flex;
}

body.view-home #main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-hero {
  margin: 0 0 28px;
  text-align: center;
}

.brand-hero .wordmark {
  font-size: clamp(52px, 12vw, 86px);
}

.home-search {
  width: min(584px, 100%);
}

/* Search box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.search-box:hover,
.search-box.is-focused {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.search-icon {
  color: var(--muted);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.4;
  padding: 0;
  color: var(--text);
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Keep the long placeholder fully visible on narrow screens.
   Leave the input at 16px so iOS does not zoom on focus. */
@media (max-width: 879px) {
  .search-input::placeholder {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .search-input::placeholder {
    font-size: 12px;
  }
}

/* Hide native search clear so we use our own */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.clear-btn,
.search-go {
  border: 0;
  background: transparent;
  padding: 6px;
  margin: 0;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn:hover,
.search-go:hover {
  color: var(--text);
}

.clear-btn:not([hidden]) {
  border-right: 1px solid var(--border);
  border-radius: 0;
  margin-right: 4px;
  padding-right: 10px;
}

.search-go {
  color: var(--blue-icon);
}

.pill-btn {
  background: var(--chip);
  color: var(--chip-text);
  border: 1px solid var(--chip);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  min-width: 132px;
}

.pill-btn:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-color: var(--border);
}

.pill-btn:focus-visible,
.clear-btn:focus-visible,
.search-go:focus-visible,
.tab:focus-visible,
.top-links a:focus-visible,
.result-title:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pill-btn-primary {
  background: #8ab4f8;
  border-color: #8ab4f8;
  color: #202124;
  min-width: 0;
}

.pill-btn-primary:hover {
  background: #aecbfa;
  border-color: #aecbfa;
  color: #202124;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Suggestions */
.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
  margin: 0;
  padding: 8px 0 10px;
  list-style: none;
  background: var(--surface);
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-suggest);
  border: 1px solid transparent;
  overflow: hidden;
}

.search-box.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: var(--shadow);
  border-color: transparent;
}

.search-box.is-open .suggest-list {
  margin-top: 0;
  top: 100%;
  border-top: 1px solid var(--border);
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
}

.suggest-item:hover,
.suggest-item.is-active {
  background: var(--surface-hover);
}

.suggest-item .sug-icon {
  color: var(--muted);
  flex: none;
}

.suggest-item b {
  font-weight: 700;
}

.sug-type {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.suggest-row {
  display: flex;
  align-items: stretch;
  position: relative;
}

.suggest-row .suggest-item {
  flex: 1;
  min-width: 0;
}

.suggest-row.is-history .suggest-item {
  padding-right: 48px;
}

.suggest-row:hover,
.suggest-row:has(.suggest-item.is-active) {
  background: var(--surface-hover);
}

.suggest-row:hover .suggest-item,
.suggest-row:has(.suggest-item.is-active) .suggest-item,
.suggest-row .suggest-item:hover,
.suggest-row .suggest-item.is-active {
  background: transparent;
}

.sug-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sug-remove {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sug-remove:hover,
.sug-remove:focus-visible {
  color: var(--text);
  background: rgba(232, 234, 237, 0.08);
}


.sug-remove:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.suggest-list {
  max-height: min(60vh, 440px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.suggest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px 4px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  text-transform: none;
}

.suggest-heading-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sug-clear-all {
  border: 0;
  background: transparent;
  color: var(--blue, #8ab4f8);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0 4px 8px;
  min-height: 32px;
}

.sug-clear-all:hover,
.sug-clear-all:focus-visible {
  text-decoration: underline;
}

.sug-thumb,
.sug-initial {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  background: #3c4043;
}

.sug-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #e8eaed;
}

.did-you-mean {
  margin: 0 0 14px;
  font-size: 16px;
}

.did-you-mean a {
  color: var(--blue, #8ab4f8);
}

@media (max-width: 879px) {
  .suggest-list {
    max-height: min(70vh, 480px);
    border-radius: 0 0 20px 20px;
  }
  .home-search .search-box.is-open .suggest-list,
  .header-search .search-box.is-open .suggest-list {
    left: 0;
    right: 0;
  }
}


/* Results header search */
.header-search {
  width: 100%;
  max-width: 692px;
}

body:not(.view-home) .header-search .search-box {
  height: 44px;
  max-width: 692px;
}

/* Tabs */
.tabs-wrap {
  border-bottom: 1px solid var(--border-soft);
  padding: 0 24px 0 0;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 0 24px 0 0;
  margin-left: var(--chrome-left);
}

.tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 880px) {
  .tabs-wrap {
    padding-left: 0;
  }

  .tabs {
    margin-left: var(--content-left);
    padding-left: 0;
    padding-right: 24px;
    max-width: none;
  }

  .stats,
  .results,
  .no-results {
    margin-left: var(--content-left);
    margin-right: 24px;
    max-width: 652px;
    padding-left: 0;
    padding-right: 0;
  }

  .stats {
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .results {
    padding: 4px 0 48px;
  }
}

.tab {
  flex: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 12px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.tab[aria-selected="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab:hover {
  color: var(--text);
}

.stats {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  margin-bottom: 8px;
  margin-right: 20px;
  margin-left: 20px;
}

.results {
  padding: 4px 20px 48px;
}

.result {
  margin: 0 0 26px;
  max-width: 652px;
}

.result-source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex: none;
  font-family: var(--logo);
}

.result-source-text {
  min-width: 0;
}

.result-site {
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.result-crumb {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-title {
  display: inline-block;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
  color: var(--link);
  margin: 0 0 4px;
}

.result-title:hover {
  text-decoration: underline;
}

.result-title:visited {
  color: var(--link-visited);
}

.result-snippet {
  font-size: 14px;
  color: var(--snippet);
  line-height: 1.58;
  margin: 0;
}

.result-snippet strong {
  font-weight: 600;
  color: #e8eaed;
}

.example-flag {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface-hover);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* No results */
.no-results {
  padding: 8px 20px 64px;
  max-width: 652px;
  font-size: 14px;
  color: var(--text);
}

.no-results h3 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 12px;
}

.no-results p {
  margin: 0 0 10px;
}

.no-results ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.no-results a {
  text-decoration: none;
}

.no-results a:hover {
  text-decoration: underline;
}

/* Detail / about / submit pages */
.page-wrap {
  width: min(720px, calc(100% - 40px));
  margin: 28px auto 64px;
}

body.view-results .page-wrap,
body.view-detail .page-wrap {
  margin-left: 20px;
  margin-right: 20px;
}

@media (min-width: 880px) {
  body.view-detail .detail-wrap {
    margin-left: var(--content-left);
    margin-right: 24px;
    max-width: 652px;
    width: auto;
  }
}

.page-wrap h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.page-lead,
.page-wrap p {
  font-size: 15px;
  color: var(--snippet);
  line-height: 1.6;
}

.crumb,
.detail-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.crumb a {
  color: var(--blue);
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(138, 180, 248, 0.16);
  color: #8ab4f8;
  font-size: 12px;
  font-weight: 500;
}

.detail-sub {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.detail-body {
  margin: 0 0 24px;
}

.detail-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Forms */
.submit-form {
  margin-top: 20px;
}

.submit-form[hidden] {
  display: none;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.28);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  color: #f28b82;
  font-size: 13px;
  margin: 0 0 12px;
}

.form-success {
  margin-top: 20px;
  padding: 16px 18px;
  background: #16351f;
  color: #81c995;
  border-radius: 8px;
  font-size: 15px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 24px;
}

.footer-left,
.footer-mid,
.footer-links {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

body.view-home .site-footer {
  margin-top: auto;
}


/* Home-only outer-space background */
html:has(body.view-home) {
  background: #0b0d12;
}

body.view-home {
  background-color: #0b0d12;
  background-image:
    radial-gradient(ellipse 70% 45% at 18% 12%, rgba(52, 68, 120, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 40% at 88% 78%, rgba(62, 40, 90, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 30% at 60% 35%, rgba(28, 40, 70, 0.12), transparent 60%),
    linear-gradient(180deg, #0b0d12 0%, #10131a 52%, #14161c 100%);
}

#space-bg {
  display: none;
}

body.view-home #space-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.view-home #main,
body.view-home .site-footer {
  position: relative;
  z-index: 1;
}

body.view-home .topbar {
  z-index: 2;
}

body.view-home .preview-banner {
  position: relative;
  z-index: 3;
}

.space-layer {
  position: absolute;
  inset: -12%;
  background-repeat: repeat;
  will-change: transform, opacity;
}

.space-layer-far {
  background-image:
    radial-gradient(0.9px 0.9px at 289.5px 313.5px, rgba(255,252,245,0.279) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 121.5px 450.2px, rgba(255,255,255,0.319) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 60.2px 169.9px, rgba(255,252,245,0.299) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 406.0px 333.4px, rgba(255,252,245,0.392) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 472.9px 364.0px, rgba(255,252,245,0.183) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 40.4px 20.0px, rgba(236,244,255,0.312) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 208.8px 330.9px, rgba(255,252,245,0.294) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 188.3px 2.6px, rgba(236,244,255,0.281) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 260.3px 308.7px, rgba(236,244,255,0.336) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 485.1px 287.2px, rgba(255,255,255,0.195) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 256.3px 474.1px, rgba(255,255,255,0.195) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 542.3px 0.3px, rgba(255,255,255,0.384) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 300.8px 549.0px, rgba(255,252,245,0.272) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 402.9px 436.0px, rgba(236,244,255,0.254) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 212.9px 539.9px, rgba(255,252,245,0.210) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 64.7px 33.5px, rgba(255,252,245,0.219) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 120.6px 285.0px, rgba(236,244,255,0.349) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 412.0px 65.2px, rgba(255,255,255,0.398) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 172.7px 543.7px, rgba(255,255,255,0.247) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 134.9px 220.8px, rgba(255,255,255,0.321) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 26.9px 82.0px, rgba(255,252,245,0.237) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 210.5px 165.9px, rgba(255,255,255,0.196) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 373.0px 136.1px, rgba(255,252,245,0.261) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 290.1px 537.1px, rgba(255,255,255,0.363) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 554.6px 102.4px, rgba(255,255,255,0.248) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 523.4px 139.7px, rgba(255,252,245,0.215) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 601.9px 110.1px, rgba(255,252,245,0.374) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 50.2px 26.5px, rgba(236,244,255,0.189) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 152.6px 394.6px, rgba(255,252,245,0.273) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 314.2px 291.2px, rgba(255,255,255,0.395) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 146.2px 313.2px, rgba(236,244,255,0.315) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 135.9px 512.4px, rgba(236,244,255,0.184) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 263.3px 139.5px, rgba(236,244,255,0.219) 50%, transparent 51%),
    radial-gradient(0.7px 0.7px at 339.8px 544.9px, rgba(236,244,255,0.260) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 627.5px 367.9px, rgba(255,255,255,0.295) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 377.5px 517.2px, rgba(255,252,245,0.380) 50%, transparent 51%);
  background-size: 640px 560px;
  opacity: 0.85;
  animation: space-drift-far 160s linear infinite alternate;
}

.space-layer-mid {
  background-image:
    radial-gradient(1.0px 1.0px at 480.9px 436.4px, rgba(236,244,255,0.285) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 220.3px 243.8px, rgba(236,244,255,0.498) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 231.2px 101.7px, rgba(255,255,255,0.550) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 44.6px 326.6px, rgba(255,252,245,0.286) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 381.8px 165.1px, rgba(255,255,255,0.342) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 306.3px 302.6px, rgba(255,252,245,0.345) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 188.7px 349.5px, rgba(236,244,255,0.571) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 343.5px 144.6px, rgba(255,255,255,0.524) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 373.3px 271.7px, rgba(255,255,255,0.483) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 94.7px 82.1px, rgba(255,252,245,0.482) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 101.7px 52.6px, rgba(255,252,245,0.408) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 143.3px 263.5px, rgba(236,244,255,0.379) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 468.1px 249.4px, rgba(236,244,255,0.445) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 77.8px 285.0px, rgba(236,244,255,0.492) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 123.8px 250.9px, rgba(236,244,255,0.458) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 87.0px 448.5px, rgba(236,244,255,0.469) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 12.1px 372.4px, rgba(255,255,255,0.284) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 418.6px 436.5px, rgba(236,244,255,0.563) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 389.5px 159.2px, rgba(255,255,255,0.427) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 39.5px 214.3px, rgba(236,244,255,0.506) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 494.2px 99.3px, rgba(255,252,245,0.447) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 88.2px 250.1px, rgba(236,244,255,0.356) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 85.8px 5.4px, rgba(236,244,255,0.477) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 423.2px 411.8px, rgba(255,255,255,0.523) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 360.4px 381.7px, rgba(255,252,245,0.504) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 153.5px 188.4px, rgba(255,255,255,0.463) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 429.8px 49.9px, rgba(255,252,245,0.322) 50%, transparent 51%),
    radial-gradient(1.0px 1.0px at 378.9px 198.0px, rgba(255,255,255,0.565) 50%, transparent 51%);
  background-size: 520px 460px;
  opacity: 0.9;
  animation: space-drift-mid 110s linear infinite alternate, space-twinkle 9s ease-in-out infinite;
}

.space-layer-near {
  background-image:
    radial-gradient(1.6px 1.6px at 147.8px 163.5px, rgba(236,244,255,0.678) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 215.2px 149.1px, rgba(255,252,245,0.768) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 9.9px 38.9px, rgba(236,244,255,0.827) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 304.0px 3.5px, rgba(255,255,255,0.677) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 99.9px 195.3px, rgba(255,255,255,0.833) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 235.6px 272.4px, rgba(255,252,245,0.690) 50%, transparent 51%),
    radial-gradient(1.9px 1.9px at 241.5px 74.5px, rgba(255,255,255,0.816) 50%, transparent 51%),
    radial-gradient(1.9px 1.9px at 52.7px 37.2px, rgba(255,252,245,0.603) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 341.5px 36.9px, rgba(236,244,255,0.821) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 91.8px 282.8px, rgba(255,252,245,0.692) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 366.4px 334.1px, rgba(236,244,255,0.774) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 149.9px 214.8px, rgba(236,244,255,0.575) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 109.3px 277.5px, rgba(255,252,245,0.693) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 353.4px 144.3px, rgba(255,252,245,0.835) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 62.7px 5.8px, rgba(255,255,255,0.669) 50%, transparent 51%),
    radial-gradient(1.9px 1.9px at 31.3px 194.3px, rgba(236,244,255,0.669) 50%, transparent 51%);
  background-size: 420px 380px;
  opacity: 0.95;
  animation: space-drift-near 80s linear infinite alternate, space-twinkle-near 7s ease-in-out infinite;
}

@keyframes space-drift-far {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.6%, -1.1%, 0); }
}

@keyframes space-drift-mid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(1.8%, -1.4%, 0); }
}

@keyframes space-drift-near {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.2%, 1.6%, 0); }
}

@keyframes space-twinkle {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes space-twinkle-near {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .space-layer {
    animation: none;
    will-change: auto;
  }
}

body.view-home .home-search .search-box {
  background: #303134;
  border-color: #5f6368;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

body.view-home .site-footer {
  background: rgba(11, 13, 18, 0.86);
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Mobile */
@media (max-width: 879px) {
  body:not(.view-home) .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand links"
      "search search";
    gap: 10px 12px;
    padding: 12px 16px 12px;
  }

  body:not(.view-home) .brand-compact {
    grid-area: brand;
  }

  body:not(.view-home) .top-links {
    grid-area: links;
  }

  body:not(.view-home) .header-search {
    grid-area: search;
    max-width: none;
  }


  .tabs,
  .stats,
  .results,
  .no-results {
    margin-left: 0;
    max-width: none;
  }

  .tabs-wrap {
    padding: 0;
  }

  .tabs {
    padding: 0 8px;
    margin: 0;
  }

  .stats,
  .results,
  .no-results {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px 20px;
  }

  #view-home {
    padding-top: 18vh;
  }

  .top-links {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .logo-home {
    width: min(480px, 94vw);
  }
}

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

@media (min-width: 880px) {
  .stats,
  .results,
  .no-results {
    margin-left: var(--content-left);
  }
  .results,
  .no-results {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure the hidden attribute always wins over display utilities */
[hidden] {
  display: none !important;
}

.search-input {
  -webkit-appearance: none;
  appearance: none;
}


/* Collection badge and header link */
.collection-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.view-collection .collection-link {
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #8ab4f8;
  color: #202124;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* Star / bookmark toggle — a save control, not a rating */
.star-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--muted);
  line-height: 0;
  flex: none;
}

.star-btn:hover,
.star-btn:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

.star-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.star-btn .star-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.star-btn.is-saved {
  color: #f9ab00;
}

.star-btn.is-saved .star-icon path {
  fill: currentColor;
  stroke: currentColor;
}

.star-btn-lg {
  padding: 8px;
}

.star-btn-lg .star-icon {
  width: 26px;
  height: 26px;
}

.result {
  position: relative;
  padding-right: 44px;
}

.result .star-btn,
.result .remove-link {
  position: absolute;
  top: 2px;
  right: 0;
}

.result .remove-link {
  top: 36px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
}

.result .remove-link:hover {
  text-decoration: underline;
}

.detail-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-heading-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.detail-heading-row h2 {
  margin: 0;
}

.detail-heading-row .price-badge {
  margin: 0;
}

/* Collection page */
.collection-page {
  padding: 20px 20px 64px;
}

@media (min-width: 880px) {
  .collection-page {
    margin-left: var(--content-left);
    margin-right: 24px;
    max-width: 652px;
    padding: 24px 0 64px;
  }

  .collection-page .results {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    padding: 0;
  }
}

.collection-head h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.collection-stats {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.collection-banner {
  background: rgba(138, 180, 248, 0.14);
  color: #aecbfa;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin: 0 0 16px;
}

.empty-collection {
  color: var(--snippet);
  font-size: 15px;
  padding: 24px 0 8px;
}

.empty-collection p {
  margin: 0;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #3c4043;
  color: #e8eaed;
  padding: 12px 16px 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  font-size: 14px;
  min-width: 260px;
  max-width: calc(100% - 32px);
}

.toast-action {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #8ab4f8;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px;
}

.toast-action:hover {
  text-decoration: underline;
}

@media (max-width: 879px) {
  .collection-page {
    padding: 16px 16px 48px;
    margin-left: 0;
  }

  .top-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }
}

/* Sign in and account */
.signin-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.signin-btn:hover {
  background: var(--surface-hover);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.signin-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.account {
  position: relative;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 2px 4px 2px 2px;
  cursor: pointer;
  border-radius: 20px;
  color: var(--text);
  font-size: 13px;
  max-width: 200px;
}

.account-chip:hover,
.account-chip[aria-expanded="true"] {
  background: var(--surface-hover);
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-hover);
  flex: none;
}

.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
}

.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.account-dropdown a:visited {
  color: var(--text);
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: var(--surface-hover);
}

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #303134;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  padding: 28px 28px 24px;
}

.auth-dialog .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  line-height: 0;
}

.auth-dialog .modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.auth-dialog h2 {
  margin: 0 28px 8px 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.auth-lead,
.auth-fine {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.auth-fine {
  margin: 16px 0 0;
  font-size: 12px;
}

.sso-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.sso-btn:visited {
  text-decoration: none;
}

.sso-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.sso-logo {
  flex: none;
}

/* Apple: white button (official option on dark backgrounds) */
.sso-apple {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.sso-apple:visited {
  color: #000;
}

.sso-apple:hover {
  background: #f2f2f2;
  color: #000;
}

/* Google Identity dark-theme button: #131314 fill, #8E918F stroke, #E3E3E3 text, official G */
.sso-google {
  background: #131314;
  color: #e3e3e3;
  border: 1px solid #8e918f;
  font-family: "Roboto", Arial, sans-serif;
}

.sso-google:visited {
  color: #e3e3e3;
}

.sso-google:hover {
  background: #1f1f1f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  color: #e3e3e3;
}

/* X: black with a light outline so the button stays visible on dark surfaces */
.sso-x {
  background: #000;
  color: #fff;
  border: 1px solid #e8eaed;
}

.sso-x:visited {
  color: #fff;
}

.sso-x:hover {
  background: #1a1a1a;
  color: #fff;
}

.sync-prompt {
  color: var(--snippet);
  font-size: 14px;
  margin: 0 0 16px;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.sync-banner {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(138, 180, 248, 0.14);
  color: #aecbfa;
  padding: 8px 20px;
  font-size: 13px;
}

body.view-home .sync-banner {
  top: 0;
}

.banner-dismiss {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  border-radius: 50%;
}

.banner-dismiss:hover {
  background: rgba(26, 115, 232, 0.12);
}

@media (max-width: 879px) {
  .account-name {
    max-width: 72px;
  }

  .auth-dialog {
    padding: 24px 20px 20px;
  }
}

body.auth-open .sync-banner {
  display: none !important;
}


.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.share-link-guide {
  margin: 10px 0 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.share-link-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
}

.share-link-guide summary::-webkit-details-marker,
.share-link-guide summary::marker {
  display: none;
  content: "";
}

.share-link-guide summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-left: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.share-link-guide[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.share-link-guide ol,
.share-link-guide p {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
}

.share-link-guide ol {
  padding-left: 2.15em;
}

.share-link-guide li + li {
  margin-top: 6px;
}

.share-link-guide a {
  color: #8ab4f8;
}

.share-link-guide-more {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 13px;
}

.faq-list {
  max-width: 36rem;
}

.faq-list .share-link-guide + .share-link-guide {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .share-link-guide {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Add to Grok Bot */
.add-to-grok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #e8eaed;
  color: #202124 !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.add-to-grok:visited {
  color: #202124 !important;
}

.add-to-grok:hover {
  background: #fff;
  text-decoration: none;
}

.add-to-grok:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.add-to-grok[disabled],
.add-to-grok[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface);
  color: var(--muted) !important;
  border-color: var(--border);
}

.add-to-grok .add-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}

.add-to-grok.add-to-grok-lg {
  margin-top: 16px;
  padding: 10px 16px 10px 10px;
  font-size: 15px;
  border-radius: 24px;
}

.add-to-grok.add-to-grok-lg .add-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.result-rating {
  margin: 4px 0 0;
  color: #e8eaed;
  font-size: 13px;
}

.result-rating .stars {
  color: #f9ab00;
  letter-spacing: 1px;
  margin: 0 4px;
}

.result-rating .count {
  color: var(--muted);
}

.add-fallback {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-suggest);
  color: var(--text);
}

.add-fallback h3 {
  margin: 0 28px 8px 0;
  font-size: 16px;
}

.add-fallback p {
  margin: 0 0 14px;
  color: var(--snippet);
  font-size: 13px;
}

.add-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.add-fallback .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Reviews */
.reviews-panel {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  max-width: 680px;
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.reviews-head h3 {
  margin: 0;
  font-size: 22px;
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 32px;
  align-items: center;
  margin-bottom: 20px;
}

.reviews-average {
  text-align: center;
}

.reviews-average .num {
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.reviews-average .stars {
  color: #f9ab00;
  letter-spacing: 2px;
  font-size: 16px;
  margin-top: 4px;
}

.reviews-average .total {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.dist-row {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}

.dist-bar {
  height: 8px;
  background: #3c4043;
  border-radius: 4px;
  overflow: hidden;
}

.dist-bar > span {
  display: block;
  height: 100%;
  background: #f9ab00;
  border-radius: 4px;
}

.reviews-toolbar {
  margin: 0 0 16px;
}

.reviews-toolbar select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 10px;
}

.review-item {
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}

.review-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item-head img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.review-item .who {
  font-weight: 600;
  font-size: 14px;
}

.review-item .meta {
  color: var(--muted);
  font-size: 12px;
}

.review-item .stars {
  color: #f9ab00;
  letter-spacing: 1px;
  margin: 6px 0;
}

.review-item .body {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  white-space: pre-wrap;
}

.review-item-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.review-item-actions button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
}

.review-item-actions button[aria-pressed="true"] {
  font-weight: 600;
}

.reviews-empty {
  color: var(--muted);
  font-size: 14px;
}

.star-picker {
  display: flex;
  gap: 6px;
  margin: 8px 0 16px;
}

.star-pick {
  background: none;
  border: 0;
  padding: 0;
  font-size: 32px;
  line-height: 1;
  color: #5f6368;
  cursor: pointer;
}

.star-pick.is-on,
.star-picker:hover .star-pick.is-hover {
  color: #f9ab00;
}

.review-dialog textarea {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--chip);
  color: var(--text);
  resize: vertical;
}

.review-modal[hidden] {
  display: none;
}

.review-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 70;
}

@media (max-width: 640px) {
  .reviews-summary {
    grid-template-columns: 1fr;
  }
}

body.view-creator .view-creator-only {
  display: block;
}

.result-creator,
.detail-creator {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.result-title + .result-creator {
  margin-top: 2px;
}

.result-creator + .result-snippet {
  margin-top: 8px;
}

.creator-link {
  color: var(--muted);
  text-decoration: none;
}

.creator-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.creator-unknown {
  color: #80868b;
  font-style: italic;
}

.creator-wrap {
  padding-top: 8px;
  padding-bottom: 48px;
}

.creator-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 0 0 24px;
}

.creator-avatar,
.creator-avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #3c4043;
  flex: none;
}

.creator-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: #e8eaed;
}

.creator-id {
  min-width: 0;
  flex: 1;
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 4px;
}

.creator-name-row h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 12px;
  background: #303134;
  color: #8ab4f8;
  font-size: 12px;
  font-weight: 600;
}

.creator-handle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.creator-bio {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  max-width: 40em;
}

.creator-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.social-btn:hover {
  background: #3c4043;
  text-decoration: none;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.creator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.creator-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

#creator-sort {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}

.creator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.creator-edit {
  margin: 16px 0 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 36rem;
}

.creator-edit[hidden] {
  display: none !important;
}

.creator-edit label {
  display: block;
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.creator-edit textarea,
.creator-edit input {
  width: 100%;
  box-sizing: border-box;
  background: #202124;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.creator-edit textarea {
  min-height: 90px;
  resize: vertical;
}

.creator-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.creator-empty {
  color: var(--muted);
}

@media (max-width: 640px) {
  .creator-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .creator-name-row h2 {
    font-size: 24px;
  }
}

body.view-purchases .view-purchases-only,
body.view-leaderboard .view-leaderboard-only,
body.view-dashboard .view-dashboard-only,
body.view-terms .view-terms-only,
body.view-seller-terms .view-seller-terms-only,
body.view-faq .view-faq-only,
body.view-mock-checkout .view-mock-checkout-only {
  display: block;
}

.price-badge {
  display: inline-block;
  margin: 0 0 0 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #3c4043;
  color: #e8eaed;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 0;
  border-radius: 20px;
  background: #8ab4f8;
  color: #202124;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.buy-btn:hover {
  background: #aecbfa;
}

.buy-btn.buy-btn-lg {
  margin-top: 16px;
  padding: 10px 16px;
  font-size: 14px;
}

.sell-panel {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  max-width: 28rem;
}

.sell-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.sell-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.sell-panel label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.sell-panel input {
  width: 8rem;
  background: #202124;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  margin-right: 8px;
}

.sell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sell-payout-preview,
.purchase-use-note {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.purchase-use-note {
  max-width: 28rem;
}

.payments-unconfigured {
  color: #fdd663;
  font-size: 13px;
}

.draft-notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #3c4043;
  color: #e8eaed;
  font-size: 14px;
}

.dash-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.dash-stat {
  min-width: 140px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dash-stat .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.dash-stat .value {
  font-size: 20px;
  font-weight: 600;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 28px;
}

.dash-table th,
.dash-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.dash-table th {
  color: var(--muted);
  font-weight: 500;
}

.mock-checkout-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 24rem;
}

/* Sponsored placements */
body.view-ads .view-ads-only {
  display: block;
}

.sponsored-block {
  margin: 0 0 18px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border-soft);
}

.sponsored-label {
  display: inline-block;
  margin: 0 0 2px;
  color: #9aa0a6;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sponsored-block .result {
  margin-bottom: 18px;
}

.ads-page h3 {
  margin: 28px 0 10px;
  font-size: 16px;
}

.ads-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: end;
  margin: 16px 0 18px;
}

.ads-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.ads-toolbar input,
.ads-toolbar select,
.ads-form input,
.ads-form select,
.ads-form textarea {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
}

.ads-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin: 8px 0 18px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
}

.ads-balance .amount {
  font-size: 22px;
  font-weight: 600;
}

.ads-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.ads-totals .dash-stat,
.dash-totals .dash-stat {
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 14px;
}

.ads-totals .label,
.dash-stat .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ads-totals .value,
.dash-stat .value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
}

.ads-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.ads-chart {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px 8px;
}

.ads-chart h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.ads-chart svg {
  display: block;
  width: 100%;
  height: 84px;
}

.ads-form {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 16px;
  background: #2a2b2e;
  border-radius: 12px;
}

.ads-form[hidden] {
  display: none;
}

.ads-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ads-kw-row {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .ads-form .field-row,
  .ads-kw-row {
    grid-template-columns: 1fr;
  }
}

.ads-note {
  font-size: 13px;
  color: var(--muted);
}

/* Share */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 20px 8px;
  max-width: 652px;
}

.results-toolbar .stats {
  margin: 0;
  flex: 1;
}

.detail-heading-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.share-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-btn .share-icon {
  flex: none;
}

.share-more {
  border: 0;
  background: none;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
}

.share-more:hover,
.share-more:focus-visible {
  text-decoration: underline;
}

.result {
  padding-right: 76px;
}

.result .share-btn-icon {
  position: absolute;
  top: 2px;
  right: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  line-height: 0;
}

.result .share-btn-icon:hover,
.result .share-btn-icon:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

.result .share-btn-icon:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.share-modal[hidden] {
  display: none;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.share-popover {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  background: #2a2b2e;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  padding: 16px 16px 12px;
}

.share-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.share-popover-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.share-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.share-close:hover,
.share-close:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

.share-preview {
  margin: 0 0 12px;
  color: var(--snippet);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.share-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.share-item:hover,
.share-item:focus-visible {
  background: var(--surface-hover);
}

.share-item.is-copied {
  color: #81c995;
}

/* ===== Mobile compatibility ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(138, 180, 248, 0.18);
}

button,
a,
.tab,
.star-btn,
.share-btn-icon,
.signin-btn,
.sso-btn,
.pill-btn,
.toast-action {
  touch-action: manipulation;
}

input,
select,
textarea {
  font-size: 16px;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 8px;
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

.field input,
.field textarea,
.field select,
.ads-toolbar input,
.ads-toolbar select,
.ads-form input,
.ads-form select,
.ads-form textarea,
.creator-edit input,
.creator-edit textarea,
.review-dialog textarea,
#review-form input,
#review-form textarea,
#review-form select {
  font-size: 16px;
  color-scheme: dark;
}

/* Hover is not the only affordance on touch */
.pill-btn:active,
.signin-btn:active,
.sso-btn:active,
.tab:active,
.share-item:active,
.account-dropdown a:active,
.account-dropdown button:active,
.suggest-item:active,
.star-btn:active,
.share-btn-icon:active {
  background: var(--surface-hover);
}

@media (hover: none) {
  .search-box:hover {
    box-shadow: none;
    border-color: var(--border);
  }
  .search-box.is-focused:hover,
  body.view-home .home-search .search-box.is-focused {
    box-shadow: var(--shadow);
  }
  .pill-btn:hover,
  .signin-btn:hover {
    box-shadow: none;
  }
}

.tabs {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.tab {
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
}

.suggest-item {
  min-height: 44px;
}

.clear-btn,
.search-go {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signin-btn {
  min-height: 44px;
  padding: 10px 14px;
}

.sso-btn {
  min-height: 44px;
}

.star-btn,
.share-btn-icon,
.modal-close,
.share-close,
.banner-dismiss {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-chip {
  min-height: 44px;
  padding: 4px 8px 4px 4px;
}

.account-dropdown a,
.account-dropdown button {
  min-height: 44px;
  padding: 12px 16px;
}

.toast-action {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
}

.star-pick {
  min-width: 44px;
  min-height: 44px;
}

.top-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.toast {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  z-index: 100;
}

.preview-banner {
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
}

body.preview-mock .preview-banner,
.preview-banner:not([hidden]) {
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
}

.site-footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sync-banner {
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 0 28px;
}

.table-scroll .dash-table {
  margin-bottom: 0;
  min-width: 560px;
}

.ads-chart svg {
  width: 100%;
  height: auto;
  max-height: 120px;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.logo-header,
.logo-auth,
.logo-footer {
  height: auto;
}

.inapp-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #3c4043;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}

.inapp-hint p {
  margin: 0 0 8px;
}

.inapp-hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* iOS body scroll lock */
body.scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
  width: 100%;
}

/* Bottom sheets + safe areas on phones */
@media (max-width: 700px) {
  body.view-home .topbar {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
  }

  body.preview-mock.view-home .topbar {
    padding-top: 12px;
  }

  body:not(.view-home) .topbar {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    padding-bottom: 10px;
  }

  body.preview-mock:not(.view-home) .topbar {
    padding-top: 10px;
  }

  .logo-header {
    width: min(168px, 52vw);
  }

  .logo-auth {
    width: min(200px, 80vw);
  }

  .top-link-secondary {
    display: none !important;
  }

  .account-name,
  .account-caret {
    display: none;
  }

  .account-chip {
    max-width: none;
    padding: 4px;
  }

  #view-home {
    padding-top: 16vh;
    padding-top: 16dvh;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-bottom: 32px;
  }

  .tabs-wrap,
  .tabs {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .tabs {
    padding-left: calc(8px + env(safe-area-inset-left, 0px));
    padding-right: calc(8px + env(safe-area-inset-right, 0px));
  }

  .results-toolbar,
  .stats,
  .results,
  .no-results,
  .page-wrap,
  .collection-page {
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }

  .results-toolbar {
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .page-wrap,
  .collection-page,
  .ads-page,
  .creator-wrap {
    max-width: 100%;
    overflow-x: hidden;
  }

  .creator-hero {
    flex-direction: column;
    gap: 12px;
  }

  .detail-heading-row {
    flex-wrap: wrap;
  }

  .ads-toolbar,
  .ads-balance,
  .collection-toolbar,
  .creator-actions,
  .sell-actions {
    flex-wrap: wrap;
  }

  .ads-form .field-row,
  .ads-kw-row {
    grid-template-columns: 1fr;
  }

  /* Bottom sheets */
  .auth-modal,
  .review-modal:not([hidden]),
  .share-modal:not([hidden]) {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .auth-dialog,
  .review-dialog,
  .share-popover {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .share-modal {
    padding: 0;
  }

  .share-popover {
    margin: 0;
  }

  .add-fallback {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .pill-btn {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .collection-link-label {
    /* Keep readable; collection + sign-in should still fit with a smaller logo */
  }

  .logo-header {
    width: min(132px, 42vw);
  }

  .toast {
    min-width: 0;
    width: calc(100% - 24px);
    left: 50%;
  }

  .result {
    padding-right: 72px;
  }
}

@media (max-width: 320px) {
  .logo-header {
    width: 120px;
  }

  .top-links {
    gap: 8px;
  }
}

/* Landscape phones: don't waste vertical space on the home hero */
@media (max-height: 500px) and (orientation: landscape) {
  #view-home,
  body.view-home #view-home {
    padding-top: 64px;
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
    padding-bottom: 16px;
  }

  .brand-hero {
    margin-bottom: 16px;
  }

  .logo-home {
    width: min(360px, 70vw);
  }

  body.view-home .topbar {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-layer,
  .share-popover,
  .auth-dialog {
    animation: none !important;
    transition: none !important;
  }
}

.add-to-grok {
  min-height: 44px;
}


.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

body, .page-wrap, .result-snippet, .share-preview, .detail-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== Foldable / dual-screen (Viewport Segments, spanning, Device Posture) =====
   Progressive enhancement: layouts work as one fluid viewport first.
   CSS Viewport Segments + Device Posture are supported in Safari 27.1 on
   iPhone Duo behind feature flags; also in Chromium on dual-screen / foldables.
   Legacy Microsoft `spanning` queries are kept as a fallback.
   Do not fingerprint a device model. */

html.is-spanning-h {
  --seg0-left: 0px;
  --seg0-width: calc(50vw - 12px);
  --seg0-top: 0px;
  --seg0-height: 100dvh;
  --seg1-left: calc(50vw + 12px);
  --seg1-width: calc(50vw - 12px);
  --seg1-top: 0px;
  --seg1-height: 100dvh;
  --hinge-h: 24px;
  --hinge-v: 0px;
}

html.is-spanning-v {
  --seg0-left: 0px;
  --seg0-width: 100vw;
  --seg0-top: 0px;
  --seg0-height: calc(50dvh - 12px);
  --seg1-left: 0px;
  --seg1-width: 100vw;
  --seg1-top: calc(50dvh + 12px);
  --seg1-height: calc(50dvh - 12px);
  --hinge-h: 0px;
  --hinge-v: 24px;
}

@supports (width: env(viewport-segment-width 0 0)) {
  @media (horizontal-viewport-segments: 2), (spanning: single-fold-vertical) {
    html {
      --seg0-left: env(viewport-segment-left 0 0, 0px);
      --seg0-top: env(viewport-segment-top 0 0, 0px);
      --seg0-width: env(viewport-segment-width 0 0, 50vw);
      --seg0-height: env(viewport-segment-height 0 0, 100dvh);
      --seg0-right: env(viewport-segment-right 0 0, 50vw);
      --seg1-left: env(viewport-segment-left 1 0, 50vw);
      --seg1-top: env(viewport-segment-top 1 0, 0px);
      --seg1-width: env(viewport-segment-width 1 0, 50vw);
      --seg1-height: env(viewport-segment-height 1 0, 100dvh);
      --seg1-right: env(viewport-segment-right 1 0, 100vw);
      --hinge-h: calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw));
      --hinge-v: 0px;
    }
  }

  @media (vertical-viewport-segments: 2), (spanning: single-fold-horizontal) {
    html {
      --seg0-left: env(viewport-segment-left 0 0, 0px);
      --seg0-top: env(viewport-segment-top 0 0, 0px);
      --seg0-width: env(viewport-segment-width 0 0, 100vw);
      --seg0-height: env(viewport-segment-height 0 0, 50dvh);
      --seg1-left: env(viewport-segment-left 0 1, 0px);
      --seg1-top: env(viewport-segment-top 0 1, 50dvh);
      --seg1-width: env(viewport-segment-width 0 1, 100vw);
      --seg1-height: env(viewport-segment-height 0 1, 50dvh);
      --hinge-h: 0px;
      --hinge-v: calc(env(viewport-segment-top 0 1, 50dvh) - env(viewport-segment-bottom 0 0, 50dvh));
    }
  }
}

/* Home: keep the hero on one segment so the logo and search don't sit on the hinge. */
html.is-spanning-h body.view-home #view-home {
  width: var(--seg0-width);
  max-width: var(--seg0-width);
  margin-left: var(--seg0-left);
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

html.is-spanning-h body.view-home .topbar {
  left: auto;
  right: auto;
  width: var(--seg1-width);
  margin-left: var(--seg1-left);
  box-sizing: border-box;
  justify-content: flex-end;
  padding-left: 12px;
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
}

html.is-spanning-v body.view-home #view-home {
  width: var(--seg0-width);
  max-width: var(--seg0-width);
  margin-top: 0;
  min-height: var(--seg0-height);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Non-split pages: keep the reading column on the first segment. */
html.is-spanning-h body:not(.view-home):not(.fold-split) .topbar,
html.is-spanning-h body:not(.view-home):not(.fold-split) #main,
html.is-spanning-h body:not(.view-home):not(.fold-split) .site-footer {
  width: var(--seg0-width);
  max-width: var(--seg0-width);
  margin-left: var(--seg0-left);
  box-sizing: border-box;
}

html.is-spanning-h body:not(.view-home) .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

/* Horizontal two-pane: results (and tabs) on the left, bot preview on the right. */
html.is-spanning-h body.fold-split .topbar {
  width: var(--seg0-width);
  max-width: var(--seg0-width);
  margin-left: var(--seg0-left);
  box-sizing: border-box;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  padding-right: 12px;
}

html.is-spanning-h body.fold-split #main {
  position: relative;
  min-height: calc(100dvh - var(--header-h, 64px));
}

html.is-spanning-h body.fold-split #view-results,
html.is-spanning-h body.fold-split .view-results-only {
  display: block;
  width: var(--seg0-width);
  max-width: var(--seg0-width);
  margin-left: var(--seg0-left);
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
}

html.is-spanning-h body.fold-split #view-detail,
html.is-spanning-h body.fold-split .view-detail-only,
html.is-spanning-h body.fold-split #fold-detail-placeholder {
  display: block;
  position: fixed;
  left: var(--seg1-left);
  top: var(--seg1-top, 0px);
  width: var(--seg1-width);
  height: var(--seg1-height, 100dvh);
  max-width: var(--seg1-width);
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--bg);
  z-index: 8;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
  margin: 0;
}

html.is-spanning-h body.fold-split #fold-detail-placeholder[hidden] {
  display: none;
}

html.is-spanning-h body.fold-split #view-detail .page-wrap,
html.is-spanning-h body.fold-split #view-detail .detail-wrap {
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

html.is-spanning-h body.fold-split .site-footer {
  width: var(--seg0-width);
  max-width: var(--seg0-width);
  margin-left: var(--seg0-left);
  box-sizing: border-box;
}

html.is-spanning-h body.fold-split .result.is-selected {
  background: var(--surface, #2b2c2f);
  box-shadow: inset 3px 0 0 var(--link, #8ab4f8);
}

.fold-placeholder {
  display: none;
  color: var(--muted, #9aa0a6);
  text-align: center;
  padding-top: 20vh;
  font-size: 16px;
}

html.is-spanning-h body.fold-split.view-results #fold-detail-placeholder:not([hidden]) {
  display: block;
}

/* Vertical two-pane (laptop / tent posture): list above the hinge, preview below. */
html.is-spanning-v body.fold-split .topbar {
  position: fixed;
  top: var(--seg0-top, 0px);
  left: var(--seg0-left, 0px);
  width: var(--seg0-width, 100%);
  max-width: var(--seg0-width, 100%);
  box-sizing: border-box;
  z-index: 9;
}

html.is-spanning-v body.fold-split #view-results,
html.is-spanning-v body.fold-split .view-results-only {
  display: block;
  position: fixed;
  left: var(--seg0-left, 0px);
  top: var(--seg0-top, 0px);
  width: var(--seg0-width, 100vw);
  height: var(--seg0-height, 50dvh);
  padding-top: var(--header-h, 64px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  z-index: 7;
  background: var(--bg);
}

html.is-spanning-v body.fold-split #view-detail,
html.is-spanning-v body.fold-split .view-detail-only,
html.is-spanning-v body.fold-split #fold-detail-placeholder:not([hidden]) {
  display: block;
  position: fixed;
  left: var(--seg1-left, 0px);
  top: var(--seg1-top, 50dvh);
  width: var(--seg1-width, 100vw);
  height: var(--seg1-height, 50dvh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  z-index: 8;
  box-sizing: border-box;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

html.is-spanning-v body.fold-split #fold-detail-placeholder[hidden] {
  display: none;
}

html.is-spanning-v body.fold-split .site-footer {
  display: none;
}

/* Device Posture: slightly tighter measure when a book/laptop fold is reported. */
@media (device-posture: folded) {
  html.posture-folded .result-snippet,
  html.posture-folded .detail-body {
    max-width: 42em;
  }
}

/* Near-square unfolded canvases (~7–8 inch inner displays, e.g. Galaxy Z Fold inner,
   iPhone Duo inner when used as a single continuous viewport). */
@media (min-width: 600px) and (max-width: 1100px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
  body.view-results .results,
  body.view-results .results-toolbar,
  body.view-results .tabs-wrap {
    max-width: 46rem;
  }
  .detail-wrap,
  body.view-creator .page-wrap,
  body.view-collection .page-wrap {
    max-width: 46rem;
  }
  body.view-home .logo-home {
    width: min(420px, 62vw);
  }
}

/* iPhone Duo inner display in its natural open orientation (~890×626 CSS at 3x):
   wider than tall, short landscape tablet. Keep the home hero compact. */
@media (min-width: 800px) and (max-width: 960px) and (max-height: 700px) and (orientation: landscape) {
  body.view-home .logo-home {
    width: min(380px, 56vw);
  }
  body.view-home #view-home {
    padding-top: 8px;
  }
}

/* Narrow, tall cover screens (~2.3:1) down to 280px wide. */
@media (max-width: 360px) {
  body:not(.view-home) .topbar {
    padding-left: calc(8px + env(safe-area-inset-left, 0px));
    padding-right: calc(8px + env(safe-area-inset-right, 0px));
    gap: 6px;
  }
  .logo-header {
    width: min(148px, 42vw);
    height: auto;
  }
  .collection-link-label {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .result {
    padding-left: 8px;
    padding-right: 8px;
  }
  .tabs-wrap {
    margin-left: 0;
    padding-left: 4px;
  }
}

@media (max-width: 300px) {
  html {
    font-size: 15px;
  }
  body:not(.view-home) .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand links"
      "search search";
    height: auto;
    min-height: 0;
    padding-bottom: 8px;
  }
  body:not(.view-home) .brand-compact {
    grid-area: brand;
    max-width: none;
  }
  body:not(.view-home) .header-search {
    grid-area: search;
  }
  body:not(.view-home) .top-links {
    grid-area: links;
    justify-self: end;
  }
  .logo-header {
    width: min(128px, 48vw);
  }
  .logo-home {
    width: min(240px, 86vw);
  }
  .signin-btn,
  .account-chip {
    min-height: 44px;
  }
  .search-input {
    font-size: 16px;
  }
}

/* Short cover / flip landscape: don't force vertical overflow or huge hero. */
@media (max-height: 360px) and (orientation: landscape) {
  body.view-home .logo-home {
    width: min(240px, 50vw);
  }
  body.view-home #view-home {
    padding-top: 4px;
    padding-bottom: 8px;
  }
  .auth-dialog,
  .share-popover,
  .review-dialog {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
}

/* Narrow-screen overflow + remaining 44px hit areas */
.footer-inner,
.footer-links,
.footer-mid,
.footer-left {
  max-width: 100%;
  box-sizing: border-box;
}

.footer-links {
  flex-wrap: wrap;
  gap: 4px 16px;
}

.tabs-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.search-input {
  min-height: 44px;
}

.brand-compact {
  min-height: 44px;
  min-width: 44px;
}

.tab {
  min-width: 44px;
  box-sizing: border-box;
}

.top-link-secondary {
  min-width: 44px;
  box-sizing: border-box;
}

.share-item {
  min-height: 44px;
  box-sizing: border-box;
}

#space-bg,
.space-layer {
  max-width: none;
}

#space-bg {
  contain: layout paint;
}

.pill-btn {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

.footer-links a {
  min-width: 44px;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
  justify-content: center;
}

.creator-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Search filters, sorts, and pagination */
.filters-bar {
  padding: 8px 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.filters-bar-inner {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  flex-wrap: wrap;
}

.filters-controls {
  display: flex;
  align-items: center;
  gap: 2px 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.filters-sort {
  margin-left: auto;
  flex: none;
}

.filters-open,
.filter-chip,
.filters-clear-btn,
.filter-pill-remove,
.page-btn,
#filters-sheet-done.pill-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}

.filters-open {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  max-width: 280px;
}

.filters-open:hover,
.filters-clear-btn:hover,
.page-btn:hover,
#filters-sheet-done.pill-btn:hover,
.filter-menu-item:hover,
.filter-chip:hover .filter-value,
.filter-sheet-options .filter-chip:hover {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.filter-chip:hover {
  background: transparent;
  text-decoration: none;
}

.filters-open.is-active,
.filter-sheet-options .filter-chip.is-active,
.filter-sheet-options .filter-chip[aria-pressed="true"],
.filter-sheet-options .filter-chip.is-active .filter-chip-label,
.filter-sheet-options .filter-chip[aria-pressed="true"] .filter-chip-label {
  color: var(--blue);
  text-decoration: none;
}

.filter-chip.is-active .filter-value,
.filter-chip[aria-expanded="true"] .filter-value {
  color: var(--blue);
}

.filters-open:focus-visible,
.filter-chip:focus-visible,
.filter-menu-item:focus-visible,
.filters-clear-btn:focus-visible,
.filter-pill-remove:focus-visible,
.filters-sheet-close:focus-visible,
.page-btn:focus-visible,
#filters-sheet-done.pill-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.filters-open-count {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.filter-group-name,
.filter-menu-heading,
.filter-sheet-legend {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.filter-value,
.filter-pill-value,
.filter-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.filter-chip .filter-group-name,
.filter-pill .filter-group-name {
  flex: none;
}

.filter-chip-caret {
  flex: none;
  width: 10px;
  height: 10px;
  color: var(--muted);
  opacity: 1;
}

.filter-chip.is-active .filter-chip-caret,
.filter-chip[aria-expanded="true"] .filter-chip-caret {
  color: var(--blue);
}

.filter-dropdown {
  position: relative;
  display: inline-flex;
}

.filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 32px));
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 4px 0 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-suggest);
}

.filter-menu-heading {
  display: block;
  padding: 8px 14px 6px;
  pointer-events: none;
}

.filter-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.filter-menu-item[aria-selected="true"] {
  color: var(--blue);
}

.filter-menu-count {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.filters-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 4px 0 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.filter-pill-value {
  color: var(--blue);
}

.filter-pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.filter-pill-remove:hover {
  color: var(--text);
  background: transparent;
  text-decoration: none;
}

.filters-clear-btn {
  color: var(--link);
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  padding: 0 4px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 20px 48px;
  margin: 0 20px 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  color: var(--link);
  font-size: 14px;
  text-decoration: none;
}

.page-btn[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: default;
}

.page-btn[disabled],
.page-btn[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 6px;
}

.filters-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.filters-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.filters-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-suggest);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}

.filters-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.filters-sheet-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.filters-sheet-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.filters-sheet-close:hover {
  color: var(--text);
  background: transparent;
}

.filters-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.filter-sheet-group {
  margin: 16px 0 8px;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.filter-sheet-legend {
  margin: 0 0 10px;
  padding: 0;
  float: none;
}

.filter-sheet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.filter-sheet-options .filter-chip {
  max-width: none;
  padding: 0;
}

#filters-sheet-done.pill-btn,
#filters-sheet-done.pill-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--link);
  font-size: 14px;
  font-weight: 500;
}

#filters-sheet-done.pill-btn:hover,
#filters-sheet-done.pill-btn-primary:hover,
#filters-sheet-done.pill-btn:active,
#filters-sheet-done.pill-btn-primary:active {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--text);
}

.filters-sheet-footer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}

@media (min-width: 880px) {
  .filters-bar {
    margin-left: var(--content-left);
    margin-right: 24px;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  .results-toolbar {
    margin-left: var(--content-left);
    margin-right: 24px;
    max-width: none;
    width: auto;
  }

  .results-toolbar .stats,
  .pagination {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .pagination {
    margin-left: var(--content-left);
    margin-right: 24px;
    max-width: 652px;
  }
}

@media (max-width: 879px) {
  .filters-open,
  .filters-sort .filter-chip,
  .filter-sheet-options .filter-chip,
  .filter-pill,
  .filters-clear-btn,
  .page-btn {
    min-height: 44px;
  }

  .filters-open {
    display: inline-flex;
  }

  .filters-controls {
    display: none;
  }

  .filters-bar {
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }

  .pagination {
    margin-left: 0;
    margin-right: 0;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 600px) and (max-width: 1100px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
  body.view-results .filters-bar,
  body.view-results .pagination {
    max-width: 46rem;
  }
}

body.filters-sheet-open { overflow: hidden; }

/* ---------- Template thumbnails ---------- */

.thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  isolation: isolate;
}

.thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  color: #fff;
  background: linear-gradient(135deg, #3c4043, #202124);
  font-family: var(--logo);
  text-align: center;
  user-select: none;
}

.thumb-initials {
  font-weight: 600;
  font-size: clamp(16px, 4.2vw, 26px);
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.94;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.thumb-name {
  max-width: 90%;
  font-size: 15px;
  line-height: 1.3;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

/* Result cards: a small 16:9 tile on the right, like a search-engine thumbnail. */
.result::after {
  content: "";
  display: block;
  clear: both;
}

.result-thumb {
  float: right;
  width: 152px;
  margin: 6px 0 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.result-thumb:hover .thumb {
  border-color: var(--muted);
}

.result-thumb:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Detail page: a large banner. */
.detail-thumb {
  max-width: 640px;
  margin: 16px 0 8px;
}

.detail-thumb:empty {
  display: none;
}

.thumb-detail {
  border-radius: 12px;
}

.thumb-detail .thumb-initials {
  font-size: clamp(40px, 11vw, 88px);
}

/* Submit form picker and owner editor. */
.thumb-picker {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.thumb-preview {
  flex: none;
  width: 192px;
}

.thumb-picker-controls {
  min-width: 0;
  flex: 1;
}

.thumb-picker-controls input[type="file"] {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.link-btn {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.thumb-status {
  margin: 6px 0 0;
  min-height: 1em;
  color: var(--muted);
  font-size: 13px;
}

.thumb-edit {
  max-width: 640px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.thumb-edit-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.thumb-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.thumb-file-btn {
  position: relative;
  cursor: pointer;
}

.thumb-file-btn:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .result-thumb {
    width: 104px;
    margin: 4px 0 6px 12px;
  }

  .thumb-initials {
    font-size: 18px;
  }

  .thumb-detail .thumb-initials {
    font-size: clamp(36px, 14vw, 64px);
  }

  .thumb-name {
    font-size: 13px;
  }

  .thumb-picker {
    flex-direction: column;
  }

  .thumb-preview {
    width: 100%;
    max-width: 320px;
  }
}

.thumb-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* "No longer available" suggestions: modal after Add to Grok Bot, and the
   removed listing's detail page. */
.gone-modal[hidden] {
  display: none;
}

.gone-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gone-dialog {
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.similar-panel {
  margin-top: 24px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.similar-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.similar-thumb {
  display: block;
  border-radius: 8px;
  text-decoration: none;
}

.similar-thumb:hover .thumb {
  border-color: var(--muted);
}

.similar-text {
  flex: 1;
  min-width: 0;
}

.similar-title {
  display: block;
  color: var(--link);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.similar-title:hover {
  text-decoration: underline;
}

.similar-desc {
  margin: 6px 0 0;
  color: var(--snippet);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.similar-add .add-to-grok,
.similar-add .buy-btn {
  margin-top: 0;
}

.similar-empty {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 640px) {
  .gone-modal:not([hidden]) {
    align-items: flex-end;
    padding: 0;
  }

  .gone-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .similar-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Compact rows on phones: thumbnail left, text right, button below. */
  .similar-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-areas: "thumb text" "add add";
    align-items: start;
    gap: 10px 12px;
  }

  .similar-thumb {
    grid-area: thumb;
  }

  .similar-text {
    grid-area: text;
  }

  .similar-add {
    grid-area: add;
  }

  .similar-add .add-to-grok {
    width: 100%;
    justify-content: center;
  }

  .similar-title {
    font-size: 15px;
  }

  .similar-desc {
    -webkit-line-clamp: 2;
  }
}

/* On-site notes about saved templates that moved or were removed. */
.notice-stack[hidden] {
  display: none;
}

.notice-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 920px;
  margin: 12px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: var(--surface);
}

.notice-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notice-actions .add-to-grok {
  margin-top: 0;
}

@media (max-width: 640px) {
  .notice-stack {
    padding: 0 12px;
  }

  .notice-actions {
    width: 100%;
  }

  .notice-actions > * {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* "Report: this is my work" */
.report-link {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted, #9aa0a6);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.report-link:hover,
.report-link:focus-visible { color: var(--text); }
.result .report-link { display: block; }
.report-modal .review-dialog { max-height: 92vh; overflow-y: auto; }
#report-form label { display: block; margin-top: 12px; font-weight: 600; }
#report-form input[type="url"],
#report-form textarea {
  width: 100%;
  margin: 6px 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--chip);
  color: var(--text);
  font-size: 16px;
  color-scheme: dark;
  box-sizing: border-box;
}
#report-form input[type="file"] { margin: 6px 0 4px; max-width: 100%; font-size: 14px; color: var(--text); }
#report-form .field-hint { margin: 2px 0 0; }
#report-done .detail-actions { margin-top: 12px; flex-wrap: wrap; }
.dash-note { color: var(--muted, #9aa0a6); font-size: 12px; }

/* Public leaderboard (ranks only) */
.leaderboard-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.leaderboard-periods { display: flex; flex-wrap: wrap; gap: 6px; }
.leaderboard-cat { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.leaderboard-cat-label { font-size: 15px; }
.leaderboard-cat select { background: var(--chip); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 600; min-width: 220px; min-height: 44px; }
@media (max-width: 640px) {
  .leaderboard-controls { flex-direction: column; align-items: stretch; }
  .leaderboard-cat { flex-direction: column; align-items: stretch; gap: 6px; }
  .leaderboard-cat select { width: 100%; min-width: 0; }
  .leaderboard-periods { justify-content: flex-start; flex-wrap: nowrap; }
}
.leaderboard-list { list-style: none; margin: 8px 0 0; padding: 0; }
.leaderboard-item { display: grid; grid-template-columns: 40px 96px 1fr auto; gap: 14px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.leaderboard-item { position: relative; border-radius: 12px; transition: background-color .15s; }
.leaderboard-item:hover, .leaderboard-item:focus-within { background: var(--chip); }
/* Whole row opens the listing; the Add to Grok Bot button sits above the link. */
.leaderboard-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; z-index: 1; }
.leaderboard-link:focus-visible { outline: none; }
.leaderboard-link:focus-visible::after { outline: 2px solid var(--accent, #1d9bf0); outline-offset: -2px; }
.leaderboard-add { position: relative; z-index: 2; }
.leaderboard-rank { font-size: 22px; font-weight: 700; text-align: center; color: var(--muted, #9aa0a6); font-variant-numeric: tabular-nums; }
.leaderboard-item:nth-child(-n+3) .leaderboard-rank { color: var(--text); }
.leaderboard-thumb { display: block; width: 96px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.leaderboard-thumb img, .leaderboard-thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.leaderboard-text { min-width: 0; }
.leaderboard-text .result-title { font-size: 17px; }
.leaderboard-desc { margin: 4px 0 0; color: var(--muted, #9aa0a6); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .leaderboard-item { grid-template-columns: 32px 72px 1fr; gap: 10px; }
  .leaderboard-thumb { width: 72px; }
  .leaderboard-add { grid-column: 2 / -1; }
  .leaderboard-rank { font-size: 18px; }
}
.leaderboard-periods .pill-btn { padding: 7px 14px; font-size: 14px; min-height: 0; }
@media (max-width: 640px) {
  .leaderboard-periods .pill-btn { padding: 7px 11px; font-size: 13px; white-space: nowrap; }
}

/* Listing extras: videos, links, upgrade, claim, owner edit (assets/listing-extras.js) */
.listing-extras:empty, .creator-extras:empty { display: none; }
.lx-section { margin: 22px 0; }
.lx-tags, .lx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.lx-tag { background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.lx-badge { text-decoration: none; }
.lx-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lx-video { margin: 0; }
.lx-video figcaption { font-size: 14px; color: var(--muted, #9aa0a6); margin-top: 6px; }
.lx-video-play { width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg, #1b1f27, #262b36); color: var(--text); cursor: pointer; font: inherit; text-align: left; padding: 12px; }
.lx-video-play:hover, .lx-video-play:focus-visible { border-color: var(--accent, #1d9bf0); }
.lx-play-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.lx-play-text { display: flex; flex-direction: column; font-weight: 600; }
.lx-play-sub { font-weight: 400; font-size: 13px; color: var(--muted, #9aa0a6); }
.lx-video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.lx-video-frame-x { aspect-ratio: auto; height: 560px; background: transparent; }
.lx-docs { list-style: none; padding: 0; margin: 8px 0; }
.lx-docs li { padding: 8px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.lx-domain { color: var(--muted, #9aa0a6); font-size: 13px; margin-left: 6px; }
.lx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lx-card { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--text); }
.lx-card:hover, .lx-card:focus-visible { border-color: var(--accent, #1d9bf0); }
.lx-card-name { font-weight: 600; }
.lx-card-desc { display: block; color: var(--muted, #9aa0a6); font-size: 14px; margin-top: 6px; }
.lx-free { font-size: 12px; color: var(--muted, #9aa0a6); }
.lx-upgrade .lx-card { border-color: var(--accent, #1d9bf0); }
.lx-panel { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin: 10px 0; }
.lx-method { border-top: 1px solid var(--border); padding: 12px 0; }
.lx-method h4 { margin: 0 0 4px; font-size: 15px; }
.lx-panel textarea, .lx-panel input, .lx-edit-form input, .lx-edit-form textarea, .lx-edit-form select, .lx-profiles input { width: 100%; box-sizing: border-box; background: var(--chip); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 16px; margin: 4px 0 10px; }
.lx-edit-form fieldset { border: 1px solid var(--border); border-radius: 12px; margin: 12px 0; padding: 10px 12px; }
.lx-edit-form label { display: block; font-weight: 600; margin-top: 8px; }
.lx-doc-row { display: grid; grid-template-columns: 2fr 1.4fr auto; gap: 8px; align-items: center; }
.lx-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lx-row input { flex: 1 1 240px; }
.lx-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lx-code code { word-break: break-all; font-size: 17px; padding: 6px 10px; background: var(--chip); border-radius: 8px; user-select: all; }
.lx-warn { color: #f4c86a; }
.lx-status { color: var(--muted, #9aa0a6); }
.lx-check { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; }
.lx-check input { width: auto; margin: 0; }
@media (max-width: 640px) {
  .lx-doc-row { grid-template-columns: 1fr; }
  .lx-videos { grid-template-columns: 1fr; }
  .lx-video-frame-x { height: 480px; }
}

/* Seller rating (SearchBots reviews only) */
.seller-rating { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font-size: 0.85em; color: var(--text); white-space: nowrap; }
.seller-rating-star { color: #f5b301; }
.seller-rating-count { color: var(--muted); }
.seller-rating-none { color: var(--muted); font-size: 0.8em; padding: 1px 8px; border-radius: 999px; background: var(--chip); }
.creator-rating { margin: 8px 0 4px; }
.creator-rating-main { margin: 0; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.creator-rating-value { font-weight: 700; font-size: 18px; }
.creator-rating .stars { color: #f5b301; letter-spacing: 1px; }
.creator-rating-count { color: var(--muted); }
.creator-rating-none .creator-rating-main { font-weight: 600; }
.creator-rating-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 36em; }

/* Tags: chips on cards and listing pages, and the tag filter bar */
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.tag-chips-inline { display: inline-flex; margin: 0 0 0 6px; vertical-align: middle; }
.tag-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 12.5px; text-decoration: none; border: 1px solid transparent; }
.tag-chip:hover { border-color: var(--muted); }
.tag-chip:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; }
.tag-bar { display: flex; align-items: center; gap: 10px; padding: 8px 0 2px; min-width: 0; }
.tag-bar-label { flex: none; font-size: 13px; color: var(--muted); }
.tag-bar-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; min-width: 0; }
.tag-bar-scroll::-webkit-scrollbar { display: none; }
.tag-filter { flex: none; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid #5f6368; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.tag-filter:hover:not([disabled]) { background: var(--chip); }
.tag-filter.is-active { background: #8ab4f8; border-color: #8ab4f8; color: #202124; font-weight: 600; }
.tag-filter[disabled] { opacity: 0.45; cursor: default; }
.tag-filter-count { color: var(--muted); font-size: 12px; margin-left: 2px; }
.tag-filter:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; }
.tag-picker { margin: 4px 0 8px; }
.tag-picker-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.tag-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.tag-suggest-label { font-size: 13px; color: var(--muted); }
.tag-suggest-btn { min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px dashed #8ab4f8; background: transparent; color: #8ab4f8; font: inherit; font-size: 13.5px; cursor: pointer; margin-right: 6px; }
.tag-suggest-btn:hover:not([disabled]) { background: rgba(138, 180, 248, 0.12); }
.tag-suggest-btn[disabled] { opacity: 0.45; cursor: default; }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 500; }

/* Plans: upgrade notes, Plus lock labels and plan badges */
.upsell { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 24px)); background: #303134; color: #e8eaed; border: 1px solid #5f6368; border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.upsell[hidden] { display: none; }
.upsell-text { margin: 0 0 10px; line-height: 1.45; }
.upsell-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.upsell-actions .pill-btn { text-decoration: none; }
.upsell-close { margin-left: auto; background: none; border: 0; color: #9aa0a6; font-size: 22px; line-height: 1; cursor: pointer; min-width: 36px; min-height: 36px; }
.plus-lock { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #8ab4f8; border: 1px solid #3c4a63; border-radius: 999px; padding: 0 6px; text-decoration: none; vertical-align: middle; }
.plan-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: #1d2a44; color: #8ab4f8; vertical-align: middle; }
.plan-badge-pro { background: #3a2a10; color: #fbbc04; }
