/* =====================================================================
   Store - unified app store  (.app-store)
   Runtime placeholder windows for installed apps  (.app-store-rt)
   ===================================================================== */
.app-store { --store-pad: 28px; }
.app-store .store-side { width: 228px; }
.app-store .store-side .side-item .count { font-weight: 600; }
.store-toolbar { gap: 4px; }
.store-toolbar h2 { font-size: 15px; }
.store-search { width: 260px; max-width: 42%; }
.store-search .input { height: 32px; border-radius: 16px; background: var(--tile); box-shadow: none; }
.store-search .input:focus { box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface-2); }
.store-content { flex: 1; }
.store-page { padding: 22px var(--store-pad) 40px; display: flex; flex-direction: column; gap: 30px; max-width: 1240px; margin: 0 auto; animation: store-fade .25s var(--ease); }
@keyframes store-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* sidebar runtime card */
.store-rt-card { margin: auto 4px 4px; padding: 12px 12px 10px; border-radius: 12px; background: var(--tile); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.store-rt-title { font-size: 11.5px; font-weight: 700; color: var(--text-3); margin-bottom: 2px; }
.store-rt-row { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.store-rt-row span { flex: 1; }
.store-rt-row i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-3); }
.store-rt-row i.on { color: #22a565; }
.store-rt-row i.on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.store-rt-card .link { align-self: flex-start; font-size: 12px; margin-top: 4px; }

/* sections */
.store-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.store-sec-head h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.store-sec-head p { margin: 2px 0 0; font-size: 13px; }

/* cards */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.store-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; min-width: 0;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .15s, box-shadow .15s;
}
.store-card:hover { background: var(--tile-hover); box-shadow: inset 0 0 0 1px var(--line-2); }
.store-card:active { transform: scale(.99); }
.store-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.store-card-text b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.store-card-meta .badge { height: 18px; padding: 0 7px; font-size: 10.5px; }
.store-stars { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.store-stars svg { color: #f5a524; fill: #f5a524; }

/* install / open buttons */
.store-act { min-width: 78px; position: relative; overflow: hidden; }
.store-act.btn-sm { min-width: 72px; border-radius: 13px; }
.store-get { background: rgba(var(--accent-rgb), .14); color: var(--accent); box-shadow: none; }
.store-get:hover { background: rgba(var(--accent-rgb), .24); }
.store-act.is-off { color: var(--text-2); }
.store-act.is-busy { pointer-events: none; color: var(--text); font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .42) var(--p, 0%), var(--tile) var(--p, 0%)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.store-act.is-busy.install { background: rgba(var(--accent-rgb), .2); }
.store-act.is-busy .spinner { width: 13px; height: 13px; border-width: 2px; }
.store-act.btn-primary { min-width: 120px; }
.store-act.is-busy:not(.btn-sm) { min-width: 170px; }

/* cloud strip (top of Discover) */
.store-cloud { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: -10px; border-radius: 16px;
  background: linear-gradient(100deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .05) 70%); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .22); }
.store-cloud-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .18); }
.store-cloud > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.store-cloud b { font-size: 14px; }
.store-cloud span:not(.store-cloud-ic) { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }

/* Office & creative (built-in cloud apps) */
.store-office { cursor: default; }
.store-office .badge { gap: 4px; }

/* hero */
.store-hero {
  position: relative; min-height: 270px; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(70% 120% at 85% 20%, color-mix(in srgb, var(--a) 70%, transparent), transparent 60%),
              linear-gradient(115deg, color-mix(in srgb, var(--b) 55%, #05070d) 0%, var(--b) 55%, var(--a) 130%);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--b) 80%, #000);
  transition: background .6s;
}
.store-hero-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40% 60% at 70% 110%, rgba(255, 255, 255, .18), transparent 70%),
  radial-gradient(25% 40% at 95% 0%, rgba(255, 255, 255, .22), transparent 70%); }
