:root { --primary: #007bff; --bg: #f4f7f6; --text: #333; --boss: #6f42c1; }
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Apple SD Gothic Neo', sans-serif; -webkit-tap-highlight-color: transparent; }
        input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
        body { background-color: #d2d6da; display: flex; justify-content: center; height: 100dvh; margin: 0; -webkit-font-smoothing: antialiased; overflow: hidden; }
        .app-container { width: 100%; max-width: 480px; background-color: var(--bg); height: 100dvh; position: relative; box-shadow: 0 0 20px rgba(0,0,0,0.15); padding-bottom: 90px; overflow-y: auto; overflow-x: hidden; }

        header { background: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; }
        .logo { font-size: 1.2rem; font-weight: bold; color: var(--primary); display: flex; align-items: center; gap: 5px; }
        
        /* 💡 상단 버튼들 디자인 */
        .header-btns { display: flex; gap: 8px; align-items: center; }
        .login-header-btn, .add-job-header-btn { background: #fff; color: var(--primary); font-weight: bold; font-size: 0.85rem; padding: 6px 12px; border: 1px solid var(--primary); border-radius: 15px; cursor: pointer; transition: 0.2s; }
        .add-job-header-btn { background: #eef2f5; border: 1px solid #dce4ec; }
        .boss-btn { background: #f3e5f5; color: var(--boss); border: 1px solid #e1bee7; }
        /* 💡 로그인 사용자 정보 표시 */
        .user-display-name { display: none; font-size: 0.85rem; font-weight: bold; padding: 5px 10px; border-radius: 12px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
        .user-display-name.alba { color: var(--primary); background: #e3f2fd; border: 1px solid #bbdefb; }
        .user-display-name.boss { color: var(--boss); background: #f3e5f5; border: 1px solid #e1bee7; }

        .my-jobs-container { background: #fff; padding: 15px 20px 5px; border-bottom: 1px dashed #eee; display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; }
        .my-jobs-container::-webkit-scrollbar { display: none; }
        .job-tag { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; border: 1px solid; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
        
        .dashboard { background: #fff; padding: 20px; border-radius: 0 0 20px 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .all-time-box { text-align: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
        .all-time-title { font-size: 0.9rem; color: #666; margin-bottom: 5px; font-weight: bold; }
        .all-time-money { font-size: 2.4rem; font-weight: bold; color: #111; letter-spacing: -1px; }
        .all-time-money span { font-size: 1.2rem; font-weight: normal; color: #666; }
        .status-pill-container { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
        .status-pill { padding: 8px 12px; border-radius: 10px; font-size: 0.85rem; font-weight: bold; flex: 1; }
        .pill-paid { background: #e8f5e9; color: #28a745; border: 1px solid #c8e6c9; }
        .pill-unpaid { background: #ffebee; color: #dc3545; border: 1px solid #ffcdd2; }

        .chart-title { font-size: 0.95rem; color: #444; margin-bottom: 10px; font-weight: bold; display: flex; justify-content: space-between; }
        .progress-container { position: relative; width: 100%; height: 32px; background: #e9ecef; border-radius: 16px; overflow: hidden; display: flex; align-items: center; }
        .target-text { position: absolute; right: 15px; color: #888; font-size: 0.8rem; font-weight: bold; z-index: 1; }
        .progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); width: 0%; transition: 0.6s; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; z-index: 2; border-radius: 16px; min-width: 5%;}
        .actual-text { color: #fff; font-size: 0.85rem; font-weight: bold; }

        .calendar-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; margin-top: 5px; }
        .nav-btn { background: #fff; border: 1px solid #ddd; border-radius: 10px; width: 35px; height: 35px; cursor: pointer; }
        .current-month { font-size: 1.2rem; font-weight: bold; }
        .calendar-wrapper { background: #fff; margin: 0 20px; padding: 10px; border-radius: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        .weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.8rem; color: #888; margin-bottom: 5px; font-weight: bold; }
        .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
        .day-cell { min-height: 85px; border: 1px solid #f0f0f0; border-radius: 8px; display: flex; flex-direction: column; padding: 2px; cursor: pointer; align-items: center; }
        .day-cell.empty { background: transparent; border: none; cursor: default; }
        .day-header { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; padding: 0 2px; }
        .day-date { font-size: 0.75rem; color: #777; }
        .add-btn-small { font-size: 1rem; color: var(--primary); font-weight: bold; line-height: 1; }
        
        .shifts-container { width: 100%; display: flex; flex-direction: column; gap: 2px; }
        .shift-block { width: 100%; text-align: center; border-radius: 4px; padding: 3px 1px; font-size: 0.65rem; transition: all 0.2s; cursor: pointer; display: flex; flex-direction: column; line-height: 1.1; }
        .shift-block.planned { border: 1px dashed; background: #fff !important; }
        .shift-block.done { border: 1px solid; color: #333 !important; font-weight: bold; }
        .status-badge { display: inline-block; color: #fff; border-radius: 3px; padding: 2px 4px; font-size: 0.55rem; margin-left: 3px; font-weight: bold; vertical-align: middle; }
        .badge-paid { background-color: #007bff; } .badge-unpaid { background-color: #e74c3c; } 
        .shift-job { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .shift-hours { font-size: 0.6rem; margin-top: 1px; display: flex; align-items: center; justify-content: center; }

        .boss-dashboard-container { padding: 20px; display: none; }
        .boss-card { background: #fff; border-radius: 15px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .boss-card-title { font-size: 1.1rem; font-weight: bold; color: var(--boss); margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
        .biz-list-item { border: 1px solid #eee; border-radius: 10px; padding: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
        .biz-name { font-weight: bold; font-size: 1.05rem; color: #333; }
        .biz-num { font-size: 0.8rem; color: #777; margin-top: 3px; }
        .empty-state { text-align: center; padding: 30px 10px; color: #888; font-size: 0.9rem; }
        
        .emp-accordion-card { border: 1px solid #e1bee7; border-radius: 10px; margin-bottom: 15px; background: #fff; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
        .emp-accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; cursor: pointer; background: #faf5ff; transition: background 0.2s; }
        .emp-accordion-header:active { background: #f3e5f5; }
        .emp-name-wrap { font-weight: bold; color: var(--boss); font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
        .toggle-icon { transition: transform 0.3s ease; font-size: 0.9rem; color: #888; font-weight: bold; }
        .emp-accordion-body { display: none; padding: 15px 20px; border-top: 2px solid #e1bee7; background: #fff; }
        .emp-accordion-card.open .emp-accordion-body { display: block; }
        .emp-accordion-card.open .toggle-icon { transform: rotate(180deg); }

        .emp-top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
        .delete-emp-btn { background: white; color: #dc3545; border: 1px solid #dc3545; padding: 4px 8px; border-radius: 5px; font-size: 0.75rem; font-weight: bold; cursor: pointer; }
        
        .month-accordion-card { border: 2px solid #e1bee7; border-radius: 10px; margin-bottom: 15px; overflow: hidden; background: #fff; }
        .month-accordion-header { background: #f3e5f5; padding: 12px 15px; font-weight: bold; color: var(--boss); font-size: 1rem; border-bottom: 1px solid transparent; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
        .month-accordion-header:active { background: #e1bee7; }
        .month-accordion-body { display: none; padding: 15px; border-top: 1px solid #e1bee7; }
        .month-accordion-card.open .month-accordion-body { display: block; }
        .month-accordion-card.open .month-accordion-header { border-bottom-color: #e1bee7; }
        .month-accordion-card.open .toggle-icon-month { transform: rotate(180deg); }
        .toggle-icon-month { transition: transform 0.3s ease; font-size: 0.9rem; color: var(--boss); font-weight: bold; }

        .work-log-box { background: white; border-radius: 8px; padding: 10px; margin-bottom: 10px; border: 1px solid #eee; }
        .work-log-title { font-size: 0.85rem; font-weight: bold; color: #555; margin-bottom: 8px; display: flex; justify-content: space-between;}
        .log-item { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 6px 4px; border-bottom: 1px dashed #eee; cursor: pointer; border-radius: 4px; transition: background 0.2s; }
        .log-item:hover { background: #f0f8ff; }
        .log-item:last-child { border-bottom: none; }
        
        .calc-box { background: #fff; border: 2px solid var(--boss); border-radius: 8px; padding: 15px; margin-bottom: 10px; }
        .calc-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; color: #444; }
        .calc-row.muted { color: #888; font-size: 0.8rem; }
        .calc-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; color: var(--boss); margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; }
        
        .pay-btn { background: var(--boss); color: white; width: 100%; border: none; padding: 12px; border-radius: 8px; font-size: 0.95rem; font-weight: bold; cursor: pointer; transition: 0.2s; }
        .pay-btn:active { transform: scale(0.98); }
        .approve-btn { background: #28a745; color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; cursor: pointer; }

        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 100; align-items: center; justify-content: center; }
        .modal-content { background: #fff; width: 85%; max-width: 340px; padding: 0; border-radius: 15px; max-height: 90vh; overflow-y: auto; overflow-x: hidden; }
        
        /* 💡 로그인/회원가입 탭 및 신규 가입 폼 디자인 */
        .auth-tabs { display: flex; text-align: center; border-bottom: 1px solid #ddd; background:#f8f9fa; position: sticky; top: 0; z-index: 10; }
        .auth-tab { flex: 1; padding: 18px 15px; font-weight: bold; font-size: 1.05rem; cursor: pointer; transition: 0.2s; }
        .auth-tab.active { color: var(--primary); border-bottom: 3px solid var(--primary); background: #fff; }
        .auth-tab.inactive { color: #888; border-bottom: 3px solid transparent; }
        .auth-body { padding: 25px; }

        .input-group { margin-bottom: 15px; text-align: left; }
        .input-group label { display: block; font-size: 0.85rem; color: #666; margin-bottom: 6px; font-weight: bold; }
        .hours-input, .job-select { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid #ddd; font-size: 1rem; text-align: left; transition: border-color 0.2s; }
        .hours-input:focus { border-color: var(--primary); outline: none; }
        
        /* 💡 강조된 가입 유형 박스 스타일 */
        .role-selection-box { border: 2px solid var(--primary); border-radius: 10px; padding: 15px; margin-bottom: 25px; background: #f0f7ff; }
        .role-selection-title { font-size: 1.05rem; font-weight: bold; color: var(--primary); margin-bottom: 12px; text-align: center; }
        .role-options { display: flex; flex-direction: column; gap: 10px; }
        .role-option-label { display: flex; align-items: center; border: 1px solid #ccc; padding: 14px 15px; border-radius: 8px; cursor: pointer; background: #fff; transition: all 0.2s; }
        .role-option-label input { margin-right: 10px; transform: scale(1.2); }
        .role-option-label span { font-size: 1.1rem; font-weight: bold; }
        .role-option-boss { border-color: #e1bee7; background: #faf5ff; }

        .search-box { display: flex; gap: 5px; }
        .search-btn { background: #007bff; color: white; border: none; border-radius: 8px; padding: 0 15px; font-weight: bold; cursor: pointer; white-space: nowrap; }
        .search-result { font-size: 0.8rem; margin-top: 5px; font-weight: bold; display: none; }
        .btn-group { display: flex; gap: 10px; margin-top: 15px; }
        .btn-group button { flex: 1; padding: 12px; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: bold; cursor: pointer; }
        .btn-cancel { background: #eee; color: #333; }
        .btn-save { background: var(--primary); color: #fff; }
        .btn-done { background: #28a745; color: #fff; }
        .boss-save-btn { background: var(--boss) !important; color: #fff; }

        /* 모달 타이틀 */
        .modal-title { font-size: 1.15rem; font-weight: bold; color: #333; margin-bottom: 20px; }
        .boss-modal-title { color: var(--boss); }

        /* 잡 요약 모달 */
        .summary-box { background: #f8f9fa; border: 1px solid #eee; border-radius: 10px; padding: 15px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 5px; }
        .summary-box.highlight { background: #fff3e0; border-color: #ffcc80; }
        .summary-label { font-size: 0.8rem; color: #888; font-weight: bold; }
        .summary-value { font-size: 1.3rem; font-weight: bold; color: #dc3545; }
        .summary-date { font-size: 0.75rem; color: #888; margin-top: 5px; }

        /* 정산 박스 */
        .settlement-box { background: #e8f5e9; border: 2px solid #c8e6c9; border-radius: 10px; padding: 15px; margin-top: 10px; }
        .settlement-title { font-size: 1rem; font-weight: bold; color: #28a745; margin-bottom: 8px; }
        .settlement-desc { font-size: 0.8rem; color: #666; margin-bottom: 12px; line-height: 1.4; }

        /* 💡 급여명세서 모달 (3중 방어 + 산출식) */
        .payslip-header { background: linear-gradient(135deg, #6f42c1, #9b59b6); color: #fff; padding: 18px 20px; border-radius: 15px 15px 0 0; position: relative; }
        .payslip-header-title { font-size: 1.15rem; font-weight: bold; margin-bottom: 4px; }
        .payslip-header-sub { font-size: 0.8rem; opacity: 0.85; }
        .payslip-read-badge { display: inline-block; font-size: 0.7rem; font-weight: bold; padding: 3px 8px; border-radius: 10px; margin-top: 6px; }
        .payslip-read-badge.unread { background: rgba(255,255,255,0.2); color: #fff; }
        .payslip-read-badge.read { background: #28a745; color: #fff; }
        .payslip-body { padding: 20px; }
        .payslip-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
        .payslip-info-item { background: #f8f9fa; border-radius: 8px; padding: 10px; }
        .payslip-info-label { font-size: 0.7rem; color: #888; font-weight: bold; margin-bottom: 3px; }
        .payslip-info-value { font-size: 0.95rem; font-weight: bold; color: #333; }
        .payslip-section { margin-bottom: 15px; }
        .payslip-section-title { font-size: 0.85rem; font-weight: bold; color: #555; margin-bottom: 8px; padding-bottom: 5px; border-bottom: 2px solid #e9ecef; display: flex; align-items: center; gap: 5px; }
        .payslip-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.85rem; color: #444; }
        .payslip-row.total-row { font-size: 1rem; font-weight: bold; color: var(--boss); padding-top: 10px; margin-top: 5px; border-top: 1px dashed #ddd; }
        .payslip-row .amount { font-weight: bold; text-align: right; }
        .payslip-row .amount.positive { color: #28a745; }
        .payslip-row .amount.negative { color: #dc3545; }
        .payslip-formula { font-size: 0.7rem; color: #999; margin-top: 1px; text-align: right; }
        .payslip-tax-select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ddd; font-size: 0.9rem; font-weight: bold; color: #333; background: #fff; margin-bottom: 8px; }
        .payslip-tax-detail { background: #fff8f0; border: 1px solid #ffe0b2; border-radius: 8px; padding: 10px; margin-bottom: 10px; display: none; }
        .payslip-tax-detail .detail-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 5px 0; font-size: 0.8rem; color: #555; border-bottom: 1px dotted #f0e0d0; }
        .payslip-tax-detail .detail-row:last-child { border-bottom: none; }
        .payslip-tax-detail .detail-name { font-weight: bold; flex-shrink: 0; }
        .payslip-tax-detail .detail-right { text-align: right; }
        .payslip-tax-detail .detail-amount { font-weight: bold; color: #dc3545; }
        .payslip-tax-detail .detail-formula { font-size: 0.65rem; color: #aaa; }
        .payslip-tax-detail .detail-total { display: flex; justify-content: space-between; padding: 8px 0 2px; font-size: 0.9rem; font-weight: bold; color: #e65100; border-top: 1.5px solid #ffcc80; margin-top: 4px; }
        .payslip-tax-input-wrap { position: relative; margin-top: 5px; }
        .payslip-tax-input { width: 100%; padding: 10px; padding-right: 30px; border-radius: 8px; border: 1px solid #ddd; font-size: 0.95rem; text-align: right; font-weight: bold; color: #dc3545; }
        .payslip-tax-input:focus { border-color: var(--boss); outline: none; box-shadow: 0 0 0 2px rgba(111,66,193,0.15); }
        .payslip-net-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; padding: 18px; text-align: center; margin: 15px 0; }
        .payslip-net-label { font-size: 0.8rem; color: rgba(255,255,255,0.8); font-weight: bold; margin-bottom: 5px; }
        .payslip-net-amount { font-size: 1.8rem; font-weight: bold; color: #fff; letter-spacing: -1px; }
        .payslip-defense-title { font-size: 0.8rem; font-weight: bold; color: #888; margin-bottom: 8px; text-align: center; letter-spacing: 1px; }
        .payslip-btn-grid { display: flex; gap: 6px; margin-bottom: 10px; }
        .payslip-btn { padding: 12px; border: none; border-radius: 10px; font-size: 0.82rem; font-weight: bold; cursor: pointer; transition: 0.2s; text-align: center; }
        .payslip-btn:active { transform: scale(0.97); }
        .payslip-btn-img { flex: 1; background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
        .payslip-btn-sms { flex: 1; background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
        .payslip-btn-close { width: 100%; padding: 13px; background: #f0f0f0; color: #666; border: none; border-radius: 10px; font-size: 0.95rem; font-weight: bold; cursor: pointer; }
        .payslip-open-btn { background: #fff; color: var(--boss); border: 1.5px solid var(--boss); padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: bold; cursor: pointer; width: 100%; margin-top: 8px; transition: 0.2s; }
        .payslip-open-btn:active { background: #f3e5f5; transform: scale(0.98); }

        /* 💡 사업자번호 검증 UI */
        .biz-verify-wrap { display: flex; gap: 6px; align-items: stretch; }
        .biz-verify-wrap .hours-input { flex: 1; margin-bottom: 0; }
        .biz-verify-btn { background: var(--boss); color: #fff; border: none; border-radius: 8px; padding: 0 14px; font-size: 0.8rem; font-weight: bold; cursor: pointer; white-space: nowrap; transition: 0.2s; flex-shrink: 0; }
        .biz-verify-btn:active { transform: scale(0.97); }
        .biz-verify-btn:disabled { background: #ccc; cursor: not-allowed; }
        .biz-verify-result { font-size: 0.8rem; font-weight: bold; margin-top: 6px; padding: 8px 10px; border-radius: 6px; display: none; line-height: 1.3; }
        .biz-verify-result.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
        .biz-verify-result.fail { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
        .biz-verify-result.loading { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }

        /* 📝 전자 근로계약서 모달 */
        .contract-modal .modal-content { padding: 0; max-width: 440px; max-height: 90vh; overflow-y: auto; }
        .contract-header { background: linear-gradient(135deg, #1a237e, #3949ab); color: #fff; padding: 18px 20px; border-radius: 15px 15px 0 0; }
        .contract-header-title { font-size: 1.1rem; font-weight: bold; }
        .contract-header-sub { font-size: 0.75rem; opacity: 0.8; margin-top: 3px; }
        .contract-body { padding: 20px; }
        .contract-section { margin-bottom: 18px; }
        .contract-section-title { font-size: 0.88rem; font-weight: bold; color: #1a237e; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 2px solid #c5cae9; display: flex; align-items: center; gap: 5px; }
        .contract-field { margin-bottom: 10px; }
        .contract-field label { display: block; font-size: 0.78rem; font-weight: bold; color: #555; margin-bottom: 4px; }
        .contract-input { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.88rem; color: #333; background: #fff; }
        .contract-input:focus { border-color: #3949ab; outline: none; box-shadow: 0 0 0 2px rgba(57,73,171,0.15); }
        .contract-input-row { display: flex; gap: 8px; }
        .contract-input-row > * { flex: 1; }
        .contract-work-grid { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px; }
        .contract-work-row { display: grid; grid-template-columns: 22px 32px 1fr 1fr 1fr; gap: 4px; align-items: center; margin-bottom: 6px; font-size: 0.72rem; }
        .contract-work-row.header { font-weight: bold; color: #555; margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid #ddd; }
        .contract-work-row input[type='time'], .contract-work-row .work-hours-display { padding: 5px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.72rem; }
        .contract-work-row input[type='time']:disabled { background: #f0f0f0; color: #bbb; }
        .work-hours-display { background: #e8eaf6; color: #1a237e; font-weight: bold; text-align: center; }
        .work-hours-display.off { background: #f5f5f5; color: #bbb; }
        .contract-work-row .day-label { font-weight: bold; color: #1a237e; text-align: center; font-size: 0.75rem; }
        .contract-work-row .day-label.off { color: #bbb; }
        .contract-day-check { width: 16px; height: 16px; accent-color: #3949ab; cursor: pointer; }
        .contract-checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
        .contract-checkbox-item { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: #444; }
        .contract-checkbox-item input[type='checkbox'] { width: 16px; height: 16px; accent-color: #3949ab; }
        .contract-legal-box { background: #fafafa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; font-size: 0.72rem; color: #777; line-height: 1.5; }
        .contract-legal-box h4 { font-size: 0.78rem; color: #555; margin-bottom: 5px; }
        .contract-sign-area { border: 2px dashed #c5cae9; border-radius: 10px; padding: 10px; position: relative; background: #fafcff; }
        .contract-sign-label { font-size: 0.78rem; font-weight: bold; color: #1a237e; margin-bottom: 6px; }
        .contract-sign-canvas { width: 100%; height: 120px; border: 1px solid #ddd; border-radius: 6px; background: #fff; touch-action: none; cursor: crosshair; }
        .contract-sign-clear { position: absolute; top: 8px; right: 12px; background: #ef5350; color: #fff; border: none; border-radius: 5px; padding: 3px 10px; font-size: 0.7rem; font-weight: bold; cursor: pointer; }
        .contract-btn-group { display: flex; gap: 8px; margin-top: 15px; }
        .contract-btn { flex: 1; padding: 13px; border: none; border-radius: 10px; font-size: 0.88rem; font-weight: bold; cursor: pointer; transition: 0.2s; text-align: center; }
        .contract-btn:active { transform: scale(0.97); }
        .contract-btn-save { background: #1a237e; color: #fff; }
        .contract-btn-close { background: #eee; color: #666; }
        .contract-open-btn { background: #fff; color: #1a237e; border: 1.5px solid #3949ab; padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: bold; cursor: pointer; transition: 0.2s; margin-left: 6px; }
        .contract-open-btn:active { background: #e8eaf6; transform: scale(0.97); }

        /* 💡 하단 네비게이션 바 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #fff;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            padding: 10px 0;
            padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* 아이폰 Safe Area */
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
            z-index: 9999; /* 초강력 고정 강제 노출 */
            border-top: 1px solid #eee;
        }
        @media (min-width: 481px) {
            .bottom-nav { left: 50%; transform: translateX(-50%); max-width: 480px; }
        }
        .nav-item {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            color: #a0a0a0; font-size: 0.72rem; font-weight: bold; cursor: pointer; transition: color 0.2s;
            flex: 1; -webkit-tap-highlight-color: transparent;
        }
        .nav-item.active { color: var(--primary); }
        .nav-item.boss-active { color: var(--boss); }
        .nav-icon { font-size: 1.35rem; margin-bottom: 3px; }

        /* 🚨 iOS PWA 설치 안내 모달 추가 CSS */
        .ios-install-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; justify-content: center; align-items: center; }
        .ios-install-content { background: #fff; width: 85%; max-width: 320px; border-radius: 15px; padding: 25px 20px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.2); animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
        @keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
        .ios-install-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 12px; color: #333; }
        .ios-install-desc { font-size: 0.85rem; color: #666; line-height: 1.5; margin-bottom: 15px; }
        .ios-icon-box { background: #f0f4f8; padding: 12px; border-radius: 10px; display: inline-block; font-size: 0.9rem; font-weight: bold; color: var(--primary); margin-bottom: 20px; }
        .ios-install-close { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; width: 100%; font-size: 0.95rem; cursor: pointer; }

        /* ===== 🆕 신규 기능 CSS ===== */

        /* ⚖️ 법적 면책 공고 */
        .legal-disclaimer { text-align: center; font-size: 0.62rem; color: #aaa; padding: 8px 15px; line-height: 1.4; background: #fafafa; border-top: 1px solid #f0f0f0; }
        .legal-disclaimer-inline { font-size: 0.62rem; color: #aaa; text-align: center; padding: 6px 10px; line-height: 1.3; margin-top: 8px; }

        /* 🔒 개인정보 동의 */
        .privacy-consent-box { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; margin-bottom: 15px; }
        .privacy-consent-box .consent-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 0.85rem; font-weight: bold; color: #444; }
        .privacy-consent-box .consent-toggle .arrow { transition: transform 0.3s; font-size: 0.8rem; color: #888; }
        .privacy-consent-box .consent-toggle .arrow.open { transform: rotate(180deg); }
        .privacy-consent-text { display: none; font-size: 0.7rem; color: #666; line-height: 1.5; margin-top: 10px; max-height: 200px; overflow-y: auto; padding: 10px; background: #fff; border: 1px solid #eee; border-radius: 6px; }
        .privacy-consent-text.show { display: block; }
        .privacy-check-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.85rem; font-weight: bold; color: #333; }
        .privacy-check-row input[type='checkbox'] { width: 18px; height: 18px; accent-color: #28a745; }

        /* 📖 가이드 뷰 */
        .guide-container { padding: 20px; display: none; }
        .guide-card { background: #fff; border-radius: 15px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .guide-card-title { font-size: 1.1rem; font-weight: bold; color: #333; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
        .guide-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
        .guide-item:hover { background: #f0f7ff; border-color: #bbdefb; }
        .guide-item:active { transform: scale(0.98); }
        .guide-item-icon { font-size: 1.5rem; flex-shrink: 0; }
        .guide-item-text { flex: 1; }
        .guide-item-title { font-size: 0.9rem; font-weight: bold; color: #333; }
        .guide-item-desc { font-size: 0.75rem; color: #888; margin-top: 3px; }
        .guide-link-slot { background: #f8f9fa; border: 2px dashed #ddd; border-radius: 10px; padding: 15px; text-align: center; color: #aaa; font-size: 0.8rem; margin-bottom: 8px; }

        /* ⚙️ 설정 뷰 */
        .settings-container { padding: 20px; display: none; }
        .settings-card { background: #fff; border-radius: 15px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .settings-card-title { font-size: 1.1rem; font-weight: bold; color: #333; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
        .settings-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; }
        .settings-item:last-child { border-bottom: none; }
        .settings-item:active { background: #f8f9fa; }
        .settings-item-left { display: flex; align-items: center; gap: 10px; }
        .settings-item-icon { font-size: 1.2rem; }
        .settings-item-label { font-size: 0.9rem; font-weight: bold; color: #333; }
        .settings-item-desc { font-size: 0.72rem; color: #888; margin-top: 2px; }
        .settings-item-arrow { color: #ccc; font-size: 0.9rem; }
        .settings-danger { color: #dc3545 !important; }

        /* 👤 수동 직원 등록 모달 */
        .manual-emp-badge { display: inline-block; font-size: 0.6rem; background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; border-radius: 8px; padding: 2px 6px; font-weight: bold; margin-left: 5px; }

        /* 📋 발송 로그 */
        .send-log-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 6px; font-size: 0.8rem; }
        .send-log-type { display: inline-block; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
        .send-log-type.payslip { background: #f3e5f5; color: var(--boss); }
        .send-log-type.contract { background: #e8eaf6; color: #1a237e; }

        /* 💰 자동 급여 계산기 */
        .calc-result-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; padding: 18px; text-align: center; margin: 12px 0; color: #fff; }
        .calc-result-label { font-size: 0.8rem; opacity: 0.85; margin-bottom: 5px; }
        .calc-result-amount { font-size: 1.6rem; font-weight: bold; letter-spacing: -1px; }

/* 모바일 서명패드 스크롤 방지 */
.contract-sign-canvas { touch-action: none; }