html[data-meow-theme="dark"] { color-scheme: dark; }
html[data-meow-theme="light"] { color-scheme: light; }
.meow-theme-toggle {
    position: fixed;
    left: 18px;
    right: auto;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #c9bda7;
    border-radius: 24px;
    background: #fffaf2;
    color: #443d33;
    box-shadow: 0 3px 12px #0002;
    font: 600 13px/1.4 'Huninn', 'Microsoft JhengHei', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
}
.meow-theme-toggle .meow-theme-icon { font-size: 19px; line-height: 1; }
.meow-theme-toggle:hover { border-color: #be984a; }
.meow-theme-toggle:focus-visible { outline: 3px solid #b88afe; outline-offset: 3px; }
html[data-meow-theme="dark"] .meow-theme-toggle {
    background: #292f39;
    color: #eee9e0;
    border-color: #5a5264;
    box-shadow: 0 3px 14px #0006;
}
@media (max-width: 768px) {
    .meow-theme-toggle {
        left: auto;
        right: 14px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        min-height: 40px;
        padding: 8px 11px;
        font-size: 12px;
    }
}
@media print { .meow-theme-toggle { display: none !important; } }
