/* Seven Desk official visual palette: logo gradient #C575FF → #6D2BEC.
   This stylesheet loads AFTER homepage.css/conta.css to prevent legacy theme leaks.
   The same semantic colors are used throughout both modes. */

:root,
html[data-theme="light"]{
  color-scheme:light;
  --sd-page:#fff;
  --sd-bg-soft:#faf7ff;
  --sd-bg-softest:#f6f0ff;
  --sd-panel:#fff;
  --sd-panel-raised:#f6f0ff;
  --sd-input:#fff;
  --sd-border:#e4dcef;
  --sd-border-strong:#cdbbe7;
  --sd-title:#231635;
  --sd-text:#30263f;
  --sd-muted:#655b74;
  --sd-link:#5924b8;
  --sd-primary:#6d2bec;
  --sd-primary-hover:#5320bb;
  --sd-on-primary:#fff;
  --sd-focus:#8042e9;
  --sd-logo-light:#c575ff;
  --sd-logo-dark:#6d2bec;
  --sd-badge-bg:#f1e7ff;
  --sd-badge-text:#6421bf;
  --sd-glow:rgba(151,101,237,.11);
  --sd-banner:linear-gradient(102deg,#6222d7 0%,#8741ed 50%,#9f55ed 100%);
  --sd-promo:linear-gradient(105deg,#5020ba 0%,#7833db 51%,#9951df 100%);
  --sd-hero:radial-gradient(circle at 50% 110%,#fff 11%,#fbf8ff 73%,#f7f1ff 100%);
  --sd-shadow:0 18px 50px rgba(77,34,139,.08);
  --sd-footer:#f6f1fc;
}

html[data-theme="dark"]{
  color-scheme:dark;
  --sd-page:#130d22;
  --sd-bg-soft:#1a132b;
  --sd-bg-softest:#1d1530;
  --sd-panel:#241a35;
  --sd-panel-raised:#2b2041;
  --sd-input:#191227;
  --sd-border:#443558;
  --sd-border-strong:#6e548e;
  --sd-title:#fcf9ff;
  --sd-text:#f3eefa;
  --sd-muted:#c6bcd7;
  --sd-link:#d3b3ff;
  --sd-primary:#7c35e9;
  --sd-primary-hover:#9656f5;
  --sd-on-primary:#fff;
  --sd-focus:#c39bff;
  --sd-logo-light:#d6abff;
  --sd-logo-dark:#a066ff;
  --sd-badge-bg:#312246;
  --sd-badge-text:#dfc2ff;
  --sd-glow:rgba(143,84,233,.23);
  --sd-banner:linear-gradient(102deg,#462087 0%,#64299d 50%,#7b36b0 100%);
  --sd-promo:linear-gradient(108deg,#442087 0%,#602ca6 52%,#7538b5 100%);
  --sd-hero:radial-gradient(circle at 50% 110%,#1a122c 5%,#151022 73%,#130d22 100%);
  --sd-shadow:0 18px 50px rgba(0,0,0,.26);
  --sd-footer:#110b1c;
}

html[data-theme]{background:var(--sd-page);scrollbar-color:var(--sd-border-strong) var(--sd-bg-soft)}
html[data-theme] body{background:var(--sd-page);color:var(--sd-text)}
html[data-theme] body [hidden]{display:none!important}
html[data-theme] body a:focus-visible,
html[data-theme] body button:focus-visible,
html[data-theme] body select:focus-visible,
html[data-theme] body input:focus-visible,
html[data-theme] body summary:focus-visible{outline:3px solid var(--sd-focus);outline-offset:3px}
html[data-theme] body .section-kicker{color:var(--sd-link)}
html[data-theme] body .muted-heading{color:var(--sd-muted)}
html[data-theme] body .gradient-text{background:linear-gradient(105deg,var(--sd-logo-dark),var(--sd-logo-light));background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-theme] body .section-head h2,
html[data-theme] body .split-head h2,
html[data-theme] body .steps-intro h2,
html[data-theme] body .pricing-intro h2,
html[data-theme] body .faq-layout h2,
html[data-theme] body .downloads-heading h2{color:var(--sd-title)}
html[data-theme] body .section-head p,
html[data-theme] body .split-head p,
html[data-theme] body .steps-intro>p,
html[data-theme] body .faq-layout>div>p,
html[data-theme] body .pricing-intro p,
html[data-theme] body .downloads-heading p{color:var(--sd-muted)}

/* Visible theme selection, both keyboard-accessible and touch-friendly. */
html[data-theme] body .theme-picker{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:5px 8px 5px 10px;border:1px solid var(--sd-border-strong);border-radius:9px;background:var(--sd-panel);color:var(--sd-text);flex-shrink:0}
html[data-theme] body .theme-picker-icon{display:inline-block;font-size:17px;line-height:1;color:var(--sd-link)}
html[data-theme] body .theme-picker select{font:inherit;font-size:12px;font-weight:750;min-width:86px;max-width:106px;border:0;outline-offset:2px;background:var(--sd-panel);color:var(--sd-title);cursor:pointer;padding:4px 0}
html[data-theme] body .theme-picker select option{background:var(--sd-panel);color:var(--sd-text)}
html[data-theme] body .theme-picker-mobile{display:none}

/* Navigation and first screen. */
html[data-theme] body .announcement{background:var(--sd-banner);border:0}
html[data-theme] body .announcement a{color:#fff}
html[data-theme] body .utility-bar,
html[data-theme] body .site-header{background:var(--sd-panel);border-bottom:1px solid var(--sd-border)}
html[data-theme] body .utility-inner{color:var(--sd-muted)}
html[data-theme] body .utility-inner a,
html[data-theme] body .utility-inner span{color:var(--sd-link)}
html[data-theme] body .site-header .brand,
html[data-theme] body .site-header .brand>span,
html[data-theme] body .desktop-nav a{color:var(--sd-title)}
html[data-theme] body .site-header .brand .brand-accent{color:var(--sd-logo-dark)}
html[data-theme] body .desktop-nav a:hover,
html[data-theme] body .mobile-navigation a:hover{color:var(--sd-link)}
html[data-theme] body .account-nav-login{background:var(--sd-primary);border-color:var(--sd-primary);color:#fff}
html[data-theme] body .account-nav-register{background:var(--sd-panel);border:2px solid var(--sd-primary);color:var(--sd-link)}
html[data-theme] body .account-nav-login:hover{background:var(--sd-primary-hover)}
html[data-theme] body .account-nav-register:hover{background:var(--sd-badge-bg)}
html[data-theme] body .mobile-navigation{background:var(--sd-panel);border-color:var(--sd-border)}
html[data-theme] body .mobile-navigation a{color:var(--sd-title)}
html[data-theme] body .mobile-menu-button span{background:var(--sd-title)}
html[data-theme] body .hero{background:var(--sd-hero);color:var(--sd-title)}
html[data-theme] body .hero h1{color:var(--sd-title)}
html[data-theme] body .hero .eyebrow{color:var(--sd-link)}
html[data-theme] body .hero-shape-left{border-color:var(--sd-border-strong);opacity:.37}
html[data-theme] body .hero-shape-left:after{border-color:var(--sd-border-strong)}
html[data-theme] body .hero-shape-right{border-color:var(--sd-border-strong);opacity:.3}
html[data-theme] body .hero .btn.btn-primary{background:var(--sd-primary);border-color:var(--sd-primary);color:#fff}
html[data-theme] body .hero .btn.btn-primary:hover{background:var(--sd-primary-hover);border-color:var(--sd-primary-hover)}
html[data-theme] body .hero .hero-release,
html[data-theme] body .hero .hero-terms{color:var(--sd-text)}
html[data-theme] body .hero-release a,
html[data-theme] body .hero-terms a{color:var(--sd-link);border-color:var(--sd-link)}
html[data-theme] body .pricing-banner{background:var(--sd-promo);color:#fff}
html[data-theme] body .pricing-banner-cta{background:#25103d;border:1px solid #d6b7fe;color:#fff}
html[data-theme] body .pricing-banner-cta:hover{background:#381458}
html[data-theme] body .platform-quickbar{background:var(--sd-panel);border-color:var(--sd-border)}
html[data-theme] body .platform-quickbar button{color:var(--sd-muted)}
html[data-theme] body .platform-quickbar button[aria-pressed="true"],
html[data-theme] body .platform-quickbar button.platform-selected{color:var(--sd-link);border-color:var(--sd-primary)}
html[data-theme] body .platform-quickbar-notice{color:var(--sd-muted)}
html[data-theme] body .platform-quickbar button img{filter:brightness(0);opacity:.72}
html[data-theme="dark"] body .platform-quickbar button img{filter:brightness(0) invert(1);opacity:.82}
html[data-theme="light"] body .platform-quickbar button[aria-pressed="true"] img{filter:brightness(0) saturate(100%) invert(23%) sepia(76%) saturate(3496%) hue-rotate(256deg) brightness(90%)}
html[data-theme="dark"] body .platform-quickbar button[aria-pressed="true"] img{filter:brightness(0) saturate(100%) invert(73%) sepia(20%) saturate(1088%) hue-rotate(217deg) brightness(108%)}
html[data-theme] body .reassurance-strip{background:var(--sd-bg-soft);border-color:var(--sd-border)}
html[data-theme] body .reassurance-strip span{color:var(--sd-text)}
html[data-theme] body .reassurance-strip span:before{color:var(--sd-link);background:var(--sd-badge-bg)}

/* Sections, cards, prices and platforms follow the same theme tokens. */
html[data-theme] body .intro,
html[data-theme] body .steps-section,
html[data-theme] body .faq-section{background:var(--sd-bg-soft)}
html[data-theme] body .feature-section,
html[data-theme] body .pricing-section,
html[data-theme] body .download-section{background:var(--sd-page)}
html[data-theme] body .intro .solution-card,
html[data-theme] body .feature-section .feature-card,
html[data-theme] body .pricing-section .pricing-card,
html[data-theme] body .download-section .platform-card{background:var(--sd-panel);border:1px solid var(--sd-border);box-shadow:var(--sd-shadow);color:var(--sd-text)}
html[data-theme] body .intro .solution-card:hover,
html[data-theme] body .feature-section .feature-card:hover,
html[data-theme] body .pricing-section .pricing-card:hover{border-color:var(--sd-primary);box-shadow:0 16px 50px var(--sd-glow)}
html[data-theme] body .intro .solution-card h3,
html[data-theme] body .feature-section .feature-card h3,
html[data-theme] body .pricing-section .pricing-card h3,
html[data-theme] body .download-section .platform-card strong{color:var(--sd-title)}
html[data-theme] body .intro .solution-card p,
html[data-theme] body .feature-section .feature-card p,
html[data-theme] body .pricing-section .pricing-card p,
html[data-theme] body .pricing-section .pricing-card li,
html[data-theme] body .download-section .platform-card small{color:var(--sd-muted)}
html[data-theme] body .intro .solution-number,
html[data-theme] body .intro .solution-card>a,
html[data-theme] body .intro .solution-deco,
html[data-theme] body .intro .solution-icon,
html[data-theme] body .feature-section .feature-icon,
html[data-theme] body .feature-section .feature-icon svg,
html[data-theme] body .steps-section .step-index,
html[data-theme] body .steps-section .step-glyph{color:var(--sd-link)}
html[data-theme] body .intro .solution-card.accent-card{background:linear-gradient(145deg,var(--sd-panel-raised),var(--sd-panel));border-color:var(--sd-border-strong)}
html[data-theme] body .intro .solution-icon,
html[data-theme] body .feature-section .feature-icon{background:var(--sd-badge-bg)}
html[data-theme] body .intro .solution-card .solution-deco{background:var(--sd-panel-raised);border:1px solid var(--sd-border);color:var(--sd-link)}
html[data-theme] body .intro .solution-card .solution-deco span{color:var(--sd-link)}
html[data-theme] body .steps-section .step{border-color:var(--sd-border)}
html[data-theme] body .steps-section .step h3{color:var(--sd-title)}
html[data-theme] body .steps-section .step p{color:var(--sd-muted)}
html[data-theme] body .steps-section .btn-dark{background:var(--sd-primary);color:#fff;border-color:var(--sd-primary)}
html[data-theme] body .pricing-section .pricing-card-featured{border:2px solid var(--sd-primary);background:var(--sd-panel)}
html[data-theme] body .pricing-section .pricing-label{color:var(--sd-link)}
html[data-theme] body .pricing-section .pricing-label span{background:var(--sd-badge-bg);color:var(--sd-badge-text)}
html[data-theme] body .pricing-section .pricing-price{color:var(--sd-title)}
html[data-theme] body .pricing-section .pricing-price span,
html[data-theme] body .pricing-section .pricing-price small{color:var(--sd-muted)}
html[data-theme] body .pricing-section .pricing-button{background:var(--sd-primary);color:#fff;border-color:var(--sd-primary)}
html[data-theme] body .pricing-section .pricing-card-featured .pricing-button{background:var(--sd-primary);color:#fff}
html[data-theme] body .pricing-section .pricing-card li:before{color:var(--sd-link)}
html[data-theme] body .download-section .downloads-panel{background:var(--sd-bg-soft);border:1px solid var(--sd-border);box-shadow:none;color:var(--sd-text)}
html[data-theme] body .download-section .downloads-heading h2{color:var(--sd-title)}
html[data-theme] body .download-section .downloads-heading p{color:var(--sd-muted)}
html[data-theme] body .download-section .platform-card{background:var(--sd-panel);border-color:var(--sd-border)}
html[data-theme] body .download-section .platform-card:hover,
html[data-theme] body .download-section .platform-card.platform-selected{background:var(--sd-badge-bg);border-color:var(--sd-primary)}
html[data-theme] body .download-section .platform-card span,
html[data-theme] body .download-section .platform-arrow,
html[data-theme] body .download-section .download-notice,
html[data-theme] body .download-section .downloads-footer,
html[data-theme] body .download-section .downloads-footer a{color:var(--sd-link)}
html[data-theme] body .download-section .platform-card .official-platform-logo{filter:brightness(0);opacity:.8}
html[data-theme="dark"] body .download-section .platform-card .official-platform-logo{filter:brightness(0) invert(1);opacity:.85}
html[data-theme] body .download-section .platform-card .platform-symbol{background:var(--sd-badge-bg)}
html[data-theme] body .faq-section .faq-list{border-color:var(--sd-border)}
html[data-theme] body .faq-section .faq-list details{border-bottom-color:var(--sd-border)}
html[data-theme] body .faq-section .faq-list summary{color:var(--sd-title)}
html[data-theme] body .faq-section .faq-list summary span{color:var(--sd-link)}
html[data-theme] body .faq-section .faq-list details p{color:var(--sd-muted)}
html[data-theme] body .faq-section .text-link{color:var(--sd-link)}
html[data-theme] body .final-cta{background:var(--sd-promo);color:#fff}
html[data-theme] body .final-cta .final-eyebrow{color:#efe1ff}
html[data-theme] body .final-cta h2{color:#fff}

/* Footer is light in light mode and explicitly dark in dark mode. */
html[data-theme] body .footer{background:var(--sd-footer);border-top:1px solid var(--sd-border);color:var(--sd-muted)}
html[data-theme] body .footer .brand-footer>span,
html[data-theme] body .footer .footer-links strong{color:var(--sd-title)}
html[data-theme] body .footer .brand-footer .brand-accent{color:var(--sd-logo-dark)}
html[data-theme] body .footer .footer-brand>p,
html[data-theme] body .footer .footer-links a,
html[data-theme] body .footer .footer-bottom{color:var(--sd-muted)}
html[data-theme] body .footer .footer-links a:hover,
html[data-theme] body .footer .footer-bottom a{color:var(--sd-link)}
html[data-theme] body .footer .footer-bottom{border-color:var(--sd-border)}

/* Account pages: consistent user controls, inputs, and status surfaces. */
html[data-theme] body.account-page{background:radial-gradient(ellipse at 12% 12%,var(--sd-glow),transparent 45%),var(--sd-bg-soft);color:var(--sd-text)}
html[data-theme] body.account-page .account-header{background:transparent;border-color:var(--sd-border);color:var(--sd-text)}
html[data-theme] body.account-page .account-brand{color:var(--sd-title)}
html[data-theme] body.account-page .account-brand strong{color:var(--sd-logo-dark)}
html[data-theme] body.account-page .account-header nav a{color:var(--sd-text)}
html[data-theme] body.account-page .account-intro-panel h2,
html[data-theme] body.account-page .account-card h1,
html[data-theme] body.account-page .account-plan-actions h2{color:var(--sd-title)}
html[data-theme] body.account-page .account-intro-panel h2 span{background:linear-gradient(115deg,var(--sd-logo-light),var(--sd-logo-dark));background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-theme] body.account-page .account-eyebrow,
html[data-theme] body.account-page .account-kicker{color:var(--sd-link)}
html[data-theme] body.account-page .account-intro-panel p,
html[data-theme] body.account-page .account-intro-panel li,
html[data-theme] body.account-page .account-intro-panel .account-disclaimer,
html[data-theme] body.account-page .account-intro,
html[data-theme] body.account-page .account-legal,
html[data-theme] body.account-page .account-message,
html[data-theme] body.account-page .account-identity{color:var(--sd-muted)}
html[data-theme] body.account-page .account-intro-panel li:before{color:var(--sd-link)}
html[data-theme] body.account-page .account-card{background:var(--sd-panel);border:1px solid var(--sd-border);box-shadow:var(--sd-shadow);color:var(--sd-text)}
html[data-theme] body.account-page .account-tabs{background:var(--sd-panel-raised)}
html[data-theme] body.account-page .account-tabs button{color:var(--sd-text)}
html[data-theme] body.account-page .account-tabs button[aria-pressed="true"]{background:var(--sd-primary);color:#fff;box-shadow:0 8px 16px var(--sd-glow)}
html[data-theme] body.account-page .account-service-message{background:var(--sd-badge-bg);border-color:var(--sd-border-strong);color:var(--sd-text)}
html[data-theme] body.account-page .account-message.error{color:var(--sd-link)}
html[data-theme] body.account-page .account-type-choices label{color:var(--sd-text);border-color:var(--sd-border-strong)}
html[data-theme] body.account-page .account-type-choices label:has(input:checked){background:var(--sd-badge-bg);border-color:var(--sd-primary)}
html[data-theme] body.account-page input[type=radio]{accent-color:var(--sd-primary)}
html[data-theme] body.account-page #account-document-hint{color:var(--sd-muted)}
html[data-theme] body.account-page form label,
html[data-theme] body.account-page .account-plan-actions label,
html[data-theme] body.account-page .account-app-token-label{color:var(--sd-text)}
html[data-theme] body.account-page input:not([type=radio]):not([type=checkbox]):not([type=file]),
html[data-theme] body.account-page textarea,
html[data-theme] body.account-page select:not([data-theme-select]){background:var(--sd-input);border:1px solid var(--sd-border-strong);color:var(--sd-text)}
html[data-theme] body.account-page input:focus-visible{border-color:var(--sd-primary);box-shadow:0 0 0 3px var(--sd-glow)}
html[data-theme] body.account-page .account-submit{background:var(--sd-primary);border-color:var(--sd-primary);color:#fff}
html[data-theme] body.account-page .account-submit:not(:disabled):hover{background:var(--sd-primary-hover);filter:none}
html[data-theme] body.account-page .account-inline-link,
html[data-theme] body.account-page .account-legal a,
html[data-theme] body.account-page .account-link-button{color:var(--sd-link)}
html[data-theme] body.account-page .account-connected{color:var(--sd-link);background:var(--sd-badge-bg)}
html[data-theme] body.account-page .account-identity strong{color:var(--sd-title)}
html[data-theme] body.account-page .account-plan-actions{background:var(--sd-bg-soft);border-color:var(--sd-border)}
html[data-theme] body.account-page .account-device-row{border-bottom-color:var(--sd-border)}
html[data-theme] body.account-page .account-signout{border-color:var(--sd-border-strong);color:var(--sd-text)}
html[data-theme] body.account-page .account-signout:hover{background:var(--sd-badge-bg)}
html[data-theme] body.account-page .account-footer{color:var(--sd-muted);background:transparent}
html[data-theme] body.account-page .account-footer a{color:var(--sd-link)}
html[data-theme] body.account-page .account-header .theme-picker{border-color:var(--sd-border-strong)}

/* Privacy and licensing pages use the same palette. */
html[data-theme] body.policy-page,
html[data-theme] body.legal-page{background:var(--sd-page);color:var(--sd-text)}
html[data-theme] body.policy-page .privacy,
html[data-theme] body.policy-page .privacy p,
html[data-theme] body.policy-page .privacy li{color:var(--sd-text)}
html[data-theme] body.policy-page .privacy h1,
html[data-theme] body.policy-page .privacy h2{color:var(--sd-title)}
html[data-theme] body.policy-page .privacy a{color:var(--sd-link)}
html[data-theme] body.legal-page .legal-header,
html[data-theme] body.legal-page .legal-footer{background:var(--sd-bg-soft);border-color:var(--sd-border);color:var(--sd-text)}
html[data-theme] body.legal-page .legal-main,
html[data-theme] body.legal-page .legal-main p,
html[data-theme] body.legal-page .legal-main li{color:var(--sd-text)}
html[data-theme] body.legal-page .legal-main h1,
html[data-theme] body.legal-page .legal-main h2{color:var(--sd-title)}
html[data-theme] body.legal-page .legal-back,
html[data-theme] body.legal-page .legal-kicker,
html[data-theme] body.legal-page .legal-main a,
html[data-theme] body.legal-page .legal-footer a{color:var(--sd-link)}
html[data-theme] body.legal-page .legal-lead{color:var(--sd-muted)}
html[data-theme] body.legal-page .legal-rule{background:var(--sd-border)}
html[data-theme] body.legal-page .legal-icon{color:var(--sd-link);background:var(--sd-badge-bg)}
html[data-theme] body.legal-page .legal-section{border-color:var(--sd-border)}

/* No animated theme flash or motion for visitors who disable animations. */
@media(prefers-reduced-motion:reduce){
  html[data-theme] body *,html[data-theme] body *::before,html[data-theme] body *::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
@media(max-width:1100px){
  html[data-theme] body .theme-picker select{min-width:72px;font-size:11px}
  html[data-theme] body .header-inner{gap:11px}
  html[data-theme] body .desktop-nav{gap:12px}
}
@media(max-width:980px){
  html[data-theme] body .desktop-nav{display:none}
}
@media(max-width:680px){
  html[data-theme] body .site-header .header-inner>.theme-picker{display:none}
  html[data-theme] body .theme-picker-mobile{display:flex;border-top:1px solid var(--sd-border);margin:10px 14px;padding:12px 2px 5px}
  html[data-theme] body .theme-picker-mobile select{min-width:130px}
  html[data-theme] body.account-page .account-header{flex-wrap:wrap;padding:12px 0;gap:8px}
  html[data-theme] body.account-page .account-header nav{flex:1 1 100%;justify-content:space-between;flex-wrap:wrap;gap:10px}
  html[data-theme] body.account-page .account-header .theme-picker{margin-left:auto}
}


/* Auxiliary appearance controls: do not alter account/payment layouts. */
html[data-theme] body.policy-page .privacy-topbar{display:flex;align-items:center;justify-content:flex-end;margin:0 0 16px}
html[data-theme] body.legal-page .legal-tools{display:flex;align-items:center;gap:20px;margin-left:auto}
html[data-theme] body.legal-page .legal-header-inner{gap:18px}
html[data-theme] body.legal-page .legal-header .brand{color:var(--sd-title);text-decoration:none;display:flex;align-items:center;gap:8px}
html[data-theme] body.legal-page .legal-header .brand-accent{color:var(--sd-logo-dark)}
html[data-theme] body.account-page .payment-theme-control{width:min(1120px,calc(100% - 44px));display:flex;justify-content:flex-end;margin:14px auto 0}
html[data-theme] body.account-page .account-card #account-service-message{color:var(--sd-text)}
html[data-theme] body.account-page .account-app-token-label input:read-only{background:var(--sd-panel-raised)}
@media(max-width:620px){
  html[data-theme] body.legal-page .legal-header-inner{flex-wrap:wrap;padding-top:14px;padding-bottom:14px}
  html[data-theme] body.legal-page .legal-tools{width:100%;justify-content:space-between;gap:8px}
}


/* Compatibility for the already deployed privacy/legal static templates. */
html[data-theme] body.policy-page .legal-head,
html[data-theme] body.policy-page .legal-footer{background:var(--sd-bg-soft);border-color:var(--sd-border);color:var(--sd-text)}
html[data-theme] body.policy-page main.legal-page{color:var(--sd-text)}
html[data-theme] body.policy-page main.legal-page h1,
html[data-theme] body.policy-page main.legal-page h2{color:var(--sd-title)}
html[data-theme] body.policy-page main.legal-page p,
html[data-theme] body.policy-page main.legal-page li{color:var(--sd-muted)}
html[data-theme] body.policy-page main.legal-page a,
html[data-theme] body.policy-page .legal-head .brand,
html[data-theme] body.policy-page .legal-footer a{color:var(--sd-link)!important}
html[data-theme] body.policy-page .legal-head .brand-accent{color:var(--sd-logo-dark)}
html[data-theme] body.policy-page .legal-note{background:var(--sd-panel-raised);border-color:var(--sd-border);color:var(--sd-text)}
html[data-theme] body.policy-page .privacy-topbar{margin:0 0 18px;display:flex;justify-content:flex-end}



/* Brand icon repair: SVG source files contain white paths. Never apply a
   filter to an image with a filled background, because the whole square
   is recolored rather than only the glyph. */
html[data-theme] body .feature-section .feature-card .feature-icon{
  background:var(--sd-badge-bg);
  color:var(--sd-link);
  border:1px solid var(--sd-border);
  box-shadow:none;
}
html[data-theme] body .feature-section .feature-card .feature-icon svg,
html[data-theme] body .feature-section .feature-card .feature-icon svg [stroke]{
  stroke:var(--sd-link);
}
html[data-theme] body .feature-section .feature-card .feature-icon svg [fill="#ecf6ff"]{
  fill:var(--sd-badge-bg);
}
html[data-theme] body .download-section .platform-card img.platform-symbol,
html[data-theme] body .download-section .platform-card img.official-platform-logo{
  background:transparent!important;
  border:0!important;
  padding:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  opacity:1;
  display:block;
  width:37px;
  height:39px;
  min-width:37px;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(3116%) hue-rotate(255deg) brightness(88%) contrast(101%);
}
html[data-theme="dark"] body .download-section .platform-card img.platform-symbol,
html[data-theme="dark"] body .download-section .platform-card img.official-platform-logo{
  filter:brightness(0) saturate(100%) invert(79%) sepia(21%) saturate(1121%) hue-rotate(214deg) brightness(102%) contrast(102%);
}
html[data-theme] body .download-section .platform-card.platform-selected,
html[data-theme] body .download-section .platform-card[aria-pressed="true"]{
  background:var(--sd-badge-bg);
  border-color:var(--sd-primary);
  box-shadow:inset 3px 0 0 var(--sd-primary);
}
html[data-theme] body .download-section .platform-card .platform-arrow{
  color:var(--sd-link);
}
html[data-theme] body .pricing-section .pricing-card-featured::before{
  background:var(--sd-primary);
  color:#fff;
}
html[data-theme] body .intro .solution-icon,
html[data-theme] body .intro .solution-card.accent-card .solution-icon{
  border-color:var(--sd-border);
  color:var(--sd-link);
}
html[data-theme] body .intro .solution-card.accent-card .solution-number,
html[data-theme] body .intro .solution-card.accent-card h3,
html[data-theme] body .intro .solution-card.accent-card p,
html[data-theme] body .intro .solution-card.accent-card a{
  color:var(--sd-text);
}
html[data-theme] body .hero .pricing-banner,
html[data-theme] body .final-cta{background:var(--sd-promo)}

/* The full login/registration experience. Keep all existing DOM ids, form
   events, disabled state, and account/server responses untouched. */
html[data-theme] body.account-page{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  min-height:100vh;
  margin:0;
  background:radial-gradient(ellipse 640px 440px at 10% 35%,var(--sd-glow),transparent 80%),var(--sd-bg-soft);
  color:var(--sd-text);
  display:flex;
  flex-direction:column;
}
html[data-theme] body.account-page .account-header{
  width:100%;
  max-width:none;
  min-height:86px;
  padding:14px max(24px,calc((100% - 1180px)/2));
  margin:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:var(--sd-panel);
  border-bottom:1px solid var(--sd-border);
  box-sizing:border-box;
}
html[data-theme] body.account-page .account-brand{
  font-size:23px;
  font-weight:850;
  display:inline-flex;
  align-items:center;
  gap:10px;
  letter-spacing:-.05em;
  text-decoration:none;
  white-space:nowrap;
  flex-shrink:0;
}
html[data-theme] body.account-page .account-brand img{width:43px;height:43px}
html[data-theme] body.account-page .account-header nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  font-size:13px;
  font-weight:700;
  margin-left:auto;
  min-width:0;
}
html[data-theme] body.account-page .account-header nav a{
  color:var(--sd-muted);
  padding:8px 2px;
  text-decoration:none;
  white-space:nowrap;
}
html[data-theme] body.account-page .account-header nav a:hover{color:var(--sd-link)}
html[data-theme] body.account-page .account-header .theme-picker{margin-left:0;order:1}
html[data-theme] body.account-page .account-header nav{order:0}
html[data-theme] body.account-page .account-shell{
  box-sizing:border-box;
  width:min(1120px,calc(100% - 48px));
  max-width:1120px;
  margin:48px auto 62px;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(350px,470px);
  gap:clamp(22px,4vw,60px);
  align-items:center;
  flex:1;
}
html[data-theme] body.account-page .account-intro-panel{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  box-sizing:border-box;
  padding:56px clamp(28px,4vw,53px);
  min-width:0;
  border:1px solid var(--sd-border-strong);
  border-radius:25px;
  background:linear-gradient(153deg,#5123a1 0%,#6d2bec 55%,#8e54df 100%);
  box-shadow:0 25px 60px rgba(55,23,107,.16);
  color:#fff;
}
html[data-theme] body.account-page .account-intro-panel::before{
  content:"";
  position:absolute;
  right:-112px;
  bottom:-138px;
  width:350px;
  height:350px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:50%;
  box-shadow:0 0 0 55px rgba(255,255,255,.055),0 0 0 110px rgba(255,255,255,.03);
  z-index:-1;
  pointer-events:none;
}
html[data-theme] body.account-page .account-intro-panel::after{
  display:none;
}
html[data-theme] body.account-page .account-intro-panel .account-eyebrow{
  color:#efe3ff;
  letter-spacing:.16em;
  font-weight:850;
  font-size:11px;
}
html[data-theme] body.account-page .account-intro-panel h2{
  font-size:clamp(38px,3.5vw,53px);
  letter-spacing:-.058em;
  line-height:1.14;
  font-weight:830;
  color:#fff;
  margin:21px 0 19px;
}
html[data-theme] body.account-page .account-intro-panel h2 span{
  display:inline;
  color:#e8d1ff;
  background:none;
  -webkit-text-fill-color:currentColor;
}
html[data-theme] body.account-page .account-intro-panel p{
  color:#f0e6ff;
  line-height:1.7;
  font-size:15px;
  max-width:420px;
  margin:0 0 26px;
}
html[data-theme] body.account-page .account-intro-panel ul{
  display:grid;
  gap:12px;
  list-style:none;
  padding:0;
  margin:28px 0;
}
html[data-theme] body.account-page .account-intro-panel li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  line-height:1.55;
  color:#fff;
  margin:0;
}
html[data-theme] body.account-page .account-intro-panel li::before{
  content:"✓";
  color:#321269;
  display:grid;
  place-items:center;
  width:21px;
  height:21px;
  min-width:21px;
  border-radius:50%;
  background:#f6eaff;
  font-weight:900;
  font-size:12px;
}
html[data-theme] body.account-page .account-intro-panel .account-disclaimer{
  color:#ead8ff;
  font-size:12px;
  line-height:1.55;
  max-width:420px;
  margin:22px 0 0;
}
html[data-theme] body.account-page .account-card{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  padding:clamp(24px,3.2vw,39px);
  border-radius:21px;
  border:1px solid var(--sd-border);
  background:var(--sd-panel);
  box-shadow:var(--sd-shadow);
}
html[data-theme] body.account-page .account-kicker{
  display:inline-block;
  color:var(--sd-badge-text);
  background:var(--sd-badge-bg);
  border-radius:7px;
  padding:7px 10px;
  letter-spacing:.1em;
  font-weight:800;
  font-size:10px;
  margin:0;
}
html[data-theme] body.account-page .account-card h1{
  font-size:clamp(27px,2.5vw,33px);
  font-weight:850;
  color:var(--sd-title);
  letter-spacing:-.045em;
  line-height:1.19;
  margin:17px 0 9px;
}
html[data-theme] body.account-page .account-intro,
html[data-theme] body.account-page .account-message{
  color:var(--sd-muted);
  font-size:13px;
  line-height:1.65;
}
html[data-theme] body.account-page .account-message{
  min-height:0;
  margin:10px 0 0;
}
html[data-theme] body.account-page .account-message:empty{display:none}
html[data-theme] body.account-page .account-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  margin:23px 0 20px;
  padding:5px;
  border-radius:11px;
  background:var(--sd-bg-softest);
  border:1px solid var(--sd-border);
}
html[data-theme] body.account-page .account-tabs button{
  width:100%;
  min-height:43px;
  border:0;
  border-radius:8px;
  padding:10px;
  background:transparent;
  color:var(--sd-muted);
  font-weight:750;
  font-size:13px;
  cursor:pointer;
  box-shadow:none;
}
html[data-theme] body.account-page .account-tabs button[aria-pressed="true"]{
  color:#fff;
  background:var(--sd-primary);
  box-shadow:0 5px 13px var(--sd-glow);
}
html[data-theme] body.account-page #account-form,
html[data-theme] body.account-page #account-recovery-form,
html[data-theme] body.account-page #account-reset-form,
html[data-theme] body.account-page #account-verification-form{
  width:100%;
  min-width:0;
}
html[data-theme] body.account-page #account-form label,
html[data-theme] body.account-page #account-recovery-form label,
html[data-theme] body.account-page #account-reset-form label,
html[data-theme] body.account-page #account-verification-form label,
html[data-theme] body.account-page .account-plan-actions label{
  display:block;
  font-size:12px;
  font-weight:750;
  line-height:1.5;
  color:var(--sd-title);
  margin:14px 0;
}
html[data-theme] body.account-page input:not([type=radio]):not([type=checkbox]):not([type=file]),
html[data-theme] body.account-page textarea{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid var(--sd-border-strong);
  border-radius:10px;
  color:var(--sd-text);
  background:var(--sd-input);
  outline:none;
  font-size:14px;
  font-weight:500;
  margin-top:7px;
  box-shadow:none;
}
html[data-theme] body.account-page input::placeholder{color:var(--sd-muted);opacity:.9}
html[data-theme] body.account-page input:focus-visible,
html[data-theme] body.account-page textarea:focus-visible{
  border-color:var(--sd-primary);
  outline:3px solid var(--sd-glow);
  outline-offset:1px;
}
html[data-theme] body.account-page input:disabled{cursor:not-allowed;opacity:.65}
html[data-theme] body.account-page .account-inline-link,
html[data-theme] body.account-page .account-link-button{
  color:var(--sd-link);
  font-weight:700;
  font-size:12px;
  text-underline-offset:3px;
}
html[data-theme] body.account-page .account-inline-link{display:inline-block;margin:6px 0 10px}
html[data-theme] body.account-page button.account-submit{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:49px;
  font-size:14px;
  font-weight:800;
  padding:12px 16px;
  border:1px solid var(--sd-primary);
  border-radius:10px;
  color:#fff;
  background:var(--sd-primary);
  margin:11px 0 0;
  cursor:pointer;
}
html[data-theme] body.account-page button.account-submit:not(:disabled):hover{
  background:var(--sd-primary-hover);
  border-color:var(--sd-primary-hover);
}
html[data-theme] body.account-page button.account-submit:disabled{
  opacity:.48;
  cursor:not-allowed;
}
html[data-theme] body.account-page .account-service-message,
html[data-theme] body.account-page .account-plan-actions,
html[data-theme] body.account-page .account-type-section{
  border:1px solid var(--sd-border);
  border-radius:11px;
  padding:15px;
  background:var(--sd-bg-soft);
  color:var(--sd-text);
}
html[data-theme] body.account-page .account-type-section{margin:16px 0}
html[data-theme] body.account-page .account-type-choices{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
html[data-theme] body.account-page .account-type-choices label{
  display:inline-flex!important;
  align-items:center;
  gap:9px;
  min-height:43px;
  flex:1 1 138px;
  background:var(--sd-panel);
  border:1px solid var(--sd-border-strong);
  border-radius:10px;
  padding:10px;
  margin:0!important;
  cursor:pointer;
}
html[data-theme] body.account-page .account-type-choices label:has(input:checked){
  border-color:var(--sd-primary);
  background:var(--sd-badge-bg);
}
html[data-theme] body.account-page #account-document-hint{font-size:11px;color:var(--sd-muted)}
html[data-theme] body.account-page .account-plan-actions{margin:18px 0}
html[data-theme] body.account-page .account-device-row{padding:14px 0;border-color:var(--sd-border)}
html[data-theme] body.account-page .account-device-row .account-signout{margin-right:8px}
html[data-theme] body.account-page .account-signout{border-color:var(--sd-border-strong);background:var(--sd-panel);color:var(--sd-text)}
html[data-theme] body.account-page .account-signout:hover{background:var(--sd-badge-bg)}
html[data-theme] body.account-page .account-legal{
  margin:18px 0 0;
  padding-top:15px;
  border-top:1px solid var(--sd-border);
  font-size:11px;
  color:var(--sd-muted);
  line-height:1.7;
}
html[data-theme] body.account-page .account-legal a{color:var(--sd-link)}
html[data-theme] body.account-page .account-footer{
  width:min(1120px,calc(100% - 48px));
  margin:0 auto;
  padding:19px 0 23px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border-top:1px solid var(--sd-border);
  font-size:12px;
  color:var(--sd-muted);
  background:transparent;
}
html[data-theme] body.account-page .payment-theme-control{
  width:min(1120px,calc(100% - 48px));
}
html[data-theme] body.account-page .payment-theme-control + .account-shell{
  margin-top:12px;
  grid-template-columns:minmax(0,1fr) minmax(320px,470px);
}
@media(max-width:900px){
  html[data-theme] body.account-page .account-shell{
    width:min(580px,calc(100% - 36px));
    grid-template-columns:1fr;
    margin:26px auto 42px;
    gap:20px;
  }
  html[data-theme] body.account-page .account-intro-panel{
    padding:28px;
    border-radius:18px;
  }
  html[data-theme] body.account-page .account-intro-panel h2{
    font-size:clamp(29px,5vw,39px);
    margin:15px 0 13px;
  }
  html[data-theme] body.account-page .account-intro-panel p{font-size:13px}
  html[data-theme] body.account-page .account-intro-panel ul{display:none}
  html[data-theme] body.account-page .account-intro-panel .account-disclaimer{display:none}
  html[data-theme] body.account-page .payment-theme-control + .account-shell{
    grid-template-columns:1fr;
  }
}
@media(max-width:620px){
  html[data-theme] body.account-page .account-header{
    min-height:0;
    padding:14px 18px;
    gap:10px;
    flex-wrap:wrap;
  }
  html[data-theme] body.account-page .account-header nav{
    order:3;
    width:100%;
    margin:0;
    padding-top:8px;
    border-top:1px solid var(--sd-border);
    justify-content:space-between;
    gap:8px;
    font-size:12px;
  }
  html[data-theme] body.account-page .account-header .theme-picker{
    order:1;
    margin-left:auto;
  }
  html[data-theme] body.account-page .account-brand{font-size:19px}
  html[data-theme] body.account-page .account-brand img{width:34px;height:34px}
  html[data-theme] body.account-page .account-shell{
    width:calc(100% - 24px);
    margin:14px auto 30px;
    gap:14px;
  }
  html[data-theme] body.account-page .account-intro-panel{
    padding:22px 20px;
    border-radius:16px;
  }
  html[data-theme] body.account-page .account-intro-panel h2{font-size:29px}
  html[data-theme] body.account-page .account-card{
    padding:24px 20px;
    border-radius:17px;
  }
  html[data-theme] body.account-page .account-card h1{font-size:27px}
  html[data-theme] body.account-page .account-footer{
    width:calc(100% - 32px);
    padding:14px 0 19px;
  }
}
