/* User-selectable light/dark appearance. Loaded last across the application. */
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--ink:#f5f9ff;--muted:#a7b8ca;--line:#29415a;--paper:#081421;--green:#4c8dff;--lime:#dbeafe;--white:#102235;--soft:#13283e}

.brand-link{display:inline-flex}.brand-logo{display:block;width:151px;line-height:0;flex:0 0 auto}.brand-logo img{display:block;width:100%;height:auto}.brand-logo .logo-dark{display:none}.platform-brand .brand-logo{width:137px}.platform-brand{gap:8px}.platform-brand b{font-size:15px;letter-spacing:0}.sidebar .byline{padding-left:48px;margin-top:-3px}
html[data-theme="dark"] .brand-logo .logo-light{display:none}html[data-theme="dark"] .brand-logo .logo-dark{display:block}

.theme-control{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;white-space:nowrap}.theme-select{width:auto;min-width:86px;padding:7px 28px 7px 9px;font-size:11px;background:#f8fbff;border-color:#cbd9e8;color:#173f70}.theme-control-sidebar,.theme-control-platform-side{display:none}
.mfa-setup-grid{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:34px;align-items:center;margin:25px 0}.mfa-qr-card{display:grid;place-items:center;padding:18px;border:1px solid #cbd9e8;border-radius:14px;background:#fff}.mfa-qr{display:block;width:100%;max-width:250px;height:auto}.mfa-steps{padding-left:20px;color:var(--muted)}.mfa-steps li{margin:9px 0}.manual-secret{margin-top:20px}.manual-secret p{margin:12px 0 8px}.manual-secret code{display:block;padding:12px;word-break:break-all;letter-spacing:1.2px}.mfa-confirm-form{display:flex;align-items:end;gap:16px;max-width:610px}.mfa-confirm-form .field{flex:1}.mfa-confirm-form .button{margin-bottom:1px}

html[data-theme="light"] .platform-sidebar{background:#fbfdff;color:#102a43;border-right-color:#d7e3f1}
html[data-theme="light"] .platform-brand{color:#071a33}html[data-theme="light"] .platform-brand:hover{color:#071a33}html[data-theme="light"] .platform-brand b{color:#2563eb}
html[data-theme="light"] .platform-byline,html[data-theme="light"] .platform-nav-label{color:#58708b}
html[data-theme="light"] .platform-identity{border-color:#d3e1ee;background:#eaf2fb}html[data-theme="light"] .platform-lock{background:#dbeafe;color:#2563eb}html[data-theme="light"] .platform-identity small,html[data-theme="light"] .platform-identity div>span{color:#617991}
html[data-theme="light"] .platform-sidebar nav a{color:#526b85}html[data-theme="light"] .platform-sidebar nav a span{color:#4d7eae}html[data-theme="light"] .platform-sidebar nav a:hover{background:#eaf2fb;color:#173f70}
html[data-theme="light"] .platform-sidebar-bottom{border-color:#d7e3f1}html[data-theme="light"] .platform-sidebar-bottom>a,html[data-theme="light"] .platform-signout{color:#526b85}

html[data-theme="dark"] body,html[data-theme="dark"] .platform-body{background:#081421;color:#f5f9ff}
html[data-theme="dark"] a:hover{color:#8fc1ff}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .feature,html[data-theme="dark"] .price-card,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .preview-card,html[data-theme="dark"] .small-card{background:#0e1e2e;border-color:#29415a}
html[data-theme="dark"] .sidebar{border-right-color:#29415a}html[data-theme="dark"] .topbar{border-bottom-color:#29415a;color:#a7b8ca}
html[data-theme="dark"] .byline,html[data-theme="dark"] .nav-label,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .page-heading p,html[data-theme="dark"] .page-heading .eyebrow,html[data-theme="dark"] .panel-heading .eyebrow{color:#93a8bd}
html[data-theme="dark"] .workspace select,html[data-theme="dark"] .theme-select,html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background:#0a1928;border-color:#35516e;color:#f5f9ff}
html[data-theme="dark"] input:focus,html[data-theme="dark"] textarea:focus,html[data-theme="dark"] select:focus{border-color:#4c8dff;outline-color:#173e68}
html[data-theme="dark"] .sidebar nav a{color:#b4c5d6}html[data-theme="dark"] .sidebar nav a span{color:#87a8c9}html[data-theme="dark"] .sidebar nav a:hover{background:#13283e}html[data-theme="dark"] .sidebar nav a.active{background:#173b63;color:#fff}html[data-theme="dark"] .sidebar nav a.active span{color:#69a5ff}
html[data-theme="dark"] .sidebar-bottom,html[data-theme="dark"] .app-footer,html[data-theme="dark"] .public-footer{border-color:#29415a}html[data-theme="dark"] .avatar{background:#173b63;color:#dcecff}
html[data-theme="dark"] .button.secondary{background:transparent;color:#f5f9ff;border-color:#45627f}html[data-theme="dark"] .button.secondary:hover{background:#13283e}
html[data-theme="dark"] .primary-stat{background:#102f52;border-color:#315a84}html[data-theme="dark"] .stat>span:first-child,html[data-theme="dark"] .stat p,html[data-theme="dark"] .stat small,html[data-theme="dark"] th,html[data-theme="dark"] td small,html[data-theme="dark"] small{color:#a7b8ca}
html[data-theme="dark"] td,html[data-theme="dark"] .facts div,html[data-theme="dark"] .document-row,html[data-theme="dark"] .list-row,html[data-theme="dark"] .alert-item{border-color:#243a51}
html[data-theme="dark"] .badge{background:#172c42;color:#b8cce0}html[data-theme="dark"] .badge.active,html[data-theme="dark"] .badge.approved,html[data-theme="dark"] .badge.applied,html[data-theme="dark"] .badge.done{background:#173b63;color:#8fc1ff}html[data-theme="dark"] .badge.pending,html[data-theme="dark"] .badge.draft,html[data-theme="dark"] .badge.warning,html[data-theme="dark"] .badge.uncertain{background:#3a2b1b;color:#f2c98f}
html[data-theme="dark"] .search,html[data-theme="dark"] code,html[data-theme="dark"] pre,html[data-theme="dark"] .date-tile,html[data-theme="dark"] .company-initial,html[data-theme="dark"] .integration-icon{background:#13283e;color:#bcd8f4}
html[data-theme="dark"] .bottom-note,html[data-theme="dark"] .calculation-panel,html[data-theme="dark"] blockquote{background:#10263a;border-color:#31506d;color:#c2d2e2}
html[data-theme="dark"] .message{background:#102f52;color:#cfe4ff}html[data-theme="dark"] .message.error{background:#3c2024;color:#ffb9bd}html[data-theme="dark"] .message.warning{background:#3b2d1d;color:#f2cf9b}
html[data-theme="dark"] .hero h1 em,html[data-theme="dark"] .auth-copy em{color:#8fc1ff}html[data-theme="dark"] .hero-copy>p,html[data-theme="dark"] .auth-copy p,html[data-theme="dark"] .feature p,html[data-theme="dark"] .price-card p{color:#a7b8ca}
html[data-theme="dark"] .preview-head>span:nth-child(2),html[data-theme="dark"] .preview-card>p,html[data-theme="dark"] .comparison small,html[data-theme="dark"] .comparison em,html[data-theme="dark"] .preview-note,html[data-theme="dark"] .small-card p,html[data-theme="dark"] .floating-tag,html[data-theme="dark"] .hero-proof{color:#9fb4c9}
html[data-theme="dark"] .orbit{background:#102943}html[data-theme="dark"] .preview-gain{background:#12345a}html[data-theme="dark"] .preview-gain span{color:#acd2f5}html[data-theme="dark"] .preview-gain strong{color:#8fc1ff}html[data-theme="dark"] .margin-section{background:#0c1d2d}html[data-theme="dark"] .price-card.featured{background:#102943;border-color:#4178ad}
html[data-theme="dark"] .mark{background:#f5f9ff;color:#2563eb}html[data-theme="dark"] .home-band,html[data-theme="dark"] .auth-foot{border-color:#29415a}

html[data-theme="dark"] .platform-sidebar{background:linear-gradient(180deg,#050d17,#091c31);border-right-color:#24415f}html[data-theme="dark"] .platform-topbar,html[data-theme="dark"] .platform-footer{background:#0e1e2e;border-color:#29415a;color:#a7b8ca}html[data-theme="dark"] .platform-heading p{color:#a7b8ca}html[data-theme="dark"] .platform-body .button.secondary{background:#102235;color:#f5f9ff;border-color:#45627f}html[data-theme="dark"] .platform-body .button.secondary:hover{background:#173149}html[data-theme="dark"] .platform-secure,html[data-theme="dark"] .platform-scope-badge{background:#173b63;color:#9bc8ff}

@media(max-width:760px){.brand-logo{width:139px}.theme-control-sidebar{display:inline-flex;margin:12px 0 0}.public-nav .theme-select{min-width:80px}.public-nav nav{gap:8px}}
@media(max-width:760px){.mfa-setup-grid{grid-template-columns:1fr;gap:22px}.mfa-qr-card{max-width:290px}.mfa-confirm-form{align-items:stretch;flex-direction:column}.mfa-confirm-form .button{width:100%}}
@media(max-width:900px){.theme-control-platform-side{display:inline-flex;margin:12px 8px 0}.platform-brand .brand-logo{width:128px}}
@media(prefers-reduced-motion:no-preference){body,.sidebar,.topbar,.panel,.feature,.price-card,.auth-card,.platform-sidebar,.platform-topbar{transition:background-color .18s ease,border-color .18s ease,color .18s ease}}
