/* v1.0.30.320 — final master Light/Dark parity layer.
   This file intentionally loads AFTER all Dashboard WordPress/GitHub module CSS. */
html.cm-dashboard-pre-light body.cm-wlfd-body{
  --cm-v318-page:#f4f7fb;--cm-v318-surface:#fff;--cm-v318-surface-soft:#f8fafc;--cm-v318-surface-alt:#f6f8fa;
  --cm-v318-text:#1f2937;--cm-v318-muted:#64748b;--cm-v318-border:#dbe3ec;--cm-v318-border-strong:#cbd5e1;
  --cm-v318-link:#2563eb;--cm-v318-code:#f6f8fa;
}
html.cm-dashboard-pre-dark body.cm-wlfd-body{
  --cm-v318-page:#0f172a;--cm-v318-surface:#111827;--cm-v318-surface-soft:#0b1220;--cm-v318-surface-alt:#162033;
  --cm-v318-text:#e5e7eb;--cm-v318-muted:#94a3b8;--cm-v318-border:#334155;--cm-v318-border-strong:#475569;
  --cm-v318-link:#60a5fa;--cm-v318-code:#0b1220;
}

/* Global Dashboard shell and ordinary surfaces. */
html.cm-dashboard-pre-light body.cm-wlfd-body,
html.cm-dashboard-pre-dark body.cm-wlfd-body,
html.cm-dashboard-pre-light body.cm-wlfd-body .cm-wlfd-main,
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-wlfd-main{background:var(--cm-v318-page)!important;color:var(--cm-v318-text)!important}

