html[data-moreol-theme="dark"]{color-scheme:dark}
moreol-theme-toggle{display:inline-flex;flex:none;vertical-align:middle}
html .moreol-theme-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:8px 11px;border:1px solid #4a6870;border-radius:2px;background:linear-gradient(120deg,#243740,#192930);color:#c7dddd;font:500 10px/1.4 Montserrat,Moreol,Arial,sans-serif;letter-spacing:.01em;cursor:pointer;white-space:nowrap}
html .moreol-theme-button:hover{border-color:#91c6b9;background:#2b4549}
html .moreol-theme-button:focus-visible{outline:2px solid #83cbbb;outline-offset:3px}
html .moreol-theme-button:disabled{cursor:progress;opacity:.8}
.moreol-theme-button svg{width:17px;height:17px;flex:none}
.moreol-theme-indicator{width:17px;height:8px;border:1px solid #77999e;border-radius:8px;position:relative}
.moreol-theme-indicator:after{content:'';position:absolute;top:1px;left:1px;width:4px;height:4px;border-radius:50%;background:#aad6c4;transition:transform .2s}
[data-moreol-theme="light"] .moreol-theme-indicator:after{transform:translateX(9px);background:#317b72}
[data-moreol-theme="light"] .moreol-theme-button{background:linear-gradient(120deg,#fff,#e4eded);border-color:#9fb9bc;color:#294d52}
[data-moreol-theme="light"] .moreol-theme-button:hover{background:#dcece8;border-color:#4a847b}
.header-actions{display:flex;align-items:center;gap:13px;flex:none}
.header-actions .cabinet{white-space:nowrap}
html.moreol-site .wl-bots{grid-template-columns:minmax(0,1fr)}
html.moreol-site .topbar-title{min-width:0}

/* The new palette expands from the control like a quiet circular scan. */
html[data-theme-transition]::view-transition-old(root),html[data-theme-transition]::view-transition-new(root){animation:none;mix-blend-mode:normal}
html[data-theme-transition]::view-transition-old(root){z-index:1}
html[data-theme-transition]::view-transition-new(root){z-index:2}
.moreol-theme-wave{position:fixed;inset:0;z-index:2147483000;pointer-events:none;overflow:hidden;contain:strict}
.moreol-theme-ring{position:absolute;left:var(--wave-x);top:var(--wave-y);width:var(--wave-size);height:var(--wave-size);border:1px solid #6dbeb580;border-radius:50%;box-shadow:0 0 26px #79caba35,inset 0 0 20px #79caba25;animation:moreol-theme-scan .68s cubic-bezier(.22,.65,.25,1) both}
.moreol-theme-grid{position:absolute;inset:0;background-image:linear-gradient(#5bafa71a 1px,transparent 1px),linear-gradient(90deg,#5bafa71a 1px,transparent 1px);background-size:38px 38px;mask-image:radial-gradient(ellipse at var(--wave-x) var(--wave-y),#000,transparent 80%);animation:moreol-theme-grid .68s ease both}
@keyframes moreol-theme-scan{from{transform:translate(-50%,-50%) scale(.01);opacity:.85}to{transform:translate(-50%,-50%) scale(1);opacity:0}}
@keyframes moreol-theme-grid{0%,100%{opacity:0}35%{opacity:.65}}
@media(max-width:1100px){.header-actions{gap:9px}.header{gap:17px}html .moreol-theme-button{padding:8px;gap:7px}.moreol-theme-indicator{display:none}}
@media(max-width:600px){.moreol-theme-label{display:none}html .moreol-theme-button{width:35px;min-height:35px;padding:8px}.header-actions{gap:7px}.header-actions .cabinet{padding:9px;font-size:9px;gap:8px}.header-actions .cabinet svg{width:13px;height:13px}.header{gap:8px}.brand>span{font-size:19px}.brand small{font-size:5.5px}.brand img{width:32px;height:32px}.brand{gap:8px}html.moreol-site .topbar-actions{gap:7px}html.moreol-site .topbar-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.moreol-theme-wave{display:none}.moreol-theme-indicator:after{transition:none}}
@media(max-width:600px){
  html.moreol-site .admin-app .topbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) auto;grid-template-areas:'title title theme' 'about company logout';height:auto;min-height:96px;padding-top:8px;padding-bottom:8px;gap:7px}
  html.moreol-site .admin-app .topbar-title{grid-area:title}
  html.moreol-site .admin-app .topbar-actions{display:contents}
  html.moreol-site .admin-app .topbar-actions>moreol-theme-toggle{grid-area:theme;justify-self:end}
  html.moreol-site .admin-app .moreol-about-link{grid-area:about}
  html.moreol-site .admin-app .admin-mode-select{grid-area:company;min-width:0}
  html.moreol-site .admin-app .admin-mode-select select{width:100%;max-width:100%;min-width:0;padding-left:7px;padding-right:20px;font-size:10px}
  html.moreol-site .admin-app .topbar-logout{grid-area:logout;white-space:nowrap}
}
@media print{moreol-theme-toggle,.moreol-theme-wave{display:none!important}}

/* One compact picker shared by the landing, auth pages and workspace. */
.moreol-theme-chevron{font-size:16px;line-height:12px}
html .moreol-theme-menu{position:fixed;inset:auto;margin:0;padding:18px;box-sizing:border-box;z-index:2147482000;border:1px solid var(--line-2,#41616b);border-radius:12px;background:var(--surface,#1b2a33);color:var(--text,#e1e9eb);box-shadow:0 22px 70px #0005;font:400 12px/1.5 Moreol,Montserrat,Arial,sans-serif;overflow:auto;overscroll-behavior:contain;isolation:isolate}
html .moreol-theme-menu[hidden]{display:none!important}
.moreol-theme-menu::backdrop{background:transparent;pointer-events:none}
.moreol-theme-menu *{box-sizing:border-box}
.moreol-theme-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.moreol-theme-menu-head strong{font-size:15px;font-weight:600;color:inherit}
html .moreol-theme-close{border:1px solid var(--line,#38545d);border-radius:6px;display:grid;place-items:center;background:var(--surface-2,#21323b);color:inherit;width:32px;height:32px;padding:0;font:24px/1 Arial,sans-serif;cursor:pointer}
.moreol-theme-group+.moreol-theme-group{margin-top:16px}
.moreol-theme-group-label{display:block;margin-bottom:8px;font-size:11px;font-weight:600;color:var(--text-2,#cadbdf)}
.moreol-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html .moreol-theme-option{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:0;padding:5px;border:1px solid transparent;border-radius:8px;background:none;color:inherit;text-align:left;font:500 11px/1.45 Moreol,Montserrat,Arial,sans-serif;cursor:pointer;box-shadow:none}
html .moreol-theme-option:hover{background:var(--surface-2,#21323b);border-color:var(--line-2,#41616b)}
html .moreol-theme-option[aria-pressed="true"]{border-color:var(--mp-accent,#a8dbc1);background:var(--surface-2,#21323b)}
.moreol-theme-option-name{min-height:32px;padding:0 3px}
.moreol-theme-sample{height:63px;border-radius:5px;display:block;position:relative;overflow:hidden;background:var(--sample-bg);border:1px solid var(--sample-border)}
.moreol-theme-sample:before{content:'';position:absolute;inset:0 auto 0 0;width:20%;background:var(--sample-panel);border-right:1px solid var(--sample-border)}
.moreol-theme-sample i{position:absolute;inset:11px 7px 10px 27%;background:var(--sample-panel);border:1px solid var(--sample-border);border-radius:3px}
.moreol-theme-sample b{position:absolute;left:34%;bottom:18px;width:24%;height:7px;background:var(--sample-accent);border-radius:2px}
.moreol-theme-sample em{position:absolute;right:15%;top:19px;width:20px;height:20px;border:1px solid var(--sample-accent);border-radius:50%;box-shadow:0 0 12px var(--sample-accent)}
.moreol-theme-sample>span{display:none;position:absolute;right:3px;top:3px;background:#173749;color:white;border-radius:50%;width:18px;height:18px;text-align:center;font:12px/18px Arial,sans-serif}
[aria-pressed="true"]>.moreol-theme-sample>span{display:block}
[data-theme-choice="light-metal"]{--sample-bg:#e4e9ee;--sample-panel:#fbfcfe;--sample-border:#ccd7df;--sample-accent:#b38a47}
[data-theme-choice="light-spectrum"]{--sample-bg:linear-gradient(130deg,#e5eeff,#cdeef6,#e3d5ff);--sample-panel:#fbfdff;--sample-border:#c9d9f6;--sample-accent:#3154d5}
[data-theme-choice="light-pearl"]{--sample-bg:#ece3d1;--sample-panel:#fffdf7;--sample-border:#d8ccb6;--sample-accent:#a67e36}
[data-theme-choice="dark"]{--sample-bg:#151d22;--sample-panel:#23343d;--sample-border:#3a5863;--sample-accent:#a8dbc1}
[data-theme-choice="dark-sapphire"]{--sample-bg:linear-gradient(135deg,#121b30,#242952);--sample-panel:#1c2a47;--sample-border:#435983;--sample-accent:#73bfff}
[data-theme-choice="dark-amber"]{--sample-bg:#201d1c;--sample-panel:#302923;--sample-border:#635345;--sample-accent:#edc58a}
.moreol-theme-menu-note{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line,#38545d);font-size:10px;color:var(--text-2,#cadbdf)}
@media(max-width:600px){.moreol-theme-chevron{display:none}html .moreol-theme-menu{padding:12px}.moreol-theme-options{gap:5px}.moreol-theme-option-name{font-size:10px}.moreol-theme-sample{height:55px}.moreol-theme-menu-head{margin-bottom:12px}}
@media(pointer:coarse){html .moreol-theme-close{width:44px;height:44px}html .moreol-theme-button{min-width:44px;min-height:44px}}
@media print{.moreol-theme-menu{display:none!important}}
