/* Appearance only: preserve layout, typography, logos and document output. */
html body #pa-theme-toggle{display:block!important;width:100%!important;margin:12px 0 0!important;padding:12px!important;min-height:44px!important;border:1px solid #c7d0da!important;border-radius:7px!important;background:#fff!important;color:#26374a!important;font:600 14px/1.4 system-ui,sans-serif!important;cursor:pointer!important;white-space:nowrap!important}
html body #pa-theme-toggle:focus-visible{outline:3px solid #6f9ed3!important;outline-offset:3px!important}
@media screen{
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette){color-scheme:dark;background:#111923!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) body{background-color:#111923!important;color:#e6edf5!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-bg="surface"]{background-color:#182330!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-bg="raised"]{background-color:#202e3d!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-bg="tint"]{background-color:#29394a!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-fg="text"]{color:#e6edf5!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-fg="muted"]{color:#bac8d8!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-border]{border-color:#52647b!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-stroke]{stroke:#c2d3e8!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-fill]{fill:#c2d3e8!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) [data-pa-dark-gradient]{background-image:none!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) input::placeholder,html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) textarea::placeholder{color:#a9b8ca!important;opacity:1}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) body #pa-theme-toggle{background:#26374a!important;color:#f3f6fa!important;border-color:#65788f!important}
html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) .studio-paper,html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) .sd-doc,html[data-pa-theme="dark"]:not(#pa-light-palette):not(#pa-print-palette) .billing-paper{color-scheme:light}
}
@media print{#pa-theme-toggle{display:none!important}}

#pa-theme-toolbar{display:flex;justify-content:flex-end;padding:8px 16px;gap:8px;background:transparent}html body #pa-theme-toggle{white-space:nowrap!important} @media(max-width:600px){html body #pa-theme-toggle{font-size:12px!important;padding:7px 10px!important;min-height:36px!important}}@media print{#pa-theme-toolbar{display:none!important}}

/* Appearance controls live inside Settings, never as a standalone header pill. */
#pa-appearance-settings{display:flex!important;flex:0 0 auto!important;align-items:center!important;margin-inline-start:12px!important;max-width:44px!important}
#pa-settings-button{display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0!important;padding:0!important;border:1px solid #cbd3dc!important;border-radius:8px!important;background:#fff!important;color:#33465d!important;font:22px/1 system-ui!important;cursor:pointer!important;box-shadow:none!important}
#pa-appearance-panel{position:fixed!important;z-index:2147483000!important;width:232px!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box!important;padding:16px!important;border:1px solid #cbd3dc!important;border-radius:12px!important;background:#fff!important;color:#243348!important;box-shadow:0 12px 35px #0002!important;font:14px/1.4 system-ui!important}
#pa-appearance-panel[hidden]{display:none!important}
html[data-pa-theme=dark] #pa-settings-button,html[data-pa-theme=dark] #pa-appearance-panel{background:#202e3d!important;color:#eef3f8!important;border-color:#52647b!important}
@media print{#pa-appearance-settings,#pa-appearance-panel{display:none!important}}

#pa-appearance-settings.in-profile{max-width:none!important;width:100%!important;margin:0!important}#pa-appearance-settings.in-profile #pa-settings-button{width:100%!important;max-width:none!important;justify-content:flex-start!important;font:600 14px/1.4 system-ui!important;padding:10px 14px!important;border:0!important;background:transparent!important}

/* v48: no landing/loading/embedded-preview control or logo overlay. */
html body #pa-appearance-settings[hidden]{display:none!important}
html body #pa-appearance-settings{position:static!important;float:none!important;inset:auto!important;transform:none!important;align-self:center!important}

html body #pa-appearance-panel{width:280px!important}
#pa-appearance-panel label{display:block;margin:16px 0 7px;font-size:12px;font-weight:600}
#pa-theme-choice{display:block;width:100%;min-height:44px;padding:10px;border:1px solid #bac5d1;border-radius:7px;background:#fff;color:#243348;font:14px system-ui}
#pa-appearance-panel>button,#pa-appearance-panel>a{display:block;width:100%;box-sizing:border-box;margin:8px 0 0;padding:10px 0;text-align:left;min-height:44px;border:0;border-top:1px solid #dce2e8;border-radius:0;background:transparent;color:inherit;font:500 14px/1.5 system-ui;text-decoration:none;cursor:pointer}
#pa-appearance-panel>button[hidden]{display:none!important}
#pa-appearance-panel small{display:block;margin-top:10px;font-size:11px;color:#647487}
html[data-pa-theme=dark] #pa-theme-choice{background:#182330;color:#eef3f8;border-color:#52647b}
html[data-pa-theme=dark] #pa-appearance-panel small{color:#bac8d8}

html body #pa-appearance-settings.in-navigation{max-width:none!important;width:100%!important;margin:8px 0!important}
html body #pa-appearance-settings.in-navigation #pa-settings-button{width:100%!important;max-width:none!important;justify-content:flex-start!important;min-height:44px!important;height:auto!important;padding:10px 14px!important;font:600 14px/1.4 system-ui!important;background:transparent!important;color:inherit!important;border:0!important}

html body #pa-appearance-settings.in-navigation-row{width:auto!important;max-width:none!important;flex:0 0 auto!important;margin:0 4px!important}html body #pa-appearance-settings.in-navigation-row #pa-settings-button{width:auto!important;font-size:11px!important;padding:8px!important;white-space:nowrap!important}