.store-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%); mask-image: linear-gradient(90deg, transparent 30%, #000 80%); }
.store-hero-slide { position: relative; display: flex; align-items: center; gap: 24px; min-height: 270px; padding: 30px 36px; animation: store-fade .45s var(--ease); }
.store-hero-text { flex: 1 1 0; min-width: 0; max-width: 470px; display: flex; flex-direction: column; gap: 10px; }
.store-eyebrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.store-hero h1 { margin: 2px 0 0; font-family: var(--font-display); font-size: 42px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .2); }
.store-hero p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.store-hero .row { margin-top: 8px; }
.store-hero .btn-primary { background: #fff; color: #111827; }
.store-hero .store-act.is-busy { color: #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .45) var(--p, 0%), rgba(255, 255, 255, .16) var(--p, 0%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.store-hero .store-act.is-off { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.store-hero-more { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.store-hero-more:hover { background: rgba(255, 255, 255, .26); }
.store-hero-art { position: relative; flex: 0 1 380px; height: 210px; display: grid; place-items: center; }
.store-hero-device { position: absolute; right: 30px; top: 50%; transform: translateY(-50%) rotate(-4deg); border-radius: 16px; padding: 6px; background: rgba(255, 255, 255, .16); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .4s var(--ease); }
.store-hero-device.android { border-radius: 24px; right: 70px; }
.store-hero-device .store-shot.landscape { width: 300px; }
.store-hero-device .store-shot.portrait { width: 116px; border-radius: 18px; }
.store-hero-art:hover .store-hero-device { transform: translateY(-50%) rotate(-2deg) scale(1.02); }
.store-hero-icon { position: absolute; left: 10px; bottom: 6px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .4)); transform: rotate(-8deg); }
.store-hero-dots { position: absolute; left: 36px; bottom: 16px; display: flex; gap: 6px; z-index: 2; }
.store-hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .4); transition: width .25s var(--ease), background .2s; }
.store-hero-dots button.on { width: 22px; background: #fff; }

/* runtime tiles */
.store-rt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.store-rt-tile {
  position: relative; overflow: hidden; height: 128px; border: 0; border-radius: 18px; padding: 16px; text-align: left; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--a) 90%, #fff 10%), transparent 70%), linear-gradient(140deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s var(--ease), filter .15s;
}
.store-rt-tile:hover { filter: brightness(1.07); transform: translateY(-2px); }
.store-rt-tile b { font-size: 15px; }
.store-rt-tile small { font-size: 12px; opacity: .82; }
.srt-tile-glyph { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.store-rt-tile::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .1); }

/* top chart */
.store-chart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2px 18px; }
.store-chart li { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.store-chart li:hover { background: var(--hover); }
.store-rank { width: 20px; text-align: center; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-3); }

