/* Theme-only additions on top of the generated design system (assets/css/picso.css). */

/* Hero without the media collage: a quiet grid + glow until promoted assets exist. */
.hero-plain .hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%); }
.hero-plain .hero-shade { background: linear-gradient(180deg, rgba(10,10,15,0) 60%, var(--ink-950) 100%); }
.hero-plain .hero-glow { width: 900px; height: 900px; background: radial-gradient(circle, rgba(212,255,58,.14), transparent 60%); }

/* Format cards without imagery: tinted panel with a large glyph and a one-line promise. */
.type-card .tc-media-icon { display: grid; align-content: space-between; padding: 22px; background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--c) 22%, white), color-mix(in srgb, var(--c) 6%, white) 60%); }
.type-card .tc-big { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--c); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c) 60%, transparent); }
.type-card .tc-big .i { width: 28px; height: 28px; }
.type-card .tc-blurb { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; max-width: 26ch; }
.type-card:hover .tc-media-icon > * { transform: none; }

/* Library opening band */
.opening { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.opening-list { display: grid; gap: 10px; }
.opening-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.7); font-size: var(--fs-sm); }
.opening-list li > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(212,255,58,.12); color: var(--lime); flex: 0 0 auto; }
.opening-list b { display: block; color: #fff; font-size: var(--fs-lg); letter-spacing: -0.02em; }
@media (max-width: 900px) { .opening { grid-template-columns: 1fr; } }

/* Picso+ band without the collage visual */
.plus-band-solo { align-items: start; }
.plus-band-solo .plus-feats { margin-top: 6px; }

/* WordPress core output */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prose img { border-radius: var(--r-md); }
.prose .wp-block-image, .prose figure { margin: 1.5em 0; }

/* <picture> replaces the bare <img> the static UI used: give it the same box. */
.tile-media > picture, .asset-stage > picture, .hc-cell > picture, .ls-pick > picture, .coll-mosaic picture, .topic-card > picture, .pv-card > picture, .g-art picture {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.tile-media > picture img, .hc-cell > picture img, .ls-pick > picture img, .coll-mosaic picture img, .topic-card > picture img, .pv-card > picture img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s;
}
.tile:hover .tile-media > picture img { transform: scale(1.035); }
.tile-media { background-color: var(--ph, var(--ink-150)); }

/* Asset stage: keep the true aspect ratio, cap the height. */
.asset-stage.ad-stage { min-height: 0; display: block; max-height: 82vh; }
.asset-stage.ad-stage > picture { position: relative; inset: auto; height: auto; }
.asset-stage.ad-stage > picture img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; display: block; }
.ad-sw { flex: 1; height: 36px; border-radius: 9px; background: var(--sw); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.ad-sw span { position: absolute; bottom: -20px; left: 0; font-size: 10px; color: var(--text-4); font-family: var(--font-mono); }

/* Hero collage built from promoted assets */
.hero-collage .hc-cell { background: var(--ph, var(--ink-800)); }
.ls-chips { margin-bottom: 24px; }
.ad-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .ad-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-card .tc-media-photo > picture { position: absolute; inset: 0; }
.type-card .tc-media-photo > picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.type-card:hover .tc-media-photo > picture img { transform: scale(1.04); }

/* Icon set grid on the asset page */
.px-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.px-icon-grid li { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.px-icon-grid li:hover { border-color: var(--ink-950); box-shadow: var(--sh-sm); }
.px-icon-grid img { width: 48px; height: 48px; }
.px-icon-grid span { font-size: 11px; color: var(--text-3); text-align: center; text-transform: capitalize; line-height: 1.2; }

/* What you get */
.px-sub { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); margin: 24px 0 8px; }
.px-fonts { border-top: 1px solid var(--border); }
.px-long { max-height: 720px; overflow-y: auto; border-radius: var(--r-md); border: 1px solid var(--border); scrollbar-width: thin; }
.px-long img { width: 100%; height: auto; display: block; }
.tile-icon .tile-media, .tile-template .tile-media { box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- Stage 5: downloads, bookmarks, collections, search, verify ---------- */
.px-inline { display: inline-flex; margin: 0; }
.i.i-fill { fill: currentColor; }
.btn.is-on { color: var(--ink-950); }
.size-opt:has(input:checked) { border-color: var(--ink-950); box-shadow: inset 0 0 0 1px var(--ink-950); }
.size-opts:has(input:checked) .size-opt.is-selected:not(:has(input:checked)) { border-color: var(--border-strong); box-shadow: none; }
.size-opt input { accent-color: var(--ink-950); }
.px-field-sm { display: grid; gap: 4px; margin: 0 0 12px; }
.px-notice { margin: 12px 0; padding: 10px 14px; border-radius: 12px; background: var(--lime-soft, #f2fbd8); border: 1px solid color-mix(in srgb, var(--lime, #c6f432) 60%, transparent); font-size: var(--fs-sm); }
.px-notice.is-error { background: #fdf0ef; border-color: #f6c9c4; color: #8c1d18; }
.px-notice a { text-decoration: underline; }
.px-licensed { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 14px 0 6px; border-radius: 14px; background: var(--ink-950); color: #fff; }
.px-licensed > .i { width: 22px; height: 22px; color: var(--lime, #c6f432); flex: none; margin-top: 2px; }
.px-licensed b { display: block; }
.px-licensed small { display: block; color: rgba(255,255,255,.7); font-size: var(--fs-xs); margin-top: 2px; }
.px-licensed-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: var(--fs-xs); }
.px-licensed-links a { color: var(--lime, #c6f432); display: inline-flex; gap: 4px; align-items: center; }
.px-attrib { display: grid; gap: 4px; margin: 8px 0 4px; }
.px-attrib label { color: var(--text-3); }

/* Add-to-collection menu */
.px-collect-menu { width: min(320px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; }
.px-collect-menu form { margin: 0; }
.px-collect-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 10px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.px-collect-row:hover { background: var(--ink-50, #f4f4f7); }
.px-collect-row b { display: block; font-size: var(--fs-sm); }
.px-collect-row small { display: block; font-size: 11px; color: var(--text-3); }
.px-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.px-collect-row.is-in .px-check { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.px-collect-new { display: grid; gap: 8px; padding: 10px; margin-top: 6px; border-top: 1px solid var(--border); }
.px-collect-new-row { display: flex; gap: 8px; }
.px-collect-new-row select { flex: 1; }

/* Search */
.px-search-again { max-width: 760px; margin: 0 0 18px; }
.ls-scope-item.is-empty { opacity: .45; }
.px-search-start { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.px-search-fam { display: grid; gap: 4px; padding: 20px; border-radius: var(--r-lg, 18px); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.px-search-fam:hover { border-color: var(--ink-950); box-shadow: var(--sh-sm); }
.px-search-fam .fh-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #888) 14%, white); color: var(--c, inherit); margin-bottom: 6px; }
.px-search-fam small { color: var(--text-3); }
.px-empty-inline { display: grid; justify-items: start; gap: 14px; padding: 40px; border-radius: var(--r-lg, 18px); border: 1px dashed var(--border-strong); background: var(--surface); }
.fed-row .tile .tile-media > picture img { width: 100%; height: 100%; object-fit: cover; }

/* Collections */
.px-cm-item { break-inside: avoid; margin-bottom: 18px; }
.px-cm-item .tile { margin-bottom: 0; }
.px-cm-remove { margin-top: 8px; }
.px-cm-remove .btn { box-shadow: inset 0 0 0 1px var(--border-strong); }
.px-cm-edit .dropdown-menu { width: min(340px, calc(100vw - 32px)); }
.px-stack { display: grid; gap: 10px; padding: 6px; }
.px-stack label { display: grid; gap: 4px; }
.cm-mosaic .cm-mc img { width: 100%; height: 100%; object-fit: cover; }
.coll-mosaic > div img { width: 100%; height: 100%; object-fit: cover; }

/* Licence verification */
.px-verify { padding-block: 40px 80px; }
.px-verify-card { max-width: 920px; margin: 0 auto; padding: clamp(20px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-md, 0 10px 30px rgba(0,0,0,.06)); display: grid; gap: 24px; }
.px-verify-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.px-verify-status h1 { font-size: clamp(26px, 4vw, 38px); margin: 4px 0 0; }
.px-verify-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--lime, #c6f432); color: var(--ink-950); flex: none; }
.px-verify-ico .i { width: 28px; height: 28px; }
.px-verify-card.is-bad .px-verify-ico { background: #fdecea; color: #b42318; }
.px-verify-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.px-verify-thumb { display: block; border-radius: 16px; overflow: hidden; background: var(--ph, var(--ink-100)); }
.px-verify-thumb picture, .px-verify-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.px-verify-thumb.is-gone { aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--text-3); gap: 6px; }
.px-verify-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.px-verify-dl dt { font-size: var(--fs-xs); color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.px-verify-dl dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.px-verify-rights { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.px-verify-attrib { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ink-50, #f4f4f7); font-size: var(--fs-sm); margin: 0; }
.px-verify-foot { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); }
.px-verify-foot p { max-width: 560px; margin: 0; }
@media (max-width: 720px) {
	.px-verify-grid, .px-verify-rights { grid-template-columns: 1fr; }
	.px-verify-dl { grid-template-columns: 1fr; }
	.px-empty-inline { padding: 24px; }
}
.px-search-again .search-pill { width: 100%; max-width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .px-search-again .sp-type, .px-search-again .sp-sep { display: none; } .px-search-again .search-pill { padding-left: 10px; } }
@media (max-width: 600px) { .px-search-again [data-tip]::before, .px-search-again [data-tip]::after { display: none; } }
.ad-dl-form .size-opts { margin-bottom: 14px; }

/* ---------- Media: video, music, sfx ---------- */
.tile-media .tile-loop, .ls-vmedia .tile-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .25s; pointer-events: none; }
.is-looping .tile-loop { opacity: 1; }
.is-looping .tile-vmeta, .is-looping .tile-scrub, .is-looping .ls-vbadges, .is-looping .ls-vplay { z-index: 2; }
.tile-media .tile-vmeta, .tile-media .tile-scrub { z-index: 2; }
.ls-vmedia > picture, .tile-video .tile-media > picture { position: absolute; inset: 0; }
.ls-vmedia > picture img, .tile-video .tile-media > picture img { width: 100%; height: 100%; object-fit: cover; }
.ls-vfeat-media > picture { position: absolute; inset: 0; }
.ls-vfeat-media > picture img { width: 100%; height: 100%; object-fit: cover; }
.ls-vfeat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audio-cover img.fill, .track-cover img.fill, .ls-np-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-np[hidden] { display: none; }
.wave rect { transition: fill .15s; }
[data-audio] svg.wave { cursor: pointer; }
.ls-mood.is-active { box-shadow: 0 0 0 3px var(--lime), 0 18px 40px -16px rgba(0,0,0,.4); }
.ls-pro { margin: 0 0 16px; }
.ls-note { margin-bottom: 16px; }
.player.ad-player { position: relative; overflow: hidden; background: #000; }
.player.ad-player > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; cursor: pointer; }
.player.is-playing .player-center { opacity: 0; pointer-events: none; transition: opacity .25s; }
.player .scrub-preview { opacity: 0; transition: opacity .15s; pointer-events: none; }
.player .scrub-preview.is-on { opacity: 1; }
.player .scrub-thumbs { cursor: pointer; }
.ad-kf a { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.ad-kf a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-bg img.fill, .ap-cover img.fill { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-sfx-wave .wave { height: 100px; }
.btn.is-on { background: rgba(255,255,255,.18); color: var(--lime); }
.ad-sfx .btn.is-on { background: var(--ink-950); color: #fff; }

/* Homepage hero reel (featured video clips) */
.hero-reel { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.03); }
.hero-reel video.is-on { opacity: 1; }
.hero-bg .hero-shade, .hero-bg .hero-glow { z-index: 2; }
.hero-credit[data-reel-caption] { color: rgba(255,255,255,.7); text-decoration: none; z-index: 3; }
.hero-credit[data-reel-caption]::before { content: "▶ "; color: var(--lime); }
.hero-credit[data-reel-caption]:hover { color: #fff; }
.px-home-video .tile .tile-media { box-shadow: none; }
.audio-split .grid > .tile-audio { margin: 0; }
.type-card .tc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .type-card:hover .tc-video { transform: scale(1.04); }
.px-iconset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; place-items: center; padding: 22px; width: 100%; height: 100%; } .px-iconset img { width: 40px; height: 40px; } .ls-ic img { width: 28px; height: 28px; } .ls-style-media picture img, .ls-cat-media picture img { width: 100%; height: 100%; object-fit: cover; display: block; } .ls-style-media picture, .ls-cat-media picture { position: absolute; inset: 0; } .ls-style.is-active { outline: 2px solid var(--ink-950); outline-offset: 2px; border-radius: var(--r-md); } .ls-tpl-media picture { position: absolute; inset: 0; } .ls-tpl-media picture img { width: 100%; height: 100%; object-fit: cover; } .ls-pick picture { position: absolute; inset: 0; } .ls-pick picture img { width: 100%; height: 100%; object-fit: cover; }
.ad-layout > * { min-width: 0; } .ad-kf { max-width: 100%; } @media (max-width: 600px) { .nf-code { font-size: clamp(64px, 26vw, 140px); max-width: 100%; overflow: hidden; } .help-search .search-pill { max-width: 100%; } }
.ad-head > * { min-width: 0; } .ad-actions { grid-template-columns: auto minmax(0, 1fr) auto; } .ad-actions .dropdown > summary { min-width: 0; overflow: hidden; } @media (max-width: 440px) { .ad-actions { display: flex; flex-wrap: wrap; } .ad-actions > * { flex: 1 1 auto; } }
@media (max-width: 600px) { .help-search .sp-type, .help-search .sp-sep { display: none; } .help-search .search-pill { padding-left: 10px; } .help-search [data-tip]::before, .help-search [data-tip]::after { display: none; } }

/* Auth art panel: the <picture> wrapper must fill the full panel height. */
.auth-art > picture { position: absolute; inset: 0; display: block; }
.auth-art > picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-art .auth-art-shade, .auth-art .auth-quote { z-index: 1; }
.option-card.cx-role { align-items: center; }
.option-card.cx-role .oc-title, .option-card.cx-role .oc-desc { display: block; }
.option-card.cx-role:has(input:checked) { border-color: var(--ink-950); box-shadow: 0 0 0 1px var(--ink-950); }
.option-card.cx-role:has(input:checked) .oc-ico { background: var(--lime); }
.option-card.cx-role:has(input:focus-visible) { outline: 2px solid var(--ink-950); outline-offset: 2px; }
.cx-role-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; color: transparent; }
.option-card.cx-role:has(input:checked) .cx-role-check { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.cx-prose h2 { margin-top: 56px; } .cx-prose h2:first-child { margin-top: 0; } .cx-prose .cx-tldr { margin: 4px 0 20px; } .cx-prose .cx-tldr p { margin: 0; } .cx-prose .cx-tldr b { display: inline; margin-right: 6px; }
/* Option cards: the check mark only on the chosen option. */
.cx-reason .cx-reason-check { visibility: hidden; }
.cx-reason:has(input:checked) .cx-reason-check { visibility: visible; }
.cx-reason:has(input:checked) { border-color: var(--ink-950); box-shadow: 0 0 0 1px var(--ink-950); background: color-mix(in srgb, var(--lime) 8%, white); }
.cx-reason:has(input:checked) .oc-ico { background: var(--ink-950); color: var(--lime); }
.cx-reason:has(input:focus-visible) { outline: 2px solid var(--ink-950); outline-offset: 2px; }
.px-report-done { max-width: 720px; }
.px-report-done-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); color: var(--ink-950); }
.px-report-done-ico .i { width: 28px; height: 28px; }
.cx-found-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-sup-foot .mono, .cm-sup-foot a.mono { overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.f-social { display: flex; gap: 8px; margin-top: 18px; } .f-social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; } .f-social a:hover { background: var(--lime); color: var(--lime-ink); } .f-social .i { width: 16px; height: 16px; } .logo-img img { display: block; }

/* Topic page — "add from my portfolio" picker inside the dark submit panel */
.px-topic-pick > summary { list-style: none; cursor: pointer; }
.px-topic-pick > summary::-webkit-details-marker { display: none; }
.px-topic-pick[open] > summary { margin-bottom: 12px; }
.px-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 320px; overflow: auto; padding: 2px; }
.px-pick { position: relative; display: grid; gap: 4px; cursor: pointer; }
.px-pick input { position: absolute; top: 6px; left: 6px; z-index: 1; width: 16px; height: 16px; accent-color: var(--lime); }
.px-pick-thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.px-pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-pick:has(input:checked) .px-pick-thumb { box-shadow: 0 0 0 2px var(--lime); }
.px-pick-t { font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.7); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-tcover > picture { position: absolute; inset: 0; z-index: -2; display: block; }
.cm-tcover > picture img { width: 100%; height: 100%; object-fit: cover; }
.cm-open-media > picture { display: block; width: 100%; height: 100%; }

/* Search by image */
.px-vs-start { padding-block: clamp(32px, 6vw, 72px); display: grid; justify-items: center; }
.px-vs-modal { width: 100%; max-width: 600px; position: relative; }
.px-vs-start .px-vs-modal { box-shadow: var(--sh-lg, 0 30px 60px -20px rgba(10,10,15,.25)); }
.px-vs-replace { position: relative; }
.px-vs-replace > summary { list-style: none; cursor: pointer; }
.px-vs-replace > summary::-webkit-details-marker { display: none; }
.px-vs-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(560px, calc(100vw - 32px)); }
.px-vs-pop .px-vs-modal { box-shadow: 0 30px 60px -20px rgba(10,10,15,.35); }
.dropzone.is-busy { opacity: .6; pointer-events: none; }
.dropzone.is-dragover { border-color: var(--ink-950); }
.px-vs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ls-ref > img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .px-vs-toolbar .segmented { overflow-x: auto; max-width: 100%; } }

/* Blog posts */
.px-post { padding-bottom: 96px; }
.px-prose { max-width: 760px; margin-inline: auto; font-size: 17px; line-height: 1.75; }
.px-prose > * + * { margin-top: 1.1em; }
.px-prose h2, .px-prose h3 { margin-top: 1.8em; }
.px-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.px-post-cover { max-width: 1100px; margin: 0 auto 40px; }
.px-post-cover img { width: 100%; height: auto; border-radius: 20px; display: block; }
.px-post .page-hero { max-width: 760px; margin-inline: auto; }
.px-post-nav .nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.px-comments { margin-top: 56px; }
.px-comment-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.px-comments input:not([type=checkbox]):not([type=submit]), .px-comments textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: none; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--text-3); }
.sticky, .bypostauthor, .screen-reader-text { }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.gallery-caption { font-size: 13px; color: var(--text-3); }
.px-widgets { max-width: 760px; margin: 56px auto 0; display: grid; gap: 24px; }
.px-widgets .widget-title, .px-widgets h2 { font-size: 16px; }
search { display: contents; }
.px-release-terms { max-height: 240px; overflow: auto; padding: 16px 18px; border-radius: 14px; background: var(--surface-2, #f6f6f8); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.px-sig { font-family: var(--font-serif); font-style: italic; font-size: 22px; }
.px-stems { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 4px; }
.px-stems li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.px-stems li:first-child { border-top: 0; }
.px-stems b { display: block; font-size: 13px; word-break: break-all; }
.px-stems small { color: var(--text-3); font-size: 12px; }
/* Download card: pay-per-item pane and licence tiers toggled by picso.js */
.ad-dl [hidden] { display: none !important; }
.ad-dl .ad-tier-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ad-dl .ad-tier-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--fs-sm); }
.ad-dl .ad-tier-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ad-dl .ad-tier small { color: var(--text-3); font-size: var(--fs-xs); }
.ad-dl .ad-tiers { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Footer currency switcher */
.f-cur { position: relative; display: inline-block; }
.f-cur summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.f-cur summary::-webkit-details-marker { display: none; }
.f-cur-menu { min-width: 220px; max-height: 320px; overflow: auto; padding: 6px; bottom: calc(100% + 8px); top: auto; right: 0; left: auto; }
.f-cur-menu button { display: flex; width: 100%; gap: 10px; align-items: baseline; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; color: var(--text); font: inherit; font-size: var(--fs-sm); }
.f-cur-menu button:hover, .f-cur-menu button[aria-current] { background: var(--surface-2); }
.f-cur-menu button span { color: var(--text-3); font-size: var(--fs-xs); }

/* Single-icon picker (icon sets) */
.ad-iconpick { position: relative; display: grid; gap: 6px; margin-top: 12px; }
.ad-iconpick[hidden] { display: none; }
.ad-samplepick { display: grid; gap: 6px; margin-top: 12px; }
.ad-samplepick[hidden] { display: none; }
.ad-ip-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; background: var(--surface, #fff); border: 1px solid var(--line, #e4e4e8); border-radius: 12px; font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ad-ip-btn:hover { border-color: var(--ink-3, #b9b9c2); }
.ad-ip-btn:focus-visible, .ad-iconpick.is-open .ad-ip-btn { outline: none; border-color: var(--ink, #0a0a0f); box-shadow: 0 0 0 3px rgba(10,10,15,.08); }
.ad-ip-btn img { width: 36px; height: 36px; padding: 6px; border-radius: 8px; background: var(--bg-2, #f4f4f6); object-fit: contain; }
.ad-ip-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-ip-chev { flex: 0 0 auto; transition: transform .15s; }
.ad-iconpick.is-open .ad-ip-chev { transform: rotate(180deg); }
.ad-ip-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 10px; background: var(--surface, #fff); border: 1px solid var(--line, #e4e4e8); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(10,10,15,.22); }
.ad-ip-panel[hidden] { display: none; }
.ad-ip-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin-bottom: 8px; height: 38px; border-radius: 10px; background: var(--bg-2, #f4f4f6); color: var(--ink-2, #6b6b76); }
.ad-ip-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink, #0a0a0f); outline: none; }
.ad-ip-grid { list-style: none; margin: 0; padding: 2px; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 280px; overflow-y: auto; }
.ad-ip-grid li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; outline: none; transition: background .12s, border-color .12s; }
.ad-ip-grid li[hidden] { display: none; }
.ad-ip-grid li:hover, .ad-ip-grid li:focus-visible { background: var(--bg-2, #f4f4f6); }
.ad-ip-grid li[aria-selected="true"] { border-color: var(--ink, #0a0a0f); background: var(--lime-soft, #f3fbd9); }
.ad-ip-grid img { width: 32px; height: 32px; object-fit: contain; }
.ad-ip-grid span { max-width: 100%; font-size: 11px; line-height: 1.2; color: var(--ink-2, #6b6b76); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-ip-none { margin: 10px 4px 4px; }
.px-icon-grid li[data-pick-icon] { cursor: pointer; }
.px-icon-grid li[data-pick-icon]:hover { background: var(--bg-2, #f4f4f6); border-radius: 10px; }
.ad-ip-search input, .ad-ip-search input:focus, .ad-ip-search input:focus-visible { outline: none; box-shadow: none; border: 0; height: auto; padding: 0; }
.ad-ip-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink, #0a0a0f); }
.cm-actions form.inline { display: inline-flex; }

/* ---------------------------------------------------------------------------
 * Theme Builder: shared site parts used outside their original page
 * ------------------------------------------------------------------------ */
/* Notification bell (header widget; same look as the dashboard top bar). */
.px-bell { position: relative; }
.px-bell-dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--critical, #d03b3b); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.px-notif > summary { list-style: none; }
.px-notif > summary::-webkit-details-marker { display: none; }
.px-notif[open] > summary { background: var(--ink-100); }
.px-notif-menu { width: min(380px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.px-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text); }
.px-notif-menu .px-notif-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.px-notif-menu .px-notif-item:hover { background: var(--ink-50); }
.px-notif-item .l-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink-100); color: var(--text-2); }
.px-notif-item .l-ico .i { width: 18px; height: 18px; }
.px-notif-item .l-ico.good { background: var(--good-soft); color: var(--good-ink); }
.px-notif-item .l-ico.crit { background: var(--critical-soft); color: var(--critical-ink); }
.px-notif-item .l-ico.lime { background: var(--lime); color: var(--lime-ink); }
.px-notif-item.is-unread { background: color-mix(in srgb, var(--lime) 8%, #fff); }
.px-notif-item.is-unread .px-notif-text > span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--critical, #d03b3b); vertical-align: 1px; }
.px-notif-text { display: grid; gap: 3px; min-width: 0; font-size: var(--fs-sm); line-height: 1.45; }
.px-notif-text > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.px-notif-text small { font-size: var(--fs-xs); color: var(--text-3); }
.px-notif-empty { display: flex; align-items: center; gap: 10px; padding: 22px 16px; color: var(--text-3); font-size: var(--fs-sm); }
.px-notif-all { margin: 10px 12px 12px; width: calc(100% - 24px); justify-content: center; }
.site-header.is-dark .px-notif > summary { color: rgba(255,255,255,.8); }
