/* Storefront additions: static surfaces, real previews and clear play/install paths. */
.button-primary { background:#b6f568; color:#14200b; border-color:var(--theme-accent-ink, #b6f568); box-shadow:none; }
.button-primary:hover { background:#cef99c; color:#14200b; }
.brand .brand-symbol { padding:0; background:transparent; border:0; box-shadow:none; }
.brand .brand-period { color:var(--theme-accent-ink, #b6f568); }
.discovery-hero { display:grid; grid-template-columns:1.25fr 1fr; gap:56px; align-items:center; padding:14px 0 18px; }
.discovery-hero h1 { font-size:clamp(32px,3.8vw,46px); letter-spacing:-.04em; line-height:1.25; margin:10px 0 14px; }
.discovery-hero h1 em { color:var(--theme-accent-ink, #b6f568); font-style:normal; }
.discovery-hero>div>p:not(.eyebrow) { color:var(--theme-muted, #9db1bb); font-size:14px; line-height:1.8; max-width:440px; }
.discovery-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.discovery-actions .button { font-size:12px; min-height:44px; }
.discovery-feature { border:1px solid var(--theme-border, #2c3c44); border-radius:12px; padding:16px 20px; background:linear-gradient(150deg,var(--theme-surface, #1a262b),var(--theme-inset, #0d161b)); position:relative; }
.terminal-caption { display:flex; justify-content:space-between; gap:12px; color:var(--theme-muted, #8da69b); font:10px/1.6 monospace; letter-spacing:.06em; }
.discovery-feature img { width:100%; height:168px; object-fit:contain; display:block; margin:4px 0; }
.discovery-feature>p { font-size:12px; color:var(--theme-text, #cad7dc); margin:4px 0 6px; }
.discovery-feature>a { font-size:11px; color:var(--theme-muted, #a7bbad); }
.discovery-shortcuts { display:grid; grid-template-columns:repeat(3,1fr); border-block:1px solid var(--theme-border, #2a3941); margin:12px 0 34px; }
.discovery-shortcuts a { display:flex; align-items:center; gap:16px; padding:16px 0; color:var(--theme-text, #d3e0e4); font-size:13px; }
.discovery-shortcuts a+a { border-left:1px solid var(--theme-border, #2a3941); padding-left:24px; }
.discovery-shortcuts span { font-size:11px; color:var(--theme-muted, #8ba2ad); }
.catalog-head { margin-bottom:18px; padding-top:12px; gap:24px; }
.catalog-head h2 { font-size:24px; margin:4px 0 6px; }
.catalog-tabs { margin-bottom:12px; }
.catalog-chips { margin-bottom:20px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; scrollbar-color:#344a3d transparent; }
.catalog-chips .catalog-chip { flex:0 0 auto; }
.app-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; align-items:stretch; }
.app-card.app-card--visual { display:grid; grid-template-columns:44px minmax(0,1fr); grid-template-rows:auto auto 1fr auto; gap:14px 12px; padding:0 18px 18px; align-items:start; border:1px solid var(--theme-border, #2a3b43); border-radius:12px; overflow:hidden; background:var(--theme-inset, #101b21); box-shadow:none; transform:none; }
.app-card--visual:hover { border-color:var(--theme-edge, #5b735d); transform:none; }
.app-card--visual:before,.app-card--visual:after { display:none; }
.app-preview { grid-column:1/-1; margin:0 -18px 2px; position:relative; display:flex; justify-content:center; align-items:center; align-self:start; background:var(--theme-inset, #070d11); overflow:hidden; border-bottom:1px solid var(--theme-border, #28393f); }
.app-preview>img { display:block; width:100%; height:auto; }
.app-preview--cover>img { object-fit:contain; }
.preview-caption { display:none; }
.app-preview--icon,.app-preview--unavailable { aspect-ratio:16/10; }
.app-preview--icon { background:radial-gradient(ellipse at 50% 40%,var(--theme-subtle, #283e38),var(--theme-inset, #101b21) 72%); }
.app-preview--icon>img { width:72px; height:72px; border-radius:16px; }
.preview-initial { font-size:40px; color:var(--theme-accent-ink, #b6f568); }
.preview-type,.preview-play { position:absolute; bottom:10px; padding:4px 7px; font-size:10px; background:rgba(var(--theme-surface-rgb, 8,16,21), 0.929412); border:1px solid var(--theme-border, #34483d); border-radius:4px; color:var(--theme-text, #bed7c2); pointer-events:none; }
.preview-type { left:12px; }.preview-play { right:12px; }
.app-card--visual>.app-icon { width:44px; height:44px; margin:0; grid-row:2; border-radius:10px; }
.app-card--visual .app-copy { grid-column:2; grid-row:2/4; }
.app-card--visual .app-title-row { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; }
.app-card--visual .app-title-row h2 { width:100%; margin:0 0 3px; font-size:16px; white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; line-height:1.4; }
.app-card--visual .app-title-row h2 a { color:var(--theme-text, #e3edef); }
.app-card--visual .verified-pxa { display:none; }
.app-card--visual .version,.app-card--visual .kind-badge { font-size:10px; }
.app-card--visual .app-copy p { margin:10px 0; white-space:normal; font-size:12px; line-height:1.75; color:var(--theme-muted, #99afb9); overflow-wrap:anywhere; }
.app-card--visual .app-author { color:var(--theme-muted, #afc69a); font-size:11px; margin-bottom:10px; }
.app-card--visual .meta-row { gap:8px; font-size:10px; }
.app-card--visual .app-card-actions { grid-column:1/-1; grid-row:4; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:0; align-self:end; }
.app-card--visual .app-card-actions .button { flex:1; font-size:11px; min-height:40px; padding:8px; }
.bookmark-form { margin:0; display:flex; flex-direction:column; gap:5px; }
.bookmark-form button[aria-pressed=true] { color:var(--theme-accent-ink, #c4ef9e); border-color:var(--theme-edge, #738d56); }
.bookmark-form [role=status]:not(.sr-only) { color:var(--theme-warning, #d6bb7b); font-size:11px; max-width:220px; }
.collection-heading { margin:20px 0 30px; }
.collection-heading h1,.creation-intro h1 { font-size:clamp(28px,4vw,44px); line-height:1.35; margin:12px 0; overflow-wrap:anywhere; }
.collection-heading p,.creation-intro>p:last-child { color:var(--theme-muted, #9dafb7); font-size:14px; line-height:1.8; }
.collection-heading>.eyebrow { margin-top:20px; }
.collection-tabs { display:flex; gap:8px; margin-top:24px; flex-wrap:wrap; }
.collection-tabs a { display:block; padding:10px 16px; border:1px solid var(--theme-border, #2b3c44); border-radius:8px; font-size:13px; color:var(--theme-text, #b8cbd3); }
.collection-tabs a[aria-current=page] { background:var(--theme-subtle, #283828); border-color:var(--theme-edge, #698251); color:var(--theme-accent-ink, #cef29f); }
.history-clear { margin:14px 0; display:flex; align-items:center; gap:10px; }
.history-clear small { color:var(--theme-muted, #93a8b1); font-size:11px; }
.catalog-filter--library { grid-template-columns:minmax(0,1fr) 130px auto; }
.creation-intro { max-width:660px; margin:20px 0 30px; }
.creation-workbench { display:grid; grid-template-columns:1fr 1.1fr; border:1px solid var(--theme-border, #30434b); border-radius:14px; overflow:hidden; background:var(--theme-inset, #101c22); }
.creation-fields,.creation-output { padding:28px; min-width:0; }
.creation-fields { display:grid; gap:18px; }
.creation-fields textarea { min-height:130px; }
.creation-fields .field-hint { font-size:12px; line-height:1.75; color:var(--theme-muted, #91a9b3); margin:0; }
.creation-output { background:var(--theme-inset, #090f13); border-left:1px solid var(--theme-border, #30434b); }
.creation-output textarea { margin-top:16px; min-height:390px; border:0; background:transparent; box-shadow:none; color:var(--theme-text, #b9d0bc); font:12px/1.85 ui-monospace,monospace; padding:0; }
.creation-output>p { font-size:12px; color:var(--theme-muted, #93a6af); line-height:1.8; margin:18px 0 0; }
.journey-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin:40px 0 10px; }
.journey-grid span { color:var(--theme-muted, #83a679); font:10px monospace; }.journey-grid h2 { font-size:18px; margin:12px 0; }
.journey-grid p { color:var(--theme-muted, #96aab4); font-size:13px; line-height:1.85; }
.device-picker { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.device-picker label { width:min(100%,320px); }.device-picker>span { font-size:12px; color:var(--theme-muted, #8fa8b4); align-self:center; }
.install-paths { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.install-paths article { background:var(--theme-surface, #111c22); border:1px solid var(--theme-border, #31414a); border-radius:12px; padding:28px; min-width:0; }
.install-paths .install-primary { border-color:var(--theme-edge, #536b45); background:linear-gradient(140deg,var(--theme-surface, #1c2a20),var(--theme-inset, #101b21)); }
.install-paths h2 { font-size:22px; margin:12px 0 18px; }.install-paths p,.install-paths li { font-size:13px; line-height:1.9; color:var(--theme-muted, #a0b7c0); }.install-paths li { margin:14px 0; padding-left:4px; }
.install-paths ol { padding-left:18px; }.install-paths strong { color:var(--theme-text, #dfebdf); }.install-paths a:not(.button) { font-size:12px; }
.install-downloads { display:flex; flex-direction:column; align-items:start; gap:10px; margin:18px 0; }.install-downloads small { color:var(--theme-muted, #a4b9c0); font-size:11px; }
.firmware-note { display:flex; align-items:center; gap:24px; justify-content:space-between; padding:24px 0; margin-top:24px; border-top:1px solid var(--theme-border, #293d45); }
.firmware-note h2 { font-size:17px; }.firmware-note p { color:var(--theme-muted, #8fa5b1); font-size:12px; margin:0; }
:focus-visible { outline:2px solid var(--theme-accent-ink, #b6f568); outline-offset:4px; }
@media(max-width:1000px) {
  .discovery-hero { gap:24px; }.discovery-hero h1 { font-size:38px; }
  .discovery-shortcuts span { display:none; }
  .app-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .topbar { height:auto; min-height:90px; }.topbar-inner { height:auto; min-height:64px; }
  .topbar nav { gap:2px; }.topbar nav>a { padding:7px 9px; }
}
@media(max-width:760px) {
  .shell { width:calc(100% - 32px); }.page { padding-top:8px; }
  .discovery-hero { grid-template-columns:1fr; padding-top:16px; gap:24px; }.discovery-hero h1 { font-size:36px; }
  .discovery-feature { display:none; }
  .discovery-shortcuts { margin-top:8px; }.discovery-shortcuts a { font-size:11px; padding:14px 2px; }.discovery-shortcuts a+a { padding-left:12px; }
  .catalog-head { grid-template-columns:1fr; gap:16px; }
  .creation-workbench,.install-paths { grid-template-columns:1fr; }.creation-fields,.creation-output { padding:20px; }.creation-output { border-left:0; border-top:1px solid var(--theme-border, #30434b); }
  .journey-grid { grid-template-columns:1fr; gap:18px; }
  .firmware-note { flex-direction:column; align-items:start; }
  .brand .brand-section { display:none; }
}
@media(max-width:540px) {
  .app-grid { grid-template-columns:1fr; gap:18px; }
  .topbar-inner { flex-wrap:wrap; gap:6px; padding:10px 12px; }.topbar nav { justify-content:start; flex:1; }
  .brand strong { font-size:23px; }.topbar nav>a { font-size:11px; min-height:36px; display:inline-flex; align-items:center; }
  .discovery-actions .button { flex:1; }
  .app-card--visual .app-title-row h2 { font-size:17px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* A single introduction card keeps artwork, identity and actions together. */
.store-app-hero { display:grid; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--ui-surface); }
.store-app-hero--illustrated { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; }
.store-app-art { position:relative; min-width:0; margin:24px 0 24px 24px; overflow:hidden; border-radius:11px; background:var(--subtle); }
.store-app-art>a { display:block; }
.store-app-art img { display:block; width:100%; height:auto; max-height:560px; object-fit:contain; }
.store-app-art figcaption { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 12px; border-top:1px solid var(--line); background:var(--ui-surface); color:var(--muted); font-size:10px; line-height:1.5; }
.store-app-art figcaption a { color:inherit; }
.store-app-hero .store-app-head { grid-template-columns:80px minmax(0,1fr); align-items:start; gap:22px; margin:0; padding:30px; border:0; border-radius:0; background:none; }
.store-app-hero .store-app-icon { width:80px; height:80px; border:1px solid var(--line); border-radius:18px; box-shadow:var(--ui-shadow); }
.store-app-hero h1 { margin:0 0 10px; font-size:clamp(25px,2.7vw,34px); letter-spacing:-.025em; line-height:1.3; overflow-wrap:anywhere; }
.store-app-hero .store-app-head p { margin:0 0 14px; font-size:13px; line-height:1.85; }
.store-app-hero .meta-row { gap:6px 12px; color:var(--muted); font-size:11px; line-height:1.8; }
.store-app-hero .store-app-actions { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:9px; width:100%; max-width:580px; }
.store-app-hero .store-app-actions>* { min-width:0; }
.store-app-hero .store-app-actions .button { width:100%; min-height:42px; padding:8px 13px; border-radius:8px; font-size:12px; line-height:1.7; white-space:normal; }
.store-app-hero .like-form,.store-app-hero .bookmark-form { margin:0; }
.store-app-hero .store-app-head>.browser-availability { grid-column:1/-1; margin:-5px 0 0; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--subtle); font-size:11px; }
@media(max-width:900px) {
  .store-app-hero--illustrated { grid-template-columns:minmax(0,1fr); }
  .store-app-art { margin:20px 20px 0; }
  .store-app-art img { max-height:480px; }
  .store-app-hero .store-app-head { padding:24px; }
}
@media(max-width:540px) {
  .store-app-art { margin:14px 14px 0; border-radius:9px; }
  .store-app-hero .store-app-head { grid-template-columns:60px minmax(0,1fr); gap:16px; padding:20px; }
  .store-app-hero .store-app-icon { width:60px; height:60px; border-radius:14px; }
  .store-app-hero .store-app-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .store-app-hero .store-app-head>div:nth-child(2)>p,.store-app-hero .meta-row { font-size:12px; }
}

/* Author labels share the site's theme and need no client-side requests. */
.app-tags { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; min-width:0; }
.app-tags a { display:block; max-width:100%; padding:3px 8px; border:1px solid var(--line); border-radius:6px; color:var(--theme-link,var(--muted)); background:var(--subtle); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.app-tags a:hover { border-color:var(--theme-accent-ink,var(--brand)); text-decoration:none; }
.app-tags--compact { flex-wrap:nowrap; gap:5px; margin:9px 0; overflow:hidden; }
.app-tags--compact a { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:2px 6px; font-size:10px; }
.app-tags--compact .tag-more { flex-shrink:0; }
.store-app-head>.app-tags { grid-column:1/-1; margin:0; }
