/* page-header-tools — 상단 헤더(.page-title-head) 우측 도구 영역.
   알림 종(nb-host) / 메뉴얼 / 내 정보(프로필) / 로그아웃 을 동일 톤으로 정렬.
   외부 영향을 받지 않도록 page-header-tools- 프리픽스로 격리. */

.page-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    white-space: nowrap;
    font-family: inherit;
    color: #4b5563;
}

.page-header-tools .nb-host {
    margin-right: 4px;
}

.page-header-tools-action,
.page-header-tools-profile {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    transition: background-color 120ms ease, color 120ms ease;
}

.page-header-tools-action:focus-visible,
.page-header-tools-profile:focus-visible {
    outline: 2px solid #4a8cff;
    outline-offset: 2px;
}

/* 단일 액션 (메뉴얼/로그아웃) */
.page-header-tools-action {
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.page-header-tools-action:hover {
    background: #f3f4f6;
    color: #111827;
}

.page-header-tools-icon {
    font-size: 20px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    color: #6b7280;
}

.page-header-tools-action:hover .page-header-tools-icon {
    color: inherit;
}

.page-header-tools-action--danger:hover {
    background: #fef2f2;
    color: #b42318;
}

.page-header-tools-action--danger:hover .page-header-tools-icon {
    color: #b42318;
}

/* 액션과 액션 사이 시각적 구분선 (프로필 양옆) */
.page-header-tools-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 4px;
    flex: 0 0 auto;
}

/* 프로필 카드 (이름 · 등급/지점, 클릭 시 내 정보 모달) */
.page-header-tools-profile {
    gap: 10px;
    padding: 6px 10px;
    text-align: left;
    max-width: 220px;
}

.page-header-tools-profile:hover {
    background: #f3f4f6;
}

.page-header-tools-profile-avatar {
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    flex: 0 0 auto;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.page-header-tools-profile:hover .page-header-tools-profile-avatar {
    color: #4b5563;
}

.page-header-tools-profile-body {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.page-header-tools-profile-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-header-tools-profile-meta {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-header-tools-profile-sep {
    margin: 0 4px;
    color: #d1d5db;
}

/* 좁은 화면: 텍스트는 숨기고 아이콘만 (프로필 카드는 이름만 유지) */
@media (max-width: 768px) {
    .page-header-tools-action {
        padding: 8px;
    }

    .page-header-tools-action .page-header-tools-label {
        display: none;
    }

    .page-header-tools-profile {
        max-width: 140px;
        padding: 6px 8px;
    }

    .page-header-tools-profile-meta {
        display: none;
    }
}
