/* =============================================================================
   Sidebar profile block: the avatar, name and sign-out button at the
   bottom of the shell sidebar.

   Lifted verbatim out of the inline <style> that _Layout.cshtml emitted before
   its own <!doctype html>, which put the whole document into quirks mode. The
   declarations are unchanged apart from colours moving onto design tokens; the
   !important flags are kept because the block previously loaded ahead of every
   other stylesheet and relied on them to win.

   Kept compact (88px tall, about half its old height): a 32px avatar, and the
   Logout row's icon lined up under it. Both start 36px from the sidebar edge
   (10px here + 26px in the row), the same as the menu group labels above
   (a 10px nav inset + 12px link padding + 14px label padding).
   ============================================================================= */

.synx-sidebar-bottom {
    padding: 6px 10px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
}

.synx-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 26px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    transition: background-color .15s ease;
}

.synx-profile-link:hover {
    background: var(--theme-surface-subtle, var(--gray-100));
    border: none !important;
    box-shadow: none !important;
}

.synx-avatar {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #ffffff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px; /* layout.css sizes it by flex-basis (40px), which beats width */
    overflow: hidden;
    position: relative;
}

.synx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-pill);
    display: block;
}

.synx-profile-name {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    line-height: var(--lh-tight);
}

.synx-logout-form {
    margin: 2px 0 0;
}

.synx-logout-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--theme-text-secondary, var(--gray-600));
    font-size: var(--fs-md);
    font-weight: var(--fw-normal);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 4px 8px 4px 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: start;
    transition: background-color .15s ease, color .15s ease;
}

.synx-logout-btn:hover {
    background: var(--theme-danger-subtle, #fef2f2);
    color: var(--color-danger);
}

.synx-logout-btn i {
    font-size: var(--icon-size-sm);
    color: currentColor;
}
