/* Pixthor 1.7.88: opt-in visual theme, no structural layout changes */
.px-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border:0;background:transparent;color:inherit;padding:5px;cursor:pointer;border-radius:50%;transition:background .15s}
.px-theme-toggle:hover{background:rgba(127,127,127,.12)}.px-theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}.px-theme-sun{display:none}
html[data-theme="dark"] .px-theme-moon{display:none}html[data-theme="dark"] .px-theme-sun{display:block}
html[data-theme="dark"]{color-scheme:dark;background:#121416;color:#e8e9ea}
html[data-theme="dark"] body{background:#121416;color:#e8e9ea}
html[data-theme="dark"] .px-header-band,html[data-theme="dark"] .px-footer-band{background:#16191c;color:#e8e9ea}
html[data-theme="dark"] .promo{background:linear-gradient(115deg,#313b2a,#3e4a34);color:#fff}
html[data-theme="dark"] .logo>span:first-child{background:#f3f3f3;color:#111}
html[data-theme="dark"] nav a.selected{border-bottom-color:#f0f0f0}
html[data-theme="dark"] nav .nav-upload,html[data-theme="dark"] .black-btn,html[data-theme="dark"] .section-label{background:#e5e7e8;color:#151719}
html[data-theme="dark"] .categories button{color:#a6abb0}html[data-theme="dark"] .categories button.active,html[data-theme="dark"] .categories button:hover{color:#fff}
html[data-theme="dark"] .tile{background:#262a2e}html[data-theme="dark"] .tile-overlay{color:#fff}
html[data-theme="dark"] .faq,html[data-theme="dark"] .ad,html[data-theme="dark"] .modal,html[data-theme="dark"] .card{background:#202429;color:#e8e9ea;border-color:#343a40}
html[data-theme="dark"] .modal p,html[data-theme="dark"] .muted,html[data-theme="dark"] .breadcrumb{color:#abb0b6}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#22262b;color:#f1f1f1;border-color:#343a40}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9ca2a9}
html[data-theme="dark"] .detail-stats button{background:#262a2e;color:#f1f1f1;border-color:#42484e}
html[data-theme="dark"] .px-detail-image-wrap,html[data-theme="dark"] .px-detail-image-click{background:#202429}
html[data-theme="dark"] .px-image-nav{background:rgba(33,37,41,.94);border-color:#515960;color:#f1f1f1}
html[data-theme="dark"] .px-image-nav::after{border-color:#f1f1f1}
html[data-theme="dark"] .px-detail-thumbs img{background:#202429}
html[data-theme="dark"] .gallery .tile>img.px-adaptive-card-image{background:#25292d}
html[data-theme="dark"] .px-search-wrap,html[data-theme="dark"] .px-search-box,html[data-theme="dark"] .px-search-input,html[data-theme="dark"] .px-home-search,html[data-theme="dark"] .px-home-search input{background:#24282d!important;color:#f2f2f2!important;box-shadow:none!important;border-color:transparent!important}
html[data-theme="dark"] .px-search-wrap svg,html[data-theme="dark"] .px-search-box svg{color:#c5c8cc}
html[data-theme="dark"] .footer{color:#e8e9ea}
html[data-theme="dark"] .download-btn{background:#008000;color:#fff}
html[data-theme="dark"] .like{color:#d94c67}
html[data-theme="dark"] .like.liked{color:#fff}
@media(max-width:750px){.px-theme-toggle{width:32px;height:32px;flex-basis:32px}}


/* Pixthor 1.7.89 — consistent dark surfaces and accessible text.
   Scoped to opt-in dark mode only; layout and behavior are untouched. */
html[data-theme="dark"] {
  --px-dark-bg:#111315;
  --px-dark-panel:#1b1e21;
  --px-dark-input:#22262a;
  --px-dark-border:#34393e;
  --px-dark-text:#f3f4f5;
  --px-dark-muted:#adb4ba;
}
html[data-theme="dark"],html[data-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-theme="dark"] main {background-color:var(--px-dark-bg);color:var(--px-dark-text)}
/* Search: one seamless surface, including the icon and clear button. */
html[data-theme="dark"] .px-home-search-band,
html[data-theme="dark"] .px-resource-subbar {background:transparent!important}
html[data-theme="dark"] .px-home-search-band .px-smart-search,
html[data-theme="dark"] .px-smart-search,
html[data-theme="dark"] .px-smart-search input,
html[data-theme="dark"] .px-smart-search button,
html[data-theme="dark"] .px-smart-search svg {
  background:var(--px-dark-input)!important;color:var(--px-dark-text)!important;
  border-color:transparent!important;box-shadow:none!important;
}
html[data-theme="dark"] .px-smart-search {border:1px solid var(--px-dark-border)!important}
html[data-theme="dark"] .px-smart-search svg {stroke:#c7cbd0!important}
html[data-theme="dark"] .px-smart-search input::placeholder {color:#aeb4ba!important;opacity:1}
html[data-theme="dark"] .px-search-count,html[data-theme="dark"] .px-search-empty,
html[data-theme="dark"] .px-search-empty strong {color:var(--px-dark-text)}
html[data-theme="dark"] .px-search-empty p {color:var(--px-dark-muted)}
html[data-theme="dark"] .px-search-empty button {background:var(--px-dark-panel);color:var(--px-dark-text);border-color:var(--px-dark-border)}
/* All public page surfaces, including dynamically inserted route content. */
html[data-theme="dark"] :is(.px-advertise-panel,.px-upload-main,.px-upload-aside,.px-detail-info-grid>div,.px-detail-description,.px-detail-tabs,.px-detail-content,.px-detail-sidebar,.px-detail-panel,.px-detail-body,.px-detail-related,.px-advertise-grid,.px-advertise-box,.px-detail-advertise,.px-contact-panel,.px-contact-form,.px-support-panel,.px-support-card,.px-resource-info,.px-resource-tabs,.px-resource-description,.px-download-thanks,.px-thanks-modal,.px-modal-content,.faq,.card,.modal) {
  background-color:var(--px-dark-panel)!important;color:var(--px-dark-text)!important;
  border-color:var(--px-dark-border)!important;
}
html[data-theme="dark"] :is(.px-advertise-plan,.px-advertise-custom,.px-advertise-bottom,.px-detail-info-grid,.px-detail-disclaimer,.px-detail-tab-content,.px-detail-tabs,.px-detail-description,.px-upload-main form,.px-upload-aside .faq,.faq p) {
  color:var(--px-dark-text)!important;border-color:var(--px-dark-border)!important;
}
html[data-theme="dark"] :is(.px-advertise-panel,.px-upload-main,.px-upload-aside,.px-detail-info-grid>div,.px-detail-description,.px-detail-tabs,.px-detail-content,.px-detail-panel,.px-detail-body,.faq) :is(h1,h2,h3,h4,h5,h6,strong,label,b) {color:var(--px-dark-text)!important}
html[data-theme="dark"] :is(.px-advertise-panel,.px-upload-main,.px-upload-aside,.px-detail-info-grid>div,.px-detail-description,.px-detail-tabs,.px-detail-content,.px-detail-panel,.px-detail-body,.faq) :is(p,span,small,li) {color:var(--px-dark-muted)}
html[data-theme="dark"] .px-advertise-panel :is(h2,h2 span),
html[data-theme="dark"] .px-advertise-custom h2,
html[data-theme="dark"] .px-detail-info-grid strong,
html[data-theme="dark"] .faq strong {color:var(--px-dark-text)!important}
html[data-theme="dark"] .px-detail-info-grid span {color:var(--px-dark-muted)!important}
html[data-theme="dark"] .px-advertise-plan small {color:var(--px-dark-muted)!important}
html[data-theme="dark"] :is(.px-advertise-plan,.px-advertise-custom,.px-advertise-bottom) {background:transparent!important}
/* Form controls and FAQ: no light panels or black-on-black text. */
html[data-theme="dark"] .section-label {background:#292d31!important;color:var(--px-dark-text)!important}
html[data-theme="dark"] :is(.px-upload-main,.px-upload-aside) {background:var(--px-dark-panel)!important}
html[data-theme="dark"] :is(.field input,.field select,.field textarea,input:not([type="checkbox"]):not([type="radio"]),select,textarea) {background:var(--px-dark-input)!important;color:var(--px-dark-text)!important;border:1px solid var(--px-dark-border)!important;box-shadow:none!important}
html[data-theme="dark"] :is(.field input,.field select,.field textarea,input,select,textarea):focus-visible {outline:2px solid #7b9e9a;outline-offset:1px}
html[data-theme="dark"] .faq {background:transparent!important}
html[data-theme="dark"] .faq p {background:transparent!important;color:var(--px-dark-text)!important}
html[data-theme="dark"] .faq p strong {color:var(--px-dark-text)!important}
/* Resource description and advertising slots. */
html[data-theme="dark"] :is(.px-detail-info-grid>div,.px-detail-tabs,.px-detail-description,.px-advertise-box) {background:var(--px-dark-panel)!important}
html[data-theme="dark"] :is(.px-detail-info-grid>div,.px-detail-tabs,.px-detail-description) * {border-color:var(--px-dark-border)}
html[data-theme="dark"] :is(.px-detail-tabs,.px-detail-description,.px-detail-content) :is(p,h2,h3,strong,li) {color:var(--px-dark-text)!important}
html[data-theme="dark"] :is(.px-detail-tabs,.px-detail-description,.px-detail-content) :is(.muted,small) {color:var(--px-dark-muted)!important}
html[data-theme="dark"] .px-detail-disclaimer {color:var(--px-dark-muted)!important}
/* Keep action semantics and image previews intact. */
html[data-theme="dark"] .download-btn {background:#008000!important;color:#fff!important}
html[data-theme="dark"] :is(.px-detail-free,.px-free-badge) {color:#fff}
html[data-theme="dark"] :is(.px-detail-favorite,.px-detail-like) {color:#fff}
html[data-theme="dark"] .px-detail-image-wrap {background:#202429!important}
html[data-theme="dark"] .px-detail-image-click {background:transparent!important}
@media(max-width:750px){html[data-theme="dark"] .px-home-search-band .px-smart-search{width:100%;min-width:0}}

/* v1.7.90: consistent dark secondary category/sort bar */
html[data-theme="dark"] #app > .px-resource-subbar,
html[data-theme="dark"] #app > .px-resource-subbar::before {
  background:#111315 !important;
}
html[data-theme="dark"] #app > .px-resource-subbar::before {border-bottom:1px solid #292d31}
html[data-theme="dark"] #app > .px-resource-subbar .categories button {color:#aeb4ba!important}
html[data-theme="dark"] #app > .px-resource-subbar .categories button.active,
html[data-theme="dark"] #app > .px-resource-subbar .categories button:hover {color:#fff!important}
html[data-theme="dark"] #app > .px-resource-subbar .px-sort-dropdown,
html[data-theme="dark"] #app > .px-resource-subbar .px-sort-dropdown summary,
html[data-theme="dark"] #app > .px-resource-subbar select {background:#24282d!important;color:#f5f5f5!important;border-color:#34393e!important}
html[data-theme="dark"] #app > .px-resource-subbar .px-sort-dropdown * {color:inherit}
/* One continuous search surface: no inset rectangle, including when focused. */
html[data-theme="dark"] .px-home-search-band .px-smart-search,
html[data-theme="dark"] .px-home-search-band .px-smart-search:focus-within {
  background:#22262a!important;border:1px solid transparent!important;
  outline:none!important;box-shadow:none!important;
}
html[data-theme="dark"] .px-home-search-band .px-smart-search input,
html[data-theme="dark"] .px-home-search-band .px-smart-search input:focus,
html[data-theme="dark"] .px-home-search-band .px-smart-search input:focus-visible {
  background:transparent!important;border:0!important;outline:0!important;
  box-shadow:none!important;color:#fff!important;
}
html[data-theme="dark"] .px-home-search-band .px-smart-search button {background:transparent!important;border:0!important}
html[data-theme="dark"] .px-home-search-band .px-smart-search:focus-within {background:#292e33!important}


/* v1.7.93 — unified dark surfaces, scoped strictly to Dark Mode */
html[data-theme="dark"] {
  --px-page:#101113; --px-surface:#191b1e; --px-raised:#222529;
  --px-line:#30343a; --px-foreground:#f7f7f8; --px-subtle:#b6bbc2;
  color-scheme:dark;
}
html[data-theme="dark"] :is(body,#app,main,.page,.container,.content,.px-home-search-band,.px-resource-subbar) {
  color:var(--px-foreground);
}
html[data-theme="dark"] :is(.px-resource-subbar,.px-resource-subbar::before,.px-home-search-band,.px-header-band,.px-footer-band) {
  background-color:var(--px-page)!important;
}
html[data-theme="dark"] :is(
 .px-contact-form,.px-advertise-panel,.px-home-ad-tile,.px-upload-aside,
 .px-upload-main,.px-detail-advertise,.px-detail-recommendations,
 .px-similar-list,.px-similar-row,.px-detail-info-grid>div,
 .px-detail-description,.px-detail-content,.px-detail-panel,
 .px-detail-tabs,.px-detail-sidebar,.px-resource-info,
 .admin-card,.admin-table,.card,.faq,.modal,
 .px-thanks-modal,.px-download-thanks,.px-modal-content
) {
  background:var(--px-surface)!important;
  color:var(--px-foreground)!important;
  border-color:var(--px-line)!important;
  box-shadow:none;
}
html[data-theme="dark"] :is(
 .px-advertise-panel,.px-contact-form,.px-upload-aside,.px-upload-main,
 .px-detail-sidebar,.px-detail-content,.px-detail-description,
 .px-detail-info-grid,.px-detail-tabs,.px-detail-recommendations,
 .px-similar-list,.px-similar-row,.faq,.modal,.card
) :is(h1,h2,h3,h4,h5,h6,strong,b,label) {color:var(--px-foreground)!important}
html[data-theme="dark"] :is(
 .px-advertise-panel,.px-contact-form,.px-upload-aside,.px-upload-main,
 .px-detail-sidebar,.px-detail-content,.px-detail-description,
 .px-detail-info-grid,.px-detail-tabs,.px-detail-recommendations,
 .px-similar-list,.px-similar-row,.faq,.modal,.card
) :is(p,small,.muted,.meta) {color:var(--px-subtle)}
html[data-theme="dark"] :is(
 .px-heart-detail,.px-detail-share,.small-btn,.px-preview-modal-next,
 .px-image-nav
) {background:var(--px-raised)!important;color:var(--px-foreground)!important;border-color:var(--px-line)!important}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
 background:var(--px-raised)!important;color:var(--px-foreground)!important;
 border-color:var(--px-line)!important;box-shadow:none!important;
}
html[data-theme="dark"] :is(input,textarea)::placeholder {color:#a6adb5!important;opacity:1}
html[data-theme="dark"] :is(a,button,input,textarea,select):focus-visible {
 outline:2px solid #9fb9b1;outline-offset:2px;
}
html[data-theme="dark"] .px-smart-search,
html[data-theme="dark"] .px-smart-search:focus-within {
 background:var(--px-raised)!important;border-color:transparent!important;
 box-shadow:none!important;max-width:100%;min-width:0;
}
html[data-theme="dark"] .px-smart-search :is(input,button,svg),
html[data-theme="dark"] .px-smart-search :is(input,button):focus {
 background:transparent!important;border:0!important;box-shadow:none!important;
}
html[data-theme="dark"] .px-smart-search input {min-width:0;flex:1 1 auto}
html[data-theme="dark"] .px-smart-search:focus-within {background:#2a2e32!important}
html[data-theme="dark"] .download-btn {background:#008000!important;color:#fff!important}
html[data-theme="dark"] .px-free-pill {background:#ea8236!important;color:#fff!important}
html[data-theme="dark"] :is(img,video,picture,canvas) {filter:none}
@media(max-width:750px){
 html[data-theme="dark"] .px-smart-search {width:100%;max-width:100%}
 html[data-theme="dark"] :is(.px-detail-info-grid,.px-similar-row) {min-width:0}
}
