:root{
  --mas-lm-surface:#f7f8f7;
  --mas-lm-surface-strong:#edf3ff;
  --mas-lm-flexbox-bg:#f7f8f7;
  --mas-lm-pdf-picker-container-bg:transparent;
  --mas-lm-paper:#ffffff;
  --mas-lm-text:#18201d;
  --mas-lm-styled-text:#2864dc;
  --mas-lm-brand-sign-text:#18201d;
  --mas-lm-muted:#596761;
  --mas-lm-border:#d5ddd8;
  --mas-lm-border-soft:#dfe4e1;
  --mas-lm-accent:#1953bd;
  --mas-lm-accent-hover:#103b8d;
  --mas-lm-focus:#0b57d0;
  --mas-lm-selection-text:#ffffff;
  --mas-lm-advert-bg:#f7f8f7;
  --mas-lm-advert-text:#65706b;
  --mas-lm-advert-border:#dfe4e1;
  --mas-lm-grid:#2864dc;
  --mas-dm-canvas:#071213;
  --mas-dm-surface:#081a19;
  --mas-dm-surface-strong:#0d1b19;
  --mas-dm-flexbox-bg:#0d1b19;
  --mas-dm-pdf-picker-container-bg:transparent;
  --mas-dm-paper:#ffffff;
  --mas-dm-text:#dffef7;
  --mas-dm-styled-text:#3ff0c5;
  --mas-dm-brand-sign-text:#dffef7;
  --mas-dm-muted:#86a29c;
  --mas-dm-border:#2a6258;
  --mas-dm-border-soft:#193331;
  --mas-dm-accent:#3ff0c5;
  --mas-dm-accent-hover:#77f7d8;
  --mas-dm-focus:#b8ffed;
  --mas-dm-button-bg:#3ff0c5;
  --mas-dm-button-text:#071513;
  --mas-dm-button-hover-bg:#77f7d8;
  --mas-dm-button-hover-text:#071513;
  --mas-dm-selection-text:#071513;
  --mas-dm-advert-bg:#0a1716;
  --mas-dm-advert-text:#6f9189;
  --mas-dm-advert-border:#203c37;
  --mas-dm-grid:#4affd7;
  --mas-toggle-light-bg:#fff;
  --mas-toggle-light-hover-bg:#f3f7f5;
  --mas-toggle-light-border:#cbd4d0;
  --mas-toggle-light-text:#34423d;
  --mas-toggle-light-track:#dfe6e2;
  --mas-toggle-light-thumb:#fff;
  --mas-toggle-light-icon:#2864dc;
  --mas-toggle-dark-bg:#081a19;
  --mas-toggle-dark-hover-bg:#0d2723;
  --mas-toggle-dark-border:#2a6258;
  --mas-toggle-dark-text:#dffef7;
  --mas-toggle-dark-track:#204b43;
  --mas-toggle-dark-thumb:#3ff0c5;
  --mas-toggle-dark-icon:#071513;
  --mas-toggle-height:44px;
  --mas-toggle-radius:10px;
  --mas-toggle-border-width:1px;
  --mas-toggle-track-width:38px;
  --mas-toggle-track-height:24px;
  --mas-toggle-track-radius:8px;
  --mas-toggle-thumb-size:18px;
  --mas-toggle-thumb-radius:6px;
  --mas-toggle-thumb-travel:14px;
  --mas-toggle-icon-size:12px;
  --mas-toggle-icon-stroke:1.8;
  --mas-toggle-label-size:12px;
  --mas-toggle-hover-scale:1.03;
}

html.mas-theme-dark{color-scheme:dark;background:var(--mas-dm-canvas)}
html.mas-theme-dark body{background:var(--mas-dm-canvas);color:var(--mas-dm-text)}
html.mas-theme-dark body,
html.mas-theme-dark .elementor,
html.mas-theme-dark .elementor-location-header,
html.mas-theme-dark .elementor-location-footer{
  --e-global-color-primary:var(--mas-dm-accent);
  --e-global-color-text:var(--mas-dm-text);
  --e-global-color-accent:var(--mas-dm-accent);
}

