:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e9e9ec;
  --surface: #f4f4f5;
  --blue: #0071e3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(1504px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: #fff; border-radius: 10px; font-size: 16px; }
.skip:focus { top: 12px; }
.inline-arrow, .outbound-icon, .download-icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }

/* A compact identity and navigation that stays available on small screens. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 20px; font-weight: 620; letter-spacing: -.6px; line-height: 1.3; }
.brand-byline { color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: -.1px; }
.top-right { display: flex; align-items: center; gap: 28px; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; font-size: 16px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.nav-link.active, .nav-link:hover { color: var(--ink); }
.nav-work { color: var(--ink); }
.download, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 23px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.download:hover { background: #3a3a3c; border-color: #3a3a3c; }
.secondary-button { border-color: #dcdce0; background: #fff; color: var(--ink); }
.secondary-button:hover { background: var(--surface); border-color: #b9b9c0; }
.secondary-button span { font-size: 18px; }

/* The existing product previews lead the page. */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px); padding: 58px 0 54px; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 4px 0; }
.eyebrow { margin: 0 0 19px; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -.1px; }
h1 { margin: 0; font-size: clamp(40px, 4.25vw, 64px); line-height: 1.05; letter-spacing: -.055em; font-weight: 590; text-wrap: balance; }
h1 span { color: #85858c; }
.hero-description { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; letter-spacing: -.1px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.hero-work, .library-work { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; font-weight: 500; text-decoration: none; }
.hero-work:hover, .library-work:hover { color: var(--blue); }
.hero-note { margin: 15px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-note [data-library-count] { font-variant-numeric: tabular-nums; }
.hero-showcase { width: 100%; min-width: 0; max-width: 650px; justify-self: end; }
.showcase-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 0 1px 14px; font-size: 16px; font-weight: 500; letter-spacing: -.1px; line-height: 1.5; }
.edition { color: var(--muted); font-size: 16px; font-weight: 400; }
.featured-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.featured-product { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--surface); text-decoration: none; }
.featured-product img { width: 100%; height: 100%; object-fit: contain; }
.featured-product::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 12 12 4M4 4h8v8%27 fill=%27none%27 stroke=%27%231d1d1f%27 stroke-width=%271.3%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center/16px no-repeat;
  opacity: 0;
  transition: opacity .18s;
}
.featured-product:hover::after, .featured-product:focus-visible::after { opacity: 1; }
.featured-product:focus-visible { outline-offset: 5px; }
.featured-product.source-unverified::after { display: none; }
.featured-brand { position: absolute; left: 12px; bottom: 12px; color: var(--muted); font-size: 16px; font-weight: 500; }
.showcase-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 18px; padding: 12px 1px 0; font-size: 16px; color: var(--muted); line-height: 1.6; }
.showcase-caption a, .showcase-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; text-decoration: none; }
.showcase-caption a:hover, .showcase-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Search, sorting, collections, and category browsing. */
.collection { padding-top: 36px; }
.collection-title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.collection-title-row h2 { margin: 0; font-size: 28px; font-weight: 550; line-height: 1.2; letter-spacing: -.8px; }
.collection-tabs { display: flex; align-items: stretch; gap: 4px; flex-shrink: 0; padding: 4px; border-radius: 999px; background: var(--surface); }
.collection-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.collection-tabs button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #0000000e; }
.collection-tabs button>span:not(.new-dot) { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.new-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #248763; }
.toolbar { min-width: 0; }
.filters { display: grid; grid-template-columns: minmax(220px, 1fr) 235px 220px; gap: 12px; }
.field { position: relative; min-width: 0; }
.field input, .field select { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; }
.field input { padding: 0 48px 0 44px; background: #fafafa; }
.field input::placeholder { color: #76767e; font-size: 16px; opacity: 1; }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: linear-gradient(45deg, transparent 45%, #777 45%, #777 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #777 45%, #777 55%, transparent 55%); background-size: 12px 12px; background-position: center; background-repeat: no-repeat; cursor: pointer; }
.field select { padding: 0 38px 0 15px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.field input:focus, .field select:focus { border-color: #a6a6ae; }
.search-icon { position: absolute; top: 16px; left: 15px; width: 18px; height: 18px; color: #85858c; pointer-events: none; }
.search-shortcut { position: absolute; right: 14px; top: 12px; width: 26px; height: 26px; border: 1px solid #e4e4e7; border-radius: 5px; background: #fff; color: #76767e; font: 16px/24px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; pointer-events: none; }
.search-field:focus-within .search-shortcut { display: none; }
.select-chevron { position: absolute; right: 14px; top: 16px; width: 18px; height: 18px; color: #86868e; pointer-events: none; }
.category-scroll { margin: 18px -4px 0; padding: 4px; overflow: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-chips { display: flex; align-items: center; gap: 7px; width: max-content; min-width: 100%; }
.category-chips button { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--muted); font-size: 16px; line-height: 1.5; white-space: nowrap; transition: background .15s, color .15s; }
.category-chips button:hover { background: var(--surface); color: var(--ink); }
.category-chips button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.category-chips button>span { display: none; font-size: 16px; opacity: .75; font-variant-numeric: tabular-nums; }
.category-chips button[aria-pressed=true]>span { display: inline; }
.results-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; min-height: 64px; padding: 8px 0; color: var(--muted); font-size: 16px; }
.results-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.clear { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; padding: 0; background: none; color: var(--ink); font-size: 16px; white-space: nowrap; }
.clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.clear span { font-size: 20px; font-weight: 300; }
.format-note { display: flex; align-items: center; gap: 9px; font-size: 16px; color: var(--muted); }
.format-note svg { width: 16px; height: 16px; }
.catalog-status, .noscript { margin: 0 0 24px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; color: var(--muted); font-size: 16px; line-height: 1.6; }
.catalog-status button { margin-left: 14px; border: 0; background: none; color: var(--ink); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.noscript a { text-underline-offset: 3px; }

/* An official product link, a separate details route, and a direct public PNG. */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.asset { min-width: 0; }
.image-link { display: block; position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate; border-radius: 16px; background: var(--surface); text-decoration: none; }
.image-link img { width: 100%; height: 100%; object-fit: contain; }
.asset-code { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; background: rgba(255, 255, 255, .92); color: #62626a; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; }
.image-action { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 9px #00000005; opacity: 0; transform: translateY(3px); transition: opacity .18s, transform .18s; }
.image-action .outbound-icon { width: 18px; height: 18px; }
.image-link:hover .image-action, .image-link:focus-visible .image-action { opacity: 1; transform: none; }
.source-unverified { cursor: default; }
.source-link-pending { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 9px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #62626a; font-size: 16px; line-height: 1.4; pointer-events: none; }
.caption { padding: 15px 2px 0; }
.category { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: -.1px; overflow-wrap: anywhere; }
.asset h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 48px; margin: 0; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.5; }
.asset h3 a { text-decoration: none; }
.asset h3 a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.study-label, .study-status { display: block; margin: 8px 0 0; color: #707078; font-size: 16px; line-height: 1.5; }
.study-label.is-approved { color: #3d6b4e; }
.study-label.is-approved::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
.asset-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; margin-top: 4px; color: #707078; font-size: 16px; line-height: 1.5; }
.asset-meta>span { min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.image-download { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0; border-radius: 5px; color: #34343a; font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.image-download .download-icon { width: 18px; height: 18px; }
.image-download:hover { color: var(--blue); }
.image-download:focus-visible { outline-offset: 3px; }
.pagination { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 0 56px; text-align: center; }
.pagination p { margin: 0; color: var(--muted); font-size: 16px; }
.empty { padding: 64px 12px 48px; text-align: center; }
.empty>svg { width: 40px; height: 40px; margin: 0 auto 22px; color: #9999a2; }
.empty h3 { margin: 0 0 12px; font-size: 28px; font-weight: 500; letter-spacing: -.6px; }
.empty p { max-width: 390px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* A useful free resource and a clear route to Jon. */
.library-note { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; padding: 54px 0; border-top: 1px solid var(--line); }
.library-note .eyebrow { margin-bottom: 17px; font-size: 16px; }
.library-note h2 { margin: 0; font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; line-height: 1.13; letter-spacing: -1.3px; }
.library-note-copy { max-width: 500px; justify-self: end; }
.library-note-copy p { margin: 0 0 15px; color: var(--muted); font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.library-note-copy strong { color: var(--ink); font-weight: 500; }
.collection-nav { display: flex; align-items: flex-start; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.collection-nav h2 { margin: 10px 0; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.collection-links { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 16px; line-height: 1.5; text-decoration: none; }
.collection-links a:hover, .collection-links a[aria-current=page] { background: var(--surface); color: var(--ink); }
.collection-links span { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 30px 36px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 18px; font-weight: 550; letter-spacing: -.2px; text-decoration: none; }
.footer p { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 22px; flex-shrink: 0; max-width: 510px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 16px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (min-width: 1700px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero { padding-block: 66px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .top-right { gap: 22px; }
  .hero { gap: 32px; padding-block: 42px; }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 12px 20px; }
  .hero-showcase { max-width: 560px; }
  .showcase-heading .edition { display: none; }
  .featured-products { gap: 10px; }
  .collection-title-row { align-items: flex-start; }
  .collection-title-row h2 { max-width: 330px; padding-top: 8px; }
  .filters { grid-template-columns: minmax(160px, 1fr) 218px 205px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; }
  .library-note { gap: 42px; }
  .library-note-copy p { font-size: 16px; }
  .footer { align-items: flex-start; }
  .footer-links { max-width: 410px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .topbar { flex-wrap: wrap; gap: 8px; padding-block: 14px 8px; }
  .top-right { width: 100%; justify-content: space-between; gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  h1 { max-width: 690px; font-size: clamp(42px, 7vw, 58px); }
  .hero-description { max-width: 590px; }
  .hero-showcase { max-width: none; }
  .showcase-heading .edition { display: block; }
  .featured-products { gap: 14px; }
  .featured-product::after { opacity: 1; }
  .collection-title-row { display: block; }
  .collection-title-row h2 { max-width: none; margin-bottom: 19px; padding: 0; }
  .collection-tabs { width: fit-content; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .search-shortcut { display: none; }
  .field input { padding-right: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .image-action { opacity: 1; transform: none; }
  .library-note { gap: 30px; }
  .collection-nav { display: block; }
  .collection-nav h2 { margin: 0 0 16px; }
  .footer { display: block; }
  .footer-links { max-width: none; justify-content: flex-start; margin-top: 16px; }
  html { scroll-padding-top: 154px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { padding-block: 12px 6px; }
  .brand { gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 20px; }
  .brand-byline { font-size: 16px; }
  .top-right { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .nav-link { font-size: 16px; line-height: 1.35; text-align: center; }
  .nav-work { gap: 5px; }
  .nav-work .inline-arrow { display: none; }
  .hero { gap: 24px; padding: 30px 0 32px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 17px; font-size: 16px; }
  h1 { font-size: clamp(36px, 9.2vw, 48px); line-height: 1.07; letter-spacing: -.05em; }
  .hero-description { margin-top: 20px; font-size: 16px; line-height: 1.65; }
  .hero-actions { margin-top: 22px; gap: 10px 20px; }
  .download { padding-inline: 19px; }
  .hero-note { margin-top: 14px; font-size: 16px; }
  .showcase-heading { font-size: 16px; margin-bottom: 12px; }
  .showcase-heading .edition { display: none; }
  .featured-products { gap: 9px; }
  .featured-product { border-radius: 14px; }
  .featured-product::after { right: 8px; bottom: 8px; width: 28px; height: 28px; }
  .showcase-caption { padding-top: 9px; gap: 0 12px; font-size: 16px; }
  .collection { padding-top: 28px; }
  .collection-title-row { margin-bottom: 20px; }
  .collection-title-row h2 { margin-bottom: 18px; font-size: 27px; letter-spacing: -.8px; }
  .collection-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 420px; border-radius: 20px; }
  .collection-tabs button { flex-wrap: wrap; gap: 4px 7px; min-height: 48px; min-width: 0; padding: 8px 9px; border-radius: 16px; font-size: 16px; line-height: 1.3; white-space: normal; }
  .collection-tabs button>span:not(.new-dot) { font-size: 16px; }
  .filters { gap: 10px; }
  .field input, .field select { font-size: 16px; }
  .field select { padding-left: 12px; padding-right: 30px; }
  .select-chevron { right: 10px; }
  .category-scroll { margin: 14px -16px 0; padding: 4px 16px; }
  .category-chips { gap: 4px; min-width: max-content; }
  .category-chips button { padding-inline: 13px; font-size: 16px; }
  .results-line { min-height: 60px; padding-block: 10px; font-size: 16px; }
  .results-summary { gap: 0 14px; }
  .format-note { display: none; }
  .grid { gap: 30px 12px; }
  .image-link { border-radius: 14px; }
  .asset-code { top: 9px; left: 9px; padding: 3px 8px; font-size: 16px; }
  .image-action { width: 30px; height: 30px; right: 8px; bottom: 8px; }
  .source-link-pending { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 7px; font-size: 16px; }
  .caption { padding: 12px 1px 0; }
  .category, .asset h3 { font-size: 16px; }
  .study-label, .study-status { margin-top: 7px; font-size: 16px; }
  .asset-meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 5px; font-size: 16px; }
  .asset-meta>span, .image-download { font-size: 16px; }
  .image-download { gap: 6px; }
  .pagination { padding: 38px 0 42px; }
  .pagination p, .secondary-button { font-size: 16px; }
  .library-note { grid-template-columns: 1fr; gap: 24px; padding: 38px 0; }
  .library-note h2 { font-size: 34px; }
  .library-note-copy { max-width: 100%; justify-self: start; }
  .library-note-copy p { max-width: 500px; font-size: 16px; }
  .collection-nav { padding-block: 28px; }
  .collection-links { gap: 8px; }
  .collection-links a { padding-inline: 12px; font-size: 16px; }
  .footer { padding-block: 26px 30px; }
  .footer-brand { font-size: 18px; }
  .footer p, .footer-links a { font-size: 16px; }
  .footer-links { gap: 2px 21px; }
  .empty { padding: 48px 8px 38px; }
  .empty h3 { font-size: 26px; }
  .empty p, .catalog-status, .noscript { font-size: 16px; }
}
@media (max-width: 360px) {
  .filters { grid-template-columns: 1fr; }
  .hero-actions { gap: 8px 16px; }
  .download { padding-inline: 16px; gap: 9px; }
  .nav-link { font-size: 16px; }
  .top-right { gap: 5px; }
  h1 { font-size: 36px; }
  .collection-title-row h2 { font-size: 25px; }
  .image-download { gap: 4px; }
  .image-download .download-icon { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #505057; --line: #a3a3ab; }
  .study-label, .study-status, .asset-meta, .source-link-pending { color: #505057; }
}


    .docs-page { --docs-accent: #285a47; }
    .docs-page .wrap { width: min(1240px, calc(100% - 80px)); }
    .docs-page .topbar { min-height: 80px; }
    .docs-page .brand-name { font-size: 18px; }
    .docs-hero { padding: 76px 0 58px; border-bottom: 1px solid var(--line); }
    .docs-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
    .docs-kicker span { border: 1px solid #d8e5de; border-radius: 999px; padding: 4px 9px; color: var(--docs-accent); font-size: 11px; letter-spacing: .04em; }
    .docs-hero h1 { max-width: 800px; font-size: clamp(44px, 6.2vw, 76px); line-height: 1.03; font-weight: 560; }
    .docs-lead { max-width: 720px; margin: 25px 0 0; color: var(--muted); font-size: 20px; line-height: 1.6; letter-spacing: -.25px; }
    .docs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
    .docs-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 62px; padding: 54px 0 80px; }
    .docs-toc { position: sticky; top: 114px; align-self: start; }
    .docs-toc p { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
    .docs-toc a { display: block; width: fit-content; padding: 8px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
    .docs-toc a:hover { color: var(--ink); }
    .docs-content { min-width: 0; }
    .docs-section { margin-bottom: 52px; padding-bottom: 46px; border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
    .docs-section:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
    .docs-section h2 { margin: 0 0 17px; font-size: 30px; font-weight: 550; line-height: 1.18; letter-spacing: -.9px; }
    .docs-section h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
    .docs-section p { max-width: 760px; margin: 12px 0; color: #595960; line-height: 1.7; }
    .docs-section a:not(.secondary-button) { color: var(--ink); text-decoration-color: #c5c5ca; text-underline-offset: 4px; }
    .docs-section a:hover { text-decoration-color: currentColor; }
    .docs-page code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84em; overflow-wrap: anywhere; }
    .docs-section p code, .docs-table code, .docs-callout code { padding: 2px 5px; border-radius: 4px; background: #f1f1f3; color: #34343a; }
    .docs-code { margin: 20px 0; padding: 22px 24px; border-radius: 14px; background: #1e2522; color: #eff5f1; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
    .docs-code code { font-size: inherit; }
    .docs-code-label { display: block; margin-bottom: 12px; color: #b5c4ba; font: 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
    .docs-callout { margin: 24px 0; padding: 20px 24px; border-left: 2px solid #6c8d7b; background: #f6f8f6; border-radius: 0 10px 10px 0; }
    .docs-callout p { margin: 0; font-size: 15px; }
    .docs-callout strong { color: #2e493a; font-weight: 600; }
    .docs-table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; }
    .docs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
    .docs-table th { padding: 13px 17px; background: #f7f7f8; color: #67676e; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
    .docs-table td { padding: 16px 17px; border-top: 1px solid var(--line); vertical-align: top; color: #595960; }
    .docs-table td:first-child { color: var(--ink); }
    .docs-tool-name { display: block; margin-bottom: 5px; font-weight: 500; }
    .docs-small { color: var(--muted); font-size: 13px; }
    .docs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
    .docs-pair h3 { margin-top: 12px; }
    .docs-pair p { font-size: 15px; }
    .docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
    .docs-footer p { margin: 0; }
    .docs-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
    .docs-footer a { text-decoration: none; }
    .docs-footer a:hover { color: var(--ink); }
    @media (max-width: 900px) { .docs-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 30px; } .docs-page .top-right { gap: 18px; } .docs-pair { grid-template-columns: 1fr; gap: 0; } }
    @media (max-width: 680px) { .docs-page .wrap { width: calc(100% - 36px); } .docs-page .topbar { flex-wrap: wrap; gap: 5px 20px; padding-block: 12px 7px; } .docs-page .top-right { gap: 18px; flex-wrap: wrap; } .docs-page .nav-link { min-height: 36px; font-size: 13px; } .docs-hero { padding: 44px 0 36px; } .docs-lead { font-size: 18px; } .docs-layout { display: block; padding-top: 22px; } .docs-toc { position: static; display: flex; gap: 5px 20px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 30px; border-bottom: 1px solid var(--line); } .docs-toc p { flex-basis: 100%; margin-bottom: 1px; } .docs-toc a { padding: 5px 0; } .docs-section h2 { font-size: 27px; } .docs-section { margin-bottom: 38px; padding-bottom: 34px; scroll-margin-top: 140px; } .docs-code { padding: 18px; font-size: 12px; } .docs-table { min-width: 510px; } .docs-footer { align-items: flex-start; flex-direction: column; gap: 14px; } }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  
    .standard-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:26px; }
    .standard-card { padding:24px; border:1px solid var(--line); border-radius:16px; }
    .standard-card h3 { margin:12px 0 10px; }
    .standard-card p { font-size:14px; margin:0; }
    .standard-label { color:#698271; font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.03em; }
    .standard-steps { list-style:none; padding:0; margin:24px 0 0; counter-reset:steps; }
    .standard-steps li { position:relative; padding:21px 0 21px 46px; border-top:1px solid var(--line); counter-increment:steps; }
    .standard-steps li::before { content:counter(steps,decimal-leading-zero); position:absolute; left:0; top:24px; color:#698271; font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; }
    .standard-steps h3 { margin:0 0 8px; }
    .standard-steps p { margin:0; font-size:15px; }
    .standard-reference { display:block; padding:12px 0; border-top:1px solid var(--line); font-size:14px; }
    @media (max-width:1000px) { .standard-columns { grid-template-columns:1fr; gap:12px; } }
  
/* Inter Variable with a generated primary subset and the complete original fallback.
   Subset generation: scripts/build-font-assets.py. All supported catalog/UI glyphs retained.
   Source: https://github.com/rsms/inter/tree/master/docs/font-files
   Copyright and SIL Open Font License: /fonts/OFL-Inter.txt */
/* INTER_SUBSETS_START: generated by scripts/build-font-assets.py */
@font-face{font-family:Inter;src:url("/fonts/InterVariable.woff2?v=693b77d4f32ee9b8") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+100-148,U+14A-14B,U+14D-1C3,U+1C5-254,U+256-27B,U+27E-284,U+286-290,U+292-2A4,U+2A6-2BA,U+2BC-304,U+306-30A,U+30C,U+30F,U+313,U+315,U+31B,U+323,U+326-328,U+32C,U+337-338,U+342-343,U+346-36F,U+374-376,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3D7,U+3DC-3DD,U+3F0-3F6,U+3F9-3FA,U+3FC-479,U+480-49D,U+4A0-4FF,U+52F,U+E3F,U+1D00,U+1D0D,U+1D1B,U+1D43,U+1D47-1D49,U+1D4D,U+1D4F-1D50,U+1D52,U+1D56-1D58,U+1D5B,U+1D62-1D65,U+1D9C,U+1DA0,U+1DBB,U+1DBF-1DF5,U+1DFC-1E9B,U+1E9D-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2000-200B,U+2010,U+2012,U+2015-2017,U+201A-201B,U+201E-2021,U+2023-2025,U+2027,U+2030-2032,U+2034-2039,U+203B-2055,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20A0-20AF,U+20B1-20B5,U+20B8-20BA,U+20BC-20C0,U+20DB-20DE,U+20E8,U+20F0,U+2100-2101,U+2103,U+2105-2106,U+2109,U+2113,U+2116-2117,U+211E-2121,U+2126,U+212A-212B,U+212E,U+2132,U+213B,U+214D,U+2150-2160,U+2162-217F,U+2183-2186,U+2189,U+2194-2196,U+2198-2199,U+21A9-21AA,U+21B0-21B1,U+21B3-21B5,U+21BA,U+21D0,U+21D2,U+21D4,U+21DE-21DF,U+21E4-21E5,U+21E7,U+21EA,U+2202,U+2205-2206,U+220F,U+2211,U+221A,U+222B,U+2236,U+2248,U+2260,U+2264-2265,U+2295-2298,U+2303,U+2305,U+2318,U+2325-2327,U+232B,U+2380,U+2387,U+238B,U+23CE-23CF,U+2423,U+2460-2468,U+24B6-24CF,U+24EA,U+25A0-25A2,U+25AA,U+25B2-25B3,U+25B6-25B7,U+25BA-25BD,U+25C0-25C1,U+25C4-25C7,U+25CA-25CB,U+25CF,U+25E6,U+25EF,U+2600,U+2605-2606,U+263C,U+2661,U+2665,U+266A-266B,U+26A0,U+2717,U+2756,U+2764,U+2780-2788,U+27EF,U+27F5-27FA,U+2913,U+2A38,U+2B06,U+2B12-2B13,U+2B1C,U+2B24,U+2C7C,U+2C7F,U+2DFF,U+2E18,U+A69F,U+A7FF,U+A92E,U+E000,U+E002-E05E,U+E06A-E0BD,U+E0C8-E0CC,U+E0DC-E0E6,U+E0F3-E0F5,U+E106,U+E109-E10A,U+E10C-E10F,U+E111-E113,U+E117-E118,U+E121-E122,U+E124,U+E12A-E15E,U+E163,U+E1C3,U+E1D2-E1DF,U+E1E1-E2DC,U+EE01-EE07,U+EE09-EE0A,U+EE0C-EE12,U+EE14,U+EE17,U+EE1D-EE45,U+EE47-EE84,U+EE87-EED6,U+EED8-EEE1,U+F6C3,U+FEFF,U+1F12F-1F149,U+1F16A-1F16B,U+1F850,U+1F852}
@font-face{font-family:Inter;src:url("/fonts/InterVariable-site.woff2?v=6a650db3d869783e") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0,U+20-7E,U+A0-AC,U+AE-FF,U+14C,U+2BB,U+2011,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026,U+202F,U+2033,U+203A,U+2122,U+2161,U+2190-2193,U+2197,U+21BB,U+2212,U+221E,U+2304,U+2713}
/* INTER_SUBSETS_END */
:root {
  --library-paper: #ffffff;
  --library-ink: #18181b;
  --library-muted: #62626b;
  --library-blue: #334bfa;
  --library-line: #e4e4e7;
  --library-font: "Inter", Arial, sans-serif;
  --library-mono: var(--library-font);
  --code-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--library-font);
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1;
}
body, button, input, select, textarea { font-family: var(--library-font); }
pre, code, samp { font-family: var(--code-font); }

/* Text fields use a quiet underline for focus, never a heavy colored ring. */
html body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):is(:focus,:focus-visible) {
  outline:none!important;
  border-color:#d4d4d8!important;
  box-shadow:inset 0 -1px 0 #71717a!important;
}
@media (forced-colors:active) {
  html body :is(input,select,textarea):focus-visible { outline:1px solid CanvasText!important; outline-offset:1px; }
}

/* Shelfhelp.ai — Inter wordmark; the circular tag avatar is used independently. */
:root { --brand-accent:var(--shelf-accent); --brand-accent-ink:var(--shelf-accent-ink); --brand-action:var(--shelf-accent); --brand-action-hover:var(--shelf-accent-hover); --library-blue:var(--shelf-accent-ink); --library-font:"Inter",Arial,sans-serif; }
body,button,input,select,textarea { font-family:var(--library-font); font-optical-sizing:auto; }
.brand,.wordmark { text-decoration:none; }
body:is(.image-page,.about-page,.docs-page,.quality-page) .header-key { background:var(--brand-action); border-color:var(--brand-action); color:var(--shelf-ink); }
body:is(.image-page,.about-page,.docs-page,.quality-page) .header-key:hover { background:var(--brand-action-hover); border-color:var(--brand-action-hover); color:var(--shelf-ink); }
#developer-dialog .dev-button-dark { background:var(--brand-action); border-color:var(--brand-action); color:var(--shelf-ink); }
#developer-dialog .dev-button-dark:hover { background:var(--brand-action-hover); border-color:var(--brand-action-hover); color:var(--shelf-ink); }
body .brand .brand-name,body .wordmark .brand-copy strong { font-family:var(--library-font); font-size:26px; line-height:1.1; font-weight:600; letter-spacing:-.045em; color:#29292e; white-space:nowrap; }
body .brand,body .wordmark { gap:9px; }
body .brand-copy { display:flex; flex-direction:column; gap:5px; }
body .brand-copy > span:not(.brand-name) { font-size:13px; letter-spacing:-.01em; color:#8b8b95; }
body .site-footer .footer-brand { font-size:26px; letter-spacing:-.045em; font-weight:600; }
body .site-footer .footer-brand > span[aria-hidden] { display:none; }
@media (max-width:700px) {
  body .brand .brand-name,body .wordmark .brand-copy strong { font-size:23px; letter-spacing:-.045em; }
  body .brand,body .wordmark { gap:7px; }
  body .brand-copy > span:not(.brand-name) { font-size:12px; }
}

/* Stockroom typography. Load after page styles and identity.css.
   Inter is the display and interface family; monospace is reserved for code.
   The homepage composition is controlled by platform.css. */
:root {
  --library-font: "Inter", Arial, sans-serif;
  --library-mono: var(--library-font);
  --code-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --type-body: 17px;
  --type-small: 14px;
  --type-meta: 13px;
  --type-control: 16px;
}
body:is(.image-page, .about-page, .docs-page, .quality-page) {
  font-family: var(--library-font);
  font-size: var(--type-body);
  line-height: 1.65;
}
body:is(.image-page, .about-page, .docs-page, .quality-page) :is(button, input, select, textarea, h1, h2, h3, h4, h5, h6) {
  font-family: var(--library-font);
}
body:is(.image-page, .about-page, .docs-page, .quality-page) :is(pre, code, samp) { font-family: var(--code-font); }
body:is(.docs-page, .quality-page) :is(.docs-code-label, .standard-label, .quality-number),
body.docs-page .standard-steps li::before { font-family: var(--library-font); }

/* Shared page navigation and footer copy. Wordmark sizing stays in identity.css. */
body:is(.image-page, .about-page, .docs-page, .quality-page) :is(.header-text-link, .header-key, .nav-link, .header-nav > a) {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
}
body:is(.image-page, .about-page, .docs-page, .quality-page) .brand-copy > span:not(.brand-name) {
  font-size: var(--type-meta);
  line-height: 1.4;
}
body:is(.image-page, .about-page) .site-footer p,
body:is(.docs-page, .quality-page) :is(.docs-footer, .quality-footer) {
  font-size: var(--type-small);
  line-height: 1.6;
}
body:is(.image-page, .about-page) .site-footer nav a,
body:is(.docs-page, .quality-page) :is(.docs-footer, .quality-footer) nav a { font-size: 15px; }

/* Product pages: make the product, actions and sourced facts easy to scan. */
body.image-page .product-intro h1 {
  font-size: clamp(36px, 3.8vw, 48px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.04em;
}
body.image-page .product-intro .eyebrow { font-size: 16px; font-weight: 600; }
body.image-page .back-link { font-size: 15px; }
body.image-page :is(.asset-heading, .decision-heading h2) {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.02em;
}
body.image-page :is(.primary-button, .secondary-button, .builder-button, .mobile-builder, .decision-action > a) {
  font-size: var(--type-control);
  font-weight: 550;
  line-height: 1.45;
}
body.image-page :is(.asset-format, .stage-heading, .toolbar-label, .preview-resolution,
  .gallery-feedback, .copy-message, .copy-fallback label, .copy-fallback p,
  .review-status, .expanded-bottom, .decision-heading > span, .decision-sources span) {
  font-size: var(--type-meta);
  line-height: 1.6;
}
body.image-page :is(.image-review-note p, .official-product p, .official-product a,
  .decision-scope, .decision-action-note, .decision-action > p,
  .decision-caveats li, .decision-evidence, .decision-facts > div) {
  font-size: var(--type-small);
  line-height: 1.65;
}
body.image-page .copy-fallback input { font-family: var(--library-font); font-size: 16px; }
body.image-page .decision-summary { font-size: var(--type-body); line-height: 1.7; }
body.image-page :is(.decision-offer > strong, .decision-price) {
  font-size: 32px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.03em;
}
body.image-page .decision-offer > p { font-size: 16px; line-height: 1.65; }
body.image-page :is(.decision-offer > span, .decision-offer [data-offer-status]) {
  font-size: var(--type-meta);
  line-height: 1.6;
}
body.image-page .decision-offer [data-offer-note] { font-size: var(--type-small); }
body.image-page :is(.decision-caveats h3, .decision-evidence > summary) {
  font-size: 15px;
  font-weight: 600;
}
body.image-page .decision-evidence .decision-action > a { font-size: var(--type-small); }
body.image-page .expanded-top h2 { font-size: 18px; font-weight: 600; }

/* About and contact: generous reading text, clear labels, quiet supporting copy. */
body.about-page :is(.about-hero h1, .section-heading h2, .inquiry-intro h2, .inquiry-success h3) {
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.035em;
}
body.about-page .about-introduction { font-size: 21px; line-height: 1.65; }
body.about-page .eyebrow { font-size: var(--type-meta); font-weight: 600; letter-spacing: .06em; }
body.about-page .library-note > p:not(.library-count) { font-size: var(--type-body); line-height: 1.7; }
body.about-page .library-count > span:first-child { font-weight: 650; letter-spacing: -.04em; }
body.about-page .section-heading > p { font-size: var(--type-body); line-height: 1.7; }
body.about-page .comparison-pair h3 { font-size: 20px; font-weight: 600; line-height: 1.45; }
body.about-page .comparison-pair h3 > span { font-size: 18px; }
body.about-page :is(.comparison-pair figcaption, .comparison-note) { font-size: 16px; line-height: 1.65; }
body.about-page :is(.comparison-pair figcaption small, .comparison-attribution, .comparison-pair figcaption a,
  .inquiry-privacy, .inquiry-receipt span) { font-size: var(--type-small); line-height: 1.65; }
body.about-page .inquiry-panel label { font-size: 15px; font-weight: 550; }
body.about-page .inquiry-panel label > span { font-size: var(--type-meta); }
body.about-page :is(.inquiry-panel input, .inquiry-panel textarea, .primary-button, .text-link) { font-size: 16px; }
body.about-page :is(.inquiry-feedback, .inquiry-noscript, .inquiry-success > p:not(.eyebrow)) {
  font-size: var(--type-body);
  line-height: 1.65;
}

/* Documentation and evidence pages. Tables retain their existing scroll containers. */
body:is(.docs-page, .quality-page) :is(.docs-hero h1, .quality-hero h1) {
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.04em;
}
body:is(.docs-page, .quality-page) :is(.docs-lead, .quality-intro) { font-size: 21px; line-height: 1.65; }
body:is(.docs-page, .quality-page) :is(.docs-section h2, .quality-heading h2, .quality-close h2) {
  font-size: 32px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.03em;
}
body:is(.docs-page, .quality-page) :is(.docs-section h3, .quality-item h3) {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}
body:is(.docs-page, .quality-page) :is(.docs-section p, .docs-callout p, .docs-pair p,
  .standard-card p, .standard-steps p, .quality-item p, .quality-copy, .quality-note, .quality-close p) {
  font-size: var(--type-body);
  line-height: 1.7;
}
body:is(.docs-page, .quality-page) :is(.docs-toc a, .standard-reference, .quality-programs a,
  .docs-table, .quality-table, .download, .secondary-button) { font-size: 15px; line-height: 1.6; }
body:is(.docs-page, .quality-page) :is(.docs-kicker, .quality-eyebrow, .docs-toc p,
  .docs-kicker span, .docs-code-label, .docs-table th, .quality-table th,
  .standard-label, .quality-number) { font-size: var(--type-meta); line-height: 1.5; font-weight: 600; }
body.docs-page .standard-steps li::before { font-size: var(--type-meta); }
body:is(.docs-page, .quality-page) :is(.docs-small, .quality-caption, .quality-stat span) {
  font-size: var(--type-small);
  line-height: 1.65;
}
body:is(.docs-page, .quality-page) :is(code, .docs-code) { font-size: 14px; }
body.docs-page .docs-code { font-family: var(--code-font); line-height: 1.75; }
body.docs-page .docs-code code { font-size: inherit; }
body.quality-page .quality-stat strong { font-weight: 650; }

/* Shared developer dialog, including its dynamically rendered search results. */
#developer-dialog { font-size: var(--type-body); line-height: 1.65; --hero-mono: var(--library-font); }
#developer-dialog h2 { font-size: 32px; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
#developer-dialog .panel-intro h3 { font-size: 23px; font-weight: 600; line-height: 1.3; }
#developer-dialog .panel-intro p { font-size: var(--type-body); line-height: 1.65; }
#developer-dialog :is(.developer-tabs button, .dev-button, .key-field input, .key-field button,
  .mcp-url-field input, .mcp-url-field button, .mcp-platform-heading select) { font-size: var(--type-control); }
#developer-dialog :is(.developer-tabs button, .dev-button) { font-weight: 550; }
#developer-dialog :is(.key-field input, .mcp-url-field input, #builder-prompt) { font-family: var(--library-font); }
#developer-dialog :is(.developer-kicker, .scope-label, .key-guidance, .key-detail,
  .key-detail button, .try-request > span, .builder-selection .dev-field-label) {
  font-family: var(--library-font);
  font-size: var(--type-meta);
  line-height: 1.6;
  color: var(--library-muted, #62626b);
}
#developer-dialog .developer-kicker { font-weight: 600; letter-spacing: .06em; }
#developer-dialog :is(.issued-key label, .dev-field-label, .snippet-heading h4,
  .snippet-heading button, .mcp-instructions, .mcp-doc-link,
  .builder-selection-clear, .builder-prompt-details summary) { font-size: 15px; line-height: 1.6; }
#developer-dialog :is(.developer-message, .developer-footnote, .builder-selection-brand,
  .api-test-result a, #builder-prompt) { font-size: var(--type-small); line-height: 1.65; }
#developer-dialog :is(.developer-snippet, .developer-snippet code) { font-family: var(--code-font); font-size: 14px; line-height: 1.75; }
#developer-dialog .mcp-tools code { font-family: var(--code-font); font-size: var(--type-meta); }
#developer-dialog .mcp-tools > span { font-size: var(--type-meta); }
#developer-dialog .mcp-platform-heading { flex-wrap: wrap; gap: 8px 16px; }
#developer-dialog .mcp-platform-heading select { max-width: 100%; }
#developer-dialog .builder-selection h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }

/* The reusable brand product panel follows the same interface scale. */
body .brand-asset-strip .brand-strip-title { font-size: 18px; font-weight: 600; }
body .brand-asset-strip .brand-image-title { font-size: 24px; font-weight: 600; line-height: 1.3; }
body .brand-asset-strip :is(.brand-strip-count, .brand-image-position, .brand-image-dimensions,
  .brand-copy-message, .brand-copy-fallback label, .brand-copy-fallback p,
  .brand-image-feedback, .brand-empty-proof p) { font-size: var(--type-meta); line-height: 1.6; }
body .brand-asset-strip :is(.brand-strip-link, .brand-image-button, .brand-image-builder) { font-size: 15px; }
body .brand-asset-strip .brand-copy-fallback input { font-family: var(--library-font); font-size: 16px; }

@media (max-width: 700px) {
  :root { --type-body: 16px; --type-small: 13px; --type-meta: 12px; }
  body.image-page .product-intro h1 { font-size: clamp(34px, 7vw, 40px); }
  body.image-page .decision-price { font-size: 30px; }
  body.about-page .about-introduction { font-size: 19px; }
  body:is(.docs-page, .quality-page) :is(.docs-lead, .quality-intro) { font-size: 19px; }
  body:is(.docs-page, .quality-page) :is(.docs-section h2, .quality-heading h2, .quality-close h2) { font-size: 29px; }
  body:is(.docs-page, .quality-page) :is(.docs-section h3, .quality-item h3) { font-size: 20px; }
  body:is(.docs-page, .quality-page) :is(.docs-table, .quality-table) { font-size: 14px; }
  body:is(.docs-page, .quality-page) :is(code, .docs-code) { font-size: 13px; }
  #developer-dialog h2 { font-size: 28px; }
  #developer-dialog .panel-intro h3 { font-size: 22px; }
  #developer-dialog .mcp-platform-heading select { width: 100%; }
  #developer-dialog :is(.developer-snippet, .developer-snippet code) { font-size: 13px; }
  body .brand-asset-strip .brand-image-title { font-size: 22px; }
}

/* Mobile product pages and builder tools. Loaded after their page styles. */
.mobile-image-download { display:none; }
@media (max-width: 800px) {
  body.image-page .pdp-layout {
    grid-template-areas: 'intro' 'gallery' 'origin' 'asset' 'config' 'collection';
    grid-template-rows: repeat(6, auto);
  }

  body.image-page .mobile-image-download {
    grid-area:asset;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    min-height:48px;
    border-radius:12px;
    background:var(--brand-action);
    border-color:var(--brand-action);
    color:#fff;
    font-size:14px;
    text-decoration:none;
  }

  body.image-page .image-origin-note {
    grid-area: origin;
    align-self: auto;
    position: static;
    z-index: auto;
    margin: -10px 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #71717a;
    font-size: 12px;
    line-height: 1.6;
    gap: 3px 7px;
    pointer-events: auto;
  }

  body.image-page .image-origin-note > span:last-child {
    display: inline;
    margin-left: 0;
    color: inherit;
    font-size: 12px;
  }

  body.image-page :is(.product-sources li a, .product-details-source,
    .product-policy-links a, .product-collection-heading > a,
    .related-products-heading > a, .other-store-link, .preview-zoom-toggle) {
    min-height: 44px;
  }

  body.image-page .header-nav,
  body.image-page .image-tools-controls {
    min-width: 0;
  }

  body.image-page .image-tools .asset-actions > .secondary-button {
    flex: 1 1 145px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  body.image-page :is(.brief-fallback textarea, .copy-fallback input) {
    max-width: 100%;
    font-size: 16px;
  }

  body.image-page :is(.merchant-checkout-note, .affiliate-disclosure,
    .agent-copy-action > span, .product-sources li > span) {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  /* Only an open modal locks the page; document overflow remains visible. */
  body:has(.shop-dialog[open], .aff-copy-dialog[open]) {
    overflow: hidden;
  }

  .shop-dialog,
  #developer-dialog,
  .aff-copy-dialog {
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .shop-dialog,
  .aff-copy-dialog {
    padding: 18px;
  }

  body.image-page .preview-dialog {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .shop-dialog-head {
    gap: 12px;
  }

  .shop-dialog-head h2,
  .shortlist-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .shop-close,
  #developer-dialog .dialog-close,
  .aff-copy-dialog button {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .shortlist-controls {
    flex-wrap: wrap;
    gap: 0 8px;
  }

  .shop-text-button,
  .shop-merchant,
  .compare-source {
    min-height: 44px;
  }

  .compare-source {
    display: flex;
    align-items: center;
  }

  .shop-actions > .shop-button {
    flex: 1 1 145px;
    max-width: 100%;
    white-space: normal;
  }

  .compare-scroll {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }

  .shop-copy {
    box-sizing: border-box;
    max-width: 100%;
    font-size: 16px;
  }

  .shop-intro,
  .shop-evidence-note {
    font-size: 12px;
    line-height: 1.65;
  }

  .shop-toast {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-wrap: anywhere;
  }

  #developer-dialog :is(.developer-dialog-header, .developer-panel) {
    padding-inline: 18px;
  }

  #developer-dialog .developer-dialog-header > div {
    min-width: 0;
  }

  #developer-dialog h2 {
    overflow-wrap: anywhere;
  }

  #developer-dialog .developer-tabs {
    gap: 18px;
    padding-inline: 18px;
  }

  #developer-dialog :is(.developer-tabs button, .key-detail button,
    .snippet-heading button, .builder-prompt-details summary, .mcp-doc-link,
    .mcp-platform-heading select) {
    min-height: 44px;
  }

  #developer-dialog :is(.builder-prompt-details summary, .mcp-doc-link) {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  #developer-dialog :is(.key-detail, .snippet-heading) {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  #developer-dialog .mcp-platform-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  #developer-dialog .mcp-platform-heading select {
    width: 100%;
    max-width: 100%;
  }

  #developer-dialog .key-field input,
  #developer-dialog .mcp-url-field input,
  #developer-dialog .mcp-platform-heading select,
  #developer-dialog #builder-prompt {
    font-size: 16px;
  }

  #developer-dialog :is(.key-guidance, .key-detail, .developer-footnote) {
    font-size: 12px;
  }

  /* These selectors do not affect published consumer storefronts. */
  .aff-header nav > a:not(.aff-button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .aff-header-inner,
  .aff-header nav {
    min-width: 0;
  }

  .aff-panel-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 18px;
  }

  .aff-panel-heading > div {
    min-width: 0;
  }

  .aff-field input,
  .aff-field select,
  .aff-field textarea,
  .aff-copy-dialog textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .aff-field-help {
    font-size: 12px !important;
  }

  :is(.aff-panel-intro, .aff-picker-empty, .aff-search-status,
    .aff-collection-attribution-note, .aff-disclosure-note,
    .aff-link-card-reason, .aff-form-status) {
    font-size: 12px;
    line-height: 1.65;
  }

  .aff-link-card .aff-button,
  .aff-output-actions > .aff-button,
  .aff-collection-actions .aff-button {
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .aff-search-line > .aff-button,
  .aff-storefront-heading-actions .aff-text-button,
  .aff-text-button {
    min-height: 44px;
  }

  .aff-link-card h4,
  .aff-collection-card h4 {
    overflow-wrap: anywhere;
  }

  .docs-page .nav-link,
  .quality-page .nav-link {
    min-height: 44px;
  }

  .docs-page .docs-toc {
    gap: 0 16px;
  }

  .docs-page .docs-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding-block: 8px;
  }

  .docs-page :is(.docs-copy-heading, .docs-demo-meta) {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .docs-page .stockroom-card-action {
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .docs-page .stockroom-card h3 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 440px) {
  /* Preserve the page's intentional compact navigation. */
  .aff-header nav > a[href='/developers'] {
    display: none;
  }

  .aff-search-line > .aff-button {
    height: 44px;
  }

  .aff-storefront-heading-actions .aff-text-button {
    min-height: 44px;
  }

  .aff-analytics-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .aff-link-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .aff-link-card .aff-badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .aff-panel-heading .aff-text-link {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .shortlist-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .shortlist-controls .shop-text-button {
    padding-inline: 0;
  }

  #developer-dialog .builder-selection-summary {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  #developer-dialog .builder-selection-image-stage {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 360px) {
  .aff-header-inner {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 10px 6px;
  }

  .aff-header nav {
    flex: 1 0 100%;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  body.image-page .header-inner { min-height:64px; gap:10px; padding-block:8px; }
  body.image-page .header-nav { flex:none; width:auto; gap:8px; }
  body.image-page .site-header .header-nav > a.header-text-link:first-of-type { display:none; }

  .docs-page .docs-starter-demo .stockroom-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .docs-page .stockroom-card-body {
    padding: 12px;
  }

  body.image-page .product-highlights {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }
}

/* The Working Shelf: the same precise workspace from discovery to delivery. */
@font-face {
  font-family: Inter;
  src: url('/fonts/InterVariable-site.woff2?v=6a650db3d869783e') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.shelf-support {
  --ink: #22221f;
  --muted: #666662;
  --line: #dcdcd8;
  --surface: #f4f4f5;
  --soft: #f4f4f5;
  --accent: var(--shelf-accent);
  --accent-hover: var(--shelf-accent-hover);
  --docs-accent: #22221f;
  --billing-ink: #22221f;
  --billing-muted: #666662;
  --billing-line: #dcdcd8;
  --billing-accent: var(--shelf-accent);
  --billing-accent-soft: #f4f4f5;
  --library-font: Inter, Arial, sans-serif;
  --library-blue: var(--shelf-accent-ink);
  --library-paper: #fff;
  --brand-action: var(--shelf-accent);
  --brand-action-hover: var(--shelf-accent-hover);
  --brand-accent-ink: #22221f;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shelf-support *, .shelf-support *::before, .shelf-support *::after { box-sizing: border-box; }
.shelf-support :is(button, input, select, textarea) { font-family: Inter, Arial, sans-serif; }
.shelf-support :is(h1, h2, h3, h4) { color: var(--ink); font-family: Inter, Arial, sans-serif; text-wrap: balance; }
.shelf-support :is(h1, h2) { font-weight: 600; }
.shelf-support :is(.wrap, .billing-wrap, .agent-wrap, .aff-wrap) { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
.shelf-support :is(.eyebrow, .billing-eyebrow, .docs-kicker, .quality-eyebrow, .aff-eyebrow, .section-index) {
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.shelf-support :is(.billing-eyebrow, .aff-eyebrow) > span { background: var(--shelf-accent); }
.shelf-support :is(.docs-kicker, .eyebrow) > span { color: var(--ink); border-color: var(--line); background: #fff; border-radius: 4px; }
.shelf-support :is(.primary-button, .download, .agent-button, .secondary-button, .billing-button, .aff-button, .button, .docs-copy-button) {
  border-radius: 8px;
  min-height: 48px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 550;
  box-shadow: none;
}
.shelf-support :is(.primary-button, .download, .agent-button.primary, .billing-button:not(.billing-button-light), .aff-button.aff-primary, .button.primary) {
  color: var(--shelf-ink);
  background: var(--shelf-accent);
  border-color: var(--shelf-accent);
}
.shelf-support :is(.primary-button, .download, .agent-button.primary, .billing-button:not(.billing-button-light), .aff-button.aff-primary, .button.primary):not(:disabled):hover {
  color: var(--shelf-ink);
  background: var(--shelf-accent-hover);
  border-color: var(--shelf-accent-hover);
}
.shelf-support :is(.secondary-button, .billing-button-light, .aff-button:not(.aff-primary), .button:not(.primary), .agent-button.secondary, .docs-copy-button) {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}
.shelf-support :is(.secondary-button, .billing-button-light, .aff-button:not(.aff-primary), .button:not(.primary), .agent-button.secondary, .docs-copy-button):not(:disabled):hover {
  color: var(--ink);
  border-color: #aaa9a2;
  background: var(--surface);
}
.shelf-support :is(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.shelf-support :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-color: var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.shelf-support :is(input, textarea)::placeholder { color: #777771; opacity: 1; }
.shelf-support [hidden] { display: none !important; }

/* Page openings align to the same shelf, with the next action kept close. */
.shelf-support :is(.about-hero, .docs-hero, .quality-hero, .agent-hero, .aff-hero, .pricing-intro, .intro) {
  padding-top: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.shelf-support :is(.about-hero h1, .docs-hero h1, .quality-hero h1, .hero-copy h1, .aff-hero h1, .pricing-intro h1, .intro h1) {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.035;
  letter-spacing: -.06em;
  font-weight: 600;
}
.shelf-support :is(.docs-hero h1, .quality-hero h1) > span { color: var(--ink); }
.shelf-support :is(.about-introduction, .docs-lead, .quality-intro, .hero-lead, .aff-lead, .pricing-intro > p:last-child, .intro .lead) {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -.015em;
  margin-top: 24px;
}
.shelf-support :is(.about-actions, .docs-actions, .quality-actions, .aff-hero-actions, .hero-links) { margin-top: 26px; gap: 12px 24px; }
.shelf-support :is(.site-footer, .docs-footer, .quality-footer, .agent-footer, .billing-footer, .aff-footer) {
  padding-block: 30px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* About: an editorial introduction and an honest, aligned comparison shelf. */
.shelf-support .about-hero { grid-template-columns: minmax(0, 1.6fr) minmax(240px, .65fr); gap: 64px; align-items: end; }
.shelf-support .about-introduction { margin-bottom: 0; }
.shelf-support .about-actions { gap: 18px 28px; }
.shelf-support .library-note { border: 0; border-bottom: 2px solid var(--ink); background: var(--surface); padding: 28px; border-radius: 10px 10px 0 0; }
.shelf-support .library-count { margin-bottom: 18px; }
.shelf-support .library-count > span:first-child { font-size: clamp(48px, 5vw, 68px); font-weight: 600; letter-spacing: -.06em; }
.shelf-support .library-count > span:last-child { font-size: 16px; margin-top: 5px; }
.shelf-support .library-note > p:not(.library-count) { font-size: 13px; line-height: 1.7; }
.shelf-support .library-note-detail { border-top: 1px solid var(--line); }
.shelf-support .library-comparison { border-top: 0; padding-block: 52px; }
.shelf-support .section-heading h2, .shelf-support .inquiry-intro h2 { letter-spacing: -.045em; }
.shelf-support .comparison-products { gap: 32px; }
.shelf-support .comparison-pair { gap: 16px 12px; padding-top: 20px; border-top: 1px solid var(--ink); }
.shelf-support .comparison-pair > h3 { font-size: 18px; line-height: 1.45; font-weight: 600; }
.shelf-support .comparison-image { border-radius: 8px; background: var(--surface); }
.shelf-support .comparison-pair figcaption { font-size: 13px; }
.shelf-support .comparison-pair figcaption :is(small, a) { font-size: 12px; color: var(--muted); }
.shelf-support .work-inquiry { gap: 72px; padding-block: 52px 64px; }
.shelf-support .inquiry-intro > p:not(.eyebrow) { font-size: 16px; }
.shelf-support .inquiry-panel { border-top: 2px solid var(--ink); padding-top: 24px; }
.shelf-support .inquiry-panel label { font-size: 13px; }
.shelf-support .inquiry-panel label > span { font-size: 11px; }
.shelf-support .inquiry-panel :is(input, textarea) { font-size: 15px; min-height: 48px; }
.shelf-support .inquiry-panel :is(input, textarea)::placeholder { font-size: 14px; }
.shelf-support .inquiry-privacy { font-size: 12px; }

/* Documentation: a durable index alongside readable technical shelves. */
.shelf-support .docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 64px; padding: 40px 0 64px; }
.shelf-support .docs-toc { top: 110px; border-top: 2px solid var(--ink); padding-top: 18px; }
.shelf-support .docs-toc p { color: var(--muted); font-size: 10px; letter-spacing: .09em; }
.shelf-support .docs-toc a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.shelf-support .docs-toc a:hover { color: var(--ink); }
.shelf-support .docs-section { margin-bottom: 40px; padding-bottom: 40px; scroll-margin-top: 112px; }
.shelf-support .docs-section h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; max-width: 810px; }
.shelf-support .docs-section h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.shelf-support .docs-section p { color: var(--muted); max-width: 78ch; font-size: 15px; line-height: 1.75; }
.shelf-support .docs-code { background: var(--ink); color: #f4f4f5; border-radius: 8px; padding: 24px; font-size: 13px; }
.shelf-support .docs-code-label { font-family: Inter, Arial, sans-serif; color: #c9c9c5; font-size: 10px; }
.shelf-support :is(.docs-callout, .quality-note) { background: var(--surface); border: 0; border-bottom: 1px solid #b9b9b1; border-radius: 8px 8px 0 0; padding: 22px 24px; color: var(--muted); }
.shelf-support :is(.docs-callout, .quality-note) strong { color: var(--ink); }
.shelf-support :is(.docs-table-wrap, .quality-table-wrap) { border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
.shelf-support :is(.docs-table, .quality-table) th { background: var(--surface); color: var(--muted); font-size: 11px; }
.shelf-support :is(.docs-table, .quality-table) td { color: var(--muted); padding-block: 18px; }
.shelf-support :is(.docs-table, .quality-table) td:first-child { color: var(--ink); }
.shelf-support .standard-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; padding: 24px 0; }
.shelf-support .docs-recipe { gap: 20px; }
.shelf-support .docs-recipe li { background: var(--surface); border-radius: 8px; padding: 20px; color: var(--muted); }
.shelf-support .docs-recipe li::before { color: var(--muted); }
.shelf-support .docs-recipe strong { color: var(--ink); }
.shelf-support .mcp-link-row input { border-radius: 8px; background: var(--surface); font-size: 14px; }
.shelf-support .mcp-link-row button { border-radius: 8px; background: var(--shelf-accent); color: var(--shelf-ink); font-size: 13px; padding-inline: 22px; }
.shelf-support .docs-quickstart { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.shelf-support .docs-quickstart > span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.shelf-support .docs-quickstart code { min-width: 0; max-width: 100%; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.shelf-support .docs-quickstart a { color: var(--muted); font-size: 12px; line-height: 1.6; text-underline-offset: 3px; }
.shelf-support .docs-quickstart a:hover { color: var(--ink); }
.shelf-support .stockroom-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.shelf-support .stockroom-card-image { border-radius: 8px; overflow: hidden; }
.shelf-support .stockroom-card-body { padding: 16px 0; }

/* Data quality: evidence gets a calm, legible ledger. */
.shelf-support .quality-section { padding-block: 44px; }
.shelf-support .quality-heading { grid-template-columns: 1fr 1.2fr; gap: 56px; margin-bottom: 28px; align-items: start; }
.shelf-support .quality-heading h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.045em; }
.shelf-support .quality-grid { gap: 28px 48px; }
.shelf-support .quality-item { padding-top: 20px; border-top: 1px solid var(--line); }
.shelf-support .quality-item h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.025em; }
.shelf-support .quality-item p, .shelf-support .quality-heading p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.shelf-support .quality-item .quality-number { color: var(--muted); font-family: Inter, Arial, sans-serif; font-size: 10px; letter-spacing: .07em; }
.shelf-support .quality-stats { border-top: 2px solid var(--ink); background: var(--surface); padding: 28px; border-radius: 0 0 8px 8px; }
.shelf-support .quality-stat strong { font-weight: 600; }
.shelf-support .quality-stat span { font-size: 12px; }
.shelf-support .quality-programs a { border-radius: 6px; border-color: var(--line); min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
.shelf-support .quality-programs a:hover { background: var(--surface); }
.shelf-support .quality-close { padding-block: 42px; }

/* Agents: the connection is the first useful object on the shelf. */
.shelf-support .agent-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.shelf-support .hero-copy { padding-top: 18px; }
.shelf-support .hero-copy h1 { font-size: clamp(44px, 4.8vw, 68px); }
.shelf-support .hero-lead { max-width: 520px; }
.shelf-support .connect-card { background: var(--surface); padding: 28px; border: 0; border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; }
.shelf-support .connect-card h2 { font-size: 30px; font-weight: 600; }
.shelf-support .quiet-badge { background: #fff; border-radius: 5px; color: var(--muted); }
.shelf-support .connect-card > p:not(.copy-status) { font-size: 13px; }
.shelf-support .connect-card input { font-size: 12px; }
.shelf-support .image-promises { border-top: 0; padding-block: 28px; }
.shelf-support .image-promises h2 { font-size: 18px; font-weight: 600; }
.shelf-support .image-promises .section-index { font-size: 10px; }
.shelf-support .agent-section { padding-block: 48px; }
.shelf-support .agent-section .section-heading { gap: 64px; align-items: start; margin-bottom: 30px; }
.shelf-support .agent-section .section-heading h2 { font-weight: 600; }
.shelf-support .requirements-layout { gap: 32px; }
.shelf-support .requirements-layout textarea { background: var(--surface); font-size: 14px; padding: 20px; }
.shelf-support .code-card { background: var(--ink); border-radius: 8px; }
.shelf-support .result-note { border-radius: 8px; background: var(--surface); }
.shelf-support .tool-list { column-gap: 40px; }
.shelf-support .tool-list article { padding-block: 24px; }
.shelf-support .tool-list h3 { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.shelf-support .evaluation-grid { gap: 24px; }
.shelf-support .evaluation-card { border: 0; border-top: 2px solid var(--ink); border-radius: 0 0 8px 8px; background: var(--surface); padding: 24px; }
.shelf-support .evaluation-number { font-size: 52px; font-weight: 600; letter-spacing: -.06em; }
.shelf-support .trial-breakdown { border-radius: 8px; border-color: var(--line); }
.shelf-support .trial-table thead th { background: var(--surface); }
.shelf-support .outcome-grid article > span { color: var(--muted); font-family: Inter, Arial, sans-serif; }

/* Pricing and account: compare clearly, then keep the work together. */
.shelf-support .pricing-intro { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 64px; align-items: end; margin-bottom: 24px; }
.shelf-support .pricing-intro .billing-eyebrow { grid-column: 1 / -1; margin-bottom: 18px; }
.shelf-support .pricing-intro h1 { font-size: clamp(42px, 4.9vw, 68px); }
.shelf-support .pricing-intro > p:last-child { margin: 0; padding-bottom: 3px; max-width: 460px; }
.shelf-support .billing-notice { border-color: var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.shelf-support .pricing-grid { gap: 20px; }
.shelf-support .price-card { padding: 26px; border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; background: #fff; }
.shelf-support .price-card-featured { border-top-color: var(--shelf-accent); background: var(--surface); }
.shelf-support .plan-index { color: var(--muted); letter-spacing: .07em; text-transform: uppercase; font-size: 10px; margin-bottom: 24px; }
.shelf-support .price-card h2 { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.shelf-support .price-card-heading > p { font-size: 14px; color: var(--muted); max-width: 280px; }
.shelf-support .plan-price { font-size: 60px; font-weight: 600; letter-spacing: -.065em; margin-block: 30px 24px; font-variant-numeric: tabular-nums; }
.shelf-support .plan-price span { font-size: 13px; letter-spacing: -.01em; }
.shelf-support .plan-tag { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.shelf-support .price-card li { color: var(--muted); font-size: 13px; }
.shelf-support .price-card li::before { color: var(--ink); }
.shelf-support .price-card-bottom > p { font-size: 12px; color: var(--muted); }
.shelf-support .billing-cycle { border-color: var(--line); border-radius: 7px; background: #e9e9e7; padding: 3px; }
.shelf-support .billing-cycle button { color: var(--muted); min-height: 32px; padding: 7px 12px; border-radius: 5px; }
.shelf-support .billing-cycle button[aria-pressed=true] { color: var(--ink); background: #fff; box-shadow: none; }
.shelf-support .billing-cycle button span { color: var(--muted); font-size: 10px; }
@media (min-width: 761px) {
  /* Shared rows align prices even when a plan has an extra billing control. */
  .shelf-pricing .pricing-grid { grid-template-rows: auto 42px auto 1fr auto; row-gap: 0; }
  .shelf-pricing .price-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
  .shelf-pricing .price-card-heading { grid-row: 1; }
  .shelf-pricing .price-card > .billing-cycle { grid-row: 2; margin: 0; align-self: center; justify-self: start; }
  .shelf-pricing .price-card > .plan-price { grid-row: 3; margin-block: 22px 24px; align-self: start; }
  .shelf-pricing .price-card > ul { grid-row: 4; }
  .shelf-pricing .price-card-bottom { grid-row: 5; margin-top: 0; align-self: end; }
  @supports not (grid-template-rows: subgrid) {
    .shelf-pricing .price-card { grid-template-rows: minmax(130px, auto) 42px auto 1fr auto; }
  }
}
.shelf-support .free-browse-note { margin-top: 12px; padding-block: 30px; }
.shelf-support .free-browse-mark { border-radius: 50%; color: var(--ink); }
.shelf-support .pricing-faq { padding-block: 44px 64px; gap: 64px; }
.shelf-support .pricing-faq h2 { font-size: 36px; font-weight: 600; letter-spacing: -.045em; }
.shelf-support .faq-items summary { font-size: 15px; }
.shelf-support .faq-items details p { font-size: 14px; }
.shelf-support .account-heading { padding-block: 46px 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.shelf-support .account-heading h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.055em; }
.shelf-support .account-signin { max-width: 640px; padding: 48px 32px; margin: 36px auto; border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; background: var(--surface); }
.shelf-support .signin-mark { font-size: 32px; color: var(--ink); }
.shelf-support .account-signin h2 { font-weight: 600; }
.shelf-support .account-plan { border: 0; border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; background: var(--surface); }
.shelf-support .account-sections { gap: 28px; margin-top: 16px; }
.shelf-support .account-sections a { font-size: 14px; font-weight: 500; }
.shelf-support .account-section { padding-top: 36px; }
.shelf-support .account-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; }
.shelf-support .account-row h3 { font-size: 15px; }
.shelf-support :is(.account-empty, .custom-order) { border-radius: 8px; border-color: var(--line); padding: 24px; }
.shelf-support .account-empty { background: var(--surface); border-style: solid; font-size: 14px; }
.shelf-support .custom-order .account-row { padding: 0; border: 0; }
.shelf-support .billing-field label { font-size: 13px; color: var(--muted); }
.shelf-support .billing-field :is(input, textarea) { font-size: 15px; }
.shelf-support .new-key { border-color: #aaa9a2; background: var(--surface); border-radius: 8px; }
.shelf-support .checkout-return { background: var(--surface); border-color: var(--line); border-radius: 8px; }

/* Builders: precision replaces tilted demos and nested decorative cards. */
.shelf-support .aff-hero { gap: 64px; grid-template-columns: 1.05fr 1fr; align-items: start; }
.shelf-support .aff-hero h1 { font-size: clamp(44px, 4.9vw, 68px); }
.shelf-support .aff-hero h1 em { color: var(--ink); }
.shelf-support .aff-hero-note { color: var(--muted); font-size: 12px; max-width: 500px; }
.shelf-support .aff-example { transform: none; box-shadow: none; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 20px 0 0; }
.shelf-support .aff-example-heading { padding: 0 0 18px; }
.shelf-support .aff-example-heading > span:first-child { font-size: 13px; }
.shelf-support .aff-example-heading > span:last-child { font-size: 10px; color: var(--muted); }
.shelf-support .aff-example-heading i { background: var(--shelf-accent); }
.shelf-support .aff-example-grid { gap: 14px; }
.shelf-support .aff-example-card { border-radius: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shelf-support .aff-example-card img { border-radius: 8px; }
.shelf-support .aff-example-card > div { padding: 14px 0 0; }
.shelf-support .aff-example-card > div > span { color: var(--muted); font-size: 11px; }
.shelf-support .aff-example-card strong { font-size: 14px; font-weight: 600; }
.shelf-support .aff-example-footer { color: var(--muted); font-size: 11px; margin: 18px 0 0; }
.shelf-support .aff-steps { border-top: 0; padding-block: 28px; }
.shelf-support .aff-steps h2 { font-size: 18px; font-weight: 600; }
.shelf-support .aff-steps p { font-size: 13px; color: var(--muted); }
.shelf-support .aff-step-number { color: var(--muted); }
.shelf-support .aff-workspace { padding-top: 44px; }
.shelf-support .aff-section-heading h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.045em; }
.shelf-support .aff-panel { border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 28px 0; margin-top: 28px; }
.shelf-support .aff-panel h3 { font-size: 27px; font-weight: 600; letter-spacing: -.04em; }
.shelf-support .aff-panel-intro { font-size: 14px; color: var(--muted); }
.shelf-support .aff-signin-panel { background: var(--surface); border: 0; border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; padding: 28px; }
.shelf-support .aff-signin-panel p, .shelf-support .aff-register > div > p:not(.aff-eyebrow) { color: var(--muted); font-size: 14px; }
.shelf-support .aff-register { gap: 64px; }
.shelf-support .aff-field label { color: var(--muted); font-size: 12px; }
.shelf-support .aff-field :is(input, select) { font-size: 14px; }
.shelf-support .aff-field-help { color: var(--muted) !important; font-size: 12px !important; }
.shelf-support .aff-overview { gap: 20px; }
.shelf-support .aff-metric { border-radius: 8px; background: var(--surface); padding: 24px; }
.shelf-support .aff-metric > span { font-size: 10px; color: var(--muted); }
.shelf-support .aff-metric > strong { font-size: 36px; font-weight: 600; letter-spacing: -.055em; }
.shelf-support .aff-metric p { font-size: 12px; color: var(--muted); }
.shelf-support .aff-network-note { border-radius: 8px; }
.shelf-support :is(.aff-link-card, .aff-collection-card, .aff-code-details) { border-color: var(--line); border-radius: 8px; }
.shelf-support .aff-picker-product { border-radius: 8px; border-color: var(--line); }
.shelf-support .aff-picker-product[aria-pressed=true] { border-color: var(--ink); background: #fff; }
.shelf-support .aff-picker-product-title { font-size: 12px; }
.shelf-support .aff-picker-product-brand { color: var(--muted); font-size: 10px; }
.shelf-support .aff-activity-summary > div { background: var(--surface); border-radius: 8px; }
.shelf-support .aff-activity-summary strong { font-size: 38px; font-weight: 600; }
.shelf-support .aff-activity-summary :is(span, p) { color: var(--muted); }
.shelf-support .aff-code-details pre { background: var(--ink); }

/* Operator controls use the same system without obscuring readiness states. */
.shelf-affiliate-operations .intro { margin-bottom: 28px; }
.shelf-affiliate-operations .intro h1 { font-size: clamp(40px, 4.6vw, 62px); }
.shelf-affiliate-operations .intro > .pill { margin-top: 0; }
.shelf-affiliate-operations .panel { border: 0; border-top: 1px solid var(--ink); padding: 28px 0; border-radius: 0; margin-bottom: 20px; }
.shelf-affiliate-operations .access { border-top-width: 2px; padding: 28px; border-radius: 0 0 10px 10px; background: var(--surface); gap: 56px; }
.shelf-affiliate-operations h2 { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.shelf-affiliate-operations :is(.section-copy, .access p) { font-size: 14px; }
.shelf-affiliate-operations .application-brief > summary { font-size: 15px; }
.shelf-affiliate-operations .application-brief textarea { font-family: Inter, Arial, sans-serif; font-size: 13px; background: var(--surface); }
.shelf-affiliate-operations .toolbar { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-top: 32px; }
.shelf-affiliate-operations .toolbar nav a { font-size: 13px; color: var(--muted); }
.shelf-affiliate-operations .readiness-grid { gap: 20px; }
.shelf-affiliate-operations .readiness-item { padding: 20px; border-radius: 8px; border-color: var(--line); }
.shelf-affiliate-operations .readiness-item strong { font-size: 13px; }
.shelf-affiliate-operations .readiness-item p { font-size: 12px; }
.shelf-affiliate-operations .metrics { padding-top: 26px; }
.shelf-affiliate-operations .metric strong { font-size: 36px; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.shelf-affiliate-operations .metric span { font-size: 11px; }
.shelf-affiliate-operations :is(.store-card, .empty, .import-preview) { border-color: var(--line); border-radius: 8px; }
.shelf-affiliate-operations .store-card { padding: 24px; }
.shelf-affiliate-operations .empty { background: var(--surface); font-size: 13px; }
.shelf-affiliate-operations .store-name { font-size: 18px; }
.shelf-affiliate-operations :is(label, input:not([type=checkbox]), select) { font-size: 14px; }
.shelf-affiliate-operations :is(.help, .note) { font-size: 12px; }
.shelf-affiliate-operations .totals-table { font-size: 12px; }
.shelf-affiliate-operations .totals-table th { font-size: 11px; }

@media (min-width: 1600px) {
  .shelf-support :is(.wrap, .billing-wrap, .agent-wrap, .aff-wrap) { width: min(1440px, calc(100% - 128px)); }
}
@media (max-width: 1100px) {
  .shelf-support :is(.wrap, .billing-wrap, .agent-wrap, .aff-wrap) { width: calc(100% - 48px); }
  .shelf-support :is(.about-hero, .agent-hero, .aff-hero) { gap: 36px; }
  .shelf-support .docs-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 36px; }
  .shelf-support :is(.quality-heading, .agent-section .section-heading) { gap: 36px; }
  .shelf-support .price-card { padding: 22px; }
  .shelf-support .plan-price { font-size: 52px; }
  .shelf-support .pricing-intro { gap: 0 36px; }
  .shelf-support .comparison-products { gap: 24px; }
  .shelf-support .work-inquiry { gap: 44px; }
}
@media (max-width: 850px) {
  .shelf-support .about-hero { grid-template-columns: 1fr; gap: 32px; }
  .shelf-support .library-note { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px 28px; padding: 24px; }
  .shelf-support .library-count { margin: 0; grid-row: span 2; }
  .shelf-support .library-note > p:not(.library-count) { margin: 0; }
  .shelf-support .library-note-detail { border: 0; padding: 0; }
  .shelf-support .agent-hero, .shelf-support .aff-hero { grid-template-columns: 1fr; gap: 32px; }
  .shelf-support .hero-copy { padding-top: 0; }
  .shelf-support .agent-hero .connect-card { max-width: none; }
  .shelf-support .hero-copy h1 { max-width: 760px; }
  .shelf-support .aff-example { max-width: 700px; }
  .shelf-support .pricing-intro { grid-template-columns: 1fr; gap: 22px; }
  .shelf-support .pricing-intro .billing-eyebrow { margin-bottom: -4px; }
  .shelf-support .pricing-intro > p:last-child { max-width: 650px; }
  .shelf-support .quality-heading { grid-template-columns: 1fr; gap: 18px; }
  .shelf-support .quality-heading > p { max-width: 760px; }
}
@media (max-width: 760px) {
  .shelf-support :is(.wrap, .billing-wrap, .agent-wrap, .aff-wrap) { width: calc(100% - 40px); }
  .shelf-support :is(.about-hero, .docs-hero, .quality-hero, .agent-hero, .aff-hero, .pricing-intro, .intro) { padding-top: 36px; padding-bottom: 32px; }
  .shelf-support :is(.about-hero h1, .docs-hero h1, .quality-hero h1, .hero-copy h1, .aff-hero h1, .pricing-intro h1, .intro h1) { font-size: clamp(38px, 7.8vw, 54px); line-height: 1.06; letter-spacing: -.055em; }
  .shelf-support :is(.about-introduction, .docs-lead, .quality-intro, .hero-lead, .aff-lead, .pricing-intro > p:last-child, .intro .lead) { font-size: 16px; margin-top: 20px; }
  .shelf-support .pricing-intro > p:last-child { margin-top: 0; }
  .shelf-support :is(.library-comparison, .work-inquiry, .quality-section, .agent-section) { padding-block: 32px; }
  .shelf-support :is(.section-heading h2, .quality-heading h2, .agent-section .section-heading h2, .inquiry-intro h2) { font-size: 30px; letter-spacing: -.04em; }
  .shelf-support .docs-layout { display: block; padding-top: 24px; padding-bottom: 42px; }
  .shelf-support .docs-toc { position: static; display: flex; flex-wrap: wrap; gap: 0 24px; margin-bottom: 32px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .shelf-support .docs-toc p { width: 100%; margin-bottom: 8px; }
  .shelf-support .docs-toc a { width: auto; min-height: 40px; border: 0; padding-block: 8px; }
  .shelf-support .docs-section { margin-bottom: 32px; padding-bottom: 32px; }
  .shelf-support .docs-section h2 { font-size: 29px; }
  .shelf-support .docs-code { padding: 18px; font-size: 12px; }
  .shelf-support :is(.docs-table, .quality-table) { min-width: 560px; }
  .shelf-support .docs-pair { grid-template-columns: 1fr; gap: 0; }
  .shelf-support .quality-grid { gap: 24px; }
  .shelf-support .quality-stats { padding: 24px; }
  .shelf-support .quality-stat { padding-inline: 18px; }
  .shelf-support .quality-stat:nth-child(odd) { padding-left: 0; }
  .shelf-support .quality-stat strong { font-size: 40px; }
  .shelf-support .connect-card { padding: 24px; }
  .shelf-support .image-promises { gap: 22px; padding-block: 24px; }
  .shelf-support .agent-section .section-heading { gap: 18px; }
  .shelf-support .requirements-layout { gap: 24px; }
  .shelf-support .evaluation-card { padding: 22px; }
  .shelf-support .evaluation-number { font-size: 46px; }
  .shelf-support .pricing-grid { gap: 22px; }
  .shelf-support .price-card { padding: 26px; }
  .shelf-support .plan-price { font-size: 56px; margin-block: 24px 20px; }
  .shelf-support .price-card-heading > p { max-width: none; }
  .shelf-support .pricing-faq { gap: 24px; padding-block: 32px 44px; }
  .shelf-support .account-heading { padding-block: 34px 24px; }
  .shelf-support .account-heading h1 { font-size: 38px; }
  .shelf-support .account-signin { padding: 32px 24px; }
  .shelf-support .account-sections { overflow-x: auto; gap: 24px; }
  .shelf-support .account-sections a { white-space: nowrap; font-size: 13px; }
  .shelf-support .aff-workspace { padding-top: 32px; }
  .shelf-support .aff-panel { margin-top: 20px; padding-block: 24px; }
  .shelf-support .aff-panel h3 { font-size: 25px; }
  .shelf-support .aff-signin-panel { padding: 24px; }
  .shelf-support .aff-register { gap: 24px; }
  .shelf-support .aff-metric { padding: 20px; }
  .shelf-support .aff-metric > strong { font-size: 30px; }
  .shelf-affiliate-operations .access { padding: 24px; gap: 24px; }
  .shelf-affiliate-operations h2 { font-size: 26px; }
  .shelf-affiliate-operations .readiness-grid { gap: 12px; }
  .shelf-affiliate-operations .store-card { padding: 20px; }
}
@media (max-width: 520px) {
  .shelf-support .library-note { grid-template-columns: 1fr; gap: 18px; }
  .shelf-support .library-count { grid-row: auto; }
  .shelf-support .library-count > span:first-child { font-size: 56px; }
  .shelf-support .work-inquiry { gap: 28px; }
  .shelf-support .docs-actions, .shelf-support .quality-actions { gap: 10px; }
  .shelf-support .docs-actions a, .shelf-support .quality-actions a { padding-inline: 14px; min-height: 44px; font-size: 12px; }
  .shelf-support .quality-stats { padding: 20px; }
  .shelf-support .quality-stat strong { font-size: 36px; }
  .shelf-support .quality-stat span { font-size: 11px; }
  .shelf-support .native-connection { flex-wrap: wrap; gap: 8px; }
  .shelf-support .aff-example-grid { gap: 10px; }
  .shelf-support .aff-example-card strong { font-size: 12px; }
  .shelf-support .aff-example-card > div > span { font-size: 10px; }
  .shelf-support .aff-example-heading > span:last-child { font-size: 9px; }
  .shelf-support .aff-hero-actions { flex-wrap: wrap; gap: 12px 24px; }
  .shelf-support .billing-cycle button { min-height: 36px; }
  .shelf-support .account-row { flex-wrap: wrap; gap: 14px; }
  .shelf-support .account-row-actions { justify-content: flex-start; }
  .shelf-support .aff-section-heading, .shelf-support .aff-panel-heading { align-items: flex-start; }
  .shelf-affiliate-operations .panel-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .shelf-support *, .shelf-support *::before, .shelf-support *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media (forced-colors: active) {
  .shelf-support :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid CanvasText !important; }
}

/* Shared shopper tools: quiet controls, useful decisions, no account wall. */
.product-save{position:absolute;right:6px;top:6px;z-index:3;width:40px;height:40px;padding:0;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#73737d;cursor:pointer;transition:color .15s;-webkit-tap-highlight-color:transparent}
.product-save::before{content:"";position:absolute;width:28px;height:28px;border-radius:8px;background:transparent;transition:background .15s}
.product-save svg{position:relative;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.product-save:hover,.product-save:focus-visible{color:#303035}.product-save:hover::before,.product-save:focus-visible::before{background:#ffffffde}
.product-save[aria-pressed=true]{color:var(--shelf-accent-ink)}.product-save[aria-pressed=true]::before{background:var(--shelf-accent-soft)}.product-save[aria-pressed=true] svg{fill:currentColor}
.asset{position:relative}.product-save:focus-visible{outline:2px solid var(--shelf-accent-ink);outline-offset:1px}
.shop-dialog{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:88dvh;margin:auto;padding:28px;border:1px solid #e6e6e9;border-radius:20px;box-shadow:0 25px 100px #17171d33;background:#fff;color:#29292d;font-family:Inter,Arial,sans-serif;overflow:auto}.shop-dialog::backdrop{background:#15151969;backdrop-filter:blur(5px)}.shop-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.shop-dialog-head h2{margin:0;font-size:28px;font-weight:550;letter-spacing:-1px}.shop-close{width:44px;height:44px;border:0;border-radius:50%;background:#f5f5f6;color:#73737d;font-size:25px;cursor:pointer}.shop-intro{margin:8px 0 16px;font-size:13px;line-height:1.6;color:#777781}.shop-status{font-size:13px;line-height:1.5;color:#a64927;min-height:4px}.shop-body{min-width:0}.shop-empty{padding:40px 20px;text-align:center;color:#71717a;line-height:1.7}.shop-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #ebebed}.shop-button{min-height:44px;padding:10px 16px;background:#fff;border:1px solid #dedee3;border-radius:10px;color:#43434d;cursor:pointer;font:500 13px/1.5 Inter,Arial,sans-serif}.shop-button:hover{background:#f4f4f5}.shop-button.shop-primary{background:#252529;color:#fff;border-color:#252529}.shop-button:disabled{opacity:.4;cursor:not-allowed}.shop-text-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:#7b7b85;cursor:pointer;padding:8px;font-size:12px}.shop-dialog button:focus-visible,.shop-dialog input:focus-visible,.shop-dialog a:focus-visible{outline:2px solid var(--shelf-accent-ink);outline-offset:3px}.shortlist-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px}.shortlist-image{display:block;aspect-ratio:1;background:#f4f4f5;border-radius:12px;overflow:hidden}.shortlist-image img{width:100%;height:100%;object-fit:contain}.shortlist-brand{margin:12px 0 5px;font-size:11px;color:#7a7a84}.shortlist-card h3{margin:0;font-size:13px;font-weight:550;line-height:1.5;min-height:39px}.shortlist-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.shortlist-controls label{display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer;min-height:44px}.shortlist-controls input{accent-color:#303035;width:16px;height:16px}.shop-toast{position:fixed;z-index:200;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;padding:13px 18px;border-radius:12px;background:#27272af5;color:#fff;box-shadow:0 8px 30px #0002;font:450 13px/1.5 Inter,Arial,sans-serif}.shop-toast[hidden]{display:none}.shop-copy{display:block;width:100%;min-height:120px;padding:12px;border:1px solid #d4d4da;border-radius:10px;font:12px/1.6 monospace}
.compare-scroll{overflow-x:auto}.compare-table{width:100%;min-width:560px;border-collapse:collapse;text-align:left;font-size:13px;line-height:1.6}.compare-table th,.compare-table td{padding:16px;vertical-align:top;border-bottom:1px solid #e9e9ed;min-width:165px;max-width:250px;overflow-wrap:anywhere}.compare-table tbody th{font-weight:500;color:#8a8a94;font-size:12px;min-width:120px;max-width:150px}.compare-table thead th:first-child{vertical-align:bottom;color:#8a8a94;font-weight:500;font-size:12px}.compare-table thead a{display:flex;flex-direction:column;gap:6px;color:#27272a;text-decoration:none}.compare-table img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#f4f4f5;border-radius:10px}.compare-brand{font-size:11px;font-weight:450;color:#85858f}.compare-table strong{font-weight:550;font-size:14px}.compare-source{display:block;margin-top:7px;font-size:11px;color:#71717a;text-underline-offset:3px}.shop-merchant{display:block;padding:9px 12px;margin-bottom:8px;border:1px solid #e0e0e5;border-radius:9px;color:#35353c;font-size:12px;font-weight:500;text-decoration:none}.shop-merchant:hover{background:#f3f3f5}.compare-table small{font-size:10px;color:#8a8a94}.shop-evidence-note{margin:20px 0 0;max-width:780px;font-size:11px;line-height:1.7;color:#85858f}
body.stockroom-home .nav-key [data-saved-count]{display:inline-grid;place-items:center;min-width:22px;min-height:22px;border-radius:20px;background:#ffffff26;font-size:11px}body.stockroom-home .home-hero .hero-description{max-width:690px}body.stockroom-home .home-hero .hero-description br{display:block}body.stockroom-home .home-builders{margin-top:40px}
@media(max-width:850px){.shortlist-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-dialog{padding:22px}.compare-table th,.compare-table td{padding:12px}}
@media(max-width:550px){.shortlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.shop-dialog{padding:18px;border-radius:15px}.shop-dialog-head h2{font-size:24px}.shop-intro{font-size:12px}.shop-actions{gap:7px}.shop-button{padding:10px 12px;font-size:12px}.shop-toast{bottom:18px;font-size:12px}.shop-evidence-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.product-save,.product-save::before{transition:none}}

/* Shelfhelp: the working shelf. Authored image canvases are intentionally untouched. */
:root{--shelf-ground:#fff;--shelf-stage:#f4f4f5;--shelf-ink:#22221f;--shelf-muted:#666662;--shelf-line:#dcdcd8;--shelf-accent:#ffd814;--shelf-accent-hover:#f7ca00;--shelf-accent-ink:#705700;--shelf-accent-soft:#fff6c6;--shelf-radius:16px;--shelf-image-radius:16px;--shelf-gutter:clamp(20px,3.2vw,52px)}
body{color:var(--shelf-ink);font-family:"Inter",Arial,sans-serif;-webkit-font-smoothing:antialiased}
::selection{background:var(--shelf-accent-soft);color:#22221f}
body :is(button,input,select,textarea){font-family:"Inter",Arial,sans-serif}
body :is(a,button,input,select,summary,textarea):focus-visible{outline:2px solid var(--shelf-accent-ink);outline-offset:4px}
.shelf-skip{position:fixed;left:16px;top:10px;z-index:300;padding:12px 18px;background:#22221f;color:#fff;border-radius:6px;transform:translateY(-150%);text-decoration:none;font-size:14px}.shelf-skip:focus{transform:translateY(0)}
body :is(.site-header,.billing-header,.agent-header,.aff-header,.collection-header){background:#fff;border-bottom:1px solid var(--shelf-line)}
body :is(.topbar,.site-header .header-inner,.billing-header-inner,.agent-header .header-inner,.aff-header-inner,.collection-header-inner){min-height:76px}
body :is(.brand .brand-name,.wordmark .brand-copy strong,.billing-brand,.aff-brand strong,.collection-brand strong){font-family:"Inter",Arial,sans-serif;font-size:25px;font-weight:600;letter-spacing:-.045em;line-height:1.1;color:var(--shelf-ink)}
body .brand-home-note{display:none}
body :is(.header-nav,.top-right){gap:26px}
body :is(.header-text-link,.nav-link){color:var(--shelf-ink);font-size:14px;font-weight:500}
body .shelf-nav-button,body .shortlist-open,body.stockroom-home .nav-key{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 15px;border:1px solid var(--shelf-ink);border-radius:7px;background:var(--shelf-ink);color:#fff;font:550 13px/1.4 "Inter",Arial,sans-serif;cursor:pointer;white-space:nowrap;text-decoration:none}
body .shelf-nav-button:hover,body .shortlist-open:hover,body.stockroom-home .nav-key:hover{color:#fff;background:#3f3f38;border-color:#3f3f38}
body :is(.shelf-nav-button,.shortlist-open,.nav-key) [data-saved-count],body .shortlist-open [data-shortlist-count]{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--shelf-accent);color:var(--shelf-ink);font-size:11px;font-variant-numeric:tabular-nums}
body.stockroom-home .wrap{width:min(1440px,calc(100% - 2 * var(--shelf-gutter)))}
body.stockroom-home .topbar{min-height:76px}
body.stockroom-home .platform-hero{padding:32px 0 24px;text-align:left}
body.stockroom-home .hero-message{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr);align-items:end;gap:60px;text-align:left}
body.stockroom-home .platform-hero h1{max-width:none;margin:0;font-size:clamp(56px,5.6vw,80px);line-height:.99;font-weight:580;letter-spacing:-.065em;text-align:left;text-wrap:balance}
body.stockroom-home .platform-hero h1 span{color:var(--shelf-ink)}
body.stockroom-home .home-hero-intro{align-items:flex-start;gap:16px;max-width:390px;margin:0 0 5px;padding:0;text-align:left}
body.stockroom-home .hero-description{max-width:380px;margin:0;font-size:17px;line-height:1.55;letter-spacing:-.025em;color:var(--shelf-muted);text-wrap:pretty}
body.stockroom-home .hero-description strong{font-weight:600;color:var(--shelf-ink)}
body.stockroom-home .hero-actions{justify-content:flex-start;gap:12px}
body.stockroom-home .hero-actions .platform-button{min-height:44px;padding:10px 15px;border:0;border-radius:12px;background:var(--shelf-stage);color:var(--shelf-ink);font-size:14px;gap:20px;transform:none}
body.stockroom-home .hero-actions .platform-button:hover{background:#ebebee;color:var(--shelf-ink);box-shadow:none;transform:none}
/* Catalog navigation uses the measured header and toolbar, including an open shelf. */
html:has(body.stockroom-home) {scroll-padding-top:var(--catalog-header-height,76px)}
body.stockroom-home #collection {border:0;padding-top:0;scroll-margin-top:16px}
body.stockroom-home .explorer-canvas .grid-controls {
  margin:0 0 clamp(18px,1.8vw,28px);padding:8px 0;border:0;
  background:var(--shelf-ground);backdrop-filter:none;scroll-margin-top:8px;
}
body.stockroom-home .catalog-tool-row {
  padding:8px;gap:18px;border-radius:16px;background:var(--shelf-stage);
}
body.stockroom-home .catalog-search-control {max-width:600px}
body.stockroom-home .collection .catalog-search-panel .field input {
  height:48px;min-height:48px;padding:0 40px 0 43px;border:1px solid #e4e4e7;
  border-radius:10px;background:#fff;color:var(--shelf-ink);font-size:16px;letter-spacing:-.015em;
}
body.stockroom-home .collection .catalog-search-panel .field input:focus {border-color:#757579;box-shadow:none}
body.stockroom-home .collection .catalog-search-panel .search-icon {top:15px;color:#606064}
body.stockroom-home .collection .catalog-search-panel .search-shortcut {top:13px}
body.stockroom-home .collection .catalog-search-panel .search-clear {top:4px}
body.stockroom-home #layers-toggle {
  min-height:48px;padding-inline:16px;border:0;border-radius:10px;background:transparent;font-size:14px;
}
body.stockroom-home #layers-toggle:hover {background:#e8e8ea}
body.stockroom-home #layers-toggle[aria-expanded=true],
body.stockroom-home .collection:has(.browse-trail li:nth-child(2),[data-remove-filter="collection"]) #layers-toggle {
  background:var(--shelf-accent);color:var(--shelf-ink);
}
body.stockroom-home .grid-controls #grid-range {color:#5c5c61;font-size:12px}
body.stockroom-home .grid-view-switch {padding:0;border:0;border-radius:10px;background:#e9e9eb}
body.stockroom-home .grid-view-switch button {min-height:44px;min-width:44px;border-radius:9px;color:#55555a}
body.stockroom-home .grid-view-switch button[aria-pressed=true] {background:#fff;color:var(--shelf-ink);box-shadow:inset 0 0 0 1px #e0e0e3}
body.stockroom-home .grid-page-shortcuts button {min-width:44px;min-height:44px}
body.stockroom-home .grid-page-shortcuts button:hover:not(:disabled) {background:#e6e6e9}
body.stockroom-home #image-grid {
  --catalog-columns:4;gap:30px 20px;
  scroll-margin-top:calc(var(--catalog-controls-height,72px) + 12px);
}
body.stockroom-home #image-grid .asset[id] {scroll-margin-top:calc(var(--catalog-controls-height,72px) + 12px)}
body.stockroom-home .collection .image-link {border:0;border-radius:var(--shelf-image-radius);background:var(--shelf-stage);box-shadow:none}
body.stockroom-home .collection .image-link:hover {box-shadow:none}
body.stockroom-home .collection .caption {padding:11px 0 0}
body.stockroom-home .collection .category {margin:0;font-size:12px;line-height:1.45;font-weight:500;color:#606064}
body.stockroom-home .collection .asset h3 {margin:3px 0 0;color:var(--shelf-ink);font-size:16px;font-weight:550;line-height:1.32;letter-spacing:-.025em}
body.stockroom-home .collection .asset h3 a:hover {text-decoration:underline;text-underline-offset:3px}
#image-grid .caption {display:grid; grid-template-columns:minmax(0,1fr) 44px; align-content:start}
#image-grid .caption :is(.category,h3) {grid-column:1}
#image-grid .shelf-bookmark {
  grid-column:2; grid-row:1 / 3; align-self:start; justify-self:end;
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:0; background:transparent; color:var(--shelf-muted); cursor:pointer;
}
.shelf-bookmark svg {fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round}
#image-grid .shelf-bookmark:is(:hover,[aria-pressed=true]) {color:var(--shelf-ink)}
.shelf-bookmark[aria-pressed=true] svg {fill:currentColor}
body.stockroom-home .builder-section{margin-top:32px;padding:64px 0;grid-template-columns:1fr 1fr;gap:80px;border-top:2px solid var(--shelf-ink)}
body.stockroom-home .builder-intro h2{font-size:clamp(40px,4.4vw,62px);font-weight:580;line-height:1.04;letter-spacing:-.055em}
body.stockroom-home .builder-intro>.section-index{margin-bottom:18px;text-transform:none;letter-spacing:0;font-size:12px;color:var(--shelf-muted)}
body.stockroom-home .builder-intro > p:last-of-type{margin-top:20px;font-size:16px;max-width:410px}
body.stockroom-home .builder-connections{padding:24px;border:1px solid var(--shelf-line);border-top:3px solid var(--shelf-ink);border-radius:0 0 9px 9px}
body.stockroom-home .home-builders{width:100%;margin:25px 0 0}
body.stockroom-home .home-builder-list{gap:22px}
body.stockroom-home .home-builder-label{font-size:11px}
body.stockroom-home .platform-footer{background:var(--shelf-ink);padding-top:50px}
body.stockroom-home .footer-invitation{padding-bottom:40px}
body.stockroom-home .footer-invitation h2{font-size:clamp(42px,5vw,72px);font-weight:550}
body.stockroom-home .footer-invitation>div>p{display:flex;align-items:center;gap:10px;letter-spacing:0;text-transform:none;font-size:13px;color:#c7c7c2}
body.stockroom-home .footer-invitation>div>p::before{content:"";width:8px;height:8px;background:var(--shelf-accent);border-radius:50%}
body.stockroom-home .footer-signature{display:none}
body.stockroom-home .footer-bottom{margin-top:32px}
body.stockroom-home .footer-link-group h3{color:#bcbcb5}
/* The shelf is a working surface, with actual native-resolution image URLs. */
.working-shelf{position:fixed;z-index:70;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:22px;width:min(920px,calc(100% - 40px));min-height:88px;padding:12px 16px 12px 21px;background:var(--shelf-ink);color:#fff;border:1px solid #ffffff1f;border-radius:12px;box-shadow:0 9px 32px #0002}
.working-shelf[hidden]{display:none}
body.has-working-shelf{padding-bottom:112px}
.working-shelf-label{display:flex;flex-direction:column;gap:4px;flex:none;min-width:104px}
.working-shelf-label strong{font-size:15px;font-weight:550;letter-spacing:-.025em}
.working-shelf-label span{color:#c7c7c2;font-size:11px}
.working-shelf-images{display:flex;gap:6px;flex:1;min-width:0;align-items:center;overflow:hidden}
.working-shelf-thumb{position:relative;display:block;width:58px;min-width:58px;aspect-ratio:1;background:#f4f4f5;border-radius:var(--shelf-image-radius);border:0;overflow:hidden;text-decoration:none}
.working-shelf-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.working-shelf-overflow{font-size:12px;white-space:nowrap;color:#c7c7c2;padding-left:5px}
.working-shelf-actions{display:flex;align-items:center;gap:8px;flex:none}
.working-shelf button{min-height:44px;border:1px solid #ffffff40;border-radius:6px;background:transparent;color:#fff;padding:10px 14px;font:500 12px/1.4 "Inter",Arial,sans-serif;cursor:pointer}
.working-shelf button:hover{background:#ffffff12}
.working-shelf button.shelf-copy{background:var(--shelf-accent);color:#22221f;border-color:var(--shelf-accent);font-weight:600}
.working-shelf button.shelf-copy:hover{background:var(--shelf-accent-hover)}
.working-shelf :is(a,button):focus-visible{outline-color:#fff}
body.has-working-shelf .shop-toast{bottom:126px}
body .shop-dialog{border-radius:12px;border:1px solid var(--shelf-line);padding:30px;max-height:90dvh;box-shadow:0 24px 90px #0003;color:var(--shelf-ink)}
body .shop-dialog-head{padding-bottom:19px;border-bottom:2px solid var(--shelf-ink)}
body .shop-dialog-head h2{font-size:40px;font-weight:550;letter-spacing:-.055em;line-height:1.1}
body .shop-intro{font-size:14px;color:var(--shelf-muted);margin:17px 0 21px;max-width:70ch}
body .shortlist-image{border-radius:var(--shelf-image-radius);border:0}
body .shortlist-brand{font-size:11px;color:var(--shelf-muted)}
body .shortlist-card h3{font-weight:500;font-size:14px;letter-spacing:-.02em;color:var(--shelf-ink)}
.shelf-image-meta{margin:8px 0 0;font-size:10px;line-height:1.5;color:var(--shelf-muted);font-variant-numeric:tabular-nums}
.shelf-item-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;border-top:1px solid var(--shelf-line);padding-top:5px}
.shelf-reorder{display:flex;gap:2px}
body .shelf-reorder button{min-width:36px;min-height:36px;padding:6px;border:1px solid var(--shelf-line);border-radius:5px;background:#fff;font-size:15px;color:var(--shelf-ink);cursor:pointer}
.shelf-reorder button:disabled{opacity:.35;cursor:default}
body .shelf-copy-link{min-height:36px;border:0;padding:5px 0;font-size:11px;background:none;color:var(--shelf-ink);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
body .shop-actions{position:sticky;bottom:-30px;padding:18px 0 5px;background:#fff;border-top:1px solid var(--shelf-ink)}
body .shop-button{border-radius:6px;font-size:13px}
body .shop-button.shop-primary{background:var(--shelf-accent);border-color:var(--shelf-accent);color:var(--shelf-ink)}
body .shop-text-button{color:var(--shelf-muted)}
.shelf-empty-illustration{display:flex;justify-content:center;gap:10px;max-width:280px;margin:35px auto 0;padding:0 18px 8px;border-bottom:3px solid var(--shelf-ink)}
.shelf-empty-illustration span{display:grid;place-items:center;width:62px;aspect-ratio:1;border:1px dashed #b5b5ae;background:var(--shelf-stage);border-radius:5px;color:var(--shelf-muted);font-size:20px}
.shelf-empty-illustration span:first-child{border-style:solid;border-color:var(--shelf-accent);background:var(--shelf-accent-soft);color:var(--shelf-accent-ink)}
body .shop-empty{max-width:420px;margin:0 auto;padding:25px 0 15px;color:var(--shelf-muted);font-size:15px}
.shelf-error{max-width:1000px;margin:0 auto;padding:100px var(--shelf-gutter)}
.shelf-error>p:first-child{color:var(--shelf-muted);font-size:13px}
.shelf-error h1{max-width:800px;font-size:clamp(44px,7vw,90px);font-weight:550;letter-spacing:-.06em;line-height:1.03;margin:25px 0}
.shelf-error>p{max-width:480px;line-height:1.7}
.shelf-error a{display:inline-flex;padding:14px 20px;border-radius:7px;background:var(--shelf-ink);color:#fff;text-decoration:none;margin-top:22px}
@media(min-width:1700px){body.stockroom-home #image-grid{--catalog-columns:5}}
@media(max-width:1100px){body.stockroom-home .hero-message{gap:35px;grid-template-columns:1.25fr 1fr}body.stockroom-home .platform-hero h1{font-size:66px}body.stockroom-home #image-grid{--catalog-columns:4;gap:26px 18px}body.stockroom-home .hero-description{font-size:16px}body.stockroom-home .builder-section{gap:40px}}
@media(max-width:900px){.working-shelf{gap:14px}.working-shelf-thumb{width:48px;min-width:48px}.working-shelf-images .working-shelf-thumb:nth-child(n+4){display:none}body.stockroom-home .hero-message{grid-template-columns:1fr 1fr;gap:28px}body.stockroom-home .platform-hero h1{font-size:60px}body.stockroom-home #image-grid{--catalog-columns:3}body :is(.header-nav,.top-right){gap:17px}}
@media(max-width:700px){
 body.stockroom-home .topbar{min-height:68px;padding-block:10px}body :is(.topbar,.site-header .header-inner,.billing-header-inner,.agent-header .header-inner,.aff-header-inner,.collection-header-inner){min-height:68px}
 body.stockroom-home .platform-hero{padding:29px 0 21px}body.stockroom-home .hero-message{display:block}body.stockroom-home .platform-hero h1{font-size:clamp(45px,10.9vw,68px);line-height:1.02;letter-spacing:-.06em;margin:0;max-width:600px;text-align:left}
 body.stockroom-home .home-hero-intro{max-width:100%;margin:18px 0 0;gap:9px;align-items:flex-start}body.stockroom-home .hero-description{max-width:460px;text-align:left;font-size:14px;line-height:1.55}body.stockroom-home .home-hero-start{width:auto;max-width:none}body.stockroom-home .hero-actions .platform-button{min-height:44px;font-size:13px;flex:none;gap:16px}body.stockroom-home .hero-actions .platform-button-primary{display:none}
 body.stockroom-home .explorer-canvas .grid-controls{padding:8px 0;margin-bottom:18px}body.stockroom-home .collection{padding-top:0}body.stockroom-home #image-grid{--catalog-columns:2;gap:26px 14px}body.stockroom-home .collection .asset h3{font-size:13px}body.stockroom-home .collection .category{font-size:11px}body.stockroom-home .collection .caption{padding-top:10px}body.stockroom-home #layers-toggle{min-height:48px;padding-inline:12px}body.stockroom-home .collection .catalog-search-panel .field input{height:48px;min-height:48px;font-size:16px}body.stockroom-home .collection .catalog-search-panel .search-icon{top:15px}body.stockroom-home .collection .catalog-search-panel .search-shortcut{top:13px}
 body.stockroom-home .builder-section{grid-template-columns:1fr;gap:25px;padding:40px 0;margin-top:20px}body.stockroom-home .builder-intro h2{font-size:44px}body.stockroom-home .builder-intro>p:last-of-type{font-size:14px}body.stockroom-home .builder-connections{padding:20px}
 .working-shelf{bottom:10px;width:calc(100% - 24px);min-height:74px;padding:10px 12px;gap:10px;border-radius:10px}.working-shelf-label{min-width:78px}.working-shelf-label strong{font-size:13px}.working-shelf-label span{font-size:10px}.working-shelf-images{gap:4px}.working-shelf-thumb{width:42px;min-width:42px}.working-shelf-images .working-shelf-thumb:nth-child(n+3){display:none}.working-shelf-overflow{display:none}.working-shelf-actions{gap:6px}.working-shelf button{padding:9px 11px;font-size:11px}.working-shelf .shelf-copy{display:none}body.has-working-shelf{padding-bottom:95px}body.has-working-shelf .shop-toast{bottom:96px}
 body .shop-dialog{width:calc(100vw - 20px);max-height:92dvh;padding:20px;border-radius:10px}body .shop-dialog-head h2{font-size:32px}body .shop-intro{font-size:12px}body .shop-actions{bottom:-20px;gap:8px;padding-bottom:4px}body .shop-button{font-size:12px;padding:10px 12px}body .shortlist-grid{gap:22px 12px}body .shortlist-card h3{font-size:12px}body .shelf-reorder button{min-width:32px}body .shelf-copy-link{font-size:10px}
 body .shelf-nav-button{padding:9px 11px;font-size:12px}body .shelf-nav-button [data-saved-count]{width:19px;height:19px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.working-shelf{animation:none!important;transition:none!important}}

/* Shared wayfinding, and a shelf dock that takes its own place in the header. */
body .shelf-header.shelf-header{position:sticky;top:0;z-index:40;width:100%;max-width:none;margin:0;padding:0;background:#fff;border:0;border-bottom:1px solid var(--shelf-line);backdrop-filter:none}
body.stockroom-home .shelf-header.shelf-header{border-bottom:0}
body .shelf-header .shelf-header-inner{display:flex;align-items:center;gap:24px;min-height:76px;width:min(1440px,calc(100% - 2 * var(--shelf-gutter)));margin:0 auto;padding:0}
body .shelf-header .shelf-wordmark{display:inline-flex;align-items:center;gap:.34em;flex:none;font:600 25px/1.1 "Inter",Arial,sans-serif;letter-spacing:-.045em;color:var(--shelf-ink);text-decoration:none;white-space:nowrap}
.collection-header .collection-brand{gap:8px}
body .shelf-avatar{display:block;flex:none;width:clamp(26px,2.5vw,32px);height:auto;aspect-ratio:1;border-radius:50%}
body .shelf-header .shelf-global-navigation{display:flex;align-items:center;gap:25px;margin-left:auto}
body .shelf-header .shelf-global-navigation>a,body .shelf-mobile-navigation>a{display:inline-flex;align-items:center;min-height:44px;color:var(--shelf-ink);font:500 13px/1.4 "Inter",Arial,sans-serif;text-decoration:none;white-space:nowrap}
body .shelf-header .shelf-global-navigation>a[aria-current=page]{text-decoration:underline;text-underline-offset:6px;text-decoration-color:var(--shelf-accent);text-decoration-thickness:2px}
body .shelf-header .shelf-global-navigation>a:hover{color:var(--shelf-accent-ink)}
body .shelf-header .shelf-nav-button{flex-direction:row;min-height:44px;border-radius:7px;background:var(--shelf-ink);color:#fff;padding:10px 14px;gap:9px;font-size:12px}
body .shelf-header .shelf-nav-button [data-saved-count]{order:0;background:var(--shelf-accent);color:var(--shelf-ink)}
@media(min-width:701px){body.stockroom-home.has-working-shelf .platform-hero{padding-top:25px;padding-bottom:21px}body.stockroom-home.has-working-shelf .platform-hero h1{font-size:clamp(56px,5.5vw,76px)}}
body .shelf-header .shelf-menu-toggle{display:none;place-items:center;width:44px;height:44px;border:1px solid var(--shelf-line);border-radius:7px;padding:0;background:#fff;color:var(--shelf-ink);cursor:pointer}
body .shelf-mobile-navigation[hidden]{display:none!important}
body .shelf-mobile-navigation{display:none}
body .shelf-context-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;padding:8px var(--shelf-gutter);border-top:1px solid var(--shelf-line);font-size:12px;color:var(--shelf-muted);background:var(--shelf-stage)}
body .shelf-context-bar>a{color:var(--shelf-ink)}
body .working-shelf{position:static;left:auto;bottom:auto;transform:none;display:flex;width:100%;max-width:none;min-height:62px;padding:8px max(var(--shelf-gutter),calc((100% - 1440px)/2));border:0;border-top:1px solid #ffffff20;border-radius:0;box-shadow:none;gap:22px}
body .working-shelf[hidden]{display:none}
body.has-working-shelf{padding-bottom:0}
body.has-working-shelf .shop-toast{bottom:24px}
body .working-shelf-label{min-width:112px;gap:3px}
body .working-shelf-label strong{font-size:13px}
body .working-shelf-label span{font-size:11px}
body .working-shelf-images{gap:6px}
body .working-shelf-thumb{width:42px;min-width:42px;border-radius:var(--shelf-image-radius)}
body .working-shelf-actions{margin-left:auto}
body .working-shelf button{min-height:40px;font-size:12px}
body .working-shelf .shelf-minimize{padding:4px 8px;min-width:32px;min-height:40px;border:0;font-size:20px;color:#c7c7c2}
body.stockroom-home .collection .explorer-canvas .asset .image-link{border-radius:var(--shelf-image-radius)}
body.image-page .image-tools .image-purchase-button.purchase-unavailable{background:#fff;color:var(--shelf-ink);border-color:#d8d8d4}
body.image-page .image-tools .available-image-action{background:var(--shelf-accent);border-color:var(--shelf-accent);color:var(--shelf-ink)}
body.image-page .image-tools .available-image-action:hover{background:var(--shelf-accent-hover);color:var(--shelf-ink)}
.shelf-workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:30px;align-items:start}
.shelf-workspace .shortlist-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px}
.shelf-workspace .shortlist-grid:has(>.shortlist-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.shelf-workspace .shortlist-grid:has(>.shortlist-card:only-child){grid-template-columns:minmax(0,300px)}
.shelf-handoff{padding:22px;background:var(--shelf-stage);border-top:3px solid var(--shelf-accent);border-radius:0 0 7px 7px;position:sticky;top:0}
.shelf-handoff-label{margin:0 0 16px;color:var(--shelf-muted);font-size:11px}
.shelf-handoff h3{font-size:26px;line-height:1.15;letter-spacing:-.04em;font-weight:550;margin:0 0 12px}
.shelf-handoff-intro{margin:0;font-size:12px;line-height:1.6;color:var(--shelf-muted)}
.shelf-brief-contents{margin:20px 0;border-top:1px solid var(--shelf-line)}
.shelf-brief-contents>div{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid var(--shelf-line)}
.shelf-brief-contents dt{color:var(--shelf-muted);font-size:10px}.shelf-brief-contents dd{margin:0;color:var(--shelf-ink);font-size:12px;font-weight:500}
.shelf-handoff>.shop-button{width:100%}
.shelf-brief-preview{margin-top:15px;font-size:12px;line-height:1.6}
.shelf-brief-preview summary{min-height:36px;cursor:pointer;list-style-position:inside}
.shelf-brief-preview .shop-copy{min-height:230px;max-height:320px;resize:vertical;margin-top:8px;max-width:100%;background:#fff;box-sizing:border-box;font-size:10px;line-height:1.6;white-space:pre;overflow:auto}
.shelf-handoff-note{margin:12px 0 0;font-size:10px;line-height:1.6;color:var(--shelf-muted)}
.shelf-mobile-copy{display:none}
body .shop-dialog{width:min(1160px,calc(100vw - 40px))}
body .shop-intro{max-width:85ch}
body .shop-actions{position:static;padding-bottom:0;margin-top:24px}
body .shelf-reorder button{min-height:40px;min-width:36px}
body .shelf-copy-link{min-height:40px}
@media(max-width:1100px){body .shelf-header .shelf-global-navigation{gap:19px}.shelf-workspace{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.shelf-workspace .shortlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-handoff{padding:19px}}
@media(max-width:1000px){body .shelf-header .shelf-global-navigation>a{display:none}body .shelf-header .shelf-global-navigation{margin-left:auto}body .shelf-header .shelf-menu-toggle{display:grid}body .shelf-header .shelf-header-inner{gap:12px}body .shelf-mobile-navigation{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;padding:10px var(--shelf-gutter) 16px;border-top:1px solid var(--shelf-line)}body .shelf-mobile-navigation>a{min-height:44px;font-size:14px}}
@media(max-width:700px){
 body .shelf-header .shelf-header-inner{min-height:66px;gap:10px}body .shelf-header .shelf-wordmark{font-size:23px}body .shelf-header .shelf-nav-button{padding:9px 10px;font-size:11px;gap:7px}body .shelf-header .shelf-nav-button [data-saved-count]{width:20px;height:20px;font-size:10px}
 body.stockroom-home .platform-hero{padding:20px 0 14px}body.stockroom-home .platform-hero h1{font-size:48px}body.stockroom-home .home-hero-intro{margin-top:12px;gap:12px}body.stockroom-home .hero-description{font-size:14px;max-width:320px}
 body .working-shelf{min-height:58px;padding:7px var(--shelf-gutter);gap:12px}body .working-shelf-label{min-width:93px}body .working-shelf-label strong{font-size:12px}body .working-shelf-label span{font-size:10px}body .working-shelf-thumb{width:34px;min-width:34px}body .working-shelf-images{gap:4px}body .working-shelf-images .working-shelf-thumb:nth-child(n+3){display:none}body .working-shelf-actions{gap:1px}body .working-shelf button{font-size:11px;min-height:40px;padding:8px 10px}body .working-shelf .shelf-minimize{min-width:28px;padding:4px 5px}body .working-shelf .shelf-copy{display:none}
 .shelf-workspace{display:flex;flex-direction:column;gap:22px}.shelf-workspace .shortlist-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.shelf-handoff{position:static;width:100%;box-sizing:border-box;padding:20px}.shelf-handoff h3{font-size:26px}.shelf-handoff-intro{font-size:13px}.shelf-handoff-label{font-size:12px}.shelf-brief-contents{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.shelf-brief-contents dt{font-size:11px}.shelf-brief-contents dd{font-size:12px}.shelf-handoff-note{font-size:11px}.shelf-brief-preview{font-size:13px}
 body .shop-dialog{width:calc(100vw - 20px);padding:20px}body .shop-dialog .shop-actions{margin-top:20px;gap:8px}body .shortlist-brand{font-size:12px}body .shortlist-card h3{font-size:13px}.shelf-image-meta{font-size:11px}body .shelf-copy-link{font-size:11px}body .shelf-reorder button{min-width:36px;min-height:44px}body .shelf-item-actions{flex-wrap:wrap;gap:4px}body .shelf-copy-link{min-height:32px}
 body .shop-dialog-head{position:sticky;top:-20px;z-index:5;background:#fff;gap:10px;margin-top:-20px;padding-top:20px}body .shop-dialog-head h2{font-size:28px;margin-right:auto}body .shop-dialog-head .shop-close{flex:none;width:38px;height:38px}body .shelf-mobile-copy{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 10px;border:1px solid var(--shelf-accent);border-radius:6px;background:var(--shelf-accent);color:var(--shelf-ink);font-size:11px;font-weight:550;white-space:nowrap}
}
@media(max-width:380px){body .shelf-header .shelf-wordmark{font-size:21px}body .shelf-header .shelf-header-inner{gap:8px}body .shelf-header .shelf-nav-button{padding:8px;font-size:10px}body .shelf-header .shelf-menu-toggle{width:36px;min-width:36px}body .working-shelf-label{min-width:85px}body .working-shelf-thumb{width:30px;min-width:30px}body .working-shelf-images .working-shelf-thumb:nth-child(n+2){display:none}body.stockroom-home .platform-hero h1{font-size:44px}}

/* Final task review: legible image facts and a visible secondary workflow. */
body .shelf-image-meta{font-size:12px;line-height:1.55;color:#5c5c57}
body .shelf-handoff-note,body .shelf-compare-help{font-size:12px;line-height:1.55;color:#5c5c57}
body .shelf-compare-help{margin:22px 0 10px;padding-top:16px;border-top:1px solid var(--shelf-line)}
body .shelf-handoff #shop-compare{background:#fff;color:var(--shelf-ink)}
body .working-shelf-label span{font-size:12px;color:#d1d1cc}
body .working-shelf-overflow{align-items:center;justify-content:center;min-width:20px;font-size:12px;color:#fff}
body .shelf-overflow-desktop{display:inline-flex}
body .shelf-overflow-mobile,body .shelf-overflow-compact{display:none}
@media(max-width:700px){body .shelf-overflow-desktop{display:none}body .shelf-overflow-mobile{display:inline-flex}body .working-shelf-label span{font-size:11px}body .shelf-copy-link{font-size:12px;min-height:40px}}
@media(max-width:380px){body .shelf-overflow-mobile{display:none}body .shelf-overflow-compact{display:inline-flex}}

/* Image frames share one radius at every breakpoint; native imagery is unchanged. */
body :is(.preview-stage,.expanded-composition,.collection-product-image,.related-product-image,.dialog-image,.shortlist-image,.working-shelf-thumb,.comparison-image,.stockroom-card-image,.aff-picker-image,.aff-link-image,.object-stage,.hero-object,.layout-product,.object-story-art,.transparency-preview){border-radius:var(--shelf-image-radius);overflow:hidden}
body :is(.image-link,.preview-stage,.expanded-composition,.collection-product-image,.related-product-image,.dialog-image,.shortlist-image,.working-shelf-thumb,.comparison-image,.stockroom-card-image,.aff-picker-image,.aff-link-image,.hero-object,.layout-product,.object-story-art,.transparency-preview) img,
body :is(.compare-table img,.aff-example-card img,.aff-picked-chip img,.aff-activity-product>img,.selected-photo img,.sticky-purchase img){border-radius:var(--shelf-image-radius)}
body.image-page .preview-stage,body.image-page .collection-product-image,.shelf-support :is(.comparison-image,.stockroom-card-image,.aff-example-card img){border-radius:var(--shelf-image-radius)}

/* The opening uses the same neutral stage as the catalog photography. */
.shelf-opening {
  --opening-gutter: clamp(16px, 3vw, 48px);
  margin: 16px 0 clamp(30px, 3vw, 48px);
  padding: clamp(32px, 2.9vw, 48px) var(--opening-gutter) 8px;
  border-radius: 24px;
  background: var(--shelf-stage);
  text-align: center;
}
.opening-copy {position: relative; z-index: 1}
.opening-copy h1 {
  margin: 0;
  color: var(--shelf-ink);
  font: 560 clamp(50px, 5.3vw, 80px)/.99 Inter, Arial, sans-serif;
  letter-spacing: -.068em;
}
.opening-copy p {
  margin: 12px auto 16px;
  color: #52525b;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.45;
  text-wrap: balance;
}
.opening-copy strong {color: var(--shelf-ink); font-weight: 600; font-variant-numeric: tabular-nums}
.opening-action {display: inline-flex; align-items: center; justify-content:center; gap: 12px; min-height: 44px; padding: 0 20px; border-radius: 24px; background: var(--shelf-accent); color: var(--shelf-ink); font-size: 14px; font-weight: 550; text-decoration: none}
.opening-action:hover {background: var(--shelf-accent-hover); color: var(--shelf-ink)}
.opening-reel {
  position: relative;
  margin: 6px calc(-1 * var(--opening-gutter)) 0;
  padding-bottom: 10px;
}
.opening-products {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  overflow-anchor: none;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.opening-products::-webkit-scrollbar {display: none}
.opening-sequence {display: flex; flex: none; align-items: center}
.opening-product {
  display: block; flex: none; width: clamp(146px, 17.2vw, 258px);
  padding: 0 clamp(3px, .45vw, 8px); box-sizing: border-box; border-radius: 16px;
}
.opening-product img {display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 16px}
.opening-product:focus-visible {outline-offset: -3px}
.reel-toggle {
  position: absolute; z-index:1; right: 8px; bottom: -6px; display: grid;
  place-items: center; width: 44px; height: 44px; border: 0; padding: 0;
  border-radius: 50%; background: transparent; color: var(--shelf-ink); cursor: pointer;
}
.reel-toggle svg {box-sizing:content-box; padding:8px; width:13px; height:13px; border-radius:50%; background:#fff; fill:currentColor}
.reel-toggle:hover svg {background:#e4e4e7}
.reel-toggle[hidden], .reel-play, .reel-toggle[data-paused] .reel-pause {display: none}
.reel-toggle[data-paused] .reel-play {display: block}
#search {scroll-margin-top: 12px}
@media (max-width: 700px) {
  .shelf-opening {--opening-gutter:12px; margin:6px 0 28px; padding:30px var(--opening-gutter) 9px; border-radius:16px}
  .opening-copy h1 {font-size:clamp(35px,9.6vw,58px)}
  .opening-copy p {max-width:30ch; margin:10px auto 14px}
  .opening-reel {margin-top:7px; padding-bottom:10px}
  .opening-product {width:clamp(122px,38vw,186px)}
  .reel-toggle {right:2px; bottom:-7px}
}
body.stockroom-home .library-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
body.stockroom-home .collection .library-heading h2 {margin:0;font:550 clamp(29px,3vw,44px)/1.06 Inter,Arial,sans-serif;letter-spacing:-.055em}
.library-heading a {display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#515155;font-size:13px;font-weight:500;text-decoration:none}
.library-heading a:hover {text-decoration:underline;text-underline-offset:3px}
@media (max-width:1000px) {
  body.stockroom-home .catalog-tool-row {gap:4px}
  body.stockroom-home .catalog-search-control {max-width:none}
  body.stockroom-home .catalog-tool-row .grid-control-actions {padding-left:8px}
}
@media (max-width:360px) {
  body.stockroom-home .catalog-discovery #layers-toggle {width:44px; min-width:44px; padding:0; justify-content:center}
  .catalog-discovery .filter-control-label {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
}
@media (max-width:700px) {
  body.stockroom-home .collection .catalog-search-panel .field:not(.has-query) input {padding-right:10px}
  html:has(body.stockroom-home) {scroll-padding-top:var(--catalog-header-height,66px)}
  body.stockroom-home .catalog-tool-row {padding:6px}
  body.stockroom-home .collection .catalog-search-panel .field input {font-size:16px}
  body.stockroom-home .catalog-tool-row .grid-control-actions {
    display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;
  }
  body.stockroom-home .grid-view-switch button {padding-inline:9px}
  body.stockroom-home .grid-controls #grid-range {white-space:normal;line-height:1.25}
  body.stockroom-home .collection .asset h3 {font-size:14px}
  body.stockroom-home .collection .category {font-size:12px}
  body.stockroom-home .library-heading a {font-size:12px}
}

/* One motion and edge treatment for every Shelfhelp window. The shared
   controller keeps native dialogs open until their exit transition finishes. */
html { scrollbar-gutter: stable; }
html.has-open-drawer,
html.has-open-drawer body { overflow: hidden; overscroll-behavior: none; }

body dialog.shelf-drawer,
body.image-page dialog.shelf-drawer,
body #developer-dialog.shelf-drawer,
body #layer-sidebar.shelf-drawer {
  --drawer-width: 600px;
  --drawer-padding: 28px;
  --drawer-open-duration: 380ms;
  --drawer-close-duration: 260ms;
  --drawer-ease: cubic-bezier(.22, 1, .36, 1);
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(var(--drawer-width), calc(100vw - 48px));
  min-width: 0;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  margin: 0;
  padding: var(--drawer-padding);
  border: 0;
  border-left: 1px solid #e4e4e7;
  border-radius: 20px 0 0 20px;
  background: #fff;
  color: var(--shelf-ink, #18181b);
  box-shadow: -16px 0 64px #18181b1a;
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 100px;
  scrollbar-width: thin;
  opacity: 1;
  transform: translate3d(100%, 0, 0);
  transition: transform var(--drawer-open-duration) var(--drawer-ease);
}

body dialog.shelf-drawer:not([open]) { display: none; }
body dialog.shelf-drawer[open] { display: block; }
body dialog.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"]),
body #developer-dialog.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"]),
body #layer-sidebar.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"]) {
  transform: translate3d(0, 0, 0);
}
body dialog.shelf-drawer[data-drawer-state="closing"],
body #developer-dialog.shelf-drawer[data-drawer-state="closing"],
body #layer-sidebar.shelf-drawer[data-drawer-state="closing"] {
  transition-duration: var(--drawer-close-duration);
  transition-timing-function: cubic-bezier(.4, 0, .6, 1);
}
body dialog.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="closing"]) {
  will-change: transform;
}

body dialog.shelf-drawer::backdrop,
body #developer-dialog.shelf-drawer::backdrop {
  background: #18181b;
  opacity: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity var(--drawer-open-duration, 380ms) ease;
}
body dialog.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"])::backdrop,
body #developer-dialog.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"])::backdrop {
  opacity: .24;
}
body dialog.shelf-drawer[data-drawer-state="closing"]::backdrop,
body #developer-dialog.shelf-drawer[data-drawer-state="closing"]::backdrop {
  opacity: 0;
  transition-duration: var(--drawer-close-duration, 260ms);
}

body dialog.shelf-drawer.shop-dialog { --drawer-width: 1160px; }
body dialog.shelf-drawer.preview-dialog { --drawer-width: 960px; }
body dialog.shelf-drawer:is(.copy-dialog, .aff-copy-dialog, .selection-download-dialog) { --drawer-width: 560px; }
body #layer-sidebar.shelf-drawer,
body dialog.shelf-drawer.shelf-navigation-drawer { --drawer-width: 500px; }

/* Headers remain in reach while a long shelf or tool panel scrolls. */
body dialog.shelf-drawer > :is(.shop-dialog-head, .developer-dialog-header, .expanded-top, .dialog-top, .selection-download-heading, .shelf-drawer-heading),
body dialog.shelf-drawer.aff-copy-dialog > div:first-child,
body #developer-dialog.shelf-drawer > .developer-dialog-header {
  position: sticky;
  top: calc(-1 * var(--drawer-padding));
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: calc(-1 * var(--drawer-padding)) calc(-1 * var(--drawer-padding)) 24px;
  padding: 24px var(--drawer-padding) 20px;
  border: 0;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
}
body dialog.shelf-drawer > :is(.shop-dialog-head, .dialog-top, .selection-download-heading, .shelf-drawer-heading) h2,
body dialog.shelf-drawer.aff-copy-dialog h2,
body #developer-dialog.shelf-drawer h2 {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.15;
}
body dialog.shelf-drawer .expanded-top h2 { font-size: 20px; line-height: 1.35; }
body dialog.shelf-drawer :is(.dialog-close, .shop-close, .round-button, .selection-download-close, .shelf-drawer-close, #close-copy),
body #developer-dialog.shelf-drawer .dialog-close {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f4f5;
  color: #52525b;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease;
}
body dialog.shelf-drawer :is(.dialog-close, .shop-close, .round-button, .selection-download-close, .shelf-drawer-close, #close-copy):hover,
body #developer-dialog.shelf-drawer .dialog-close:hover { background: #e4e4e7; }
body dialog.shelf-drawer :is(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--shelf-accent-ink);
  outline-offset: 3px;
}
body #developer-dialog.shelf-drawer .developer-panel { padding: 0; }
body dialog.shelf-drawer .shop-intro { margin-top: 0; }
body dialog.shelf-drawer .shop-actions { position: static; bottom: auto; }

/* Fit the complete authored image into the available space. Detail zoom
   continues to scroll inside its image frame; source pixels are unchanged. */
body dialog.shelf-drawer.preview-dialog[open] { display: flex; flex-direction: column; }
body dialog.shelf-drawer.preview-dialog :is(.expanded-composition, .dialog-image) {
  flex: 0 0 auto;
  align-self: center;
  width: min(100%, calc(100dvh - 192px));
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}
body dialog.shelf-drawer.preview-dialog .dialog-image img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
body dialog.shelf-drawer .expanded-bottom { padding: 18px 0 0; min-height: 58px; }
body dialog.shelf-drawer :is(.dialog-image, .expanded-composition) img { border-radius: 16px; }

body #layer-sidebar.shelf-drawer[open] { display: flex; flex-direction: column; }
body #layer-sidebar.shelf-drawer .layers-hint { padding: 0 0 20px; font-size: 13px; }
body #layer-sidebar.shelf-drawer .layer-tree { flex: 1 1 auto; min-height: 0; max-height: none; padding: 12px 0; }
body #layer-sidebar.shelf-drawer .layer-row { min-height: 44px; font-size: 13px; }
body #layer-sidebar.shelf-drawer .layer-count { font-size: 11px; }
body #layer-sidebar.shelf-drawer .explore-surprise { flex: 0 0 auto; border-radius: 12px; margin-top: 16px; font-size: 13px; }
body dialog.shelf-navigation-drawer .shelf-mobile-navigation {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
body dialog.shelf-navigation-drawer .shelf-mobile-navigation > a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 0;
  border-bottom: 1px solid #e4e4e7;
  color: var(--shelf-ink, #18181b);
  font: 500 20px/1.4 Inter, Arial, sans-serif;
  letter-spacing: -.025em;
  text-decoration: none;
}
body dialog.shelf-navigation-drawer .shelf-mobile-navigation > a:last-child { border-bottom: 0; }

@media (max-width: 700px) {
  body dialog.shelf-drawer,
  body.image-page dialog.shelf-drawer,
  body #developer-dialog.shelf-drawer,
  body #layer-sidebar.shelf-drawer {
    --drawer-padding: 20px;
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px)));
    padding: 24px var(--drawer-padding) max(24px, env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid #e4e4e7;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 48px #18181b1a;
    transform: translate3d(0, 100%, 0);
  }
  body dialog.shelf-drawer:is(.shop-dialog, .preview-dialog),
  body #layer-sidebar.shelf-drawer { height: 92dvh; }
  body dialog.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"]),
  body #developer-dialog.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"]),
  body #layer-sidebar.shelf-drawer:is([data-drawer-state="opening"], [data-drawer-state="open"]) { transform: translate3d(0, 0, 0); }
  body dialog.shelf-drawer > :is(.shop-dialog-head, .developer-dialog-header, .expanded-top, .dialog-top, .selection-download-heading, .shelf-drawer-heading),
  body dialog.shelf-drawer.aff-copy-dialog > div:first-child,
  body #developer-dialog.shelf-drawer > .developer-dialog-header {
    top: -24px;
    gap: 12px;
    margin-top: -24px;
    margin-bottom: 20px;
    padding: 28px var(--drawer-padding) 16px;
  }
  body dialog.shelf-drawer > :is(.shop-dialog-head, .developer-dialog-header, .expanded-top, .dialog-top, .selection-download-heading, .shelf-drawer-heading)::before,
  body dialog.shelf-drawer.aff-copy-dialog > div:first-child::before {
    content: "";
    position: absolute;
    top: 10px;
    left: calc(50% - 18px);
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: #d4d4d8;
    pointer-events: none;
  }
  body dialog.shelf-drawer > :is(.shop-dialog-head, .dialog-top, .selection-download-heading, .shelf-drawer-heading) h2,
  body dialog.shelf-drawer.aff-copy-dialog h2,
  body #developer-dialog.shelf-drawer h2 { font-size: 26px; }
  body dialog.shelf-drawer .expanded-top h2 { font-size: 17px; }
  body dialog.shelf-drawer.preview-dialog :is(.expanded-composition, .dialog-image) { width: min(100%, calc(92dvh - 208px)); }
  body dialog.shelf-drawer .expanded-bottom { padding-top: 16px; }
  body dialog.shelf-drawer:is(.copy-dialog, .aff-copy-dialog) textarea { max-height: 50dvh; }
  body dialog.shelf-navigation-drawer .shelf-mobile-navigation > a { min-height: 58px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body dialog.shelf-drawer,
  body.image-page dialog.shelf-drawer,
  body #developer-dialog.shelf-drawer,
  body #layer-sidebar.shelf-drawer {
    --drawer-open-duration: 0ms;
    --drawer-close-duration: 0ms;
    transition: none;
    scroll-behavior: auto;
  }
  body dialog.shelf-drawer::backdrop,
  body #developer-dialog.shelf-drawer::backdrop { transition: none; }
}
