:root {
    --bg: #eff0f2; --bg-card: #fff; --text: #000; --muted: #616b78;
    --line: #d0d2d3; --link: #536978; --hover: #e8f5fc;
    --banner-start: #daf5ff; --banner-end: #a9d9f5; --none-banner: #e9edf1;
    --readme-link: #087c98; --none-icon-filter: brightness(0) opacity(.5);
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #10161f; --bg-card: #1c2532; --text: #edf3fa; --muted: #b5bfcc; --line: #3d495b; --link: #b5d2e5; --hover: #263c50; --banner-start: #263c50; --banner-end: #214b61; --none-banner: #263447; --readme-link: #75d0ed; --none-icon-filter: brightness(0) invert(1) opacity(.7); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.store { width: 100%; padding: 28px 34px 32px; }
.store-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
h1 { margin: 0 16px 0 0; font-size: 28px; line-height: 1.3; }
.store-switch { position: relative; display: flex; width: 244px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--bg-card); }
.store-switch-slider { position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: 28px; background: #54b9e6; transition: transform 240ms ease; pointer-events: none; }
.store-switch.is-skills .store-switch-slider { transform: translateX(100%); }
.store-switch-tab { position: relative; z-index: 1; width: 50%; min-height: 44px; padding: 13px 18px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: color 180ms ease; }
.store-switch-tab[aria-selected="true"] { color: #fff; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--readme-link); outline-offset: 3px; }
.store-switch-tab:focus-visible { outline-offset: -4px; border-radius: 28px; }
.store-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 10px 12px; }
.store-status p { margin: 0; font-size: 13px; color: var(--muted); }
.store-grid { display: flex; flex-wrap: wrap; }
.store-card { display: flex; flex-direction: column; flex: 0 1 calc(25% - 20px); min-width: 0; margin: 10px; border-radius: 18px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(35,64,85,.07); }
.store-card-banner { position: relative; height: 0; padding-top: 56.25%; overflow: hidden; background: linear-gradient(135deg,var(--banner-start),var(--banner-end)); }
.store-banner-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 700; color: #fff; }
.store-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.store-none-banner { background: var(--none-banner); }
.store-none-icon { position: absolute; top: 50%; left: 50%; width: 88px; height: 88px; transform: translate(-50%,-50%); filter: var(--none-icon-filter); }
.store-card-content { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.store-card-name { margin: 0; font-size: 21px; font-weight: 600; overflow-wrap: break-word; }
.store-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; max-height: 3em; min-height: 3em; margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
.store-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-card); color: var(--text); font: inherit; text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--hover); }
.store-details { padding: 9px 0; border: 0; background: transparent; color: var(--link); }
.store-details:hover { background: transparent; text-decoration: underline; }
.store-source-link { color: var(--link); font-size: 14px; text-decoration: none; }
.store-source-link:hover { text-decoration: underline; }
.empty { width: 100%; padding: 40px 20px; margin: 10px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.theme-details { position: fixed; inset: 0; z-index: 10; padding: 40px 24px; overflow-y: auto; background: rgba(0,0,0,.5); }
.theme-details-card { max-width: 800px; margin: auto; padding: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 60px rgba(0,0,0,.2); }
.close { float: right; margin: 0 0 16px 16px; }
.theme-details-card h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.3; overflow-wrap: break-word; }
.hint { color: var(--muted); font-size: 13px; padding: 10px 0 16px; margin: 0; }
.theme-readme { clear: both; line-height: 1.6; overflow-wrap: break-word; }
.theme-readme pre { padding: 12px; border-radius: 12px; background: var(--bg); overflow-x: auto; white-space: pre-wrap; }
.theme-readme a { color: var(--readme-link); }
.theme-readme-image { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 8px; }
body.has-dialog { overflow: hidden; }
@media (max-width: 1400px) { .store-card { flex-basis: calc(33.333% - 20px); } }
@media (max-width: 1000px) { .store-card { flex-basis: calc(50% - 20px); } }
@media (max-width: 640px) { .store { padding: 24px 10px; } .store-card { flex-basis: calc(100% - 20px); } .store-topbar { justify-content: center; } h1 { width: 100%; text-align: center; margin: 0 0 2px; } .theme-details { padding: 16px 12px; } .theme-details-card { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .store-switch-slider, .store-switch-tab { transition: none; } }
.store-publisher { color: var(--muted); font-size: 12px; margin: 4px 0 12px; display: flex; justify-content: space-between; gap: 12px; }
.store-safety-note { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 13px; line-height: 1.5; margin: 0 0 22px; }
