/* Updated community, account and navigation surfaces follow the selected theme. */
html[data-theme=dark] body.ksca-atelier :is(.kscg-avatar,.ksca-review-avatar),
html[data-theme=dark] body.ksca-atelier .kscg-member-card .kscg-profile-heading .kscg-avatar{
 background:var(--soft);color:var(--ink);
}
html[data-theme=dark] body.ksca-atelier .kscg-profile-cover{
 background:var(--ksca-neon-gradient)!important;color:var(--ksca-neon-ink,#142b20);
}
html[data-theme=dark] body.ksca-atelier .kscg-profile-cover svg{
 --badge-tint:transparent!important;--badge-color:#398b58;
}
html[data-theme=dark] body.ksca-atelier .kscg-join{
 background:var(--ksca-neon-gradient)!important;color:var(--ksca-neon-ink,#142b20);
}
html[data-theme=dark] body.ksca-atelier .kscg-join :is(h2,p){
 color:var(--ksca-neon-ink,#142b20);
}
html[data-theme=dark] body.ksca-atelier .kscg-join .button{
 background:#142b20;color:#f0f5eb;
}
html[data-theme=dark] body.ksca-atelier .kscg-community-layout .kscg-feed-tabs{
 background:#111914;
}
html[data-theme=dark] body.ksca-atelier .kscg-community-layout .kscg-feed-tabs a[aria-current]{
 background:var(--soft);color:var(--ink);box-shadow:none;
}
html[data-theme=dark] body.ksca-atelier :is(.kscg-success,.ksca-review-success){
 background:#213e2a;color:#b8f49c;
}
html[data-theme=dark] body.ksca-atelier .kscg-empty>svg{
 --badge-tint:#29342c;--badge-color:#97c184;
}
html[data-theme=dark] body.ksca-atelier .kscg-community-note>svg{
 --badge-tint:#293b2e;--badge-color:#99d379;
}
html[data-theme=dark] body.ksca-atelier .kscg-join>div{
 --badge-tint:transparent;--badge-color:#398b58;
}
html[data-theme=dark] body.ksca-atelier .kscg-member-card .kscg-earned-medal{
 --badge-tint:#293b2e;
}
/* Unearned medals remain neutral; only earned artwork retains its colour. */
html[data-theme=dark] body.ksca-atelier .kscg-badge:not(.is-earned) .kscg-badge-art svg{
 filter:grayscale(1);opacity:.55;
}
html[data-theme=dark] body.ksca-atelier .kscg-badge.is-earned .kscg-badge-art svg{
 filter:none;opacity:1;
}
html[data-theme=dark] body.ksca-atelier .kscg-badge-art>span{
 background:#3b453e;color:#c0c8bf;
}
html[data-theme=dark] body.ksca-atelier .kscg-badge.is-earned .kscg-badge-art>span{
 background:#b4ed79;color:#17291c;
}
html[data-theme=dark] body.ksca-atelier .kscg-badge.is-earned progress::-webkit-progress-value{
 background:#a8e978;
}
html[data-theme=dark] body.ksca-atelier .kscg-badge.is-earned progress::-moz-progress-bar{
 background:#a8e978;
}
html[data-theme=dark] body.ksca-atelier :is(.kscg-pagination,.ksca-review-pagination) .current{
 background:var(--button);color:var(--button-ink);
}

html[data-theme=dark] body.ksca-atelier .ksca-review-tabs{border-color:var(--line)}
html[data-theme=dark] body.ksca-atelier :is(.ksca-order-review,.ksca-review-composer,.ksca-review-login,.ksca-review-empty,.ksca-order-reminder){
 background:var(--surface);color:var(--ink);
}
html[data-theme=dark] body.ksca-atelier .ksca-review-tabs>a{color:var(--muted)}
html[data-theme=dark] body.ksca-atelier .ksca-review-tabs>a[aria-current]{
 color:var(--ink);border-color:var(--green);
}
html[data-theme=dark] body.ksca-atelier :is(
 .ksca-reviews-page>h1>span,.ksca-review-tabs span,.ksca-filter-reset,
 .ksca-review-averages small,.ksca-order-review small,.ksca-order-review time,
 .ksca-review-composer summary,.ksca-review-composer form>label>span,
 .ksca-review-upload small,.ksca-review-empty,.ksca-order-reminder small,
 .ksca-order-reminder button
){color:var(--muted)}
html[data-theme=dark] body.ksca-atelier :is(.ksca-order-review small span,.ksca-order-reminder .ksca-order-cta){
 color:var(--green);
}
html[data-theme=dark] body.ksca-atelier .ksca-review-empty h2{color:var(--ink)}
html[data-theme=dark] body.ksca-atelier .ksca-review-empty>span{color:#a8da91}
html[data-theme=dark] body.ksca-atelier .ksca-review-form-status{color:#ffaea0}
html[data-theme=dark] body.ksca-atelier .ksca-review-composer :is(input:not([type=checkbox]):not([type=radio]),textarea,select){
 background:var(--soft);color:var(--ink);border-color:transparent;
}
html[data-theme=dark] body.ksca-atelier .ksca-review-upload .ksca-upload-control{
 background:var(--ksca-neon-gradient)!important;color:var(--ksca-neon-ink,#142b20);
}
html[data-theme=dark] body.ksca-atelier .ksca-review-upload .ksca-upload-control:hover{
 background:var(--ksca-neon-gradient)!important;box-shadow:0 4px 18px #a8e97815;
}
html[data-theme=dark] body.ksca-atelier :is(.ksca-rating-filter input,.ksca-review-consent input){
 accent-color:var(--green);
}
html[data-theme=dark] body.ksca-atelier .ksca-rating-bar{background:#3b473d}
html[data-theme=dark] body.ksca-atelier .ksca-stars>span,
html[data-theme=dark] body.ksca-atelier .ksca-star-input label>span[aria-hidden]{color:#677465}
html[data-theme=dark] body.ksca-atelier .ksca-star-input label.is-active>span[aria-hidden],
html[data-theme=dark] body.ksca-atelier .ksca-star-input label:has(input:checked)>span[aria-hidden]{color:#f6c957}
html[data-theme=dark] body.ksca-atelier .ksca-order-reminder .ksca-order-check{
 background:#a9ec78;color:#17291c;
}

/* Status colours stay legible without the old blanket brightness filter. */
html[data-theme=dark] body.ksca-atelier .ksc-order-status{filter:none}
html[data-theme=dark] body.ksca-atelier .ksc-order-status:is(.status-processing,.status-pending,.status-on-hold){
 background:#413723;color:#f0d390;
}
html[data-theme=dark] body.ksca-atelier .ksc-order-status:is(.status-ksd-delivering,.status-delivering,.status-shipped,.status-shipping){
 background:#26374b;color:#acd0ff;
}
html[data-theme=dark] body.ksca-atelier .ksc-order-status.status-completed{
 background:#264331;color:#b0eaa4;
}
html[data-theme=dark] body.ksca-atelier .ksc-order-status:is(.status-cancelled,.status-failed,.status-refunded){
 background:#462e30;color:#ffc0b8;
}
html[data-theme=dark] body.ksca-atelier .ksd-post-mark{background:#24384a;color:#bed8ff}
html[data-theme=dark] body.ksca-atelier .ksd-address-actions .ksd-address-delete{color:#ffb3aa}

html[data-theme=dark] body.ksca-atelier .ksc-contact-dialog.ksca-contact-dropdown{
 border-color:var(--line);box-shadow:0 16px 46px #0006;
}
html[data-theme=dark] body.ksca-atelier :is(.ksc-contact-dialog,.ksca-simple-catalog)::backdrop{
 background:#050b09a8;
}
html[data-theme=dark] body.ksca-atelier .ksca-simple-catalog .ksca-menu-tools,
html[data-theme=dark] body.ksca-atelier .ksca-simple-catalog>.ksca-menu-contacts{
 border-color:var(--line);
}
html[data-theme=dark] body.ksca-atelier .ksca-simple-catalog .ksca-menu-max{
 background:var(--button);color:var(--button-ink);
}
html[data-theme=dark] body.ksca-atelier .ksca-simple-catalog .ksca-catalog-actions .ksc-catalog-all{
 color:var(--button-ink);
}
html[data-theme=dark] body.ksca-atelier :is(.footer-brand span,.footer-grid>div>span,.footer-bottom){
 color:var(--muted);
}
