/* Explicit surface colours keep charts, logos, QR codes and product images intact. */
html[data-theme="dark"]:has(body[data-area="client"]),html[data-theme="dark"]:has(body[data-area="admin"]){color-scheme:dark;background:#101722;color:#dce6f5;--navy:#b9d1f8;--blue:#85b2ff;--muted:#a2b2c8;--border:#2d3b50}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]){background:#101722;color:#dce6f5}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(header,.sidebar,.card,.stat,.ops-metric,.action-dialog,.legal-dialog,.legal-modal,.config-panel,.configurator,.order-panel,.cloud-configurator,.purchase-panel,.wallet-summary,.partner-plan,.partner-summary,.tablewrap){background:#172231;color:#dce6f5;border-color:#2d3b50}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(input,textarea,select){background:#111c2a;color:#e0e9f7;border-color:#415069;color-scheme:dark}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(input,textarea)::placeholder{color:#8496b0}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(h1,h2,h3,h4,strong,.field label){color:#e3edfb}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.sub,.smallnote,.check,.navlink,.breadcrumb,.footer,.stat small,.tag,.field small,.breakdown,.legal,.ops-facts dt){color:#a6b7d0}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.cardhead,td,th,.breakdown,.servicebox,.footer,.config-row,.purchase-row){border-color:#2d3b50}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(th,code,kbd,.sidefoot,.emptyicon,.notice,.ops-stepbar,.connectionbox,.ticketmessage,.tag){background:#1d2d42;color:#b9cde9;border-color:#344761}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .notice.warn{background:#352b1b;color:#e4c891;border-color:#685232}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .btn{background:#3569bd;color:#fff;border-color:#4779c8}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .btn.secondary{background:#1d2c41;color:#d7e5fb;border-color:#3d526e}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.textlink,.policy-inline-links a,.legal-consent a,.ops-table a){color:#8cbaff}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.navlink.active,.navlink:hover,.filter.active){background:#223b60;color:#c3dbff}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .brandlogo[src="/logo.svg"]{content:url('/logo-white.svg')}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .status{background:#203c35;color:#a0d5bc}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .status:is(.pending,.open,.suspended,.awaitingDelivery,.awaitingPayment,.reconcile,.awaiting-provider){background:#3b301c;color:#e7c988}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .status:is(.void,.terminated,.failed,.late-review,.amount-review){background:#43252c;color:#f0adb4}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .qr{background:white;border:10px solid white;border-radius:8px;box-sizing:content-box}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) a:focus-visible,html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) button:focus-visible{outline:2px solid #91bcff}

html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.configtitle,.configterms,.configtotal,.configchip,.fullconfig,.plan-card,.cloudintro,.ea-purchase-summary,.policy-modal,.policy-modal-bottom,.policy-modal-x,.assistant-step,.assistant-placeholder,.assistant-guide,.assistant-result,.assistant-ranking,.assistant-summary,.assistant-empty,.assistant-platforms button,.assistant-server-options button,.broker-suggestions,.broker-popular button,.partner-plan-button,.wallet-amount-chip){background:#172231;color:#cfddf0;border-color:#344761}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.configchip.selected,.configchip:hover,.assistant-platforms button:hover,.assistant-server-options button:hover,.policy-modal-tabs button[aria-selected="true"]){background:#223d63;color:#d9e9ff;border-color:#739ff1}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.configtitle p,.configlabel,.configchip small,.configterms p,.configtotal small,.configtotal span,.cloudintro p,.cloudintro li,.policy-modal-scroll section p,.policy-modal-bottom p,.policy-modal-version,.assistant-hint,.assistant-step-label,.assistant-step-intro,.assistant-help,.assistant-guide p,.partner-description){color:#a9bad2}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.configtotal strong,.policy-modal-heading h2,.policy-modal-scroll h3,.assistant-chosen strong){color:#9fc4ff}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.configrow,.configtitle,.configterms,.policy-modal-heading,.policy-modal-tabs,.policy-modal-bottom,.policy-modal-scroll article>section){border-color:#344761}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.purchase-product-facts dd,.client-demo-panel dd,.assistant-result-heading p,.assistant-pending p,.assistant-refresh-row,.assistant-measurement-note,.assistant-comparison>div>span,.wallet-intro p,.partner-principles p,.partner-status){color:#b6c7df}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.assistant-next-step,.assistant-help,.assistant-recommendation,.assistant-comparison,.assistant-chosen,.assistant-route,.assistant-server-options button,.broker-suggestions button,.partner-current,.partner-discount,.wallet-summary,.wallet-balance-card,.wallet-topup-card,.wallet-guide,.partner-delivery-notice,.partner-tier-choice,.partner-service-job,.partner-order-summary,.commerce-summary){background:#1d2e44;color:#ccddf5;border-color:#3a5071}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.purchase-product-facts,.client-demo-panel,.assistant-result-heading,.assistant-step,.assistant-help,.assistant-comparison li){border-color:#344761}

html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.commerce-balance-bar,.partner-order-consent,.partner-tier-choices button,.partner-status){background:#172a3e;color:#c1d5ef;border-color:#3c526d}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) .partner-tier-choices button.selected{background:#25416a;color:#deebff;border-color:#7aa7ee}
html[data-theme="dark"] body:is([data-area="client"],[data-area="admin"]) :is(.commerce-balance-bar b,.commerce-balance-bar strong,.header-balance b){color:#b4d0f5}