/* generated screenshots */
.store-shot { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; padding: 12px 12px 0;
  background: radial-gradient(70% 70% at 80% 10%, color-mix(in srgb, var(--a) 80%, #fff), transparent 70%), linear-gradient(var(--r, 135deg), var(--a), var(--b));
  box-shadow: inset 0 0 0 1px var(--line); }
.store-shot.landscape { width: 340px; aspect-ratio: 16 / 10; }
.store-shot.portrait { width: 168px; aspect-ratio: 9 / 18.5; border-radius: 20px; padding: 8px; }
.store-shot.bare { box-shadow: none; }
.ss-bar { height: 22px; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 9px 9px 0 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.portrait .ss-bar { border-radius: 13px 13px 0 0; height: 26px; }
.ss-ic { width: 14px; height: 14px; border-radius: 4px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--a), var(--b)); }
.ss-bar i { width: 40px; height: 5px; border-radius: 3px; background: var(--text-3); opacity: .6; }
.ss-bar em { margin-left: auto; width: 18px; height: 8px; border-radius: 4px; background: var(--surface-3); }
.ss-body { flex: 1; min-height: 0; background: var(--surface); padding: 9px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.portrait .ss-body { border-radius: 0 0 13px 13px; }
.ss-li { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: auto auto; column-gap: 7px; row-gap: 3px; align-items: center; padding: 5px; border-radius: 7px; background: var(--surface-2); }
.ss-li span { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(140deg, var(--a), var(--b)); }
.ss-li i { height: 5px; width: 70%; border-radius: 3px; background: var(--text-3); opacity: .7; }
.ss-li em { height: 4px; width: 45%; border-radius: 3px; background: var(--line-2); }
.ss-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.portrait .ss-tiles { grid-template-columns: repeat(2, 1fr); }
.ss-tiles span { border-radius: 7px; background: linear-gradient(calc(var(--k) * 40deg), color-mix(in srgb, var(--a) calc(30% + var(--k) * 8%), var(--surface-2)), color-mix(in srgb, var(--b) 40%, var(--surface-2))); }
.ss-big { flex: 1.4; border-radius: 9px; background: radial-gradient(60% 80% at 30% 30%, color-mix(in srgb, var(--a) 80%, #fff), transparent 70%), linear-gradient(135deg, var(--a), var(--b)); }
.ss-lines { display: flex; flex-direction: column; gap: 5px; }
.ss-lines i { height: 5px; border-radius: 3px; background: var(--text-3); opacity: .55; }
.ss-lines i:nth-child(1) { width: 60%; height: 7px; opacity: .85; }
.ss-lines i:nth-child(3) { width: 80%; }
.ss-btn { width: 64px; height: 16px; border-radius: 8px; background: var(--b); }
.ss-ed { flex: 1; display: flex; gap: 7px; min-height: 0; }
.ss-side { width: 26%; display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 7px; background: var(--surface-2); }
.ss-side i { height: 5px; border-radius: 3px; background: var(--text-3); opacity: .55; }
.ss-side i:first-child { background: var(--b); opacity: 1; }
.ss-canvas { position: relative; flex: 1; border-radius: 7px; background: var(--surface-2); overflow: hidden;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 14px 14px; }
.ss-blob { position: absolute; left: 18%; top: 20%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg, var(--a), var(--b)); opacity: .9; }
.ss-blob.b2 { left: 52%; top: 46%; width: 30%; border-radius: 22%; background: color-mix(in srgb, var(--a) 60%, var(--surface)); }
.portrait .ss-ed { flex-direction: column; }
.portrait .ss-side { width: auto; flex-direction: row; }
.portrait .ss-side i { flex: 1; }

/* runtime banner */
.store-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 26px 28px; border-radius: 22px; color: #fff;
  background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--a) 85%, #fff), transparent 60%), linear-gradient(130deg, var(--b), var(--a)); }
.store-banner::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .09); }
.store-banner > div { flex: 1; min-width: 0; position: relative; z-index: 1; }
.store-banner h1 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.store-banner p { margin: 4px 0 10px; color: rgba(255, 255, 255, .86); font-size: 14px; max-width: 520px; }
.store-banner-glyph { width: 68px; height: 68px; flex: 0 0 auto; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.store-banner-status { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .22); }
.store-banner-status i { width: 7px; height: 7px; border-radius: 50%; background: #fca5a5; }
.store-banner-status.on i { background: #86efac; box-shadow: 0 0 0 3px rgba(134, 239, 172, .25); }
.store-banner .btn { position: relative; z-index: 1; background: #fff; color: #111827; box-shadow: none; }
.store-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -12px 0 -14px; }

/* library / updates */
.store-list { overflow: hidden; }
.store-lrow { cursor: default; transition: background .12s; }
.store-lrow:hover { background: var(--hover); }
.store-lrow-badge .badge { height: 20px; }
.store-pkg-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .15); color: var(--accent); flex: 0 0 auto; }
.store-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 44px 24px; }
.store-empty h3 { margin: 6px 0 0; font-size: 17px; }
.store-empty p { margin: 0 0 12px; font-size: 13.5px; }
.store-empty-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .15); color: var(--accent); }
.store-upd-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.store-upd-head h3 { margin: 0 0 2px; font-size: 16px; }
.store-upd-head .muted { font-size: 12.5px; }
.store-upd-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #22a565; background: rgba(34, 165, 101, .14); flex: 0 0 auto; }
.store-upd-empty { margin: -10px 4px 0; font-size: 13.5px; }

