/* Compact catalogue with entry points in Apps and Home, never the sidebar header. */
#sidebar #users #sidebarAppStore{display:flex;align-items:center;gap:10px;flex:0 0 auto;width:calc(100% - 16px);min-height:58px;margin:6px 8px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:none;font:inherit;text-align:start;cursor:pointer}
#sidebarAppStore>svg{width:26px;height:26px;flex:0 0 26px;color:var(--brand)}
#sidebarAppStore>span:first-of-type{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
#sidebar #users #sidebarAppStore strong{font-size:14px;color:var(--ink);-webkit-text-fill-color:currentColor}
#sidebar #users #sidebarAppStore small{font-size:11px;color:var(--muted);-webkit-text-fill-color:currentColor}
#sidebarAppStore>span:last-child{font-size:22px;color:var(--brand)}
#systemAppStoreModal{--store-paper:var(--paper,#fff);--store-ink:var(--ink,#18352f);--store-muted:var(--muted,#61736f);--store-line:var(--line,#dce5e1);--store-brand:var(--brand,#217866);--store-soft:color-mix(in srgb,var(--store-brand) 6%,var(--store-paper));display:flex;align-items:center;justify-content:center;padding:20px;z-index:2200;background:#08161580;backdrop-filter:none}
#systemAppStoreModal *,#systemAppStoreModal *::before,#systemAppStoreModal *::after{box-sizing:border-box}
#systemAppStoreModal .system-app-store-panel{display:flex!important;flex-direction:column;gap:0!important;width:min(1000px,100%)!important;height:auto!important;max-height:calc(100dvh - 40px)!important;min-height:0;margin:0;padding:0!important;border:1px solid var(--store-line)!important;border-radius:18px!important;background:var(--store-paper)!important;color:var(--store-ink)!important;box-shadow:0 12px 36px #0002;overflow:hidden}
#systemAppStoreModal .system-app-store-panel>header{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:64px;padding:10px 18px!important;border-bottom:1px solid var(--store-line);background:var(--store-paper)!important}
#systemAppStoreModal header>div{flex:1;min-width:0}
#systemAppStoreModal .store-brand-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:var(--store-soft);color:var(--store-brand)}
#systemAppStoreModal svg{display:block;width:22px;height:22px;flex:0 0 22px}
#systemAppStoreModal .system-app-store-panel header h2{margin:0;color:var(--store-ink)!important;-webkit-text-fill-color:currentColor!important;font-size:19px;font-weight:750;line-height:1.6}
#systemAppStoreModal .system-app-store-panel header small{display:none}
#systemAppStoreModal button{font:inherit;box-shadow:none!important;cursor:pointer;transform:none;min-height:44px}
#systemAppStoreModal .system-app-store-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--store-ink)!important}
#systemAppStoreModal .store-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;flex-shrink:0;padding:14px 18px 6px}
#systemAppStoreModal .system-app-store-hint{display:none}
#systemAppStoreModal .system-app-store-search{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;margin:0;padding:0 12px;min-height:44px;border:1px solid var(--store-line)!important;border-radius:10px!important;background:var(--store-soft)!important;color:var(--store-muted)!important;box-shadow:none!important}
#systemAppStoreModal .system-app-store-search input{width:100%;min-width:0;min-height:42px!important;margin:0;padding:8px 0;border:0!important;border-radius:0!important;background:transparent!important;color:var(--store-ink)!important;-webkit-text-fill-color:currentColor!important;font:inherit;font-size:14px!important;box-shadow:none!important;outline:none}
#systemAppStoreModal .system-app-store-search input::placeholder{color:var(--store-muted)!important;opacity:1;-webkit-text-fill-color:currentColor!important}
#systemAppStoreModal .store-filters{grid-column:2;grid-row:1;display:flex;gap:4px;align-items:center;margin:0}
#systemAppStoreModal .store-filters button{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;border:1px solid transparent;border-radius:10px!important;background:transparent;color:var(--store-muted)!important;font-size:12px;white-space:nowrap}
#systemAppStoreModal .store-filters button[aria-pressed=true]{border-color:var(--store-line);background:var(--store-soft);color:var(--store-ink)!important}
#systemAppStoreModal .store-filters span{font-size:11px;font-variant-numeric:tabular-nums}
#systemAppStoreModal .store-results{grid-column:1/-1;margin:0;color:var(--store-muted);font-size:11px;min-height:18px;line-height:1.6}
#systemAppStoreModal .system-app-store-list{flex:0 1 auto;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px;padding:6px 18px 16px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#systemAppStoreModal .system-app-store-panel .system-app-store-option{display:grid!important;grid-template-columns:40px minmax(0,1fr) 22px;align-items:center;gap:10px;min-width:0;min-height:94px!important;margin:0!important;padding:12px!important;border:1px solid var(--store-line)!important;border-radius:12px!important;background:var(--store-paper)!important;box-shadow:none!important;transform:none;cursor:pointer}
#systemAppStoreModal .system-app-store-panel .system-app-store-option:has(input:checked){border-color:color-mix(in srgb,var(--store-brand) 45%,var(--store-line))!important;background:var(--store-soft)!important}
#systemAppStoreModal .system-app-store-option img{width:40px;height:40px;object-fit:cover;border:0;border-radius:10px;background:var(--store-soft)}
#systemAppStoreModal .account-system-app-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#systemAppStoreModal .system-app-store-panel .account-system-app-copy strong{color:var(--store-ink)!important;-webkit-text-fill-color:currentColor!important;font-size:14px!important;font-weight:700;line-height:1.6}
#systemAppStoreModal .system-app-store-panel .account-system-app-copy small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--store-muted)!important;-webkit-text-fill-color:currentColor!important;font-size:11px!important;font-weight:400;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
#systemAppStoreModal .system-app-store-option input{appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;width:22px!important;height:22px!important;min-height:0!important;margin:0!important;opacity:1!important;accent-color:var(--store-brand)!important;cursor:pointer;color-scheme:light}
#systemAppStoreModal .system-app-store-option:has(input:disabled){cursor:wait;opacity:.65}
#systemAppStoreModal .system-app-store-empty{grid-column:1/-1;min-height:80px;margin:0;padding:22px;color:var(--store-muted)!important;font-size:14px;line-height:2;text-align:center}
#systemAppStoreModal .store-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;margin:0;padding:10px 18px;border-top:1px solid var(--store-line);color:var(--store-muted);font-size:11px;line-height:1.7}
#systemAppStoreModal .store-native-update{padding:6px 10px;border:1px solid var(--store-line);border-radius:10px;background:transparent;color:var(--store-ink);font-size:11px;white-space:nowrap}
#systemAppStoreModal :is(button,input):focus-visible,#sidebar #sidebarAppStore:focus-visible{outline:2px solid var(--brand)!important;outline-offset:2px}
#systemAppStoreModal .system-app-store-search input:focus-visible{outline:none!important}
#systemAppStoreModal .system-app-store-search:focus-within{border-color:var(--store-brand)!important}
html[data-theme="dark"] #systemAppStoreModal .system-app-store-option input,html[data-theme="classic"] #systemAppStoreModal .system-app-store-option input{color-scheme:dark}
@media(min-width:701px) and (max-width:950px){#systemAppStoreModal .system-app-store-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#systemAppStoreModal{padding:0!important}#systemAppStoreModal .system-app-store-panel{width:100%!important;height:var(--app-height,100dvh)!important;max-height:var(--app-height,100dvh)!important;border:0!important;border-radius:0!important;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}#systemAppStoreModal .system-app-store-panel>header{min-height:60px;padding:8px 14px!important}#systemAppStoreModal .store-toolbar{grid-template-columns:minmax(0,1fr);padding:10px 14px 4px;gap:6px}#systemAppStoreModal .system-app-store-search{grid-column:1;grid-row:1}#systemAppStoreModal .store-filters{grid-column:1;grid-row:2}#systemAppStoreModal .store-results{grid-row:3}#systemAppStoreModal .system-app-store-list{flex:1;grid-template-columns:1fr;padding:6px 14px 14px;gap:8px}#systemAppStoreModal .system-app-store-panel .system-app-store-option{min-height:84px!important;padding:10px 12px!important}#systemAppStoreModal .store-footer{padding:8px 14px;flex-wrap:wrap;gap:6px}}
@media(max-height:500px){#systemAppStoreModal .store-footer{display:none}#systemAppStoreModal .system-app-store-panel>header{min-height:52px;padding-block:4px!important}#systemAppStoreModal .store-toolbar{padding-top:6px}}
@media(prefers-reduced-motion:reduce){#systemAppStoreModal *{transition:none!important;scroll-behavior:auto!important}}
#app .home-app-store-open { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); font:inherit; cursor:pointer; }
#app .home-app-store-open svg { width:22px; height:22px; flex-shrink:0; }
#app .home-app-store-open:hover { border-color:var(--brand); }
#app .home-app-store-open:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
