/* Downloads store page /downloads/ (inc/theme-store.php, 1.4.360). Uses the site's design tokens, so it follows light and dark mode. */
.ch-store { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) 16px clamp(48px, 6vw, 96px); }
.ch-store__head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 48px); }
.ch-store__kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-blue, #229bff); }
.ch-store h1 { margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; color: var(--text-primary, #f8fafc); }
.ch-store__lead { margin: 0 0 12px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-secondary, #b7c1d1); }
.ch-store__small { margin: 0; font-size: 15px; }
.ch-store__small a { color: var(--brand-blue, #229bff); font-weight: 600; }
.ch-store__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.ch-store__card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-subtle, #18243a); border-radius: var(--radius-lg, 18px); background: var(--surface-primary, #0d1425); }
.ch-store__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-secondary, #121b30); }
.ch-store__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ch-store__card:hover .ch-store__media img { transform: scale(1.03); }
.ch-store__noimg { display: block; width: 100%; height: 100%; }
.ch-store__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.ch-store__tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text-primary, #f8fafc); background: var(--surface-secondary, #121b30); border: 1px solid var(--border-subtle, #18243a); }
.ch-store__card h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.ch-store__card h2 a { color: var(--text-primary, #f8fafc); text-decoration: none; }
.ch-store__card h2 a:hover { text-decoration: underline; }
.ch-store__card p { margin: 0; color: var(--text-secondary, #b7c1d1); line-height: 1.55; font-size: 15px; }
.ch-store__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.ch-store__price { font-size: 20px; font-weight: 800; color: var(--text-primary, #f8fafc); }
.ch-store__price del { opacity: .6; font-weight: 500; font-size: 15px; margin-right: 6px; }
.ch-store__price ins { text-decoration: none; }
.ch-store__btns { display: flex; gap: 8px; }
.ch-store__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #ffffff; background: linear-gradient(135deg, var(--brand-purple, #8b5cf6), var(--brand-blue, #229bff)); }
.ch-store__btn--ghost { color: var(--text-primary, #f8fafc); background: transparent; border: 1px solid var(--border-strong, #33456a); }
.ch-store__btn:focus-visible { outline: 2px solid var(--brand-blue, #229bff); outline-offset: 3px; }
.ch-store__empty { padding: 24px; border: 1px dashed var(--border-strong, #33456a); border-radius: var(--radius-lg, 18px); color: var(--text-secondary, #b7c1d1); }
@media (max-width: 480px) { .ch-store__foot { flex-direction: column; align-items: stretch; } .ch-store__btns { width: 100%; } .ch-store__btn { flex: 1; } }
.ch-store__preview { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--text-primary, #f8fafc); background: color-mix(in srgb, var(--brand-blue, #229bff) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand-blue, #229bff) 45%, transparent); }
.ch-store__preview:hover { background: color-mix(in srgb, var(--brand-blue, #229bff) 24%, transparent); }
.ch-store__preview:focus-visible { outline: 2px solid var(--brand-blue, #229bff); outline-offset: 3px; }

/* Live preview frame /downloads/preview/<slug>/ (1.4.361). A page of its own, without the site's stylesheets, so its colours are fixed. */
html:has(.ch-pv), .ch-pv { height: 100%; }
.ch-pv { margin: 0; display: flex; flex-direction: column; background: #070b16; color: #f8fafc; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ch-pv__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: #0d1425; border-bottom: 1px solid #1f2c47; }
.ch-pv__back { color: #cfe3ff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ch-pv__back:hover { color: #ffffff; text-decoration: underline; }
.ch-pv__name { margin: 0; flex: 1 1 200px; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-pv__devices { display: inline-flex; padding: 3px; border-radius: 999px; background: #121b30; border: 1px solid #1f2c47; }
.ch-pv__devices button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #b7c1d1; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ch-pv__devices button[aria-pressed="true"] { background: #229bff; color: #ffffff; }
.ch-pv__devices button:focus-visible { outline: 2px solid #229bff; outline-offset: 2px; }
.ch-pv__actions { display: flex; align-items: center; gap: 8px; }
.ch-pv__price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.ch-pv__price del { opacity: .6; font-weight: 500; font-size: 14px; margin-right: 4px; }
.ch-pv__price ins { text-decoration: none; }
.ch-pv .ch-store__btn--ghost { color: #f8fafc; border-color: #33456a; }
.ch-pv__small { min-height: 38px; padding: 6px 18px; }
.ch-pv__stage { flex: 1; display: flex; justify-content: center; min-height: 0; background: #070b16; }
.ch-pv__frame { display: block; width: 100%; height: 100%; border: 0; background: #ffffff; transition: width .3s ease; }
.ch-pv__frame.is-device { margin: 16px 0; height: calc(100% - 32px); border-radius: 18px; box-shadow: 0 0 0 10px #1a2540, 0 20px 50px rgba(0, 0, 0, .5); max-width: calc(100% - 40px); }
@media (max-width: 720px) {
	.ch-pv__devices { display: none; }
	.ch-pv__name { order: 3; flex-basis: 100%; }
	.ch-pv__actions { margin-left: auto; }
	.ch-pv__actions .ch-store__btn--ghost { display: none; }
}

/* 1.4.369 promises: "Lifelong free updates" + "Free installation support" (banner, card pills, product page, preview bar). */
.ch-store__promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 0 0 clamp(28px, 4vw, 44px); padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius-lg, 18px); border: 1px solid color-mix(in srgb, #10b981 45%, transparent); background: color-mix(in srgb, #10b981 10%, var(--surface-primary, #0d1425)); }
.ch-store__promise-item { display: flex; gap: 14px; align-items: flex-start; }
.ch-store__promise-item svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: #ffffff; background: #0f9f6e; }
.ch-store__promise-item:nth-child(2) svg { background: var(--brand-blue, #229bff); }
.ch-store__promise h2 { margin: 0 0 4px; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.25; color: var(--text-primary, #f8fafc); }
.ch-store__promise p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary, #b7c1d1); }
.ch-perks { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.ch-perks__item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--text-primary, #f8fafc); background: color-mix(in srgb, #10b981 14%, transparent); border: 1px solid color-mix(in srgb, #10b981 50%, transparent); }
.ch-perks__item--install { background: color-mix(in srgb, var(--brand-blue, #229bff) 12%, transparent); border-color: color-mix(in srgb, var(--brand-blue, #229bff) 48%, transparent); }
.ch-perks__item svg { width: 16px; height: 16px; flex: none; color: #10b981; }
.ch-perks__item--install svg { color: var(--brand-blue, #229bff); }
.ch-perks--single { margin: 4px 0 18px; gap: 8px 10px; }
.ch-perks--single .ch-perks__item { padding: 8px 14px 8px 10px; font-size: 15px; }
.ch-perks--single .ch-perks__item svg { width: 18px; height: 18px; }
.ch-pv__perk { margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #d1fae5; background: rgba(16, 185, 129, .16); border: 1px solid rgba(16, 185, 129, .5); }
@media (max-width: 900px) { .ch-pv__perk { display: none; } }

/* 1.4.370 marketplace layout (.ch-mk): industries left, themes right. Site tokens, so light and dark mode both work. */
.ch-mk { max-width: 1320px; margin: 0 auto; padding: calc(78px + clamp(20px, 3vw, 40px)) 16px clamp(48px, 6vw, 96px); color: var(--text-primary, #f8fafc); }
.ch-mk__ico { width: 18px; height: 18px; flex: none; }
.ch-mk__crumbs { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 14px; color: var(--text-secondary, #b7c1d1); }
.ch-mk__crumbs a { color: var(--text-secondary, #b7c1d1); text-decoration: none; }
.ch-mk__crumbs a:hover { color: var(--text-primary, #f8fafc); text-decoration: underline; }
.ch-mk__headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.ch-mk__intro { flex: 1 1 520px; max-width: 760px; }
.ch-mk h1 { margin: 0 0 10px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; color: var(--text-primary, #f8fafc); }
.ch-mk__intro p { margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--text-secondary, #b7c1d1); text-wrap: pretty; }
.ch-mk__search { position: relative; flex: 0 1 380px; display: flex; align-items: center; }
.ch-mk__search .ch-mk__ico { position: absolute; left: 16px; color: var(--text-secondary, #b7c1d1); pointer-events: none; }
.ch-mk__search input { width: 100%; min-height: 50px; padding: 12px 16px 12px 46px; border-radius: 12px; border: 1px solid var(--border-strong, #33456a); background: var(--surface-primary, #0d1425); color: var(--text-primary, #f8fafc); font: inherit; font-size: 16px; }
.ch-mk__search input::placeholder { color: var(--text-secondary, #b7c1d1); opacity: .8; }
.ch-mk__search input:focus-visible { outline: 2px solid var(--brand-blue, #229bff); outline-offset: 2px; border-color: transparent; }
.ch-mk__promise { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.ch-mk__promise-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.4; color: var(--text-secondary, #b7c1d1); border: 1px solid color-mix(in srgb, #10b981 45%, transparent); background: color-mix(in srgb, #10b981 10%, transparent); }
.ch-mk__promise-item strong { color: var(--text-primary, #f8fafc); }
.ch-mk__promise-item .ch-mk__ico { width: 30px; height: 30px; padding: 6px; border-radius: 8px; color: #ffffff; background: #0f9f6e; }
.ch-mk__promise-item--install { border-color: color-mix(in srgb, var(--brand-blue, #229bff) 45%, transparent); background: color-mix(in srgb, var(--brand-blue, #229bff) 9%, transparent); }
.ch-mk__promise-item--install .ch-mk__ico { background: var(--brand-blue, #229bff); }

.ch-mk__layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: clamp(28px, 3.4vw, 40px); }
.ch-mk__side { position: sticky; top: 112px; display: grid; gap: 16px; }
.ch-mk__panel { border: 1px solid var(--border-subtle, #18243a); border-radius: 14px; background: var(--surface-primary, #0d1425); padding: 8px; }
.ch-mk__panel > summary { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.ch-mk__panel > summary::-webkit-details-marker { display: none; }
.ch-mk__panel > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.ch-mk__panel[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.ch-mk__panel > summary:focus-visible { outline: 2px solid var(--brand-blue, #229bff); outline-offset: 2px; border-radius: 8px; }
.ch-mk__panel--plain { padding: 18px; }
.ch-mk__panel h2 { margin: 0 0 12px; font-size: 16px; line-height: 1.3; }
.ch-mk__panel p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--text-secondary, #b7c1d1); }
.ch-mk__cats { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.ch-mk__cats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--text-secondary, #b7c1d1); text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.ch-mk__cats a:hover { background: var(--surface-secondary, #121b30); color: var(--text-primary, #f8fafc); }
.ch-mk__cats a[aria-current="true"] { background: color-mix(in srgb, var(--brand-blue, #229bff) 16%, transparent); color: var(--text-primary, #f8fafc); }
.ch-mk__cats a[aria-current="true"] .ch-mk__count { background: var(--brand-blue, #229bff); color: #ffffff; }
.ch-mk__cats a:focus-visible { outline: 2px solid var(--brand-blue, #229bff); outline-offset: 1px; }
.ch-mk__count { min-width: 28px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; background: var(--surface-secondary, #121b30); color: var(--text-secondary, #b7c1d1); }
.ch-mk__incl { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ch-mk__incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--text-secondary, #b7c1d1); }
.ch-mk__incl .ch-mk__ico { width: 16px; height: 16px; margin-top: 1px; color: #10b981; }
.ch-mk__link { font-size: 14px; font-weight: 700; color: var(--brand-blue, #229bff); }

.ch-mk__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 10px 10px 10px 16px; border: 1px solid var(--border-subtle, #18243a); border-radius: 12px; background: var(--surface-primary, #0d1425); }
.ch-mk__result { margin: 0; font-size: 15px; font-weight: 700; }
.ch-mk__result [data-store-in] { font-weight: 500; color: var(--text-secondary, #b7c1d1); }
.ch-mk__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary, #b7c1d1); }
.ch-mk__sort select { min-height: 40px; padding: 6px 34px 6px 12px; border-radius: 8px; border: 1px solid var(--border-strong, #33456a); background: var(--surface-secondary, #121b30); color: var(--text-primary, #f8fafc); font: inherit; font-size: 14px; font-weight: 600; }
.ch-mk__sort select:focus-visible { outline: 2px solid var(--brand-blue, #229bff); outline-offset: 2px; }

.ch-mk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ch-mk__card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-subtle, #18243a); border-radius: 14px; background: var(--surface-primary, #0d1425); transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .3s ease; }
.ch-mk__card[hidden] { display: none; }
.ch-mk__card:hover { transform: translateY(-3px); border-color: var(--border-strong, #33456a); }
.ch-mk__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-secondary, #121b30); }
.ch-mk__thumb > a { display: block; height: 100%; }
.ch-mk__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ch-mk__noimg { display: block; width: 100%; height: 100%; }
.ch-mk__peek { position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: #0b1220; background: #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.ch-mk__card:hover .ch-mk__peek, .ch-mk__card:focus-within .ch-mk__peek { opacity: 1; transform: translate(-50%, 0); }
.ch-mk__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; }
.ch-mk__title { margin: 0; font-size: 18px; line-height: 1.3; }
.ch-mk__title a { color: var(--text-primary, #f8fafc); text-decoration: none; }
.ch-mk__title a:hover { text-decoration: underline; }
.ch-mk__meta { margin: -4px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-secondary, #b7c1d1); }
.ch-mk__meta a { color: var(--brand-blue, #229bff); font-weight: 600; text-decoration: none; }
.ch-mk__meta a:hover { text-decoration: underline; }
.ch-mk__tags, .ch-mk__perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ch-mk__tags li { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary, #b7c1d1); background: var(--surface-secondary, #121b30); border: 1px solid var(--border-subtle, #18243a); }
.ch-mk__perks li { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--text-primary, #f8fafc); }
.ch-mk__perks li + li { margin-left: 8px; }
.ch-mk__perks .ch-mk__ico { width: 15px; height: 15px; color: #10b981; }
.ch-mk__perks li + li .ch-mk__ico { color: var(--brand-blue, #229bff); }
.ch-mk__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle, #18243a); }
.ch-mk__foot .ch-mk__actions { width: 100%; }
.ch-mk__foot .ch-mk__btn { flex: 1; }
.ch-mk__price { font-size: 22px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.ch-mk__price del { opacity: .6; font-weight: 500; font-size: 14px; margin-right: 6px; }
.ch-mk__price ins { text-decoration: none; }
.ch-mk__actions { display: flex; gap: 8px; }
.ch-mk__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background-color .3s ease, border-color .3s ease; }
.ch-mk__btn:active { transform: scale(.98); }
.ch-mk__btn:focus-visible { outline: 2px solid var(--brand-blue, #229bff); outline-offset: 2px; }
.ch-mk__btn--ghost { color: var(--text-primary, #f8fafc); border: 1px solid var(--border-strong, #33456a); background: transparent; }
.ch-mk__btn--ghost:hover { border-color: var(--brand-blue, #229bff); }
.ch-mk__btn--buy { color: #ffffff; background: linear-gradient(135deg, var(--brand-purple, #8b5cf6), var(--brand-blue, #229bff)); }
.ch-mk__btn--buy .ch-mk__ico { width: 17px; height: 17px; }
.ch-mk__none { margin: 0; padding: 28px; border: 1px dashed var(--border-strong, #33456a); border-radius: 14px; text-align: center; color: var(--text-secondary, #b7c1d1); }

@media (max-width: 900px) {
	.ch-mk__layout { grid-template-columns: 1fr; gap: 20px; }
	.ch-mk__side { position: static; }
	.ch-mk__side .ch-mk__panel--plain { display: none; }
	.ch-mk__panel[open] .ch-mk__cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
	.ch-mk__search { flex-basis: 100%; }
}
@media (hover: none) { .ch-mk__peek { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .ch-mk__card, .ch-mk__peek, .ch-mk__panel > summary::after { transition: none; } .ch-mk__card:hover { transform: none; } }
