/* ==========================================================================
   employer-dashboard.css — 고용주 대시보드 전용 스타일
   --------------------------------------------------------------------------
   · 토큰은 css/jobs.css 의 :root 를 정본으로 쓴다 (--brand, --surface, --text …)
     → jobs.css 를 employer-dashboard.html 에서 함께 로드해야 한다.
   · 🔴 jobs.css 는 수정하지 않는다.
     (jobs / jobs-all / test-card 3개 페이지의 ?v= 연쇄 갱신을 피하기 위함)
   · 🔴 모든 클래스는 .empd- 접두사를 쓴다 (home.css 의 .home- 방식과 동일).
     jobs.css 와 .job-card / .empty-state / .logo 가 겹쳤기 때문에 필수다.
     예외는 상태 수식어 .pending / .approved / .rejected / .reviewing /
     .expired / .active 뿐이다 — Firestore status 값과 글자가 같아 문자열
     치환이 데이터 비교문을 망가뜨린다. 항상 .empd-* 부모 밑에서만 쓴다.
   · 이 페이지는 css/styles.css 를 로드하지 않는다.
     → 홈에서 겪은 옛 헤더 !important 충돌이 여기엔 없다.
   ========================================================================== */

        /* 전체 스타일 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        
        /* 헤더 스타일 */
        header {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }
        
        .empd-header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 5%;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .empd-logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        
        .empd-logo-icon {
            margin-right: 10px;
        }
        
        .empd-logo-text {
            font-weight: bold;
            font-size: 24px;
        }
        
        .empd-logo-text-world {
            color: #1e6091;
        }
        
        .empd-logo-text-job {
            color: #4d94c4;
        }
        
        .empd-logo-text-hub {
            color: #4ca58f;
        }
        
        .empd-logo-tagline {
            display: block;
            font-size: 12px;
            color: #6c757d;
            margin-top: -5px;
        }
        
        nav ul {
            display: flex;
            flex-direction: row;
            align-items: center;
            list-style: none;
            gap: 10px;
        }

        nav ul li {
            margin-left: 10px;
            white-space: nowrap;
        }
        
        nav ul li a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: #1e6091;
        }
        
        .empd-language-selector {
            position: relative;
            margin-left: 20px;
        }
        
        .empd-language-selector select {
            padding: 8px 15px;
            border-radius: 50px;
            border: 1px solid #ddd;
            background-color: #fff;
            cursor: pointer;
        }
        
        /* 모바일 메뉴 버튼 */
        .empd-mobile-menu-btn {
            display: none;
            font-size: 24px;
            cursor: pointer;
        }
        
        /* 사용자 프로필 드롭다운 */
        .empd-user-profile {
            position: relative;
            display: none !important;
        }
        
        .empd-user-profile[style*="block"] {
            display: flex !important;
            align-items: center;
        }
        
        .empd-dropdown-toggle {
            display: flex;
            align-items: center;
            padding: 8px 15px;
            border-radius: 50px;
            border: none;
            background-color: #f8f9fa;
            cursor: pointer;
            transition: background-color 0.3s;
            white-space: nowrap;
        }
        
        .empd-dropdown-toggle:hover {
            background-color: #e9ecef;
        }
        
        .empd-dropdown-toggle img {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 10px;
            object-fit: cover;
        }
        
        .empd-profile-avatar {
            width: 32px;
            height: 32px;
            min-width: 32px;
            min-height: 32px;
            max-width: 32px;
            max-height: 32px;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        
        .empd-profile-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .empd-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            width: 180px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
            display: none;
            z-index: 1000;
        }
        
        .empd-dropdown-menu a {
            display: block;
            padding: 8px 20px;
            color: #333;
            text-decoration: none;
            transition: background-color 0.3s;
        }
        
        .empd-dropdown-menu a:hover {
            background-color: #f8f9fa;
            color: #1e6091;
        }
        
        .empd-user-profile:hover .empd-dropdown-menu {
            display: block;
        }
        
        /* 대시보드 컨테이너 */
        .empd-dashboard-container {
            max-width: 1200px;
            margin: 100px auto 60px;
            padding: 0 20px;
            display: flex;
            gap: 30px;
        }
        /* 🔴 display:flex 가 브라우저 기본 [hidden]{display:none} 을 이긴다.
           접근 제어가 hidden 속성으로만 토글하므로(N4 원칙 3) 명시적으로 눌러 준다.
           이게 없으면 권한 판정 전·차단 중에도 대시보드 본문이 그대로 보인다. */
        .empd-dashboard-container[hidden] { display: none; }
        
        /* 사이드바 */
        .empd-dashboard-sidebar {
            width: 250px;
            flex-shrink: 0;
        }
        
        .empd-company-card {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .empd-company-logo {
            width: 100px;
            height: 100px;
            background-color: #f8f9fa;
            border-radius: 10px;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: #1e6091;
        }
        
        .empd-company-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 10px;
        }
        
        .empd-company-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .empd-company-verified {
            display: inline-block;
            background-color: #e3effd;
            color: #1e6091;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 10px;
        }
        
        .empd-post-job-btn {
            background-color: #1e6091;
            color: white;
            padding: 10px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 500;
            display: block;
            text-align: center;
            transition: background-color 0.3s;
        }
        
        .empd-post-job-btn:hover {
            background-color: #174d77;
        }
        
        /* 🔴 옛 사이드바용 .empd-dashboard-menu / -item / -link 규칙을 지웠다 (2026-09-03).
           3단계에서 사이드바 마크업을 .empd-nav__link 로 새로 짜면서 이 규칙들이
           겨냥하던 마크업이 사라졌다. .empd-dashboard-menu-link 만 **JS 훅**으로 남아
           있는데, 여기에 .active { background:#1e6091; color:#fff } 가 붙어 있어서
           하단 탭바의 활성 항목이 파란 박스로 칠해졌다(실측으로 발견).
           이 클래스는 이제 순수한 동작 훅이다 — 스타일을 주지 않는다. */

        /* 대시보드 메인 */
        .empd-dashboard-main {
            flex-grow: 1;
        }
        
        .empd-dashboard-header {
            margin-bottom: 30px;
        }
        
        .empd-dashboard-header h1 {
            font-size: 28px;
            color: #1e6091;
            margin-bottom: 10px;
        }
        
        .empd-dashboard-header p {
            color: #666;
        }
        
        /* 통계 카드 */
        .empd-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .empd-stat-card {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 20px;
            display: flex;
            align-items: center;
        }
        
        .empd-stat-icon {
            flex-shrink: 0;
            width: 60px;
            height: 60px;
            background-color: #e3effd;
            color: #1e6091;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-right: 15px;
        }
        
        .empd-stat-info {
            flex-grow: 1;
        }
        
        .empd-stat-title {
            font-size: 14px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .empd-stat-value {
            font-size: 24px;
            font-weight: 600;
            color: #333;
        }
        
        /* 탭 컨테이너 */
        .empd-tab-container {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            margin-bottom: 30px;
        }
        
        .empd-tab-header {
            display: flex;
            border-bottom: 1px solid #eee;
        }
        
        .empd-tab-btn {
            padding: 15px 20px;
            background-color: transparent;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s;
            border-bottom: 2px solid transparent;
        }
        
        .empd-tab-btn.active {
            color: #1e6091;
            border-bottom-color: #1e6091;
        }
        
        .empd-tab-content {
            display: none;
            padding: 20px;
        }
        
        .empd-tab-content.active {
            display: block;
        }
        
        /* 공고 목록 */
        .empd-job-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .empd-job-card {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .empd-job-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .empd-job-info {
            flex-grow: 1;
        }
        
        .empd-job-title {
            font-size: 18px;
            font-weight: 600;
            color: #1e6091;
            margin-bottom: 5px;
        }
        
        .empd-job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 10px;
            font-size: 14px;
            color: #666;
        }
        
        .empd-job-meta-item {
            display: flex;
            align-items: center;
        }
        
        .empd-job-meta-item span {
            margin-right: 5px;
        }
        
        .empd-job-status {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            margin-right: 10px;
        }
        
        .empd-status-pending {
            background-color: #fff3cd;
            color: #664d03;
        }
        
        .empd-status-approved {
            background-color: #d1e7dd;
            color: #0f5132;
        }
        
        .empd-status-rejected {
            background-color: #f8d7da;
            color: #842029;
        }
        
        .empd-job-stats {
            display: flex;
            gap: 15px;
            font-size: 14px;
        }
        
        .empd-job-stat {
            display: flex;
            align-items: center;
        }
        
        .empd-job-stat span {
            margin-right: 5px;
        }
        
        .empd-job-actions {
            display: flex;
            gap: 10px;
        }
        
        .empd-action-btn {
            background-color: transparent;
            border: none;
            color: #1e6091;
            cursor: pointer;
            padding: 5px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        
        .empd-action-btn:hover {
            background-color: #e3effd;
        }
        
        /* 지원자 목록 */
        .empd-applicant-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .empd-applicant-card {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
        }
        
        .empd-applicant-info {
            display: flex;
            align-items: center;
            flex-grow: 1;
        }
        
        .empd-applicant-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #e3effd;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 20px;
            color: #1e6091;
        }
        
        .empd-applicant-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }
        
        .empd-applicant-details {
            flex-grow: 1;
        }
        
        .empd-applicant-name {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .empd-applicant-job {
            font-size: 14px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .empd-applicant-date {
            font-size: 12px;
            color: #999;
        }
        
        .empd-applicant-actions {
            display: flex;
            gap: 10px;
        }
        
        .empd-applicant-status {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .empd-status-reviewing {
            background-color: #cfe2ff;
            color: #084298;
        }
        
        .empd-status-accepted {
            background-color: #d1e7dd;
            color: #0f5132;
        }
        
        /* 빈 상태 */
        .empd-empty-state {
            padding: 40px 20px;
            text-align: center;
        }
        
        .empd-empty-icon {
            font-size: 48px;
            color: #ccc;
            margin-bottom: 20px;
        }
        
        .empd-empty-text {
            font-size: 16px;
            color: #666;
            margin-bottom: 20px;
        }
        
        .empd-empty-action {
            display: inline-block;
            background-color: #1e6091;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.3s;
        }
        
        .empd-empty-action:hover {
            background-color: #174d77;
        }
        
        /* 반응형 디자인 */
        @media (max-width: 992px) {
            .empd-dashboard-container {
                flex-direction: column;
            }
            
            .empd-dashboard-sidebar {
                width: 100%;
                margin-bottom: 30px;
            }
            
            .empd-dashboard-menu {
                display: flex;
                overflow-x: auto;
            }
            
            .empd-dashboard-menu-item {
                border-bottom: none;
                border-right: 1px solid #eee;
            }
            
            .empd-dashboard-menu-item:last-child {
                border-right: none;
            }
            
            .empd-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .empd-job-card {
                flex-direction: column;
            }
            
            .empd-job-actions {
                margin-top: 10px;
                align-self: flex-end;
            }
            
            .empd-applicant-card {
                flex-direction: column;
            }
            
            .empd-applicant-actions {
                margin-top: 10px;
                align-self: flex-end;
            }
            
            .empd-stats-grid {
                grid-template-columns: 1fr;
            }
            
            nav ul {
                display: none;
            }
            
            .empd-mobile-menu-btn {
                display: block;
            }
            
            .empd-tab-header {
                flex-wrap: wrap;
            }
            
            .empd-tab-btn {
                flex-grow: 1;
                text-align: center;
                padding: 10px;
                font-size: 14px;
            }
        }
        
        @media (max-width: 576px) {
            .empd-header-container {
                padding: 10px 15px;
                flex-wrap: nowrap;
                gap: 8px;
            }
            .empd-logo { flex: 0 1 auto; min-width: 0; overflow: hidden; }
            .empd-logo-text { font-size: 14px; }
            .empd-logo-tagline { display: none; }
            .empd-logo-icon svg { width: 26px; height: 26px; }
            .empd-logo-icon { margin-right: 5px; }
            .empd-language-selector { margin-left: auto; }
            .empd-language-selector select { padding: 5px 8px; font-size: 12px; }
            .empd-auth-buttons { flex-shrink: 0; }
            .empd-auth-buttons button { padding: 6px 10px; font-size: 12px; }
            .empd-user-profile { align-items: center; gap: 5px; flex-shrink: 0; }
            .empd-user-profile[style*="block"], .empd-user-profile[style*="flex"] { display: flex !important; }
            .empd-user-profile #user-name { display: none; }
            .empd-user-profile .empd-dropdown-toggle { padding: 5px; border-radius: 50%; }
            .empd-user-profile .empd-profile-avatar { width: 28px; height: 28px; margin-right: 0; }
            #notification-container { flex-shrink: 0; }
        }
        
        /* 추가 스타일 */
        .empd-status-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
        }
        
        .empd-status-badge.approved {
            background: #d4edda;
            color: #155724;
        }
        
        .empd-status-badge.pending {
            background: #fff3cd;
            color: #856404;
        }
        
        .empd-status-badge.rejected {
            background: #f8d7da;
            color: #721c24;
        }
        
        .empd-status-badge.expired {
            background: #e2e3e5;
            color: #383d41;
        }
        
        .empd-status-badge.reviewing {
            background: #d1ecf1;
            color: #0c5460;
        }
        
        .empd-empty-state {
            text-align: center;
            padding: 60px 20px;
        }
        
        .empd-empty-icon {
            font-size: 64px;
            margin-bottom: 20px;
        }
        
        .empd-empty-text {
            font-size: 18px;
            color: #6c757d;
            margin-bottom: 30px;
        }
        
        .empd-btn-sm {
            padding: 8px 16px;
            font-size: 14px;
        }
        
        .empd-btn-danger {
            background-color: #dc3545;
        }
        
        .empd-btn-danger:hover {
            background-color: #c82333;
        }
        
        .empd-job-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }
        
        .empd-job-card-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin: 0;
        }
        
        .empd-job-card-body {
            margin-bottom: 15px;
        }
        
        .empd-job-card-info {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 10px;
        }
        
        .empd-job-card-info span {
            font-size: 14px;
            color: #666;
        }
        
        .empd-job-card-date {
            font-size: 13px;
            color: #999;
        }
        
        .empd-job-card-actions {
            display: flex;
            gap: 10px;
        }
        
        .empd-applicant-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .empd-applicant-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .empd-applicant-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .empd-applicant-info h4 {
            margin: 0 0 5px 0;
            font-size: 16px;
            font-weight: 600;
        }
        
        .empd-applicant-info .empd-text-muted {
            font-size: 14px;
            color: #6c757d;
        }
        
        .empd-applicant-card-body {
            margin-bottom: 15px;
        }
        
        .empd-applicant-card-body .empd-text-muted {
            font-size: 13px;
            color: #999;
        }
        
        .empd-applicant-card-actions {
            display: flex;
            gap: 10px;
        }
        
        .empd-text-muted {
            color: #6c757d !important;
        }

        /* ==================== 접근 안내 화면 ====================
           대시보드 본문 대신 보여주는 전체 화면 안내다.
           🔴 hidden 속성만으로 토글한다 — display 를 인라인으로 강제하지 않는다(N4 원칙 3).
              그래서 [hidden] 을 명시적으로 눌러 준다(.empd-access-gate 의 display:flex 가
              브라우저 기본 [hidden]{display:none} 을 이기기 때문). */
        .empd-access-gate {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 140px);
            padding: 40px 20px;
        }
        .empd-access-gate[hidden] { display: none; }

        .empd-access-gate__box {
            width: 100%;
            max-width: 460px;
            text-align: center;
            background: #fff;
            border: 1px solid #e6e9ef;
            border-radius: 14px;
            padding: 40px 28px;
            box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
        }
        .empd-access-gate__icon { font-size: 40px; line-height: 1; margin-bottom: 16px; }
        .empd-access-gate__title {
            margin: 0 0 10px;
            font-size: 21px;
            font-weight: 700;
            color: #1a2b4c;
            line-height: 1.35;
            word-break: keep-all;
        }
        .empd-access-gate__desc {
            margin: 0;
            font-size: 15px;
            line-height: 1.65;
            color: #5a6478;
            word-break: keep-all;
        }
        .empd-access-gate__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 26px;
        }
        .empd-access-gate__btn {
            display: inline-block;
            padding: 11px 20px;
            border-radius: 8px;
            border: 1px solid #d5dae4;
            background: #fff;
            color: #33415c;
            font-size: 15px;
            font-family: inherit;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: background .15s, border-color .15s;
        }
        .empd-access-gate__btn:hover { background: #f4f6fa; border-color: #b9c1cf; }
        .empd-access-gate__btn--primary {
            background: #1e6091;
            border-color: #1e6091;
            color: #fff;
        }
        .empd-access-gate__btn--primary:hover { background: #17527d; border-color: #17527d; }

        @media (max-width: 480px) {
            .empd-access-gate { min-height: calc(100vh - 110px); padding: 28px 16px; }
            .empd-access-gate__box { padding: 32px 20px; }
            .empd-access-gate__title { font-size: 19px; }
            .empd-access-gate__actions { flex-direction: column; }
            .empd-access-gate__btn { width: 100%; }
        }


/* ==========================================================================
   3단계 — 골격·디자인 개편 (2026-09-03)
   목업 기준으로 헤더 / 사이드바 / 상단 KPI / 본문 패널을 새로 짰다.
   위쪽 규칙은 인라인에서 옮겨온 기존 컴포넌트(카드·탭·폼)라 그대로 둔다.
   ========================================================================== */

/* ── 헤더 — 대시보드 전용 ───────────────────────────────────────────────
   🔴 홈의 .wjh-hdr 를 쓰지 않는다. 목업이 대시보드 전용 헤더이고
      (전역 메뉴 6개 없이 로고 + 라벨 + 도구), 홈 헤더는 css/home.css 의
      .home 스코프와 한 쌍이라 떼어 오려면 1-C ①(헤더 공통화)이 선행돼야 한다.
      홈 헤더의 900~1200px 겹침 결함(1-C ②)도 함께 물려받게 된다.
   ⚠️ js/auth.js 계약 id 는 그대로 유지한다:
      #user-profile #user-name #profile-image #logout-button */
.empd-hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.empd-hdr__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
}
.empd-hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.empd-hdr__mark { width: 34px; height: 34px; flex: none; }
.empd-hdr__wordmark { display: flex; gap: 4px; font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.empd-hdr__w1 { color: var(--brand); }
.empd-hdr__w2 { color: #ffc045; }
.empd-hdr__w3 { color: var(--brand-light); }

.empd-hdr__divider { width: 1px; height: 22px; background: var(--border); flex: none; }
.empd-hdr__label { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }

.empd-hdr__spacer { flex: 1 1 auto; }
.empd-hdr__tools { display: flex; align-items: center; gap: 10px; flex: none; }

.empd-hdr select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

/* 프로필 — auth.js 가 #user-profile 의 인라인 display 를 직접 만진다.
   그래서 래퍼에는 display 를 걸지 않고, 안쪽 요소가 레이아웃을 잡는다. */
.empd-hdr__profile { position: relative; }
.empd-hdr__profile-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.empd-hdr__profile-btn:hover { background: var(--input-bg); border-color: var(--border); }
.empd-hdr__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  overflow: hidden;
  flex: none;
}
.empd-hdr__avatar img { width: 100%; height: 100%; object-fit: cover; }
.empd-hdr__who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.empd-hdr__who-name { font-size: 13px; font-weight: 700; color: var(--text); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empd-hdr__who-role { font-size: 11px; color: var(--text-subtle); }
.empd-hdr__caret { font-size: 10px; color: var(--text-subtle); }

.empd-hdr__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
  padding: 6px;
  display: none;
}
.empd-hdr__profile:hover .empd-hdr__menu,
.empd-hdr__profile:focus-within .empd-hdr__menu { display: block; }
.empd-hdr__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.empd-hdr__menu a:hover { background: var(--input-bg); }


/* ── 레이아웃 ──────────────────────────────────────────────────────────── */
.empd-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 24px 60px;
  align-items: start;
}
.empd-shell[hidden] { display: none; }

/* ── 사이드바 ──────────────────────────────────────────────────────────── */
/* 🔴 사이드바는 데스크톱(≥769px) 전용이다. JS 로 hidden 을 걸지 않는다.
   4단계에서 잡은 그리드 버그의 원인이 "사이드바를 hidden 으로 감추면
   그리드 아이템에서 빠져 본문이 첫 칸(244px)으로 밀려나는 것"이었다.
   이제 감추는 주체가 미디어쿼리 하나뿐이라 그 경로 자체가 없어졌다.
   (grid-column 못박기는 아래에 그대로 둔다 — 이중 안전장치) */
.empd-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }

