/* Shared theme controls; dark overrides are loaded after page styles. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);font-size:23px;line-height:1;cursor:pointer;touch-action:manipulation}
.theme-toggle:hover{border-color:var(--brand)}.theme-toggle:focus-visible{outline:3px solid #5482ea;outline-offset:3px}
.public-header-actions,.cc-header-actions{display:flex;align-items:center;gap:10px}
#charkhchand .theme-toggle{background:var(--cc-paper);border-color:var(--cc-line);color:var(--cc-ink);font-size:23px}
#charkhchand .theme-toggle:hover{border-color:var(--cc-brand)}
html[data-theme=dark]{color-scheme:dark;--ink:#e4edf6;--muted:#a5b6c8;--brand:#9dc8f5;--brand-dark:#122b40;--accent:#79dcc3;--paper:#101923;--line:#344456;--white:#1a2735;--surface:#1a2735;--danger:#ff9caf;--shadow:0 12px 35px #00000020;background:var(--paper);color:var(--ink)}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.surface,.stat-card,.topbar,.pwa-card,dialog,.button-secondary,.icon-button,.art-card){background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea,select){background:#14202c;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:var(--muted)}
html[data-theme=dark] input[readonly]{background:#233344;color:var(--muted)}
html[data-theme=dark] :is(.button-primary,.skip-link){background:#315c83;color:#fff}
html[data-theme=dark] .button-primary:hover{background:#3c6d98}
html[data-theme=dark] :is(.button-secondary:hover,.button-quiet:hover,.quick-link:hover,tbody tr:hover){background:#233548;color:var(--ink)}
html[data-theme=dark] :is(th,.search-field input,.role-permissions span,.feature-icon,.badge.disabled,.market-health){background:#233344;color:var(--muted)}
html[data-theme=dark] :is(td,th,.quick-link,.permission-grid .checkbox){border-color:var(--line)}
html[data-theme=dark] :is(.stat-accent,.notice,.form-status.success,.badge,.market-health.success){background:#17392f;color:#9be3bc;border-color:#30604d}
html[data-theme=dark] :is(.stat-accent>span:last-child,.eyebrow){color:#9be3bc}
html[data-theme=dark] .notice-subtle{background:#213448;color:#bad8f6;border-color:#385573}
html[data-theme=dark] :is(.form-status:not(.success),.button-danger,.market-health.error){background:#422936;color:#ffadbd;border-color:#784052}
html[data-theme=dark] :is(.badge.unread,.feature-icon){background:#213d4c;color:#a8dfdc}
html[data-theme=dark] :is(.connection-banner,.maintenance-banner){background:#493b21;color:#ffdfa1}
html[data-theme=dark] :is(.hero-art,.auth-art){background:#203c37;color:#a8ddce;border-color:#40665d}
html[data-theme=dark] :is(.orbit,.auth-art span){border-color:#40665d}
html[data-theme=dark] :is(.art-line,.art-grid i){background:#2c4454}
html[data-theme=dark] :is(.stat-card a,.role-card code,.notification-row time,.workspace-footer,.public-footer){color:var(--muted)}
html[data-theme=dark] .market-import-table :is(td,th):first-child{background:var(--white)}
/* Keep product photography and brand logos on a neutral white mat. */
html[data-theme=dark] :is(.market-image-preview,.market-brand-thumb){background:#fff}
html[data-theme=dark] #charkhchand{--cc-bg:#101923;--cc-paper:#1a2735;--cc-ink:#e4edf6;--cc-muted:#a5b6c8;--cc-line:#344456;--cc-soft:#223850;--cc-brand:#94baff;--cc-up:#ff9da7;--cc-down:#89dfbd;color-scheme:dark}
html[data-theme=dark] #charkhchand :is(.cc-search-strip,.cc-empty,.cc-adbox,.cc-brand-card,.cc-detail-cover,.cc-section,.cc-method-steps,.cc-footer){background:var(--cc-paper)}
html[data-theme=dark] #charkhchand .cc-filter-form :is(input,select){background:#14202c;color:var(--cc-ink);border-color:var(--cc-line)}
html[data-theme=dark] #charkhchand .cc-filter-form input::placeholder{color:var(--cc-muted)}
html[data-theme=dark] #charkhchand :is(.cc-price-table th,.cc-price-table tbody tr:hover,.cc-model-art){background:#213243}
html[data-theme=dark] #charkhchand :is(.cc-price-table td,.cc-model-art,.cc-method-aside){border-color:var(--cc-line)}
html[data-theme=dark] #charkhchand :is(.cc-model-art,.cc-method-aside p,.cc-step-number){color:var(--cc-muted)}
html[data-theme=dark] #charkhchand .cc-art-symbol{background:var(--cc-soft)}
html[data-theme=dark] #charkhchand :is(.cc-product-visual){background:#fff;border-color:var(--cc-line)}
html[data-theme=dark] #charkhchand .cc-button-primary{background:#315fb3;border-color:#315fb3;color:#fff}
html[data-theme=dark] #charkhchand .cc-button-primary:hover{background:#3c70ca;border-color:#3c70ca}
html[data-theme=dark] #charkhchand .cc-brand-card:hover .cc-brand-arrow{background:#315fb3;border-color:#315fb3}
html[data-theme=dark] #charkhchand .cc-public-notice{background:#493b21;color:#ffdfa1;border-color:#76603a}
html[data-theme=dark] #charkhchand .cc-change.up{background:#422936}
html[data-theme=dark] #charkhchand .cc-change.down{background:#17392f}
html[data-theme=dark] #charkhchand :is(.cc-change.flat,.cc-change.unknown){background:#233344}
html[data-theme=dark] #charkhchand .cc-periods button[aria-pressed=true]{background:var(--cc-paper)}
html[data-theme=dark] #charkhchand .cc-chart-grid{stroke:var(--cc-line)}
html[data-theme=dark] #charkhchand .cc-chart-area{fill:#94baff18}
html[data-theme=dark] #charkhchand .cc-chart-dot{fill:var(--cc-paper)}
html[data-theme=dark] #charkhchand .cc-chart-dot[data-selected]{fill:var(--cc-brand);stroke:var(--cc-paper)}
html[data-theme=dark] #charkhchand .cc-hero-meta span+span{border-color:var(--cc-line)}
@media(max-width:980px){#charkhchand .cc-header-row{gap:16px}#charkhchand .cc-nav{gap:16px}}
@media(max-width:700px){#charkhchand .cc-header-row{gap:0}#charkhchand .cc-header-actions{gap:7px}#charkhchand .theme-toggle{flex-basis:38px;width:38px;height:38px;min-height:38px}}
@media(max-width:360px){#charkhchand .cc-header-row>.cc-logo{gap:7px}#charkhchand .cc-header-row .cc-wordmark{font-size:21px}#charkhchand .cc-header-row .cc-monogram{width:32px;height:35px;font-size:25px}.public-header{padding-inline:14px}.public-header-actions{gap:5px}.public-header-actions .button{font-size:10px;padding:6px}.topbar-start{min-width:0}.breadcrumb{min-width:0}.breadcrumb strong{display:inline-block;max-width:110px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}}

html[data-theme=dark] .cc-brand-logo{filter:invert(1)}
