/* Theme chrome only. Creative pixels and printable documents keep their own palette. */
:root {
  --theme-surface: #fff;
  --theme-subtle: #f8fafc;
  --theme-hover: #f3f4f6;
  --theme-secondary: #374151;
  --theme-link: #1d4ed8;
  --theme-workspace: #e9eef5;
  --theme-selected: #eff6ff;
  --theme-selected-line: #bfdbfe;
  --theme-success-bg: #ecfdf5;
  --theme-success-line: #bbf7d0;
  --theme-warning-bg: #fffbeb;
  --theme-warning-line: #fde68a;
  --theme-danger-bg: #fef2f2;
  --theme-danger-line: #fecaca;
  --theme-purple: #6d28d9;
  --theme-purple-bg: #f5f3ff;
  --theme-purple-line: #c4b5fd;
  --theme-grid: #eef2f7;
  --theme-shadow: 0 18px 45px rgba(17, 24, 39, .16);
}
.theme-picker { position: relative; flex: 0 0 auto; }
.theme-picker > summary { list-style: none; }
.theme-picker > summary::-webkit-details-marker { display: none; }
.theme-picker > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-picker[open] > summary { border-color: var(--accent); color: var(--theme-link); }
.theme-picker-menu { position: absolute; z-index: 200; right: 0; top: calc(100% + 8px); width: 164px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); box-shadow: var(--theme-shadow); }
.theme-picker .theme-picker-option { display: flex; width: 100%; min-height: 38px; gap: 9px; border: 0; padding: 8px 10px; background: transparent; color: var(--text); text-align: left; font-size: 13px; }
.theme-picker-option span { flex: 1; }
.theme-picker .theme-picker-option:hover { background: var(--theme-hover); filter: none; }
.theme-picker .theme-picker-option[aria-pressed="true"] { background: var(--theme-selected); color: var(--theme-link); }
.theme-picker-check { visibility: hidden; }
.theme-picker-option[aria-pressed="true"] .theme-picker-check { visibility: visible; }
.theme-picker-standalone { position: fixed; z-index: 110; top: 14px; right: 16px; }
body:has(> .theme-picker-standalone) > main > .admin-hero,
body:has(> .theme-picker-standalone) > main > .section-title:first-child { padding-right: 44px; }
@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #17191c;
    --panel: #222528;
    --line: #393e44;
    --line-strong: #515860;
    --text: #eceef1;
    --muted: #a6adb7;
    --accent: #3968d8;
    --accent-soft: #293951;
    --ok: #83d9ae;
    --warn: #efbd80;
    --bad: #f29ba3;
    --shadow: 0 1px 3px rgba(0, 0, 0, .22);
    --theme-surface: #222528;
    --theme-subtle: #292d32;
    --theme-hover: #33383e;
    --theme-secondary: #cbd0d7;
    --theme-link: #a5bfff;
    --theme-workspace: #141619;
    --theme-selected: #293951;
    --theme-selected-line: #4d6b9a;
    --theme-success-bg: #213c30;
    --theme-success-line: #39664e;
    --theme-warning-bg: #413624;
    --theme-warning-line: #73603d;
    --theme-danger-bg: #422b30;
    --theme-danger-line: #79414b;
    --theme-purple: #c4acfa;
    --theme-purple-bg: #363044;
    --theme-purple-line: #685283;
    --theme-grid: #353a40;
    --theme-shadow: 0 18px 45px rgba(0, 0, 0, .4);
  }

  /* White paper and authored content are independent of the surrounding UI theme. */
  html[data-theme="dark"] :is(.qt-document, .pr-document, .lp-document-canvas, .lp-template-preview-document, .lp-template-preview, .lp-preview-page, .lp-kakao-card, .affiliate-preview-page, .board-post-editor, .mock-browser, .phone-frame, .placement-preview-stage) {
    color-scheme: light;
    --bg: #f7f8fa; --panel: #fff; --line: #e5e7eb; --line-strong: #cbd5e1;
    --text: #111827; --muted: #6b7280; --accent: #1d4ed8; --accent-soft: #eff6ff;
    --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
    --theme-surface: #fff; --theme-subtle: #f8fafc; --theme-hover: #f3f4f6;
    --theme-secondary: #374151; --theme-link: #1d4ed8; --theme-workspace: #e9eef5;
    --theme-selected: #eff6ff; --theme-selected-line: #bfdbfe;
    --theme-success-bg: #ecfdf5; --theme-success-line: #bbf7d0;
    --theme-warning-bg: #fffbeb; --theme-warning-line: #fde68a;
    --theme-danger-bg: #fef2f2; --theme-danger-line: #fecaca;
    --theme-purple: #6d28d9; --theme-purple-bg: #f5f3ff; --theme-purple-line: #c4b5fd;
    --theme-grid: #eef2f7;
  }
  html[data-theme="dark"] :is(body, .portal-shell) { background: var(--bg); }
  html[data-theme="dark"] :is(header, .admin-global-bar, dialog, .admin-drawer, .theme-picker-menu,
    .campaign-sort-segment, .media-card, .media-tile, .live-card, .product-card, .external-card, .portal-card, .price-card,
    .media-product-link, .add-media-tile, .activity-item, .credential div, .copy-message, .campaign-state-card,
    .campaign-design-popover, .partner-account-popover, .delete-popover, .campaign-edit-cell[data-edit-field],
    .admin-metric, .campaign-stats-summary, .editor-side, .editor-control-group, .editor-layer-item,
    .lp-document-editor-shell, .lp-document-settings-popover, .lp-document-button-panel, .lp-document-select,
    .lp-emoji-panel, .lp-table-panel, .production-card, .pr-item, .qt-line,
    .air-table, .air-dialog, .air-model-picker select, .ue-shell, .ue-toolbar, .ue-inspector, .ue-side, .ad-share-rows,
    .ue-history, .ue-statusbar, .ue-share-dialog, .ig-image, .ig-auth-dialog) {
    background-color: var(--theme-surface); color: var(--text); border-color: var(--line);
  }
  html[data-theme="dark"] :is(input, select, textarea, .icon-button, button.secondary, .button.secondary,
    .campaign-design-menu > summary.button, .filter-toggle, button.product-add-card, .external-size-preset,
    .field-open-icon, .campaign-edit-toggle, .emoji-button, .lp-document-select, .ut-format span) {
    background-color: var(--theme-surface); color: var(--theme-secondary); border-color: var(--line-strong);
  }
  html[data-theme="dark"] :is(input, select, textarea) { color: var(--text); }
  html[data-theme="dark"] :is(input, textarea)::placeholder { color: var(--muted); opacity: .85; }
  html[data-theme="dark"] :is(input, select, textarea):focus { outline-color: var(--theme-selected-line); border-color: var(--theme-link); }
  html[data-theme="dark"] input[type="checkbox"], html[data-theme="dark"] input[type="radio"] { accent-color: var(--accent); }
  html[data-theme="dark"] input[type="color"] { background: var(--theme-subtle); }
  html[data-theme="dark"] :is(.button.danger, button.danger) { background: #963744; border-color: #b55462; color: #fff; }
  html[data-theme="dark"] :is(.icon-button.danger, .secondary-danger) { color: var(--bad); background: var(--theme-surface); border-color: var(--theme-danger-line); }
  html[data-theme="dark"] :is(label, legend, .admin-global-link, .campaign-sort-segment button, .filter-toggle,
    .media-card p, .activity-item p, .advertiser-card-foot, .external-card-memo, .external-code-preview,
    .inline-advanced summary, .report-advertiser, .report-metric em, .report-legend, .report-range-current strong,
    .report-current-creative .creative-caption, .report-meta-list span, .campaign-total-metric em,
    .campaign-stats-summary small, .campaign-stats-period, .campaign-unit-product, .live-schedule dt, .campaign-id code, .report-unit-id code,
    .editor-zoom-toolbar > span, .editor-panel-head h3, .editor-control-group h3, .editor-shadow-options h3,
    .inline-check, .ut-format legend, .lp-document-tool, .lp-document-image-size, .air-provider-strip) { color: var(--theme-secondary); }
  html[data-theme="dark"] :is(th, .admin-table-panel th, .ut-table th, .ut-playlist-table th, .ig-history th,
    .service-product-card, .product-asset-card, .media-stat-grid div, .mini-stat div, .spec-inline span, .spec-list span,
    .media-product-link em, .inline-advanced, .account-profile-list div, .external-size-panel, .external-scope-grid div,
    .external-platform-units div, .campaign-field-grid > div, .campaign-ad-quick-form, .brief-grid > div,
    .campaign-total-metric, .campaign-unit-product, .campaign-edit-cell, .report-meta-list span, .report-unit-id code,
    .report-current-creative .creative-row > div, .report-total-row th, .report-total-row td,
    .approval-sheet, .banner-editor-panel, .editor-layer-kind, .editor-size-chip, .banner-ai-mode,
    .banner-ai-status, .lp-document-toolbar, .lp-ai-header, .lp-ai-footer, .lp-ai-attachments,
    .air-table th, .air-model-picker, .air-note, .ue-statusbar, .ig-auth-dialog footer, .ig-auth-address,
    .ut-batch-detail > td, .check-option.is-disabled, .ue-tools, .ue-utility-nav, .ue-inspector-tabs,
    .air-cost-table tfoot th, .air-cost-table tfoot td, .air-cost-table .air-cost-detail) { background-color: var(--theme-subtle); border-color: var(--line); }
  html[data-theme="dark"] :is(.check-option, .house-ad-form-grid input[type="file"], .house-quick-grid input[type="file"]) { background-color: var(--theme-surface); color: var(--theme-secondary); }
  html[data-theme="dark"] :is(code, .pill, .campaign-stats-status) { background: var(--theme-subtle); border-color: var(--line); color: var(--theme-secondary); }
  html[data-theme="dark"] :is(tbody tr:hover, .management-table tbody tr:hover, .admin-table-panel tbody tr:hover,
    .campaign-unit summary:hover, .campaign-unit-link:hover, .editor-layer-item:hover, .admin-global-link:hover,
    .media-product-link:hover, .partner-service-link:hover, .advertiser-card:hover, button.product-add-card:hover,
    .lp-document-tool:hover, .air-table tbody tr:hover, .ad-share-row:hover) { background-color: var(--theme-hover); }
  html[data-theme="dark"] :is(.product-edit-row:hover, .external-detail-row:hover) { background-color: var(--theme-surface) !important; }
  html[data-theme="dark"] :is(.external-detail-content, .editor-workbench, .canvas-wrap, .banner-canvas-wrap,
    .lp-document-stage, .lp-ai-preview-stage, .ue-workspace) { background: var(--theme-workspace); border-color: var(--line-strong); }
  html[data-theme="dark"] :is(.media-thumb, .live-thumb, .media-shot, .screenshot-preview, .media-detail-shot,
    .creative-tile, .campaign-ad-empty-preview, .report-current-creative .creative-frame, .campaign-ad-preview-frame, .xm-thumb,
    .media-shot-stage, .external-image-preview, .campaign-design-picker img, .production-preview) { background-color: var(--theme-subtle); border-color: var(--line); }
  html[data-theme="dark"] :is(.pill.is-active, .filter-toggle.is-active, .external-size-preset.is-active,
    .report-range-preset.is-active, .partner-account-menu[open] summary, .icon-button.primary) {
    background: var(--theme-selected); border-color: var(--theme-selected-line); color: var(--theme-link);
  }
  html[data-theme="dark"] :is(.admin-global-link.is-active, .editor-layer-item.is-active, button.product-add-card.is-active,
    .campaign-product-size, .campaign-edit-cell.is-editing, .campaign-edit-toggle:hover, .campaign-edit-toggle[aria-expanded="true"],
    .campaign-sort-segment button[aria-pressed="true"], .notice, .house-ad-quick-form, .account-message-panel,
    .external-admob-unit-fields, .qt-account-create, .lp-document-tool.is-active, .air-status.is-active) {
    background-color: var(--theme-selected); border-color: var(--theme-selected-line); color: var(--theme-link);
  }
  html[data-theme="dark"] :is(.campaign-stats-ctr, .report-meta-remaining, .house-ad-quick-form label,
    .qt-account-create span, .ut-state.is-running, .air-link) { color: var(--theme-link) !important; }
  html[data-theme="dark"] :is(.campaign-product-count, .air-state.is-warning, .air-badge.is-warning) { background: var(--theme-warning-bg); border-color: var(--theme-warning-line); color: var(--warn); }
  html[data-theme="dark"] :is(.error, .ut-alert, .banner-ai-status.is-error, .air-state.is-error, .air-badge.is-error) { background: var(--theme-danger-bg); border-color: var(--theme-danger-line); color: var(--bad); }
  html[data-theme="dark"] :is(.campaign-stats-status.is-live, .banner-ai-status.is-success, .air-state.is-success, .air-badge.is-success) { background: var(--theme-success-bg); border-color: var(--theme-success-line); color: var(--ok); }
  html[data-theme="dark"] .campaign-stats-status.is-reserved { background: var(--theme-selected); color: var(--theme-link); }
  html[data-theme="dark"] .campaign-stats-status.is-paused { background: var(--theme-warning-bg); color: var(--warn); }
  html[data-theme="dark"] :is(.editor-ai-button, .live-card .live-creative-label) { background: var(--theme-purple-bg); border-color: var(--theme-purple-line); color: var(--theme-purple); }
  html[data-theme="dark"] :is(.live-countdown.is-soon, .ut-job-error, .ut-state.is-failed, .ig-history small) { color: var(--bad); }
  html[data-theme="dark"] :is(.ut-state.is-ready, .ig-login-state[data-state="verified"]) { color: var(--ok); }
  html[data-theme="dark"] :is(.creative-warning, .ut-state.is-partial, .ig-login-state[data-state="rejected"], .ig-login-state[data-state="expired"], .ig-login-state[data-state="unavailable"]) { color: var(--warn); }
  html[data-theme="dark"] :is(.editor-zoom-toolbar output, .range-label output) { color: var(--text); }
  html[data-theme="dark"] .ad-share-overview button:not(.ad-share-add) { background: var(--theme-surface); color: var(--theme-secondary); border-color: var(--line-strong); }
  html[data-theme="dark"] .ad-share-overview button[aria-pressed="true"] { background: var(--theme-selected); color: var(--theme-link); border-color: var(--theme-selected-line); }
  html[data-theme="dark"] .ad-share-bar { background: var(--line); }
  html[data-theme="dark"] .ad-share-bar-legend { color: var(--theme-secondary); }
  html[data-theme="dark"] [data-ad-share-status="live"] { color: var(--ok); }
  html[data-theme="dark"] [data-ad-share-status="reserved"] { color: var(--theme-link); }
  html[data-theme="dark"] :is([data-ad-share-status="paused"], .ad-share-keyword, .campaign-create-state) { color: var(--warn); }
  html[data-theme="dark"] .campaign-create-filters .is-active { background: var(--theme-selected); border-color: var(--theme-selected-line); color: var(--theme-link); }
  html[data-theme="dark"] .campaign-create-product-list th { background: var(--theme-subtle); }
  html[data-theme="dark"] .campaign-create-product-list tr:has(input:checked) { background: var(--theme-selected); }
  html[data-theme="dark"] .affiliate-service-button .affiliate-service-count { color: var(--theme-link); }
  html[data-theme="dark"] .air-badge { background: var(--theme-subtle); color: var(--theme-secondary); }
  html[data-theme="dark"] .air-badge.is-ok { background: var(--theme-success-bg); color: var(--ok); }
  html[data-theme="dark"] :is(.air-badge.is-bad, .air-alert) { background: var(--theme-danger-bg); border-color: var(--theme-danger-line); color: var(--bad); }
  html[data-theme="dark"] .air-badge.is-working { background: var(--theme-selected); color: var(--theme-link); }
  html[data-theme="dark"] .air-badge.is-warn { background: var(--theme-warning-bg); color: var(--warn); }
  html[data-theme="dark"] :is(.air-model-status.is-error, .air-model-warning.is-ended) { color: var(--bad); }
  html[data-theme="dark"] .air-model-warning { color: var(--warn); }
  html[data-theme="dark"] :is(.campaign-design-popover, .partner-account-popover, .delete-popover, dialog) { box-shadow: var(--theme-shadow); }
  html[data-theme="dark"] .chart-axis { stroke: var(--line-strong); }
  html[data-theme="dark"] .chart-grid { stroke: var(--theme-grid); }
  html[data-theme="dark"] .chart-label { fill: var(--muted); }
  html[data-theme="dark"] .report-chart polyline[stroke="#111827"] { stroke: var(--text); }
  html[data-theme="dark"] .report-chart circle[fill="#111827"] { fill: var(--text); }
  html[data-theme="dark"] .report-legend i[style*="#111827"] { background: var(--text) !important; }
  html[data-theme="dark"] :is(.lp-report-chart, .sl-chart) text { fill: var(--muted); }
  html[data-theme="dark"] .company-footer { background: #1c1e21; border-color: var(--line); }
  html[data-theme="dark"] .code-textarea { background: #15171b; color: #e4e8ee; border-color: var(--line-strong); }
  html[data-theme="dark"] .ue-shell { --ue-border: var(--line); }
  html[data-theme="dark"] .ue-shell :is(button.secondary, .ue-icon-button, .ue-tool, select, input, .ue-property, .ue-empty, .ue-share-url) { border-color: var(--line-strong); background-color: var(--theme-surface); color: var(--text); }
  html[data-theme="dark"] .ue-shell :is(button[aria-pressed="true"], button.is-active, .ue-tab.is-active) { background-color: var(--theme-selected); color: var(--theme-link); }
  html[data-theme="dark"] .ue-shell :is(label, legend, small, .ue-tool-label, .ue-history-item, .ue-document, .ue-history-title,
    .ue-controls h3, .ue-range output, .ue-info dd, .ue-info dt, .ue-size-grid > span, .ue-result-size, .ue-lossless) { color: var(--theme-secondary); }
  html[data-theme="dark"] .ue-stage { background-color: var(--theme-workspace); background-image: linear-gradient(45deg, #22262b 25%, transparent 25%), linear-gradient(-45deg, #22262b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #22262b 75%), linear-gradient(-45deg, transparent 75%, #22262b 75%); }
  html[data-theme="dark"] .ue-busy { background: rgba(23, 25, 28, .94); }
  html[data-theme="dark"] .ue-inspector-tabs button[aria-selected="true"] { background: var(--theme-selected); color: var(--theme-link); }
  html[data-theme="dark"] .ue-inspector-tabs button { color: var(--theme-secondary); }
  html[data-theme="dark"] .ue-history button[aria-current="step"] { background: var(--theme-selected); color: var(--theme-link); }
  html[data-theme="dark"] .ue-shell .ue-controls input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
  html[data-theme="dark"] .ue-shell .ue-controls select,
  html[data-theme="dark"] .ue-shell .ue-controls textarea { background: var(--theme-surface); border-color: var(--line-strong); color: var(--text); }
  html[data-theme="dark"] :is(.ut-tool.is-active, .air-tabs button[aria-selected="true"]) { color: var(--theme-link); }
  html[data-theme="dark"] .lp-document-toolbar .lp-document-tool:not(:disabled) { color: var(--theme-secondary); }
  html[data-theme="dark"] .lp-document-toolbar .lp-document-tool.is-active { color: var(--theme-link); }
  html[data-theme="dark"] .ue-share-dialog :is(p, h3, small, .ue-share-expiry, .ue-share-empty) { color: var(--muted); }
  html[data-theme="dark"] :is(.affiliate-service-button, .affiliate-list, .affiliate-dialog,
    .affiliate-quick-cover .affiliate-upload-card, .affiliate-gallery-item, .affiliate-partner-summary > div,
    .affiliate-partner-card, .xm-card, .xm-product-shape, .xd-asset, .xd-public-asset, .xm-screenshot,
    .sl-og-preview, .creative-assets-tabs button, .creative-assets-card,
    .lp-editor-hero, .lp-editor-meta, .lp-editor-side, .lp-layer-row, .lp-report-metric,
    .lp-document-stepper, .lp-document-insert-panel, .lp-document-color, .lp-document-emoji-option,
    .lp-document-logo-option, .lp-template-dialog, .lp-template-dialog-head, .lp-template-card,
    .lp-ai-dialog, .lp-ai-dialog-head, .lp-ai-controls, .lp-ai-dialog-footer, .lp-ai-followup,
    .lp-saved-dialog, .lp-saved-dialog-head, .lp-saved-form, .lp-saved-count, .lp-saved-item,
    .lp-saved-empty, .lp-saved-dialog-footer, .lp-document-more-popover,
    .board-card, .board-comment, .board-category-list, .board-ai-dialog, .board-topbar-layout,
    .board-topbar-side, .board-layer-item) { background-color: var(--theme-surface); border-color: var(--line); color: var(--text); }
  html[data-theme="dark"] :is(.lp-document-stepper input, .lp-document-stepper button, .lp-spacing-reset,
    .lp-block-palette button, .lp-layer-actions button, .lp-canvas-toolbar button, .board-rich-toolbar button) {
    background: var(--theme-surface); border-color: var(--line-strong); color: var(--theme-secondary);
  }
  html[data-theme="dark"] :is(.affiliate-search input, .affiliate-thumb, .affiliate-dialog-footer,
    .affiliate-quick-start, .affiliate-upload-card, .affiliate-gallery-item img, .affiliate-active-option,
    .affiliate-presentation-fields, .xm-product, .xm-product-preview, .xm-preview, .xd-delivery-item,
    .xd-product-summary, .xd-quote, .xm-logo-preview, .xm-detail-table th, .sl-notice, .sl-og-empty,
    .lp-ai-settings-status, .lp-document-toolbar-row + .lp-document-toolbar-row, .lp-viewport-switch,
    .lp-page-padding-stepper output, .lp-template-grid, .lp-ai-dialog-body, .lp-ai-mode, .lp-ai-status,
    .lp-ai-variant-switch, .lp-saved-dialog-body, .lp-saved-status, .lp-document-meta-image,
    .lp-kakao-preview, .lp-document-scroll-option, .lp-document-table-cell-panel,
    .board-rich-toolbar, .board-comment.is-reply, .board-access-help, .board-category-edit,
    .board-topbar-workbench) { background-color: var(--theme-subtle); border-color: var(--line); }
  html[data-theme="dark"] :is(.affiliate-empty strong, .affiliate-ai-options summary, .affiliate-ai-status,
    .sl-row-site strong, .sl-row-og-title, .sl-row-description, .sl-og-copy p,
    .lp-layer-select, .lp-canvas-toolbar label, .lp-document-inline-field, .lp-document-image-radius,
    .lp-document-labeled-tool, .lp-document-emoji-group > strong, .lp-ai-model-label, .lp-ai-prompt-label,
    .lp-ai-loading, .lp-ai-brief-grid label, .lp-ai-file-label, .lp-ai-check, .lp-ai-followup label,
    .lp-saved-item-memo, .lp-document-meta-image > span, .lp-kakao-preview-copy strong,
    .lp-page-padding-stepper output, .lp-document-scroll-option > span:first-child,
    .lp-document-scroll-toggle strong, .lp-document-table-cell-panel strong, .lp-document-button-panel label,
    .lp-document-more-popover .button, .lp-ai-status, .lp-saved-status) { color: var(--theme-secondary); }
  html[data-theme="dark"] :is(.affiliate-service-button.is-selected, .creative-assets-tabs button[aria-selected="true"],
    .lp-viewport-switch button.is-active, .lp-ai-variant-switch button.is-active, .lp-layer-row.is-selected,
    .board-layer-item.is-active) { background: var(--theme-selected); color: var(--theme-link); border-color: var(--theme-selected-line); }
  html[data-theme="dark"] :is(.lp-ai-status.is-error, .lp-saved-status.is-error, .sl-notice.is-error) { background: var(--theme-danger-bg); border-color: var(--theme-danger-line); color: var(--bad); }
  html[data-theme="dark"] :is(.lp-ai-status.is-success, .lp-saved-status.is-success) { background: var(--theme-success-bg); border-color: var(--theme-success-line); color: var(--ok); }
  html[data-theme="dark"] :is(.live-thumb-status, .service-screenshot-grid > div, .house-add-panel,
    .native-text-admin-preview, .affiliate-banner-art, .affiliate-segment span, .lp-list-thumbnail,
    .sl-row-thumb, .board-header-preview, .board-favicon-preview) {
    background-color: var(--theme-subtle); border-color: var(--line); color: var(--text);
  }
  html[data-theme="dark"] :is(.affiliate-banner-art span, .affiliate-segment span, .affiliate-meta,
    .affiliate-status-ended, .affiliate-status-hidden) { color: var(--muted); }
  html[data-theme="dark"] :is(.management-secondary-link, .sl-short, .affiliate-status-scheduled) { color: var(--theme-link); }
  html[data-theme="dark"] :is(.sl-status, .affiliate-status-active, .affiliate-meta .affiliate-content-ready,
    .affiliate-content-ready) { color: var(--ok); }
  html[data-theme="dark"] :is(.sl-status.is-paused, .affiliate-meta .affiliate-content-legacy,
    .affiliate-content-legacy) { color: var(--warn); }
  html[data-theme="dark"] .affiliate-segment input:checked + span {
    background: var(--theme-selected); color: var(--theme-link); box-shadow: inset 0 0 0 1px var(--theme-selected-line);
  }
  html[data-theme="dark"] .affiliate-keyword-tag { background: var(--theme-selected); color: var(--theme-link); }
  html[data-theme="dark"] .native-text-admin-preview p { color: var(--theme-secondary); }
  html[data-theme="dark"] input[type="file"]::file-selector-button {
    background: var(--theme-subtle); color: var(--theme-secondary); border: 1px solid var(--line-strong); border-radius: 4px;
  }
  html[data-theme="dark"] :is(.qt-summary > div, .lp-document-meta-image-preview) {
    background: var(--theme-subtle); border-color: var(--line); color: var(--muted);
  }
  html[data-theme="dark"] :is(.editor-size-chip, .lp-spacing-reset span, .lp-viewport-switch button) { color: var(--theme-secondary); }
  html[data-theme="dark"] .lp-document-labeled-tool > span { color: var(--theme-secondary); }
  html[data-theme="dark"] .lp-viewport-switch button.is-active { color: var(--theme-link); }
  html[data-theme="dark"] :is(.lp-document-scroll-option small, .lp-document-meta-image small, .lp-kakao-preview-copy span) { color: var(--muted); }
  html[data-theme="dark"] :is(.lp-template-dialog-head p, .lp-template-card-copy p, .lp-saved-dialog-head p,
    .lp-saved-dialog small, .lp-ai-dialog-head p, .lp-ai-file-label small, .lp-ai-model-label small,
    .lp-ai-followup small, .lp-ai-hint, .lp-ai-preview-head span) { color: var(--muted); }
  html[data-theme="dark"] .lp-ai-dialog-head h2 .icon { color: var(--theme-purple); }
  html[data-theme="dark"] .lp-ai-mode label:has(input:checked) { background: var(--theme-selected); color: var(--theme-link); }
  html[data-theme="dark"] .lp-ai-variant-switch button { color: var(--theme-secondary); }
  html[data-theme="dark"] .lp-ai-variant-switch button.is-active { color: var(--theme-link); }
  html[data-theme="dark"] :is(.qt-document, .pr-document) { background: #fff; color: #111827; }
  html[data-theme="dark"] :is(.lp-document-canvas, .lp-preview-page, .lp-template-preview, .board-post-editor, .mock-browser, .phone-frame) { color: var(--text); }
  html[data-theme="dark"] :is(.qt-doc-head, .pr-doc-head, .pr-doc-media-head, .pr-doc-product-head) { background: #fff; color: #111827; }
  html[data-theme="dark"] .qt-doc-table th { background: #2458ff; color: #fff; }
  html[data-theme="dark"] :is(.qt-doc-table, .pr-document) tbody tr:hover { background: transparent; }
  html[data-theme="dark"] .lp-document-editor { color: #111827; }
}
@media print {
  .theme-picker { display: none !important; }
}
