/* Store-compatible controls; scoped IZS palette tokens never recolor image pixels. */
:root[data-izs-theme]{--ap-deep:#252a30;--ap-paper:#f4f5f3;--ap-soft:#e9ebe6;--ap-dark-line:#636971;--ap-light-line:#c8ccc9;--ap-action:#fd6503;--ap-hover:#db5100;--ap-link:#b84400;--ap-on-deep:#ffab76;--ap-scale:1;font-size:calc(16px * var(--ap-scale));--ap-bg:var(--ap-paper);--ap-card:#fff;--ap-secondary:var(--ap-soft);--ap-text:#243039;--ap-muted:#52616b;--ap-border:var(--ap-light-line);--orange:var(--ap-action)}
:root[data-izs-theme="dark"]{--ap-bg:var(--ap-deep);--ap-card:var(--ap-deep);--ap-secondary:color-mix(in srgb,var(--ap-deep),white 7%);--ap-text:#f1f2ee;--ap-muted:#c3cbd0;--ap-border:var(--ap-dark-line);--ap-link:var(--ap-on-deep)}
:root[data-izs-background="night-blue"]{--ap-deep:#1f2c3c;--ap-paper:#f1f4f7;--ap-soft:#e6ebf0;--ap-dark-line:#5c6d82;--ap-light-line:#c6cfd8}
:root[data-izs-background="indigo"]{--ap-deep:#29283e;--ap-paper:#f3f2f7;--ap-soft:#eae7f0;--ap-dark-line:#6e6986;--ap-light-line:#cdc9d8}
:root[data-izs-background="forest"]{--ap-deep:#233731;--ap-paper:#f1f5f1;--ap-soft:#e5ede7;--ap-dark-line:#5b756b;--ap-light-line:#c4d2c8}
:root[data-izs-background="warm-charcoal"]{--ap-deep:#352d2a;--ap-paper:#f6f3ef;--ap-soft:#ede6df;--ap-dark-line:#7a6b62;--ap-light-line:#d3c9bf}
:root[data-izs-accent="turquoise"]{--ap-action:#2f6874;--ap-hover:#214b57;--ap-link:#2f6874;--ap-on-deep:#8bcad3}
:root[data-izs-accent="blue"]{--ap-action:#285fba;--ap-hover:#1d488e;--ap-link:#285fba;--ap-on-deep:#94baff}
:root[data-izs-accent="green"]{--ap-action:#28704c;--ap-hover:#1d5438;--ap-link:#28704c;--ap-on-deep:#90d7ae}
:root[data-izs-accent="violet"]{--ap-action:#7549a8;--ap-hover:#593680;--ap-link:#7549a8;--ap-on-deep:#cfadf7}
:root[data-izs-theme="dark"][data-izs-accent]{--ap-link:var(--ap-on-deep)}
:root[data-izs-text-size="large"]{--ap-scale:1.125}
:root[data-izs-text-size="larger"]{--ap-scale:1.25}
html[data-izs-theme] body{background:var(--ap-bg);color:var(--ap-text);font-size:1.0625rem}
html[data-izs-theme] :is(.header,.header .mobile-menu,.light-section,.industries,.catalog-content,.site-footer,.concept-intro,.process-page-top,.process-detail,.process-story,.story-copy,.boundary-section,.project-questions){background:var(--ap-bg);color:var(--ap-text);border-color:var(--ap-border)}
html[data-izs-theme] :is(.header .brand span,.header .desktop-nav a,.header .menu-button,.header .mobile-menu a){color:var(--ap-text)}
html[data-izs-theme] .header .brand,html[data-izs-theme] .site-footer .brand{color:#fd6503}
html[data-izs-theme] :is(.page-hero .lead,.catalog-summary,.catalog-home-intro,.catalog-source-caption,.breadcrumb,.section-head p,.process>div>p,.process-step p,.industry-task p,.story-copy p,.concept-intro-copy p,.project-questions p,.boundary-section p,.site-footer p,.site-footer h2,.site-footer-bottom,.footer-document-note,.industry-visual figcaption){color:var(--ap-muted)}
html[data-izs-theme] :is(.catalog-summary b,.path-strip strong,.product-card h3,.catalog-section>h2,.industry-task h3,.story-copy h2,.process-detail h2,.process-step h3){color:var(--ap-text)}
html[data-izs-theme] :is(.catalog-group-card,.catalog-home .catalog-group-card,.industry-group-card,.task-card,.industry-feature,.industry-no-kit,.catalog-source-note,.catalog-card-source,.product-copy-warnings,.industry-safety-note){background:var(--ap-card);color:var(--ap-text);border-color:var(--ap-border)}
html[data-izs-theme] :is(.catalog-group-copy p,.catalog-group-copy small,.catalog-home .catalog-group-copy p,.catalog-home .catalog-group-copy small,.industry-group-card p,.industry-group-card small,.task-card p,.task-card .index,.industry-feature p,.product-card>p,.catalog-sku,.product-category,.editor-note,.catalog-evidence,.catalog-search-row label,.catalog-view-all,.catalog-source-note,.catalog-card-source){color:var(--ap-muted)}
html[data-izs-theme] :is(.catalog-group-copy h3,.catalog-group-action,.catalog-group-copy h3>span,.industry-category-links>a,.product-bottom .text-link,.catalog-card-source strong,.catalog-source-note strong){color:var(--ap-text)}
html[data-izs-theme] :is(.product-card,.industry-list,.industry-choice,.process-steps,.process-step,.catalog-subgroups .filter,.industry-category-links>a,.spec-row,.product-copy-specs>div,.catalog-source-table th,.catalog-source-table td,.site-footer-bottom){border-color:var(--ap-border)}
html[data-izs-theme] :is(.filter,.industry-choice,.industry-extra button,.pill){color:var(--ap-text);border-color:var(--ap-border);background:transparent}
html[data-izs-theme] :is(.filter.active,.filter:hover,.industry-choice.active){background:var(--ap-secondary);color:var(--ap-link);border-color:var(--ap-link)}
html[data-izs-theme] :is(.catalog-search,.catalog-search-row .catalog-search,input:not([type="radio"]):not([type="checkbox"]),select,textarea){color:var(--ap-text);background:var(--ap-card);border-color:var(--ap-border)}
html[data-izs-theme] :is(input,textarea)::placeholder{color:var(--ap-muted);opacity:1}
html[data-izs-theme] :is(.text-link,.catalog-source-note a,.catalog-card-source a,.clothing-note-v40 a,.product-copy-documents a,.footer-contact-link:hover){color:var(--ap-link)}
html[data-izs-theme] :is(.button,.button.secondary,.button.light,.add-button,.quantity button:not(.remove),.appearance-done,.appearance-sample-button){background:var(--ap-action);border-color:var(--ap-action);color:#fff}
html[data-izs-theme] :is(.button,.add-button,.appearance-done):hover{background:var(--ap-hover);border-color:var(--ap-hover)}
html[data-izs-accent="orange"] :is(.button,.button.secondary,.button.light,.add-button,.quantity button:not(.remove),.appearance-done,.appearance-sample-button){color:#211b16}
html[data-izs-theme] :is(button,a,input,select,textarea):focus-visible{outline-color:var(--ap-link)}
html[data-izs-theme] .cta{background:var(--ap-action);color:#fff}
html[data-izs-accent="orange"] .cta{color:#211b16}
html[data-izs-theme] .cta .button{background:var(--ap-deep);color:#fff;border-color:#fff}
html[data-izs-theme] .hero-playback{background:var(--ap-secondary);border-color:var(--ap-border);color:var(--ap-muted)}
html[data-izs-theme] :is(.hero-playback-button,.hero-step){color:var(--ap-text);border-color:var(--ap-border)}
/* Image stages and scenic overlays deliberately retain their original colors. */
html[data-izs-theme] dialog{color:var(--ap-text);background:var(--ap-card)}
html[data-izs-theme] dialog :is(.close,.appearance-close){color:var(--ap-text)}
html[data-izs-theme] :is(.detail-copy p,.product-copy-final .product-copy-section h3,.product-copy-specs dt,.product-copy-regulatory-note,.product-copy-documents,.clothing-note-v40,.product-concept-note,.product-visual-caption,.studio-photo-note,#about-dialog p,.enquiry-header p,.enquiry-fields label,.enquiry-contact-note,.enquiry-footer p,.scene-dialog-kicker,#scene-dialog .scene-detail-description,#scene-dialog .scene-product p,#scene-dialog .scene-detail-note){color:var(--ap-muted)}
html[data-izs-theme] :is(.product-copy-specs dd,.spec-row strong,.product-copy-final h2,.catalog-detail h3){color:var(--ap-text)}
html[data-izs-theme] :is(.product-copy-warnings,.clothing-limit-v40,.catalog-source-table th,.selection-item){background:var(--ap-secondary);border-color:var(--ap-border)}
html[data-izs-theme] .catalog-source-table td{color:var(--ap-text);background:var(--ap-card)}
html[data-izs-theme] .enquiry-status:not(.error):not(.success),html[data-izs-theme] .enquiry-availability{background:var(--ap-secondary);color:var(--ap-text)}
html[data-izs-theme] .enquiry-availability a{color:var(--ap-link)}
/* Scale reading copy, not photograph pixels or fixed scene coordinates. */
html[data-izs-theme] :is(.product-card>p,.detail-copy p,.product-copy-final li,.catalog-description p,.industry-group-card p,.industry-feature p,.catalog-group-copy p,.process-step p,.editor-note,.enquiry-status){font-size:1rem}
html[data-izs-theme] :is(.catalog-sku,.product-category,.catalog-group-copy small,.product-concept-card-note,.product-copy-regulatory-note,.clothing-note-v40,.product-concept-note,.studio-photo-note,.site-footer p,.site-footer a,.footer-document-note,.site-footer-bottom){font-size:.875rem}
html[data-izs-theme] :is(.catalog-product h3,.catalog-group-copy h3,.industry-group-card h3){font-size:1.45rem}
html[data-izs-theme] :is(.button,.text-link,.filter,.catalog-search,.catalog-evidence,.enquiry-fields input,.enquiry-fields select,.enquiry-fields textarea){font-size:1rem}
html[data-izs-theme] .product-card>p{-webkit-line-clamp:unset;max-width:none;min-height:0}
html[data-izs-theme] .header{grid-template-columns:minmax(0,1fr) auto auto}
.appearance-open{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;height:44px;padding:8px;border:0;border-radius:9px;background:transparent;color:var(--ap-text);flex-shrink:0;justify-self:end}
.appearance-open svg{width:24px;height:24px;flex-shrink:0}
.appearance-open:hover{background:var(--ap-secondary)}
.appearance-open-mobile{display:none}
#appearance-dialog{width:min(620px,calc(100vw - 32px));max-width:none;max-height:min(92dvh,1000px);padding:28px;border:1px solid var(--ap-border);border-radius:20px;box-shadow:0 24px 100px #0005;font-size:1rem;line-height:1.5}
#appearance-dialog:not([open]){display:none}
#appearance-dialog .appearance-heading{padding-right:30px;margin-bottom:24px}
#appearance-dialog h2{font-size:1.6rem;line-height:1.3;margin-bottom:7px;letter-spacing:-.03em}
#appearance-dialog .appearance-heading p{font-size:.95rem;color:var(--ap-muted)}
.appearance-close{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;border-radius:8px;background:none;font-size:30px;line-height:1}
#appearance-dialog fieldset{padding:0;margin:0 0 24px;border:0;min-width:0}
#appearance-dialog legend{font-size:1rem;font-weight:600;margin:0 0 12px}
.appearance-modes,.appearance-text-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.appearance-mode{display:grid;gap:10px;padding:10px;border:1px solid var(--ap-border);border-radius:12px;cursor:pointer;min-width:0}
.appearance-mode:has(input:checked),.appearance-text:has(input:checked){border-color:var(--ap-link);box-shadow:0 0 0 1px var(--ap-link);background:var(--ap-secondary)}
.appearance-mode:has(:focus-visible),.appearance-text:has(:focus-visible),.appearance-swatch:has(:focus-visible){outline:2px solid var(--ap-link);outline-offset:3px}
.appearance-mode-preview{position:relative;height:66px;padding:12px 12px 10px 30%;border:1px solid #c7d1d1;border-radius:6px;background:#f5f8f7;overflow:hidden}
.appearance-mode-preview>span{position:absolute;inset:0 auto 0 0;width:23%;background:#dbe6e3}
.appearance-mode-preview i{display:block;height:4px;margin-bottom:7px;width:85%;background:#b3c4c4;border-radius:2px}.appearance-mode-preview i+i{width:55%}
.appearance-mode-preview b{display:block;width:40%;height:12px;border-radius:2px;background:var(--ap-action)}
.appearance-mode-preview.mode-dark{background:#19282e;border-color:#34494e}.mode-dark>span{background:#0f1d22}.mode-dark i{background:#647d86}
.appearance-mode-preview.mode-system{background:linear-gradient(90deg,#f5f8f7 50%,#19282e 50%)}
.appearance-option-caption{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0;font-size:.875rem;overflow-wrap:anywhere}
#appearance-dialog input{accent-color:var(--ap-action);flex-shrink:0;width:18px;height:18px;margin:0;cursor:pointer}
.appearance-accents,.appearance-backgrounds{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.appearance-swatch{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;padding:8px 2px;border-radius:10px;font-size:.8rem;text-align:center;overflow-wrap:anywhere;min-width:0}
.appearance-swatch:has(input:checked){background:var(--ap-secondary);font-weight:600}
.appearance-swatch input{position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0}
.appearance-color{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--swatch);color:#fff}
.appearance-swatch:has(input:checked) .appearance-color:after{content:'✓';font-size:22px;font-weight:bold;text-shadow:0 1px 3px #000}
.appearance-background .appearance-color{width:49px;height:40px;border-radius:8px;border-bottom:8px solid var(--swatch-light)}
.appearance-text{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 8px;border:1px solid var(--ap-border);border-radius:10px;min-height:44px;font-size:.875rem;cursor:pointer}
.appearance-motion{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;cursor:pointer}
.appearance-motion strong{display:block;font-size:1rem}.appearance-motion small{display:block;font-size:.875rem;color:var(--ap-muted);margin-top:4px}
#appearance-dialog .appearance-motion input{width:22px;height:22px}
.appearance-sample{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;background:var(--ap-bg);border:1px solid var(--ap-border);border-radius:12px}
.appearance-sample strong{display:block;font-size:1rem}.appearance-sample div>span{font-size:.75rem;color:var(--ap-muted)}.appearance-sample p{font-size:.875rem;color:var(--ap-muted);margin-top:4px}
.appearance-sample-button,.appearance-done{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;background:var(--ap-action);border:1px solid var(--ap-action);color:#fff;border-radius:10px;font-size:1rem;font-weight:600;white-space:nowrap}
#appearance-dialog .appearance-note{margin:10px 0 0;font-size:.875rem;line-height:1.5;color:var(--ap-muted)}
.appearance-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;margin-top:18px;border-top:1px solid var(--ap-border)}
.appearance-footer button[data-appearance-reset]{background:none;border:0;padding:8px 0;min-height:44px;font-size:.875rem;color:var(--ap-muted)}
html[data-izs-reduced-motion="true"] *,html[data-izs-reduced-motion="true"] *:before,html[data-izs-reduced-motion="true"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-izs-reduced-motion="true"] :is(.catalog-group-card:hover,.product-photo:hover img){transform:none!important}
@media(max-width:1400px){html[data-izs-theme] .header{display:flex}.header .desktop-nav{display:none}.header .menu-button{display:block;margin-left:0}.header .appearance-open-desktop{margin-left:auto}.header .mobile-menu:not([hidden]){display:block;position:absolute;top:100%;right:4.3%;width:min(340px,91.4%);max-height:calc(100dvh - 88px);overflow:auto;padding:12px;border:1px solid var(--ap-border);border-radius:0 0 12px 12px;box-shadow:0 14px 30px #17191b29}}
@media(max-width:639px){.header .appearance-open-desktop{display:none}.header .menu-button{margin-left:auto}.header .appearance-open-mobile{display:flex;width:100%;justify-content:flex-start;height:auto;min-height:48px;font-size:1rem;border-top:1px solid var(--ap-border);border-radius:0;margin-top:10px;padding:15px 12px}.header .brand{max-width:calc(100% - 62px)}
#appearance-dialog{padding:22px 16px;border-radius:16px}.appearance-modes{gap:6px}.appearance-mode{padding:7px}.appearance-option-caption{flex-wrap:wrap}.appearance-mode-preview{height:58px}.appearance-accents,.appearance-backgrounds{grid-template-columns:repeat(3,minmax(0,1fr))}.appearance-text-options{grid-template-columns:1fr;gap:8px}.appearance-text{justify-content:flex-start;padding-inline:14px}.appearance-sample{align-items:flex-start;flex-direction:column}}
@media(max-width:639px){.appearance-option-caption{font-size:.75rem;overflow-wrap:normal;flex-direction:column;align-items:flex-start}.appearance-swatch{font-size:.75rem;overflow-wrap:normal}}
@media(max-width:359px){.appearance-modes{grid-template-columns:1fr}.appearance-mode{grid-template-columns:72px 1fr;align-items:center}.appearance-option-caption{flex-direction:row;align-items:center}}
/* Keep scene captions readable independently of the visitor's light/dark surface. */
html[data-izs-theme] .scene-heading h1{color:#f4f1eb}
html[data-izs-theme] .scene-heading h1 .hero-accent{color:var(--ap-on-deep)}
html[data-izs-theme] .story-image-cta{color:#fff}
html[data-izs-theme] :is(.site-footer nav a,.footer-contact-link,.site-footer .footer-phone){color:var(--ap-text)}
html[data-izs-theme] .cta p{color:inherit}
html[data-izs-theme] :is(.scene-rail,.scene-access,.catalog-source-table caption){background:var(--ap-secondary);color:var(--ap-text);border-color:var(--ap-border)}
html[data-izs-theme] :is(.scene-tab,.scene-access-list button,.scene-access-hint){color:var(--ap-muted);border-color:var(--ap-border)}
html[data-izs-theme] :is(.scene-tab.active,.scene-tab:hover){color:var(--ap-text);background:var(--ap-card)}
html[data-izs-theme] :is(.scene-tab.active .scene-tab-number,.scene-tab-arrow,.scene-access-hint i,.scene-access-list button b,.concept-intro h2 em){color:var(--ap-link)}
html[data-izs-theme] .point-core{background:var(--ap-action);border-color:var(--ap-on-deep)}
html[data-izs-accent="orange"] .point-core{color:#211b16}
html[data-izs-reduced-motion="true"] .story-image:hover>img{transform:none!important}
html[data-izs-theme] :is(.product-copy-specs,.catalog-source-table table,.catalog-table-note,.product-copy-documents,.spec-row,.enquiry-contact-note,.enquiry-footer p){font-size:.875rem}
html[data-izs-theme] .desktop-nav a{font-size:.9375rem}
html[data-izs-theme] .mobile-menu a{font-size:1rem}
html[data-izs-theme] :is(.visual-card,.portal-link,.material-card){background:var(--ap-card);color:var(--ap-text);border-color:var(--ap-border)}
html[data-izs-theme] :is(.visual-card p,.portal-link p,.material-card p,.collection-stats span,.visual-count,.visual-disclosure,.visual-detail-image figcaption,.viewer-help){color:var(--ap-muted);font-size:.9375rem}
html[data-izs-theme] .collection-stats b{color:var(--ap-text)}
html[data-izs-theme] .visual-filter{color:var(--ap-text);border-color:var(--ap-border);font-size:.9375rem}
html[data-izs-theme] .visual-filter.active{color:var(--ap-link);background:var(--ap-secondary);border-color:var(--ap-link)}
html[data-izs-theme] :is(.visual-preview,.visual-filters,.visual-pagination){border-color:var(--ap-border)}
html[data-izs-theme] .product-gallery button[aria-pressed=true]{border-color:var(--ap-link)}
