/* ─── 필터 칩 라인 ─── */
.filter-chipline {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0;
    margin: 0 10px;
    border-bottom: none;
    position: relative;
}
.filter-chipline--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    margin: 0;
    padding: 0 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-bottom: none;
}
.filter-chipline__scroll {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 8px 0 8px 4px;
    align-items: center;
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
}
.filter-chipline__scroll::-webkit-scrollbar { display: none; }
.filter-chipline__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary, #F8FAFC);
    color: var(--text-secondary, #475569);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 150ms ease;
    outline: none;
    font-family: inherit;
    line-height: 1;
}
.filter-chipline__chip:hover {
    border-color: var(--color-primary-300, #93C5FD);
    color: var(--color-primary-500, #2563EB);
    background: var(--color-primary-50, #EFF6FF);
}
.filter-chipline__chip--active {
    border-color: #2563EB;
    background: #2563EB;
    color: #fff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}
.filter-chipline__chip--active:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #fff;
}
/* 구분선 (지역 태그 뒤 공종 칩 전) */
.filter-chipline__divider {
    width: 1px;
    height: 20px;
    background: var(--border-color, #E5E7EB);
    flex-shrink: 0;
    margin: 0 4px;
}
/* 선택 태그 */
.filter-chipline__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--color-primary-50, #EFF6FF);
    color: var(--color-primary-500, #2563EB);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}
.filter-chipline__tag-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    color: var(--color-primary-400, #60A5FA);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    transition: all 150ms ease;
}
.filter-chipline__tag-x:hover {
    background: var(--color-primary-500, #2563EB);
    color: #fff;
}
/* 필터 버튼 (우측 고정) */
.filter-chipline__cond {
    flex-shrink: 0;
    padding-left: 8px;
    padding-right: 4px;
}
.filter-chipline__cond-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #F8FAFC;
    color: #334155;
    border: 2px solid #64748B;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 150ms ease;
    font-family: inherit;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.filter-chipline__cond-btn:hover {
    background: #E2E8F0;
    border-color: #475569;
}
.filter-chipline__cond-btn i {
    font-size: 13px;
    color: #64748B;
}
.filter-chipline__cond-btn--active {
    background: #EFF6FF;
    border-color: #2563EB;
    color: #1D4ED8;
    box-shadow: 0 1px 4px rgba(37,99,235,0.15);
}
.filter-chipline__cond-btn--active i {
    color: #2563EB;
}
.filter-chipline__cond-btn--active:hover {
    background: #DBEAFE;
    border-color: #1D4ED8;
}
/* 조건 버튼 반짝 애니메이션 (첫 방문자용) */
@keyframes kw-cond-pulse {
    0%, 100% {
        background: #EFF6FF;
        border-color: #3B82F6;
        color: #1D4ED8;
        box-shadow: 0 0 0 0 rgba(59,130,246,0.5);
    }
    50% {
        background: #BFDBFE;
        border-color: #2563EB;
        color: #1E40AF;
        box-shadow: 0 0 0 6px rgba(59,130,246,0);
    }
}
.filter-chipline__cond-btn--pulse {
    animation: kw-cond-pulse 1.5s ease-in-out infinite;
}
.filter-chipline__cond-btn--pulse i {
    color: #3B82F6;
}
.filter-chipline__cond-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #2563EB;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* ─── 바텀시트 ─── */
.filter-sheet__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 200ms ease;
}
.filter-sheet__backdrop.active {
    display: block;
    opacity: 1;
}
.filter-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-primary, #fff);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    max-height: 70vh;
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
    touch-action: pan-x;
}
.filter-sheet.active {
    transform: translateY(0);
}
.filter-sheet__header {
    position: relative;
    flex-shrink: 0;
}
.filter-sheet__handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    cursor: grab;
    flex-shrink: 0;
}
.filter-sheet__handle span {
    width: 40px;
    height: 4px;
    border-radius: 9999px;
    background: var(--color-gray-300, #CBD5E1);
}
.filter-sheet__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
}
.filter-sheet__close:active {
    background: var(--color-gray-300, #cbd5e1);
    color: var(--text-primary, #1e293b);
}
.filter-sheet__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px 0;
    -webkit-overflow-scrolling: touch;
}
.filter-sheet__section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}
.filter-sheet__section:last-child {
    border-bottom: none;
}
.filter-sheet__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #1E293B);
    margin: 0 0 10px;
}
.filter-sheet__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-sheet__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 20px;
    background: var(--bg-primary, #fff);
    color: var(--text-secondary, #475569);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    font-family: inherit;
    outline: none;
}
.filter-sheet__chip:hover {
    border-color: var(--color-primary-300, #93C5FD);
    color: var(--color-primary-500, #2563EB);
    background: var(--color-primary-50, #EFF6FF);
}
.filter-sheet__chip--active {
    border-color: #2563EB;
    background: #2563EB;
    color: #fff;
    font-weight: 600;
}
.filter-sheet__chip--active:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #fff;
}
.filter-sheet__chip--active i {
    font-size: 11px;
}
.filter-sheet__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    border-top: 1px solid var(--border-color, #E2E8F0);
}
.filter-sheet__actions-row {
    display: flex;
    gap: 10px;
}
/* 내 조건 저장 버튼 */
.filter-sheet__btn--save {
    width: 100%;
    background: #fff;
    color: #2563EB;
    border: 1.5px solid #2563EB !important;
    gap: 6px;
}
.filter-sheet__btn--save:hover {
    background: #EFF6FF;
}
.filter-sheet__btn--saved {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}
/* 내 조건 칩 — 비활성 */
.filter-chipline__my-cond {
    gap: 5px;
    color: #2563EB;
    border-color: #2563EB;
    background: var(--bg-secondary, #F8FAFC);
}
.filter-chipline__my-cond i {
    font-size: 11px;
    color: #93c5fd;
}
/* 내 조건 설정 칩 (미저장) */
.filter-chipline__my-cond--new {
    border-style: dashed;
    color: #64748b;
    border-color: #94a3b8;
    background: var(--bg-secondary, #F8FAFC);
}
.filter-chipline__my-cond--new i { color: #94a3b8; font-size: 10px; }
/* 내 조건 칩 — 활성 */
.filter-chipline__my-cond--active {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}
.filter-chipline__my-cond--active i {
    color: #fbbf24;
}
/* 필터 시트 튜토리얼 배너 */
.filter-sheet__tutorial {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #1E40AF;
    line-height: 1.7;
}
.filter-sheet__tutorial-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #2563EB;
}
/* 저장 버튼 펄스 (튜토리얼 중) */
.filter-sheet__btn--save-pulse {
    animation: savePulse 1.6s ease-in-out infinite;
}
@keyframes savePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    55% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}
/* 넛지 배너 */
.filter-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: #EFF6FF;
    border-bottom: 1px solid #BFDBFE;
    font-size: 13px;
    color: #1E40AF;
    flex-wrap: wrap;
}
.filter-nudge i { color: #2563EB; margin-right: 4px; }
.filter-nudge__btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.filter-nudge__btns button {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
#nudge-save-btn { background: #2563EB; color: #fff; }
#nudge-close-btn { background: #DBEAFE; color: #1E40AF; }
.filter-sheet__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 150ms ease;
    font-family: inherit;
}
.filter-sheet__btn--reset {
    flex: 0 0 auto;
    background: var(--bg-tertiary, #F1F5F9);
    color: var(--text-secondary, #475569);
}
.filter-sheet__btn--reset:hover {
    background: #FEE2E2;
    color: #EF4444;
}
.filter-sheet__btn--apply {
    background: #2563EB;
    color: #fff;
}
.filter-sheet__btn--apply:hover {
    background: #1D4ED8;
}

/* ─── 다크모드: 칩 라인 + 바텀시트 ─── */
[data-theme="dark"] .filter-chipline__chip {
    background: #2d2d2d;
    border-color: #404040;
    color: #d4d4d4;
}
[data-theme="dark"] .filter-chipline__chip:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    color: #60A5FA;
}
[data-theme="dark"] .filter-chipline__chip--active {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}
[data-theme="dark"] .filter-chipline__tag {
    background: rgba(37, 99, 235, 0.15);
    color: #60A5FA;
}
[data-theme="dark"] .filter-chipline__tag-x {
    color: #60A5FA;
}
[data-theme="dark"] .filter-chipline__tag-x:hover {
    background: #2563EB;
    color: #fff;
}
[data-theme="dark"] .filter-chipline__cond-btn {
    background: #2d2d2d;
    color: #d4d4d4;
    border-color: #404040;
    box-shadow: none;
}
[data-theme="dark"] .filter-chipline__cond-btn:hover {
    background: #383838;
    border-color: #606060;
}
[data-theme="dark"] .filter-chipline__cond-btn--active {
    background: rgba(37,99,235,0.15);
    border-color: #2563EB;
    color: #60A5FA;
}
[data-theme="dark"] .filter-chipline__cond-btn--active i {
    color: #60A5FA;
}
[data-theme="dark"] .filter-sheet {
    background: #1a1a1a;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .filter-sheet__handle span {
    background: #404040;
}
[data-theme="dark"] .filter-sheet__chip {
    background: #242424;
    border-color: #404040;
    color: #d4d4d4;
}
[data-theme="dark"] .filter-sheet__chip:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    color: #60A5FA;
}
[data-theme="dark"] .filter-sheet__chip--active {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}
[data-theme="dark"] .filter-sheet__btn--reset {
    background: #2d2d2d;
    color: #d4d4d4;
}
[data-theme="dark"] .filter-sheet__backdrop {
    background: rgba(0, 0, 0, 0.7);
}

/* ─── 이미지 생성기 (필터 아래 분리) ─── */
.image-gen-below {
    padding: 0 10px 4px;
}
.image-gen-below .jobs-image-gen-btn {
    width: 100%;
    justify-content: center;
    margin: 0;
}

/* ─── 하단 검색 영역 ─── */
.bottom-search-area {
    border-top: 1px solid var(--border-color);
    padding-top: 4px;
}
.bottom-search-area .jobs-search-bar {
    padding: 12px 14px;
}

/* ─── 구인/구직 탭 래퍼 ─── */
.jobs-tabs-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}
.jobs-image-gen-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    margin-right: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}
.jobs-image-gen-btn:hover {
    background: #DBEAFE;
    border-color: #93C5FD;
}
.jobs-image-gen-btn__full span {
    color: #059669;
    font-weight: 700;
}
.jobs-image-gen-btn__short {
    display: none;
}
.jobs-image-gen-btn i {
    font-size: 12px;
}
[data-theme="dark"] .jobs-image-gen-btn {
    background: rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.25);
    color: #93C5FD;
}
[data-theme="dark"] .jobs-image-gen-btn:hover {
    background: rgba(37,99,235,0.2);
}
[data-theme="dark"] .jobs-image-gen-btn__full span {
    color: #6EE7B7;
}

/* ─── 모바일: 탭+버튼 두 줄 ─── */
@media (max-width: 768px) {
    .jobs-tabs-wrap {
        flex-wrap: wrap;
    }
    .jobs-tabs {
        width: 100%;
    }
    .jobs-tabs__tab {
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 500;
        gap: 4px;
    }
    .jobs-tabs__count {
        font-size: 11px;
    }
    .jobs-image-gen-btn {
        width: calc(100% - 8px);
        justify-content: center;
        padding: 6px 8px;
        margin: 0 4px 6px;
        font-size: 11px;
        gap: 4px;
        border-radius: 6px;
    }
    .jobs-image-gen-btn i {
        font-size: 11px;
    }
    .jobs-image-gen-btn__full {
        display: inline;
    }
    .jobs-image-gen-btn__short {
        display: none;
    }
}

/* ─── 구인/구직 언더라인 탭 ─── */
.jobs-tabs {
    display: flex;
}
.jobs-tabs__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.jobs-tabs__tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}
.jobs-tabs__tab--active.jobs-tabs__tab--hiring {
    color: #2563EB;
    border-bottom-color: #2563EB;
}
.jobs-tabs__tab--active.jobs-tabs__tab--seeking {
    color: #059669;
    border-bottom-color: #059669;
}
.jobs-tabs__count {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
}

/* ─── 구인/구직 섹션 ─── */
.jobs-section {
    border-bottom: 1px solid var(--border-color);
}
.jobs-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.jobs-section__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.jobs-section__title i {
    font-size: 12px;
}
.jobs-section__title strong {
    color: #3B82F6;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.jobs-section__header--light {
    background: transparent;
    padding: 8px 20px;
    border-bottom: none;
}
.jobs-section__count-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary, #94A3B8);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.jobs-section__count-label i {
    font-size: 10px;
}
.jobs-section--parsed .jobs-section__title i {
    color: #10B981;
}
.jobs-section--parsed .jobs-section__title strong {
    color: #10B981;
}
.jobs-section__write-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #3B82F6;
    text-decoration: none;
    transition: all 0.2s;
}
.jobs-section__write-btn:hover {
    background: #2563EB;
    color: #fff;
}
/* 직접 구인 그리드 (파란 배경 제거 → 뉴트럴) */
.jobs-section--direct {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .jobs-section--direct {
    background: transparent;
    border-bottom-color: var(--border-color);
}
.jobs-section--direct .jobs-section__header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.jobs-section__empty-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-muted);
}
.jobs-direct-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 20px 16px;
}
/* 직접 구인 — 숨김 카드 */
.unified-card.jobs-direct--hidden { display: none !important; }
@media (max-width: 768px) {
    .unified-card.jobs-direct--hidden-mobile { display: none !important; }
}
/* 그라데이션 오버레이 (공간 추가 없음) */
.jobs-direct-more {
    position: relative;
    margin-top: -48px;
    height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(239,246,255,0), #EFF6FF 80%);
    pointer-events: none;
    z-index: 2;
    padding-bottom: 6px;
}
.jobs-direct-more.expanded {
    margin-top: 0;
    height: auto;
    background: none;
    padding: 0 20px 12px;
    pointer-events: auto;
}
.jobs-direct-more__btn {
    pointer-events: auto;
    font-size: 11.5px;
    font-weight: 500;
    color: #94B8E0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.jobs-direct-more__btn:hover { color: #2563EB; }
[data-theme="dark"] .jobs-direct-more {
    background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.97) 80%);
}
[data-theme="dark"] .jobs-direct-more.expanded { background: none; }
[data-theme="dark"] .jobs-direct-more__btn { color: #4B7BBE; }
[data-theme="dark"] .jobs-direct-more__btn:hover { color: #60A5FA; }
/* 모바일 전용 더보기 (PC에서 숨김) */
.jobs-direct-more--mobile-only { display: none !important; }
@media (max-width: 768px) {
    .jobs-direct-more--mobile-only { display: flex !important; }
    .jobs-direct-more--mobile-only.expanded { display: block !important; }
}
.jobs-section__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}
.jobs-section__more-btn:hover {
    color: #2563EB;
    border-color: #93C5FD;
    background: #EFF6FF;
}
.jobs-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px 20px;
}
.jobs-section__empty {
    text-align: center;
    padding: 28px 20px;
    color: var(--text-muted);
}
.jobs-section__empty p {
    margin: 0 0 6px;
    font-size: 13px;
}
.jobs-section__empty .jobs-section__write-btn {
    margin-top: 6px;
    display: inline-flex;
}
.jobs-section__empty-sub {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px !important;
}