/* detail */
.store-detail { gap: 26px; }
.store-d-head { position: relative; display: flex; align-items: center; gap: 26px; padding: 26px; margin: -6px 0 0; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 22%, var(--surface-2)), color-mix(in srgb, var(--b) 12%, var(--surface-2))); box-shadow: inset 0 0 0 1px var(--line); }
.store-d-head::before { content: ''; position: absolute; z-index: -1; left: -60px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 45%, transparent), transparent 70%); }
.store-d-icon .appicon { box-shadow: 0 18px 34px -12px color-mix(in srgb, var(--b) 70%, #000), inset 0 1px 0 rgba(255, 255, 255, .35); }
.store-d-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.store-d-title h1 { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.store-d-title .link { font-size: 14px; }
.store-d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; }
.store-d-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.store-d-actions .btn { height: 36px; border-radius: 18px; padding: 0 18px; }
.store-note { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: -10px; }
.store-note > div { display: flex; flex-direction: column; gap: 1px; font-size: 13px; min-width: 0; }
.store-note b { font-size: 14px; }
.store-note-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .15); }
.store-note.warn .store-note-ic { color: #e5484d; background: rgba(229, 72, 77, .14); }
.store-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); margin-top: -8px; }
.store-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 14px 8px; text-align: center; min-width: 0; }
.store-stat + .store-stat { border-left: 1px solid var(--line); }
.store-stat b { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.store-stat b svg { color: var(--text-2); }
.store-stat:first-child b svg { color: #f5a524; fill: #f5a524; }
.store-stat span { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.store-shots { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; margin: -6px 0 -10px; scroll-snap-type: x mandatory; }
.store-shots .store-shot { scroll-snap-align: start; }
.store-shots .store-shot.portrait { width: 200px; }
.store-d-cols { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.store-about h3 { margin: 0 0 6px; font-size: 17px; }
.store-about p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0 0 16px; }
.store-feat { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.store-feat li { display: flex; align-items: center; gap: 10px; }
.store-feat svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--accent); background: rgba(var(--accent-rgb), .15); }
.store-ratings { padding: 18px; display: flex; gap: 18px; align-items: center; }
.store-r-big { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.store-r-big b { font-family: var(--font-display); font-size: 46px; font-weight: 600; line-height: 1; }
.store-r-big .muted { font-size: 11.5px; }
.store-r-stars { display: inline-flex; gap: 1px; color: var(--line-2); }
.store-r-stars i.on { color: #f5a524; }
.store-r-stars i.on svg { fill: #f5a524; }
.store-r-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.store-r-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); font-weight: 700; }
.store-r-bar .progress { flex: 1; height: 6px; border-radius: 3px; }
.store-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.store-review { padding: 14px 16px; }
.store-review b { font-size: 13.5px; }
.store-review .store-r-stars { margin-left: auto; }
.store-review p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.store-rev-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--a), var(--b)); }
.store-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.store-info > div { padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.store-info dt { font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.store-info dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; }

/* ---------- narrow (phone / small window) ---------- */
.app-store.store-narrow { --store-pad: 14px; }
.app-store.store-narrow .store-split { flex-direction: column; }
.app-store.store-narrow .store-side { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); flex: 0 0 auto; scrollbar-width: none; }
.app-store.store-narrow .store-side::-webkit-scrollbar { display: none; }
.app-store.store-narrow .store-side .side-group-label, .app-store.store-narrow .store-rt-card { display: none; }
.app-store.store-narrow .store-side .side-item { width: auto; flex: 0 0 auto; height: 32px; border-radius: 16px; background: var(--tile); padding: 0 12px; gap: 7px; }
.app-store.store-narrow .store-side .side-item.on { background: var(--accent); color: var(--accent-fg); }
.app-store.store-narrow .store-side .side-item.on .ic { color: inherit; }
.app-store.store-narrow .store-side .side-item .count { margin-left: 2px; color: inherit; opacity: .7; }
.app-store.store-narrow .store-search { width: auto; flex: 1; max-width: none; }
.app-store.store-narrow .store-toolbar h2 { display: none; }
.app-store.store-narrow .store-page { gap: 24px; padding-top: 16px; }
.app-store.store-narrow .store-grid, .app-store.store-narrow .store-chart { grid-template-columns: 1fr; }
.app-store.store-narrow .store-hero-slide { flex-direction: column-reverse; align-items: stretch; padding: 18px 20px 40px; gap: 8px; }
.app-store.store-narrow .store-hero-art { flex: 0 0 186px; height: 186px; }
.app-store.store-narrow .store-hero-device { right: 50%; transform: translate(50%, -50%) rotate(-3deg) scale(.72); }
.app-store.store-narrow .store-hero-device.android { right: 50%; }
.app-store.store-narrow .store-hero-art:hover .store-hero-device { transform: translate(50%, -50%) rotate(-3deg) scale(.72); }
.app-store.store-narrow .store-hero-icon { left: 4px; bottom: -6px; transform: rotate(-8deg) scale(.7); transform-origin: bottom left; }
.app-store.store-narrow .store-hero h1 { font-size: 32px; }
.app-store.store-narrow .store-hero-dots { left: 20px; }
.app-store.store-narrow .store-rt-tiles { grid-template-columns: 1fr 1fr; }
.app-store.store-narrow .store-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
.app-store.store-narrow .store-d-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
.app-store.store-narrow .store-d-head .appicon { --s: 84px !important; }
.app-store.store-narrow .store-d-title h1 { font-size: 28px; }
.app-store.store-narrow .store-stats { display: flex; overflow-x: auto; scrollbar-width: none; }
.app-store.store-narrow .store-stats::-webkit-scrollbar { display: none; }
.app-store.store-narrow .store-stat { flex: 0 0 auto; min-width: 104px; padding: 12px 14px; }
.app-store.store-narrow .toolbar-spacer { display: none; }
.app-store.store-narrow .store-d-cols { grid-template-columns: 1fr; }
.app-store.store-narrow .store-shots .store-shot.landscape { width: 280px; }
.app-store.store-narrow .store-lrow-badge { display: none; }
@media (max-width: 1100px) { .app-store:not(.store-narrow) .store-d-cols { grid-template-columns: 1fr; } }

