.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: 236px;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 22px;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 0 7px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
    font-weight: 800;
}

.brand-name {
    font-size: 1.12rem;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.desktop-nav {
    display: grid;
    gap: 6px;
    margin-top: 42px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-weight: 650;
    text-align: left;
}

.nav-item:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text);
}

.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.profile-button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-top: auto;
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    text-align: left;
}

.profile-button:hover {
    background: rgba(15, 23, 42, 0.04);
}

.profile-copy {
    display: grid;
    min-width: 0;
}

.profile-copy strong,
.profile-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy small {
    color: var(--muted);
}

.avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 760;
}

.main-content {
    width: min(1180px, calc(100% - 298px));
    margin-left: 266px;
    padding: 42px 0 76px;
}

.app-page {
    animation: page-enter 180ms ease;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 680;
}

.mobile-nav {
    display: none;
}

.version-badge {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.67rem;
    font-weight: 800;
}

.month-input {
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-solid);
    color: var(--text);
}

.placeholder-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.placeholder-card h2 {
    margin: 0;
    letter-spacing: -0.035em;
}

.placeholder-card p {
    color: var(--muted);
}