/* (carousel 제거됨 → 직접 구인은 .jobs-direct-grid 사용) */

/* ─── KEYWORK 분석 Pagination ─── */
.parsed-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
}
.parsed-pagination__btn,
.parsed-pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.15s;
}
.parsed-pagination__btn:hover,
.parsed-pagination__num:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary-300);
    color: var(--color-primary-500);
}
.parsed-pagination__num--active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #fff;
    font-weight: 700;
}
.parsed-pagination__num--active:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}
.parsed-pagination__btn i { font-size: 11px; }

/* 구직 배지 */
.unified-card__badge--seeking {
    background: #D1FAE5;
    color: #059669;
}

/* ─── 다크모드: 구인/구직 탭 + 섹션 ─── */
[data-theme="dark"] .jobs-tabs {
    background: rgba(148, 163, 184, 0.12);
}
[data-theme="dark"] .jobs-tabs__tab--active.jobs-tabs__tab--hiring {
    color: #60A5FA;
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
[data-theme="dark"] .jobs-tabs__tab--active.jobs-tabs__tab--seeking {
    color: #34D399;
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
[data-theme="dark"] .jobs-section__header {
    background: var(--bg-secondary);
}
[data-theme="dark"] .unified-card__badge--seeking {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}
[data-theme="dark"] .parsed-pagination__num--active {
    background: #3B82F6;
    border-color: #3B82F6;
}

/* ─── 모바일: 구인/구직 탭 + 섹션 ─── */
@media (max-width: 768px) {
    .jobs-tabs {
        margin: 10px 16px 4px;
    }
    .jobs-tabs__tab {
        padding: 6px 20px;
        font-size: 12px;
    }
    .jobs-section__header {
        padding: 10px 16px;
    }
    .jobs-section__grid,
    .jobs-direct-grid {
        grid-template-columns: 1fr;
        padding: 10px 16px;
        gap: 8px;
    }
    .jobs-section__empty {
        padding: 20px 16px;
    }
    .jobs-direct-more:not(.expanded) {
        margin-top: -44px;
        height: 44px;
        padding-bottom: 5px;
    }
    .jobs-direct-more.expanded {
        padding: 0 16px 10px;
    }
    .parsed-pagination {
        padding: 10px 16px;
    }
    .parsed-pagination__btn,
    .parsed-pagination__num {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .filter-chipline {
        margin: 0 6px;
        height: 48px;
    }
    .filter-chipline__chip {
        padding: 7px 14px;
        font-size: 13px;
    }
    .filter-chipline__cond-btn {
        padding: 9px 12px;
        font-size: 13px;
    }
    .jobs-search-bar {
        padding: 0 8px 8px;
    }
    .jobs-search-bar__input {
        font-size: 14px;
        padding: 10px 36px 10px 34px;
    }
    .jobs-tabs-wrap {
        padding-left: 4px;
        padding-right: 4px;
    }
    /* image-gen-below: 제거됨 (햄버거 메뉴로 이동) */
    .bottom-search-area .jobs-search-bar {
        padding: 10px 10px;
    }
}

/* (구 뱃지 필터 칩 바 → filter-chipline으로 대체됨) */

/* ─── 검색바 ─── */
.jobs-search-bar {
    padding: 0 20px 10px;
}
.jobs-search-bar__form {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.jobs-search-bar__form:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.jobs-search-bar__icon {
    position: absolute;
    left: 12px;
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}
.jobs-search-bar__form:focus-within .jobs-search-bar__icon {
    color: #3B82F6;
}
.jobs-search-bar__input {
    flex: 1;
    padding: 9px 36px 9px 34px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
    font-family: inherit;
}
.jobs-search-bar__input::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}
.jobs-search-bar__clear {
    position: absolute;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 11px;
    transition: background 0.15s, color 0.15s;
}
.jobs-search-bar__clear:hover {
    background: #EF4444;
    color: #fff;
}

/* (구 접이식 필터 패널 → filter-sheet으로 대체됨) */

/* ── 필터 스크롤 페이드 그라데이션 ── */
.filter-fade-wrap {
    position: relative;
}
.filter-fade-wrap::before,
.filter-fade-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 36px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.25s ease;
    opacity: 0;
}
.filter-fade-wrap::after {
    right: 0;
    background: linear-gradient(to right, transparent, var(--fade-bg));
}
.filter-fade-wrap::before {
    left: 0;
    background: linear-gradient(to left, transparent, var(--fade-bg));
}
.filter-fade-wrap.can-scroll-right::after { opacity: 1; }
.filter-fade-wrap.can-scroll-left::before { opacity: 1; }

/* 통합 피드 */
.unified-feed {
    border-bottom: 2px solid var(--border-color);
}
.unified-feed__header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}
.unified-feed__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.unified-feed__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.unified-feed__title i { color: #3B82F6; font-size: 12px; }
.unified-feed__title span { color: #3B82F6; }
.unified-feed__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.unified-feed__count {
    font-size: 13px;
    color: var(--text-muted);
}
.unified-feed__count strong { color: #3B82F6; }
.unified-feed__btn--clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    text-decoration: none;
    transition: all 0.15s;
}
.unified-feed__btn--clear:hover {
    color: var(--color-error);
    background: #FEE2E2;
}

/* 카드 그리드 */
.unified-feed__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px 20px;
}

/* 통합 카드 공통 */
.unified-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.15s ease;
}
.unified-card:hover {
    border-color: var(--color-primary-300);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}
.unified-card:active {
    transform: scale(0.98);
}

/* 카드 상단 */
.unified-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.unified-card__date {
    font-size: 10px;
    color: var(--text-muted);
}
.unified-card__new-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #2563EB;
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 1.4;
}
[data-theme="dark"] .unified-card__new-badge {
    background: #3B82F6;
}

