/* Theme switch and accessible dark appearance, v8.2.4 */
html[data-theme="dark"]{color-scheme:dark;--bg:#111815;--surface:rgba(28,39,33,.88);--surface-solid:#1b2520;--surface-soft:#24312a;--text:#edf4ef;--muted:#c0cdc4;--line:rgba(220,237,225,.14);--line-strong:rgba(220,237,225,.24);--green:#78c39b;--green-dark:#a0dfb8;--green-soft:#243d30;--shadow:0 24px 60px rgba(0,0,0,.28);--shadow-soft:0 10px 32px rgba(0,0,0,.22)}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .ambient{opacity:.18}
html[data-theme="dark"] .site-header{background:rgba(17,24,21,.84);border-bottom-color:var(--line)}
html[data-theme="dark"] .desktop-nav,html[data-theme="dark"] .search-box,html[data-theme="dark"] .category-chip,html[data-theme="dark"] .product-type-chip,html[data-theme="dark"] .sort-control select,html[data-theme="dark"] .pill-button,html[data-theme="dark"] .icon-button{background:#202b25;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .desktop-nav button:hover,html[data-theme="dark"] .icon-button:hover,html[data-theme="dark"] .pill-button:hover{background:#2b3931;color:var(--text)}
html[data-theme="dark"] .nexus-store-rail{background:#17211c;border-color:var(--line)}
html[data-theme="dark"] .nexus-store-rail nav button,html[data-theme="dark"] .nexus-store-rail nav button:hover{color:var(--text)}
html[data-theme="dark"] .nexus-rail-help{background:#20372a;border-color:#355a42}
html[data-theme="dark"] .nexus-rail-help button{background:#293830;color:#d9eee0}
html[data-theme="dark"] .hero-main{color:#fff}
html[data-theme="dark"] .hero-aside .hero-stat,html[data-theme="dark"] #products .section-heading,html[data-theme="dark"] .industry-guide,html[data-theme="dark"] .product-card,html[data-theme="dark"] .benefit-card,html[data-theme="dark"] .contact-card,html[data-theme="dark"] .glass-card,html[data-theme="dark"] .faq-list,html[data-theme="dark"] .journey-grid{background:#1b2520;border-color:var(--line);color:var(--text);box-shadow:var(--shadow-soft)}
html[data-theme="dark"] .industry-guide button,html[data-theme="dark"] .product-card h3,html[data-theme="dark"] .benefit-card h3,html[data-theme="dark"] .contact-card h3,html[data-theme="dark"] .section-heading h2{color:var(--text)}
html[data-theme="dark"] .industry-guide button{border-bottom-color:var(--line)}
html[data-theme="dark"] #how .section-kicker,html[data-theme="dark"] #policies .section-kicker{color:#a9dcbc}
html[data-theme="dark"] #how .journey-grid{background:#1b2520;border-color:rgba(220,237,225,.14)}
html[data-theme="dark"] #how .journey-grid article>span{color:#a9dcbc}
html[data-theme="dark"] #how .journey-grid p,html[data-theme="dark"] #policies .faq-list p,html[data-theme="dark"] #policies .faq-intro p{color:#c4d0c8}
html[data-theme="dark"] #policies .faq-list{background:#1b2520;border-color:rgba(220,237,225,.14)}
html[data-theme="dark"] #policies .faq-list summary{color:#edf4ef}
html[data-theme="dark"] #policies .faq-list summary:after{color:#a9dcbc}
html[data-theme="dark"] #policies .faq-intro>a{color:#a9dfb9}
html[data-theme="dark"] #how .journey-grid h3,html[data-theme="dark"] #policies .faq-list summary{color:#edf4ef}
html[data-theme="dark"] #policies .faq-list summary:after{color:#a9dcbc}
html[data-theme="dark"] #policies .faq-intro>a{color:#a9dfb9}
html[data-theme="dark"] #how .journey-grid article+article,html[data-theme="dark"] #policies .faq-list details{border-color:var(--line)}
html[data-theme="dark"] .product-card p,html[data-theme="dark"] .product-category,html[data-theme="dark"] .product-description,html[data-theme="dark"] .benefit-card p,html[data-theme="dark"] .contact-card p,html[data-theme="dark"] .section-heading p,html[data-theme="dark"] .trust-strip,html[data-theme="dark"] .journey-grid p,html[data-theme="dark"] .faq-list p,html[data-theme="dark"] #policies>p{color:#c4d0c8}
html[data-theme="dark"] .product-image,html[data-theme="dark"] .product-type-badge,html[data-theme="dark"] .product-arrow,html[data-theme="dark"] .benefit-card>span,html[data-theme="dark"] .contact-icon{background:#26362d;color:#a5dfb9;border-color:var(--line)}
html[data-theme="dark"] .support-note{background:#20372a;border-color:#355a42;color:#d5f0df}
html[data-theme="dark"] .category-chip.is-active,html[data-theme="dark"] .product-type-chip.is-active{background:#28724f;color:#fff}
html[data-theme="dark"] .journey-grid>*,html[data-theme="dark"] .faq-list details,html[data-theme="dark"] #policies details{border-color:var(--line)}
html[data-theme="dark"] .site-footer{background:#151d19;border-color:var(--line)}
html[data-theme="dark"] .sheet,html[data-theme="dark"] .account-sheet,html[data-theme="dark"] .compact-sheet,html[data-theme="dark"] .admin-panel,html[data-theme="dark"] .admin-sidebar,html[data-theme="dark"] .admin-topbar,html[data-theme="dark"] .admin-content,html[data-theme="dark"] .lightbox,html[data-theme="dark"] .form-shell,html[data-theme="dark"] .product-info-panel{background:#17211c;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .account-tabs,html[data-theme="dark"] .mobile-tabbar,html[data-theme="dark"] .mobile-admin-nav{background:rgba(25,36,30,.96);border-color:var(--line)}
html[data-theme="dark"] .mobile-tabbar button,html[data-theme="dark"] .mobile-admin-nav button{color:#c2d0c7}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,html[data-theme="dark"] .field input,html[data-theme="dark"] .field textarea{background:#202c25;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a6b7ab}
html[data-theme="dark"] .data-table,html[data-theme="dark"] .data-table tr,html[data-theme="dark"] .data-table td,html[data-theme="dark"] .data-table th,html[data-theme="dark"] .order-toolbar select{background:#1d2922;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .launch-screen{background:radial-gradient(circle at 25% 18%,#234832,#111815 62%,#17251c);color:#edf4ef}
html[data-theme="dark"] .launch-card{background:#1b2921;border-color:#31483a;color:#edf4ef}
html[data-theme="dark"] .launch-card span,html[data-theme="dark"] .launch-card small{color:#c0cdc4}
.theme-toggle{display:grid;place-items:center;flex:none}
.theme-toggle .theme-icon{width:20px;height:20px}
.theme-icon-sun{display:none}
html[data-theme="dark"] .theme-icon-moon{display:none}
html[data-theme="dark"] .theme-icon-sun{display:block}
@media(max-width:680px){.header-actions .theme-toggle{display:grid!important;width:40px;height:40px;min-height:40px;padding:0;border-radius:13px}.header-actions{gap:6px}.header-inner{gap:8px}}
@media(prefers-reduced-motion:no-preference){.theme-toggle svg{transition:transform .24s ease}.theme-toggle:hover svg{transform:rotate(-12deg) scale(1.06)}}

/* Dark-mode consistency: catalog controls and supporting surfaces */
html[data-theme="dark"] #products .search-box{background:#202b25;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .search-box input{background:transparent;color:var(--text)}
html[data-theme="dark"] .search-box input::placeholder{color:#b3c1b8}
html[data-theme="dark"] .category-chip small{background:#34443b;color:#dce9e0}
html[data-theme="dark"] .category-chip.is-active small{background:rgba(255,255,255,.16);color:#f3fbf5}
html[data-theme="dark"] .product-type-chip.is-active{background:#2b3c32;color:#c9ead3}
html[data-theme="dark"] .product-type-badge{background:#26362d;color:#d4e5da;border-color:var(--line)}
html[data-theme="dark"] .product-card .product-arrow{background:#26362d;color:#c7e4d0}
html[data-theme="dark"] .product-card .product-arrow:hover{background:#34483b;color:#f2faf4}
html[data-theme="dark"] .product-image{background:#202c25;border-color:var(--line)}
html[data-theme="dark"] #productGrid .product-image img{background:#1b2520}
html[data-theme="dark"] .favorite-button{background:#26362d;border-color:#46594c;color:#d6e8dc;box-shadow:0 4px 12px rgba(0,0,0,.34)}
html[data-theme="dark"] .favorite-button:hover{background:#34483b;color:#f2faf4}
html[data-theme="dark"] .product-price{color:#a9dfb9}
html[data-theme="dark"] .product-price small{color:#bac8bf}
html[data-theme="dark"] .product-results,html[data-theme="dark"] .trust-strip{color:#b9c8bf}
html[data-theme="dark"] .trust-strip b{color:#a9dfb9}
html[data-theme="dark"] .product-grid .empty-state{background:#1b2520;border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .contact-card .contact-icon{background:#26362d;border-color:var(--line);color:#a9dfb9}
html[data-theme="dark"] .contact-card .contact-icon{background:#315a43!important;border:1px solid #557660;box-shadow:0 4px 12px rgba(0,0,0,.25)}
html[data-theme="dark"] #installBanner{background:#1b2921;border-color:var(--line);color:#edf4ef;box-shadow:var(--shadow-soft)}
html[data-theme="dark"] #installBanner p{color:#c4d0c8}

/* The forest hero keeps its light call to action; the surrounding showcase follows the selected theme. */
html[data-theme="dark"] .hero-showcase{background:#1b2520;border-color:var(--line);box-shadow:var(--shadow-soft)}
html[data-theme="dark"] .showcase-top{color:#c4d0c8}
html[data-theme="dark"] .showcase-caption{color:#dce9e0}
html[data-theme="dark"] .showcase-caption div>span{color:#bac8bf}
html[data-theme="dark"] .showcase-icon{background:#26362d;border-color:var(--line);color:#a9dfb9}
html[data-theme="dark"] .hero-main .secondary-button{background:rgba(255,255,255,.08);border-color:rgba(220,237,225,.3);color:#f0f7f2}
html[data-theme="dark"] .hero-main .secondary-button:hover{background:rgba(255,255,255,.16);color:#fff}

/* Product detail, demo access, and purchase information */
html[data-theme="dark"] .sheet-close{background:#26362d;border-color:#46594c;color:#dce9e0;box-shadow:0 4px 14px rgba(0,0,0,.32)}
html[data-theme="dark"] .sheet-close:hover{background:#34483b;color:#fff}
html[data-theme="dark"] .gallery-main,html[data-theme="dark"] #galleryMainImage,html[data-theme="dark"] .gallery-thumb{background:#202c25;border-color:var(--line)}
html[data-theme="dark"] .gallery-thumb.is-active{border-color:#78c39b;outline-color:#78c39b}
html[data-theme="dark"] .gallery>.summary{color:#b9c8bf}
html[data-theme="dark"] .demo-access{background:#202c25;border:1px solid var(--line);color:var(--text)}
html[data-theme="dark"] .demo-access summary,html[data-theme="dark"] .demo-access dt{color:#c4d0c8}
html[data-theme="dark"] .demo-access p{color:#b9c8bf}
html[data-theme="dark"] .demo-access dd{color:#edf4ef}
html[data-theme="dark"] .purchase-guide{background:#202c25;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .purchase-guide p{color:#c4d0c8}
html[data-theme="dark"] .purchase-guide p b,html[data-theme="dark"] .purchase-guide strong{color:#edf4ef}
html[data-theme="dark"] .purchase-guide .policy-note{border-color:var(--line);color:#b9c8bf}
html[data-theme="dark"] .purchase-guide .policy-note a,html[data-theme="dark"] .policy-link{color:#a9dfb9}
html[data-theme="dark"] .feature-item{background:#202c25;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .feature-item span,html[data-theme="dark"] .full-description p{color:#c4d0c8}
html[data-theme="dark"] .full-description,html[data-theme="dark"] .feature-section{border-color:var(--line)}
html[data-theme="dark"] #productSheet .secondary-button,html[data-theme="dark"] #checkoutSheet .secondary-button,html[data-theme="dark"] #authSheet .secondary-button,html[data-theme="dark"] #accountSheet .secondary-button{background:#26362d;border-color:#46594c;color:#e1eee5}
html[data-theme="dark"] #productSheet .secondary-button:hover,html[data-theme="dark"] #checkoutSheet .secondary-button:hover,html[data-theme="dark"] #authSheet .secondary-button:hover,html[data-theme="dark"] #accountSheet .secondary-button:hover{background:#34483b;color:#fff}

/* Sign-in, checkout, account, and customer resources */
html[data-theme="dark"] .auth-product-context{background:#20372a;border-color:#355a42;color:#edf4ef}
html[data-theme="dark"] .auth-product-context span,html[data-theme="dark"] .auth-product-context small{color:#c4d0c8}
html[data-theme="dark"] .auth-switch{background:#202c25;border-color:var(--line)}
html[data-theme="dark"] .auth-switch button{color:#c4d0c8}
html[data-theme="dark"] .auth-switch button.is-active{background:#34483b;color:#f3fbf5;box-shadow:0 2px 8px rgba(0,0,0,.24)}
html[data-theme="dark"] .summary-box,html[data-theme="dark"] .payment-box{background:#202c25;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .summary-row,html[data-theme="dark"] .payment-steps li{border-color:var(--line);color:#d7e3db}
html[data-theme="dark"] .account-header{background:#1b2921;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .account-tabs{background:#202c25;border-color:var(--line)}
html[data-theme="dark"] .account-tabs button{color:#c4d0c8}
html[data-theme="dark"] .account-tabs button.is-active{background:#34483b;color:#f3fbf5}
html[data-theme="dark"] .resource-card,html[data-theme="dark"] .resource-empty,html[data-theme="dark"] .order-card,html[data-theme="dark"] .entitlement-card{background:#1b2520;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .resource-cover,html[data-theme="dark"] .resource-cover-placeholder{background:#202c25;color:#a9dfb9}
html[data-theme="dark"] .purchase-details,html[data-theme="dark"] .purchase-detail-row,html[data-theme="dark"] .resource-guide{background:#202c25;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .resource-title-row p,html[data-theme="dark"] .resource-meta{color:#c4d0c8}
html[data-theme="dark"] .resource-access{background:#26362d;color:#cde5d4;border-color:var(--line)}
html[data-theme="dark"] .version-badge{background:#26362d;color:#dce9e0}
html[data-theme="dark"] .mobile-tabbar{background:rgba(25,36,30,.97);border-color:var(--line)}
html[data-theme="dark"] .mobile-tabbar button{color:#c4d0c8}
html[data-theme="dark"] .mobile-tabbar button.is-active{background:#34483b;color:#f3fbf5}
html[data-theme="dark"] .inline-contacts a{background:#202c25;border-color:var(--line);color:#dce9e0}
html[data-theme="dark"] .notice{background:#20372a;border-color:#355a42;color:#d5f0df}
html[data-theme="dark"] .danger-notice{background:#3a2428;border-color:#684047;color:#f0c4c8}
html[data-theme="dark"] .status-pending{background:#3b3020;color:#f4d18e}
html[data-theme="dark"] .status-paid,html[data-theme="dark"] .status-fulfilled{background:#1f3b2c;color:#a9dfb9}
html[data-theme="dark"] .status-cancelled,html[data-theme="dark"] .status-refunded{background:#45272a;color:#f0b8bd}
html[data-theme="dark"] .qr-shell,html[data-theme="dark"] .lightbox img{background:#fff}

/* Administration panels and table controls */
html[data-theme="dark"] .admin-app{background:#111815;color:var(--text)}
html[data-theme="dark"] #adminApp .admin-sidebar,html[data-theme="dark"] #adminApp .admin-topbar,html[data-theme="dark"] #adminApp .admin-content{background:#17211c;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] #adminApp .admin-panel,html[data-theme="dark"] #adminApp .metric-card,html[data-theme="dark"] #adminApp .admin-system-details,html[data-theme="dark"] #adminApp .admin-system-details .admin-panel{background:#1b2520;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] #adminApp .health-card,html[data-theme="dark"] #adminApp .admin-product-row,html[data-theme="dark"] #adminApp .admin-notice,html[data-theme="dark"] #adminApp .config-tile{background:#202c25;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] #adminApp .config-tile:hover{background:#293a30}
html[data-theme="dark"] #adminApp .admin-nav button{color:#c4d0c8}
html[data-theme="dark"] #adminApp .admin-nav button:hover,html[data-theme="dark"] #adminApp .admin-nav button.is-active{background:#294033;color:#e4f3e9}
html[data-theme="dark"] #adminApp .admin-sidebar-footer button,html[data-theme="dark"] #adminApp .small-button,html[data-theme="dark"] .nexus-menu-button,html[data-theme="dark"] .nexus-drawer-close,html[data-theme="dark"] .admin-notify-button{background:#26362d;border-color:#46594c;color:#dce9e0}
html[data-theme="dark"] #adminApp .small-button.primary{background:#28724f;border-color:#28724f;color:#fff}
html[data-theme="dark"] .admin-system-details .admin-panel{background:#202c25}
html[data-theme="dark"] .data-table th{background:#26362d;color:#dce9e0}
html[data-theme="dark"] .data-table tbody tr:hover{background:#26362d}
html[data-theme="dark"] .data-table tbody tr:hover td{background:#26362d;color:var(--text)}
html[data-theme="dark"] .mobile-admin-nav{background:rgba(25,36,30,.97);border-color:var(--line)}
html[data-theme="dark"] .mobile-admin-nav button{color:#c4d0c8}
html[data-theme="dark"] .mobile-admin-nav button.is-active{background:#34483b;color:#f3fbf5}
html[data-theme="dark"] .nexus-store-rail nav button.is-active,html[data-theme="dark"] .nexus-store-rail nav button:hover{background:#294033;color:#e4f3e9}
html[data-theme="dark"] .nexus-rail-help button{background:#293830;color:#d9eee0}
html[data-theme="dark"] .secondary-button:hover{background:#34483b;color:#fff;border-color:#597262}

/* FAQ panel: clearer separation and easier reading in dark mode */
html[data-theme="dark"] #policies .faq-list{background:#202c25;border:1px solid rgba(220,237,225,.24);border-radius:14px}
html[data-theme="dark"] #policies .faq-list details{border-color:rgba(220,237,225,.22)}
html[data-theme="dark"] #policies .faq-list summary{color:#f3faf5;font-size:16px;line-height:1.5;font-weight:650;padding-top:21px;padding-bottom:21px}
html[data-theme="dark"] #policies .faq-list summary:hover,html[data-theme="dark"] #policies .faq-list details[open] summary{color:#b9e8c6}
html[data-theme="dark"] #policies .faq-list summary:after{color:#a9dfb9;font-size:20px}
html[data-theme="dark"] #policies .faq-list p{color:#d4dfd8;font-size:14px;line-height:1.85}
html[data-theme="dark"] #policies .faq-intro p{color:#d4dfd8;line-height:1.9}

@media(prefers-reduced-motion:no-preference){html[data-theme="dark"] .product-card,html[data-theme="dark"] .favorite-button,html[data-theme="dark"] .secondary-button{transition:background-color .2s,color .2s,border-color .2s,transform .2s,box-shadow .2s}}
