/* Store (applications.md, rules 18 and 19; maquette applications-catalogue.html): rubrics on the left, cards with what each application
   shows on a screen, the sheet on the right. The miniatures are drawn on black, like the player. */
.store-modal { width: 100%; }
.store-modal .modal-head h2 { display: flex; align-items: baseline; gap: 12px; }
.store-sub { font-size: 13px; font-weight: 400; color: var(--text-2); }
.store { position: relative; display: grid; grid-template-columns: 232px minmax(0, 1fr); height: calc(100vh - 220px); min-height: 0; }
.store.has-sheet { grid-template-columns: 232px minmax(0, 1fr) 420px; }
.store-rail { border-right: 1px solid var(--border); padding: 20px 12px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); overflow: auto; }
.store-rail .field.search { margin: 0 4px; }
.store-cats { display: flex; flex-direction: column; gap: 2px; }
.store-rail-title { font-size: 12px; color: var(--text-3); padding: 14px 10px 6px; }
.store-cat { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r); font-size: 14px; color: var(--text-2); text-decoration: none; }
.store-cat:hover { background: var(--hover); color: var(--text); }
.store-cat .n { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.store-cat[aria-current] { background: var(--surface-2); color: var(--text); font-weight: 500; position: relative; }
.store-cat[aria-current]::before { content: ""; position: absolute; left: -8px; width: 6px; height: 6px; background: var(--brand); }
.store-main { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 28px; background: var(--bg); overflow: auto; min-width: 0; }
.store-group h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.store-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color 0.15s; }
.store-card[hidden] { display: none; }
.store-card:hover { border-color: var(--border-strong); }
.store-card.is-picked { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.store-shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.store-card > .store-shot { margin: 8px 8px 0; }
.store-card.is-soon .store-shot .pv { filter: saturate(0.35) brightness(0.8); }
.store-status { position: absolute; top: 16px; right: 16px; }
.store-status.tag:not(.tag-ok):not(.tag-info) { background: rgba(255, 255, 255, 0.92); color: #0B1F3A; }
.tag-info { background: var(--info-bg, #E3EEF8); color: var(--info-text, #1F5A8F); }
.store-body { position: relative; padding: 26px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.store-body > .app-dot { position: absolute; top: -20px; left: 14px; width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--surface); }
.store-card.is-soon .store-body > .app-dot { filter: grayscale(0.6); opacity: 0.8; }
.store-name { font-weight: 500; font-size: 15px; color: var(--text); text-decoration: none; }
.store-name::after { content: ""; position: absolute; inset: 0; }
.store-card:has(.store-name:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.store-body > small { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.store-hints { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.store-hints span, .store-use { display: inline-flex; align-items: center; gap: 4px; }
.store-hints .i, .store-use .i { width: 13px; height: 13px; }
.store-use { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--text-2); }
.store-install { position: relative; z-index: 1; margin-top: auto; justify-content: center; }
.store-body > .store-install { margin-top: 12px; }
.store-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.store-feature[hidden] { display: none; }
.store-feature > .store-shot { border-radius: 0; aspect-ratio: auto; min-height: 240px; }
.store-feature-text { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.store-feature-text .eyebrow { font-size: 12px; color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; }
.store-feature-text h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 500; }
.store-feature-text h3 a { color: var(--text); text-decoration: none; }
.store-feature-text p { margin: 0; color: var(--text-2); line-height: 1.55; }
.store-feature-text ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.store-feature-text li { display: flex; gap: 8px; align-items: center; }
.store-feature-text li .i { color: var(--ok); }
.store-sheet { border-left: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.store-sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border); }
.store-sheet-head b { font-size: 17px; font-weight: 500; }
.store-sheet-head .icon-btn { margin-left: auto; }
.store-sheet-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; overflow: auto; }
.store-sheet-body h4 { margin: 0 0 8px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.store-sheet-body p { margin: 0; color: var(--text-2); line-height: 1.55; font-size: 14px; }
.store-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store-facts li { border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.store-settings { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.store-settings li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.store-sheet-foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.store-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 64px 24px; color: var(--text-2); }
.store-empty[hidden] { display: none; }
.store-empty b { color: var(--text); font-weight: 500; font-size: 16px; }
.store-empty span:not(.empty-icon) { max-width: 420px; }

@media (max-width: 1100px) {
  .store.has-sheet { grid-template-columns: 232px minmax(0, 1fr); }
  .store-sheet { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); box-shadow: -12px 0 32px rgba(11, 31, 58, 0.1); z-index: 2; }
}
@media (max-width: 760px) {
  .store, .store.has-sheet { grid-template-columns: minmax(0, 1fr); height: auto; }
  .store-rail { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .store-cats { flex-direction: row; overflow-x: auto; gap: 8px; }
  .store-rail-title { display: none; }
  .store-cat { flex: none; height: var(--h-sm, 30px); border: 1px solid var(--border-strong); border-radius: 999px; }
  .store-cat .n, .store-cat[aria-current]::before { display: none; }
  .store-cat[aria-current] { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
  .store-main { padding: 16px; }
  .store-feature { grid-template-columns: minmax(0, 1fr); }
  .store-feature > .store-shot { min-height: 0; aspect-ratio: 16 / 9; }
  .store-grid { grid-template-columns: minmax(0, 1fr); }
  .store-sheet { position: fixed; inset: 0; width: auto; z-index: 50; }
  .store-facts { grid-template-columns: minmax(0, 1fr); }
}

/* Miniatures (StorePreview.razor): fixed colours, like the player. */
.pv { position: absolute; inset: 0; overflow: hidden; }
.pv i, .pv b { position: absolute; display: block; }
.pv-photo { background: linear-gradient(180deg, #8fb6d9 0%, #cfe0ee 55%, #5b6f86 56%, #2a3a4f 100%); }
.pv-photo .sun { right: 14%; top: 14%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #f6d58a; }
.pv-photo .b1, .pv-photo .b2, .pv-photo .b3 { bottom: 30%; background: #3b4d63; }
.pv-photo .b1 { left: 10%; width: 18%; height: 38%; }
.pv-photo .b2 { left: 30%; width: 26%; height: 52%; background: #2f4157; }
.pv-photo .b3 { left: 60%; width: 14%; height: 30%; }
.pv-video { background: radial-gradient(120% 90% at 70% 20%, #7b5cc4 0%, #2b1f55 55%, #0d0a1f 100%); }
.pv .play { left: 50%; top: 45%; transform: translate(-50%, -50%); width: 18%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.pv .play::after { content: ""; position: absolute; left: 40%; top: 30%; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.pv .bar { left: 6%; right: 6%; bottom: 9%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.pv .bar i { position: static; height: 100%; width: 38%; border-radius: 2px; background: #fff; }
.pv .bar.red i { background: #ff2d2d; }
.pv-stack { background: #101826; }
.pv-stack .s { width: 56%; aspect-ratio: 16 / 10; border-radius: 4px; border: 2px solid #fff; }
.pv-stack .s1 { left: 12%; top: 20%; transform: rotate(-6deg); background: linear-gradient(135deg, #f0a92e, #f6d58a); }
.pv-stack .s2 { left: 22%; top: 14%; transform: rotate(3deg); background: linear-gradient(135deg, #2f6fad, #8fb6d9); }
.pv-stack .s3 { left: 32%; top: 18%; transform: rotate(-1deg); background: linear-gradient(135deg, #1e8e5a, #9fd5b8); }
.pv-film { background: #0d0a1f; display: flex; align-items: center; gap: 4%; padding: 0 5%; }
.pv-film .f { position: static; flex: 1; aspect-ratio: 9 / 12; border-radius: 3px; background: linear-gradient(160deg, #7b5cc4, #2b1f55); }
.pv-film .f:nth-child(2) { flex: 1.4; background: linear-gradient(160deg, #d65aa0, #4a1d55); }
.pv-film .f:nth-child(3) { background: linear-gradient(160deg, #3d63f2, #1a2a6c); }
.pv-li { background: #f3f2ef; }
.pv-li .post { left: 8%; top: 12%; width: 40%; bottom: 12%; }
.pv-li .who { position: static; width: 60%; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #0a66c2 0 18%, transparent 18% 24%, #1d2226 24%); }
.pv-li .ln { position: static; height: 4px; border-radius: 2px; background: #c9ccd1; margin-top: 8px; }
.pv-li .ln.s { width: 60%; }
.pv-li .img { right: 8%; top: 12%; width: 40%; bottom: 12%; border-radius: 4px; background: linear-gradient(135deg, #0a66c2, #70b5f9); }
.pv-ig { background: #0e0e10; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; padding: 3px; }
.pv-ig i { position: static; border-radius: 2px; }
.pv-ig i:nth-child(1) { background: #d6266b; } .pv-ig i:nth-child(2) { background: #f58529; } .pv-ig i:nth-child(3) { background: #515bd4; } .pv-ig i:nth-child(4) { background: #8134af; }
.pv-ig i:nth-child(5) { background: #feda77; } .pv-ig i:nth-child(6) { background: #dd2a7b; } .pv-ig i:nth-child(7) { background: #2f6fad; } .pv-ig i:nth-child(8) { background: #1e8e5a; }
.pv-doc { background: #e8eaed; }
.pv-doc .page { left: 27%; right: 27%; top: 8%; bottom: 0; background: #fff; border-radius: 2px 2px 0 0; padding: 7% 6%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.pv-doc .page i { position: static; height: 3px; background: #c4c7cc; border-radius: 2px; margin-top: 6px; }
.pv-doc .page i.t { height: 6px; width: 70%; background: #1a73e8; margin: 0 0 4px; }
.pv-doc .page i.s { width: 55%; }
.pv-slide { background: #fff; }
.pv-slide .t { left: 9%; top: 12%; width: 40%; height: 7px; border-radius: 2px; background: #202124; }
.pv-slide .bars { left: 9%; bottom: 14%; width: 40%; height: 50%; display: flex; align-items: flex-end; gap: 8%; }
.pv-slide .bars i { position: static; flex: 1; background: #f4b400; border-radius: 2px 2px 0 0; }
.pv-slide .kpi { right: 12%; bottom: 24%; width: 26%; height: 14%; border-radius: 3px; background: #188038; }
.pv-web { background: #fff; }
.pv-web .nav { left: 0; right: 0; top: 0; height: 12%; background: #0b1f3a; }
.pv-web .hero { left: 0; right: 0; top: 12%; height: 44%; background: linear-gradient(120deg, #3a9399, #a7d7d4); padding: 5% 6%; }
.pv-web .hero i { position: static; width: 50%; height: 8px; border-radius: 2px; background: #fff; }
.pv-web .hero i + i { width: 34%; height: 4px; margin-top: 6px; background: rgba(255, 255, 255, 0.75); }
.pv-web .cards { left: 6%; right: 6%; top: 64%; height: 26%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.pv-web .cards i { position: static; border-radius: 3px; background: #edf1f5; }
.pv-yt { background: radial-gradient(100% 80% at 30% 30%, #4a4a4a, #111); }
.pv-yt .logo { left: 50%; top: 44%; transform: translate(-50%, -50%); width: 20%; aspect-ratio: 1.45; border-radius: 22%; background: #e3261d; }
.pv-yt .logo::after { content: ""; position: absolute; left: 40%; top: 28%; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pv-rss { background: #0b1f3a; }
.pv-rss .tag { left: 8%; top: 14%; width: 16%; height: 4px; border-radius: 2px; background: #f2a07a; }
.pv-rss .title { left: 8%; top: 26%; width: 70%; height: 10%; border-radius: 3px; background: #fff; }
.pv-rss .title.s { top: 41%; width: 48%; }
.pv-rss .tick { left: 0; right: 0; bottom: 0; height: 18%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 18%, transparent 18% 22%) 30% 50% / 80% 18% no-repeat, #f2541b; }
.pv-clock, .pv-weather { background: radial-gradient(120% 90% at 30% 20%, #2f4157, #0b1f3a); }
.pv-clock b, .pv-weather b { right: 8%; top: 10%; font: 500 22px/1 "IBM Plex Sans", sans-serif; color: #fff; }
.pv-weather .sun { right: 38%; top: 9%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #f6d58a; }
.pv-ticker { background: linear-gradient(180deg, #8fb6d9, #2a3a4f); }
.pv-ticker .tick { left: 0; right: 0; bottom: 0; height: 18%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 18%, transparent 18% 22%) 30% 50% / 80% 18% no-repeat, #4f6bed; }
.pv-composition { background: #0b1f3a; }
.pv-composition .pic { right: 6%; top: 10%; width: 40%; height: 80%; border-radius: 4px; background: linear-gradient(180deg, #8fb6d9 0%, #cfe0ee 50%, #5b6f86 51%, #2a3a4f 100%); }
.pv-composition .t1 { left: 6%; top: 28%; width: 40%; height: 10%; border-radius: 2px; background: #fff; }
.pv-composition .t2 { left: 6%; top: 44%; width: 30%; height: 5%; border-radius: 2px; background: #9aaabd; }
.pv-composition .qr { left: 6%; bottom: 12%; width: 13%; aspect-ratio: 1; background: #fff; border: 3px solid #fff; background-image: repeating-conic-gradient(#0b1f3a 0 25%, #fff 0 50%); background-size: 25% 25%; }
.pv-qr { background: linear-gradient(180deg, #8fb6d9, #2a3a4f); }
.pv-qr .qr { right: 8%; bottom: 12%; width: 22%; aspect-ratio: 1; background: #fff; border: 4px solid #fff; background-image: repeating-conic-gradient(#0b1f3a 0 25%, #fff 0 50%); background-size: 25% 25%; }
.store-feature .pv-rss .title { height: 12%; }