.empd-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
}
.empd-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}
.empd-nav__link:hover { background: var(--input-bg); color: var(--text); }
.empd-nav__link.active { background: var(--brand-tint); color: var(--brand); font-weight: 700; }
.empd-nav__ico { width: 18px; text-align: center; flex: none; font-size: 15px; }
.empd-nav__txt { flex: 1 1 auto; min-width: 0; }

/* 준비 중 항목 — 링크처럼 보이되 눌러도 이동하지 않는다 */
.empd-nav__link--soon { color: var(--text-subtle); cursor: default; }
.empd-nav__link--soon:hover { background: transparent; color: var(--text-subtle); }
.empd-soon {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--tag-bg);
  color: var(--tag-text);
  white-space: nowrap;
}

.empd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.empd-card__label { font-size: 11px; font-weight: 700; color: var(--text-subtle); letter-spacing: .3px; }
.empd-card__value { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--text); }
.empd-card__note { margin-top: 3px; font-size: 12px; color: var(--text-subtle); word-break: keep-all; }

.empd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.empd-btn:hover { background: var(--input-bg); }
.empd-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.empd-btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.empd-btn--block { display: flex; width: 100%; margin-top: 12px; }
.empd-btn--soon { opacity: .55; cursor: default; }
.empd-btn--soon:hover { background: var(--surface); }

