:root {
    --ts-header-height: 64px;
}
.ts-header {
    /* width: 100%; */
    background: #5f6369;
    box-shadow: 0 2px 6px 0 rgba(120,90,180,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ts-header-height);
    height: var(--ts-header-height);
    padding: 0 1.5rem;
    position: relative;
    z-index: 1100;
}
.subtitle {
    display: inline-block;
    vertical-align: sub;
    font-size: 70%;
    margin-left: 4px;
    color: #666;
}
.ts-burger-menu {
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 2002;
}
.burger-menu span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s;
    display: block; position: relative;
    margin: 2px 0;
}
.burger-menu:hover span { background: #a793f6; }
.burger-menu span.open:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}
.burger-menu span.open:nth-child(2) {
    opacity: 0;
}
.burger-menu span.open:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}
.ts-header-title {
    font-size: 1.38rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #fff;
}
.dark-toggle {
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2002;
}
.dark-toggle span { pointer-events: none; }
.menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(40,40,70,0.18);
    z-index: 2000;
    backdrop-filter: blur(2px);
    transition: background 0.3s;
    display: flex;
}
.menu-panel.glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px) saturate(150%);
    border-radius: 18px 18px 18px 0;
    width: 290px;
    height: 100vh;
    box-shadow: 8px 0 24px 0 rgba(40,20,80,0.16);
    position: relative;
    padding: 2.4rem 1.7rem 2rem 1.7rem;
    display: flex; flex-direction: column;
    animation: slide-in 0.22s;
    margin-left: 0;
}
@keyframes slide-in {
    0% { transform: translateX(-70px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
.menu-list {
    list-style: none; padding: 0; margin: 0;
}
.menu-link {
    display: flex; align-items: center;
    font-size: 1.04rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    margin-bottom: 0.1em;
    transition: background 0.18s, color 0.18s;
    font-weight: 500;
}
.menu-link:hover:not(.disabled) {
    background: #ede5ff;
    color: #5b3cc4;
    text-decoration: none;
}
.menu-ico {
    display: inline-block;
    width: 1.6em;
    font-size: 1.3em;
    margin-right: 0.7em;
    text-align: center;
    opacity: 0.7;
}
.menu-link.disabled {
    pointer-events: none;
    color: #bbb;
    background: #f6f6f6;
}
.divider {
    border-top: 1px solid #eee;
    margin: 1.1em 0;
}
.logout-link {
    color: #be2340 !important;
    font-weight: bold;
}
.logout-link:hover {
    background: #ffe5eb !important;
    color: #a11a3a !important;
}
@media (max-width: 600px) {
    .ts-header {
        min-height: 54px;
        height: 54px;
        padding: 0 0.2rem;
        font-size: 0.95rem;
    }
    .ts-header-title {
        font-size: 1rem;
    }
    .ts-burger-menu {
        left: 0.5rem;
    }
}
