/*
 * MYE-1E-C · Global Year Context Switcher
 */

.command-nav .command-nav-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.global-year-switcher {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 9px 0 13px !important;
    border: 1px solid rgba(255, 152, 0, 0.24) !important;
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 152, 0, 0.09),
            rgba(255, 255, 255, 0.025)
        ) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.16);
    color: #f3f4f6;
    cursor: pointer;
    white-space: nowrap;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.global-year-switcher::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #45df91;
    box-shadow: 0 0 12px rgba(69, 223, 145, 0.7);
}

.global-year-switcher:hover {
    border-color: rgba(255, 152, 0, 0.58) !important;
    background:
        linear-gradient(
            135deg,
            rgba(255, 152, 0, 0.16),
            rgba(255, 255, 255, 0.04)
        ) !important;
    transform: translateY(-1px);
}

.global-year-switcher:focus-within {
    border-color: #ff9800 !important;
    box-shadow:
        0 0 0 3px rgba(255, 152, 0, 0.14),
        0 10px 30px rgba(0, 0, 0, 0.22);
}

.global-year-switcher__prefix {
    color: #9ba1aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.global-year-switcher__select {
    min-width: 66px;
    border: 0;
    outline: 0;
    padding: 7px 22px 7px 3px;
    background-color: transparent;
    color: #f7f7f8;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    cursor: pointer;
    color-scheme: dark;
}

.global-year-switcher__select option {
    background: #181a1e;
    color: #f7f7f8;
    font-weight: 700;
}

@media (max-width: 900px) {
    .command-nav .command-nav-tools {
        flex: 1 0 auto;
    }
}

@media (max-width: 640px) {
    .command-nav .command-nav-tools {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        padding-top: 8px;
    }

    .global-year-switcher {
        min-height: 36px;
    }
}