/* 🔴 JS 가 그리는 옛 버튼(class="btn btn-primary btn-sm")에 규칙이 없었다.
   이 페이지는 css/styles.css 를 로드하지 않아 기본 버튼 스타일이 아예 없다.
   4단계에서 마크업을 .empd-btn 으로 옮길 때까지 최소한의 모양을 준다. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--input-bg); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--tag-bg); border-color: var(--border); color: var(--tag-text); }

/* ── 본문 상단 ─────────────────────────────────────────────────────────── */
.empd-hello { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.empd-hello__title { margin: 0; font-size: 23px; font-weight: 800; color: var(--text); line-height: 1.3; word-break: keep-all; }
.empd-hello__sub { margin: 5px 0 0; font-size: 14px; color: var(--text-muted); word-break: keep-all; }
.empd-hello__date { font-size: 13px; color: var(--text-subtle); white-space: nowrap; }

/* KPI 카드 5장
   🔴 목업의 "이번 주 +N" 증감 줄은 넣지 않았다. 주간 스냅샷을 적립하는 곳이
      없어 값을 만들 수 없고, 5장 전부에 빈 줄을 두면 높이만 늘고 밀도가 떨어진다.
      스냅샷이 생기면 .empd-kpi__delta 를 추가하면 된다. */
.empd-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.empd-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  min-width: 0;
}
.empd-kpi__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.empd-kpi__title { font-size: 12.5px; color: var(--text-muted); font-weight: 600; word-break: keep-all; }
.empd-kpi__ico {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.empd-kpi__value { margin-top: 8px; font-size: 25px; font-weight: 800; color: var(--text); line-height: 1.1; }
.empd-kpi--soon .empd-kpi__value { color: var(--text-subtle); font-size: 14px; font-weight: 700; padding: 7px 0 6px; }

/* ── 패널 ──────────────────────────────────────────────────────────────── */
.empd-row { display: grid; gap: 14px; margin-bottom: 14px; }
.empd-row--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.empd-row--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.empd-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px 18px;
  min-width: 0;
}
.empd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.empd-panel__title { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--text); }
.empd-panel__more { font-size: 12.5px; color: var(--brand); text-decoration: none; font-weight: 600; white-space: nowrap; }
.empd-panel__more:hover { text-decoration: underline; }

