/* Copyright (c) A|iens. All rights reserved. */
/*
Name: Apps storefront surfaces
Version: 2.0.2
Author: A'nil Cyborg
Requires: Apps tokens and existing AliensBrand shell
Description: Store content inside the unchanged Aliens app frame.
Responsibilities: Discovery, cards, detail, gallery, library and publisher layouts.
Integration Notes: Screen-only scope; rail, command bar, menu and dock remain shell-owned.
*/
.store-root {
  --store-gap: 12px;
  color: var(--app-text);
  min-width: 0;
  padding-bottom: 12px;
}
.store-root *, .store-dialog * { box-sizing: border-box; }
.store-root h1, .store-root h2, .store-root h3, .store-root p,
.store-dialog h2, .store-dialog p { margin-top: 0; }
.store-root a, .store-root button, .store-dialog button, .store-dialog a { -webkit-tap-highlight-color: transparent; }
.store-icon { width: 20px; height: 20px; flex: 0 0 20px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; filter: none; }
.store-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 4px 0 18px; min-width: 0; }
.store-page-head > div:first-child { min-width: 0; }
.store-eyebrow { display: block; margin: 0 0 9px; font-size: 10px; font-weight: 750; letter-spacing: .65px; color: var(--app-muted); }
.store-page-head h1 { margin: 0; font-size: 29px; font-weight: 730; line-height: 1.2; letter-spacing: -.4px; overflow-wrap: anywhere; }
.store-description { margin: 8px 0 0; color: var(--app-muted); font-size: 13px; max-width: 760px; }
.store-page-actions, .store-inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-button { appearance: none; display: inline-flex; justify-content: center; align-items: center; min-height: 38px; gap: 8px; padding: 8px 13px; border: 1px solid var(--app-border); border-radius: 10px; background: var(--app-panel); box-shadow: var(--app-shadow); color: var(--app-text); font-size: 12px; line-height: 1.25; font-weight: 650; cursor: pointer; text-align: center; text-decoration: none; transition: border-color .16s, background .16s, transform .16s; white-space: normal; }
.store-button:hover { border-color: color-mix(in srgb, var(--app-accent) 45%, transparent); background: color-mix(in srgb, var(--app-panel) 88%, var(--app-accent-soft)); }
.store-button:active { transform: translateY(1px); }
.store-button .store-icon { width: 16px; height: 16px; flex-basis: 16px; }
.store-primary { color: var(--app-primary-text); background: var(--app-primary-bg); border-color: var(--app-primary-bg); box-shadow: none; }
.store-primary:hover { color: var(--app-primary-text); background: var(--app-primary-hover); border-color: var(--app-primary-hover); filter: none; }
.store-small { min-height: 33px; padding: 7px 12px; font-size: 11px; }
.store-text-button { border: 0; background: transparent; box-shadow: none; color: var(--app-accent-strong); padding: 6px 0; min-height: 32px; }
.store-text-button:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.store-button:disabled, .store-button.is-disabled { opacity: .48; cursor: default; pointer-events: none; }
.store-icon-button { appearance: none; display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--app-border); border-radius: 10px; background: var(--app-panel); color: var(--app-muted); cursor: pointer; }
.store-icon-button .store-icon { width: 17px; height: 17px; }
.store-icon-button:hover { color: var(--app-accent-strong); background: var(--app-accent-soft); border-color: color-mix(in srgb, var(--app-accent) 38%, transparent); }
.store-icon-button.is-saved { color: var(--app-accent-strong); background: var(--app-accent-soft); }
.store-icon-button.is-saved .store-icon { fill: var(--app-accent-soft); }
.store-icon-button:disabled { opacity: .35; cursor: default; }
.store-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 12px; }
.store-feature { border: 1px solid var(--app-border); border-radius: 20px; overflow: hidden; position: relative; min-width: 0; box-shadow: var(--app-shadow); background: var(--app-panel); }
.store-feature-main { min-height: 326px; display: grid; grid-template-columns: minmax(210px, 1fr) minmax(180px, .9fr); align-items: center; }
.store-feature-copy { position: relative; z-index: 1; padding: 28px 0 28px 28px; }
.store-feature-copy .store-eyebrow { color: var(--app-accent-strong); font-size: 10px; }
.store-feature-copy h2 { margin: 0 0 14px; font-size: 36px; font-weight: 740; line-height: 1.1; letter-spacing: -.7px; }
.store-feature-copy p { margin: 0 0 20px; font-size: 13px; color: var(--app-muted); max-width: 280px; line-height: 1.65; }
.store-feature-note { display: block; margin-top: 12px; color: var(--app-muted); font-size: 10px; }
.store-hero-art { position: relative; align-self: stretch; min-height: 300px; overflow: hidden; background: radial-gradient(ellipse at 80% 30%, color-mix(in srgb, var(--app-accent) 12%, transparent), transparent 70%); }
.store-hero-tile { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 95px; height: 102px; border: 1px solid var(--app-border); border-radius: 20px; background: var(--app-panel); box-shadow: var(--app-shadow); transition: transform .2s, border-color .2s; }
.store-hero-tile:hover { transform: translateY(-4px); border-color: var(--app-accent); }
.store-hero-tile span:not(.store-app-icon):not(.store-initial) { font-size: 10px; font-weight: 600; max-width: 85px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-hero-tile .store-app-icon { width: 57px; height: 57px; }
.store-hero-tile-1 { top: 28px; left: 34%; transform: rotate(8deg); }
.store-hero-tile-2 { top: 104px; left: 3%; transform: rotate(-9deg); }
.store-hero-tile-3 { top: 157px; left: 49%; transform: rotate(8deg); }
.store-hero-tile-4 { top: 236px; left: 7%; transform: rotate(6deg); }
.store-hero-tile-5 { top: -37px; left: 78%; transform: rotate(-10deg); }
.store-feature-pair { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.store-feature-small { padding: 20px; display: flex; justify-content: space-between; gap: 12px; min-height: 157px; }
.store-feature-small h3 { margin: 0 0 9px; font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.3px; }
.store-feature-small .store-eyebrow { font-size: 9px; margin-bottom: 8px; }
.store-feature-small > div:first-child { flex: 1; min-width: 0; }
.store-feature-small > div > span:last-child { display: flex; align-items: center; gap: 7px; color: var(--app-muted); font-size: 10px; }
.store-feature-small > div > span:last-child svg { width: 14px; height: 14px; flex-basis: 14px; }
.store-feature-work { background: color-mix(in srgb, var(--app-panel) 93%, #27b5b6); }
.store-feature-create { background: color-mix(in srgb, var(--app-panel) 94%, #8b6dff); }
.store-mini-icons { flex: 0 0 94px; position: relative; align-self: stretch; }
.store-mini-icons .store-app-icon { position: absolute; width: 49px; height: 49px; }
.store-mini-icons .store-app-icon:nth-child(1) { top: 3px; right: 3px; transform: rotate(8deg); }
.store-mini-icons .store-app-icon:nth-child(2) { bottom: 5px; left: 0; transform: rotate(-8deg); }
.store-mini-icons .store-app-icon:nth-child(3) { bottom: -19px; right: -31px; width: 40px; height: 40px; opacity: .6; }
.store-chart-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.store-chart-link { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1 1 130px; min-height: 42px; padding: 10px 15px; background: var(--app-panel); border: 1px solid var(--app-border); border-radius: 11px; font-size: 12px; font-weight: 650; }
.store-chart-link:hover { border-color: var(--app-accent); background: var(--app-accent-soft); }
.store-chart-link .store-icon { width: 14px; height: 14px; flex-basis: 14px; color: var(--app-muted); margin-left: auto; }
.store-section { min-width: 0; margin-top: 26px; }
.store-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; min-width: 0; }
.store-section-head > div:first-child { min-width: 0; }
.store-section-head h2 { margin: 0; font-size: 19px; font-weight: 710; letter-spacing: -.2px; }
.store-section-head p { margin: 5px 0 0; color: var(--app-muted); font-size: 11px; line-height: 1.55; }
.store-row-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.store-row-controls .store-text-button { margin-right: 5px; white-space: nowrap; }
.store-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 8px; }
.store-category-chip { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 10px 12px; border: 1px solid var(--app-border); border-radius: 11px; background: var(--app-panel); font-size: 11px; font-weight: 600; min-width: 0; }
.store-category-chip .store-icon { width: 18px; height: 18px; flex-basis: 18px; color: var(--app-muted); }
.store-category-chip > span { min-width: 0; }
.store-category-chip small { margin-left: auto; color: var(--app-muted); font-size: 10px; font-weight: 500; }
.store-category-chip:hover { color: var(--app-accent-strong); background: var(--app-accent-soft); border-color: color-mix(in srgb, var(--app-accent) 35%, transparent); }
.store-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 24px) / 3)); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 1px 1px 11px; min-width: 0; scrollbar-width: thin; }
.store-app-card { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 12px 7px; align-content: start; padding: 16px; border: 1px solid var(--app-border); border-radius: 15px; background: var(--app-panel); box-shadow: var(--app-shadow); scroll-snap-align: start; transition: border-color .16s, transform .16s; }
.store-app-card:hover { border-color: color-mix(in srgb, var(--app-accent) 40%, transparent); }
.store-app-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store-app-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 55px; height: 55px; min-width: 0; }
.store-app-icon img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: transparent; filter: none; }
.store-initial { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 15px; background: var(--app-panel-2); border: 1px solid var(--app-border); color: var(--app-muted); font-weight: 750; font-size: 17px; }
.store-app-copy { min-width: 0; }
.store-app-copy strong { display: block; color: var(--app-text); font-size: 13px; line-height: 1.35; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-app-copy small { display: block; margin-top: 5px; color: var(--app-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-app-summary { grid-column: 1 / -1; margin: 0; color: var(--app-muted); font-size: 11px; line-height: 1.6; height: 35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-app-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; grid-column: 1 / -1; color: var(--app-muted); font-size: 10px; }
.store-app-meta > span:first-child { display: flex; align-items: center; gap: 4px; }
.store-app-meta .store-icon { width: 12px; height: 12px; flex-basis: 12px; }
.store-status { padding: 3px 6px; border-radius: 5px; background: var(--app-panel-2); color: var(--app-muted); font-size: 9px; white-space: nowrap; }
.store-app-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 11px; border-top: 1px solid var(--app-line); }
.store-app-foot > small { color: var(--app-muted); font-size: 9px; line-height: 1.3; }
.store-app-foot > .store-button { flex-shrink: 0; min-width: 72px; }
.store-rank { font-weight: 700; font-size: 12px; color: var(--app-muted); }
.store-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; min-width: 0; }
.store-app-grid--list { grid-template-columns: 1fr; }
.store-app-grid--list .store-app-card { grid-template-columns: minmax(200px, 1fr) 34px minmax(150px, 1fr) 160px; align-items: center; gap: 14px; }
.store-app-grid--list .store-app-summary { grid-column: 3; grid-row: 1 / 3; height: auto; }
.store-app-grid--list .store-app-meta { grid-column: 1 / 3; grid-row: 2; justify-content: flex-start; margin-left: 67px; }
.store-app-grid--list .store-app-foot { grid-column: 4; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; border: 0; padding: 0; }
.store-chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.store-chart-pair .store-section { margin: 0; border: 1px solid var(--app-border); border-radius: 15px; padding: 17px; background: var(--app-panel); }
.store-chart-pair .store-section-head h2 { font-size: 17px; }
.store-chart-pair .store-section-head p { font-size: 10px; }
.store-chart-pair .store-row-controls .store-icon-button { display: none; }
.store-chart-pair .store-empty { border: 0; padding: 8px 0 0; background: transparent; box-shadow: none; gap: 10px; }
.store-chart-pair .store-empty > .store-icon { display: none; }
.store-chart-pair .store-empty h3 { font-size: 12px; }
.store-chart-pair .store-empty p { font-size: 10px; }
.store-chart-pair .store-empty .store-text-button { font-size: 10px; }
.store-chart-pair .store-shelf { grid-auto-columns: 100%; }
.store-empty { display: flex; align-items: flex-start; gap: 18px; padding: 28px; border: 1px solid var(--app-border); border-radius: 15px; background: var(--app-panel); box-shadow: var(--app-shadow); min-width: 0; }
.store-empty > .store-icon { width: 30px; height: 30px; flex-basis: 30px; color: var(--app-muted); }
.store-empty h3 { margin: 1px 0 7px; font-size: 16px; font-weight: 650; }
.store-empty p { margin: 0; color: var(--app-muted); font-size: 12px; line-height: 1.65; max-width: 580px; }
.store-empty .store-button { margin-top: 14px; }
.store-publisher-promo { display: flex; align-items: center; gap: 20px; border: 1px solid var(--app-border); border-radius: 17px; padding: 24px; background: var(--app-panel); margin-top: 24px; }
.store-publisher-promo > .store-icon { width: 40px; height: 40px; flex-basis: 40px; color: var(--app-accent-strong); }
.store-publisher-promo > div { flex: 1; }
.store-publisher-promo h2 { margin: 0 0 5px; font-size: 18px; }
.store-publisher-promo p { color: var(--app-muted); margin: 0; font-size: 12px; }
.store-spotlight { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.6fr); gap: 24px; align-items: center; margin-top: 25px; padding: 24px 24px 0; border: 1px solid var(--app-border); border-radius: 18px; background: var(--app-panel); box-shadow: var(--app-shadow); overflow: hidden; }
.store-spotlight > div { padding-bottom: 24px; }
.store-spotlight > div > .store-app-icon { width: 45px; height: 45px; margin-bottom: 12px; }
.store-spotlight h2 { font-size: 25px; font-weight: 720; letter-spacing: -.35px; line-height: 1.2; margin: 0 0 10px; }
.store-spotlight p { color: var(--app-muted); font-size: 12px; line-height: 1.65; margin: 0 0 16px; }
.store-spotlight-link { display: inline-flex; gap: 9px; align-items: center; color: var(--app-accent-strong); font-size: 12px; font-weight: 650; }
.store-spotlight figure { min-width: 0; margin: 0; align-self: end; }
.store-spotlight figure img { width: 100%; display: block; aspect-ratio: 1.65; object-fit: cover; object-position: left top; border: 1px solid var(--app-border); border-radius: 12px 12px 0 0; box-shadow: var(--app-shadow); }
.store-spotlight figcaption { margin: 0; padding: 9px 0; font-size: 9px; color: var(--app-muted); }
.store-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store-trust-grid .store-section { margin: 0; }
.store-trust-grid p { font-size: 12px; line-height: 1.7; color: var(--app-muted); }
.store-trust-grid strong { color: var(--app-text); }
.store-source-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 9px; }
.store-source-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-source-list a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--app-accent-strong); }
.store-source-list .store-icon { width: 14px; height: 14px; flex-basis: 14px; }
.store-source-list code { font-size: 10px; color: var(--app-muted); }
.store-review-form .store-review-consent { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-size: 11px; line-height: 1.6; color: var(--app-muted); }
.store-review-consent input { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; border: 1px solid var(--app-border); border-radius: 5px; background: var(--app-panel-2); position: relative; }
.store-review-consent input:checked { background: var(--app-primary-bg); border-color: var(--app-primary-bg); }
.store-review-consent input:checked::after { content: ""; position: absolute; width: 5px; height: 9px; border: solid var(--app-primary-text); border-width: 0 2px 2px 0; transform: rotate(45deg); left: 5px; top: 2px; }
.store-status-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.store-stat-chip { display: flex; align-items: center; gap: 9px; min-width: 100px; padding: 12px 15px; border: 1px solid var(--app-border); border-radius: 11px; background: var(--app-panel); }
.store-stat-chip strong { font-size: 17px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.store-stat-chip span { color: var(--app-muted); font-size: 11px; }
.store-stat-chip.active { border-color: color-mix(in srgb, var(--app-accent) 40%, transparent); background: var(--app-accent-soft); }
.store-toolbar { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--app-border); border-radius: 15px; background: var(--app-panel); margin-bottom: 12px; }
.store-search { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 42px; border: 1px solid var(--app-border); border-radius: 11px; background: var(--app-panel-2); padding: 0 10px 0 12px; }
.store-search > .store-icon { color: var(--app-muted); width: 18px; height: 18px; flex-basis: 18px; }
.store-search input { min-width: 0; flex: 1; width: 100%; border: 0; outline: none; color: var(--app-text); background: transparent; height: 40px; padding: 0; font: inherit; font-size: 12px; }
.store-search input::placeholder { color: var(--app-muted); opacity: 1; }
.store-search > button { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 8px; background: transparent; color: var(--app-muted); cursor: pointer; }
.store-search > button:hover { color: var(--app-accent-strong); background: var(--app-accent-soft); }
.store-filter-row { display: grid; grid-template-columns: minmax(140px, 1.3fr) repeat(3, minmax(110px, 1fr)) auto; align-items: end; gap: 10px; }
.store-filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.store-filter > span, .store-view > span { color: var(--app-muted); font-size: 10px; font-weight: 650; }
.store-filter select, .store-filter .premium-select-trigger { width: 100%; max-width: 100%; min-width: 0; min-height: 36px; border: 1px solid var(--app-border); border-radius: 9px; background: var(--app-panel); color: var(--app-text); font-size: 11px; padding: 7px 10px; text-align: left; }
.store-filter .premium-select-trigger > span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.store-view { display: flex; flex-direction: column; gap: 6px; }
.store-view > div { display: flex; padding: 3px; background: var(--app-panel-2); border-radius: 9px; gap: 2px; }
.store-view a { display: grid; place-items: center; width: 31px; height: 30px; border-radius: 6px; color: var(--app-muted); }
.store-view a[aria-current="true"] { background: var(--app-panel); color: var(--app-accent-strong); box-shadow: var(--app-shadow); }
.store-view .store-icon { width: 16px; height: 16px; flex-basis: 16px; }
.store-active-filters { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.store-active-filter { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--app-accent) 30%, transparent); border-radius: 8px; padding: 6px 8px; background: var(--app-accent-soft); font-size: 10px; color: var(--app-accent-strong); }
.store-active-filter .store-icon { width: 13px; height: 13px; flex-basis: 13px; }
.store-result-count { margin: 12px 0; font-size: 11px; color: var(--app-muted); }
.store-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 18px; }
.store-pagination > span:not(.store-button) { color: var(--app-muted); font-size: 11px; }
.store-back { display: flex; gap: 10px; margin-bottom: 14px; }
.store-detail-hero { display: flex; align-items: flex-start; gap: 25px; padding: 26px; background: var(--app-panel); border: 1px solid var(--app-border); border-radius: 18px; }
.store-app-icon--large { width: 110px; height: 110px; flex-basis: 110px; }
.store-app-icon--large .store-initial { border-radius: 27px; font-size: 34px; }
.store-detail-heading { flex: 1; min-width: 0; }
.store-detail-heading h1 { margin: 0 0 7px; font-size: 30px; font-weight: 730; line-height: 1.2; overflow-wrap: anywhere; letter-spacing: -.5px; }
.store-detail-heading > p { margin: 12px 0 17px; max-width: 700px; color: var(--app-muted); font-size: 13px; line-height: 1.65; }
.store-publisher-link { display: inline-flex; align-items: center; gap: 6px; color: var(--app-accent-strong); font-size: 12px; }
.store-publisher-link .store-icon { width: 13px; height: 13px; flex-basis: 13px; }
.store-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.store-detail-actions > .store-primary { min-width: 130px; }
.store-detail-actions .store-icon-button { width: 38px; height: 38px; flex-basis: 38px; }
.store-action-note { display: block; margin-top: 12px; color: var(--app-muted); font-size: 10px; }
.store-detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 14px 0; border-bottom: 1px solid var(--app-border); margin-bottom: 20px; }
.store-detail-facts > div { display: flex; flex-direction: column; gap: 5px; padding: 9px 18px; border-right: 1px solid var(--app-line); text-align: center; }
.store-detail-facts > div:last-child { border: 0; }
.store-detail-facts strong { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.store-detail-facts small { color: var(--app-muted); font-size: 10px; }
.store-gallery { display: flex; gap: 14px; overflow-x: auto; min-width: 0; padding: 1px 1px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.store-screenshot { flex: 0 0 min(560px, 75%); min-width: 260px; margin: 0; scroll-snap-align: start; }
.store-screenshot > button { width: 100%; aspect-ratio: 16 / 10; position: relative; padding: 0; border: 1px solid var(--app-border); border-radius: 15px; overflow: hidden; display: block; background: var(--app-panel-2); cursor: zoom-in; }
.store-screenshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.store-screenshot figcaption { font-size: 10px; color: var(--app-muted); margin-top: 9px; }
.store-image-unavailable { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; color: var(--app-muted); font-size: 12px; }
.store-detail-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.store-detail-columns > div, .store-detail-columns > aside { min-width: 0; display: grid; gap: 12px; }
.store-surface { padding: 20px; background: var(--app-panel); border: 1px solid var(--app-border); border-radius: 15px; margin: 0; min-width: 0; }
.store-surface h2 { font-size: 17px; }
.store-surface p { font-size: 12px; line-height: 1.65; color: var(--app-muted); margin-bottom: 0; }
.store-surface .store-section-head { align-items: flex-start; }
.store-surface .store-section-head .store-button { font-size: 10px; min-height: 32px; }
.store-about { white-space: pre-line; }
.store-feature-list { padding-left: 20px; margin: 12px 0 0; font-size: 12px; color: var(--app-muted); line-height: 1.65; }
.store-info-list { display: grid; gap: 0; margin: 0; }
.store-info-list > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--app-line); }
.store-info-list > div:first-child { border-top: 0; padding-top: 0; }
.store-info-list dt { font-size: 11px; color: var(--app-muted); }
.store-info-list dd { font-size: 11px; font-weight: 600; margin: 0; text-align: right; overflow-wrap: anywhere; }
.store-info-list dd a { display: inline-flex; justify-content: flex-end; align-items: center; gap: 5px; color: var(--app-accent-strong); max-width: 100%; }
.store-info-list .store-icon { width: 12px; height: 12px; flex-basis: 12px; }
.store-muted { color: var(--app-muted); }
.store-surface .store-muted + .store-button { margin-top: 12px; }
.store-rating-empty { padding: 18px 0 8px; }
.store-rating-stars { display: flex; gap: 5px; color: var(--app-subtle); margin-bottom: 13px; }
.store-rating-stars .store-icon { width: 25px; height: 25px; flex-basis: 25px; }
.store-rating-empty h3 { font-size: 14px; margin: 0 0 6px; font-weight: 650; }
.store-rating-empty p { margin: 0; }
.store-review-grid { display: grid; gap: 12px; }
.store-review { padding: 14px; background: var(--app-panel-2); border-radius: 11px; }
.store-review header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.store-review p { margin: 10px 0; }
.store-review small { font-size: 10px; color: var(--app-muted); }
.store-draft-review { margin-top: 15px; padding: 13px; background: var(--app-panel-2); border-radius: 10px; }
.store-draft-review strong { font-size: 11px; }
.store-draft-review p { margin: 7px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.store-draft-review small { font-size: 10px; color: var(--app-muted); }
.store-provenance { padding: 14px 16px; border: 1px solid var(--app-border); border-radius: 12px; }
.store-provenance summary { font-size: 11px; font-weight: 650; cursor: pointer; }
.store-provenance > div { display: grid; gap: 9px; margin-top: 12px; }
.store-provenance a { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; color: var(--app-accent-strong); overflow-wrap: anywhere; }
.store-provenance .store-icon { width: 12px; height: 12px; flex-basis: 12px; }
.store-provenance p { font-size: 10px; margin: 12px 0 0; color: var(--app-muted); }
.store-tabbar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--app-border); margin-bottom: 14px; overflow-x: auto; }
.store-tabbar a { display: flex; align-items: center; gap: 7px; padding: 12px 13px; white-space: nowrap; border-bottom: 2px solid transparent; font-size: 12px; color: var(--app-muted); font-weight: 600; }
.store-tabbar a.active { color: var(--app-accent-strong); border-bottom-color: var(--app-accent); }
.store-tabbar a span { border-radius: 5px; background: var(--app-panel-2); padding: 1px 5px; color: var(--app-muted); font-size: 9px; }
.store-context-note { font-size: 11px; line-height: 1.55; color: var(--app-muted); margin: 0 0 16px; }
.store-library-list { display: grid; gap: 10px; margin: 14px 0; }
.store-library-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr) auto; align-items: center; gap: 18px; padding: 17px; border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-panel); }
.store-library-row > p { font-size: 11px; color: var(--app-muted); margin: 0; }
.store-library-version { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.store-library-version small { font-size: 10px; color: var(--app-muted); }
.store-update-status { display: flex; align-items: center; gap: 18px; padding: 25px; border: 1px solid var(--app-border); border-radius: 16px; background: var(--app-panel); margin-bottom: 14px; }
.store-update-status > .store-icon { width: 32px; height: 32px; flex-basis: 32px; color: var(--app-accent-strong); }
.store-update-status > div { flex: 1; min-width: 0; }
.store-update-status h2 { font-size: 17px; margin: 0 0 7px; }
.store-update-status p { font-size: 11px; margin: 0; color: var(--app-muted); line-height: 1.6; }
.store-publisher-hero { display: flex; align-items: center; gap: 25px; padding: 33px; background: var(--app-panel); border: 1px solid var(--app-border); border-radius: 18px; }
.store-publisher-mark { display: grid; place-items: center; width: 95px; height: 95px; flex: 0 0 95px; border-radius: 25px; background: var(--app-accent-soft); color: var(--app-accent-strong); }
.store-publisher-mark .store-icon { width: 47px; height: 47px; }
.store-publisher-hero h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.2; }
.store-publisher-hero p { margin: 0 0 16px; color: var(--app-muted); font-size: 13px; }
.store-publisher-counts { display: flex; gap: 20px; font-size: 11px; color: var(--app-muted); }
.store-publisher-counts strong { color: var(--app-text); font-size: 15px; margin-right: 4px; }
.store-collection { margin-top: 22px; padding: 22px; background: var(--app-panel); border: 1px solid var(--app-border); border-radius: 16px; }
.store-collection > header { margin-bottom: 18px; }
.store-collection h2 { margin: 0 0 7px; font-size: 22px; }
.store-collection > header p { color: var(--app-muted); font-size: 12px; margin: 0; }
.store-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--app-border); margin-top: 28px; padding-top: 18px; color: var(--app-muted); font-size: 10px; }
.store-footer > span:first-child { font-weight: 650; }
.store-dialog { width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 28px; border: 1px solid var(--app-border); border-radius: 22px; background: var(--app-panel); color: var(--app-text); box-shadow: var(--app-shadow-float); }
.store-dialog::backdrop { background: rgba(6, 13, 24, .52); backdrop-filter: blur(6px); }
.store-dialog .store-dialog-close { position: absolute; top: 14px; right: 14px; }
.store-dialog h2 { font-size: 20px; line-height: 1.25; margin: 0 34px 14px 0; }
.store-dialog p, .store-dialog ol { color: var(--app-muted); font-size: 12px; line-height: 1.7; }
.store-dialog ol { padding-left: 20px; }
.store-dialog li + li { margin-top: 7px; }
.store-dialog-gallery { width: min(1150px, calc(100vw - 28px)); }
.store-dialog-gallery header p { margin: 0 0 15px; }
.store-gallery-lightbox { background: var(--app-panel-2); border: 1px solid var(--app-border); border-radius: 13px; display: grid; place-items: center; overflow: hidden; }
.store-gallery-lightbox img { max-width: 100%; width: auto; max-height: 65dvh; object-fit: contain; }
.store-gallery-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.store-review-form { display: grid; gap: 15px; }
.store-review-form fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
.store-review-form legend, .store-review-form > label { font-size: 12px; font-weight: 650; }
.store-rating-choice { display: flex; gap: 7px; margin-top: 9px; }
.store-rating-choice label { position: relative; cursor: pointer; flex: 1; }
.store-rating-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.store-rating-choice label > span { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 8px; border: 1px solid var(--app-border); border-radius: 9px; color: var(--app-muted); font-size: 12px; }
.store-rating-choice .store-icon { width: 16px; height: 16px; flex-basis: 16px; }
.store-rating-choice input:checked + span { color: var(--app-accent-strong); background: var(--app-accent-soft); border-color: var(--app-accent); }
.store-rating-choice input:focus-visible + span { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.store-review-form textarea, .store-share-input { display: block; width: 100%; resize: vertical; padding: 11px; border: 1px solid var(--app-border); border-radius: 10px; color: var(--app-text); background: var(--app-panel-2); font-family: inherit; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.store-form-error { color: var(--app-coral) !important; font-size: 11px; margin: 0; }
.store-form-error:empty { display: none; }
:root[data-theme="dark"] .store-feature-work, :root[data-theme="dark"] .store-feature-create { background: var(--app-panel); }
:root[data-theme="dark"] .store-feature-main { background: var(--app-panel); }
:root[data-theme="dark"] .store-hero-art { background: radial-gradient(ellipse at 80% 30%, rgba(59, 167, 255, .08), transparent 70%); }
/* Focus, acknowledged-action feedback and long user text stay inside Store surfaces. */
.store-root :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.store-dialog :is(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--app-accent); outline-offset: 3px;
}
.store-root :is(.store-shelf, .store-gallery):focus-visible { outline-offset: -2px; }
.store-action-error { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 12px; border: 1px solid var(--app-coral); border-radius: 10px; background: var(--app-panel-2); }
.store-action-error p { margin: 0; flex: 1 1 160px; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.store-action-error .store-button { flex: 0 0 auto; }
.store-button[aria-busy="true"], .store-icon-button[aria-busy="true"] { cursor: progress; opacity: .75; }
.store-icon-button[aria-busy="true"] { position: relative; }
.store-icon-button[aria-busy="true"] .store-icon { opacity: .2; }
.store-icon-button[aria-busy="true"]::after { content: ""; position: absolute; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: store-busy-spin .8s linear infinite; }
@keyframes store-busy-spin { to { transform: rotate(360deg); } }
.store-review-count { display: block; margin-top: 7px; font-size: 10px; font-weight: 400; color: var(--app-muted); }
.store-review-form [aria-invalid="true"] { border-color: var(--app-coral); }
.store-review p, .store-review header strong, .store-draft-review p,
.store-dialog h2, .store-dialog p, .store-dialog li { overflow-wrap: anywhere; }
.store-review header strong { min-width: 0; }
.store-review header > span { flex: 0 0 auto; }
.store-review p, .store-draft-review p { white-space: pre-wrap; }

@media (min-width: 1600px) {
  .store-shelf { grid-auto-columns: minmax(235px, calc((100% - 36px) / 4)); }
  .store-feature-main { min-height: 340px; }
  .store-feature-copy h2 { font-size: 40px; }
  .store-feature-copy { padding-left: 34px; }
}
@media (max-width: 1120px) {
  .store-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); }
  .store-feature-main { grid-template-columns: minmax(0, 1fr) 150px; min-height: 316px; }
  .store-feature-copy { padding-left: 22px; }
  .store-feature-copy h2 { font-size: 32px; }
  .store-hero-tile { width: 78px; height: 91px; }
  .store-hero-tile .store-app-icon { width: 48px; height: 48px; }
  .store-feature-small { padding: 18px; }
  .store-feature-small h3 { font-size: 20px; }
  .store-mini-icons { flex-basis: 66px; }
  .store-mini-icons .store-app-icon { width: 42px; height: 42px; }
  .store-filter-row { grid-template-columns: repeat(2, minmax(130px, 1fr)) auto; }
  .store-view { grid-column: 3; grid-row: 1 / 3; align-self: end; }
}
@media (max-width: 900px) {
  .store-detail-columns { grid-template-columns: minmax(0, 1fr); }
  .store-detail-columns > aside { grid-template-columns: 1fr 1fr; }
  .store-provenance { grid-column: 1 / -1; }
  .store-hero-grid { grid-template-columns: 1fr; }
  .store-feature-main { grid-template-columns: minmax(0, 1fr) minmax(200px, .9fr); min-height: 290px; }
  .store-feature-pair { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .store-feature-small { min-height: 153px; }
  .store-hero-art { min-height: 290px; }
  .store-shelf { grid-auto-columns: minmax(225px, calc((100% - 12px) / 2)); }
  .store-app-grid--list .store-app-card { grid-template-columns: minmax(170px, 1fr) 34px 130px; }
  .store-app-grid--list .store-app-summary { grid-column: 1 / 3; grid-row: 3; }
  .store-app-grid--list .store-app-foot { grid-column: 3; grid-row: 1 / 4; }
}
@media (max-width: 620px) {
  .store-page-head { align-items: flex-start; gap: 10px; }
  .store-page-head h1 { font-size: 25px; }
  .store-page-head .store-eyebrow { font-size: 9px; margin-bottom: 7px; }
  .store-description { font-size: 11px; line-height: 1.55; }
  .store-page-actions .store-button { font-size: 10px; padding: 8px; min-height: 35px; }
  .store-page-actions .store-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .store-feature-main { grid-template-columns: minmax(0, 1fr) 120px; min-height: 278px; }
  .store-feature-copy { padding: 22px 0 22px 19px; }
  .store-feature-copy h2 { font-size: 30px; }
  .store-feature-copy p { font-size: 11px; line-height: 1.6; max-width: 200px; margin-bottom: 15px; }
  .store-feature-copy .store-eyebrow { font-size: 8px; }
  .store-feature-copy .store-button { font-size: 10px; padding: 9px 11px; min-height: 36px; }
  .store-feature-note { font-size: 8px; max-width: 160px; }
  .store-hero-art { min-height: 278px; }
  .store-hero-tile { width: 68px; height: 79px; border-radius: 15px; gap: 5px; }
  .store-hero-tile .store-app-icon { width: 42px; height: 42px; }
  .store-hero-tile span:not(.store-app-icon):not(.store-initial) { font-size: 8px; max-width: 61px; }
  .store-hero-tile-1 { top: 22px; left: 34%; }
  .store-hero-tile-2 { top: 99px; left: 0; }
  .store-hero-tile-3 { top: 156px; left: 51%; }
  .store-hero-tile-4 { top: 223px; left: 1%; }
  .store-feature-pair { gap: 9px; }
  .store-feature-small { display: block; min-height: 160px; padding: 15px 13px; }
  .store-feature-small h3 { font-size: 17px; }
  .store-feature-small .store-eyebrow { font-size: 7px; }
  .store-feature-small > div > span:last-child { font-size: 9px; line-height: 1.4; max-width: 118px; }
  .store-mini-icons { position: absolute; right: 5px; bottom: -19px; width: 51px; height: 60px; opacity: .55; }
  .store-mini-icons .store-app-icon { width: 35px; height: 35px; }
  .store-mini-icons .store-app-icon:nth-child(2), .store-mini-icons .store-app-icon:nth-child(3) { display: none; }
  .store-chart-links { flex-wrap: nowrap; overflow-x: auto; margin: 12px 0 20px; padding-bottom: 5px; }
  .store-chart-link { flex: 0 0 auto; min-height: 37px; padding: 8px 11px; font-size: 10px; gap: 13px; }
  .store-chart-link .store-icon { width: 12px; height: 12px; flex-basis: 12px; }
  .store-section { margin-top: 22px; }
  .store-section-head { gap: 8px; align-items: flex-start; }
  .store-section-head h2 { font-size: 17px; }
  .store-section-head p { font-size: 10px; }
  .store-row-controls .store-icon-button { display: none; }
  .store-row-controls .store-text-button { font-size: 10px; min-height: 25px; white-space: nowrap; }
  .store-row-controls .store-text-button .store-icon { width: 13px; height: 13px; flex-basis: 13px; }
  .store-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .store-category-chip { font-size: 10px; min-height: 42px; padding: 8px; gap: 6px; }
  .store-category-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-category-chip .store-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .store-category-chip small { font-size: 8px; }
  .store-shelf { grid-auto-columns: 255px; gap: 10px; }
  .store-app-card { padding: 13px; gap: 10px 6px; }
  .store-app-card .store-app-icon { width: 48px; height: 48px; }
  .store-app-copy strong { font-size: 12px; }
  .store-app-copy small { font-size: 9px; }
  .store-app-summary { font-size: 10px; height: 33px; }
  .store-chart-pair { grid-template-columns: 1fr; }
  .store-publisher-promo { padding: 17px; flex-wrap: wrap; gap: 12px; }
  .store-publisher-promo > .store-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .store-publisher-promo h2 { font-size: 15px; }
  .store-publisher-promo p { font-size: 10px; }
  .store-publisher-promo > .store-button { margin-left: 40px; }
  .store-status-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .store-stat-chip { min-width: 0; padding: 10px; }
  .store-stat-chip strong { font-size: 15px; }
  .store-stat-chip span { font-size: 10px; }
  .store-toolbar { padding: 12px; }
  .store-search input { font-size: 11px; }
  .store-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .store-filter > span, .store-view > span { font-size: 9px; }
  .store-filter .premium-select-trigger { font-size: 10px; padding: 7px 8px; }
  .store-view { grid-column: 2; grid-row: auto; justify-self: end; }
  .store-view > span { display: none; }
  .store-app-grid { grid-template-columns: 1fr; gap: 10px; }
  .store-app-grid:not(.store-app-grid--list) .store-app-card { grid-template-columns: minmax(0, 1fr) 34px; }
  .store-app-grid--list .store-app-card { grid-template-columns: minmax(0, 1fr) 34px; }
  .store-app-grid--list .store-app-summary { grid-column: 1 / -1; grid-row: auto; }
  .store-app-grid--list .store-app-meta { grid-column: 1 / -1; grid-row: auto; margin-left: 0; justify-content: space-between; }
  .store-app-grid--list .store-app-foot { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; padding-top: 10px; border-top: 1px solid var(--app-line); }
  .store-empty { padding: 20px 16px; gap: 12px; }
  .store-empty > .store-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .store-empty h3 { font-size: 14px; }
  .store-empty p { font-size: 11px; }
  .store-detail-hero { gap: 16px; padding: 18px; flex-wrap: wrap; }
  .store-detail-hero .store-app-icon--large { width: 74px; height: 74px; flex-basis: 74px; }
  .store-detail-heading { min-width: 180px; }
  .store-detail-heading h1 { font-size: 24px; }
  .store-detail-heading > p { font-size: 11px; margin: 12px 0; }
  .store-detail-heading .store-eyebrow { font-size: 8px; }
  .store-detail-actions { gap: 7px; }
  .store-detail-actions > .store-button { font-size: 10px; padding: 9px 10px; }
  .store-detail-actions > .store-primary { min-width: 100px; }
  .store-action-note { font-size: 9px; line-height: 1.6; }
  .store-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
  .store-detail-facts > div { padding: 10px; }
  .store-detail-facts > div:nth-child(2n) { border: 0; }
  .store-detail-facts strong { font-size: 11px; }
  .store-detail-facts small { font-size: 9px; }
  .store-screenshot { flex-basis: 88%; min-width: 245px; }
  .store-detail-columns > aside { grid-template-columns: 1fr; }
  .store-surface { padding: 16px; }
  .store-surface .store-section-head { flex-wrap: wrap; }
  .store-surface .store-section-head .store-button { font-size: 10px; }
  .store-library-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px; }
  .store-library-version { flex-direction: row; align-items: center; justify-content: space-between; }
  .store-library-row .store-inline-actions { justify-content: flex-end; }
  .store-update-status { align-items: flex-start; flex-wrap: wrap; padding: 18px; gap: 12px; }
  .store-update-status h2 { font-size: 15px; }
  .store-update-status p { font-size: 10px; }
  .store-update-status > .store-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .store-publisher-hero { padding: 22px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .store-publisher-mark { width: 70px; height: 70px; flex-basis: 70px; border-radius: 19px; }
  .store-publisher-mark .store-icon { width: 35px; height: 35px; }
  .store-publisher-hero h1 { font-size: 25px; }
  .store-publisher-hero p { font-size: 12px; }
  .store-collection { padding: 15px; }
  .store-collection h2 { font-size: 19px; }
  .store-footer { display: block; line-height: 1.6; margin-top: 24px; }
  .store-footer > span { display: block; }
  .store-footer > span + span { margin-top: 5px; }
  .store-dialog { padding: 23px 18px; border-radius: 18px; }
  .store-dialog h2 { font-size: 19px; }
  .store-rating-choice { gap: 5px; }
  .store-rating-choice label > span { padding: 10px 5px; gap: 3px; }
  .store-gallery-lightbox img { max-height: 62dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .store-root *, .store-dialog * { scroll-behavior: auto; transition: none !important; animation: none !important; }
  .store-icon-button[aria-busy="true"]::after { animation: none; }
}
@media (max-width: 760px) {
  .store-spotlight { grid-template-columns: 1fr; gap: 0; padding: 20px 20px 0; }
  .store-spotlight > div { padding-bottom: 18px; }
  .store-spotlight h2 { font-size: 23px; }
  .store-spotlight figure img { aspect-ratio: 1.6; }
  .store-trust-grid { grid-template-columns: 1fr; }
}
/* Usage: Load after apps-shell.css; all new storefront content is namespaced. */
/* Troubleshooting: Preserve min-width:0 and scoped grid breakpoints for long catalog names. */
/* Extension Hooks: Server-rendered components use the same store classes. */
