footer .shell-footer-tools.pv-preferences {
    --pv-menu-ink: #223e36;
    --pv-menu-muted: #587068;
    --pv-menu-line: #b7c4b9;
    --pv-menu-bg: #eff2e9;
    --pv-menu-hover: #e0e8dc;
    --pv-menu-panel: #fffef8;
    display: inline-flex;
    flex: none;
    align-items: center;
    position: relative;
    width: max-content;
    gap: 0;
    padding: 2px;
    border: 1px solid var(--pv-menu-line);
    border-radius: 2rem;
    background: var(--pv-menu-bg);
    color: var(--pv-menu-ink);
}
[data-pitvu-theme="dark"] footer .pv-preferences {
    --pv-menu-ink: #e4efe5;
    --pv-menu-muted: #a4baad;
    --pv-menu-line: #53665c;
    --pv-menu-bg: #24332d;
    --pv-menu-hover: #35473c;
    --pv-menu-panel: #222e29;
}
footer .pv-preferences > button[data-theme-toggle],
footer .pv-preferences > details > summary.pv-language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    flex: none;
    width: auto;
    height: 44px;
    min-height: 44px;
    margin: 0;
    border: 0;
    border-radius: 1.7rem;
    background: transparent;
    color: var(--pv-menu-ink);
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
}
footer .pv-preferences > button[data-theme-toggle] { min-width: 44px; width: 44px; padding: 0; }
footer .pv-preferences > button[hidden] { display: none; }
footer .pv-preferences .pv-theme-mark { display: block; width: 24px; height: 24px; }
.pv-orbit-core { transform-origin: 12px 12px; }
[data-pitvu-theme="dark"] .pv-orbit-core { transform: rotate(180deg); }
footer .pv-preferences .shell-footer-locale { position: relative; display: block; margin: 0; }
footer .pv-preferences > button:not([hidden]) + details::before {
    content: ""; position: absolute; left: 0; top: 12px; height: 20px; border-left: 1px solid var(--pv-menu-line);
}
footer .pv-preferences > details > summary.pv-language-button {
    width: auto; min-width: 0; padding: 0 11px; gap: 7px; list-style: none;
}
footer .pv-preferences summary::-webkit-details-marker { display: none; }
footer .pv-preferences .pv-language-code { font: inherit; font-size: .81rem; font-weight: 700; line-height: 1; letter-spacing: .055em; }
footer .pv-preferences .pv-language-flag {
    display: inline-block; flex: none; width: 18px; height: 13.5px; max-width: none;
    object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #68796e3d;
}
footer .pv-preferences .pv-locale-chevron {
    display: inline-block; width: 6px; height: 6px; flex: none; margin: 1px 1px 0 3px;
    box-sizing: border-box; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
    transform: rotate(45deg); color: var(--pv-menu-muted);
}
footer .pv-preferences details[open] .pv-locale-chevron { transform: rotate(225deg); }
footer .pv-preferences > button:hover, footer .pv-preferences summary.pv-language-button:hover,
footer .pv-preferences details[open] > summary.pv-language-button { background: var(--pv-menu-hover); }
footer .pv-preferences :is(button,a,summary):focus-visible { outline: 2px solid var(--pv-menu-ink); outline-offset: 2px; }
footer .pv-preferences .shell-locale-panel {
    position: absolute; z-index: 65; right: 0; left: auto; top: auto; bottom: calc(100% + .65rem);
    width: min(14rem, calc(100vw - 24px)); min-width: 0; max-height: min(25rem,65vh); overflow-y: auto;
    margin: 0; padding: .35rem; box-sizing: border-box; border: 1px solid var(--pv-menu-line);
    border-radius: .85rem; background: var(--pv-menu-panel); color: var(--pv-menu-ink);
    box-shadow: 0 8px 28px #12251a24; transform: translateX(var(--pv-locale-shift,0px));
}
footer .pv-preferences details[open] > .shell-locale-panel { display: grid; grid-template-columns: 1fr; gap: 1px; }
footer .pv-preferences .shell-locale-panel :is(a,button,span.shell-fixed-locale) {
    display: flex; align-items: center; justify-content: flex-start; gap: .65rem;
    box-sizing: border-box; margin: 0; width: 100%; min-height: 42px; padding: .45rem .65rem;
    border: none; border-radius: .5rem; background: transparent; color: inherit;
    font: inherit; font-size: .94rem; line-height: 1.3; text-align: start; text-decoration: none;
}
footer .pv-preferences .shell-locale-panel .pv-language-flag { order: -1; }
footer .pv-preferences .shell-locale-panel :is(a,button):hover,
footer .pv-preferences .shell-locale-panel [aria-current] { background: var(--pv-menu-hover); }
footer .pv-preferences .shell-locale-panel [aria-current] { font-weight: 700; }
footer .pv-preferences .shell-locale-panel [aria-current]::after {
    content: ""; width: 9px; height: 5px; margin-left: auto; margin-right: 3px; border-left: 2px solid;
    border-bottom: 2px solid; transform: rotate(-45deg);
}
@media (prefers-reduced-motion: no-preference) {
    footer .pv-preferences :is(.pv-orbit-core,.pv-locale-chevron) { transition: transform .18s ease; }
    footer .pv-preferences :is(summary,button,a) { transition: background-color .14s ease; }
}
