.theme-switch { position: relative; }
.theme-switch summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line, rgba(127, 140, 160, .28));
    border-radius: 12px;
    background: var(--theme-chip, var(--ticket, var(--panel, var(--lift, #fff))));
    color: inherit;
    cursor: pointer;
    box-sizing: border-box;
}
.theme-switch summary::-webkit-details-marker { display: none; }
.theme-ico {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
}
.theme-ico svg,
.theme-panel svg {
    width: 18px;
    height: 18px;
}
.theme-ico svg { display: none; }
.theme-ico[data-icon="light"] .i-light,
.theme-ico[data-icon="dark"] .i-dark,
.theme-ico[data-icon="system"] .i-system { display: block; }
.theme-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 168px;
    padding: 6px;
    display: grid;
    gap: 2px;
    background: var(--theme-menu, var(--ticket, var(--lift, #fff)));
    border: 1px solid var(--line, rgba(127, 140, 160, .28));
    border-radius: 14px;
    box-shadow: var(--shadow, 0 16px 32px rgba(16, 20, 32, .16));
    z-index: 50;
}
.theme-switch--stacked { width: 100%; }
.theme-switch--stacked .theme-panel {
    position: static;
    margin-top: 8px;
    box-shadow: none;
}
.theme-panel button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}
.theme-panel button:hover,
.theme-panel button.is-on {
    background: var(--theme-on, rgba(67, 83, 255, .1));
}
.fi-theme-switcher { display: none !important; }
