/* Dark surfaces for the public feature modules. Images and third-party iframes
   retain their original pixels. Every rule is scoped to the explicit theme. */
html[data-theme="dark"]{
  --night-info:#91baff;--night-info-soft:#1d304b;
  --night-purple:#b9a7ff;--night-purple-soft:#2a2946;
  --night-warning-soft:#372f22;--night-danger-soft:#39252e;
  --tutorial-ink:var(--text);--tutorial-muted:var(--muted);--tutorial-line:var(--line);
  --tutorial-panel:var(--surface);--tutorial-purple:var(--night-purple);
  --tutorial-purple-dark:#c5b8ff;--tutorial-soft:var(--night-purple-soft);
  --tutorial-teal:var(--accent-strong);--tutorial-shadow:var(--shadow-soft);
  --ink:var(--text);--danger:var(--red);
}


/* benefit-pass.css */
html[data-theme="dark"] .bp-ad:before,
html[data-theme="dark"] .bp-ticket:before{border:1px solid var(--line)}
html[data-theme="dark"] .bp-ad small{color:var(--accent-strong)}
html[data-theme="dark"] .bp-ad i{color:var(--amber)}
html[data-theme="dark"] .bp-hero,
html[data-theme="dark"] .bp-section,
html[data-theme="dark"] .bp-invite{border:1px solid var(--line,var(--line));background:var(--surface,var(--surface))}
html[data-theme="dark"] .bp-art{background:radial-gradient(ellipse at 15% 0%,var(--night-warning-soft),transparent 75%),var(--accent-soft)}
html[data-theme="dark"] .bp-ticket-top,
html[data-theme="dark"] .bp-ticket-foot{color:var(--muted)}
html[data-theme="dark"] .bp-ticket-foot{border-top:1px dashed var(--line);color:var(--amber)}
html[data-theme="dark"] .bp-ticket-face small{color:var(--accent-strong)}
html[data-theme="dark"] .bp-ticket-face strong{color:var(--amber)}
html[data-theme="dark"] .bp-intro p,
html[data-theme="dark"] .bp-owned p,
html[data-theme="dark"] .bp-section dd,
html[data-theme="dark"] .bp-invite p{color:var(--muted,var(--muted))}
html[data-theme="dark"] .bp-sell strong{color:var(--accent-strong)}
html[data-theme="dark"] .bp-owned-focused{border-color:var(--line)}
html[data-theme="dark"] .bp-status-active{color:var(--accent-strong);background:var(--accent-soft)}
html[data-theme="dark"] .bp-share-copy{background:var(--night-info-soft);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] .bp-refund{background:var(--night-danger-soft);color:var(--red);border-color:var(--line)}
html[data-theme="dark"] .bp-invite{background:var(--accent-soft)}
html[data-theme="dark"] .bp-redeem.is-applied{background:var(--accent-soft);border-color:var(--line);color:var(--accent-strong)}
html[data-theme="dark"] .bp-redeem.is-applied :is(.bp-redeem-title small,.bp-redeem-count,.bp-redeem-amount span){color:var(--muted)}
html[data-theme="dark"] .bp-redeem.is-applied .bp-redeem-amount strong{color:var(--accent-strong)}

