/* QWEB temporary theme switcher — remove in production if unnecessary. */
.theme-switcher-button {
    position: fixed;
    top: 30%;
    left: 14px;
    z-index: 1100;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}
.theme-switcher-button:hover {
    transform: translateY(-2px) scale(1.06);
    background: #1e293b;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}
.theme-switcher-button:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}
.theme-switcher-button .icon-svg {
    width: 23px;
    height: 23px;
    animation: themeSwitcherGearRotation 4s linear infinite;
    transform-origin: center;
}
.theme-switcher-button:hover .icon-svg {
    animation-duration: 2s;
}
@keyframes themeSwitcherGearRotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.theme-switcher-dialog {
    width: min(540px, calc(100% - 32px));
    max-height: min(760px, calc(100vh - 40px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #111827;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
    overflow: hidden;
}
.theme-switcher-dialog::backdrop {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}
.theme-switcher-panel {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}
.theme-switcher-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e7eb;
}
.theme-switcher-title {
    margin: 0 0 4px;
    font:
        800 1.2rem/1.25 system-ui,
        sans-serif;
    color: #111827;
}
.theme-switcher-description {
    margin: 0;
    color: #64748b;
    font:
        400 0.9rem/1.45 system-ui,
        sans-serif;
}
.theme-switcher-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.theme-switcher-close:hover {
    background: #e2e8f0;
}
.theme-switcher-list {
    display: grid;
    gap: 10px;
    padding: 18px 24px 24px;
    overflow: auto;
}
.theme-switcher-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}
.theme-switcher-option:hover {
    transform: translateY(-1px);
    border-color: #94a3b8;
}
.theme-switcher-option.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}
.theme-switcher-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.theme-switcher-preview {
    width: 52px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 9px;
    background: linear-gradient(135deg, var(--preview-primary) 0 50%, var(--preview-secondary) 50% 100%);
}
.theme-switcher-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.theme-switcher-name {
    font:
        700 0.96rem/1.25 system-ui,
        sans-serif;
    color: #111827;
}
.theme-switcher-file {
    font:
        400 0.78rem/1.25 ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    color: #64748b;
}
.theme-switcher-badge {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font:
        700 0.7rem/1 system-ui,
        sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .theme-switcher-button {
        top: 64px;
        left: 16px;
    }
    .theme-switcher-header {
        padding: 20px;
    }
    .theme-switcher-list {
        padding: 16px 20px 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .theme-switcher-button .icon-svg {
        animation: none;
    }
}
.theme-switcher-button::before{
    content:"";
    position:absolute;
    top:50%;
    left:calc(100% + 8px);
    transform:translateY(-50%);
    border-width:6px 7px 6px 0;
    border-style:solid;
    border-color:transparent #111827 transparent transparent;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .1s ease,visibility .1s ease;
}

.theme-switcher-button::after{
    content:attr(data-tooltip);
    position:absolute;
    top:50%;
    left:calc(100% + 15px);
    transform:translateY(-50%) translateX(-4px);
    min-width:max-content;
    padding:9px 13px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:9px;
    background:#111827;
    color:#fff;
    box-shadow:0 10px 28px rgba(0,0,0,.28);
    font:600 .8rem/1 system-ui,sans-serif;
    letter-spacing:.01em;
    white-space:nowrap;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        opacity .1s ease,
        visibility .1s ease,
        transform .1s ease;
}

.theme-switcher-button:hover::before,
.theme-switcher-button:focus-visible::before,
.theme-switcher-button:hover::after,
.theme-switcher-button:focus-visible::after{
    opacity:1;
    visibility:visible;
}

.theme-switcher-button:hover::after,
.theme-switcher-button:focus-visible::after{
    transform:translateY(-50%) translateX(0);
}
