:root{--theme-canvas:#f3f5f9;--theme-surface:#fff;--theme-surface-soft:#f7f9fc;--theme-text:#24324a;--theme-muted:#748198;--theme-line:#e1e7f0;--theme-input:#fff;--theme-shadow:0 8px 28px rgba(30,48,82,.07)}
:root[data-theme-preference="dark"]{color-scheme:dark;--theme-canvas:#111827;--theme-surface:#1b2534;--theme-surface-soft:#202c3c;--theme-text:#e5eaf3;--theme-muted:#9aa7ba;--theme-line:#344052;--theme-input:#151e2b;--theme-shadow:0 8px 28px rgba(0,0,0,.22)}
@media(prefers-color-scheme:dark){:root[data-theme-preference="system"]{color-scheme:dark;--theme-canvas:#111827;--theme-surface:#1b2534;--theme-surface-soft:#202c3c;--theme-text:#e5eaf3;--theme-muted:#9aa7ba;--theme-line:#344052;--theme-input:#151e2b;--theme-shadow:0 8px 28px rgba(0,0,0,.22)}}
html[data-theme-preference="light"]{color-scheme:light}
body{color:var(--theme-text)}
/* Customer panel shared surfaces */
body:has(.app-shell),.app-shell,.main-content,.page-wrap{background-color:var(--theme-canvas);color:var(--theme-text)}
.app-shell .panel,.app-shell .stat-card,.app-shell .chart-card,.app-shell .table-card,.app-shell .settings-card,.app-shell .settings-panel,.app-shell .content-card,.app-shell .card,.app-shell .workspace,.app-shell .mapping-summary,.app-shell .order-workspace,.app-shell .product-workspace{border-color:var(--theme-line)!important;background-color:var(--theme-surface)!important;color:var(--theme-text)!important;box-shadow:var(--theme-shadow)}
.app-shell .panel header,.app-shell .card header,.app-shell .table thead,.app-shell table thead,.app-shell .filter-panel,.app-shell .toolbar,.app-shell .table-toolbar{border-color:var(--theme-line)!important;background-color:var(--theme-surface-soft)}
.app-shell table,.app-shell .data-table{color:var(--theme-text)}
.app-shell table th,.app-shell .data-table th{border-color:var(--theme-line)!important;background-color:var(--theme-surface-soft)!important;color:var(--theme-muted)!important}
.app-shell table td,.app-shell .data-table td{border-color:var(--theme-line)!important;color:var(--theme-text)}
.app-shell .view input:not([type="checkbox"]):not([type="radio"]),.app-shell .view select,.app-shell .view textarea{border-color:var(--theme-line)!important;background-color:var(--theme-input)!important;color:var(--theme-text)!important;color-scheme:inherit}
.app-shell .topbar{border-color:var(--theme-line);background-color:var(--theme-surface)}
.app-shell>.sidebar{box-sizing:border-box;flex:0 0 270px;background-color:#152044;color:#aab6d8}
.app-shell>.sidebar .sidebar-menu-search{box-sizing:border-box;display:flex;flex:0 0 34px;align-items:center;width:calc(100% - 16px);height:34px;min-height:34px;margin:0 8px;padding:0 10px;border:1px solid rgba(151,168,207,.25);border-radius:5px;background:#172642;color:#9aa8c5}
.app-shell>.sidebar .sidebar-menu-search>svg{flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.app-shell>.sidebar .sidebar-menu-search>input[type="search"]{box-sizing:border-box;display:block;flex:1 1 auto;width:100%;min-width:0;height:32px;min-height:0;margin:0;padding:0;border:0!important;border-radius:0;outline:0!important;color:#e3e9f7!important;background:transparent!important;box-shadow:none!important;font:400 12px/1 Roboto,sans-serif;color-scheme:dark;-webkit-appearance:none;appearance:none}
.app-shell>.sidebar .sidebar-menu-search>input[type="search"]::placeholder{color:#9aa8c5;opacity:1}
.app-shell>.sidebar .sidebar-menu-search:focus-within{border-color:#8299eb;box-shadow:0 0 0 2px rgba(112,136,221,.2)}
.app-shell>.sidebar .side-nav{color:#aab6d8}
.app-shell>.sidebar .side-nav>a,.app-shell>.sidebar .side-nav>.side-group>summary{color:#aab6d8}
.app-shell>.sidebar .side-nav>a:hover,.app-shell>.sidebar .side-nav>a.active,.app-shell>.sidebar .side-nav>.side-group>summary:hover,.app-shell>.sidebar .side-nav>.side-group[open]>summary{color:#fff}
.app-shell .view p,.app-shell .page-wrap small,.app-shell .muted{color:var(--theme-muted)}
.app-shell dialog,.app-shell [role="dialog"],.appearance-settings-panel{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
/* Admin panel surfaces and controls */
.admin-app,.admin-main,.admin-content{background-color:var(--theme-canvas);color:var(--theme-text)}
.admin-topbar{border-color:var(--theme-line);background-color:color-mix(in srgb,var(--theme-surface) 95%,transparent)}
.admin-topbar strong,.admin-content h1,.admin-content h2,.admin-content h3,.admin-content label{color:var(--theme-text)}
.admin-content .card,.admin-content .metric-card,.admin-content .quick-grid a,.admin-content .issue-list article,.admin-support-detail,.admin-support-list{border-color:var(--theme-line)!important;background-color:var(--theme-surface)!important;color:var(--theme-text)!important;box-shadow:var(--theme-shadow)}
.admin-content .card>header,.admin-content .table-tools,.admin-content .dialog-section,.admin-content .public-site-group{border-color:var(--theme-line);background-color:var(--theme-surface-soft)}
.admin-content table{color:var(--theme-text)}
.admin-content th{border-color:var(--theme-line)!important;background-color:var(--theme-surface-soft)!important;color:var(--theme-muted)!important}
.admin-content td{border-color:var(--theme-line)!important;color:var(--theme-text)!important}
.admin-app input:not([type="checkbox"]):not([type="radio"]),.admin-app select,.admin-app textarea{border-color:var(--theme-line)!important;background-color:var(--theme-input)!important;color:var(--theme-text)!important;color-scheme:inherit}
.admin-app dialog,.admin-app dialog form,.admin-app dialog .dialog-body{border-color:var(--theme-line);background-color:var(--theme-surface);color:var(--theme-text)}
.admin-app .outline,.admin-app .link-button{border-color:var(--theme-line);background-color:var(--theme-surface);color:var(--theme-text)}
.admin-sidebar{color:#c9d0e5;background:#152044}
.admin-login form{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
.admin-login h1,.admin-login label{color:var(--theme-text)}
.admin-login form>p:not(.eyebrow):not(.form-message),.admin-login .back-link{color:var(--theme-muted)}
/* Administrator-published Benimnet palettes */
:root[data-theme-area="customer"],:root[data-theme-area="admin"],:root[data-theme-area="marketing"]{font-family:var(--theme-font-family,"DM Sans",system-ui,sans-serif);--bn-primary:var(--theme-primary,#4f46e5);--bn-background:var(--theme-canvas,#f8fafc);--bn-surface:var(--theme-surface,#fff);--bn-text:var(--theme-text,#0f172a);--bn-text-muted:var(--theme-muted,#475569);--bn-border:var(--theme-line,#cbd5e1);--bn-radius:var(--theme-radius,12px)}
.admin-app .primary,.app-shell .primary,.app-shell .button-primary,.site-home .button-primary{border-color:var(--theme-primary)!important;color:var(--theme-on-primary,#fff)!important;background:var(--theme-primary)!important}
.admin-app .primary:hover:not(:disabled),.app-shell .primary:hover:not(:disabled),.app-shell .button-primary:hover:not(:disabled){filter:brightness(.94)}
.admin-app .outline:focus-visible,.app-shell button:focus-visible,.app-shell a:focus-visible,.site-home button:focus-visible,.site-home a:focus-visible{outline:3px solid color-mix(in srgb,var(--theme-primary) 55%,transparent);outline-offset:2px}
.admin-sidebar{border-right:1px solid #26365f;color:#c9d3ed;background:#152044}
.admin-sidebar .admin-brand,.admin-sidebar .admin-brand strong,.admin-sidebar-user strong{color:#fff}
.admin-sidebar nav p,.admin-sidebar-user small{color:#aab6d8}
.admin-sidebar nav a,.admin-nav-group>summary{color:#c9d3ed}
.admin-sidebar nav a:hover,.admin-sidebar nav a.active,.admin-nav-group.active>summary,.admin-nav-group>summary:hover{color:#fff;background:color-mix(in srgb,var(--theme-primary) 38%,#152044)}
.admin-sidebar-user{border-color:#34436b}
.admin-login{background:radial-gradient(circle at 75% 20%,color-mix(in srgb,var(--theme-primary) 60%,transparent) 0,transparent 34%),linear-gradient(135deg,var(--theme-canvas),var(--theme-surface-soft))}
.admin-login form{border:1px solid var(--theme-line);border-radius:var(--theme-radius);background:var(--theme-surface);color:var(--theme-text)}
.app-shell>.sidebar{border-right:1px solid #26365f;background:#152044;color:#c9d3ed}
.app-shell>.sidebar .sidebar-menu-search{border-color:rgba(151,168,207,.25);background:#172642}
.app-shell>.sidebar .sidebar-menu-search>input[type="search"]{color:#e3e9f7!important}
.app-shell>.sidebar .sidebar-menu-search>input[type="search"]::placeholder{color:#9aa8c5}
.app-shell>.sidebar .side-nav,.app-shell>.sidebar .side-nav>a,.app-shell>.sidebar .side-nav>.side-group>summary{color:#c9d3ed}
.app-shell>.sidebar .side-nav>a:hover,.app-shell>.sidebar .side-nav>a.active,.app-shell>.sidebar .side-nav>.side-group>summary:hover,.app-shell>.sidebar .side-nav>.side-group[open]>summary{color:#fff;background:color-mix(in srgb,var(--theme-primary) 38%,#152044)}
.app-shell .panel,.app-shell .stat-card,.app-shell .chart-card,.app-shell .table-card,.app-shell .settings-card,.app-shell .settings-panel,.app-shell .content-card,.app-shell .card,.app-shell .workspace,.admin-content .card,.admin-content .metric-grid article{border-radius:var(--theme-radius)}
.app-shell .topbar,.admin-topbar{color:var(--theme-text)}
:root[data-theme-area="marketing"] body{color:var(--theme-text);background:var(--theme-canvas)}
:root[data-theme-area="marketing"] .site-sticky-shell,:root[data-theme-area="marketing"] .site-header,:root[data-theme-area="marketing"] .site-footer{color:var(--theme-text)}
:root[data-theme-area="marketing"] .site-header{background:var(--theme-surface)}
:root[data-theme-area="marketing"] .main-nav,:root[data-theme-area="marketing"] .hero-copy>p,:root[data-theme-area="marketing"] .section-heading>p,:root[data-theme-area="marketing"] .contact-copy>p{color:var(--theme-muted)}
:root[data-theme-area="marketing"] .hero h1 em,:root[data-theme-area="marketing"] .section-heading h2 em,:root[data-theme-area="marketing"] .contact-copy h2 em,:root[data-theme-area="marketing"] .main-nav>a:not(.nav-login):hover{color:var(--theme-primary)}
:root[data-theme-area="marketing"] .nav-login,:root[data-theme-area="marketing"] .button-secondary,:root[data-theme-area="marketing"] .button-dark{border-color:var(--theme-line);color:var(--theme-text);background:var(--theme-surface)}
:root[data-theme-area="marketing"] .nav-trial,:root[data-theme-area="marketing"] .button-primary{border-color:var(--theme-primary);color:var(--theme-on-primary);background:var(--theme-primary)}
:root[data-theme-area="marketing"] .coverage-card,:root[data-theme-area="marketing"] .feature-card,:root[data-theme-area="marketing"] .license-card,:root[data-theme-area="marketing"] .faq-item,:root[data-theme-area="marketing"] .contact-card{border-color:var(--theme-line);border-radius:var(--theme-radius);background:var(--theme-surface);color:var(--theme-text)}
@media(max-width:760px){.admin-sidebar{background:#152044}.app-shell>.sidebar{background:#152044}}
:root[data-theme-density="compact"] .admin-content{gap:calc(17px * .75)}
:root[data-theme-density="compact"] .app-shell .view{gap:calc(16px * .75)}
:root[data-theme-density="compact"] .app-shell table th,:root[data-theme-density="compact"] .app-shell table td{padding-top:7px;padding-bottom:7px}
/* Theme preference dialog */
.panel-theme-dialog{width:min(440px,calc(100vw - 28px));padding:0;border:1px solid var(--theme-line);border-radius:14px;background:var(--theme-surface);color:var(--theme-text);box-shadow:0 24px 80px rgba(8,18,40,.25)}
.panel-theme-dialog::backdrop{background:rgba(13,23,43,.48);backdrop-filter:blur(3px)}
.panel-theme-dialog form{padding:20px}
.panel-theme-dialog header,.panel-theme-dialog header>div{display:flex;align-items:flex-start;gap:12px}
.panel-theme-dialog header{justify-content:space-between;margin-bottom:22px}
.panel-theme-dialog h2{margin:0;color:var(--theme-text);font-size:17px}
.panel-theme-dialog p{margin:5px 0 0;color:var(--theme-muted);font-size:12px}
.panel-theme-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#4c68d4;background:#edf1ff;font-size:20px}
.panel-theme-close{width:32px;height:32px;border:1px solid var(--theme-line);border-radius:8px;background:var(--theme-surface);color:var(--theme-muted);font-size:20px;cursor:pointer}
.panel-theme-dialog label{display:grid;gap:8px;color:var(--theme-text);font-size:13px;font-weight:700}
.panel-theme-dialog select{width:100%;min-height:42px;padding:0 12px;border:1px solid var(--theme-line);border-radius:8px;background:var(--theme-input);color:var(--theme-text);font:inherit}
.theme-toggle-icon{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.admin-theme-settings{display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border-radius:10px;color:#5267c8}
.admin-theme-settings:hover{color:#3f56ba;background:var(--theme-surface-soft)}
@media(max-width:560px){.admin-theme-settings{width:36px;height:36px}.panel-theme-dialog form{padding:17px}}
/* Keep the public site legible when the administrator selects dark mode. */
:root[data-theme-area="marketing"][data-theme-mode="dark"] body{background:var(--theme-canvas);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .site-sticky-shell,:root[data-theme-area="marketing"][data-theme-mode="dark"] .site-header,:root[data-theme-area="marketing"][data-theme-mode="dark"] .platform-strip,:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-section,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form,:root[data-theme-area="marketing"][data-theme-mode="dark"] .site-footer{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .hero{color:#fff}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .hero-copy>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .section-heading>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-copy>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .hero-note,:root[data-theme-area="marketing"][data-theme-mode="dark"] .footer-main>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .footer-bottom{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .hero-note strong,:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card h3,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card h3,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card li,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-clarity-copy h3,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-clarity>ul strong,:root[data-theme-area="marketing"][data-theme-mode="dark"] .coverage-card-top>span{color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-visual,:root[data-theme-area="marketing"][data-theme-mode="dark"] .permission-visual,:root[data-theme-area="marketing"][data-theme-mode="dark"] .coverage-card,:root[data-theme-area="marketing"][data-theme-mode="dark"] .workflow-grid li,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-clarity,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-clarity>ul li,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare,:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-card,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form input,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form select,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form textarea{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .workflow-grid h3,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-clarity>ul li>span{color:var(--theme-primary)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .workflow-grid p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .coverage-card p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-clarity-copy>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-clarity>ul small,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form label{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form input::placeholder,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form textarea::placeholder{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .nav-login,:root[data-theme-area="marketing"][data-theme-mode="dark"] .button-secondary,:root[data-theme-area="marketing"][data-theme-mode="dark"] .button-dark{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .main-nav{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .faq-list,:root[data-theme-area="marketing"][data-theme-mode="dark"] .faq-list details,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare-table th,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare-table td{border-color:var(--theme-line)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .faq-list summary,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare-table thead th,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare-table tbody th{color:var(--theme-text);background:var(--theme-surface-soft)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .faq-list details p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-note{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-note,:root[data-theme-area="marketing"][data-theme-mode="dark"] .selected-package-note{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .coverage-card-top small{color:var(--theme-text);background:var(--theme-surface-soft)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .brand,:root[data-theme-area="marketing"][data-theme-mode="dark"] .brand strong,:root[data-theme-area="marketing"][data-theme-mode="dark"] .brand [data-header-brand-text]{color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card h3,:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card>div>h3,:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card .insights-visual strong{color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card>small,:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .insights-visual small{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-visual,:root[data-theme-area="marketing"][data-theme-mode="dark"] .order-visual span,:root[data-theme-area="marketing"][data-theme-mode="dark"] .connection-visual,:root[data-theme-area="marketing"][data-theme-mode="dark"] .business-systems-visual,:root[data-theme-area="marketing"][data-theme-mode="dark"] .insights-visual>span,:root[data-theme-area="marketing"][data-theme-mode="dark"] .permission-visual{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .permission-visual header,:root[data-theme-area="marketing"][data-theme-mode="dark"] .permission-visual p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .order-visual span,:root[data-theme-area="marketing"][data-theme-mode="dark"] .connection-visual>span,:root[data-theme-area="marketing"][data-theme-mode="dark"] .business-systems-visual span{color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .business-systems-visual a,:root[data-theme-area="marketing"][data-theme-mode="dark"] .feature-card a,:root[data-theme-area="marketing"][data-theme-mode="dark"] .text-link,:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-note a,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare-cta,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-details a{color:var(--theme-primary)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-heading h2,:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-card h3,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare h3{color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-card,:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-note,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-card p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-card li,:root[data-theme-area="marketing"][data-theme-mode="dark"] .module-directory-note,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare-table td,:root[data-theme-area="marketing"][data-theme-mode="dark"] .package-compare-table tbody th{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .directory-index,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card strong{color:var(--theme-primary)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card .plan-label,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card>p,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-card li,:root[data-theme-area="marketing"][data-theme-mode="dark"] .license-footnote{color:var(--theme-muted)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form .form-title>span,:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-form label{color:var(--theme-text)}
:root[data-theme-area="marketing"][data-theme-mode="dark"] .contact-details,:root[data-theme-area="marketing"][data-theme-mode="dark"] .mail-note,:root[data-theme-area="marketing"][data-theme-mode="dark"] .form-feedback{color:var(--theme-muted)}
/* The customer app has many legacy screen-specific card colors. Normalize content
   surfaces in dark mode so analytics, settings, and dialogs use the same palette. */
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article{border-color:var(--theme-line)!important;background-color:var(--theme-surface)!important;color:var(--theme-text)!important;box-shadow:var(--theme-shadow)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article>header,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article>.current-channel-grid,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .history-summary>span,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .city-ranking,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .insight-table-wrap,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .table-toolbar,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article fieldset{border-color:var(--theme-line)!important;background:var(--theme-surface-soft)!important;color:var(--theme-text)!important}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article h1,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article h2,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article h3,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article h4,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article strong,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article label,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article th{color:var(--theme-text)!important}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article p,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article small,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article td,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .muted,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .empty{color:var(--theme-muted)!important}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .history-chart{border-color:var(--theme-line);background:repeating-linear-gradient(to bottom,var(--theme-surface-soft) 0,var(--theme-surface-soft) 50px,var(--theme-line) 52px)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .turkey-heat-visual{border-color:var(--theme-line);background:radial-gradient(circle at 42% 42%,color-mix(in srgb,var(--theme-primary) 18%,var(--theme-surface)),var(--theme-surface-soft) 62%,color-mix(in srgb,var(--theme-success,#2dd4bf) 10%,var(--theme-surface)))}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .comparison-track{background:var(--theme-line)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article table,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .table-wrap{background:var(--theme-surface)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article button:not(.primary):not(.button-primary):not(.active):not([aria-selected="true"]){border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article button.active,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article button[aria-selected="true"]{border-color:var(--theme-primary);background:var(--theme-primary);color:var(--theme-on-primary)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .main-content,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .page-wrap,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .current-dashboard,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .dashboard-overview-section{background-color:var(--theme-canvas)!important;color:var(--theme-text)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .insight-tabs,:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .insight-filter-stack{border-color:var(--theme-line);background:var(--theme-surface-soft)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .app-shell .view article .turkey-heat-visual::before{background:linear-gradient(145deg,color-mix(in srgb,var(--theme-primary) 50%,var(--theme-surface-soft)),var(--theme-line));filter:drop-shadow(0 12px 15px rgba(0,0,0,.22))}
:root[data-theme-area="customer"][data-theme-mode="dark"] #auth-screen,:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane{background:var(--theme-canvas);color:var(--theme-text)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane .auth-form-wrap{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text);box-shadow:var(--theme-shadow)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane .auth-heading h1,:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane .auth-field,:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane .auth-remember,:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane .auth-brand{color:var(--theme-text)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane #auth-subtitle,:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane .auth-account-note{color:var(--theme-muted)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane .auth-field input{border-color:var(--theme-line);background:var(--theme-input);color:var(--theme-text)}
:root[data-theme-area="customer"][data-theme-mode="dark"] .auth-login-pane #auth-submit{border-color:var(--theme-primary);background:var(--theme-primary);color:var(--theme-on-primary)}

.admin-app{--admin-sidebar:#152044;--admin-sidebar-edge:#26365f;--admin-sidebar-text:#c9d3ed;--admin-sidebar-muted:#aab6d8;--theme-success:#176a49;--theme-success-bg:#eaf8f1;--theme-warning:#8b4b10;--theme-warning-bg:#fff4df;--theme-danger:#a6434d;--theme-danger-bg:#fff0f1;--theme-info:#4059b3;--theme-info-bg:#edf1ff;font-family:var(--theme-font-family,system-ui,sans-serif);color:var(--theme-text);background:var(--theme-canvas)}
.admin-main,.admin-content{color:var(--theme-text);background:var(--theme-canvas)}
.admin-topbar{color:var(--theme-text);border-color:var(--theme-line);background:color-mix(in srgb,var(--theme-surface) 94%,transparent)}
.admin-topbar small{color:var(--theme-muted)}
.admin-content .admin-hero{border:1px solid color-mix(in srgb,var(--theme-primary) 32%,var(--theme-line));color:#fff;background:linear-gradient(118deg,color-mix(in srgb,var(--theme-primary) 68%,#071226),color-mix(in srgb,var(--theme-primary) 82%,#071226) 68%,color-mix(in srgb,var(--theme-primary) 70%,#075b62));box-shadow:var(--theme-shadow)}
.admin-content .admin-hero .eyebrow,.admin-content .admin-hero p{color:rgba(255,255,255,.84)}
.admin-content .admin-hero h1{color:#fff}
.admin-content .metric-grid article,.admin-content .card,.admin-content .quick-grid a,.admin-content .issue-list article,.admin-content .admin-announcement,.admin-content .integration-list article,.admin-content .activity-list article,.admin-content .login-promotion-item,.admin-content .customer-module-grid>label,.admin-content .public-site-group,.admin-content .public-plan-grid fieldset,.admin-content .public-faq-grid fieldset,.admin-content .announcement-popup-setting,.admin-content .maintenance-toggle,.admin-content .module-select-button{border-color:var(--theme-line);background-color:var(--theme-surface);color:var(--theme-text)}
.admin-content .card>header,.admin-content .table-tools,.admin-content .dialog-section,.admin-content .public-site-group>summary,.admin-content .login-promotion-item>header,.admin-content .announcement-editor-toolbar,.admin-content .promotion-mobile-toggle,.admin-content .promotion-design,.admin-content .group-list article,.admin-content .public-site-actions{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
.admin-content .card h2,.admin-content .metric-grid strong,.admin-content .issue strong,.admin-content .quick-grid strong,.admin-content .integration-list strong,.admin-content .activity-list strong,.admin-content .admin-announcement>div:nth-child(2)>strong,.admin-content .public-site-group>summary,.admin-content .customer-module-grid strong,.admin-content .dialog-section h3,.admin-content .public-site-group h3,.admin-content .login-promotion-item>header>strong,.admin-content .promotion-mobile-toggle strong,.admin-content .promotion-design legend,.admin-content .announcement-popup-setting strong,.admin-content .module-section-head,.admin-content .customer-package-title{color:var(--theme-text)}
.admin-content .card p,.admin-content .metric-grid p,.admin-content .metric-grid small,.admin-content .issue small,.admin-content .quick-grid small,.admin-content .integration-list small,.admin-content .activity-list small,.admin-content .admin-announcement p,.admin-content .admin-announcement small,.admin-content .dialog-section>p,.admin-content .customer-module-grid small,.admin-content .public-site-help,.admin-content .public-site-actions span,.admin-content .login-promotion-item>header>label,.admin-content .promotion-mobile-toggle small,.admin-content .announcement-popup-setting small,.admin-content .module-section-head p{color:var(--theme-muted)}
.admin-content .table-wrap,.admin-content table{background:var(--theme-surface)}
.admin-content th{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-muted)}
.admin-content td{border-color:var(--theme-line);color:var(--theme-text)}
.admin-content .table-wrap tr:hover td{background:color-mix(in srgb,var(--theme-primary) 5%,var(--theme-surface))}
.admin-app input:not([type="checkbox"]):not([type="radio"]),.admin-app select,.admin-app textarea,.admin-app .table-tools label,.admin-app .table-tools select,.admin-app .role-select,.admin-app .toggle-user,.admin-app .customer-actions button,.admin-app .announcement-actions button,.admin-app .announcement-editor-toolbar button,.admin-app .announcement-editor-toolbar select,.admin-app .announcement-color-control,.admin-app .form-grid input,.admin-app .form-grid select,.admin-app .form-grid textarea,.admin-app .login-promotion-fields input,.admin-app .login-promotion-fields select,.admin-app .login-promotion-fields textarea,.admin-app .announcement-rich-editor,.admin-app #announcement-html-source,.admin-app .site-settings-banner{border-color:var(--theme-line);background-color:var(--theme-input);color:var(--theme-text);color-scheme:inherit}
.admin-app input::placeholder,.admin-app textarea::placeholder,.admin-app .announcement-rich-editor:empty::before{color:var(--theme-muted)}
.admin-app .primary,.admin-app .link-button,.admin-app .admin-brand b{color:var(--theme-primary)}
.admin-app .primary{border-color:var(--theme-primary);color:var(--theme-on-primary);background:var(--theme-primary)}
.admin-app .outline,.admin-app .link-button,.admin-app .module-select-button{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
.admin-app .outline:hover,.admin-app .quick-grid a:hover,.admin-app .public-site-group[open]>summary,.admin-app .module-select-button:hover{border-color:color-mix(in srgb,var(--theme-primary) 48%,var(--theme-line));background:color-mix(in srgb,var(--theme-primary) 7%,var(--theme-surface));color:var(--theme-text)}
.admin-app :focus-visible{outline-color:color-mix(in srgb,var(--theme-primary) 65%,transparent)}
.admin-sidebar{border-color:var(--admin-sidebar-edge);background:var(--admin-sidebar);color:var(--admin-sidebar-text)}
.admin-sidebar nav p,.admin-sidebar-user small{color:var(--admin-sidebar-muted)}
.admin-sidebar nav a,.admin-nav-group>summary{color:var(--admin-sidebar-text)}
.admin-sidebar nav a:hover,.admin-sidebar nav a.active,.admin-nav-group.active>summary,.admin-nav-group>summary:hover,.admin-sidebar nav .admin-nav-submenu a:hover,.admin-sidebar nav .admin-nav-submenu a.active{background:color-mix(in srgb,var(--theme-primary) 38%,var(--admin-sidebar));color:#fff}
.admin-sidebar-user{border-color:color-mix(in srgb,var(--admin-sidebar-text) 20%,transparent)}
.admin-login{background:radial-gradient(circle at 75% 20%,color-mix(in srgb,var(--theme-primary) 38%,transparent) 0,transparent 34%),linear-gradient(135deg,var(--theme-canvas),var(--theme-surface-soft))}
.admin-login form,.admin-app dialog,.admin-app dialog form,.admin-app dialog .dialog-body{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
.admin-login h1,.admin-login label,.admin-app dialog h2,.admin-app dialog h3,.admin-app dialog legend{color:var(--theme-text)}
.admin-app .eyebrow,.admin-app .link-button,.admin-app .announcement-rich-field>strong{color:var(--theme-primary)}
.admin-app .count-pill,.admin-app .license-badge,.admin-app .user-avatar,.admin-app .activity-mark,.admin-app .metric-icon.blue,.admin-app .announcement-type,.admin-app .customer-logo{border-color:color-mix(in srgb,var(--theme-primary) 22%,var(--theme-line));background:var(--theme-info-bg);color:var(--theme-info)}
.admin-app .status,.admin-app .connection-state.connected,.admin-app .license-badge.perpetual,.admin-app .all-clear>span,.admin-app .metric-icon.green,.admin-app .metric-icon.mint,.admin-app .announcement-type.success{background:var(--theme-success-bg);color:var(--theme-success)}
.admin-app .status.expired,.admin-app .status.passive,.admin-app .connection-state,.admin-app .announcement-actions button.danger{background:var(--theme-danger-bg);color:var(--theme-danger)}
.admin-app .status.expiring,.admin-app .issue>span,.admin-app .issue b,.admin-app .metric-icon.orange,.admin-app .admin-announcement.warning .announcement-type,.admin-app .admin-announcement.maintenance .announcement-type,.admin-app .maintenance-notice.is-maintenance{background:var(--theme-warning-bg);color:var(--theme-warning)}
.admin-app .system-online,.admin-app .maintenance-notice:not(.is-maintenance),.admin-app .announcement-meta em:not(.draft){background:var(--theme-success-bg);color:var(--theme-success)}
.admin-app .announcement-meta span{background:var(--theme-info-bg);color:var(--theme-info)}
.admin-app .announcement-meta b{background:var(--theme-surface-soft);color:var(--theme-muted)}
.admin-app .announcement-meta em.draft{background:var(--theme-warning-bg);color:var(--theme-warning)}
.admin-app .toast{background:var(--admin-sidebar);color:#fff}
.admin-theme-settings{color:var(--theme-primary);background:transparent}
.admin-theme-settings:hover{color:var(--theme-primary);background:color-mix(in srgb,var(--theme-primary) 9%,var(--theme-surface))}
/* Admin dialogs are direct body children, so scope them through the admin page root. */
body:has(#admin-app) dialog{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-text);box-shadow:var(--theme-shadow)}
body:has(#admin-app) dialog::backdrop{background:rgba(7,14,30,.58)}
body:has(#admin-app) dialog form>header,body:has(#admin-app) dialog form>footer{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
body:has(#admin-app) dialog form>header h2,body:has(#admin-app) dialog form>header small,body:has(#admin-app) dialog .dialog-body>label,body:has(#admin-app) dialog .form-grid label,body:has(#admin-app) dialog legend,body:has(#admin-app) dialog .dialog-section h3{color:var(--theme-text)}
body:has(#admin-app) dialog .dialog-section,body:has(#admin-app) dialog fieldset,body:has(#admin-app) dialog .customer-module-grid>label,body:has(#admin-app) dialog .announcement-popup-setting{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
body:has(#admin-app) dialog .dialog-section>p,body:has(#admin-app) dialog .customer-module-grid small,body:has(#admin-app) dialog .announcement-popup-setting small{color:var(--theme-muted)}
body:has(#admin-app) dialog input:not([type="checkbox"]):not([type="radio"]),body:has(#admin-app) dialog select,body:has(#admin-app) dialog textarea,body:has(#admin-app) dialog .announcement-rich-editor,body:has(#admin-app) dialog #announcement-html-source,body:has(#admin-app) dialog .announcement-editor-toolbar button,body:has(#admin-app) dialog .announcement-editor-toolbar select,body:has(#admin-app) dialog .announcement-color-control{border-color:var(--theme-line);background:var(--theme-input);color:var(--theme-text);color-scheme:inherit}
body:has(#admin-app) dialog input::placeholder,body:has(#admin-app) dialog textarea::placeholder,body:has(#admin-app) dialog .announcement-rich-editor:empty::before{color:var(--theme-muted)}
body:has(#admin-app) dialog .announcement-editor-toolbar,body:has(#admin-app) dialog .promotion-design,body:has(#admin-app) dialog .promotion-mobile-toggle{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
body:has(#admin-app) dialog .customer-module-grid>label:has(input:checked){border-color:color-mix(in srgb,var(--theme-primary) 50%,var(--theme-line));background:color-mix(in srgb,var(--theme-primary) 12%,var(--theme-surface))}
.admin-app .quick-grid a>span,.admin-app .metric-icon.blue,.admin-app .license-badge,.admin-app .announcement-type,.admin-app .count-pill{color:var(--theme-info);background:var(--theme-info-bg)}
.admin-app .metric-icon.green,.admin-app .metric-icon.mint,.admin-app .all-clear>span{color:var(--theme-success);background:var(--theme-success-bg)}
.admin-app .metric-icon.orange,.admin-app .issue>span,.admin-app .issue b{color:var(--theme-warning);background:var(--theme-warning-bg)}
:root[data-theme-area="admin"][data-theme-mode="dark"] .admin-app{--admin-sidebar:#0b1120;--admin-sidebar-edge:#26334b;--admin-sidebar-text:#d1d9e8;--admin-sidebar-muted:#9baac0;--theme-success:#7ee0b4;--theme-success-bg:#12372e;--theme-warning:#ffd28a;--theme-warning-bg:#422f18;--theme-danger:#ff9da6;--theme-danger-bg:#42232b;--theme-info:#aebaff;--theme-info-bg:#252c4a}
:root[data-theme-area="admin"][data-theme-mode="dark"] .admin-content .metric-grid strong.warning{color:#ffd28a}
:root[data-theme-area="admin"][data-theme-mode="dark"] .admin-content .announcement-rich-editor,:root[data-theme-area="admin"][data-theme-mode="dark"] .admin-content #announcement-html-source{color:var(--theme-text)}
@media(max-width:760px){.admin-sidebar{background:var(--admin-sidebar)}}
.admin-sidebar nav a:hover,.admin-sidebar nav a.active,.admin-nav-group.active>summary,.admin-nav-group>summary:hover{background:color-mix(in srgb,var(--theme-primary) 37%,var(--admin-sidebar,#152044))}
.admin-app .metric-icon.blue,.admin-app .license-badge,.admin-app .announcement-type,.admin-app .count-pill{color:var(--theme-primary);background:color-mix(in srgb,var(--theme-primary) 12%,var(--theme-surface))}
:root[data-theme-mode="dark"] .admin-app .status,:root[data-theme-preference="dark"] .admin-app .status{color:#7ee0b1;background:rgba(34,197,134,.14)}
:root[data-theme-mode="dark"] .admin-app .status.passive,:root[data-theme-preference="dark"] .admin-app .status.passive{color:#ff9aa2;background:rgba(239,68,68,.15)}
:root[data-theme-mode="dark"] .admin-app .status.expiring,:root[data-theme-preference="dark"] .admin-app .status.expiring,:root[data-theme-mode="dark"] .admin-app .status.expired,:root[data-theme-preference="dark"] .admin-app .status.expired{color:#ffd18a;background:rgba(245,158,11,.16)}
:root[data-theme-mode="dark"] .admin-app .system-online,:root[data-theme-preference="dark"] .admin-app .system-online{color:#7ee0b1;background:rgba(34,197,134,.14)}
:root[data-theme-mode="dark"] .admin-app .public-site-actions,:root[data-theme-preference="dark"] .admin-app .public-site-actions{background:var(--theme-surface)}
:root[data-theme-mode="dark"] .admin-app .announcement-rich-editor,:root[data-theme-preference="dark"] .admin-app .announcement-rich-editor,:root[data-theme-mode="dark"] .admin-app #announcement-html-source,:root[data-theme-preference="dark"] .admin-app #announcement-html-source{background:var(--theme-input);color:var(--theme-text)}
.theme-preview-frame{font-family:var(--theme-font-family,system-ui,sans-serif)}
.theme-preview-frame[data-area="admin"] .theme-preview-sidebar{color:#c9d3ed;background:#152044}
.theme-preview-frame[data-area="admin"] .theme-preview-sidebar b{color:var(--theme-on-primary);background:var(--theme-primary)}
.admin-login input:not([type="checkbox"]):not([type="radio"]){border-color:var(--theme-line);background:var(--theme-input);color:var(--theme-text);color-scheme:inherit}
.admin-login .primary{border-color:var(--theme-primary);color:var(--theme-on-primary);background:var(--theme-primary)}
.admin-login .primary:hover:not(:disabled){filter:brightness(.94)}
.admin-app .metric-icon.green,.admin-app .metric-icon.mint,.admin-app .all-clear>span{color:#17805c;background:color-mix(in srgb,#20a36a 12%,var(--theme-surface))}
.admin-app .metric-icon.orange,.admin-app .issue>span,.admin-app .issue b{color:#a45a1b;background:color-mix(in srgb,#e88b2d 14%,var(--theme-surface))}
:root[data-theme-mode="dark"] .admin-app .metric-icon.green,:root[data-theme-preference="dark"] .admin-app .metric-icon.green,:root[data-theme-mode="dark"] .admin-app .metric-icon.mint,:root[data-theme-preference="dark"] .admin-app .metric-icon.mint,:root[data-theme-mode="dark"] .admin-app .all-clear>span,:root[data-theme-preference="dark"] .admin-app .all-clear>span{color:#7ee0b1;background:rgba(34,197,134,.14)}
:root[data-theme-mode="dark"] .admin-app .metric-icon.orange,:root[data-theme-preference="dark"] .admin-app .metric-icon.orange,:root[data-theme-mode="dark"] .admin-app .issue>span,:root[data-theme-preference="dark"] .admin-app .issue>span,:root[data-theme-mode="dark"] .admin-app .issue b,:root[data-theme-preference="dark"] .admin-app .issue b{color:#ffd18a;background:rgba(245,158,11,.16)}
:root[data-theme-area="marketing"] .references-page{color:var(--theme-text);background:var(--theme-canvas)}
:root[data-theme-area="marketing"] .references-hero{background:linear-gradient(112deg,var(--theme-canvas),color-mix(in srgb,var(--theme-primary) 8%,var(--theme-surface)) 58%,color-mix(in srgb,var(--theme-primary) 12%,var(--theme-surface)))}
:root[data-theme-area="marketing"] .references-hero h1,:root[data-theme-area="marketing"] .references-section-heading h2,:root[data-theme-area="marketing"] .references-cta h2{color:var(--theme-text)}
:root[data-theme-area="marketing"] .references-eyebrow,:root[data-theme-area="marketing"] .references-hero h1 em,:root[data-theme-area="marketing"] .references-hero-link{color:var(--theme-primary)}
:root[data-theme-area="marketing"] .references-hero-content>p,:root[data-theme-area="marketing"] .references-breadcrumb,:root[data-theme-area="marketing"] .references-section-heading>p{color:var(--theme-muted)}
:root[data-theme-area="marketing"] .references-section{background:var(--theme-surface)}
:root[data-theme-area="marketing"] .reference-card{border-color:var(--theme-line);border-radius:var(--theme-radius);background:linear-gradient(145deg,var(--theme-surface),var(--theme-surface-soft));color:var(--theme-text)}
:root[data-theme-area="marketing"] .reference-card h3,:root[data-theme-area="marketing"] .reference-card p,:root[data-theme-area="marketing"] .reference-card li{color:var(--theme-text)}
:root[data-theme-area="marketing"] .reference-card small,:root[data-theme-area="marketing"] .reference-card .reference-description{color:var(--theme-muted)}
:root[data-theme-area="marketing"] .references-note,:root[data-theme-area="marketing"] .references-cta{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
:root[data-theme-area="marketing"] .references-cta a{border-color:var(--theme-primary);background:var(--theme-primary);color:var(--theme-on-primary)}
@media(max-width:760px){.admin-sidebar{background:var(--admin-sidebar,#152044)}}

/* Keep the administrator workspace on the same published palette as both
   customer themes. These rules intentionally follow the legacy admin styles. */
.admin-app{color:var(--theme-text);background:var(--theme-canvas)}
.admin-main,.admin-content{color:var(--theme-text);background:var(--theme-canvas)}
.admin-topbar{border-color:var(--theme-line);background:color-mix(in srgb,var(--theme-surface) 94%,transparent);color:var(--theme-text)}
.admin-topbar strong,.admin-content h1,.admin-content h2,.admin-content h3,.admin-content h4{color:var(--theme-text)}
.admin-app input[type="checkbox"],.admin-app input[type="radio"]{accent-color:var(--theme-primary)}
.admin-content .metric-grid article,.admin-content .card,.admin-content .dashboard-grid .card,.admin-content .table-card,.admin-content .settings-card{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text);box-shadow:var(--theme-shadow)}
.admin-content .card>header,.admin-content .table-tools,.admin-content .dialog-section,.admin-content .group-list article,.admin-content .public-site-actions{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
.admin-content .card p,.admin-content .metric-grid p,.admin-content .metric-grid small,.admin-content .table-tools,.admin-content .module-section-head p{color:var(--theme-muted)}
.admin-content table,.admin-content .table-wrap{background:var(--theme-surface);color:var(--theme-text)}
.admin-content th{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-muted)}
.admin-content td{border-color:var(--theme-line);color:var(--theme-text)}
.admin-content .table-wrap tr:hover td{background:color-mix(in srgb,var(--theme-primary) 5%,var(--theme-surface))}
.admin-app input:not([type="checkbox"]):not([type="radio"]),.admin-app select,.admin-app textarea,.admin-app .table-tools label,.admin-app .table-tools select,.admin-app .role-select,.admin-app .toggle-user,.admin-app .customer-actions button,.admin-app .announcement-actions button,.admin-app .announcement-editor-toolbar button,.admin-app .announcement-editor-toolbar select,.admin-app .announcement-color-control,.admin-app .form-grid input,.admin-app .form-grid select,.admin-app .form-grid textarea,.admin-app .login-promotion-fields input,.admin-app .login-promotion-fields select,.admin-app .login-promotion-fields textarea,.admin-app .announcement-rich-editor,.admin-app #announcement-html-source,.admin-app .site-settings-banner{border-color:var(--theme-line);background-color:var(--theme-input);color:var(--theme-text);color-scheme:inherit}
.admin-app input::placeholder,.admin-app textarea::placeholder,.admin-app .announcement-rich-editor:empty::before{color:var(--theme-muted)}
.admin-app .outline,.admin-app .link-button,.admin-app .module-select-button,.admin-app .table-tools label{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
.admin-app .outline:hover,.admin-app .module-select-button:hover,.admin-app .table-tools label:focus-within{border-color:color-mix(in srgb,var(--theme-primary) 55%,var(--theme-line));background:color-mix(in srgb,var(--theme-primary) 7%,var(--theme-surface));color:var(--theme-text)}
.admin-content .admin-hero{border:1px solid color-mix(in srgb,var(--theme-primary) 32%,var(--theme-line));background:linear-gradient(118deg,color-mix(in srgb,var(--theme-primary) 68%,#071226),color-mix(in srgb,var(--theme-primary) 82%,#071226) 68%,color-mix(in srgb,var(--theme-primary) 70%,#075b62));box-shadow:var(--theme-shadow)}
.admin-login{background:radial-gradient(circle at 75% 20%,color-mix(in srgb,var(--theme-primary) 28%,transparent) 0,transparent 34%),linear-gradient(135deg,var(--theme-canvas),var(--theme-surface-soft))}
.admin-login form{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-text);box-shadow:var(--theme-shadow)}
.admin-login h1,.admin-login label,.admin-login-brand strong{color:var(--theme-text)}
.admin-login form>p:not(.eyebrow):not(.form-message),.admin-login .back-link{color:var(--theme-muted)}
.admin-app .admin-sidebar{border-color:var(--admin-sidebar-edge);background:var(--admin-sidebar);color:var(--admin-sidebar-text)}
.admin-app .admin-sidebar nav p,.admin-app .admin-sidebar-user small{color:var(--admin-sidebar-muted)}
.admin-app .admin-sidebar nav a,.admin-app .admin-nav-group>summary{color:var(--admin-sidebar-text)}
.admin-app .admin-sidebar nav a:hover,.admin-app .admin-sidebar nav a.active,.admin-app .admin-nav-group.active>summary,.admin-app .admin-nav-group>summary:hover,.admin-app .admin-sidebar nav .admin-nav-submenu a:hover,.admin-app .admin-sidebar nav .admin-nav-submenu a.active{background:color-mix(in srgb,var(--theme-primary) 38%,var(--admin-sidebar));color:#fff}
.admin-app .site-settings-banner{background:var(--theme-surface)}
.admin-app .site-settings-banner strong,.admin-app .promotion-mobile-toggle strong,.admin-app .promotion-design legend,.admin-app .customer-package-title,.admin-app .announcement-popup-setting strong,.admin-app .announcement-rich-field>strong{color:var(--theme-text)}
.admin-app .site-settings-banner p,.admin-app .promotion-mobile-toggle small,.admin-app .promotion-unit-input small,.admin-app .announcement-popup-setting small{color:var(--theme-muted)}
body:has(#admin-app) dialog,body:has(#admin-app) dialog form,body:has(#admin-app) dialog .dialog-body{border-color:var(--theme-line);background:var(--theme-surface);color:var(--theme-text)}
body:has(#admin-app) dialog form>header,body:has(#admin-app) dialog form>footer,body:has(#admin-app) dialog .dialog-section,body:has(#admin-app) dialog fieldset{border-color:var(--theme-line);background:var(--theme-surface-soft);color:var(--theme-text)}
body:has(#admin-app) dialog h2,body:has(#admin-app) dialog h3,body:has(#admin-app) dialog label,body:has(#admin-app) dialog legend{color:var(--theme-text)}
:root[data-theme-area="admin"][data-theme-mode="dark"] .admin-app{--admin-sidebar:#0b1120;--admin-sidebar-edge:#26334b;--admin-sidebar-text:#d1d9e8;--admin-sidebar-muted:#9baac0;--theme-success:#7ee0b4;--theme-success-bg:#12372e;--theme-warning:#ffd28a;--theme-warning-bg:#422f18;--theme-danger:#ff9da6;--theme-danger-bg:#42232b;--theme-info:#aebaff;--theme-info-bg:#252c4a}
@media(max-width:760px){.admin-content{padding:14px}.admin-topbar{background:color-mix(in srgb,var(--theme-surface) 96%,transparent)}}