/* claude-redemption.css */
html[data-theme="dark"] .claude-account-confirm{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .claude-account-confirm span{color:var(--muted)}

/* comment-commission.css */
html[data-theme="dark"] .comment-hero{background:linear-gradient(135deg,var(--surface) 10%,var(--accent-soft) 100%)}
html[data-theme="dark"] .comment-income-summary span{color:var(--accent-strong)}
html[data-theme="dark"] .comment-income-summary small{color:var(--muted)}
html[data-theme="dark"] .comment-flow>div{background:var(--surface)}
html[data-theme="dark"] .comment-flow b{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-platform-card{background:var(--surface)}
html[data-theme="dark"] .comment-reward-row div{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-reward-row b{color:var(--accent-strong)}
html[data-theme="dark"] .comment-tutorial{background:var(--accent-soft)}
html[data-theme="dark"] .comment-tutorial ol{color:var(--muted)}
html[data-theme="dark"] .comment-copy-box{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-link-preview{color:var(--accent-strong)}
html[data-theme="dark"] .comment-card-actions button{background:var(--surface);color:var(--accent-strong)}
html[data-theme="dark"] .comment-card-actions button.primary{color:var(--text)}
html[data-theme="dark"] .comment-record-item{background:var(--surface)}
html[data-theme="dark"] .comment-record-item>a{color:var(--accent-strong)}
html[data-theme="dark"] .comment-record-status{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-record-status.rejected{background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .comment-record-status.paid{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-evidence-preview{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-platform-choice{background:var(--surface)}
html[data-theme="dark"] .comment-platform-choice strong{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-platform-steps span{background:var(--accent-soft);color:var(--muted)}
html[data-theme="dark"] .comment-guide-block{background:var(--surface)}
html[data-theme="dark"] .comment-guide-block>header button{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-guide-block ol{color:var(--muted)}
html[data-theme="dark"] .comment-configured-tutorial{color:var(--muted)}
html[data-theme="dark"] .comment-active-copy{color:var(--text)}
html[data-theme="dark"] .comment-guide-block code{color:var(--accent-strong)}
html[data-theme="dark"] .comment-active-media button{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-active-media span{color:var(--accent-strong)}
html[data-theme="dark"] .comment-app-fallback{background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .comment-app-fallback.failed{background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .comment-platform-modal-actions{background:var(--surface)}
html[data-theme="dark"] .comment-configured-tutorial h2{color:var(--text)}
html[data-theme="dark"] .comment-configured-tutorial blockquote{background:var(--accent-soft)}
html[data-theme="dark"] .comment-configured-tutorial a{color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-copy .eyebrow{color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-copy p{color:var(--muted)}
html[data-theme="dark"] .comment-leaderboard-meta span{color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-row{background:var(--surface)}
html[data-theme="dark"] .comment-leaderboard-row.top-1 .comment-leaderboard-rank{color:var(--amber)}
html[data-theme="dark"] .comment-leaderboard-row.top-2 .comment-leaderboard-rank{color:var(--muted)}
html[data-theme="dark"] .comment-leaderboard-row.top-3 .comment-leaderboard-rank{color:var(--amber)}
html[data-theme="dark"] .comment-leaderboard-person>.comment-leaderboard-avatar{background:linear-gradient(135deg,var(--accent-soft),var(--night-info-soft));color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-person small{color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-row>span{color:var(--muted)}
html[data-theme="dark"] .comment-leaderboard-row>strong{color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-empty{border:1px dashed var(--line)}
html[data-theme="dark"] .comment-leaderboard-empty span{color:var(--muted)}
html[data-theme="dark"] .comment-page-back a{background:var(--surface);color:var(--accent-strong)}
html[data-theme="dark"] .comment-page-back a:hover{background:var(--surface)}
html[data-theme="dark"] .comment-platform-section{background:linear-gradient(145deg,var(--surface),var(--accent-soft))}
html[data-theme="dark"] .comment-platform-choice{background:linear-gradient(145deg,var(--surface),var(--accent-soft))}
html[data-theme="dark"] .comment-platform-choice .comment-platform-reward strong{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-platform-reward i{background:var(--night-info-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-teaser{background:linear-gradient(135deg,var(--surface) 15%,var(--accent-soft) 100%)}
html[data-theme="dark"] .comment-leaderboard-copy .eyebrow{color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-copy p{color:var(--muted)}
html[data-theme="dark"] .comment-leaderboard-meta span{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-row,
html[data-theme="dark"] .comment-leaderboard-preview .comment-leaderboard-row{background:var(--surface)}
html[data-theme="dark"] .comment-leaderboard-preview .comment-leaderboard-row.top-1{background:linear-gradient(100deg,var(--night-warning-soft),var(--surface) 46%,var(--accent-soft))}
html[data-theme="dark"] .comment-leaderboard-rank{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-leaderboard-row.top-1 .comment-leaderboard-rank{background:var(--night-warning-soft)}
html[data-theme="dark"] .comment-leaderboard-row.top-2 .comment-leaderboard-rank{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-leaderboard-row.top-3 .comment-leaderboard-rank{background:var(--night-danger-soft)}
html[data-theme="dark"] .comment-leaderboard-metric{background:var(--accent-soft)}
html[data-theme="dark"] .comment-leaderboard-metric span{color:var(--muted)}
html[data-theme="dark"] .comment-leaderboard-metric b{color:var(--text)}
html[data-theme="dark"] .comment-leaderboard-metric.reward{background:var(--accent-soft)}
html[data-theme="dark"] .comment-leaderboard-metric.reward b{color:var(--accent-strong)}
html[data-theme="dark"] .comment-leaderboard-row.is-me{background:var(--accent-soft)}
html[data-theme="dark"] .comment-leaderboard-empty{background:var(--surface)}
html[data-theme="dark"] .comment-short-link-card{background:linear-gradient(135deg,var(--surface),var(--accent-soft))}
html[data-theme="dark"] .comment-short-link-actions code{color:var(--accent-strong)}
html[data-theme="dark"] .comment-short-code-input{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-short-code-input b{color:var(--accent-strong)}
html[data-theme="dark"] .comment-short-link-warning{border:1px solid var(--line);background:var(--night-warning-soft)}
html[data-theme="dark"] .comment-short-link-warning b{color:var(--amber)}
html[data-theme="dark"] .comment-short-link-warning p{color:var(--muted)}
html[data-theme="dark"] .comment-submission-header{background:var(--surface)}
html[data-theme="dark"] .comment-file-field input[type=file]::file-selector-button{background:var(--surface)}
html[data-theme="dark"] .comment-evidence-preview button{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-image-viewer-panel{border:1px solid var(--line)}
html[data-theme="dark"] .comment-image-viewer-panel>header{border-bottom:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .comment-image-viewer-panel>header span{color:var(--accent-strong)}
html[data-theme="dark"] .comment-image-viewer-tools button{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-image-viewer-panel>p{border-top:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] .comment-record-item{background:var(--surface)}
html[data-theme="dark"] .comment-record-thumb{background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .comment-record-keyline{color:var(--muted)}
html[data-theme="dark"] .comment-record-main>em{color:var(--accent-strong)}
html[data-theme="dark"] .comment-record-detail-header{background:var(--surface)}
html[data-theme="dark"] .comment-record-detail-summary{background:var(--accent-soft)}
html[data-theme="dark"] .comment-record-detail-thumb{background:var(--surface)}
html[data-theme="dark"] .comment-record-detail-grid>div,
html[data-theme="dark"] .comment-record-detail-block{background:var(--night-info-soft)}
html[data-theme="dark"] .comment-record-detail-block p{color:var(--text)}
html[data-theme="dark"] .comment-record-detail-block.is-danger{background:var(--night-danger-soft)}
html[data-theme="dark"] .comment-record-detail-block.is-danger>span,
html[data-theme="dark"] .comment-record-detail-block.is-danger p{color:var(--red)}
html[data-theme="dark"] .comment-record-detail-actions{background:var(--surface)}
html[data-theme="dark"] .comment-platform-choice .comment-platform-reward strong small{color:var(--muted)}
html[data-theme="dark"] .comment-platform-choice .comment-platform-quota{color:var(--primary,var(--accent-strong))}
html[data-theme="dark"] .comment-quota-notice.is-full{border-color:var(--line);background:var(--night-warning-soft)}
html[data-theme="dark"] .comment-quota-notice.is-full b{color:var(--amber)}

/* domain-notice.css */
html[data-theme="dark"] .domain-notice-panel{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .domain-notice-heading h1{color:var(--text)}
html[data-theme="dark"] .domain-notice-heading p{color:var(--muted)}
html[data-theme="dark"] .domain-notice-address{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .domain-notice-address span:first-child{color:var(--muted)}
html[data-theme="dark"] .domain-notice-address a{color:var(--accent-strong)}
html[data-theme="dark"] .domain-notice-address-mark{color:var(--accent-strong)}
html[data-theme="dark"] .domain-notice-old{color:var(--muted)}
html[data-theme="dark"] .domain-notice-copy{color:var(--muted)}
html[data-theme="dark"] .domain-notice-coupon{border:1px solid var(--line);background:linear-gradient(115deg,var(--accent-soft),var(--accent-soft))}
html[data-theme="dark"] .domain-notice-value{color:var(--accent-strong);border-right:1px dashed var(--line)}
html[data-theme="dark"] .domain-notice-coupon-label{color:var(--accent-strong)}
html[data-theme="dark"] .domain-notice-coupon-info h2{color:var(--text)}
html[data-theme="dark"] .domain-notice-coupon-info p{color:var(--muted)}
html[data-theme="dark"] .domain-notice-coupon-stamp{color:var(--muted)}
html[data-theme="dark"] .domain-notice-rules{color:var(--muted)}
html[data-theme="dark"] .domain-notice-status{color:var(--muted)}
html[data-theme="dark"] .domain-notice-status[data-state=success]{color:var(--accent-strong)}
html[data-theme="dark"] .domain-notice-status[data-state=error]{color:var(--red)}
html[data-theme="dark"] .domain-notice-home{color:var(--muted)}
html[data-theme="dark"] .domain-notice-home:hover{color:var(--accent-strong)}

/* local-shipping.css */
html[data-theme="dark"] .local-shipping-card{border:1px solid var(--line);background:var(--accent-soft);color:var(--text)}
html[data-theme="dark"] .local-shipping-card small,
html[data-theme="dark"] .local-shipping-dialog small{color:var(--accent-strong)}
html[data-theme="dark"] .local-shipping-card p{color:var(--muted)}
html[data-theme="dark"] .local-shipping-card dt{color:var(--muted)}
html[data-theme="dark"] .local-shipping-tracking{background:var(--surface)}
html[data-theme="dark"] .local-shipping-card button,
html[data-theme="dark"] .local-shipping-dialog button{border:1px solid var(--line);background:var(--surface);color:var(--accent-strong)}
html[data-theme="dark"] .local-shipping-dialog{border:1px solid var(--line);color:var(--text)}
html[data-theme="dark"] .local-shipping-dialog p{color:var(--muted)}
html[data-theme="dark"] .local-shipping-dialog input,
html[data-theme="dark"] .local-shipping-dialog textarea{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .local-shipping-dialog pre{background:var(--accent-soft)}
html[data-theme="dark"] .local-shipping-dialog .local-shipping-error{color:var(--red)}

/* lottery.css */
html[data-theme="dark"] .lottery-card{background:linear-gradient(140deg,var(--surface) 35%,var(--accent-soft))}
html[data-theme="dark"] .lottery-card .lottery-badge{color:var(--amber);background:var(--night-warning-soft);border:1px solid var(--line)}
html[data-theme="dark"] .lottery-icon{background:var(--accent-soft)}
html[data-theme="dark"] .lottery-card-action{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .lottery-hero{background:linear-gradient(135deg,var(--surface) 35%,var(--accent-soft))}
html[data-theme="dark"] .lottery-detail-icon{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .lottery-participation-summary.is-announced{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-heading-meta .lottery-participation-summary.is-announced{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-share-button{border-color:var(--line);color:var(--accent-strong);background:var(--accent-soft)}
html[data-theme="dark"] .lottery-overview{background:var(--surface)}
html[data-theme="dark"] .lottery-overview strong{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-entry-status{background:var(--night-info-soft)}
html[data-theme="dark"] .lottery-entry-status.is-joined{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .lottery-history-link{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-next-note{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-past-modal{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .lottery-past-close{background:var(--night-info-soft)}
html[data-theme="dark"] .lottery-past-round{background:var(--accent-soft)}
html[data-theme="dark"] .lottery-winner-row{background:var(--surface)}
html[data-theme="dark"] .lottery-winner-rank{background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .lottery-winner-row.top-1{background:linear-gradient(100deg,var(--night-warning-soft),var(--surface) 46%,var(--accent-soft))}
html[data-theme="dark"] .lottery-winner-row.top-1 .lottery-winner-rank{color:var(--amber);background:var(--night-warning-soft)}
html[data-theme="dark"] .lottery-winner-row.top-2 .lottery-winner-rank{color:var(--muted);background:var(--night-info-soft)}
html[data-theme="dark"] .lottery-winner-row.top-3 .lottery-winner-rank{color:var(--amber);background:var(--night-danger-soft)}
html[data-theme="dark"] .lottery-winner-avatar{background:linear-gradient(135deg,var(--accent-soft),var(--night-info-soft));color:var(--accent-strong)}
html[data-theme="dark"] .lottery-winner-name small{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-winner-award{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .lottery-winner-row.is-me{background:var(--accent-soft)}
html[data-theme="dark"] .lottery-private-prize{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .lottery-private-prize h2{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-private-prize pre{background:var(--surface);border:1px solid var(--line);color:var(--accent-strong)}
html[data-theme="dark"] .lottery-prize-instructions{border-top:1px solid var(--line)}
html[data-theme="dark"] .lottery-prize-instructions h3{color:var(--accent-strong)}
html[data-theme="dark"] .lottery-history-card{background:var(--surface)}
html[data-theme="dark"] .lottery-history-icon{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .lottery-history-status.won{color:var(--accent-strong)}

/* order-detail-modal.css */
html[data-theme="dark"] .order-detail-confirm-trigger{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] [data-order-recharge-confirmation-note]{color:var(--accent-strong)}
html[data-theme="dark"] [data-order-recharge-confirmation-note].is-error{color:var(--red)}
html[data-theme="dark"] .order-detail-apple-mappings>summary small{color:var(--muted)}
html[data-theme="dark"] .order-detail-mapping-toggle{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-mapping-items>article{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .order-detail-mapping-items>article>header span{color:var(--muted)}
html[data-theme="dark"] .order-detail-mapped-code{background:var(--surface)}
html[data-theme="dark"] .order-detail-mapped-code b{color:var(--muted)}
html[data-theme="dark"] .order-detail-mapped-code button{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-dialog{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .order-detail-header{border-bottom:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .order-detail-header small,
html[data-theme="dark"] .order-detail-section header small{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-header h2{color:var(--text)}
html[data-theme="dark"] .order-detail-close{border:1px solid var(--line);background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .order-detail-usage-trigger{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-usage-trigger:hover:not(:disabled){background:var(--accent-soft)}
html[data-theme="dark"] .order-detail-refund-trigger{border:1px solid var(--line);background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .order-detail-refund-trigger:hover:not(:disabled){border-color:var(--line);background:var(--night-danger-soft)}
html[data-theme="dark"] .order-detail-refund-dialog{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .order-detail-refund-dialog>header{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .order-detail-refund-dialog>header small{color:var(--red)}
html[data-theme="dark"] .order-detail-refund-dialog>header h3{color:var(--text)}
html[data-theme="dark"] .order-detail-refund-dialog>header button{border:1px solid var(--line);background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .order-detail-refund-summary span{border:1px solid var(--line);background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .order-detail-refund-summary b{color:var(--text)}
html[data-theme="dark"] .order-detail-refund-form label{color:var(--muted)}
html[data-theme="dark"] .order-detail-refund-form select,
html[data-theme="dark"] .order-detail-refund-form input,
html[data-theme="dark"] .order-detail-refund-form textarea{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .order-detail-refund-note{background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .order-detail-refund-status{background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .order-detail-refund-status[data-kind="pending"]{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-refund-form>footer button{border:1px solid var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .order-detail-overview{border:1px solid var(--line);background:linear-gradient(120deg,var(--surface),var(--accent-soft))}
html[data-theme="dark"] .order-detail-refund-recovery{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .order-detail-refund-recovery b{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-refund-recovery small{color:var(--muted)}
html[data-theme="dark"] .order-detail-refund-recovery.is-disabled{border-color:var(--line);background:var(--surface-2)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery{border:1px solid var(--line);background:var(--night-danger-soft)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery b{color:var(--red)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery small{color:var(--muted)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery>p{background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery>p[data-kind="pending"]{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery>p[data-kind="success"]{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery.is-ready{border-color:var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery.is-ready b{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery.is-ready small{color:var(--muted)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery .order-detail-refund-recovery.is-writeoff{border-color:var(--line);background:var(--night-danger-soft)}
html[data-theme="dark"] .order-detail-legacy-credit-recovery .order-detail-refund-recovery.is-writeoff b{color:var(--red)}
html[data-theme="dark"] .order-detail-writeoff-confirm{border:1px dashed var(--line);background:var(--surface)}
html[data-theme="dark"] .order-detail-writeoff-confirm>span{color:var(--red)!important}
html[data-theme="dark"] .order-detail-proactive-refund{border:1px solid var(--line);background:var(--night-danger-soft)}
html[data-theme="dark"] .order-detail-proactive-refund .order-detail-refund-recovery.is-writeoff{border-color:var(--line);background:var(--night-danger-soft)}
html[data-theme="dark"] .order-detail-proactive-refund .order-detail-refund-recovery.is-writeoff b{color:var(--red)}
html[data-theme="dark"] .order-detail-refund-advanced{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .order-detail-refund-advanced>summary{color:var(--muted)}
html[data-theme="dark"] .order-detail-refund-advanced[open]>summary{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .order-detail-product small{color:var(--muted)}
html[data-theme="dark"] .order-detail-product h3{color:var(--text)}
html[data-theme="dark"] .order-detail-product a{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-snapshot-badges i{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-snapshot{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .order-detail-snapshot>header small{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-snapshot>header h3{color:var(--text)}
html[data-theme="dark"] .order-detail-snapshot>header>span{color:var(--muted)}
html[data-theme="dark"] .order-detail-snapshot>details{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .order-detail-snapshot>details>summary{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-snapshot>details section{border-top:1px solid var(--line)}
html[data-theme="dark"] .order-detail-snapshot>details section>b{color:var(--text)}
html[data-theme="dark"] .order-detail-snapshot>details section>div{color:var(--text)}
html[data-theme="dark"] .order-detail-snapshot-warning{border:1px solid var(--line);background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .order-detail-snapshot-warning.is-invalid{border-color:var(--line);background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .order-detail-total small{color:var(--muted)}
html[data-theme="dark"] .order-detail-total strong{color:var(--text)}
html[data-theme="dark"] .order-detail-total span{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-summary>div{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .order-detail-summary small{color:var(--muted)}
html[data-theme="dark"] .order-detail-summary b{color:var(--text)}
html[data-theme="dark"] .order-detail-summary span{color:var(--muted)}
html[data-theme="dark"] .order-detail-section{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .order-detail-section h3{color:var(--text)}
html[data-theme="dark"] .order-detail-section>header>span{color:var(--muted)}
html[data-theme="dark"] .order-detail-section>header>button,
html[data-theme="dark"] .order-detail-delivery-controls>[data-order-detail-copy],
html[data-theme="dark"] .order-detail-delivery-controls>[data-order-card-replacement],
html[data-theme="dark"] .order-detail-delivery-controls>[data-order-recharge-recovery]{border:1px solid var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .order-detail-delivery-controls>[data-order-recharge-recovery]{border-color:var(--line);background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .order-detail-delivery-controls>[data-order-recharge-recovery]:hover:not(:disabled){background:var(--night-warning-soft)}
html[data-theme="dark"] .order-detail-grid>div{border-top:1px solid var(--line)}
html[data-theme="dark"] .order-detail-grid dt{color:var(--muted)}
html[data-theme="dark"] .order-detail-grid dd{color:var(--text)}
html[data-theme="dark"] .order-detail-delivery pre{border:1px solid var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .order-detail-usage-instructions{background:var(--accent-soft)}
html[data-theme="dark"] .order-detail-usage-instructions-heading span{color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-usage-instructions-body{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .order-detail-usage-instructions-body blockquote{background:var(--accent-soft)}
html[data-theme="dark"] .order-detail-usage-instructions-body a{color:var(--night-purple)}
html[data-theme="dark"] .order-detail-delivery-actions a{color:var(--text)}
html[data-theme="dark"] .order-detail-record{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .order-detail-record small{color:var(--muted)}
html[data-theme="dark"] .order-detail-record>span{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .order-detail-record>span.is-failed,
html[data-theme="dark"] .order-detail-record>span.is-cancelled{background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .order-detail-record>span.is-pending{background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .order-detail-loading i{border:3px solid var(--line)}
html[data-theme="dark"] .order-detail-loading span,
html[data-theme="dark"] .order-detail-error span{color:var(--muted)}
html[data-theme="dark"] .ph-refund-recovery{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .ph-refund-recovery header span{color:var(--accent-strong)}
html[data-theme="dark"] .ph-refund-recovery small{color:var(--muted)}
html[data-theme="dark"] .ph-refund-card{background:var(--surface)}
html[data-theme="dark"] .ph-refund-card details>summary{color:var(--accent-strong)}
html[data-theme="dark"] .ph-refund-card input,
html[data-theme="dark"] .ph-refund-card textarea{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .refund-card-selection{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .refund-card-selection small{color:var(--muted)}
html[data-theme="dark"] .refund-card-selection button{border:1px solid var(--line);background:var(--surface);color:var(--night-info)}
html[data-theme="dark"] .refund-card-selection .refund-select-card{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .refund-select-card em{color:var(--accent-strong)}
html[data-theme="dark"] .refund-select-card.is-blocked{background:var(--night-info-soft)}
html[data-theme="dark"] .refund-select-card.is-blocked em{color:var(--muted)}
html[data-theme="dark"] .refund-card-selection [data-refund-card-confirm] input{border:1px solid var(--line)}
html[data-theme="dark"] .order-detail-snapshot-badges i.order-specification{background:var(--night-info-soft);color:var(--muted);border:1px solid var(--line)}

/* professional-api-docs.css */
html[data-theme="dark"] .professional-api-docs-main{color:var(--text)}
html[data-theme="dark"] .api-doc-hero{border:1px solid var(--line);background:linear-gradient(135deg,var(--surface) 20%,var(--accent-soft))}
html[data-theme="dark"] .api-doc-hero>div>a{color:var(--muted)}
html[data-theme="dark"] .api-doc-hero>div>span,
html[data-theme="dark"] .api-doc-section-heading>span{color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-hero p{color:var(--muted)}
html[data-theme="dark"] .api-doc-hero>div>div em{background:var(--surface);color:var(--muted);border:1px solid var(--line)}
html[data-theme="dark"] .api-doc-hero>aside{background:var(--surface)}
html[data-theme="dark"] .api-doc-hero>aside span{color:var(--muted)}
html[data-theme="dark"] .api-doc-hero>aside code{color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-hero>aside button{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-auth-strip>div{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .api-doc-auth-strip span{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-auth-strip small{color:var(--muted)}
html[data-theme="dark"] .api-doc-nav{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .api-doc-nav>button{background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .api-doc-nav>button i{background:var(--surface);color:var(--muted)}
html[data-theme="dark"] .api-doc-nav>button small{color:var(--muted)}
html[data-theme="dark"] .api-doc-nav>button:hover,
html[data-theme="dark"] .api-doc-nav>button.is-active{border-color:var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-nav>div{background:var(--night-warning-soft)}
html[data-theme="dark"] .api-doc-nav>div b{color:var(--amber)}
html[data-theme="dark"] .api-doc-nav>div p{color:var(--muted)}
html[data-theme="dark"] .api-doc-section-heading,
html[data-theme="dark"] .api-doc-table-card,
html[data-theme="dark"] .api-doc-status-card,
html[data-theme="dark"] .api-doc-error-card{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .api-doc-section-heading p{color:var(--muted)}
html[data-theme="dark"] .api-doc-callout{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .api-doc-callout b{color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-callout p{color:var(--muted)}
html[data-theme="dark"] .api-doc-callout.is-gold{border-color:var(--line);background:var(--night-warning-soft)}
html[data-theme="dark"] .api-doc-callout.is-gold b{color:var(--amber)}
html[data-theme="dark"] .api-doc-callout.is-gold p{color:var(--muted)}
html[data-theme="dark"] .api-doc-flow li{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .api-doc-flow li:before{color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-flow span{color:var(--muted)}
html[data-theme="dark"] .api-doc-endpoint{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .api-doc-endpoint code{color:var(--muted)}
html[data-theme="dark"] .api-doc-endpoint p{color:var(--muted)}
html[data-theme="dark"] .api-doc-table{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .api-doc-table>div{background:var(--surface)}
html[data-theme="dark"] .api-doc-table span{color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-table p{color:var(--muted)}
html[data-theme="dark"] .api-doc-code-card>header{border-bottom:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] .api-doc-code-card>header button{border:1px solid var(--line);background:var(--surface);color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-code-card pre{color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-status-card>div span{background:var(--night-info-soft)}
html[data-theme="dark"] .api-doc-status-card>div b{color:var(--accent-strong)}
html[data-theme="dark"] .api-doc-status-card>div small{color:var(--muted)}
html[data-theme="dark"] .api-doc-status-card>p{color:var(--muted)}
html[data-theme="dark"] .api-doc-error-card li{background:var(--night-info-soft)}
html[data-theme="dark"] .api-doc-error-card code{color:var(--muted)}
html[data-theme="dark"] .api-doc-error-card span{color:var(--muted)}

/* professional-prices.css */
html[data-theme="dark"] .professional-price-dialog{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .professional-price-dialog>header{background:var(--surface);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .professional-price-dialog header small{color:var(--accent-strong)}
html[data-theme="dark"] .professional-price-dialog button{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .professional-price-body>p{color:var(--muted)}
html[data-theme="dark"] .professional-price-dialog input,
html[data-theme="dark"] .professional-price-dialog select{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .professional-price-table th,
html[data-theme="dark"] .professional-price-table td{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .professional-price-table small{color:var(--muted)}
html[data-theme="dark"] .professional-price-table strong{color:var(--accent-strong)}
html[data-theme="dark"] [data-open-professional-prices]{border:1px solid var(--line);background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .professional-price-icon{color:var(--accent-strong);background:var(--accent-soft)}
html[data-theme="dark"] .professional-price-category summary{border:1px solid var(--line)}
html[data-theme="dark"] .professional-price-category-menu{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] .professional-price-category-menu button{background:var(--surface)}
html[data-theme="dark"] .professional-price-category-menu button:hover,
html[data-theme="dark"] .professional-price-category-menu button:focus-visible{background:var(--accent-soft)}

/* redemption-ui.css */
html[data-theme="dark"] .redemption-ui-summary>.redemption-ui-card,
html[data-theme="dark"] .session-confirm-summary>.redemption-ui-card,
html[data-theme="dark"] .session-result-grid>.redemption-ui-card,
html[data-theme="dark"] .result-grid>.redemption-ui-card{border:1px solid var(--line,var(--line));background:var(--surface-2,var(--night-info-soft))}
html[data-theme="dark"] .redemption-ui-card>span{color:var(--muted,var(--muted))}
html[data-theme="dark"] .redemption-ui-card>b{color:var(--text,var(--text))}
html[data-theme="dark"] .redemption-ui-summary>.redemption-ui-card--product,
html[data-theme="dark"] .session-confirm-summary>.redemption-ui-card--product,
html[data-theme="dark"] .session-result-grid>.redemption-ui-card--product,
html[data-theme="dark"] .result-grid>.redemption-ui-card--product{background:linear-gradient(120deg,var(--accent-soft) 0%,var(--accent-soft) 65%,var(--accent-soft) 100%)}
html[data-theme="dark"] .redemption-ui-card--product>span{color:var(--accent-strong)}
html[data-theme="dark"] .redemption-ui-card--product>b{color:var(--accent-strong)}
html[data-theme="dark"] .redemption-ui-summary>.redemption-ui-card--detected,
html[data-theme="dark"] .session-confirm-summary>.redemption-ui-card--detected,
html[data-theme="dark"] .session-result-grid>.redemption-ui-card--detected,
html[data-theme="dark"] .result-grid>.redemption-ui-card--detected{border-color:var(--line);background:linear-gradient(105deg,var(--accent-soft),var(--accent-soft))}
html[data-theme="dark"] .redemption-ui-card--detected:before{color:var(--accent-strong);background:var(--accent-soft)}
html[data-theme="dark"] .redemption-ui-card--detected>span{color:var(--accent-strong)}
html[data-theme="dark"] .redemption-ui-card--detected>b{color:var(--accent-strong)}
html[data-theme="dark"] .redemption-ui-card>.redemption-ui-account-hint{color:var(--muted)}
html[data-theme="dark"] .session-complete>.redemption-ui-queue,
html[data-theme="dark"] .redemption-ui-queue{color:var(--accent-strong)}
html[data-theme="dark"] .redemption-ui-loader-halo{background:conic-gradient(from 120deg,var(--night-info-soft),var(--night-purple-soft),var(--night-info-soft),var(--night-info-soft))}
html[data-theme="dark"] .redemption-ui-loader-orbit{border:1px solid var(--line)}
html[data-theme="dark"] .redemption-ui-loader-orbit--inner{border-color:var(--line)}
html[data-theme="dark"] .redemption-ui-loader-disc{background:var(--surface)}
html[data-theme="dark"] [data-redemption-ui-state="completed"] .redemption-ui-loader-check{color:var(--accent-strong)}
html[data-theme="dark"] [data-redemption-ui-state="failed"] .redemption-ui-loader-error{color:var(--red)}
html[data-theme="dark"] [data-redemption-ui-state="failed"] .redemption-ui-loader-ring{background:var(--night-danger-soft)}
html[data-theme="dark"] .redemption-ui-progress{background:var(--night-info-soft)}
html[data-theme="dark"] .redemption-ui-progress:after{background:linear-gradient(90deg,var(--night-info-soft),var(--night-purple-soft),var(--night-purple-soft))}
html[data-theme="dark"] .redemption-ui-elapsed{border:1px solid var(--line);background:var(--night-info-soft);color:var(--muted)}

/* store-analytics.css */
html[data-theme="dark"] .store-metric footer b{color:var(--accent-strong)}
html[data-theme="dark"] .store-insights-grid header h3{color:var(--text)}
html[data-theme="dark"] .store-insights-grid header p{color:var(--muted)}
html[data-theme="dark"] .store-insight-tabs{background:var(--night-info-soft)}
html[data-theme="dark"] .store-insight-tabs button{color:var(--muted)}
html[data-theme="dark"] .store-insight-tabs [aria-selected=true]{background:var(--surface);color:var(--accent-strong)}
html[data-theme="dark"] .store-insight-grid-lines line{stroke:var(--line)}
html[data-theme="dark"] .store-insight-grid-lines text,
html[data-theme="dark"] .store-insight-x{fill:var(--muted)}
html[data-theme="dark"] .store-insight-dot{fill:var(--night-info);stroke:var(--line)}
html[data-theme="dark"] .store-insight-hover line{stroke:var(--line)}
html[data-theme="dark"] .store-insight-hover circle{stroke:var(--line)}
html[data-theme="dark"] .store-insight-legend{color:var(--night-info)}
html[data-theme="dark"] .store-insight-legend span+span{color:var(--amber)}
html[data-theme="dark"] .store-device-donut>span{color:var(--muted)}
html[data-theme="dark"] .store-device-legend small{color:var(--muted)}
html[data-theme="dark"] .store-insight-product-table th{border-bottom:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] .store-insight-product-table td{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .store-insight-product-table td small{color:var(--muted)}
html[data-theme="dark"] .store-insight-product-table td strong{color:var(--accent-strong)}
html[data-theme="dark"] .store-insight-product-table td i{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-insight-progress i{background:var(--night-info-soft)}
html[data-theme="dark"] .store-insight-progress small{color:var(--muted)}
html[data-theme="dark"] .store-insight-hour-chart,
html[data-theme="dark"] .store-insight-visit-chart{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .store-insight-hour-chart i,
html[data-theme="dark"] .store-insight-visit-chart i{background:linear-gradient(#20b8a9,var(--accent-soft))}
html[data-theme="dark"] .store-insight-hour-chart small,
html[data-theme="dark"] .store-insight-visit-chart small{color:var(--muted)}
html[data-theme="dark"] .store-insight-tooltip{border:1px solid var(--line);background:var(--surface);color:var(--text)}

/* store-commerce.css */
html[data-theme="dark"] .store-product-edit>summary{color:var(--accent-strong)}
html[data-theme="dark"] .store-product-edit[open]{border-top:1px solid var(--line)}
html[data-theme="dark"] .store-price-alert{color:var(--amber);background:var(--night-warning-soft)}
html[data-theme="dark"] .store-coupon-manager p,
html[data-theme="dark"] .store-navigation-manager p{color:var(--muted)}
html[data-theme="dark"] .store-coupon-manager button,
html[data-theme="dark"] .store-navigation-manager button{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-coupon-manager input,
html[data-theme="dark"] .store-coupon-manager select,
html[data-theme="dark"] .store-navigation-manager input{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-commerce-note{background:var(--accent-soft)}
html[data-theme="dark"] .store-coupon-cards>article{border:1px solid var(--line)}
html[data-theme="dark"] .store-coupon-cards header span{color:var(--muted)}
html[data-theme="dark"] .store-coupon-cards strong{color:var(--accent-strong)}
html[data-theme="dark"] .store-coupon-cards small{color:var(--muted)}
html[data-theme="dark"] .store-coupon-editor{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] body[data-page="store-dashboard"] .store-simple-card{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] .store-card-icon{color:var(--accent-strong)}
html[data-theme="dark"] .store-item-category{color:var(--muted)}
html[data-theme="dark"] .store-item-status{color:var(--accent-strong);background:var(--accent-soft)}
html[data-theme="dark"] .store-simple-card-name p{color:var(--muted)}
html[data-theme="dark"] .store-card-metrics>div,
html[data-theme="dark"] .store-card-metrics>label{background:var(--night-info-soft)}
html[data-theme="dark"] .store-card-metrics span{color:var(--muted)!important}
html[data-theme="dark"] .store-card-metrics input{background:var(--surface)!important;color:var(--text)}
html[data-theme="dark"] .store-stock-number{color:var(--accent-strong)}
html[data-theme="dark"] .store-card-markup{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-card-fee{color:var(--muted)}
html[data-theme="dark"] .store-card-floor{color:var(--muted)}
html[data-theme="dark"] .store-card-floor strong{color:var(--amber)}
html[data-theme="dark"] .store-simple-control footer label{color:var(--muted)}
html[data-theme="dark"] .store-simple-control footer button{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-card-income{color:var(--muted)}
html[data-theme="dark"] .store-card-income b{color:var(--accent-strong)}
html[data-theme="dark"] .store-card-fee-policy{color:var(--muted)}
html[data-theme="dark"] .store-card-fee-policy b{color:var(--accent-strong)}
html[data-theme="dark"] .store-coupon-dialog{border:1px solid var(--line);color:var(--text);background:var(--surface)}
html[data-theme="dark"] .store-coupon-dialog>header{background:var(--surface);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .store-coupon-dialog header small{color:var(--accent-strong)}
html[data-theme="dark"] .store-coupon-dialog [data-coupon-dialog-close]{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-coupon-floor-help{background:var(--accent-soft);border:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] .store-coupon-floor-help b{color:var(--accent-strong)}
html[data-theme="dark"] .store-catalog-pricing-status{color:var(--accent-strong)}
html[data-theme="dark"] .store-price-invalid .store-card-floor{color:var(--amber)}
html[data-theme="dark"] .store-price-invalid input[name=sale_price]{background:var(--night-danger-soft)!important}
html[data-theme="dark"] .store-floor-coupon-note{color:var(--muted)}
html[data-theme="dark"] .store-card-coupon-income b{color:var(--accent-strong)}
html[data-theme="dark"] .store-nav-preview{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-nav-chip{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .store-nav-chip.is-promotion{background:linear-gradient(120deg,var(--night-warning-soft),var(--night-danger-soft))}
html[data-theme="dark"] .store-navigation-manager .store-nav-chip button{color:var(--muted)}
html[data-theme="dark"] .store-navigation-manager .store-nav-edit{color:var(--text)}
html[data-theme="dark"] .store-navigation-manager .store-nav-remove{color:var(--muted)}
html[data-theme="dark"] .store-nav-keyboard{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] .store-nav-available>span{color:var(--muted)}
html[data-theme="dark"] .store-navigation-manager .store-nav-available button{background:var(--surface);border:1px dashed var(--line)}
html[data-theme="dark"] .store-nav-item-editor{background:var(--accent-soft)}
html[data-theme="dark"] .store-nav-item-editor label{color:var(--muted)}
html[data-theme="dark"] .store-simple-card-name a:hover{color:var(--accent-strong)}

/* store-custom-domain.css */
html[data-theme="dark"] .store-custom-domain-note{color:var(--muted)}
html[data-theme="dark"] .store-custom-domain-input input{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .store-custom-domain button.store-custom-domain-waiting:disabled,
html[data-theme="dark"] .store-custom-domain button.store-custom-domain-waiting:disabled:hover{background:var(--night-info-soft);color:var(--muted);border:1px solid var(--line)}
html[data-theme="dark"] .store-custom-domain-badge{background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .store-custom-domain-badge.is-active{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-custom-domain-record{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .store-custom-domain-record-title > span{color:var(--muted)}
html[data-theme="dark"] .store-custom-domain-record dt{color:var(--muted)}
html[data-theme="dark"] .store-custom-domain-record code{color:var(--text)}
html[data-theme="dark"] .store-custom-domain-record button{color:var(--accent-strong)}
html[data-theme="dark"] .store-custom-domain-feedback{color:var(--muted)}
html[data-theme="dark"] .store-custom-domain-confirm{border:1px solid var(--line);background:var(--night-danger-soft)}
html[data-theme="dark"] .store-custom-domain-confirm p{color:var(--muted)}
html[data-theme="dark"] .store-custom-domain-confirm button{border:1px solid var(--line);background:var(--surface);color:var(--muted)}

/* store-dashboard-v2.css */
html[data-theme="dark"] body[data-page="store-dashboard"]{background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .store-console-sidebar{color:var(--muted)}
html[data-theme="dark"] .store-console-brand>span{color:var(--accent-strong)}
html[data-theme="dark"] .store-console-brand small{color:var(--muted)}
html[data-theme="dark"] .store-console-sidebar nav a{color:var(--muted)}
html[data-theme="dark"] .store-console-status{color:var(--muted)}
html[data-theme="dark"] .store-console-side-bottom a{color:var(--muted)}
html[data-theme="dark"] .store-console-breadcrumb{color:var(--muted)}
html[data-theme="dark"] .store-console-breadcrumb i{color:var(--muted)}
html[data-theme="dark"] .store-console-breadcrumb b{color:var(--text)}
html[data-theme="dark"] .store-console-breadcrumb [data-console-draft]{color:var(--amber)}
html[data-theme="dark"] .store-console .store-dashboard-hero p{color:var(--muted)}
html[data-theme="dark"] .store-overview-heading p{color:var(--muted)}
html[data-theme="dark"] .store-report-presets button,
html[data-theme="dark"] .store-report-dates button,
html[data-theme="dark"] .store-order-filters button,
html[data-theme="dark"] .store-order-pagination button,
html[data-theme="dark"] .store-console-error button{border:1px solid var(--line);color:var(--muted);background:var(--surface)}
html[data-theme="dark"] .store-report-presets button.active{background:var(--accent-soft);color:var(--accent-strong);border-color:var(--line)}
html[data-theme="dark"] .store-report-dates{color:var(--muted)}
html[data-theme="dark"] .store-report-dates input{border:1px solid var(--line);background:var(--surface);color:var(--muted)}
html[data-theme="dark"] .store-metric{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] .store-metric>span{color:var(--muted)}
html[data-theme="dark"] .store-metric strong{color:var(--text)}
html[data-theme="dark"] .store-metric:nth-child(-n+2){background:var(--accent-soft);border-color:var(--line)}
html[data-theme="dark"] .store-metric:nth-child(-n+2) strong{color:var(--accent-strong)}
html[data-theme="dark"] .store-metric small{color:var(--muted)}
html[data-theme="dark"] .store-console .content-panel{border:1px solid var(--line)}
html[data-theme="dark"] .store-console .muted{color:var(--muted)}
html[data-theme="dark"] .store-chart-card p{color:var(--muted)}
html[data-theme="dark"] .store-chart-legend{color:var(--accent-strong)}
html[data-theme="dark"] .store-chart-legend.is-blue{color:var(--muted)}
html[data-theme="dark"] .store-bar-track{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .is-blue .store-bar-track i{background:linear-gradient(var(--night-info-soft),#5e92c9)}
html[data-theme="dark"] .store-bar-day small{color:var(--muted)}
html[data-theme="dark"] .store-top-products article{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .store-top-products article>span{background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .store-top-products small{color:var(--muted)}
html[data-theme="dark"] .store-metric-notes p{color:var(--muted)}
html[data-theme="dark"] .store-metric-notes>small{color:var(--muted)}
html[data-theme="dark"] .store-daily-details{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-daily-details summary{color:var(--muted)}
html[data-theme="dark"] .store-console-section-title{color:var(--muted)}
html[data-theme="dark"] .store-console-loading,
html[data-theme="dark"] .store-console-error,
html[data-theme="dark"] .store-console-empty{color:var(--muted)}
html[data-theme="dark"] .store-console-loading{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] .store-console-error{background:var(--surface);border:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] .store-console th{color:var(--muted);background:var(--night-info-soft)}
html[data-theme="dark"] .store-console td,
html[data-theme="dark"] .store-console th{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .store-console td small{color:var(--muted)}
html[data-theme="dark"] .store-console td .store-refund-label{color:var(--amber)}
html[data-theme="dark"] .store-state-tag{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-console .store-order-list p{color:var(--muted)}
html[data-theme="dark"] .store-console .store-order-list>header>a{color:var(--accent-strong)}
html[data-theme="dark"] .store-order-filters label{color:var(--muted)}
html[data-theme="dark"] .store-order-filters input,
html[data-theme="dark"] .store-order-filters select{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-order-pagination{color:var(--muted)}
@media(max-width:900px){
html[data-theme="dark"] .store-console-mobile-nav{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] .store-console-mobile-nav label{color:var(--muted)}
html[data-theme="dark"] .store-console-mobile-nav select{background:var(--accent-soft);color:var(--accent-strong)}
}
html[data-theme="dark"] .store-public-settings>header p{color:var(--muted)}
html[data-theme="dark"] .store-public-qq{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .store-public-field>span{color:var(--text)}
html[data-theme="dark"] .store-public-field input,
html[data-theme="dark"] .store-public-field select{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .store-public-field input:disabled{background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .store-public-field small,
html[data-theme="dark"] .store-public-editor-tools small{color:var(--muted)}
html[data-theme="dark"] .store-public-notice{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-public-preview{border:1px solid var(--line)}
html[data-theme="dark"] .store-public-preview summary{color:var(--accent-strong)}
html[data-theme="dark"] .store-public-preview article{border-top:1px solid var(--line)}
html[data-theme="dark"] .store-public-preview p{color:var(--muted)}
html[data-theme="dark"] .store-public-settings button:not(.primary-button){border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-public-settings button.store-public-delete{color:var(--muted);background:var(--night-danger-soft);border-color:var(--line)}
html[data-theme="dark"] .store-public-editor{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-public-settings .store-public-editor-tools button{background:var(--night-info-soft);border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .store-public-richtext{color:var(--text)}
html[data-theme="dark"] .store-public-richtext a{color:var(--accent-strong)}
html[data-theme="dark"] .store-public-content{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-public-content[contenteditable="false"]{background:var(--night-info-soft)}
html[data-theme="dark"] .store-public-editor-actions>span,
html[data-theme="dark"] .store-public-empty{color:var(--muted)}
html[data-theme="dark"] .store-public-settings>footer{border-top:1px solid var(--line)}
html[data-theme="dark"] .store-public-save-status{color:var(--muted)}
html[data-theme="dark"] .store-public-save-status.is-error{color:var(--red)}
html[data-theme="dark"] .store-api-doc-button{border:1px solid var(--line);background:linear-gradient(135deg,var(--accent-soft),var(--surface));color:var(--accent-strong)}
html[data-theme="dark"] .store-api-doc-button small{color:var(--muted)}
html[data-theme="dark"] .store-api-entry-grid a{border:1px solid var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .store-api-entry-grid a:hover{border-color:var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .store-api-entry-grid span{color:var(--muted)}
html[data-theme="dark"] .store-api-entry-grid em{color:var(--accent-strong)}
html[data-theme="dark"] .store-catalog-manager>header p{color:var(--muted)}
html[data-theme="dark"] .store-catalog-manager .store-markup-form button,
html[data-theme="dark"] .store-catalog-manager [data-save-visible-products]{border:1px solid var(--line);background:var(--surface);color:var(--accent-strong)}
html[data-theme="dark"] .store-category-browser{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .store-category-browser>header span{color:var(--muted)}
html[data-theme="dark"] .store-category-card{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .store-category-card:hover,
html[data-theme="dark"] .store-category-card.is-active{background:var(--accent-soft)}
html[data-theme="dark"] .store-category-card>span:nth-child(2) small{color:var(--muted)}
html[data-theme="dark"] .store-category-card>em{background:var(--surface-2);color:var(--muted)}
html[data-theme="dark"] .store-category-card>em.is-active{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-category-card>i{color:var(--accent-strong)}
html[data-theme="dark"] .store-category-all-note,
html[data-theme="dark"] .store-category-settings{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-category-all-note span{color:var(--muted)}
html[data-theme="dark"] .store-category-settings>div small{color:var(--muted)}
html[data-theme="dark"] .store-category-settings label>span{color:var(--muted)}
html[data-theme="dark"] .store-category-settings input,
html[data-theme="dark"] .store-category-settings select{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-category-settings>button{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-selected-category-heading{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .store-selected-category-heading b span{color:var(--accent-strong)}
html[data-theme="dark"] .store-selected-category-heading small{color:var(--muted)}
html[data-theme="dark"] .store-selected-category-heading strong{color:var(--accent-strong)}
html[data-theme="dark"] body[data-page="store-dashboard"] .store-product-toolbar>button{border:1px solid var(--line);background:var(--surface);color:var(--muted)}
html[data-theme="dark"] body[data-page="store-dashboard"] .store-product-control label>span em{color:var(--muted)}
html[data-theme="dark"] .store-variant-toggle{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .store-variant-toggle small{color:var(--muted)}
html[data-theme="dark"] .store-variant-toggle em{color:var(--accent-strong)}
html[data-theme="dark"] .store-product-empty{border:1px dashed var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .store-product-empty span{color:var(--muted)}
html[data-theme="dark"] .store-dashboard-actions a[data-store-return-personal]{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .store-dashboard-actions a[data-store-view-shop]{border-color:var(--line);color:var(--amber)}
html[data-theme="dark"] .store-domain-reservation>div>span{background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .store-domain-reservation>p{color:var(--muted)}
html[data-theme="dark"] .store-domain-panel p{color:var(--muted)}
html[data-theme="dark"] .store-domain-input>span{color:var(--muted)}

/* support-ai.css */
html[data-theme="dark"] .support-ai-admin{border:1px solid var(--line);color:var(--text);background:var(--surface)}
html[data-theme="dark"] .support-ai-admin header small{color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-admin nav{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .support-ai-admin nav button{border:1px solid var(--line);color:var(--muted);background:var(--surface)}
html[data-theme="dark"] .support-ai-admin nav [aria-selected=true]{background:var(--accent-soft);color:var(--accent-strong);border-color:var(--line)}
html[data-theme="dark"] .support-ai-admin p{color:var(--muted)}
html[data-theme="dark"] .support-ai-admin .sai-notice{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-admin .sai-notice.is-error{background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .support-ai-admin .sai-metrics>div{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .support-ai-admin .sai-metrics small{color:var(--muted)}
html[data-theme="dark"] .support-ai-admin .sai-panel,
html[data-theme="dark"] .support-ai-admin article{border:1px solid var(--line)}
html[data-theme="dark"] .support-ai-admin .sai-panel{background:var(--night-info-soft)}
html[data-theme="dark"] .support-ai-admin input:not([type=checkbox]),
html[data-theme="dark"] .support-ai-admin select,
html[data-theme="dark"] .support-ai-admin textarea{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .support-ai-admin pre{background:var(--night-info-soft)}
html[data-theme="dark"] .support-ai-admin .sai-tags{color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-admin .sai-pager{color:var(--muted)}
html[data-theme="dark"] .support-ai-console{border:1px solid var(--line);background:var(--accent-soft);color:var(--text)}
html[data-theme="dark"] .support-ai-console summary{color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-console header b{color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-console button{border:1px solid var(--line);background:var(--surface);color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-console textarea{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .support-ai-console p{color:var(--muted)}
html[data-theme="dark"] .support-ai-correction{border:1px solid var(--line);color:var(--text);background:var(--surface)}
html[data-theme="dark"] .support-ai-correction small{color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-correction p{color:var(--muted)}
html[data-theme="dark"] .support-ai-correction textarea,
html[data-theme="dark"] .support-ai-correction select{border:1px solid var(--line)}
html[data-theme="dark"] .support-ai-correction button{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .support-ai-correction [data-correction-state]{color:var(--red)}
html[data-theme="dark"] .sai-action-preview{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .sai-action-preview>label{color:var(--accent-strong)}
html[data-theme="dark"] .sai-action-preview>label small{color:var(--amber)}
html[data-theme="dark"] .sai-action-preview pre{background:var(--night-info-soft)}
html[data-theme="dark"] .sai-action-card{border:1px solid var(--line);color:var(--text);background:var(--accent-soft)}
html[data-theme="dark"] .sai-action-card small{color:var(--muted)}
html[data-theme="dark"] .sai-action-card i{color:var(--accent-strong)}
html[data-theme="dark"] .sai-action-card em{color:var(--accent-strong)}
html[data-theme="dark"] .sai-correction-original{border:1px solid var(--line)}
html[data-theme="dark"] .sai-correction-original pre{color:var(--muted)}
html[data-theme="dark"] .sai-correction-editor{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .sai-correction-image-pick{border:1px dashed var(--line);background:var(--surface)}
html[data-theme="dark"] .sai-correction-editor input,
html[data-theme="dark"] .sai-correction-editor select{border:1px solid var(--line)}
html[data-theme="dark"] .sai-correction-editor button{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .sai-correction-pending{background:var(--surface);border:1px dashed var(--line)}
html[data-theme="dark"] .sai-correction-editor [data-correction-upload-failure]{background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .sai-correction-editor [data-correction-editor-state]{color:var(--muted)}
html[data-theme="dark"] .support-ai-admin .sai-rich-error{color:var(--red);background:var(--night-danger-soft)}
html[data-theme="dark"] .support-ai-admin .sai-dialog-header,
html[data-theme="dark"] .support-ai-correction .sai-dialog-header{background:var(--surface);border-bottom:1px solid var(--line)}

/* support-chat.css */
html[data-theme="dark"] .guest-order-contact{background:var(--accent-soft)}
html[data-theme="dark"] .guest-order-contact label span{color:var(--muted)}
html[data-theme="dark"] .guest-order-contact input{background:var(--surface)}
html[data-theme="dark"] .guest-order-contact.is-linked small{color:var(--accent-strong)}
html[data-theme="dark"] .support-faq-card{background:var(--surface)}
html[data-theme="dark"] .support-faq-card>header b{color:var(--night-info)}
html[data-theme="dark"] .support-faq-category{color:var(--muted)}
html[data-theme="dark"] .support-faq-category.active{color:var(--text)}
html[data-theme="dark"] .support-faq-item{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .support-faq-question{color:var(--muted)}
html[data-theme="dark"] .support-faq-question::after{color:var(--muted)}
html[data-theme="dark"] .support-faq-question:hover{color:var(--night-info)}
html[data-theme="dark"] .support-faq-tool-link{color:var(--night-info)}
html[data-theme="dark"] .chat-messages{background:var(--night-info-soft)}
html[data-theme="dark"] .message.bot .message-bubble{background:var(--accent-soft)}
html[data-theme="dark"] .message.bot .message-bubble::before{color:var(--accent-strong)}
html[data-theme="dark"] .message-avatar{background:var(--surface)}
html[data-theme="dark"] .message-bubble{background:var(--surface)}
html[data-theme="dark"] .message-bubble.product-bubble{background:var(--surface)}
html[data-theme="dark"] .message.customer .message-bubble.product-bubble{background:var(--surface)}
html[data-theme="dark"] .message-bubble.linked-card-bubble{background:var(--surface)}
html[data-theme="dark"] .message.customer .message-bubble.linked-card-bubble{background:var(--surface)}
html[data-theme="dark"] .message.system .message-bubble{background:var(--night-info-soft)}
html[data-theme="dark"] .support-faq-answer-card{background:var(--surface);color:var(--text)}
html[data-theme="dark"] .support-faq-answer-content .support-inline-link{color:var(--night-info)}
html[data-theme="dark"] .support-faq-answer-content .support-rich-content blockquote{background:var(--night-info-soft)}
html[data-theme="dark"] .support-faq-answer-content .support-rich-content a{color:var(--night-info)}
html[data-theme="dark"] .message-recall-button{color:var(--muted)}
html[data-theme="dark"] .message-recall-button:hover{color:var(--accent-strong)}
html[data-theme="dark"] .message.is-recalled .message-bubble,
html[data-theme="dark"] .message.customer.is-recalled .message-bubble{border-color:var(--line);background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .support-linked-card{background:var(--surface)}
html[data-theme="dark"] .message-product-card i{color:var(--amber)}
html[data-theme="dark"] .message-time-marker{color:var(--muted)}
html[data-theme="dark"] .chat-composer{background:var(--surface)}
html[data-theme="dark"] .emoji-palette{background:var(--surface)}
html[data-theme="dark"] .chat-image-viewer-toolbar button{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .product-picker-dialog{background:var(--surface)}
html[data-theme="dark"] .product-picker-category-shell{background:var(--surface)}
html[data-theme="dark"] .product-picker-categories button{background:var(--surface)}
html[data-theme="dark"] .product-picker-categories button.active{color:var(--accent-strong)}
html[data-theme="dark"] .product-picker-list>button{background:var(--surface)}
html[data-theme="dark"] .product-picker-list>button:not(:disabled):hover{background:var(--accent-soft)}
html[data-theme="dark"] .product-picker-list>button>span>i{color:var(--amber)}
html[data-theme="dark"] .product-picker-list>button em i{color:var(--amber)}

/* support-long-message.css */
html[data-theme="dark"] .support-long-message .support-long-full{background:var(--surface)}
html[data-theme="dark"] .support-long-controls button{border:1px solid var(--line);background:var(--surface)}

/* support-product-picker.css */
html[data-theme="dark"] .resource-reply-filters{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .resource-reply-filters input,
html[data-theme="dark"] .resource-reply-filters select,
html[data-theme="dark"] .support-product-picker .resource-reply-filters input,
html[data-theme="dark"] .support-product-picker .resource-reply-filters select{border:1px solid var(--line,var(--line));background:var(--surface);color:var(--text,var(--text))}
html[data-theme="dark"] .console-resource-item,
html[data-theme="dark"] .support-product-picker .console-resource-item{border:1px solid var(--line,var(--line));background:var(--surface);color:var(--text,var(--text))}
html[data-theme="dark"] .console-resource-item:not(:disabled):hover{background:var(--accent-soft)}
html[data-theme="dark"] .console-resource-item.is-selected,
html[data-theme="dark"] .support-product-picker .console-resource-item.is-selected{border-color:var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .console-resource-item b{color:var(--text,var(--text))}
html[data-theme="dark"] .console-resource-item small{color:var(--muted,var(--muted))}
html[data-theme="dark"] .console-resource-item em{color:var(--accent,var(--accent-strong))}
html[data-theme="dark"] .console-resource-item em i{color:var(--amber)}
html[data-theme="dark"] .console-resource-group>header i{background:var(--accent-soft,var(--accent-soft));color:var(--accent,var(--accent-strong))}
html[data-theme="dark"] .console-resource-group>header small{color:var(--muted,var(--muted))}
html[data-theme="dark"] .sai-correction-product-picker{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .sai-correction-product-picker>header small{color:var(--muted)}
html[data-theme="dark"] .sai-correction-product-list>p{color:var(--muted)}
html[data-theme="dark"] .support-product-menu-label{color:var(--text)}
html[data-theme="dark"] .support-product-menu .support-product-menu-trigger{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .support-product-menu[data-product-menu-mode=add] .support-product-menu-trigger{background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .support-product-menu-trigger>i{color:var(--accent-strong)}
html[data-theme="dark"] .support-product-menu .support-product-menu-panel{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .support-product-menu .support-product-menu-panel>header{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .support-product-menu-panel>header small{color:var(--muted)}
html[data-theme="dark"] .support-product-menu-list>p{color:var(--muted)}

/* totp-tool.css */
html[data-theme="dark"] .totp-result-card{background:linear-gradient(150deg,var(--surface) 0%,var(--accent-soft) 100%)}
html[data-theme="dark"] .totp-code-panel{background:var(--surface)}
html[data-theme="dark"] .totp-meta div{background:var(--surface)}
html[data-theme="dark"] .totp-multiple-card{background:var(--surface)}

/* tutorial.css */
html[data-theme="dark"] body[data-page="tutorials"]{background:linear-gradient(180deg,var(--night-info-soft) 0,var(--night-info-soft) 430px)}
html[data-theme="dark"] .tutorial-index-hero{border:1px solid var(--line);background:linear-gradient(125deg,var(--surface),var(--night-info-soft))}
html[data-theme="dark"] .tutorial-index-panel{background:var(--surface)}
html[data-theme="dark"] .tutorial-index-card{background:var(--surface)}
html[data-theme="dark"] .tutorial-index-card:hover{border-color:var(--line)}
html[data-theme="dark"] .tutorial-skeleton{background:linear-gradient(90deg,var(--night-info-soft),var(--night-info-soft),var(--night-info-soft))}
html[data-theme="dark"] .tutorial-hero-actions a{background:var(--surface)}
html[data-theme="dark"] .tutorial-related nav>a{background:var(--night-info-soft)}
html[data-theme="dark"] .tutorial-related nav>a:hover{border-color:var(--line)}
html[data-theme="dark"] .tutorial-card{background:var(--surface)}
html[data-theme="dark"] .tutorial-rich-text p{color:var(--text)}
html[data-theme="dark"] .tutorial-rich-text a{color:var(--night-info)}
html[data-theme="dark"] .tutorial-alert{border:1px solid var(--line);background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .tutorial-alert.is-danger{border-color:var(--line);background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .tutorial-alert.is-info{border-color:var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .tutorial-alert.is-plain{border-color:var(--line);background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .tutorial-figure figcaption{color:var(--muted)}
html[data-theme="dark"] .tutorial-delivery-example{color:var(--muted)!important}
html[data-theme="dark"] .tutorial-delivery-checklist{border:1px solid var(--line);background:var(--night-warning-soft)}
html[data-theme="dark"] .tutorial-delivery-checklist p{color:var(--amber)}
html[data-theme="dark"] .tutorial-process-tabs span{border:1px solid var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .tutorial-note,
html[data-theme="dark"] .tutorial-danger,
html[data-theme="dark"] .tutorial-format,
html[data-theme="dark"] .tutorial-inline-link,
html[data-theme="dark"] .tutorial-phone-tip{border:1px solid var(--line);background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .tutorial-danger{border-color:var(--line);background:var(--night-danger-soft);color:var(--red)}
html[data-theme="dark"] .tutorial-format{border-color:var(--line);background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .tutorial-inline-link{border-color:var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .tutorial-inline-link span{color:var(--muted)}
html[data-theme="dark"] .tutorial-phone-tip{border-color:var(--line);background:var(--night-info-soft);color:var(--night-purple)}
html[data-theme="dark"] .tutorial-shot{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .tutorial-step-totp{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .tutorial-check-row,
html[data-theme="dark"] .tutorial-faq-row,
html[data-theme="dark"] .tutorial-terminal-row{border:1px solid var(--line);background:var(--night-info-soft)}
html[data-theme="dark"] .tutorial-terminal-row strong{color:var(--text)}
html[data-theme="dark"] .tutorial-terminal-row span{color:var(--muted)}
html[data-theme="dark"] .tutorial-step-action-secondary{background:var(--surface)}
html[data-theme="dark"] .tutorial-tip{border-top:1px solid var(--line)}
html[data-theme="dark"] .tutorial-totp-tool{border:1px solid var(--line);background:var(--accent-soft)}
html[data-theme="dark"] .tutorial-totp-intro input{border:2px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .tutorial-totp-result{background:var(--surface)}
html[data-theme="dark"] .tutorial-privacy{color:var(--muted)!important}
html[data-theme="dark"] .tutorial-rich-text .detail-alert,
html[data-theme="dark"] .tutorial-rich-text .detail-note,
html[data-theme="dark"] .tutorial-rich-text blockquote{border:1px solid var(--line);background:var(--night-warning-soft);color:var(--amber)}
html[data-theme="dark"] .tutorial-rich-text .detail-note{border-color:var(--line);background:var(--accent-soft);color:var(--accent-strong)}
html[data-theme="dark"] .tutorial-empty,
html[data-theme="dark"] .tutorial-not-found{background:var(--surface)}
html[data-theme="dark"] .tutorial-guide-drawer-panel{background:var(--surface)}
html[data-theme="dark"] .tutorial-guide-drawer-panel>header button{background:var(--night-info-soft)}
html[data-theme="dark"] .tutorial-guide-drawer-panel nav a{background:var(--night-info-soft)}
html[data-theme="dark"] .tutorial-guide-drawer-panel nav a.is-current{border-color:var(--line)}
html[data-theme="dark"] .tutorial-canvas-tools{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .tutorial-canvas-tools button{background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .tutorial-canvas-tools button:last-child{color:var(--red)}
html[data-theme="dark"] [data-tutorial-edit-path]:hover{outline-color:var(--line)}
html[data-theme="dark"] [data-tutorial-edit-path]:focus{background:var(--surface)}
html[data-theme="dark"] [data-tutorial-edit-path]:empty:before{color:var(--muted)}
html[data-theme="dark"] .is-tutorial-editable-media:hover,
html[data-theme="dark"] .is-tutorial-editable-media:focus{outline-color:var(--line)}
html[data-theme="dark"] .tutorial-media-placeholder{border:1px dashed var(--line);background:var(--night-info-soft);color:var(--muted)}
html[data-theme="dark"] .tutorial-canvas-add{border:1px dashed var(--line);background:var(--night-info-soft);color:var(--muted)}
@media (max-width:1260px){
html[data-theme="dark"] .tutorial-all-guides-bar{background:var(--surface)}
}
html[data-theme="dark"] .tutorial-process-tab{border:1px solid var(--line);background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .tutorial-process-tab:hover,
html[data-theme="dark"] .tutorial-process-tab:focus-visible{border-color:var(--line);background:var(--night-info-soft);color:var(--night-info)}
html[data-theme="dark"] .tutorial-after-description strong{color:var(--text)}
html[data-theme="dark"] .tutorial-after-description code{background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .tutorial-after-link{color:var(--text)!important}
html[data-theme="dark"] .tutorial-after-link span{color:var(--night-info)}
html[data-theme="dark"] .tutorial-after-link em{color:var(--red)}
html[data-theme="dark"] .tutorial-faq-card.is-plain .tutorial-faq-row+.tutorial-faq-row{border-top:1px solid var(--line)}

/* verification-dialog.css */
html[data-theme="dark"] dialog.verification-prompt{border:1px solid var(--line);background:var(--surface);color:var(--text)}
html[data-theme="dark"] .verification-prompt-close{color:var(--muted)}
html[data-theme="dark"] .verification-prompt-close:hover{background:var(--night-info-soft);color:var(--text)}
html[data-theme="dark"] .verification-prompt-emblem{color:var(--accent-strong);background:linear-gradient(135deg,var(--accent-soft),var(--night-info-soft))}
html[data-theme="dark"] .verification-prompt p{color:var(--muted)}
html[data-theme="dark"] .verification-prompt small{color:var(--muted)}

/* Customer messages and action buttons retain readable text on colored surfaces. */
html[data-theme="dark"] .message.customer .message-bubble:not(.product-bubble):not(.linked-card-bubble) { background: #22473f; color: #e0f6ef; }
html[data-theme="dark"] :is(.chat-send, .composer-actions > button, .guest-order-contact > button) { background: #315c52; color: #e0f6ef; }
html[data-theme="dark"] :is(.rich-prose, .tutorial-rich-text, .order-detail-usage-instructions-body, .comment-configured-tutorial) [style*="background-color"] { background-color: var(--surface-2) !important; }
/* The bootstrap marks actual inline text colors through CSSOM, so compact RGB,
   hex, named colors and nested descriptions receive the same treatment. */
html[data-theme="dark"] [data-rich-tone="text"] { color: var(--text) !important; }
html[data-theme="dark"] [data-rich-tone="red"] { color: var(--red) !important; }
html[data-theme="dark"] [data-rich-tone="amber"] { color: var(--amber) !important; }
html[data-theme="dark"] [data-rich-tone="green"] { color: var(--accent-strong) !important; }
html[data-theme="dark"] [data-rich-tone="blue"] { color: var(--blue) !important; }
html[data-theme="dark"] [data-rich-tone="purple"] { color: var(--purple) !important; }