/* Page-level Elementor surfaces. Inner document sheets are deliberately excluded. */
html.mas-theme-dark .elementor > .e-con,
html.mas-theme-dark .elementor > .elementor-section,
html.mas-theme-dark .elementor-location-header .e-con,
html.mas-theme-dark .elementor-location-footer .e-con,
html.mas-theme-dark [class*="mas-pay-section-"],
html.mas-theme-dark [class*="mas-home-section-"],
html.mas-theme-dark [class*="mas-guide-section-"],
html.mas-theme-dark .mas-payment-header-home-match,
html.mas-theme-dark .mas-pay-home-header{
  background-color:var(--mas-dm-canvas)!important;
  border-color:var(--mas-dm-border-soft)!important;
}

html.mas-theme-dark [class*="mas-pay-section-"]:nth-of-type(even),
html.mas-theme-dark [class*="mas-home-section-"]:nth-of-type(even),
html.mas-theme-dark [class*="mas-guide-section-"]:nth-of-type(even){
  background-color:var(--mas-dm-surface)!important;
}

/* Purposefully coloured Flexbox panels use their own dark-mode setting. */
html.mas-theme-dark body .elementor .mas-two-starting-options .mas-existing-pdf,
html.mas-theme-dark body .elementor .mas-two-starting-options .mas-blank-pdf,
html.mas-theme-dark body .elementor .mas-dark-coloured-container{
  background-color:var(--mas-dm-flexbox-bg)!important;
}

/* The nearest Elementor Flexbox containing an Inkform picker has its own setting. */
html.mas-theme-dark body .elementor .mas-dark-pdf-picker-container{
  background-color:var(--mas-dm-pdf-picker-container-bg)!important;
  background-image:none!important;
}

/* Keep Inkform's transparent iframe canvas genuinely transparent in dark mode.
   Without an explicit scheme Chromium can paint the otherwise transparent frame
   canvas white, which makes the outside corners look square. */
html.mas-theme-dark body .elementor .mas-dark-pdf-picker-container iframe[data-inkform-frame="1"]{
  color-scheme:normal!important;
  background-color:transparent!important;
  background-image:none!important;
}

html.mas-theme-dark .elementor-widget-heading .elementor-heading-title,
html.mas-theme-dark .elementor-widget-text-editor,
html.mas-theme-dark .elementor-widget-icon-list .elementor-icon-list-text,
html.mas-theme-dark .elementor-widget-counter .elementor-counter-title,
html.mas-theme-dark .elementor-widget-counter .elementor-counter-number-wrapper{
  color:var(--mas-dm-text)!important;
}

html.mas-theme-dark .elementor-widget-text-editor p,
html.mas-theme-dark .elementor-widget-text-editor li,
html.mas-theme-dark .elementor-widget-text-editor small{
  color:inherit!important;
}

/* Nested words inherit their surrounding dark-mode role unless they have an intentional inline colour. */
html.mas-theme-dark body :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,legend,summary) :where(span,strong,em,b,i,small){
  color:inherit!important;
}

/* Inline emphasis inside links and buttons still follows the dedicated link/button setting. */
html.mas-theme-dark body :where(a,button) [style^="color:" i],
html.mas-theme-dark body :where(a,button) [style*=";color:" i],
html.mas-theme-dark body :where(a,button) [style*="; color:" i]{
  color:inherit!important;
}

/* Only the exact italic brand word “make” receives the saved styled-word colour. */
html.mas-theme-dark body .mas-brand-make{
  color:var(--mas-dm-styled-text)!important;
}

html.mas-theme-dark body .mas-brand-sign-text{
  color:var(--mas-dm-brand-sign-text)!important;
}

html.mas-theme-dark .elementor-widget-text-editor small,
html.mas-theme-dark [class*="__note"],
html.mas-theme-dark [class*="__hint"],
html.mas-theme-dark [class*="__caption"],
html.mas-theme-dark [class*="__subtitle"]{
  color:var(--mas-dm-muted)!important;
}

html.mas-theme-dark a:not(.elementor-button):not(.mas-theme-toggle){
  color:var(--mas-dm-accent);
  text-decoration-color:color-mix(in srgb,var(--mas-dm-accent) 55%,transparent);
  text-underline-offset:.18em;
}
html.mas-theme-dark a:not(.elementor-button):not(.mas-theme-toggle):hover{color:var(--mas-dm-accent-hover)}