/* =====================================================================
   Runtime placeholder windows (installed Store apps)
   ===================================================================== */
.app-store-rt { --a: #888; --b: #444; }
.app-store-rt .srt-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.app-store-rt .srt-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); max-width: 360px; text-align: center; }
.app-store-rt .srt-actions { display: flex; gap: 8px; justify-content: center; }
.app-store-rt .srt-step { font-size: 12px; color: var(--text-3); font-weight: 600; min-height: 16px; transition: color .3s; }
.app-store-rt .srt-step.done { color: var(--text-2); }
.app-store-rt .srt-iconwrap { position: relative; display: grid; place-items: center; }
.app-store-rt .srt-iconwrap::before { content: ''; position: absolute; inset: -12px; border-radius: 32%; border: 2px solid color-mix(in srgb, var(--a) 70%, transparent); animation: srt-pulse 2.4s var(--ease-io) infinite; }
@keyframes srt-pulse { 0% { transform: scale(.86); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.srt-off .appicon { filter: grayscale(.8); opacity: .7; }

/* Android: phone frame */
.srt-android { background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--a) 35%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--b) 40%, #0b0e15), #0b0e15); }
.srt-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 18px; }
.srt-phone { height: 100%; max-height: 660px; aspect-ratio: 9 / 19; max-width: 100%; border-radius: 40px; padding: 9px; background: #05070b; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.srt-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(90% 50% at 50% 30%, color-mix(in srgb, var(--a) 80%, transparent), transparent 70%), linear-gradient(170deg, var(--b), color-mix(in srgb, var(--b) 55%, #000)); }
.srt-status { height: 34px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 24px; font-size: 12px; font-weight: 700; position: relative; }
.srt-cam { position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #05070b; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
.srt-sicons { display: flex; align-items: center; gap: 4px; }
.srt-splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 16px; }
.srt-splash h2 { margin: 18px 0 0; font-size: 22px; font-weight: 700; }
.srt-splash p { margin: 0; font-size: 13px; opacity: .75; }
.srt-splash .srt-step { color: rgba(255, 255, 255, .7); }
.srt-android .srt-iconwrap::before { border-color: rgba(255, 255, 255, .5); }
.srt-dots { display: flex; gap: 6px; margin: 18px 0 8px; }
.srt-dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: srt-dot 1.2s ease-in-out infinite; }
.srt-dots i:nth-child(2) { animation-delay: .15s; } .srt-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes srt-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.srt-foot { margin: 0 12px 10px; padding: 14px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.srt-foot p { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.srt-foot .srt-pill { background: rgba(34, 165, 101, .9); color: #fff; }
.srt-foot .btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.srt-gesture { width: 110px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .7); margin: 2px auto 8px; flex: 0 0 auto; }
[data-layout="mobile"] .srt-stage { padding: 0; }
[data-layout="mobile"] .srt-phone { border-radius: 0; padding: 0; height: 100%; max-height: none; width: 100%; aspect-ratio: auto; box-shadow: none; }
[data-layout="mobile"] .srt-screen { border-radius: 0; }

/* Windows: desktop app frame */
.srt-windows { background: var(--surface); }
.srt-menubar { height: 30px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 0 8px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.srt-menubar span { padding: 3px 9px; border-radius: 6px; }
.srt-menubar span:hover { background: var(--hover); }
.srt-ribbon { height: 44px; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.srt-ribbon i { width: 26px; height: 26px; border-radius: 7px; background: var(--tile); }
.srt-ribbon i.sep { width: 1px; height: 22px; border-radius: 0; background: var(--line-2); margin: 0 4px; }
.srt-ribbon i:first-child { background: color-mix(in srgb, var(--a) 40%, var(--tile)); }
.srt-work { flex: 1; min-height: 0; display: flex; container-type: inline-size; }
.srt-panel { width: 190px; flex: 0 0 auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); background: var(--sidebar); }
.srt-panel i { height: 9px; border-radius: 5px; background: var(--tile-hover); }
.srt-panel i:nth-child(odd) { width: 70%; }
.srt-panel i:first-child { background: color-mix(in srgb, var(--a) 50%, var(--tile)); width: 50%; }
.srt-canvas { flex: 1; min-width: 0; display: grid; place-items: center; padding: 20px; overflow: auto;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--a) 14%, transparent), transparent 70%), var(--surface); }
.srt-card { width: min(420px, 100%); padding: 28px 26px 22px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -24px rgba(0, 0, 0, .45); }
.srt-card h2 { margin: 12px 0 0; font-size: 20px; }
.srt-windows .srt-pill { background: rgba(47, 124, 246, .15); color: #4b8ff7; }
.srt-indet { width: 70%; margin-top: 6px; position: relative; }
.srt-indet > i { position: absolute; width: 35%; animation: srt-indet 1.4s var(--ease-io) infinite; }
@keyframes srt-indet { from { left: -35%; } to { left: 100%; } }
.srt-statusbar { height: 26px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--line); background: var(--surface-2); }
@container (max-width: 560px) { .srt-panel { display: none; } }