/* 차트 자리 — 일자별 데이터를 적립하는 곳이 없어 5단계로 미뤘다 */
.empd-chart-slot {
  height: 210px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-subtle);
  background: var(--input-bg);
  text-align: center;
  padding: 12px;
}
.empd-chart-slot__ico { font-size: 24px; }
.empd-chart-slot__txt { font-size: 12.5px; word-break: keep-all; }

/* 빠른 작업 */
.empd-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.empd-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  word-break: keep-all;
}
.empd-quick__item:hover { background: var(--brand-tint); border-color: var(--brand-tint-border); color: var(--brand); }
.empd-quick__ico { font-size: 19px; }
.empd-quick__item--soon { opacity: .5; cursor: default; }
.empd-quick__item--soon:hover { background: var(--surface); border-color: var(--border); color: var(--text-muted); }


/* ── 이관해 온 카드 컴포넌트의 폭 적응 (3단계) ──────────────────────────
   옛 대시보드는 본문이 한 덩어리라 카드가 넓었다. 3단계에서 본문을 7fr/8fr
   패널로 쪼개면서 카드 폭이 587px 로 줄었고, 버튼 글자가 세로로 쪼개졌다.
   4단계에서 목업의 표 형태로 바꿀 때까지 최소한만 손본다. */
.empd-job-card-header { gap: 12px; }
.empd-job-card-title { min-width: 0; }
.empd-job-card-actions { flex: none; flex-wrap: wrap; justify-content: flex-end; }
.empd-job-card-actions .btn,
.empd-job-card-actions .empd-action-btn { white-space: nowrap; }
.empd-job-card-info { flex-wrap: wrap; }