html.mas-theme-dark .elementor-button,
html.mas-theme-dark a[class*="__cta"],
html.mas-theme-dark button[class*="__cta"]{
  background:var(--mas-dm-button-bg)!important;
  border-color:var(--mas-dm-button-bg)!important;
  color:var(--mas-dm-button-text)!important;
}
html.mas-theme-dark .elementor-button:hover,
html.mas-theme-dark a[class*="__cta"]:hover,
html.mas-theme-dark button[class*="__cta"]:hover{
  background:var(--mas-dm-button-hover-bg)!important;
  border-color:var(--mas-dm-button-hover-bg)!important;
  color:var(--mas-dm-button-hover-text)!important;
}

html.mas-theme-dark .elementor-widget-accordion .elementor-accordion-item,
html.mas-theme-dark .elementor-widget-toggle .elementor-toggle-item,
html.mas-theme-dark .elementor-widget-tabs .elementor-tab-content,
html.mas-theme-dark .elementor-widget-tabs .elementor-tab-title{
  border-color:var(--mas-dm-border)!important;
  background:var(--mas-dm-surface)!important;
}
html.mas-theme-dark .elementor-widget-accordion .elementor-tab-title,
html.mas-theme-dark .elementor-widget-toggle .elementor-tab-title,
html.mas-theme-dark .elementor-widget-accordion .elementor-tab-content,
html.mas-theme-dark .elementor-widget-toggle .elementor-tab-content{
  color:var(--mas-dm-text)!important;
}
html.mas-theme-dark .elementor-widget-accordion .elementor-accordion-icon,
html.mas-theme-dark .elementor-widget-toggle .elementor-toggle-icon{color:var(--mas-dm-accent)!important}

html.mas-theme-dark table,
html.mas-theme-dark th,
html.mas-theme-dark td{border-color:var(--mas-dm-border)!important}
html.mas-theme-dark th{background:var(--mas-dm-surface-strong)!important;color:var(--mas-dm-text)!important}
html.mas-theme-dark td{background:var(--mas-dm-surface)!important;color:var(--mas-dm-text)!important}

/* The saved grid setting covers the full page canvas and every top-level Elementor section. */
html.mas-theme-dark body.mas-blueprint-grid-on,
html.mas-theme-dark body.mas-blueprint-grid-on main:first-of-type,
html.mas-theme-dark body.mas-blueprint-grid-on.elementor-page > .elementor > .e-con,
html.mas-theme-dark body.mas-blueprint-grid-on.elementor-page > .elementor[data-elementor-type="wp-post"] > .e-con,
html.mas-theme-dark body.mas-blueprint-grid-on .mas-pay-section-01-purchase,
html.mas-theme-dark body.mas-blueprint-grid-on .mas-home-hero,
html.mas-theme-dark body.mas-blueprint-grid-on .mas-guide-hero{
  background-color:var(--mas-dm-canvas)!important;
  background-image:
    linear-gradient(color-mix(in srgb,var(--mas-dm-grid) 5%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--mas-dm-grid) 5%,transparent) 1px,transparent 1px)!important;
  background-size:42px 42px!important;
  background-position:0 0!important;
  background-attachment:fixed!important;
}

