/* Shared public appearance; photographs and logos retain their original colors. */
:root{--qa-paper:#f4f7fb;--qa-ink:#17283e;--qa-muted:#405a7c;--qa-panel:rgba(255,255,255,.86);--qa-edge:rgba(255,255,255,.8);--qa-hover:#e4edff;--qa-blue:#086be8;--qa-scrim:calc((1 - var(--qw-strength,.56)) * .95)}
html[data-qn-theme=dark]{color-scheme:dark;--qa-paper:#101827;--qa-ink:#e7eef9;--qa-muted:#b5c4dc;--qa-panel:rgba(24,37,58,.92);--qa-edge:#36465e;--qa-hover:#293c59;--qa-blue:#85b8ff;--qa-scrim:calc(.72 + (1 - var(--qw-strength,.56)) * .28);--ink:#e7eef9;--muted:#b5c4dc;--line:#36465e;--glass:rgba(24,37,58,.88)}
body:has([data-global-navigation]){isolation:isolate}
body:has([data-global-navigation])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--qa-paper);opacity:var(--qa-scrim)}
/* Glasswork owns the wallpaper on every page except the home, which keeps
 * its own photograph + scrim. The flat ::after scrim would wash the glass out. */
body:has([data-global-navigation]):not(.qh-home)::after{display:none}
.qh-home .qh-scene{opacity:var(--qw-strength,.56)}
.qn-theme-toggle{display:flex;align-items:center;gap:2px;padding:3px;border-radius:26px;background:#dfe7f080;flex-shrink:0}
.qn-theme-toggle button,.qn-theme-cycle{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--qa-muted);cursor:pointer;padding:0;transition:color 180ms,background-color 180ms,box-shadow 180ms}
.qn-theme-toggle svg,.qn-theme-cycle svg{width:20px!important;height:20px!important;fill:none;stroke:currentColor}
.qn-theme-toggle button[aria-pressed=true]{background:var(--qa-panel);color:var(--qa-ink);box-shadow:0 0 0 2px #2983ff,inset 0 1px 1px var(--qa-edge)}
.qn-theme-toggle button:hover,.qn-theme-cycle:hover{color:var(--qa-blue);background:var(--qa-hover)}
.qn-theme-cycle{display:none;width:36px;height:36px;background:#ffffff69;color:var(--qa-ink)}
.qn-theme-moon{display:none}
/* The navigation filter now comes from the shared Glasswork material. A
 * second strength-driven blur here used to override it and forced every
 * plate to repaint while the slider was dragged. */
html[data-qn-theme=dark] .qn-theme-sun{display:none}html[data-qn-theme=dark] .qn-theme-moon{display:block}
.qn-appearance{position:relative}
.qn-header .qn-appearance-panel{--qn-rail-height:clamp(48px,calc(100dvh - 290px),176px);position:absolute;top:calc(100% + 14px);left:50%;right:auto;translate:-50% 0;width:56px;padding:14px 8px 10px;border-radius:29px;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--qa-ink);font-size:13px;background:var(--qa-panel);border-color:var(--qa-edge);overflow:visible}
.qn-appearance-panel::before{content:"";position:absolute;left:-8px;right:-66px;top:-16px;height:16px}
.qn-rail-label{font-size:13px;line-height:20px;font-weight:650;color:var(--qa-ink)}
.qn-vertical-control{position:relative;height:var(--qn-rail-height);width:28px;flex:none}
.qn-header .qn-appearance-panel input[type=range]{appearance:none;writing-mode:vertical-lr;direction:rtl;display:block;width:28px;height:100%;margin:0;padding:0;background:transparent;cursor:ns-resize;touch-action:none;accent-color:#1680f8}
.qn-appearance-panel input[type=range]::-webkit-slider-runnable-track{width:5px;height:100%;border-radius:5px;background:linear-gradient(to top,#e5eefb,#93c5fd 55%,#1680f8)}
.qn-appearance-panel input[type=range]::-webkit-slider-thumb{appearance:none;width:19px;height:19px;margin-left:-7px;border:3px solid #fff;border-radius:50%;background:#1680f8;box-shadow:0 2px 6px #11345b30}
.qn-appearance-panel input[type=range]::-moz-range-track{width:5px;height:100%;border-radius:5px;background:linear-gradient(to top,#e5eefb,#1680f8)}
.qn-appearance-panel input[type=range]::-moz-range-thumb{width:13px;height:13px;border:3px solid #fff;border-radius:50%;background:#1680f8}
.qn-appearance-panel output{position:absolute;left:calc(100% + 14px);bottom:calc(9.5px + (100% - 19px) * var(--qw-strength,.56));translate:0 50%;display:grid;place-items:center;min-width:54px;height:30px;padding:0 9px;border:1px solid var(--qa-edge);border-radius:18px;background:var(--qa-panel);box-shadow:0 3px 12px #365b7b12;backdrop-filter:blur(12px);font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--qa-ink);pointer-events:none}
.qn-appearance-panel [data-qn-appearance-status]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.qn-theme-toggle button:focus-visible,.qn-theme-cycle:focus-visible,.qn-appearance-panel input:focus-visible{outline:2px solid #2983ff;outline-offset:4px}
/* Neutral surfaces and ink for the existing public page families. */
html[data-qn-theme=dark] body:has([data-global-navigation]){background-color:var(--qa-paper)!important;color:var(--qa-ink);--studio-secondary:#b5c4dc}
html[data-qn-theme=dark] .qn-header.sf-header,html[data-qn-theme=dark] .qn-panel{background:var(--qa-panel)!important;color:var(--qa-ink)!important;border-color:var(--qa-edge)!important;box-shadow:0 12px 32px #0003,inset 0 1px 1px #ffffff12}
html[data-qn-theme=dark] .qn-header :is(.qn-brand,.qn-link,.qn-language-label,.sf-icon-link),html[data-qn-theme=dark] .qn-panel :is(a,button,h2,h3,strong){color:var(--qa-ink)}
html[data-qn-theme=dark] .qn-header :is(.qn-search,.sf-icon-link,.qn-currency,.qn-theme-cycle){background:#26364e;color:var(--qa-ink);border-color:var(--qa-edge);box-shadow:none}
html[data-qn-theme=dark] .qn-header input{color:var(--qa-ink)}html[data-qn-theme=dark] .qn-header input::placeholder{color:var(--qa-muted)}
html[data-qn-theme=dark] .qn-header .qn-brand{color:var(--qa-ink)!important}
html[data-qn-theme=dark] #main :is(h1,h2,h3,h4){color:var(--qa-ink)}
html[data-qn-theme=dark] .sf-trust svg{color:#bad4f7!important}
html[data-qn-theme=dark] .sf-orders-content{background:var(--qa-panel)!important;border-color:var(--qa-edge)!important}
html[data-qn-theme=dark] :is(.sf-order-tabs a,.sf-orders-heading input,.sf-orders-heading select,.tc-controls form,.tc-controls>nav>a,.tc-sidebar a[aria-current]){background:#24354e!important;color:var(--qa-ink)!important;border-color:var(--qa-edge)!important}
html[data-qn-theme=dark] :is(.sf-order-tabs a[aria-current],.tc-controls>nav>a[aria-current],.tc-sidebar a[aria-current]){background:#244b7a!important;color:#d5e8ff!important}
html[data-qn-theme=dark] :is(.sf-order-card p,.sf-order-card small,.sf-order-card time,.sf-orders-sidebar small,.sf-sidebar-store,.tc-card small,.tc-benefits small,.tc-feedback small){color:var(--qa-muted)!important}
html[data-qn-theme=dark] .qn-header :is(.qn-link[aria-current=page],.qn-tool-groups>a[aria-current=true],.qn-search-results a:hover,.qn-account-panel a:hover,.qn-language-panel button:hover,.qn-language-panel button[aria-current=true]){background:var(--qa-hover);color:var(--qa-blue)}
html[data-qn-theme=dark] .qn-panel :is(small,p){color:var(--qa-muted)}
html[data-qn-theme=dark] :is(.qn-tool-banner,.qn-tool-card,.qn-store-footer>a,.qn-recommendations a,.qn-category-icon){background:#20324b;border-color:var(--qa-edge)}
html[data-qn-theme=dark] .qn-tools[open]>summary::after,html[data-qn-theme=dark] .qn-store[open]>summary::after{background:#18253a;border-color:var(--qa-edge)}
html[data-qn-theme=dark] :is(.sf-purchase,.sf-product,.sf-trust,.sf-dialog,.sf-cart-panel,.sf-orders-sidebar,.sf-orders-main,.sf-order-card,.sf-order-product,.sf-delivery-card,.sf-guide-card,.sf-help-card,.sf-progress,.sf-workspace-content,.sf-sort-options,.sf-sort-menu>summary,.tc-sidebar,.tc-main,.tc-card,.tc-membership,.tc-bottom,.qh-tool,.qh-hero-copy,.qh-featured,.surface,.settings-card,.checkout-card,.shop-detail,.shop-form,.shop-panel,.auth-card,.legal){background:var(--qa-panel)!important;color:var(--qa-ink)!important;border-color:var(--qa-edge)!important;box-shadow:0 10px 28px #0002}
html[data-qn-theme=dark] :is(.sf-description,.sf-purchase-heading p,.sf-product>span,.sf-product>small,.sf-product-facts,.sf-stock-status,.sf-purchase-footer,.sf-payments>p,.sf-orders-heading p,.sf-order-meta,.sf-sidebar-user small,.sf-empty p,.tc-main p,.tc-card p,.tc-sidebar p,.qh-home p,.member-page .panel-title p,.member-page .muted,.shop-summary,.shop-meta){color:var(--qa-muted)!important}
html[data-qn-theme=dark] :is(.sf-purchase,.sf-dialog,.sf-cart-panel,.sf-orders-main,.shop-shell,.account-panel,.tc-main) :is(h1,h2,h3,h4,label,legend,strong){color:var(--qa-ink)}
html[data-qn-theme=dark] :is(.sf-plans input+span,.sf-quantity,.sf-quantity input,.sf-payments>div>span,.sf-product-facts>span,.sf-product-facts>a,.sf-button-secondary,.sf-categories>button,.sf-categories>a,.sf-tab,.sf-status-tabs a,.sf-order-actions>a,.sf-help-card a,.settings-row,.tc-controls input,.tc-controls select,.tc-filters>a,.shop-plan>span,.shop-quantity,.m-button.soft){background:#24354e!important;border-color:#405471!important;color:var(--qa-ink)!important}
html[data-qn-theme=dark] :is(.sf-categories>a[aria-current=page],.sf-plans input:checked+span,.sf-orders-sidebar a[aria-current=page],.sf-status-tabs a[aria-current=page]){background:#244b7a!important;border-color:#75b0ff!important;color:#e8f2ff!important}
html[data-qn-theme=dark] .sf-product[data-selected=true]{background:#213b54!important}
html[data-qn-theme=dark] :is(.sf-total>strong,.sf-cart-total strong,.sf-order-price,.tc-heading-note strong){color:#85b8ff}
html[data-qn-theme=dark] :is(.tc-benefits,.tc-feedback,.qh-home .qh-secondary,.member-page .settings-form input,.member-page .settings-form select,.member-page .settings-form textarea,.legacy-public-page .input){background:#1c2c43;color:var(--qa-ink);border-color:var(--qa-edge)}
html[data-qn-theme=dark] .qh-scene{opacity:calc(var(--qw-strength,.56) * .28)}
html[data-qn-theme=dark] .qh-home .qh-hero{background:#101827}
html[data-qn-theme=dark] .qh-home .qh-hero-copy{background:transparent!important;box-shadow:none!important}
html[data-qn-theme=dark] .qh-home .qh-hero h1 em,html[data-qn-theme=dark] .qh-home .qh-section-heading a{color:var(--qa-blue)}
html[data-qn-theme=dark] .qh-home :is(.qh-stats span,.qh-stats small,.qh-tool small,.qh-benefits){color:var(--qa-muted)!important}
html[data-qn-theme=dark] .qh-counts dt{color:var(--qa-muted)}html[data-qn-theme=dark] .qh-counts dd{color:var(--qa-blue)}
html[data-qn-theme=dark] .enhanced-footer{background:var(--qa-panel);border-color:var(--qa-edge)}html[data-qn-theme=dark] .enhanced-footer :is(a,p,small){color:var(--qa-muted)!important}html[data-qn-theme=dark] .enhanced-footer :is(h2,h3,strong,.footer-brand){color:var(--qa-ink)!important}
html[data-qn-theme=dark] .site-mobile-dock{background:rgba(20,27,48,.82);border-color:#ffffff24;color:var(--qa-ink);box-shadow:0 14px 36px #0006,0 3px 10px #0003,inset 0 1px 2px #ffffff12;backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3)}
html[data-qn-theme=dark] .site-mobile-dock>a{color:#93a6c4}
html[data-qn-theme=dark] .site-mobile-dock>a[aria-current=page]{color:#f2f7ff}
html[data-qn-theme=dark] .site-mobile-dock>.site-dock-create{background:transparent}
html[data-qn-theme=dark] .site-dock-create>span{box-shadow:inset 0 1px 2px #ffffff8c,0 8px 20px #1677ff63,0 0 0 6px #ffffff14}
/* Dark material, wallpaper presence and refraction are owned by
 * glasswork-night.css / glasswork.js. The three overrides that used to live
 * here pinned the wallpaper to ~12% opacity, forced --qw-floor:.78 and set
 * --glass-lens:none, which made every dark page an opaque flat card. */
html[data-qn-theme=dark] .ai-image-page .glass-studio{--studio-surface:rgba(24,37,58,.84);--studio-raised:rgba(32,49,73,.92);--studio-edge:#405471;--studio-secondary:#b5c4dc}
html[data-qn-theme=dark] .ai-image-page .glass-studio :is(h1,h2,h3,p,strong,button){color:var(--qa-ink)}
html[data-qn-theme=dark] .ai-image-page .glass-studio-model-icon{background:#f1f6fd}
@media(max-width:1440px){.qn-theme-toggle{display:none}.qn-theme-cycle{display:grid}.qn-actions{gap:10px}}
@media(max-width:600px){.qn-actions{gap:6px}.qn-theme-cycle{width:33px;height:33px}.qn-language-label>span{display:none}}
@media(prefers-reduced-motion:reduce){.qn-theme-toggle button,.qn-theme-cycle,.qn-appearance-themes button{transition:none}}
@media(forced-colors:active){.qn-theme-toggle button[aria-pressed=true],.qn-appearance-themes button[aria-pressed=true]{outline:2px solid Highlight;box-shadow:none}.qn-appearance-panel input[type=range]{appearance:auto}.qn-theme-cycle,.qn-appearance-panel{background:Canvas!important;color:CanvasText!important}}

html[data-qn-theme=dark] .qh-home .qh-hero::after{background:linear-gradient(90deg,rgba(16,24,39,.9),rgba(16,24,39,.65) 35%,transparent 80%)}