/* 배지: 직구인 vs KEYWORK 검증 */
.unified-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}
.unified-card__badge--direct {
    background: #DBEAFE;
    color: #1D4ED8;
}
.unified-card__badge--parsed {
    background: #D1FAE5;
    color: #059669;
}
.unified-card__badge i { font-size: 9px; }

/* 점수 */
.unified-card__score {
    border-radius: 10px;
    padding: 1px 6px;
    font-weight: 700;
    font-size: 10px;
}
.unified-card__score--hi { background: #D1FAE5; color: #059669; }
.unified-card__score--md { background: #FEF3C7; color: #D97706; }
.unified-card__score--lo { background: #FEE2E2; color: #EF4444; }

/* 제목 */
.unified-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 카테고리/위치 태그 */
.unified-card__tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.unified-card__tag {
    display: inline-flex;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
}
.unified-card__tag--cat,
.unified-card__tag--loc,
.unified-card__tag--blue,
.unified-card__tag--gray { background: #F1F5F9; color: #475569; }

/* 요약 */
.unified-card__summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 뱃지 칩 (직접 작성 카드 내) */
.unified-card__chips {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}
.unified-card__chip {
    display: inline-flex;
    padding: 1px 6px;
    background: #F1F5F9;
    color: #64748B;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

/* 단가 정보 */
.unified-card__grades {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.unified-card__grade {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    font-size: 10px;
}
.unified-card__grade-label { font-weight: 600; color: var(--text-secondary); }
.unified-card__grade-name { font-weight: 600; color: var(--text-secondary); }
.unified-card__grade-wage { color: #2563EB; font-weight: 700; }


/* 메타 정보 */
.unified-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 10px;
    color: var(--text-muted);
}
.unified-card__meta span {
    display: flex;
    align-items: center;
    gap: 2px;
}
.unified-card__meta i { font-size: 9px; }

/* 운영자 우선순위 셀렉트 */
.priority-select {
    appearance: none;
    -webkit-appearance: none;
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FCD34D;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    cursor: pointer;
    min-width: 36px;
    text-align: center;
}
.priority-select:focus {
    outline: 2px solid #F59E0B;
    outline-offset: 1px;
}
.priority-select option { font-size: 12px; }

/* 빈 상태 */
.unified-feed__empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-muted);
}
.unified-feed__empty i {
    font-size: 1.6rem;
    opacity: 0.2;
    margin-bottom: 10px;
    display: block;
}
.unified-feed__empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.unified-feed__empty-sub {
    font-size: 11px !important;
    font-weight: 400 !important;
    margin-top: 4px !important;
    opacity: 0.7;
}

/* ─── 다크모드 대응 ─── */
[data-theme="dark"] .unified-card__badge--direct {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}
[data-theme="dark"] .unified-card__badge--parsed {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}
[data-theme="dark"] .unified-card__tag--cat,
[data-theme="dark"] .unified-card__tag--loc,
[data-theme="dark"] .unified-card__tag--blue,
[data-theme="dark"] .unified-card__tag--gray {
    background: rgba(148, 163, 184, 0.15);
    color: #94A3B8;
}
[data-theme="dark"] .unified-card__chip {
    background: rgba(100, 116, 139, 0.2);
    color: #94A3B8;
}
[data-theme="dark"] .unified-card__score--hi {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}
[data-theme="dark"] .unified-card__score--md {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}
[data-theme="dark"] .unified-card__score--lo {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}
/* (구 다크모드 badge-filter-chip → filter-chipline 다크모드로 대체됨) */
[data-theme="dark"] .unified-feed__btn--clear:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* ─── 모바일 반응형 ─── */
@media (max-width: 768px) {
    .unified-feed__grid {
        grid-template-columns: 1fr;
        padding: 10px 16px;
        gap: 8px;
    }
    .unified-feed__header {
        padding: 10px 16px;
    }
    .unified-feed__title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .unified-card {
        padding: 10px 12px;
    }
}

/* ─── 운영자 전용 직접구인 필터 ─── */
.boss-filter-bar {
    padding: 8px 16px;
    display: flex;
    justify-content: flex-end;
}
.boss-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px dashed var(--color-primary, #3b82f6);
    background: transparent;
    color: var(--color-primary, #3b82f6);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.boss-filter-chip:hover {
    background: rgba(59,130,246,0.08);
}
.boss-filter-chip--active {
    background: var(--color-primary, #3b82f6);
    color: #fff;
    border-style: solid;
}
.boss-filter-chip--active:hover {
    background: #2563eb;
}

/* ═══════════════════════════════════════════════════════
   tp3 카드 리디자인 스타일 (구인 hiring 탭용)
   ═══════════════════════════════════════════════════════ */

/* ─── 상단 검색 + 정렬 영역 ─── */
.tp3-search-area {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tp3-search-form {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    overflow: hidden;
    transition: border-color 0.2s;
}
.tp3-search-form:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.tp3-search-icon {
    padding: 0 0 0 12px;
    color: var(--text-muted);
    font-size: 13px;
}
.tp3-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    background: transparent;
    color: var(--text-primary);
}
.tp3-search-input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}
.tp3-search-clear {
    padding: 6px 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
}
.tp3-search-clear:hover { color: var(--text-primary); }

/* 정렬 + 카운트 바 */
.tp3-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 4px;
}
.tp3-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    overflow: visible;
    position: relative;
}
.tp3-count strong { color: #3B82F6; font-weight: 700; }

/* ═══ 프리미엄 슬라이더 ═══ */
.premium-slider {
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #3B82F6;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}
.premium-slider__track {
    display: flex;
    transition: transform 0.4s ease;
}
.premium-card {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 12px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
.premium-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    padding: 2px 8px;
    border-radius: 5px;
    width: fit-content;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.premium-card__badge i { font-size: 10px; }
.premium-card__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.premium-card__left { flex: 1; min-width: 0; }
.premium-card__right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.premium-card__location {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 2px;
}
.premium-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
}
.premium-card__wage {
    font-size: 13px;
    font-weight: 700;
    color: #2563EB;
    white-space: nowrap;
}
.premium-card__wage i { font-size: 11px; margin-right: 2px; }
.premium-card__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.premium-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(59,130,246,.12);
    color: #2563EB;
}
.premium-card__phone {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.premium-card__phone i {
    color: #3B82F6;
    margin-right: 3px;
    font-size: 11px;
}
.premium-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #3B82F6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 2px;
}
.premium-card__cta i { font-size: 11px; }
.premium-slider__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 0 10px;
}
.premium-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: background 0.2s;
}
.premium-dot--active {
    background: #3B82F6;
    width: 18px;
    border-radius: 4px;
}
.premium-card__company {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

/* === Premium Card Desktop === */
@media (min-width: 768px) {
    .premium-slider {
        max-width: 780px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 14px;
        border: 1.5px solid rgba(59,130,246,.18);
        box-shadow: 0 2px 12px rgba(59,130,246,.08);
        transition: box-shadow .25s ease, border-color .25s ease;
    }
    .premium-slider:hover {
        box-shadow: 0 4px 20px rgba(59,130,246,.14);
        border-color: rgba(59,130,246,.3);
    }
    .premium-card {
        padding: 22px 28px 18px;
    }
    .premium-card__badge {
        font-size: 11px;
        padding: 3px 10px;
        border-radius: 6px;
        margin-bottom: 14px;
    }
    .premium-card__row {
        flex-direction: column;
        gap: 0;
    }
    .premium-card__left {
        flex: none;
        margin-bottom: 16px;
    }
    .premium-card__location {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .premium-card__title {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 6px;
        letter-spacing: -0.3px;
    }
    .premium-card__company {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .premium-card__chips {
        gap: 6px;
    }
    .premium-chip {
        font-size: 12px;
        padding: 3px 10px;
        border-radius: 5px;
    }
    .premium-card:hover .premium-chip {
        background: rgba(59,130,246,.18);
    }
    .premium-card__right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 12px;
        border-top: 1px solid rgba(59,130,246,.12);
        padding-top: 14px;
        width: 100%;
    }
    .premium-card__wage {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -0.3px;
    }
    .premium-card__cta {
        font-size: 13px;
        padding: 9px 22px;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(37,99,235,.25);
        transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    }
    .premium-card__cta i {
        transition: transform .2s ease;
    }
    .premium-card:hover .premium-card__cta {
        background: #1D4ED8;
        box-shadow: 0 3px 10px rgba(37,99,235,.35);
        transform: translateY(-1px);
    }
    .premium-card:hover .premium-card__cta i {
        transform: translateX(3px);
    }
    .premium-card:hover .premium-card__title {
        color: #1E40AF;
    }
    .premium-slider__dots {
        padding: 0 0 14px;
    }
}

.tp3-sort {
    display: flex;
    gap: 2px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 2px;
}
.tp3-sort__btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.tp3-sort__btn--active {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tp3-sort__btn:hover:not(.tp3-sort__btn--active) {
    color: var(--text-secondary);
}

/* ─── 섹션 ─── */
.tp3-section {
    margin-bottom: 0;
}
.tp3-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.tp3-section__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tp3-section__title i {
    font-size: 12px;
    color: #3B82F6;
}
.tp3-section__title strong {
    color: #3B82F6;
    font-weight: 700;
}
.tp3-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #3B82F6;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.tp3-write-btn:hover { background: #2563EB; }
.tp3-write-btn i { font-size: 11px; }

/* ─── 카드 그리드 ─── */
.tp3-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 12px 12px;
}

/* ─── 통합 카드 v2 ─── */
.tp3-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.15s ease;
    position: relative;
}
.tp3-card:hover {
    border-color: var(--color-primary-300);
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transform: translateY(-1px);
}
.tp3-card:active {
    transform: scale(0.98);
}

/* 직접등록 카드: 좌측 블루라인 */
.tp3-card--direct {
    border-left: 3px solid #3B82F6;
    background: #fff;
}
.tp3-card--parsed {
    border-left: 2px solid #94A3B8;
}

/* info 툴팁 */
.tp3-info-trigger { position: relative; display: inline-block; }
.tp3-info-bubble {
    display: none; position: absolute; left: 50%; top: calc(100% + 8px);
    transform: translateX(-50%); white-space: nowrap; background: #1E293B; color: #fff;
    font-size: 12px; font-weight: 400; padding: 8px 14px; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 100; line-height: 1.5;
}
.tp3-info-bubble::before {
    content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #1E293B;
}
.tp3-info-bubble.show { display: block; }
@media (max-width: 768px) {
    .tp3-info-bubble { white-space: normal; width: 220px; left: auto; right: 0; transform: none; }
    .tp3-info-bubble::before { left: auto; right: 14px; transform: none; }
    .tp3-count .tp3-info-bubble { right: -20px; }
}

/* 카드 상단: 배지 + 날짜 */
.tp3-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.tp3-card__top-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tp3-card__top-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* 배지 */
.tp3-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.tp3-badge--direct { background: #DBEAFE; color: #1D4ED8; }
.tp3-badge--premium { background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff; }
.tp3-card--premium { border: 1.5px solid rgba(59,130,246,.35); background: linear-gradient(135deg, #F8FBFF 0%, #EFF6FF 100%); box-shadow: 0 2px 8px rgba(59,130,246,.1); border-left: 3px solid #3B82F6; }
.tp3-card--premium:hover { border-color: #3B82F6; box-shadow: 0 4px 16px rgba(59,130,246,.18); }

/* 추천 공고 슬라이더 */
.tp3-premium-slider { position: relative; margin-bottom: 0; overflow: hidden; padding: 0; }
.tp3-premium-slider__track { display: flex; gap: 12px; }
.tp3-premium-slide { flex: 0 0 100%; min-width: 0; margin: 3px 0; }
.tp3-premium-slider__dots { display: none; }
.tp3-premium-slider__dot { width: 6px; height: 6px; border-radius: 50%; background: #CBD5E1; cursor: pointer; transition: background .2s; }
.tp3-premium-slider__dot.active { background: #3B82F6; width: 16px; border-radius: 3px; }
.tp3-premium-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.4); border: 1px solid rgba(226,232,240,.5); box-shadow: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; color: rgba(71,85,105,.5); font-size: 12px; transition: background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.tp3-premium-slider__arrow:hover { background: rgba(255,255,255,.8); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.tp3-premium-slider__arrow--prev { left: 4px; }
.tp3-premium-slider__arrow--next { right: 4px; }
[data-theme="dark"] .tp3-premium-slider__arrow { background: rgba(30,41,59,.85); border-color: #475569; color: #CBD5E1; }
[data-theme="dark"] .tp3-premium-slider__arrow:hover { background: #334155; }
/* 직접등록 탭: 항상 나란히 */
.tp3-premium-slider--inline .tp3-premium-slide { flex: 0 0 calc(50% - 6px); }
.tp3-premium-slider--inline .tp3-premium-slider__dots { display: none; }
.tp3-premium-slider--inline .tp3-premium-slider__arrow { display: none; }
@media (min-width: 768px) {
    .tp3-premium-slider { overflow: hidden; padding: 0 20px; }
    .tp3-premium-slider__track { display: flex; gap: 12px; flex-wrap: wrap; }
    .tp3-premium-slide { flex: 0 0 calc(50% - 6px); }
    .tp3-premium-slide:nth-child(n+3) { display: none; }
    .tp3-premium-slider__dots { display: none; }
    .tp3-premium-slider__arrow { display: none; }
}

.tp3-badge--recruited {
    background: #10B981;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    letter-spacing: 0.02em;
}
/* 구인완료 카드: 흐림 + 중앙 스탬프 */
.tp3-card--recruited {
    position: relative;
    overflow: hidden;
}
/* 흰색 반투명 dimming 레이어 */
.tp3-card--recruited::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.62);
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}
[data-theme="dark"] .tp3-card--recruited::before {
    background: rgba(15,23,42,0.6);
}
/* 중앙 구인완료 스탬프 */
.tp3-card--recruited::after {
    content: '구인완료';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #10B981;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 8px 22px;
    border-radius: 30px;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(16,185,129,0.35);
}
/* 상단 배지는 스탬프 위로 */
.tp3-card--recruited .tp3-card__top-left {
    position: relative;
    z-index: 3;
}
.tp3-badge i { font-size: 9px; }
.tp3-new {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #2563EB;
    padding: 2px 6px;
    border-radius: 4px;
}
.tp3-new-badge {
    font-size: 10px;
    font-weight: 700;
    color: #2563EB;
    background: #EFF6FF;
    padding: 1px 6px;
    border-radius: 3px;
}

/* ─── v4 카드 (새 디자인) ─── */
.v4-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: stretch;
}
.v4-grid > .v4-card {
    justify-content: space-between;
}
@media (max-width: 768px) {
    .v4-grid { grid-template-columns: 1fr; background: #F8FAFC; padding: 0; border-radius: 10px; }
}
.v4-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    border-left: 2px solid #93C5FD;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
}
.v4-card:hover {
    border-color: #93C5FD;
    border-left-color: #3B82F6;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transform: translateY(-1px);
}
.v4-card--parsed { border-left-color: #CBD5E1; }
.v4-card--parsed:hover { border-left-color: #94A3B8; }
.v4-card--premium { border: 1.5px solid rgba(59,130,246,.35); background: linear-gradient(135deg, #F8FBFF 0%, #EFF6FF 100%); box-shadow: 0 2px 8px rgba(59,130,246,.1); border-left: 2px solid #3B82F6; }
.v4-card--premium:hover { border-color: #3B82F6; box-shadow: 0 4px 16px rgba(59,130,246,.18); }
.v4-card--recruited { position: relative; overflow: hidden; }
.v4-card--recruited::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.62); z-index: 1; pointer-events: none; border-radius: inherit; }
[data-theme="dark"] .v4-card--recruited::before { background: rgba(15,23,42,0.6); }
.v4-card--recruited::after { content: '구인완료'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #10B981; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.08em; padding: 8px 22px; border-radius: 30px; z-index: 2; pointer-events: none; white-space: nowrap; box-shadow: 0 2px 12px rgba(16,185,129,0.35); }
.v5-card--recruited { position: relative; overflow: hidden; }
.v5-card--recruited::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.6); z-index: 1; pointer-events: none; border-radius: inherit; }
[data-theme="dark"] .v5-card--recruited::before { background: rgba(15,23,42,0.6); }
.v5-card--recruited::after { content: '구인완료'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #EFF6FF; color: #3B82F6; font-size: 15px; font-weight: 800; letter-spacing: 0.05em; padding: 8px 24px; border-radius: 8px; z-index: 2; pointer-events: none; white-space: nowrap; }
[data-theme="dark"] .v5-card--recruited::after { background: rgba(59,130,246,0.15); color: #93C5FD; }

/* ─── 파싱글 신선도 배지 + 마감 신고 버튼 (2026-05-04 step0) ─── */
.v5-bottom-strip { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #E5E7EB; }
[data-theme="dark"] .v5-bottom-strip { border-top-color: #374151; }
.kw-fresh { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.kw-fresh--green  { background: #E8F5E9; color: #2E7D32; }
.kw-fresh--yellow { background: #FFF8E1; color: #F57C00; }
.kw-fresh--gray   { background: #EEEEEE; color: #616161; }
.kw-fresh--stale  { background: #FAFAFA; color: #9E9E9E; }
[data-theme="dark"] .kw-fresh--green  { background: rgba(46,125,50,0.18); color: #81C784; }
[data-theme="dark"] .kw-fresh--yellow { background: rgba(245,124,0,0.15); color: #FFB74D; }
[data-theme="dark"] .kw-fresh--gray   { background: rgba(255,255,255,0.08); color: #9CA3AF; }
[data-theme="dark"] .kw-fresh--stale  { background: rgba(255,255,255,0.05); color: #6B7280; }
.v5-close-report-btn { background: transparent; border: 1px solid #E5E7EB; color: #9CA3AF; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.v5-close-report-btn:hover { background: #FEF2F2; border-color: #FCA5A5; color: #DC2626; }
.v5-close-report-btn[disabled] { background: #F3F4F6; color: #9CA3AF; cursor: default; pointer-events: none; }
.v5-close-report-btn i { font-size: 10px; }
[data-theme="dark"] .v5-close-report-btn { border-color: #374151; color: #6B7280; }
[data-theme="dark"] .v5-close-report-btn:hover { background: rgba(220,38,38,0.12); border-color: #EF4444; color: #FCA5A5; }
.v4-card__header { display: flex; align-items: center; gap: 4px; }
.v4-stats { margin-left: auto; display: flex; gap: 6px; font-size: 10px; color: #CBD5E1; }
.v4-stats span { display: flex; align-items: center; gap: 2px; }
.v4-badge-trade { display: inline-flex; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #EFF6FF; color: #2563EB; }
.v4-badge-direct { display: inline-flex; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; background: #F0FDF4; color: #16A34A; }
.v4-card__title { font-size: 14.5px; font-weight: 700; color: #1E293B; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v4-title--short { display: none; }
.v4-info-row { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #64748B; }
.v4-info-row i { font-size: 10px; color: #94A3B8; }
.v4-conditions { font-size: 12.5px; color: #6B7280; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.v4-card__wage { padding-top: 6px; border-top: 1px solid #F1F5F9; }
.v4-wage-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.v4-wage-amount { font-size: 16px; font-weight: 800; color: #2563EB; letter-spacing: -0.3px; }
.v4-wage-unit { font-size: 12px; font-weight: 500; color: #94A3B8; }
.v4-wage-sub { font-size: 11px; color: #94A3B8; }
.v4-wage-sub strong { color: #64748B; font-weight: 600; }
.v4-company { font-size: 12px; color: #94A3B8; }
/* v4-apply-btn, v4-btn-row, v4-share-btn → v4-card.css에서 관리 */
.v4-card .priority-wrap { position: relative; z-index: 3; }

.tp3-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* 태그 (공종/지역) */
.tp3-tag {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #F1F5F9;
    color: #475569;
    line-height: 1.5;
}
.tp3-tag--blue { background: #EFF6FF; color: #2563EB; }

/* 제목 */
.tp3-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 70px;
}

/* 요약 */
.tp3-card__summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 단가 */
.tp3-wages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.tp3-wages__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.tp3-wage {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
}
.tp3-wage__label { font-weight: 600; color: var(--text-secondary); }
.tp3-wage__value { color: #2563EB; font-weight: 700; font-size: 14px; }
.tp3-apply-inline {
    font-size: 12px;
    font-weight: 600;
    color: #3B82F6;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid #3B82F6;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}
.tp3-apply-inline:hover { background: #EFF6FF; }

/* 칩 (조건) */
.tp3-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.tp3-chip {
    display: inline-flex;
    padding: 2px 7px;
    background: #F1F5F9;
    color: #64748B;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* 조건 텍스트 (칩 대체) */
.tp3-conditions {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

/* 하단: 메타 + 바로지원 */
.tp3-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 2px;
}
.tp3-card { position: relative; }
.tp3-meta {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
}
.tp3-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}
.tp3-meta i { font-size: 10px; }

/* 운영자 우선순위 wrapper (tp3-meta 안, 조회수 왼쪽) */
.priority-wrap {
    display: inline-flex;
    align-items: center;
}

/* 바로지원 버튼 */
.tp3-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #3B82F6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.tp3-apply-btn:hover { background: #2563EB; }
.tp3-apply-btn i { font-size: 11px; }

/* ─── 페이지네이션 ─── */
.tp3-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
}
.tp3-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.15s;
}
.tp3-pagination a:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}
.tp3-pagination a.active {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
    font-weight: 700;
}

/* ─── 구분선 ─── */
.tp3-divider {
    display: none;
}

/* ─── 빈 상태 ─── */
.tp3-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.tp3-empty i { font-size: 2rem; opacity: 0.2; margin-bottom: 10px; display: block; }
.tp3-empty p { font-size: 14px; font-weight: 600; margin: 0; }
.tp3-empty-sub { font-size: 12px; font-weight: 400; margin-top: 4px; opacity: 0.7; }

/* ─── 더보기 ─── */
.tp3-more {
    padding: 4px 20px 4px;
}
.tp3-more__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    background: none;
    transition: all 0.15s;
}
.tp3-more__link:hover {
    color: #6B7280;
}
.tp3-more__link:active {
    transform: scale(0.98);
}
.tp3-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.15s;
    background: var(--bg-primary);
}
.tp3-back-btn:hover {
    background: var(--bg-secondary);
    border-color: #3B82F6;
    color: #3B82F6;
}

/* 관리자 삭제 버튼 */
.tp3-admin-del {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    color: #EF4444;
    border: 1px solid rgba(239,68,68,0.2);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    z-index: 5;
}
.tp3-admin-del:hover {
    background: #EF4444;
    color: #fff;
}

/* 운영자 전용 출처 배지 */
.kw-src-badge {
    position: absolute;
    top: 10px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    z-index: 5;
}
.kw-src-badge--band { background: #16A34A; color: #fff; }
.kw-src-badge--kakao { background: #FDE500; color: #3C1E1E; }
.kw-src-badge--official { background: #3B82F6; color: #fff; }
.kw-src-badge--etc { background: #9CA3AF; color: #fff; }

/* 필터 결과 헤더 */
.tp3-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-bottom: none;
}
.tp3-filter-header__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.tp3-filter-header__count {
    font-size: 13px;
    color: var(--text-muted);
}
.tp3-filter-header__count strong {
    color: #3B82F6;
    font-weight: 700;
}
.tp3-filter-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    text-decoration: none;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}
.tp3-filter-clear-btn:hover {
    color: #EF4444;
    background: #FEE2E2;
}

/* ═══ 다크모드: tp3 카드 ═══ */
[data-theme="dark"] .tp3-badge--direct { background: rgba(59,130,246,0.2); color: #60A5FA; }
[data-theme="dark"] .tp3-badge--premium { background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff; }
[data-theme="dark"] .tp3-card--premium { border-color: rgba(59,130,246,.4); background: rgba(37,99,235,.08); }
[data-theme="dark"] .tp3-tag { background: rgba(148,163,184,0.15); color: #94A3B8; }
[data-theme="dark"] .tp3-tag--blue { background: rgba(59,130,246,0.15); color: #60A5FA; }
[data-theme="dark"] .tp3-chip { background: rgba(100,116,139,0.2); color: #94A3B8; }
[data-theme="dark"] .tp3-card--direct { border-top-color: #60A5FA; background: var(--bg-primary); }

/* ═══ tp3 모바일 반응형 ═══ */
@media (max-width: 768px) {
    .popular-bar { display: none !important; }

    .tp3-search-area {
        display: none;
        padding: 6px 8px;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-primary);
    }
    .tp3-search-area.tp3-search--open {
        display: flex;
        animation: tp3SlideDown 0.2s ease;
    }
    @keyframes tp3SlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .tp3-grid {
        grid-template-columns: 1fr;
        padding: 0 8px 10px;
        gap: 8px;
    }

    .tp3-toolbar {
        flex-direction: row;
        padding: 6px 10px 4px;
        gap: 6px;
    }
    .tp3-count {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    .tp3-sort {
        gap: 1px;
        padding: 2px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .tp3-sort__btn {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .tp3-section {
        background: #F8FAFC;
        border-radius: 10px;
    }
    .tp3-section__header {
        padding: 0;
    }
    .tp3-section__title {
        font-size: 16px;
        gap: 6px;
    }
    .tp3-section__title i {
        font-size: 15px;
    }

    .tp3-card {
        padding: 18px 16px;
        gap: 12px;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
    }
    .tp3-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
    }
    .tp3-card:active {
        transform: scale(0.985);
    }
    .tp3-card--direct {
        border-top-width: 3px;
    }

    .tp3-card__top {
        gap: 8px;
        margin-bottom: 2px;
    }
    .tp3-date { font-size: 13px; }
    .tp3-new { font-size: 11px; padding: 2px 8px; }

    .tp3-badge {
        padding: 5px 12px;
        font-size: 13px;
        border-radius: 8px;
        gap: 5px;
    }
    .tp3-badge i { font-size: 11px; }

    .tp3-card__tags { gap: 6px; margin-top: 2px; }
    .tp3-tag {
        padding: 5px 11px;
        font-size: 13px;
        border-radius: 6px;
        line-height: 1.3;
    }

    .tp3-card__title {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.5;
    }

    .tp3-card__summary {
        font-size: 15px;
        line-height: 1.6;
    }

    .tp3-wages { gap: 6px; margin-top: 2px; }
    .tp3-wage {
        padding: 5px 11px;
        font-size: 13px;
        border-radius: 6px;
    }
    .tp3-wage__label { font-size: 13px; }
    .tp3-wage__value { font-size: 16px; font-weight: 800; }

    .tp3-chips { gap: 6px; margin-top: 2px; }
    .tp3-chip {
        padding: 5px 11px;
        font-size: 13px;
        border-radius: 6px;
    }

    .tp3-card__bottom {
        padding-top: 10px;
        margin-top: 4px;
    }
    .tp3-meta { gap: 14px; font-size: 13px; }
    .tp3-meta i { font-size: 12px; }
    .tp3-meta span { gap: 4px; }

    .tp3-apply-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
    .tp3-apply-btn i { font-size: 13px; }

    .tp3-pagination { padding: 18px 12px; gap: 6px; }
    .tp3-pagination a {
        min-width: 42px;
        height: 42px;
        font-size: 15px;
        border-radius: 10px;
    }

    .tp3-empty { padding: 44px 16px; }
    .tp3-empty i { font-size: 2rem; }
    .tp3-empty p { font-size: 16px; }
    .tp3-empty-sub { font-size: 14px; margin-top: 8px; }

    .tp3-divider { margin: 0 10px; }
    .tp3-more { padding: 4px 10px 4px; }
    .tp3-more__link {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }

    .tp3-filter-header { padding: 10px 12px; }

    .tp3-admin-del {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .tp3-section { padding-bottom: 2px; }
}

/* ═══ 소형 모바일 (≤480px) ═══ */
@media (max-width: 480px) {
    .tp3-grid { padding: 0 6px 8px; gap: 6px; }
    .tp3-search-area { padding: 6px 6px; gap: 6px; }
    .tp3-search-input { padding: 8px 8px; font-size: 13px; }
    .tp3-search-input::placeholder { font-size: 12px; }
    .tp3-search-icon { padding: 0 0 0 8px; font-size: 12px; }

    .tp3-toolbar { gap: 4px; }
    .tp3-count { font-size: 11px; }
    .tp3-sort__btn { padding: 5px 8px; font-size: 11px; }

    .filter-chipline { margin: 0 4px; height: 46px; }
    .filter-chipline__chip { padding: 7px 12px; font-size: 13px; }
    .filter-chipline__tag { padding: 6px 10px; font-size: 12px; }
    .filter-chipline__cond-btn { padding: 7px 12px; font-size: 13px; }

    .tp3-section__header { padding: 0 20px; }
    .tp3-section__title { font-size: 14px; }

    .tp3-card { padding: 14px 12px; gap: 10px; border-radius: 12px; }
    .tp3-card--direct { border-top-width: 2px; }
    .tp3-badge { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
    .tp3-badge i { font-size: 10px; }
    .tp3-tag { padding: 3px 8px; font-size: 12px; border-radius: 5px; }
    .tp3-card__title { font-size: 15px; line-height: 1.45; }
    .tp3-card__summary { font-size: 13px; line-height: 1.5; }
    .tp3-wage { padding: 3px 8px; font-size: 12px; }
    .tp3-wage__value { font-size: 14px; }
    .tp3-chip { padding: 3px 8px; font-size: 12px; }
    .tp3-meta { gap: 10px; font-size: 12px; }
    .tp3-meta i { font-size: 11px; }
    .tp3-date { font-size: 12px; }
    .tp3-apply-btn { padding: 8px 12px; font-size: 13px; border-radius: 6px; }
    .tp3-apply-btn i { font-size: 12px; }
    .tp3-card__bottom { padding-top: 8px; }
    .tp3-pagination a { min-width: 38px; height: 38px; font-size: 14px; border-radius: 8px; }
    .tp3-more { padding: 4px 6px 4px; }
    .tp3-more__link { padding: 12px 16px; font-size: 14px; border-radius: 10px; }
    .tp3-divider { margin: 0 6px; }
}

/* ═══ 초소형 모바일 (≤360px) ═══ */
@media (max-width: 360px) {
    .tp3-search-area { padding: 4px 4px; gap: 4px; }
    .tp3-search-input { padding: 7px 6px; font-size: 13px; }
    .tp3-toolbar { gap: 2px; }
    .tp3-count { font-size: 10px; }
    .tp3-sort__btn { padding: 5px 6px; font-size: 10px; }
    .filter-chipline { margin: 0 2px; height: 42px; }
    .filter-chipline__chip { padding: 6px 10px; font-size: 12px; }
    .filter-chipline__cond-btn { padding: 8px 10px; font-size: 12px; }
    .tp3-section__header { padding: 0 20px; }
    .tp3-section__title { font-size: 13px; }
    .tp3-card { padding: 12px 10px; gap: 8px; border-radius: 10px; }
    .tp3-badge { padding: 3px 8px; font-size: 11px; }
    .tp3-tag { padding: 2px 6px; font-size: 11px; }
    .tp3-card__title { font-size: 14px; }
    .tp3-card__summary { font-size: 12px; }
    .tp3-wage { padding: 2px 6px; font-size: 11px; }
    .tp3-wage__value { font-size: 13px; }
    .tp3-chip { padding: 2px 6px; font-size: 11px; }
    .tp3-apply-btn { padding: 7px 10px; font-size: 12px; }
    .tp3-pagination a { min-width: 34px; height: 34px; font-size: 13px; }
}

/* ═══ 로그인 바텀시트 ═══ */
.login-sheet__backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 10998; opacity: 0; transition: opacity 200ms ease;
}
.login-sheet__backdrop.active { display: block; opacity: 1; }
.login-sheet {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10999;
    background: var(--bg-primary, #fff); border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12); max-height: 80vh;
    transform: translateY(100%); transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
    flex-direction: column;
}
.login-sheet.active { transform: translateY(0); }
.login-sheet__handle { display: flex; justify-content: center; padding: 12px 0 4px; }
.login-sheet__handle span { width: 40px; height: 4px; border-radius: 9999px; background: #CBD5E1; }
.login-sheet__close {
    position: absolute; top: 12px; right: 14px; z-index: 1;
    width: 36px; height: 36px; border: none; background: none;
    font-size: 24px; line-height: 1; color: var(--text-muted, #94a3b8);
    cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.login-sheet__close:hover { background: rgba(0,0,0,0.06); color: var(--text-primary, #1a1a1a); }
[data-theme="dark"] .login-sheet__close:hover { background: rgba(255,255,255,0.1); }
.login-sheet__body {
    flex: 1; overflow-y: auto; padding: 20px 24px 24px;
    -webkit-overflow-scrolling: touch; text-align: center;
}
.login-sheet__title {
    font-size: 18px; font-weight: 700; margin: 0 0 4px;
    color: var(--text-primary);
}
.login-sheet__desc {
    font-size: 13px; color: var(--text-muted); margin: 0 0 20px;
}
.login-sheet__social {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px;
}
.login-sheet__social a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: opacity 0.15s;
}
.login-sheet__social a:hover { opacity: 0.85; }
.login-sheet__kakao { background: #FEE500; color: #3C1E1E; }
.login-sheet__naver { background: #03C75A; color: #fff; }
.login-sheet__divider {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 16px; font-size: 12px; color: var(--text-muted);
}
.login-sheet__divider::before,
.login-sheet__divider::after {
    content: ''; flex: 1; border-top: 1px solid var(--border-color);
}
.login-sheet__form {
    display: flex; flex-direction: column; gap: 10px;
}
.login-sheet__input {
    padding: 12px 14px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 14px; outline: none;
    background: var(--bg-primary); color: var(--text-primary);
}
.login-sheet__input:focus { border-color: #3B82F6; }
.login-sheet__submit {
    padding: 13px; background: #3B82F6; color: #fff; border: none;
    border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.login-sheet__submit:hover { background: #2563EB; }
.login-sheet__error {
    display: none; padding: 10px; background: #FEE2E2; color: #DC2626;
    border-radius: 8px; font-size: 13px; font-weight: 500; text-align: center;
}
[data-theme="dark"] .login-sheet { background: #1a1a1a; }
[data-theme="dark"] .login-sheet__input { background: #242424; border-color: #404040; color: #d4d4d4; }
