/* Shared public storefront theme. Original artwork retains its colors. */
:root{color-scheme:light}
.ms-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:44px;margin-left:auto;padding:8px 10px;border:1px solid var(--rule,#d8dcd6);border-radius:2px;background:var(--paper,#fafaf7);color:var(--ink,#1f2421);font:500 12px/1.2 var(--body,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
.ms-theme-toggle[hidden]{display:none!important}
.ms-theme-toggle:hover{background:var(--paper-warm,#f4f2eb)}
.ms-theme-toggle:focus-visible{outline:3px solid var(--celadon-deep,#6f9b7c);outline-offset:3px}
.ms-theme-track{display:inline-block;position:relative;width:28px;height:16px;border-radius:20px;background:var(--ink-soft,#4a534f)}
.ms-theme-track::after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:50%;background:var(--paper,#fafaf7)}
.ms-theme-toggle[aria-pressed=true] .ms-theme-track::after{transform:translateX(12px)}
.ms-theme-toggle[aria-pressed=false] .ms-theme-light,.ms-theme-toggle[aria-pressed=true] .ms-theme-dark{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.nav,.sample-nav{flex-wrap:wrap}
.sample-nav{padding-top:12px;padding-bottom:12px}
.sample-nav>a:not(.sample-wordmark){font-size:15px;font-weight:500}
@media(max-width:600px){.nav,.sample-nav{column-gap:12px;row-gap:8px}.sample-nav>a:not(.sample-wordmark){font-size:14px}.ms-theme-toggle{min-height:44px}}

:root[data-theme="dark"]{--paper:#171d1a;--paper-warm:#202a23;--ink:#f0f3ee;--ink-soft:#c0cbc1;--ink-faint:#a4b0a5;--rule:#415248;--celadon:#a3c1ad;--celadon-deep:#b0d0b6;--celadon-mist:#263a2c;--brick:#eeaaa0;--slate:#a5b9cc;color-scheme:dark;}

html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] :is(input,textarea,select){color-scheme:dark}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--ink-faint);opacity:1}
html[data-theme="dark"] .f input:autofill{-webkit-text-fill-color:var(--ink);caret-color:var(--ink);box-shadow:0 0 0 1000px var(--paper-warm) inset}
html[data-theme="dark"] :is(.sample-scorecard .box,.sample-scorecard .opt,.sc-btn,.sc-note){background:var(--paper-warm);color:var(--ink)}
html[data-theme="dark"] .sample-scorecard .box.xf{background:var(--celadon-mist)}
html[data-theme="dark"] .sc-btn.go{background:var(--celadon-deep);color:var(--paper);border-color:var(--celadon-deep)}
html[data-theme="dark"] .sample-scorecard .sheet{box-shadow:none}
html[data-theme="dark"] :is(.sample-button,.oidc-btn,.toggle){background:var(--paper-warm);color:var(--ink);border-color:var(--rule)}
html[data-theme="dark"] .sample-button:hover,html[data-theme="dark"] .oidc-btn:hover,html[data-theme="dark"] .toggle:hover{background:var(--celadon-mist);border-color:var(--ink-faint)}
html[data-theme="dark"] :is(.ferr,.f.taken .addr){color:var(--brick)}
html[data-theme="dark"] :is(a.brand,.sample-wordmark){background:transparent;padding:0;flex-shrink:0}
html[data-theme="dark"] :is(.product-view img,.workflow-figure img){background:#fafaf7}
html[data-theme="dark"] :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--celadon-deep);outline-offset:4px}

@media(prefers-color-scheme:dark){
:root:not([data-theme]){--paper:#171d1a;--paper-warm:#202a23;--ink:#f0f3ee;--ink-soft:#c0cbc1;--ink-faint:#a4b0a5;--rule:#415248;--celadon:#a3c1ad;--celadon-deep:#b0d0b6;--celadon-mist:#263a2c;--brick:#eeaaa0;--slate:#a5b9cc;color-scheme:dark;}

html:not([data-theme]) body{background:var(--paper);color:var(--ink)}
html:not([data-theme]) :is(input,textarea,select){color-scheme:dark}
html:not([data-theme]) :is(input,textarea)::placeholder{color:var(--ink-faint);opacity:1}
html:not([data-theme]) .f input:autofill{-webkit-text-fill-color:var(--ink);caret-color:var(--ink);box-shadow:0 0 0 1000px var(--paper-warm) inset}
html:not([data-theme]) :is(.sample-scorecard .box,.sample-scorecard .opt,.sc-btn,.sc-note){background:var(--paper-warm);color:var(--ink)}
html:not([data-theme]) .sample-scorecard .box.xf{background:var(--celadon-mist)}
html:not([data-theme]) .sc-btn.go{background:var(--celadon-deep);color:var(--paper);border-color:var(--celadon-deep)}
html:not([data-theme]) .sample-scorecard .sheet{box-shadow:none}
html:not([data-theme]) :is(.sample-button,.oidc-btn,.toggle){background:var(--paper-warm);color:var(--ink);border-color:var(--rule)}
html:not([data-theme]) .sample-button:hover,html:not([data-theme]) .oidc-btn:hover,html:not([data-theme]) .toggle:hover{background:var(--celadon-mist);border-color:var(--ink-faint)}
html:not([data-theme]) :is(.ferr,.f.taken .addr){color:var(--brick)}
html:not([data-theme]) :is(a.brand,.sample-wordmark){background:transparent;padding:0;flex-shrink:0}
html:not([data-theme]) :is(.product-view img,.workflow-figure img){background:#fafaf7}
html:not([data-theme]) :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--celadon-deep);outline-offset:4px}

}

html[data-theme="dark"] :is(.f input,.addr,.oidc-btn,.sample-button,.toggle,.ms-theme-toggle,.sc-btn,.nav .cta){border-color:#7e9284}
@media(prefers-color-scheme:dark){html:not([data-theme]) :is(.f input,.addr,.oidc-btn,.sample-button,.toggle,.ms-theme-toggle,.sc-btn,.nav .cta){border-color:#7e9284}}
@media print{
 :root,:root[data-theme],:root:not([data-theme]){--paper:#fff!important;--paper-warm:#f4f2eb!important;--ink:#1f2421!important;--ink-soft:#4a534f!important;--ink-faint:#606a63!important;--rule:#d8dcd6!important;--celadon:#a3c1ad!important;--celadon-deep:#486e53!important;--celadon-mist:#e6ede8!important;--brick:#a83e2c!important;color-scheme:light!important}
 body{background:#fff!important;color:#1f2421!important}
 .ms-theme-toggle{display:none!important}
 html :is(.sheet,.sample-document,.sample-scorecard .box,.sample-scorecard .opt,.sc-btn,.sc-note){background:#fff!important;color:#1f2421!important;box-shadow:none!important}
 html .sample-scorecard .box.xf{background:#e6ede8!important}
 html :is(a.brand,.sample-wordmark,.logo-grid figure){background:#fff!important}
 html :is(input,textarea,select){color-scheme:light!important}
}

/* Appearance belongs in the footer; System follows the visitor's device. */
.ms-theme-toggle{display:none!important}
.theme-preference{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-top:20px;color:var(--ink-soft,#4a534f);font:400 12px/1.4 var(--body,system-ui,sans-serif)}
.theme-preference select{width:auto;min-height:44px;padding:6px 28px 6px 8px;border:1px solid var(--rule,#d8dcd6);border-radius:2px;background:var(--paper,#fafaf7);color:var(--ink-soft,#4a534f);font:inherit;cursor:pointer}
.theme-preference select:focus-visible{outline:2px solid var(--celadon-deep,#6f9b7c);outline-offset:3px}
@media print{.theme-preference{display:none!important}}


/* Use the existing light-on-dark artwork without changing its shapes or colors.
   Screen-only rules leave the original dark-on-light image available for print. */
@media screen {
 html[data-theme="dark"] :is(a.brand,.sample-wordmark) img{content:url("/applyms-logo-dark.svg")}
}
@media screen and (prefers-color-scheme:dark) {
 html:not([data-theme]) :is(a.brand,.sample-wordmark) img{content:url("/applyms-logo-dark.svg")}
}
@media print {
 html :is(a.brand,.sample-wordmark){background:transparent!important;padding:0!important}
 html :is(a.brand,.sample-wordmark) img{content:url("/applyms-logo.svg")!important}
}

/* Client artwork gets the same white presentation surface in both themes.
   Scope this to the client grid so screenshots and site branding stay intact. */
html .logo-grid{gap:16px;align-items:stretch}
html .logo-grid figure{
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 height:104px;min-height:104px;margin:0;padding:18px;
 background:#fff;border:1px solid #d8dcd6;border-radius:4px;
}
html .logo-grid img{
 display:block;width:auto;height:auto;max-width:100%;max-height:64px;
 object-fit:contain;opacity:1;filter:none;mix-blend-mode:normal;
}
@media(max-width:600px){
 html .logo-grid{gap:12px}
 html .logo-grid figure{height:96px;min-height:96px;padding:14px}
}