/* 지원자 카드도 같은 이유로 줄바꿈을 허용한다 */
.empd-applicant-card { flex-wrap: wrap; gap: 10px; }
.empd-applicant-actions { flex-wrap: wrap; }
.empd-applicant-actions .btn,
.empd-applicant-actions .empd-action-btn { white-space: nowrap; }

/* ── 반응형 ────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .empd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .empd-row--7-5, .empd-row--8-4 { grid-template-columns: minmax(0, 1fr); }
}

/* 🔴 768px 로 맞췄다 — 하단 탭바가 켜지는 경계와 같아야 한다.
   예전엔 900px 이라, 769~900px 에서 "사이드바는 숨겨졌는데 탭바는 아직 없는"
   구간이 생겨 메뉴가 통째로 사라졌을 것이다. */
@media (max-width: 768px) {
  .empd-shell { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 48px; }
  .empd-side { display: none; }
  .empd-hdr__label { display: none; }
  .empd-hdr__divider { display: none; }
}

@media (max-width: 640px) {
  .empd-hdr__inner { padding: 8px 14px; gap: 10px; }
  .empd-hdr__who { display: none; }
  /* 🔴 워드마크를 감춘다. 햄버거 + 로고 + 워드마크 + 도구가 375px 을 39px 넘겼다(실측).
     심볼만 남겨도 브랜드는 알아볼 수 있고, 모바일 헤더의 표준 패턴이다. */
  .empd-hdr__wordmark { display: none; }
  .empd-hdr__tools { min-width: 0; }
  .empd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empd-hello__title { font-size: 20px; }
  .empd-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 340px 미만에서만 1열로 떨어뜨린다. 375px 은 2열이 낫다 —
   KPI 5장을 1열로 쌓으면 본문이 화면 5개분 아래로 밀린다. */
@media (max-width: 340px) {
  .empd-hdr__wordmark { font-size: 15px; }
  .empd-kpis { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   4단계 — 데이터 연동 컴포넌트 (2026-09-03)
   목업의 "최근 공고 성과" 표와 지원자 행. JS 가 innerHTML 로 그린다.
   ========================================================================== */

/* KPI 부제 — "진행 중 N · 마감 N" */
.empd-kpi__sub { margin-top: 5px; font-size: 11.5px; color: var(--text-subtle); word-break: keep-all; }

/* ── 최근 공고 성과 표 ─────────────────────────────────────────────────── */
.empd-t-wrap { overflow-x: auto; margin: 0 -4px; }
.empd-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.empd-t th,
.empd-t td { padding: 10px 8px; text-align: left; vertical-align: middle; }
.empd-t th {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.empd-t tbody tr { border-bottom: 1px solid var(--border); }
.empd-t tbody tr:last-child { border-bottom: 0; }
.empd-t__num { text-align: right; white-space: nowrap; }
.empd-t th.empd-t__num { text-align: right; }
.empd-t__job { min-width: 160px; }
.empd-t__title {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  word-break: keep-all;
}
.empd-t__title:hover { color: var(--brand); text-decoration: underline; }
.empd-t__sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-subtle); }

/* ── 상태 배지 — 공고와 지원자가 함께 쓴다 ────────────────────────────── */
.empd-state {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.empd-state--live      { background: var(--new-bg);        color: var(--new-text); }
.empd-state--closed    { background: var(--dday-closed-bg); color: var(--dday-closed-text); }
.empd-state--pendingReview { background: #fff4e0; color: #9a6414; }
.empd-state--rejected  { background: #fdecec;              color: #b3261e; }
/* 지원자 상태 */
.empd-state--pending   { background: var(--brand-tint);    color: var(--brand); }
.empd-state--reviewing { background: #fff4e0;              color: #9a6414; }
.empd-state--accepted  { background: var(--new-bg);        color: var(--new-text); }

/* ── 지원자 행 ─────────────────────────────────────────────────────────── */
.empd-ap {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.empd-ap:last-child { border-bottom: 0; }
.empd-ap__avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.empd-ap__body { flex: 1 1 140px; min-width: 0; }
.empd-ap__name { font-size: 13.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empd-ap__job { font-size: 11.5px; color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empd-ap__date { font-size: 11.5px; color: var(--text-subtle); white-space: nowrap; flex: none; }
.empd-ap__actions { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; }

.empd-status-select {
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.empd-status-select:disabled { opacity: .6; cursor: progress; }
.empd-ap__actions .empd-btn { padding: 6px 10px; font-size: 12px; }

@media (max-width: 640px) {
  .empd-ap__date { display: none; }
  .empd-ap__actions { flex: 1 1 100%; justify-content: flex-end; }
}

/* 🔴 그리드 배치를 명시한다 (2026-09-03 실측으로 발견한 버그).
   .empd-side 를 hidden 으로 감추면 그리드 아이템에서 빠져,
   .empd-dashboard-main 이 첫 칸(244px)으로 밀려나 본문이 통째로 찌그러졌다.
   모바일에서 햄버거로 사이드바를 닫으면 데스크톱 폭으로 되돌아왔을 때
   재현된다. 칸을 못박아 두면 사이드바 표시 여부와 무관해진다.
   min-width:0 은 안쪽 표(.empd-t-wrap)가 제대로 줄어들게 하는 데 필요하다. */
.empd-side { grid-column: 1; }
.empd-dashboard-main { grid-column: 2; min-width: 0; }

@media (max-width: 768px) {
  .empd-side,
  .empd-dashboard-main { grid-column: 1; }
}

/* ── 지원자 현황 차트 (5단계) ───────────────────────────────────────────
   외부 라이브러리 없이 인라인 SVG 로 그린다.
   🔴 선은 하나뿐이다 — "신규 지원"(createdAt 버킷팅).
      목업의 "검토 중 / 합격" 추이는 상태 변경 이력이 없어 그릴 수 없다.
      자세한 근거는 renderApplicantChart 주석 참조. */
.empd-c__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.empd-c__legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.empd-c__swatch {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--brand);
  display: inline-block;
}
.empd-c__range { font-size: 11.5px; color: var(--text-subtle); white-space: nowrap; }

.empd-c { width: 100%; height: 178px; display: block; overflow: visible; }
.empd-c__grid { stroke: var(--border); stroke-width: 1; }
.empd-c__area { fill: var(--brand-tint); }
.empd-c__line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.empd-c__dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.empd-c__ytext { fill: var(--text-subtle); font-size: 9px; text-anchor: end; }
.empd-c__xtext { fill: var(--text-subtle); font-size: 9px; }

/* ==========================================================================
   모바일 하단 탭바 + "더보기" 슬라이드 패널 (2026-09-03)
   🔴 대시보드 전용이다. 홈이나 다른 페이지는 건드리지 않는다.
      (전체 사이트 하단 탭바는 1-C ① 헤더 공통화 때 별도로 논의)
   ========================================================================== */

/* 데스크톱에서는 아예 없다. ≤768px 에서만 켠다. */
.empd-tabbar,
.empd-more,
.empd-scrim { display: none; }

@media (max-width: 768px) {
  /* ── 하단 탭바 ─────────────────────────────────────────────────────── */
  .empd-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: var(--surface);
    border-top: 1px solid var(--border);
    /* iOS 사파리 하단 바 영역 */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -1px 6px rgba(16, 24, 40, .06);
  }
  .empd-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px 7px;
    border: 0;
    background: none;
    color: var(--text-subtle);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
    /* 라벨이 길어도 줄바꿈 없이 한 줄로 */
    white-space: nowrap;
  }
  .empd-tabbar__ico { font-size: 18px; line-height: 1; }
  .empd-tabbar__txt {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .empd-tabbar__item.active { color: var(--brand); }
  .empd-tabbar__item.active .empd-tabbar__ico { transform: translateY(-1px); }

  /* 탭바가 본문 마지막 요소를 가리지 않게 여백을 준다.
     56px(탭바) + 안전영역 + 여유 */
  .empd-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  /* ── "더보기" 패널 — 오른쪽에서 미끄러져 들어온다 ──────────────────── */
  .empd-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(16, 24, 40, .38);
    opacity: 0;
    transition: opacity .22s ease;
  }
  .empd-scrim[hidden] { display: none; }
  .empd-scrim.is-open { opacity: 1; }

  .empd-more {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 140;
    width: min(84vw, 320px);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(16, 24, 40, .12);
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.22, .61, .36, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .empd-more[hidden] { display: none; }
  .empd-more.is-open { transform: translateX(0); }

  .empd-more__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex: none;
  }
  .empd-more__title { font-size: 15px; font-weight: 700; color: var(--text); }
  .empd-more__close {
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
  }

  .empd-more__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .empd-more__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
  }
  .empd-more__link:hover { background: var(--input-bg); color: var(--text); }
  .empd-more__link.active { background: var(--brand-tint); color: var(--brand); font-weight: 700; }
  .empd-more__link--soon { color: var(--text-subtle); cursor: default; }
  .empd-more__link--soon:hover { background: transparent; color: var(--text-subtle); }
  .empd-more__body .empd-btn { margin-top: 8px; }
  .empd-more__body .empd-btn:first-of-type { margin-top: 14px; }

  /* 패널이 열려 있는 동안 뒤 배경이 스크롤되지 않게 */
  body.empd-more-open { overflow: hidden; }
}

/* 애니메이션을 줄이도록 설정한 사용자 */
@media (prefers-reduced-motion: reduce) {
  .empd-more, .empd-scrim { transition: none; }
}

/* ==========================================================================
   기업 정보 폼 — 언어 탭 + 필드 (2-A)
   🔴 인라인 style 을 쓰지 않는다. 옛 폼은 필드마다 style="" 이 붙어 있어
      한 곳을 고치면 나머지가 어긋났다.
   ========================================================================== */

.empd-cofield { margin-bottom: 20px; }

.empd-cofield__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.empd-cofield__help {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.empd-coinput {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 16px;
  font-family: inherit;
}
.empd-coinput--area { min-height: 150px; resize: vertical; }

/* 로고·커버 미리보기 */
.empd-coimg { display: flex; align-items: center; gap: 20px; }
.empd-coimg__box {
  background-color: #f8f9fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #1e6091;
  flex: none;
  overflow: hidden;
}
.empd-coimg__box--logo  { width: 100px; height: 100px; }
.empd-coimg__box--cover { width: 200px; height: 70px; font-size: 28px; }

/* ── 언어 탭 ─────────────────────────────────────────────────────────── */
.empd-lang {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 18px 4px;
  margin-bottom: 22px;
}

.empd-lang__head { margin-bottom: 14px; }
.empd-lang__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.empd-lang__hint  { margin: 0; font-size: 13px; color: #666; }

.empd-lang__tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 18px;
}

.empd-lang__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
}
.empd-lang__tab:hover { color: #1e6091; }
.empd-lang__tab.active { color: #1e6091; border-bottom-color: #1e6091; }

/* 입력된 언어 표시 — 어느 탭을 아직 안 채웠는지 한눈에 보이게 한다 */
.empd-lang__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex: none;
}

/* 🔴 [hidden] 을 명시한다. 패널·점이 flex 계열이면 브라우저 기본
   [hidden]{display:none} 을 이긴다 — .access-gate 에서 겪은 함정이다. */
.empd-lang__panel[hidden],
.empd-lang__dot[hidden] { display: none !important; }

/* ==========================================================================
   사업장 주소 (2-B)
   ========================================================================== */

.empd-addr {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
}

/* 자동완성 결과 — 구글이 돌려주는 값이라 번역하지 않는다 */
.empd-addr__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
}
.empd-addr__list li + li { border-top: 1px solid #f0f0f0; }
.empd-addr__list button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: #1f2937;
}
.empd-addr__list button:hover { background: #f4f6f8; }
.empd-addr__none { padding: 11px 14px; font-size: 14px; color: #6b7280; }

.empd-addr__picked {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}
.empd-addr__formatted { margin: 0 0 10px; font-weight: 600; font-size: 15px; }

/* 구성요소 — 읽기 전용이다. 사람이 고치면 좌표와 어긋난다 */
.empd-addr__grid {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 5px 12px;
  margin: 0 0 12px;
  font-size: 13px;
}
.empd-addr__grid dt { color: #6b7280; }
.empd-addr__grid dd { margin: 0; color: #1f2937; word-break: break-word; }

.empd-addr__clear {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  padding: 7px 13px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: #6b7280;
}
.empd-addr__clear:hover { border-color: #dc2626; color: #dc2626; }

.empd-addr__empty { margin: 14px 0 0; font-size: 14px; color: #6b7280; }

.empd-addr__map {
  height: 280px;
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* 🔴 [hidden] 명시 — 이 절의 요소가 flex/grid 로 바뀌어도 안전하게 감춰지도록 */
.empd-addr [hidden],
.empd-addr__map[hidden],
.empd-addr__picked[hidden] { display: none !important; }

/* ==========================================================================
   조건 태그 · 연봉 · 기업 문화 (2-C)
   ========================================================================== */

.empd-tags, .empd-salary, .empd-culture {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
}

/* 태그 — 체크박스 6종 */
.empd-tags__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.empd-tags__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.empd-tags__item:hover { border-color: #1e6091; }
.empd-tags__item input { width: 16px; height: 16px; flex: none; cursor: pointer; }

/* 연봉 — 범위 두 칸 */
.empd-salary__range { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 직무별 행 — 직무명 / 금액 / 삭제 */
.empd-salary__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.empd-salary__del {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: #6b7280;
  white-space: nowrap;
}
.empd-salary__del:hover { border-color: #dc2626; color: #dc2626; }
#company-salary-add:disabled { opacity: .5; cursor: not-allowed; }

/* 문화 사진 미리보기 */
.empd-culture__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.empd-culture__item { position: relative; width: 120px; height: 84px; }
.empd-culture__item img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; display: block; border: 1px solid #e5e7eb;
}
.empd-culture__del {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid #ddd; background: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; color: #6b7280;
}

/* 🔴 [hidden] 명시 — grid/flex 가 브라우저 기본 [hidden] 을 이긴다 */
.empd-tags [hidden], .empd-salary [hidden], .empd-culture [hidden] { display: none !important; }

/* ── 이미지 미리보기 · 문화 사진 (⑦) ─────────────────────────────────
   🔴 커버 미리보기를 4:1 로 맞춘다. 권장 자산이 1200x300 이고,
      상세 페이지에서 background-size:cover 로 가로 띠처럼 잘린다.
      예전 200x70(2.9:1)은 실제보다 덜 잘려 보여서, 세로 사진을 올린 뒤
      "왜 이렇게 잘리나" 를 저장한 다음에야 알게 됐다. */
.empd-coimg__box--cover { width: 320px; height: 80px; font-size: 28px; }

/* 아직 저장하지 않은 사진 — 저장된 것과 구분되어야 한다.
   같은 목록에 섞여 있는데 구분이 없으면 "이미 올라간 줄" 알고 나가 버린다. */
.empd-culture__item--pending img { border-style: dashed; border-color: #1e6091; }
.empd-culture__badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(30, 96, 145, .88);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}

/* ── 기업 페이지 동선 (⑧) ────────────────────────────────────────────
   고용주가 자기 정보를 채워도 그게 구직자에게 어떻게 보이는지 확인할
   방법이 없었다. 폼 안에서 바로 열 수 있게 한다. */
.empd-copage {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}
.empd-copage[hidden] { display: none !important; }
.empd-copage__btn {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #1e6091;
  border-radius: 8px;
  color: #1e6091;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.empd-copage__btn:hover { background: #1e6091; color: #fff; }
.empd-copage__hint {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #6b7280;
}

/* 저장 성공 줄 — alert 이 링크를 담을 수 없어 인라인으로 둔다 */
.empd-cosave {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.empd-cosave__ok {
  margin: 0;
  margin-right: auto;
  font-size: 13.5px;
  color: #15803d;
  font-weight: 600;
}
.empd-cosave__ok[hidden] { display: none !important; }
.empd-cosave__ok a { color: #1e6091; margin-left: 8px; font-weight: 700; }