/* Linux: terminal-ish */
.srt-linux { background: #0c0f14; color: #d5dbe5; }
.srt-term { flex: 1; min-height: 0; display: flex; flex-direction: column; font-family: var(--mono); font-size: 12.5px; }
.srt-thead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--font); }
.srt-thead b { font-size: 14px; color: #fff; }
.srt-thead span { color: rgba(213, 219, 229, .5); font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt-thead .appicon { box-shadow: none; }
.srt-log { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.srt-line { animation: store-fade .2s; white-space: pre-wrap; }
.srt-line b { font-weight: 600; }
.srt-line.ok b { color: #4ade80; }
.srt-line.info b { color: #60a5fa; }
.srt-line.wait b { color: #fbbf24; }
.srt-cursor { display: inline-block; width: 8px; height: 15px; margin-left: 6px; vertical-align: -3px; background: #d5dbe5; animation: srt-blink 1s steps(1) infinite; }
@keyframes srt-blink { 50% { opacity: 0; } }
.srt-linux .srt-card { width: auto; margin: 0 16px 16px; padding: 16px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-family: var(--font); }
.srt-linux .srt-note { color: rgba(213, 219, 229, .7); text-align: left; flex: 1 1 260px; max-width: none; }
.srt-linux .srt-pill { background: rgba(231, 164, 0, .18); color: #f0b429; }
.srt-linux .btn { background: rgba(255, 255, 255, .08); color: #e6e9ef; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* Web: browser-ish */
.srt-web { background: var(--surface); }
.srt-addr { flex: 0 0 auto; margin: 8px 10px; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 15px; background: var(--tile); font-size: 12.5px; color: var(--text-2); }
.srt-addr svg { color: var(--text-3); }
.srt-page { position: relative; flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid var(--line); display: grid; place-items: center; padding: 20px; }
.srt-skel { position: absolute; inset: 0; padding: 16px 22px; display: flex; flex-direction: column; gap: 16px; opacity: .8; }
.srt-skel > *, .srt-skel .sk-row i { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: srt-shimmer 1.6s linear infinite; }
.sk-nav { height: 34px; }
.srt-skel .sk-hero { height: 40%; background: linear-gradient(90deg, color-mix(in srgb, var(--a) 18%, var(--surface-2)), color-mix(in srgb, var(--a) 30%, var(--surface-3)), color-mix(in srgb, var(--a) 18%, var(--surface-2))); background-size: 200% 100%; }
.srt-skel .sk-row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: none; animation: none; }
@keyframes srt-shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.srt-web .srt-card { position: relative; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: color-mix(in srgb, var(--surface-2) 88%, transparent); }
.srt-web .srt-pill { background: rgba(124, 108, 255, .16); color: #8f82ff; }
