@font-face {
    font-family: "Futura-Medium";
    src: url("/fonts/FUTURAMEDIUM.TTF") format("truetype");
}

/* 변수 */
:root { --pd-border: 1.3px solid #000; --pd-input-border: 1.3px solid #000; }


/* 띠 메뉴 (탭바) */
.pd-tabbar {
    display: flex;
    justify-content: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
    max-width: 100%;
    padding: 0 40px;
    margin-top: 10px;
}

.pd-tabbar__tab {
    position: relative;
}

.pd-tabbar__link {
    display: inline-block;
    padding: 15px 30px;
    min-width: 107px;
    text-align: center;
    font-family: "Futura-Medium", "AppleSDGothicNeo-Bold", "Malgun Gothic Bold", sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #757575;
    text-decoration: none;
    letter-spacing: -0.01rem;
    transition: color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    margin-top: -1px;
}

.pd-tabbar__link:hover {
    color: #000;
    background: #f2f2f2;
}

.pd-tabbar__link--active {
    color: #000;
    border-bottom: 2px solid #000;
}

html.dark-mode .pd-tabbar { background: #1d1d1f; border-color: #2a2a2a; }
html.dark-mode .pd-tabbar__link { color: #757575; }
html.dark-mode .pd-tabbar__link:hover { color: #f5f5f7; }
html.dark-mode .pd-tabbar__link--active { color: #f5f5f7; border-color: #f5f5f7; }

/* placeholder 스타일 */
.pd-container input::placeholder,
.pd-container textarea::placeholder,
.pd-container select::placeholder {
  color: #000;
  font-weight: 500;
  opacity: 1;
}

/* 전체 컨테이너 */
.pd-container { max-width: 1270px; margin: 0 auto; padding: 20px; }
.pd-container p { margin: 0; padding: 0; }
.pd-container ul { margin: 0; padding: 0; list-style: none; }

/* 상단 브레드크럼 */
.top-nav { color: #888; font-size: 13px; margin-bottom: 20px; }

/* 헤더 영역 */
.pd-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.header-left { display: flex; gap: 15px; align-items: center; }
.logo-box { width: 60px; height: 60px; background-color: #f0f0f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; cursor: pointer; transition: opacity 0.15s; }
.logo-box:hover { opacity: 0.8; }
.logo-text { font-size: 10px; color: #00695c; font-weight: bold; text-align: center; line-height: 1.2; }
.project-title { margin: 0 0 5px 0; font-size: 22px; font-weight: bold; color: #111; display: flex; align-items: center; gap: 5px; }
.star-icon { color: #f39c12; font-size: 20px; font-weight: normal; }
.project-subtitle { margin: 0; font-size: 14px; color: #666; }
.edit-link { font-size: 13px; color: #000; font-weight: 500; text-decoration: underline; }
.header-right { display: flex; align-items: center; gap: 12px; }
.btn-header-save { padding: 6px 16px; font-size: 13px; font-weight: bold; color: #fff; background: #111; border: none; border-radius: 5px; cursor: pointer; }
.btn-header-save:hover { background: #333; }

/* 메인 레이아웃 (좌 6.5 : 우 3.5 비율) */
.main-layout { display: flex; gap: 0; align-items: flex-start; }

/* --- 왼쪽 컬럼 (통짜 흰색 박스) --- */
.content-left { flex: 6.5; background: #fff; border: none; border-top: 2px solid #000; border-radius: 0; display: flex; flex-direction: column; margin-right: 30px; }

.content-section { padding: 20px 15px 24px; border-bottom: var(--pd-border); }
.content-section.no-border { border-bottom: none; }
.content-section.padding-small { padding: 20px 15px 24px; }
.content-section.padding-small.no-border { padding: 20px 15px 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

.section-title { font-size: 15px; font-weight: 700; color: #000; margin: 0 0 4px; }
.section-title.mb-0 { margin-bottom: 0; }
.unsubmitted { color: #999; font-weight: normal; font-size: 15px; }
.fold-btn { font-size: 13px; font-weight: normal; color: #666; margin-left: 10px; cursor: pointer; }
.edit-canvas-link { font-size: 13px; color: #888; text-decoration: underline; }

.desc-text p { font-size: 14px; color: #444; margin-bottom: 5px; line-height: 1.6; }
.bullet-list li { font-size: 14px; color: #444; position: relative; padding-left: 15px; }
.bullet-list li::before { content: "\25E6"; position: absolute; left: 0; top: 0; color: #666; font-size: 14px; }

/* --- 오른쪽 컬럼 (개별 박스들) --- */
.sidebar-right { flex: none; width: 300px; display: flex; flex-direction: column; gap: 0; border: 1px solid #000; }

.side-box { background: #fff; border: none; border-bottom: 1px solid #000; border-radius: 0; padding: 20px; }
.side-box:last-child { border-bottom: none; }
.side-title { margin: 0 0 20px 0; font-size: 15px; font-weight: 700; color: #000; }
.icon-send { color: #3b82f6; font-size: 16px; margin-left: 4px; }

/* 첫인상 평가 결과 */
.progress-container { margin-bottom: 15px; }
.progress-bar { width: 100%; height: 24px; display: flex; border-radius: 2px; overflow: hidden; font-size: 11px; color: #fff; font-weight: bold; text-align: center; line-height: 24px; }
.progress-green { background-color: #28a745; }
.progress-red { background-color: #dc3545; }
.eval-details { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #000; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.dot.green { background-color: #28a745; }
.dot.red { background-color: #dc3545; }
.detail-link { color: #000; text-decoration: underline; font-size: 12px; font-weight: 500; }

/* 멤버 영역 */
.member-list { display: flex; flex-direction: column; }
.member-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: none; position: relative; }
.member-item:first-child { padding-top: 0; }
.avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.default-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #ccc; }
.member-info { display: flex; flex-direction: column; gap: 4px; }
.member-name { font-size: 14px; font-weight: 500; color: #000; text-transform: uppercase; }
.member-name.clickable-member, .app-name.clickable-member { cursor: pointer; transition: opacity 0.15s; }
.member-name.clickable-member:hover, .app-name.clickable-member:hover { opacity: 0.6; }
.badge-leader { color: #000; font-size: 12px; font-weight: normal; margin-left: 4px; }
.member-tags { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.tag { background: #e0e7ff; color: #4f46e5; padding: 2px 6px; border-radius: 4px; }
.count { background: #3b82f6; color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.icon-msg { color: #888; margin-left: 4px; }
.remove-btn { position: absolute; right: 0; background: none; border: 1px solid #ffcccc; color: #dc3545; border-radius: 4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }

.interest-box { margin-top: 15px; padding-top: 15px; font-size: 13px; color: #000; text-align: center; font-weight: 500; }
.badge-green { background: #28a745; color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-left: 4px; }

/* 진행상황 체크리스트 */
.checklist { display: flex; flex-direction: column; }
.check-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: none; font-size: 15px; font-weight: 700; color: #000; }
.check-item:last-child { border-bottom: none; padding-bottom: 0; }
.check-text { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check-icon { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #ccc; display: inline-block; }
.check-icon.checked { background: #000; border-color: #000; }
.check-icon.unchecked { background: #fff; border-color: #ccc; }

/* 멤버 타이틀 행 */
.side-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.side-title-row .side-title { margin-bottom: 0; }
.side-title.mb-0 { margin-bottom: 0; }

/* 타이틀 우측 신청 버튼 */
.btn-apply-small { padding: 4px 12px; font-size: 12px; font-weight: bold; color: #fff; background: #000; border: none; border-radius: 14px; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.btn-apply-small:hover { background: #333; }

/* 신청완료 뱃지 */
.badge-applied { padding: 4px 10px; font-size: 11px; font-weight: bold; color: #fff; background: #28a745; border-radius: 14px; white-space: nowrap; }

/* 팀빌딩 완료 버튼 */
.btn-team-complete { padding: 4px 10px; font-size: 11px; font-weight: bold; color: #fff; background: #3b82f6; border: none; border-radius: 4px; cursor: pointer; white-space: nowrap; margin-left: auto; }
.btn-team-complete:hover { background: #2563eb; }
.btn-team-completed { background: #6b7280; cursor: default; }
.btn-team-completed:hover { background: #6b7280; }

/* 내보내기 버튼 */
.btn-app-kick { display: none; align-items: center; gap: 6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; font-weight: 400; color: #000; background: none; border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; margin-left: auto; padding: 0; text-transform: uppercase; }
.member-item:hover .btn-app-kick { display: inline-flex; }
.btn-app-invite { display: none; align-items: center; gap: 6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; font-weight: 500; color: #000; background: none; border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; margin-left: auto; padding: 0; text-transform: uppercase; }
.member-item:hover .btn-app-invite { display: inline-flex; }
.btn-team-done { width: 100%; height: 48px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 0; transition: all 0.2s; background: #000; color: #fff; border: 1px solid #000; }
.btn-app-kick:hover { background: none; color: #000; }

/* 팀원 신청 섹션 */
.app-section-title { font-size: 13px; font-weight: bold; color: #333; margin: 15px 0 10px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.app-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 6px; margin-left: 6px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border-radius: 9px; vertical-align: middle; }

/* 역할 버튼 그룹 */
.role-btn-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.role-btn { padding: 5px 10px; font-size: 12px; border: 1px solid #ddd; border-radius: 16px; background: #fff; color: #555; cursor: pointer; transition: all 0.15s; }
.role-btn:hover { border-color: #000; color: #000; }
.role-btn.active { background: #000; color: #fff; border-color: #000; }

/* 신청 버튼 */
.btn-apply { width: 100%; padding: 10px; font-size: 14px; font-weight: bold; color: #fff; background: #000; border: none; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.btn-apply:hover { background: #333; }
.btn-apply:disabled { background: #999; cursor: not-allowed; }

/* 이미 신청 메시지 */
.already-applied-msg { font-size: 13px; color: #666; padding: 10px; background: #f8f9fa; border-radius: 6px; text-align: center; }
.applied-roles { display: block; margin-top: 4px; color: #3b82f6; font-weight: bold; }

/* 소유자 신청 리스트 */
.application-list { display: flex; flex-direction: column; gap: 8px; }
.app-empty { font-size: 13px; color: #999; text-align: center; padding: 10px 0; }
.app-item { padding: 0; border: none; border-radius: 0; background: none; }
.app-item-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.app-name { font-size: 13px; font-weight: 500; color: #000; text-transform: uppercase; }
.app-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.app-actions { display: none; gap: 4px; flex-shrink: 0; }
.app-item:hover .app-actions { display: flex; }
.btn-app-approve { display: inline-flex; align-items: center; gap: 6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; font-weight: 400; color: #000; background: none; border: none; cursor: pointer; white-space: nowrap; padding: 0; margin-right: 15px; text-transform: uppercase; }
.btn-app-reject { display: inline-flex; align-items: center; gap: 6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; font-weight: 400; color: #000; background: none; border: none; cursor: pointer; white-space: nowrap; padding: 0; text-transform: uppercase; }

/* 상태 뱃지 */
.badge-pending { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #ffc107; color: #333; font-weight: bold; }
.badge-approved { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #28a745; color: #fff; font-weight: bold; }
.badge-rejected { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #dc3545; color: #fff; font-weight: bold; }

/* 헤더 인라인 수정 */
.edit-title-input { width: 100%; padding: 10px 12px; font-size: 22px; font-weight: bold; color: #111; border: none; border-bottom: var(--pd-input-border); border-radius: 0; background: transparent; outline: none; font-family: inherit; box-sizing: border-box; }
.edit-tagline-input { width: 100%; padding: 4px 0; font-size: 14px; color: #666; border: none; border-bottom: 1px solid #ddd; background: transparent; outline: none; font-family: inherit; margin-top: 4px; }
.edit-tagline-input:focus { border-color: #3b82f6; }

/* 인라인 수정 모드 */
.edit-field { width: 100%; padding: 10px 12px; font-size: 14px; line-height: 1.7; border: var(--pd-border); border-radius: 0; font-family: inherit; color: #333; background: #fff; box-sizing: border-box; resize: vertical; margin-top: 8px; }
.editor-wrap.edit-field { border-left: none; border-right: none; }
.pd-editor-area { min-height: 120px; max-height: 320px; overflow-y: auto; padding: 16px; font-family: 'Pretendard', sans-serif; font-size: 16px; font-weight: 400; color: #1a1a1a; letter-spacing: -0.02em; line-height: 1.5; outline: none; -webkit-font-smoothing: antialiased; }
.edit-field:focus { outline: none; border-color: #000; }
input.edit-field { margin-top: 8px; border: none; border-bottom: var(--pd-input-border); border-radius: 0; }
.edit-actions { display: flex; gap: 10px; padding: 20px 15px; border-top: 1px solid #e0e0e0; }
.btn-pd-save { width: 100%; height: 48px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 0; transition: all 0.2s; background: #000; color: #fff; border: 1px solid #000; }
.btn-pd-save:hover { background: #000; }
.btn-pd-cancel { width: 100%; height: 48px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 0; transition: all 0.2s; background: #fff; color: #000; border: 1px solid #000; }
.btn-pd-cancel:hover { background: #fff; }
.submitted-value { margin-top: 8px; font-size: 14px; }
.submitted-value a { color: #3b82f6; text-decoration: underline; }

/* 모바일 반응형 */
@media (max-width: 768px) {
    .pd-tabbar { padding: 0 10px; }
    .pd-tabbar__link { padding: 12px 15px; min-width: auto; font-size: 13px; }
    .main-layout { flex-direction: column; }
    .content-left { flex: none; width: 100%; }
    .sidebar-right { flex: none; width: 100%; }
    .header { flex-direction: column; gap: 10px; }
    .project-title { font-size: 18px; white-space: normal; overflow: visible; text-overflow: clip; }

    .pd-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .pd-header .header-right {
        order: -1;
        justify-content: flex-end;
    }
    .pd-header .header-left {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }
    .pd-header .header-left .logo-box {
        width: 100px;
        height: 100px;
    }
    .pd-header .title-info {
        text-align: left;
        align-self: stretch;
    }
}

/* ===== 다크모드 ===== */
html.dark-mode .pd-container { color: #f5f5f7; }
html.dark-mode .top-nav { color: #666; }
html.dark-mode .logo-box { background-color: #1a3a38; }
html.dark-mode .logo-text { color: #5fc1c4; }
html.dark-mode .project-title { color: #f5f5f7; }
html.dark-mode .project-subtitle { color: #999; }
html.dark-mode .edit-link { color: #999; }
html.dark-mode .btn-header-save { background: #f5f5f7; color: #111; }
html.dark-mode .btn-header-save:hover { background: #ddd; }
html.dark-mode .content-left { background: #1d1d1f; border-color: #2a2a2a; }
html.dark-mode .content-section { border-color: #2a2a2a; }
html.dark-mode .section-title { color: #f5f5f7; }
html.dark-mode .unsubmitted { color: #666; }
html.dark-mode .fold-btn { color: #999; }
html.dark-mode .edit-canvas-link { color: #666; }
html.dark-mode .desc-text p { color: #ccc; }
html.dark-mode .bullet-list li { color: #ccc; }
html.dark-mode .side-box { background: #1d1d1f; border-color: #2a2a2a; }
html.dark-mode .side-title { color: #f5f5f7; }
html.dark-mode .eval-details { color: #ccc; }
html.dark-mode .detail-link { color: #999; }
html.dark-mode .member-name { color: #f5f5f7; }
html.dark-mode .member-item { border-color: #2a2a2a; }
html.dark-mode .interest-box { color: #999; }
html.dark-mode .check-item { color: #f5f5f7; border-color: #2a2a2a; }
html.dark-mode .check-icon.checked { color: #f5f5f7; }
html.dark-mode .check-icon.unchecked { color: #444; }
html.dark-mode .btn-apply-small { background: #3b82f6; }
html.dark-mode .btn-app-kick { background: #2a2a2a; border-color: #dc3545; color: #dc3545; }
html.dark-mode .btn-app-kick:hover { background: none; color: #000; }
html.dark-mode .app-section-title { color: #f5f5f7; border-color: #2a2a2a; }
html.dark-mode .role-btn { background: #2a2a2a; border-color: #444; color: #ccc; }
html.dark-mode .role-btn:hover { border-color: #000; color: #000; }
html.dark-mode .role-btn.active { background: #000; color: #fff; border-color: #000; }
html.dark-mode .already-applied-msg { background: #2a2a2a; color: #999; }
html.dark-mode .app-item { background: #2a2a2a; border-color: #444; }
html.dark-mode .app-name { color: #f5f5f7; }
html.dark-mode .app-empty { color: #666; }
html.dark-mode .edit-title-input { color: #f5f5f7; border-color: #3b82f6; }
html.dark-mode .edit-tagline-input { color: #999; border-color: #444; }
html.dark-mode .edit-tagline-input:focus { border-color: #3b82f6; }
html.dark-mode .edit-field { background: #1d1d1f; border-color: #2a2a2a; color: #f5f5f7; }
html.dark-mode .edit-field:focus { border-color: #3b82f6; }
html.dark-mode .edit-actions { border-color: #2a2a2a; }
html.dark-mode .btn-edit-save { background: #f5f5f7; color: #111; }
html.dark-mode .btn-edit-cancel { border-color: #444; color: #999; }
html.dark-mode .submitted-value a { color: #60a5fa; }

/* ===== Core Hypothesis 폼 ===== */
.pd-hypothesis { margin-top: 40px; }

.pd-form-section { margin: 0; }

.pd-form-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 12px;
    margin-bottom: 30px;
    margin-top: 0;
}

.pd-input-group { margin-bottom: 40px; }

.pd-input-group label {
    display: block;
    font-family: "Futura-Medium", "AppleSDGothicNeo-Bold", "Malgun Gothic Bold", sans-serif;
    font-weight: normal;
    font-size: 17px;
    line-height: 130%;
    letter-spacing: -0.01rem;
    color: #000;
    margin-bottom: 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pd-required { color: #ee6a7b; }

.pd-input-group input::placeholder,
.pd-input-group textarea::placeholder {
    color: #a3a3a3;
    font-weight: 500;
    font-size: 17px;
}

.pd-input-group input,
.pd-input-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.02px;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    padding: 10px 0;
    transition: border-color 0.3s ease;
    resize: none;
}

.pd-input-group input:focus,
.pd-input-group textarea:focus {
    outline: none;
    border-bottom: 2px solid #111;
}

.pd-input-group select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.02px;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    padding: 10px 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    transition: border-color 0.3s ease;
}

.pd-input-group select:focus {
    outline: none;
    border-bottom: 2px solid #111;
}

.pd-read-value {
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.02px;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    white-space: pre-wrap;
    -webkit-font-smoothing: antialiased;
}

html.dark-mode .pd-read-value { color: #ccc; border-color: #333; }

/* 공개설정 토글 */
.pd-toggle-group { padding: 8px 0; }
.pd-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Futura-Medium", "AppleSDGothicNeo-Bold", "Malgun Gothic Bold", sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
}
.pd-toggle-label input[type="checkbox"],
.pd-toggle-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
html.dark-mode .pd-toggle-label { color: #ccc; }

.pd-char-hint {
    text-align: right;
    font-family: 'Pretendard', sans-serif;
    font-size: 11px;
    color: #bbb;
    margin-top: 6px;
}

/* 다크모드 */
html.dark-mode .pd-form-title { color: #f5f5f7; border-color: #444; }
html.dark-mode .pd-input-group label { color: #f5f5f7; }
html.dark-mode .pd-input-group input,
html.dark-mode .pd-input-group textarea { color: #f5f5f7; border-color: #444; }
html.dark-mode .pd-input-group input:focus,
html.dark-mode .pd-input-group textarea:focus { border-color: #f5f5f7; }
html.dark-mode .pd-input-group select { color: #f5f5f7; border-color: #444; }
html.dark-mode .pd-input-group select:focus { border-color: #f5f5f7; }

/* ===== 피드백 요청 폼 ===== */
.pd-feedback-section { margin-top: 60px; padding-top: 40px; border-top: 2px solid #000; }
.pd-feedback-header { margin-bottom: 30px; }
.pd-feedback-title {
    font-family: "Futura-Medium", "AppleSDGothicNeo-Bold", "Malgun Gothic Bold", sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: #000;
    margin: 0 0 8px;
    letter-spacing: -0.01rem;
    -webkit-font-smoothing: antialiased;
}
.pd-feedback-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.pd-fb-field { margin-bottom: 32px; }
.pd-fb-label {
    display: block;
    font-family: "Futura-Medium", "AppleSDGothicNeo-Bold", "Malgun Gothic Bold", sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: #000;
    margin-bottom: 12px;
    letter-spacing: -0.01rem;
    -webkit-font-smoothing: antialiased;
}

/* 카테고리 태그 */
.pd-fb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-fb-tag {
    padding: 8px 16px;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-tag:hover { border-color: #000; color: #000; }
.pd-fb-tag.active { background: #000; color: #fff; border-color: #000; }

/* 입력 필드 */
.pd-fb-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    padding: 10px 0;
    transition: border-color 0.3s;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
.pd-fb-input:focus { outline: none; border-bottom: 2px solid #111; }
.pd-fb-input::placeholder { color: #bbb; font-weight: 400; }

.pd-fb-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    padding: 10px 0;
    transition: border-color 0.3s;
    -webkit-font-smoothing: antialiased;
    resize: none;
    line-height: 1.7;
    box-sizing: border-box;
}
.pd-fb-textarea:focus { outline: none; border-bottom: 2px solid #111; }
.pd-fb-textarea::placeholder { color: #bbb; font-weight: 400; }

/* 공개 범위 */
.pd-fb-visibility { display: flex; flex-direction: column; gap: 10px; }
.pd-fb-vis-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.pd-fb-vis-option input[type="radio"] { width: 16px; height: 16px; cursor: pointer; accent-color: #000; }
.pd-fb-vis-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #333;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-vis-text strong { font-weight: 600; color: #000; }

/* 제출 버튼 */
.pd-fb-submit {
    width: 100%;
    height: 48px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #000;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-font-smoothing: antialiased;
    margin-top: 8px;
}
.pd-fb-submit:hover { background: #333; }
.pd-fb-submit:disabled { background: #999; border-color: #999; cursor: not-allowed; }

/* ===== 피드백 리스트 ===== */
.pd-feedback-list-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.pd-fb-count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
}
.pd-fb-list { display: flex; flex-direction: column; }

/* 피드백 아이템 */
.pd-fb-item { padding: 24px 0; border-bottom: 1px solid #eee; }
.pd-fb-item:last-child { border-bottom: none; }
.pd-fb-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pd-fb-category-badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-status-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-status-badge.open { background: #fff3cd; color: #856404; }
.pd-fb-status-badge.answered { background: #000; color: #fff; }

.pd-fb-item-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0 0 6px;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-item-content {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 8px;
    white-space: pre-wrap;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-item-meta {
    font-size: 12px;
    color: #aaa;
    -webkit-font-smoothing: antialiased;
}

/* 티저(잠금) 아이템 */
.pd-fb-item.teaser { opacity: 0.7; }
.pd-fb-teaser-lock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #eee;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    color: #999;
    -webkit-font-smoothing: antialiased;
}

/* FOMO 잠금 배너 */
.pd-fb-lock-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    background: #000;
    color: #fff;
    margin-top: 12px;
}
.pd-fb-lock-banner.pd-fb-lock-waiting {
    background: #f8f8f8;
    color: #999;
}
.pd-fb-lock-icon { flex-shrink: 0; padding-top: 1px; }
.pd-fb-lock-banner.pd-fb-lock-waiting .pd-fb-lock-icon svg { stroke: #bbb; }
.pd-fb-lock-text { display: flex; flex-direction: column; gap: 2px; }
.pd-fb-lock-expert {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-lock-cred {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    -webkit-font-smoothing: antialiased;
}
.pd-fb-lock-msg {
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    -webkit-font-smoothing: antialiased;
}
.pd-fb-lock-banner.pd-fb-lock-waiting .pd-fb-lock-msg { color: #aaa; }
.pd-fb-verified-tick {
    display: inline-block;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    color: #000;
    background: #fff;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 피드백 빈 상태 */
.pd-fb-empty {
    padding: 40px 0;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #bbb;
    -webkit-font-smoothing: antialiased;
}

/* ===== 피드백 다크모드 ===== */
html.dark-mode .pd-feedback-section { border-color: #2a2a2a; }
html.dark-mode .pd-feedback-title { color: #f5f5f7; }
html.dark-mode .pd-feedback-subtitle { color: #666; }
html.dark-mode .pd-fb-label { color: #f5f5f7; }
html.dark-mode .pd-fb-tag { background: #2a2a2a; border-color: #444; color: #ccc; }
html.dark-mode .pd-fb-tag:hover { border-color: #f5f5f7; color: #f5f5f7; }
html.dark-mode .pd-fb-tag.active { background: #f5f5f7; color: #111; border-color: #f5f5f7; }
html.dark-mode .pd-fb-input,
html.dark-mode .pd-fb-textarea { color: #f5f5f7; border-color: #444; }
html.dark-mode .pd-fb-input:focus,
html.dark-mode .pd-fb-textarea:focus { border-color: #f5f5f7; }
html.dark-mode .pd-fb-input::placeholder,
html.dark-mode .pd-fb-textarea::placeholder { color: #555; }
html.dark-mode .pd-fb-vis-text { color: #ccc; }
html.dark-mode .pd-fb-vis-text strong { color: #f5f5f7; }
html.dark-mode .pd-fb-submit { background: #f5f5f7; color: #111; border-color: #f5f5f7; }
html.dark-mode .pd-fb-submit:hover { background: #ddd; }
html.dark-mode .pd-feedback-list-section { border-color: #2a2a2a; }
html.dark-mode .pd-fb-count { background: #f5f5f7; color: #111; }
html.dark-mode .pd-fb-item { border-color: #2a2a2a; }
html.dark-mode .pd-fb-category-badge { background: #2a2a2a; border-color: #444; color: #ccc; }
html.dark-mode .pd-fb-item-title { color: #f5f5f7; }
html.dark-mode .pd-fb-item-content { color: #ccc; }
html.dark-mode .pd-fb-item-meta { color: #555; }
html.dark-mode .pd-fb-teaser-lock { background: #1a1a1a; border-color: #2a2a2a; color: #666; }
html.dark-mode .pd-fb-empty { color: #555; }

/* 전문가 리뷰 (매거진 스타일 스레드) */
.pd-fb-review {
    margin-top: 20px;
    padding: 24px;
    background: #fafafa;
    border-left: 3px solid #000;
}
.pd-fb-review-credential {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.pd-fb-review-cred-box { display: flex; flex-direction: column; gap: 3px; }
.pd-fb-expert-name {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-expert-cred {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-review-date {
    font-family: 'Pretendard', sans-serif;
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-review-body {
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #222;
    line-height: 2;
    white-space: pre-wrap;
    -webkit-font-smoothing: antialiased;
}

/* 전문가 답변 폼 */
.pd-fb-reply-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.pd-fb-reply-textarea {
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    padding: 12px;
    line-height: 1.7;
    resize: none;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-reply-textarea:focus { outline: none; border-color: #000; }
.pd-fb-reply-textarea::placeholder { color: #bbb; }
.pd-fb-reply-submit {
    margin-top: 8px;
    padding: 10px 24px;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #000;
    border: 1px solid #000;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-font-smoothing: antialiased;
}
.pd-fb-reply-submit:hover { background: #333; }

html.dark-mode .pd-fb-lock-banner { background: #f5f5f7; }
html.dark-mode .pd-fb-lock-expert { color: #111; }
html.dark-mode .pd-fb-lock-cred { color: rgba(0,0,0,0.5); }
html.dark-mode .pd-fb-lock-msg { color: rgba(0,0,0,0.4); }
html.dark-mode .pd-fb-lock-banner .pd-fb-lock-icon svg { stroke: #111; }
html.dark-mode .pd-fb-verified-tick { background: #111; color: #f5f5f7; }
html.dark-mode .pd-fb-lock-banner.pd-fb-lock-waiting { background: #2a2a2a; }
html.dark-mode .pd-fb-lock-banner.pd-fb-lock-waiting .pd-fb-lock-msg { color: #555; }
html.dark-mode .pd-fb-review { background: #1a1a1a; border-color: #f5f5f7; }
html.dark-mode .pd-fb-review-credential { border-color: #2a2a2a; }
html.dark-mode .pd-fb-expert-name { color: #f5f5f7; }
html.dark-mode .pd-fb-expert-cred { color: #666; }
html.dark-mode .pd-fb-review-date { color: #555; }
html.dark-mode .pd-fb-review-body { color: #ddd; }
html.dark-mode .pd-fb-reply-form { border-color: #2a2a2a; }
html.dark-mode .pd-fb-reply-textarea { background: #2a2a2a; border-color: #444; color: #f5f5f7; }
html.dark-mode .pd-fb-reply-textarea:focus { border-color: #f5f5f7; }
html.dark-mode .pd-fb-reply-submit { background: #f5f5f7; color: #111; border-color: #f5f5f7; }
html.dark-mode .pd-fb-reply-submit:hover { background: #ddd; }
