.lv1-topbar {
    height: var(--lv1-topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--lv1-border);
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
}

.lv1-topbar-left,
.lv1-topbar-center,
.lv1-topbar-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.lv1-topbar-left {
    gap: 10px;
    flex: 0 1 auto;
}

.lv1-topbar-center {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 8px;
}

.lv1-topbar-right {
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.lv1-page-context {
    min-width: 0;
}

.lv1-page-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
}

.lv1-page-subtitle {
    font-size: 11px;
    color: var(--lv1-muted);
    line-height: 1.15;
}

.lv1-search {
    width: min(520px, 100%);
    height: 36px;
    border: 1px solid var(--lv1-border);
    border-radius: 10px;
    background: #f8fafc;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lv1-search-icon {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
}

.lv1-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-size: 13px;
    color: var(--lv1-text);
}

.lv1-search input::placeholder {
    color: #94a3b8;
}

.lv1-notification-btn {
    position: relative;
}

.lv1-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lv1-user-btn {
    border: 1px solid var(--lv1-border);
    background: #fff;
    border-radius: 10px;
    height: 38px;
    max-width: 250px;
    padding: 4px 10px 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.lv1-user-btn::after {
    margin-left: 4px;
}

.lv1-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.lv1-user-info {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.lv1-user-name {
    max-width: 128px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv1-user-role {
    font-size: 10px;
    line-height: 1.1;
    color: var(--lv1-muted);
}
