/* LookMyLookLink home only. Keep the published runtime and billing intact. */
[data-preview-cache="route:home"] {
  --home-gap: 6px;
}
[data-preview-cache="route:home"] header {
  padding-top: 6px;
  background: #000;
}
[data-preview-cache="route:home"] header button[aria-pressed] {
  min-height: 38px;
  justify-content: flex-end;
}
[data-preview-cache="route:home"] header button[aria-pressed] > span:first-child {
  font-size: 12px;
  line-height: 18px;
  padding-inline: 10px;
}
[data-preview-cache="route:home"] header button[aria-pressed="false"] > span:first-child {
  color: #b5b5bd;
}
[data-preview-cache="route:home"] header button[aria-pressed="true"] > span:first-child {
  color: #ffad25;
}
[data-preview-cache="route:home"] header button[aria-label="Balance"] > div {
  margin: 4px 8px;
  padding: 5px 6px;
  gap: 5px;
  font-size: 13px;
  background: none !important;
}
[data-preview-cache="route:home"] header button[aria-label="Balance"] img {
  width: 15px;
  height: 15px;
}
[data-preview-cache="route:home"] div:has(> [data-category-cache]) {
  padding: 10px 10px 16px;
}
[data-preview-cache="route:home"] [data-category-cache] > .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-gap);
}
[data-preview-cache="route:home"] [data-category-cache] > .grid > button {
  aspect-ratio: 205 / 297;
  min-width: 0;
  border-radius: 10px;
  isolation: isolate;
}
/* Scale the before thumbnail with its card instead of keeping a 64px inset. */
[data-preview-cache="route:home"] [data-category-cache] > .grid > button > div.border {
  top: 5px;
  left: 5px;
  width: 26%;
  height: auto;
  aspect-ratio: 64 / 90;
  border-radius: 6px;
}
[data-preview-cache="route:home"] [data-category-cache] > .grid > button > div.border img {
  border-radius: 5px;
}
/* Compact single-row caption: media icon, then preset name. */
[data-preview-cache="route:home"] [data-category-cache] > .grid > button > div:last-child {
  inset: auto 0 0; display: block; padding: 22px 7px 8px; border-radius: 0;
  background: linear-gradient(transparent,rgba(0,0,0,.88));
}
[data-preview-cache="route:home"] [data-category-cache] > .grid > button > div:last-child > div {
  display: flex; align-items: center; min-width: 0; width: 100%; gap: 4px;
}
[data-preview-cache="route:home"] [data-category-cache] > .grid > button > div:last-child > div > img {
  width: 14px; height: 14px; flex: 0 0 14px;
}
[data-preview-cache="route:home"] [data-category-cache] > .grid > button > div:last-child > div > span {
  min-width: 0; font-size: 11px; line-height: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000;
}
[data-preview-cache="route:home"] [aria-label="Loading catalog"] > div:last-child {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
/* Use the viewport provided by the host browser; never reserve a guessed X panel. */
body:has([data-preview-cache="route:home"]:not([aria-hidden="true"])) nav[aria-label="Main navigation"] {
  padding: 6px 20px max(8px, env(safe-area-inset-bottom)) !important;
  background: #000 !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-preview-cache="route:home"] [data-category-cache] > .grid > button {
    transition: none;
  }
}

/* Hide the balance entry point only on the home route; let categories fill the row. */
[data-preview-cache="route:home"] button[aria-label="Balance"] { display:none !important; }