html.cm-dashboard-pre-light body.cm-wlfd-body :where(
  .cm-wlfd-top,.cm-title,.cm-card,.cm-filter,.cm-editor,.cm-uploader,.cm-row,.cm-notice,
  .cm-wordpress-site-context,.cm-work-stat,.cm-menu-box,.cm-menu-item-box,.cm-menu-structure,.cm-menu-checklist,
  .cm-media-upload-bar,.cm-media-browser,.cm-media-grid,.cm-media-preview,.cm-media-details,
  .cm-dashboard-note-row,.cm-dashboard-board-intro,.cm-dashboard-board-empty,
  .github-repo-dashboard-view-settings,.github-repo-dashboard-exclusion-grid label,
  .cm-dashboard-guide,.cm-code-settings-provider-row,.cm-update-faq,
  .cm-github-global-repo,.cm-github-hub-intro,.cm-github-repo-summary,.cm-github-feature-section,.cm-github-hub-note,
  .cm-github-hub-repo-picker,.cm-github-feature-card,.cm-github-feature-group,.cm-github-issues-head,.cm-github-issues-toolbar,
  .cm-github-issue-list,.cm-github-issue-detail,.cm-github-section-head,.cm-provider-connections,.cm-provider-connection-card
){background:var(--cm-v318-surface)!important;border-color:var(--cm-v318-border)!important;color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(
  .cm-wlfd-top,.cm-title,.cm-card,.cm-filter,.cm-editor,.cm-uploader,.cm-row,.cm-notice,
  .cm-wordpress-site-context,.cm-work-stat,.cm-menu-box,.cm-menu-item-box,.cm-menu-structure,.cm-menu-checklist,
  .cm-media-upload-bar,.cm-media-browser,.cm-media-grid,.cm-media-preview,.cm-media-details,
  .cm-dashboard-note-row,.cm-dashboard-board-intro,.cm-dashboard-board-empty,
  .github-repo-dashboard-view-settings,.github-repo-dashboard-exclusion-grid label,
  .cm-dashboard-guide,.cm-code-settings-provider-row,.cm-update-faq,
  .cm-github-global-repo,.cm-github-hub-intro,.cm-github-repo-summary,.cm-github-feature-section,.cm-github-hub-note,
  .cm-github-hub-repo-picker,.cm-github-feature-card,.cm-github-feature-group,.cm-github-issues-head,.cm-github-issues-toolbar,
  .cm-github-issue-list,.cm-github-issue-detail,.cm-github-section-head,.cm-provider-connections,.cm-provider-connection-card
){background:var(--cm-v318-surface)!important;border-color:var(--cm-v318-border)!important;color:var(--cm-v318-text)!important}

html.cm-dashboard-pre-light body.cm-wlfd-body :where(
 .cm-featured,.cm-acf,.cm-condition-popup,.cm-menu-box summary,.cm-menu-item-box summary,.cm-media-toolbar,.cm-media-card,
 .cm-dashboard-note-head,.cm-dashboard-guide-nav,.cm-update-faq summary,.cm-github-repo-facts>div,.cm-github-feature-card.is-planned,
 .cm-github-issue-form,.cm-github-issue-check,.cm-provider-identity
){background:var(--cm-v318-surface-soft)!important;border-color:var(--cm-v318-border)!important;color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(
 .cm-featured,.cm-acf,.cm-condition-popup,.cm-menu-box summary,.cm-menu-item-box summary,.cm-media-toolbar,.cm-media-card,
 .cm-dashboard-note-head,.cm-dashboard-guide-nav,.cm-update-faq summary,.cm-github-repo-facts>div,.cm-github-feature-card.is-planned,
 .cm-github-issue-form,.cm-github-issue-check,.cm-provider-identity
){background:var(--cm-v318-surface-soft)!important;border-color:var(--cm-v318-border)!important;color:var(--cm-v318-text)!important}

html.cm-dashboard-pre-light body.cm-wlfd-body :where(p,small,.description,.help,.cm-help,.cm-muted,.cm-permalink,.cm-menu-item-fields p,.cm-menu-item-box summary span,.cm-work-stat span,.cm-work-stat small){color:var(--cm-v318-muted)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(p,small,.description,.help,.cm-help,.cm-muted,.cm-permalink,.cm-menu-item-fields p,.cm-menu-item-box summary span,.cm-work-stat span,.cm-work-stat small){color:var(--cm-v318-muted)!important}
html.cm-dashboard-pre-light body.cm-wlfd-body :where(h1,h2,h3,h4,h5,h6,label,legend,th,td,.cm-work-stat strong){color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(h1,h2,h3,h4,h5,h6,label,legend,th,td,.cm-work-stat strong){color:var(--cm-v318-text)!important}

/* Inputs and WordPress Classic Editor/ACF chrome. */
html.cm-dashboard-pre-light body.cm-wlfd-body :where(input:not([type="button"]):not([type="submit"]),textarea,select,.cm-input){background:#fff!important;color:#1f2937!important;border-color:#cbd5e1!important;color-scheme:light}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(input:not([type="button"]):not([type="submit"]),textarea,select,.cm-input){background:#0b1220!important;color:#f1f5f9!important;border-color:#475569!important;color-scheme:dark}
html.cm-dashboard-pre-dark body.cm-wlfd-body option{background:#0b1220!important;color:#f1f5f9!important}
html.cm-dashboard-pre-light body.cm-wlfd-body .cm-acf-row-summary{background:#fff!important;color:#1f2937!important;border-color:#cbd5e1!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-acf-row-summary{background:#0b1220!important;color:#e5e7eb!important;border-color:#475569!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-acf :where(.acf-field,.acf-fields,.acf-input,.acf-table,.acf-row,.acf-label,.acf-input-wrap,.acf-repeater){background-color:transparent!important;color:#e5e7eb!important;border-color:#334155!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-acf .acf-table :where(th,td){border-color:#334155!important;color:#e5e7eb!important}
html.cm-dashboard-pre-light body.cm-wlfd-body :where(.wp-editor-wrap,.wp-editor-container,.quicktags-toolbar,.mce-toolbar-grp,.mce-statusbar,.mce-menubar,.mce-panel,.wp-switch-editor){background:#fff!important;color:#1f2937!important;border-color:#dbe3ec!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.wp-editor-wrap,.wp-editor-container,.quicktags-toolbar,.mce-toolbar-grp,.mce-statusbar,.mce-menubar,.mce-panel,.wp-switch-editor){background:#0b1220!important;color:#e5e7eb!important;border-color:#334155!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.mce-btn,.mce-btn button,.mce-ico,.mce-txt){color:#e5e7eb!important}

/* Menus, help/updates and legacy Dashboard panels. */
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-dashboard-guide-link{color:#cbd5e1!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-dashboard-guide-link.is-active{background:#1e293b!important;color:#60a5fa!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-update-faq[open] summary{background:#162033!important;border-color:#334155!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.cm-update-faq-title,.cm-update-faq-version){color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-update-faq-meta span{background:#1e3a5f!important;color:#bfdbfe!important}

/* GitHub repository tools loaded after the Dashboard stylesheet. */
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm{
  --gh-border:#334155;--gh-muted:#94a3b8;--gh-bg:#0f172a;color:#e5e7eb!important
}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm :where(
 .cm-ghfm-status,.cm-ghfm-add-menu,.cm-ghfm-browser,.cm-ghfm-workspace,.cm-ghfm-upload-item,.cm-ghfm-create-repo-panel,
 .cm-ghfm-create-branch-panel,.cm-ghfm-delete-target,.cm-ghfm-readme-editor,.cm-ghfm-readme-toolbar,.cm-ghfm-readme-visual,
 .cm-ghfm-wp-visual,.cm-ghfm-edit-picker,.cm-ghfm-wiki-panel,.cm-ghfm-release-panel,.cm-ghfm-branch-panel
){background:#111827!important;border-color:#334155!important;color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm :where(
 .cm-ghfm-breadcrumb,.cm-ghfm-workspace-head,.cm-ghfm-commit-box,.cm-ghfm-upload-drop,.cm-ghfm-file-preview,.cm-ghfm-file-binary,
 .cm-ghfm-readme-head,.cm-ghfm-visual-head,.cm-ghfm-wp-visual .cm-ghfm-visual-help,.cm-ghfm-readme-editor>small
){background:#0b1220!important;border-color:#334155!important;color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm :where(.cm-ghfm-row,.cm-ghfm-field>span,.cm-ghfm-file-meta,.cm-ghfm-empty,.cm-ghfm-wiki-note){color:#cbd5e1!important;border-color:#334155!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm .cm-ghfm-row:hover{background:#162033!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm :where(.cm-ghfm-editor-tab.is-active,.cm-ghfm-readme-toolbar button){background:#162033!important;color:#e5e7eb!important;border-color:#475569!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm :where(.cm-ghfm-readme-visual code){background:#1e293b!important;color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghfm :where(.cm-ghfm-readme-visual pre){background:#0b1220!important;color:#e5e7eb!important}

/* GitHub Wiki and Archive modules. */
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.cm-ghwiki-document,.cm-gharchive-summary>div,.cm-gharchive-action,.cm-ghfm-archive-active-panel){background:#111827!important;border-color:#334155!important;color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.cm-ghwiki-page-title,.cm-ghfm-wiki-first-page,.cm-ghfm-wiki-reset,.cm-ghfm-wiki-delete-warning,.cm-ghwiki-markdown pre){background:#0b1220!important;border-color:#334155!important;color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.cm-ghwiki-coming p,.cm-gharchive-summary span,.cm-gharchive-action p,.cm-ghfm-archive-active-panel p,.cm-ghfm-wiki-first-page p,.cm-ghfm-wiki-reset p){color:#94a3b8!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-ghwiki-markdown :where(th,td){border-color:#334155!important}

/* Embedded GitHub browser. */
html.cm-dashboard-pre-dark body.cm-wlfd-body .cmgc-browser{
 --cmgc-border:#334155;--cmgc-text:#e5e7eb;--cmgc-muted:#94a3b8;--cmgc-bg-soft:#0b1220;--cmgc-link:#60a5fa;
 background:#111827!important;color:#e5e7eb!important;border-color:#334155!important
}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cmgc-browser :where(
 .cmgc-counter,.cmgc-external-button,.cmgc-repo-updated,.cmgc-toolbar,.cmgc-branch-popover,.cmgc-branch-option,
 .cmgc-content,.cmgc-breadcrumbs,.cmgc-file-row,.cmgc-readme,.cmgc-readme-title,.cmgc-code-wrap
){background:#111827!important;color:#e5e7eb!important;border-color:#334155!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cmgc-browser :where(.cmgc-repo-header,.cmgc-branch-summary,.cmgc-refresh-button,.cmgc-markdown-body pre,.cmgc-auth-required,.cmgc-binary-message){background:#0b1220!important;color:#e5e7eb!important;border-color:#334155!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cmgc-browser :where(.cmgc-file-row:hover,.cmgc-branch-option:hover,.cmgc-branch-option.is-current){background:#162033!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cmgc-browser .cmgc-line-no{border-color:#334155!important;color:#64748b!important}

/* Older GitHub Dashboard tools/widgets. */
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(
 .github-repo-dashboard-tools,.github-repo-dashboard-action-card,.github-repo-dashboard-settings-panel,.github-dashboard-internal-view,
 .github-repo-dashboard-cache-card,.repo-card
){background:#111827!important;border-color:#334155!important;color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(
 .github-repo-dashboard-message,.github-dashboard-internal-view-header,.github-dashboard-internal-loading,.github-dashboard-internal-result-note
){background:#0b1220!important;border-color:#334155!important;color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.github-content-subtab){color:#cbd5e1!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .github-content-subtab.is-active{background:#111827!important;color:#60a5fa!important;border-bottom-color:#3b82f6!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.github-dashboard-field-label,.github-repo-dashboard-tools,.github-repo-container){color:#e5e7eb!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(.github-repo-dashboard-integration-title p,.github-repo-dashboard-help){color:#94a3b8!important}

/* Keep intentional semantic colours (success, warnings, sticky-note colours, primary buttons) intact. */
html.cm-dashboard-pre-dark body.cm-wlfd-body a:not(.cm-btn):not(.cm-dashboard-ribbon-button):not(.cm-dashboard-ribbon-tab){color:var(--cm-v318-link)}


/* v1.0.30.319 — Blog/list rows must not flash back to legacy white on Dark-mode hover. */
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-list .cm-row:hover,
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-list .cm-row:focus,
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-list .cm-row:focus-within{
  background:var(--cm-v318-surface)!important;
  border-color:var(--cm-v318-border)!important;
  color:var(--cm-v318-text)!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-list .cm-row:hover :where(strong,small,a:not(.cm-btn)),
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-list .cm-row:focus-within :where(strong,small,a:not(.cm-btn)){
  color:inherit!important;
}


/* v1.0.30.320 — Code Dashboard / CM Code Editor settings and launch surfaces. */
html.cm-dashboard-pre-light body.cm-wlfd-body :where(
  .cm-code-launch-card,.cm-code-download-card,.cm-code-download-note,.cm-code-pwa-update-status,
  .cm-code-connection-log-wrap,.cm-code-editor-external-launch
){background:var(--cm-v318-surface)!important;border-color:var(--cm-v318-border)!important;color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body :where(
  .cm-code-launch-card,.cm-code-download-card,.cm-code-download-note,.cm-code-pwa-update-status,
  .cm-code-connection-log-wrap,.cm-code-editor-external-launch
){background:var(--cm-v318-surface)!important;border-color:var(--cm-v318-border)!important;color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-light body.cm-wlfd-body .cm-code-launch-card:hover,
html.cm-dashboard-pre-light body.cm-wlfd-body .cm-code-launch-card:focus-visible{background:var(--cm-v318-surface-alt)!important;border-color:var(--cm-v318-border-strong)!important;color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-code-launch-card:hover,
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-code-launch-card:focus-visible{background:var(--cm-v318-surface-alt)!important;border-color:var(--cm-v318-border-strong)!important;color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-light body.cm-wlfd-body .cm-code-launch-card :where(strong,.dashicons){color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-code-launch-card :where(strong,.dashicons){color:var(--cm-v318-text)!important}
html.cm-dashboard-pre-light body.cm-wlfd-body .cm-code-launch-card p,
html.cm-dashboard-pre-light body.cm-wlfd-body .cm-code-download-card p{color:var(--cm-v318-muted)!important}
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-code-launch-card p,
html.cm-dashboard-pre-dark body.cm-wlfd-body .cm-code-download-card p{color:var(--cm-v318-muted)!important}
