/* Marks Cloud theme tokens and accessible manual switch */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}
.theme-toggle{
  display:inline-flex;justify-content:center;align-items:center;gap:7px;
  flex-shrink:0;min-width:78px;min-height:39px;padding:8px 10px;
  color:#cbf4ff;background:#092a48;border:1px solid #29729b;border-radius:10px;
  font:700 11px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;
  cursor:pointer;white-space:nowrap;transition:background-color .18s,border-color .18s
}
.theme-toggle:hover{background:#114469;border-color:#00caee}
.theme-toggle-icon{font-size:18px;line-height:1}
.theme-toggle:focus-visible{outline:3px solid #00bfee;outline-offset:3px}
.topbar .theme-toggle,.auth-header .theme-toggle{margin-inline:6px}
.console-body .theme-toggle{background:#f0f7ff;color:#134c77;border-color:#bdd7ec}
.console-body .theme-toggle:hover{background:#dcefff;border-color:#067eb3}
@media(max-width:820px){
  .theme-toggle{min-width:40px;width:40px;padding:7px}
  .theme-toggle-label{display:none}
  .topbar{gap:8px}
  .topbar .theme-toggle,.auth-header .theme-toggle{margin-inline:2px}
  .auth-header{gap:9px}
}
@media(max-width:390px){
  .auth-header nav a[href="/console"]{display:none}
  .auth-header nav{gap:8px}
  .auth-header .brand-fox{width:37px;height:36px}
  .auth-header .brand{gap:3px;font-size:14px}
  .auth-header .theme-toggle{width:36px;min-width:36px}
  .topbar .brand{gap:2px}
  .topbar .brand-fox{width:39px;height:38px}
}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
/* Public portal - light option */
html[data-theme="light"]{
  --bg:#f4f9ff;--panel:#ffffff;--panel2:#edf6ff;--stroke:#c9dbea;
  --text:#11283e;--muted:#465e74;--purple:#1368b8;--blue:#126ac2;--cyan:#006f99
}
html[data-theme="light"] body:not(.console-body):not(.auth-site){
  background:radial-gradient(ellipse at 75% 0%,#d7edff 0,transparent 38%),
  radial-gradient(ellipse at 0% 63%,#eef8ff 0,transparent 47%),#f4f9ff;
  color:#11283e
}
html[data-theme="light"] .topbar{border-bottom-color:#cbdfee}
html[data-theme="light"] .topbar nav{color:#284764}
html[data-theme="light"] .topbar nav a:hover{color:#006ba9}
html[data-theme="light"] .topbar .brand>span:last-child,
html[data-theme="light"] .footer .brand>span:last-child,
html[data-theme="light"] .auth-header .brand>span:last-child{color:#102b48}
html[data-theme="light"] .brand small{color:#006f9b}
html[data-theme="light"] .topbar .theme-toggle,
html[data-theme="light"] .auth-header .theme-toggle{
  color:#165276;background:#ffffff;border-color:#9bc7de
}
html[data-theme="light"] .topbar .theme-toggle:hover,
html[data-theme="light"] .auth-header .theme-toggle:hover{background:#e3f5ff}
html[data-theme="light"] .hero{background:radial-gradient(ellipse at 70% 50%,#d9efff 0,transparent 57%)}
html[data-theme="light"] .hero p,
html[data-theme="light"] .hero-copy p{color:#405a73}
html[data-theme="light"] .hero h1 span,
html[data-theme="light"] .auth-intro h1 span{
  background:linear-gradient(105deg,#034a97,#007fa7);
  background-clip:text;-webkit-background-clip:text;color:transparent
}
html[data-theme="light"] .eyebrow{
  color:#065f8d;background:#daf3ff;border-color:#85cee9
}
html[data-theme="light"] .benefits{background:#eaf5ff;border-color:#cbdfee}
html[data-theme="light"] .benefits-grid small{color:#4c6379}
html[data-theme="light"] .service{
  background:linear-gradient(145deg,#fff,#f0f7ff);
  border-color:#c9ddec;box-shadow:0 12px 25px #0b44780a
}
html[data-theme="light"] .service:hover{border-color:#0d8cc0;box-shadow:0 8px 27px #0e86b32b}
html[data-theme="light"] .service p,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .feature p{color:#486178}
html[data-theme="light"] .feature{
  background:linear-gradient(125deg,#e4f4ff,#fff);border-color:#bdd9eb
}
html[data-theme="light"] .journey>div{background:#fff;border-color:#c7dbea}
html[data-theme="light"] .journey p{color:#4c6479}
html[data-theme="light"] .footer{border-top-color:#cbdfee;color:#46637d}
html[data-theme="light"] .footer .brand{color:#112b49}
html[data-theme="light"] .button.secondary{background:#fff;color:#15587e;border-color:#a6cde3}
html[data-theme="light"] .hero-art{border-radius:20px}
/* Account pages - light option */
html[data-theme="light"] .auth-site{
  background:radial-gradient(ellipse at 18% 19%,#ddecff 0,transparent 39%),
  radial-gradient(ellipse at 86% 70%,#e9f7ff 0,transparent 47%),#f7faff;
  color:#0d2c4c
}
html[data-theme="light"] .auth-site:before{opacity:.22}
html[data-theme="light"] .auth-header{border-bottom-color:#c6dfed}
html[data-theme="light"] .auth-header nav a{color:#375976}
html[data-theme="light"] .auth-header nav a:hover,
html[data-theme="light"] .auth-header nav a.active{color:#075e8d}
html[data-theme="light"] .auth-intro>p{color:#3d5870}
html[data-theme="light"] .auth-feature strong{color:#102e4c}
html[data-theme="light"] .auth-feature small{color:#496278}
html[data-theme="light"] .auth-feature>span{
  border-color:#a9d5e9;background:#e6f6ff;color:#12698c
}
html[data-theme="light"] .auth-card{
  background:linear-gradient(150deg,#fff,#eef7ff);color:#122d48;
  border-color:#b9d9ed;box-shadow:0 24px 65px #1548791c
}
html[data-theme="light"] .auth-card-eyebrow{color:#075d90}
html[data-theme="light"] .auth-card>p{color:#435e76}
html[data-theme="light"] .auth-state{
  color:#185d83;background:#e5f6ff;border-color:#a6d7ed
}
html[data-theme="light"] .auth-state[data-kind="success"]{
  background:#e2f7eb;color:#12643a;border-color:#98d6b3
}
html[data-theme="light"] .auth-state[data-kind="warning"]{
  background:#fff4d9;color:#835607;border-color:#edcd8a
}
html[data-theme="light"] .auth-state[data-kind="error"]{
  background:#fff0f2;color:#9c263e;border-color:#e9a9b2
}
html[data-theme="light"] .auth-separator{color:#52738e}
html[data-theme="light"] .auth-separator:before,
html[data-theme="light"] .auth-separator:after{background:#cbddea}
html[data-theme="light"] .auth-provider{
  background:#fff;color:#183a58;border-color:#c6dceb
}
html[data-theme="light"] .auth-provider:hover{
  background:#e6f6ff;border-color:#2386b4
}
html[data-theme="light"] .provider-g,
html[data-theme="light"] .provider-gh,
html[data-theme="light"] .provider-icon{background:#eaf5ff;color:#155e86}
html[data-theme="light"] .auth-provider>span:last-child{color:#436a8b}
html[data-theme="light"] .auth-disclaimer{color:#405e79!important}
html[data-theme="light"] .auth-card-bottom{border-color:#c6ddeb;color:#425f78}
html[data-theme="light"] .auth-card-bottom a,
html[data-theme="light"] .auth-secondary-link{color:#065f8f}
html[data-theme="light"] .auth-note{background:#ebf6ff;border-color:#c0dded}
html[data-theme="light"] .auth-note strong{color:#143a57}
html[data-theme="light"] .auth-note p{color:#45647c}
html[data-theme="light"] .auth-footer{
  color:#547189;border-color:#cadfec
}
html[data-theme="light"] .auth-legacy-logout{border-color:#c1dbe8}
html[data-theme="light"] .auth-legacy-logout>span{color:#41617b}
html[data-theme="light"] .auth-legacy-logout a{
  color:#096791;border-color:#b8d9eb;background:#fff
}
html[data-theme="light"] .auth-legacy-logout a:hover{background:#eaf7ff}
html[data-theme="light"] .logout-symbol{color:#067db4}
html[data-theme="light"] .auth-primary.disabled-link,
html[data-theme="light"] .auth-primary:disabled{
  background:#dce9f2;color:#496278;box-shadow:none
}
/* Cloud Console - dark option, matching the Marks IA fox and portal */
html[data-theme="dark"] .console-body{background:#071320;color:#ebf5ff}
html[data-theme="dark"] .console-body .console-page{background:#071320;color:#edf7ff}
html[data-theme="dark"] .console-body .console-header{
  background:#0b1d31;border-color:#21435e;color:#e9f7ff
}
html[data-theme="dark"] .console-body .theme-toggle{
  background:#102f4d;color:#b7edff;border-color:#34779b
}
html[data-theme="dark"] .console-body .theme-toggle:hover{background:#174b71}
html[data-theme="dark"] .console-body .searchbar{
  background:#132b44;border-color:#31506c;color:#b8d3e7
}
html[data-theme="dark"] .console-body .searchbar input{color:#effaff}
html[data-theme="dark"] .console-body .searchbar input::placeholder{color:#abc7dc}
html[data-theme="dark"] .console-body .header-end{color:#d0e4f4}
html[data-theme="dark"] .console-body .auth-name{color:#c5dcee}
html[data-theme="dark"] .console-body .auth-login.secondary{
  background:#123958;color:#cdf3ff
}
html[data-theme="dark"] .console-body .mobile-menu{
  color:#e7f7ff;background:#112c43;border-color:#387397
}
html[data-theme="dark"] .console-body .console-intro p,
html[data-theme="dark"] .console-body .summary span{color:#c1d6e7}
html[data-theme="dark"] .console-body .surface,
html[data-theme="dark"] .console-body .summary{
  color:#eef7ff;background:#10253a;border-color:#294a65;
  box-shadow:0 8px 25px #00000028
}
html[data-theme="dark"] .console-body .surface p{color:#c1d4e5}
html[data-theme="dark"] .console-body .summary small{color:#a7c1d4}
html[data-theme="dark"] .console-body .family-grid>div{
  background:#172f47;border-color:#31546d;color:#e6f8ff
}
html[data-theme="dark"] .console-body .family-grid small{color:#bdd2e4}
html[data-theme="dark"] .console-body .catalog-card{
  background:#172e45;border-color:#31546f;color:#e8f6ff
}
html[data-theme="dark"] .console-body .catalog-card p,
html[data-theme="dark"] .console-body .catalog-category{color:#b9d0e2}
html[data-theme="dark"] .console-body .catalog-price{
  border-top-color:#34566e
}
html[data-theme="dark"] .console-body .catalog-price small{color:#b6cee0}
html[data-theme="dark"] .console-body .catalog-price strong{color:#79ddff}
html[data-theme="dark"] .console-body .catalog-status,
html[data-theme="dark"] .console-body .catalog-state{
  background:#113b5d;color:#b8eeff!important
}
html[data-theme="dark"] .console-body .service-badge{
  background:#164569;color:#79dfff
}
html[data-theme="dark"] .console-body .status-warning{
  background:#132e44;border-color:#39667b;color:#d6edff
}
html[data-theme="dark"] .console-body .status-tag{
  background:#105277;color:#e4faff
}
html[data-theme="dark"] .console-body .progress-list>div{
  background:#152d44;border-color:#30536e
}
html[data-theme="dark"] .console-body .progress-list strong{color:#e5f3ff}
html[data-theme="dark"] .console-body .progress-pending{
  background:#234867;color:#d3edff
}
html[data-theme="dark"] .console-body .progress-live{
  background:#164b43;color:#b6f9d6
}
html[data-theme="dark"] .console-body .legacy-label{
  background:#183e5d;color:#bdedff
}
html[data-theme="dark"] .console-body .legacy-login-heading p,
html[data-theme="dark"] .console-body .legacy-help{color:#b8d0e3}
html[data-theme="dark"] .console-body .legacy-link{
  color:#b8eaff;background:#163956;border-color:#37617e
}
html[data-theme="dark"] .console-body .legacy-link:hover{background:#205272}
html[data-theme="dark"] .console-body .auth-foundation-icon{
  color:#75ddff;background:#123c5b
}
html[data-theme="dark"] .console-body .console-footer{color:#adc7d9}
html[data-theme="dark"] .console-body .placeholder-mark{color:#54d4ff}
html[data-theme="dark"] .console-body .empty{color:#b3ccde}
html[data-theme="dark"] .console-body .welcome-card{
  background:radial-gradient(ellipse at 76% 35%,#067bac50,transparent 43%),
  linear-gradient(125deg,#082e58,#06182d);
  border-color:#1a759c
}
html[data-theme="dark"] .console-body .welcome-card p{color:#c5deed}
html[data-theme="dark"] .console-body .sidebar{background:linear-gradient(157deg,#030e1c,#092b49)}
html[data-theme="dark"] .console-body .sidebar nav a{color:#d3eafa}
html[data-theme="dark"] .console-body .sidebar .brand>span:last-child{color:#f8fcff}
@media(max-width:690px){
  .console-body .header-end{gap:6px}
  .console-body .header-end #auth-name{display:none}
  .console-body .header-end .auth-login{padding:7px 8px;font-size:10px}
}
@media(max-width:400px){
  .console-body .searchbar{max-width:100px;padding:6px 8px}
  .console-body .header-end #auth-new{display:none}
}
