.top-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 44px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
    box-sizing: border-box;
}

.header-back {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #222;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
    padding: 4px;
}

.header-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1;
    display: flex;
    align-items: center;
}

.header-menu-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #222;
    padding: 4px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-menu-btn:hover,
.header-menu-btn:active {
    background: transparent;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-clip-wrapper {
    position: fixed;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 99;
}

.nav-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    max-width: 240px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: none;
    pointer-events: auto;
}

.nav-menu.open {
    transform: translateX(0);
}

.nav-menu-header {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
}

.nav-menu-list {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.nav-group {
    border-top: 2px solid #ebebeb;
}

.nav-group:first-child {
    border-top: none;
}

.nav-group.nav-group-subtle {
    padding-top: 10px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.nav-menu-item-subtle {
    font-size: 12px;
    color: #666;
    padding: 7px 16px;
    border-bottom: none;
}

.nav-menu-item:last-child {
    border-bottom: none;
}

.nav-menu-item span:first-child {
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-menu-item.current {
    font-weight: 700;
    color: #111;
}

@media (hover: hover) {
    .nav-menu-item:hover {
        background: #fafafa;
    }
}

body {
    margin-top: 0;
    padding-top: 44px;
}
