/* CloudFace sitewide theme (opt-in per page). Uses html[data-cf-theme] so tahoe-nav.js (which forces data-theme=dark) cannot override it. */
html[data-cf-theme="dark"]{color-scheme:dark;--cf-page:#0f1115}
html[data-cf-theme="light"]{
  color-scheme:light;--cf-page:#f7f7f7;--cf-card:#ffffff;--cf-line:#dfe3ea;--cf-text:#14161b;--cf-muted:#4b556b;--cf-shadow:0 1px 2px rgba(20,22,27,.06),0 8px 24px rgba(20,22,27,.06);
  --primary:#2563eb;--primary-light:#3b82f6;--primary-dark:#1d4ed8;--bg:#f7f7f7;--surface:#ffffff;--text:#14161b;--text-primary:#14161b;--text-secondary:#4b556b;--text-tertiary:#6b7589;--muted:#4b556b;--border:#dfe3ea;
  --tahoe-text-on-dark:#14161b;--tahoe-muted-on-dark:#4b556b;--tahoe-border:#dfe3ea;
  --cf-legal-bg:#f7f7f7;--cf-legal-surface:#ffffff;--cf-legal-border:#dfe3ea;--cf-legal-text:#14161b;--cf-legal-muted:#4b556b;--cf-legal-primary:#2563eb;--cf-legal-primary-light:#2563eb}
html[data-cf-theme]{background-color:var(--cf-page)}
html[data-cf-theme="light"] body{background:#f7f7f7!important;color:#14161b;font-family:Montserrat,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
html[data-cf-theme="dark"] body{font-family:Montserrat,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
html[data-cf-theme="light"] .section,html[data-cf-theme="light"] .card,html[data-cf-theme="light"] .feature-card,html[data-cf-theme="light"] .content-section,html[data-cf-theme="light"] .profile-card{background:#fff!important;border-color:#dfe3ea!important;color:#14161b!important;box-shadow:0 1px 2px rgba(20,22,27,.06),0 8px 24px rgba(20,22,27,.06)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-cf-theme="light"] body.cf-legal-marketing main.legal-doc .content-section{box-shadow:0 1px 2px rgba(20,22,27,.06),0 8px 24px rgba(20,22,27,.06)}
html[data-cf-theme="light"] .page-header,html[data-cf-theme="light"] .page-header h1{color:#14161b!important}
html[data-cf-theme="light"] .page-header p{color:#4b556b!important}
html[data-cf-theme="dark"] body{background:#0f1115!important;background-image:none!important}
html[data-cf-theme="dark"] .section,html[data-cf-theme="dark"] .card,html[data-cf-theme="dark"] .feature-card,html[data-cf-theme="dark"] .content-section,html[data-cf-theme="dark"] .profile-card{background:#1b1e24!important;border-color:#2e333d!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-cf-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]),html[data-cf-theme="light"] select,html[data-cf-theme="light"] textarea{background:#fff!important;color:#14161b!important;border:1px solid #dfe3ea!important}
html[data-cf-theme="light"] input::placeholder,html[data-cf-theme="light"] textarea::placeholder{color:#8a93a6!important}
html[data-cf-theme="light"] input[type=file]::file-selector-button{background:#f1f3f7;color:#14161b;border:1px solid #dfe3ea;border-radius:8px}
html[data-cf-theme="light"] label{color:#4b556b}
html[data-cf-theme="light"] :is(canvas,.preview,#preview,[class*="preview"]){background-color:#f1f3f7!important;border-color:#dfe3ea!important}
