/*! Happy Light app switcher v1.2.0 */
.hl-sw{--sw-bg:#fffdf8;--sw-fg:#2b2418;--sw-mute:#6f6455;--sw-line:#e8dfcc;--sw-hover:#f6efdd;--sw-here:#fbe9bd;--sw-ring:#b8821f;--sw-tag:#f3e6c4;--sw-tagfg:#6b4d0c;position:relative;display:inline-flex;vertical-align:middle;flex:none;font:400 .875rem/1.3 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:left}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]):not(.light) .hl-sw:not([data-hl-theme]){--sw-bg:#1e1b16;--sw-fg:#f3ecdd;--sw-mute:#b3a78f;--sw-line:#3a3427;--sw-hover:#2b261d;--sw-here:#4a3a14;--sw-ring:#f0c15c;--sw-tag:#3d3216;--sw-tagfg:#f0d28a}}
[data-theme="dark"] .hl-sw,.dark .hl-sw{--sw-bg:#1e1b16;--sw-fg:#f3ecdd;--sw-mute:#b3a78f;--sw-line:#3a3427;--sw-hover:#2b261d;--sw-here:#4a3a14;--sw-ring:#f0c15c;--sw-tag:#3d3216;--sw-tagfg:#f0d28a}
.hl-sw[data-hl-theme="light"]{--sw-bg:#fffdf8;--sw-fg:#2b2418;--sw-mute:#6f6455;--sw-line:#e8dfcc;--sw-hover:#f6efdd;--sw-here:#fbe9bd;--sw-ring:#b8821f;--sw-tag:#f3e6c4;--sw-tagfg:#6b4d0c}
.hl-sw[data-hl-theme="dark"]{--sw-bg:#1e1b16;--sw-fg:#f3ecdd;--sw-mute:#b3a78f;--sw-line:#3a3427;--sw-hover:#2b261d;--sw-here:#4a3a14;--sw-ring:#f0c15c;--sw-tag:#3d3216;--sw-tagfg:#f0d28a}
.hl-sw *,.hl-sw *::before,.hl-sw *::after,.hl-sw-panel,.hl-sw-panel *,.hl-sw-panel *::before,.hl-sw-panel *::after{box-sizing:border-box}
.hl-sw-btn{display:inline-grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:inherit;cursor:pointer;opacity:.85;-webkit-tap-highlight-color:transparent;transition:background-color .15s,opacity .15s}
.hl-sw-btn:hover,.hl-sw-btn[aria-expanded="true"]{opacity:1;background:rgba(127,127,127,.18)}
.hl-sw-btn:focus-visible,.hl-sw-panel a:focus-visible{outline:2px solid var(--sw-ring);outline-offset:2px}
.hl-sw-panel{font:400 .875rem/1.3 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:left;position:fixed;inset:0 auto auto 0;margin:0;z-index:2147483600;overflow:auto;overscroll-behavior:contain;padding:12px;border:1px solid var(--sw-line);border-radius:14px;background:var(--sw-bg);color:var(--sw-fg);box-shadow:0 12px 36px rgba(0,0,0,.28);animation:hl-sw-in .14s ease-out}
.hl-sw-panel[hidden]{display:none}
/* Native popover + CSS anchor positioning (the button carries anchor-name, set by hl-switcher.js): below the button,
   flipped above when it does not fit there, scrolling inside itself when neither side fits. Without support,
   hl-switcher.js positions the panel itself. */
@supports (position-area:block-end) and (position-try-fallbacks:flip-block){
.hl-sw-panel[popover]{--hl-sw-w:min(440px,calc(100vw - 24px));position-area:block-end span-all;inset:auto;left:clamp(12px,anchor(left),calc(100% - 12px - var(--hl-sw-w)));justify-self:start;margin:6px 0;width:var(--hl-sw-w);max-height:calc(100% - 18px);position-try-fallbacks:flip-block;position-try-order:most-block-size}
}
@keyframes hl-sw-in{from{opacity:0;transform:translateY(-4px)}}
.hl-sw-panel a{color:inherit;text-decoration:none}
.hl-sw-brand{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 8px;border-radius:10px;font-weight:700;font-size:1rem;letter-spacing:.01em}
.hl-sw-brand svg{width:20px;height:28px;flex:none}
.hl-sw-brand:hover,.hl-sw-app:hover,.hl-sw-all:hover{background:var(--sw-hover)}
.hl-sw-h{margin:12px 8px 2px;padding:0;font-size:.6875rem;font-weight:700;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--sw-mute)}
.hl-sw-list{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin:0;padding:0;list-style:none}
.hl-sw-list li{margin:0;padding:0;list-style:none}
.hl-sw-app{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 8px;border-radius:10px}
.hl-sw-app svg{flex:none;color:var(--sw-mute)}
.hl-sw-app[data-here]{background:var(--sw-here);font-weight:700}
.hl-sw-app[data-here] svg{color:inherit}
.hl-sw-name{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.hl-sw-tag{display:inline-block;padding:1px 6px;border-radius:99px;background:var(--sw-tag);color:var(--sw-tagfg);font-size:.65625rem;font-weight:600;line-height:1.4}
.hl-sw-all{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin-top:10px;border-top:1px solid var(--sw-line);border-radius:0 0 10px 10px;font-weight:600;padding-top:2px}
@media (max-width:460px){.hl-sw-list{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.hl-sw-panel{animation:none}.hl-sw-btn{transition:none}}
@media print{.hl-sw,.hl-sw-panel{display:none}}