/* Animated examples become dark workspaces while PDF sheets stay white. */
html.mas-theme-dark .mas-download-demo,
html.mas-theme-dark .mas-build-demo,
html.mas-theme-dark .mas-flow,
html.mas-theme-dark .mas-edit-demo,
html.mas-theme-dark [class*="mas-lesson"],
html.mas-theme-dark [class*="mas-demo"]{
  color:var(--mas-dm-text);
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-download-demo__top,
html.mas-theme-dark .mas-download-demo__status,
html.mas-theme-dark .mas-edit-demo__bar,
html.mas-theme-dark .mas-edit-demo__tools,
html.mas-theme-dark [class*="mas-demo"] [class*="__top"],
html.mas-theme-dark [class*="mas-demo"] [class*="__status"]{
  background:var(--mas-dm-surface)!important;
  color:var(--mas-dm-text)!important;
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-download-demo__desk,
html.mas-theme-dark .mas-edit-demo__desk,
html.mas-theme-dark [class*="mas-demo"] [class*="__desk"],
html.mas-theme-dark [class*="mas-demo"] [class*="__stage"]{
  background:var(--mas-dm-surface-strong)!important;
}
html.mas-theme-dark .mas-download-demo__paper,
html.mas-theme-dark .mas-build-demo__paper,
html.mas-theme-dark .mas-edit-demo__paper,
html.mas-theme-dark [class*="mas-demo"] [class*="__paper"]{
  background:var(--mas-dm-paper)!important;
  color:#18201d!important;
  border-color:#d5dcd8!important;
}

/* The interactive form-demo controls use the saved dark-mode palette. */
html.mas-theme-dark .mas-build-demo__step{
  color:var(--mas-dm-text)!important;
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-build-demo__step:hover:not(:disabled){
  color:var(--mas-dm-accent-hover)!important;
  background:var(--mas-dm-surface)!important;
}
html.mas-theme-dark .mas-build-demo__step.is-active{
  color:var(--mas-dm-accent)!important;
}
html.mas-theme-dark .mas-build-demo__step.is-done{
  color:var(--mas-dm-text)!important;
  background:color-mix(in srgb,var(--mas-dm-accent) 18%,var(--mas-dm-surface))!important;
}
html.mas-theme-dark .mas-build-demo__arrow{
  color:var(--mas-dm-accent)!important;
  background:var(--mas-dm-surface)!important;
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-build-demo__step.is-active .mas-build-demo__arrow{
  color:var(--mas-dm-button-text)!important;
  background:var(--mas-dm-accent)!important;
  border-color:var(--mas-dm-accent)!important;
}
html.mas-theme-dark .mas-build-demo__step.is-done .mas-build-demo__arrow{
  color:var(--mas-dm-accent)!important;
  background:var(--mas-dm-surface-strong)!important;
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-build-demo__stage-head{
  color:var(--mas-dm-muted)!important;
}
html.mas-theme-dark .mas-build-demo__status{
  color:var(--mas-dm-accent)!important;
}

/* Guide-index headings, descriptions, links and hover states follow the saved colours. */
html.mas-theme-dark .mas-guide-index{
  color:var(--mas-dm-text)!important;
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-guide-index h3{
  color:var(--mas-dm-text)!important;
}
html.mas-theme-dark .mas-guide-index__group{
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-guide-index__group--build{
  background:var(--mas-dm-surface)!important;
}
html.mas-theme-dark .mas-guide-index__group > p{
  color:var(--mas-dm-muted)!important;
}
html.mas-theme-dark .mas-guide-index__links a{
  color:var(--mas-dm-accent)!important;
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-guide-index__links a:hover,
html.mas-theme-dark .mas-guide-index__links a:focus-visible{
  color:var(--mas-dm-accent-hover)!important;
  background:color-mix(in srgb,var(--mas-dm-accent) 12%,transparent)!important;
}

/* The custom Good-to-know disclosure section follows the dark-mode settings. */
html.mas-theme-dark .mas-faq{
  color:var(--mas-dm-text)!important;
  background:var(--mas-dm-surface)!important;
}
html.mas-theme-dark .mas-faq__inner,
html.mas-theme-dark .mas-faq__intro,
html.mas-theme-dark .mas-faq__questions,
html.mas-theme-dark .mas-faq__answer{
  color:var(--mas-dm-text)!important;
}
html.mas-theme-dark .mas-faq h2,
html.mas-theme-dark .mas-faq__intro p:first-of-type,
html.mas-theme-dark .mas-faq__answer p,
html.mas-theme-dark .mas-faq__answer strong{
  color:var(--mas-dm-text)!important;
}
html.mas-theme-dark .mas-faq__intro p:not(:first-of-type){
  color:var(--mas-dm-muted)!important;
}
html.mas-theme-dark .mas-faq__questions,
html.mas-theme-dark .mas-faq details{
  border-color:var(--mas-dm-border)!important;
}
html.mas-theme-dark .mas-faq details{
  background:transparent!important;
}
html.mas-theme-dark .mas-faq details[open]{
  background:var(--mas-dm-surface-strong)!important;
}
html.mas-theme-dark .mas-faq summary{
  color:var(--mas-dm-text)!important;
}
html.mas-theme-dark .mas-faq summary:hover{
  color:var(--mas-dm-accent-hover)!important;
  background:color-mix(in srgb,var(--mas-dm-accent) 10%,transparent)!important;
}
html.mas-theme-dark .mas-faq details[open] summary,
html.mas-theme-dark .mas-faq__symbol{
  color:var(--mas-dm-accent)!important;
}

/* Ad inventory remains distinct and never adopts action styling. */
html.mas-theme-dark ins.adsbygoogle,
html.mas-theme-dark [class*="ad-slot"],
html.mas-theme-dark [class*="advert"]{
  background:var(--mas-dm-advert-bg)!important;
  color:var(--mas-dm-advert-text)!important;
  border-color:var(--mas-dm-advert-border)!important;
}

html.mas-theme-dark ::selection{background:var(--mas-dm-accent);color:var(--mas-dm-selection-text)}
html.mas-theme-dark :focus-visible{outline:3px solid var(--mas-dm-focus)!important;outline-offset:3px}

/* Light-theme rules mirror every configurable dark-theme role. */
html.mas-theme-light{color-scheme:light}
html.mas-theme-light body{color:var(--mas-lm-text)}
html.mas-theme-light body,
html.mas-theme-light .elementor,
html.mas-theme-light .elementor-location-header,
html.mas-theme-light .elementor-location-footer{
  --e-global-color-primary:var(--mas-lm-accent);
  --e-global-color-text:var(--mas-lm-text);
  --e-global-color-accent:var(--mas-lm-accent);
}

/* Page-level Elementor surfaces. Inner document sheets are deliberately excluded. */
html.mas-theme-light .elementor > .e-con,
html.mas-theme-light .elementor > .elementor-section,
html.mas-theme-light .elementor-location-header .e-con,
html.mas-theme-light .elementor-location-footer .e-con,
html.mas-theme-light [class*="mas-pay-section-"],
html.mas-theme-light [class*="mas-home-section-"],
html.mas-theme-light [class*="mas-guide-section-"],
html.mas-theme-light .mas-payment-header-home-match,
html.mas-theme-light .mas-pay-home-header{
  border-color:var(--mas-lm-border-soft)!important;
}

html.mas-theme-light [class*="mas-pay-section-"]:nth-of-type(even),
html.mas-theme-light [class*="mas-home-section-"]:nth-of-type(even),
html.mas-theme-light [class*="mas-guide-section-"]:nth-of-type(even){
  background-color:var(--mas-lm-surface)!important;
}

/* Purposefully coloured Flexbox panels use their own light-mode setting. */
html.mas-theme-light body .elementor .mas-two-starting-options .mas-existing-pdf,
html.mas-theme-light body .elementor .mas-two-starting-options .mas-blank-pdf,
html.mas-theme-light body .elementor .mas-dark-coloured-container{
  background-color:var(--mas-lm-flexbox-bg)!important;
}

/* The nearest Elementor Flexbox containing an Inkform picker has its own setting. */
html.mas-theme-light body .elementor .mas-dark-pdf-picker-container{
  background-color:var(--mas-lm-pdf-picker-container-bg)!important;
  background-image:none!important;
}

/* Keep Inkform's transparent iframe canvas genuinely transparent in light mode.
   Without an explicit scheme Chromium can paint the otherwise transparent frame
   canvas white, which makes the outside corners look square. */
html.mas-theme-light body .elementor .mas-dark-pdf-picker-container iframe[data-inkform-frame="1"]{
  color-scheme:normal!important;
  background-color:transparent!important;
  background-image:none!important;
}

html.mas-theme-light .elementor-widget-heading .elementor-heading-title,
html.mas-theme-light .elementor-widget-text-editor,
html.mas-theme-light .elementor-widget-icon-list .elementor-icon-list-text,
html.mas-theme-light .elementor-widget-counter .elementor-counter-title,
html.mas-theme-light .elementor-widget-counter .elementor-counter-number-wrapper{
  color:var(--mas-lm-text)!important;
}

html.mas-theme-light .elementor-widget-text-editor p,
html.mas-theme-light .elementor-widget-text-editor li,
html.mas-theme-light .elementor-widget-text-editor small{
  color:inherit!important;
}

/* Nested words inherit their surrounding light-mode role unless they have an intentional inline colour. */
html.mas-theme-light body :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,legend,summary) :where(span,strong,em,b,i,small){
  color:inherit!important;
}

/* Inline emphasis inside links and buttons still follows the dedicated link/button setting. */
html.mas-theme-light body :where(a,button) [style^="color:" i],
html.mas-theme-light body :where(a,button) [style*=";color:" i],
html.mas-theme-light body :where(a,button) [style*="; color:" i]{
  color:inherit!important;
}

/* Only the exact italic brand word “make” receives the saved styled-word colour. */
html.mas-theme-light body .mas-brand-make{
  color:var(--mas-lm-styled-text)!important;
}

html.mas-theme-light body .mas-brand-sign-text{
  color:var(--mas-lm-brand-sign-text)!important;
}

html.mas-theme-light .elementor-widget-text-editor small,
html.mas-theme-light [class*="__note"],
html.mas-theme-light [class*="__hint"],
html.mas-theme-light [class*="__caption"],
html.mas-theme-light [class*="__subtitle"]{
  color:var(--mas-lm-muted)!important;
}

html.mas-theme-light a:not(.elementor-button):not(.mas-theme-toggle){
  color:var(--mas-lm-accent);
  text-decoration-color:color-mix(in srgb,var(--mas-lm-accent) 55%,transparent);
  text-underline-offset:.18em;
}
html.mas-theme-light a:not(.elementor-button):not(.mas-theme-toggle):hover{color:var(--mas-lm-accent-hover)}


html.mas-theme-light .elementor-widget-accordion .elementor-accordion-item,
html.mas-theme-light .elementor-widget-toggle .elementor-toggle-item,
html.mas-theme-light .elementor-widget-tabs .elementor-tab-content,
html.mas-theme-light .elementor-widget-tabs .elementor-tab-title{
  border-color:var(--mas-lm-border)!important;
  background:var(--mas-lm-surface)!important;
}
html.mas-theme-light .elementor-widget-accordion .elementor-tab-title,
html.mas-theme-light .elementor-widget-toggle .elementor-tab-title,
html.mas-theme-light .elementor-widget-accordion .elementor-tab-content,
html.mas-theme-light .elementor-widget-toggle .elementor-tab-content{
  color:var(--mas-lm-text)!important;
}
html.mas-theme-light .elementor-widget-accordion .elementor-accordion-icon,
html.mas-theme-light .elementor-widget-toggle .elementor-toggle-icon{color:var(--mas-lm-accent)!important}

html.mas-theme-light table,
html.mas-theme-light th,
html.mas-theme-light td{border-color:var(--mas-lm-border)!important}
html.mas-theme-light th{background:var(--mas-lm-surface-strong)!important;color:var(--mas-lm-text)!important}
html.mas-theme-light td{background:var(--mas-lm-surface)!important;color:var(--mas-lm-text)!important}

/* The saved grid setting covers the full page canvas and every top-level Elementor section. */
html.mas-theme-light body.mas-light-grid-on,
html.mas-theme-light body.mas-light-grid-on main:first-of-type,
html.mas-theme-light body.mas-light-grid-on.elementor-page > .elementor > .e-con,
html.mas-theme-light body.mas-light-grid-on.elementor-page > .elementor[data-elementor-type="wp-post"] > .e-con,
html.mas-theme-light body.mas-light-grid-on .mas-pay-section-01-purchase,
html.mas-theme-light body.mas-light-grid-on .mas-home-hero,
html.mas-theme-light body.mas-light-grid-on .mas-guide-hero{
  background-image:
    linear-gradient(color-mix(in srgb,var(--mas-lm-grid) 5%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--mas-lm-grid) 5%,transparent) 1px,transparent 1px)!important;
  background-size:42px 42px!important;
  background-position:0 0!important;
  background-attachment:fixed!important;
}

/* Animated examples become light workspaces while PDF sheets stay white. */
html.mas-theme-light .mas-download-demo,
html.mas-theme-light .mas-build-demo,
html.mas-theme-light .mas-flow,
html.mas-theme-light .mas-edit-demo,
html.mas-theme-light [class*="mas-lesson"],
html.mas-theme-light [class*="mas-demo"]{
  color:var(--mas-lm-text);
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-download-demo__top,
html.mas-theme-light .mas-download-demo__status,
html.mas-theme-light .mas-edit-demo__bar,
html.mas-theme-light .mas-edit-demo__tools,
html.mas-theme-light [class*="mas-demo"] [class*="__top"],
html.mas-theme-light [class*="mas-demo"] [class*="__status"]{
  background:var(--mas-lm-surface)!important;
  color:var(--mas-lm-text)!important;
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-download-demo__desk,
html.mas-theme-light .mas-edit-demo__desk,
html.mas-theme-light [class*="mas-demo"] [class*="__desk"],
html.mas-theme-light [class*="mas-demo"] [class*="__stage"]{
  background:var(--mas-lm-surface-strong)!important;
}
html.mas-theme-light .mas-download-demo__paper,
html.mas-theme-light .mas-build-demo__paper,
html.mas-theme-light .mas-edit-demo__paper,
html.mas-theme-light [class*="mas-demo"] [class*="__paper"]{
  background:var(--mas-lm-paper)!important;
  color:#18201d!important;
  border-color:#d5dcd8!important;
}

/* The interactive form-demo controls use the saved light-mode palette. */
html.mas-theme-light .mas-build-demo__step{
  color:var(--mas-lm-text)!important;
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-build-demo__step:hover:not(:disabled){
  color:var(--mas-lm-accent-hover)!important;
  background:var(--mas-lm-surface)!important;
}
html.mas-theme-light .mas-build-demo__step.is-active{
  color:var(--mas-lm-accent)!important;
}
html.mas-theme-light .mas-build-demo__step.is-done{
  color:var(--mas-lm-text)!important;
  background:color-mix(in srgb,var(--mas-lm-accent) 18%,var(--mas-lm-surface))!important;
}
html.mas-theme-light .mas-build-demo__arrow{
  color:var(--mas-lm-accent)!important;
  background:var(--mas-lm-surface)!important;
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-build-demo__step.is-done .mas-build-demo__arrow{
  color:var(--mas-lm-accent)!important;
  background:var(--mas-lm-surface-strong)!important;
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-build-demo__stage-head{
  color:var(--mas-lm-muted)!important;
}
html.mas-theme-light .mas-build-demo__status{
  color:var(--mas-lm-accent)!important;
}

/* Guide-index headings, descriptions, links and hover states follow the saved colours. */
html.mas-theme-light .mas-guide-index{
  color:var(--mas-lm-text)!important;
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-guide-index h3{
  color:var(--mas-lm-text)!important;
}
html.mas-theme-light .mas-guide-index__group{
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-guide-index__group--build{
  background:var(--mas-lm-surface)!important;
}
html.mas-theme-light .mas-guide-index__group > p{
  color:var(--mas-lm-muted)!important;
}
html.mas-theme-light .mas-guide-index__links a{
  color:var(--mas-lm-accent)!important;
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-guide-index__links a:hover,
html.mas-theme-light .mas-guide-index__links a:focus-visible{
  color:var(--mas-lm-accent-hover)!important;
  background:color-mix(in srgb,var(--mas-lm-accent) 12%,transparent)!important;
}

/* The custom Good-to-know disclosure section follows the light-mode settings. */
html.mas-theme-light .mas-faq{
  color:var(--mas-lm-text)!important;
  background:var(--mas-lm-surface)!important;
}
html.mas-theme-light .mas-faq__inner,
html.mas-theme-light .mas-faq__intro,
html.mas-theme-light .mas-faq__questions,
html.mas-theme-light .mas-faq__answer{
  color:var(--mas-lm-text)!important;
}
html.mas-theme-light .mas-faq h2,
html.mas-theme-light .mas-faq__intro p:first-of-type,
html.mas-theme-light .mas-faq__answer p,
html.mas-theme-light .mas-faq__answer strong{
  color:var(--mas-lm-text)!important;
}
html.mas-theme-light .mas-faq__intro p:not(:first-of-type){
  color:var(--mas-lm-muted)!important;
}
html.mas-theme-light .mas-faq__questions,
html.mas-theme-light .mas-faq details{
  border-color:var(--mas-lm-border)!important;
}
html.mas-theme-light .mas-faq details{
  background:transparent!important;
}
html.mas-theme-light .mas-faq details[open]{
  background:var(--mas-lm-surface-strong)!important;
}
html.mas-theme-light .mas-faq summary{
  color:var(--mas-lm-text)!important;
}
html.mas-theme-light .mas-faq summary:hover{
  color:var(--mas-lm-accent-hover)!important;
  background:color-mix(in srgb,var(--mas-lm-accent) 10%,transparent)!important;
}
html.mas-theme-light .mas-faq details[open] summary,
html.mas-theme-light .mas-faq__symbol{
  color:var(--mas-lm-accent)!important;
}

/* Ad inventory remains distinct and never adopts action styling. */
html.mas-theme-light ins.adsbygoogle,
html.mas-theme-light [class*="ad-slot"],
html.mas-theme-light [class*="advert"]{
  background:var(--mas-lm-advert-bg)!important;
  color:var(--mas-lm-advert-text)!important;
  border-color:var(--mas-lm-advert-border)!important;
}

html.mas-theme-light ::selection{background:var(--mas-lm-accent);color:var(--mas-lm-selection-text)}
html.mas-theme-light :focus-visible{outline:3px solid var(--mas-lm-focus)!important;outline-offset:3px}

/* Header toggle */
.mas-theme-toggle{
  appearance:none;display:inline-flex;align-items:center;gap:9px;min-height:var(--mas-toggle-height);margin:0;padding:5px 10px 5px 6px;
  border:var(--mas-toggle-border-width) solid var(--mas-toggle-light-border);border-radius:var(--mas-toggle-radius);background:var(--mas-toggle-light-bg);color:var(--mas-toggle-light-text);font:700 var(--mas-toggle-label-size)/1 Onest,Arial,sans-serif;
  cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s cubic-bezier(.16,1,.3,1)
}
.mas-theme-toggle:hover{background:var(--mas-toggle-light-hover-bg);transform:scale(var(--mas-toggle-hover-scale))}
.mas-theme-toggle__track{position:relative;display:block;width:var(--mas-toggle-track-width);height:var(--mas-toggle-track-height);border-radius:var(--mas-toggle-track-radius);background:var(--mas-toggle-light-track);transition:background-color .2s ease}
.mas-theme-toggle__thumb{position:absolute;left:3px;top:50%;display:grid;place-items:center;width:var(--mas-toggle-thumb-size);height:var(--mas-toggle-thumb-size);margin-top:calc(var(--mas-toggle-thumb-size) / -2);border-radius:var(--mas-toggle-thumb-radius);background:var(--mas-toggle-light-thumb);color:var(--mas-toggle-light-icon);transition:transform .25s cubic-bezier(.16,1,.3,1),background-color .2s ease,color .2s ease}
.mas-theme-toggle svg{position:absolute;width:var(--mas-toggle-icon-size);height:var(--mas-toggle-icon-size);stroke:currentColor;stroke-width:var(--mas-toggle-icon-stroke);stroke-linecap:round;stroke-linejoin:round;transition:opacity .18s ease,transform .18s ease}
.mas-theme-toggle__sun{opacity:0;transform:scale(.6)}
html.mas-theme-dark .mas-theme-toggle{background:var(--mas-toggle-dark-bg);border-color:var(--mas-toggle-dark-border);color:var(--mas-toggle-dark-text)}
html.mas-theme-dark .mas-theme-toggle:hover{background:var(--mas-toggle-dark-hover-bg)}
html.mas-theme-dark .mas-theme-toggle__track{background:var(--mas-toggle-dark-track)}
html.mas-theme-dark .mas-theme-toggle__thumb{transform:translateX(var(--mas-toggle-thumb-travel));background:var(--mas-toggle-dark-thumb);color:var(--mas-toggle-dark-icon)}
html.mas-theme-dark .mas-theme-toggle__moon{opacity:0;transform:scale(.6)}
html.mas-theme-dark .mas-theme-toggle__sun{opacity:1;transform:scale(1)}

@media(max-width:767px){
  .mas-theme-toggle{padding-right:6px}
  .mas-theme-toggle__label{display:none}
}
@media(prefers-reduced-motion:reduce){
  .mas-theme-toggle,.mas-theme-toggle__track,.mas-theme-toggle__thumb,.mas-theme-toggle svg{transition:none!important}
}

