/* ===== 기본 리셋 & 폰트 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.6;
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 레이아웃 ===== */
.layout { display: flex; min-height: 100vh; }

/* ===== 사이드바 (ChatGPT 스타일 백색) ===== */
.sidebar {
    width: 260px;
    background: #f9f9f9;
    color: #353740;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    border-right: 1px solid #e5e5e5;
}
.sidebar-header { padding: 16px 16px 8px; }
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #353740;
}
.logo:hover { text-decoration: none; }
.logo-img {
    width: 32px; height: 32px;
    border-radius: 8px;
    object-fit: cover;
}
.logo-title { font-weight: 600; font-size: 14px; color: #353740; }

.current-project-bar {
    padding: 8px 16px 10px;
    border-bottom: 1px solid #e5e5e5;
}
.cpb-name { font-size: 13px; color: #FFD84D; font-weight: 600; }

.menu {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #6e6e80;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    border-radius: 8px;
    margin: 1px 8px;
}
.menu-item:hover { color: #353740; background: #ececec; text-decoration: none; }
.menu-item.active { color: #353740; background: #e5e5e5; font-weight: 500; }
.mi-icon { width: 20px; display: flex; align-items: center; justify-content: center; color: #8e8ea0; }
.menu-item.active .mi-icon { color: #353740; }
.menu-divider { height: 1px; background: #e5e5e5; margin: 8px 16px; }

/* 파이프라인 스텝 */
.pipeline-steps { padding: 4px 16px; }
.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    font-size: 13px;
    color: #636366;
}
.step.completed { color: #a1a1a6; }
.step.current { color: #f5f5f7; font-weight: 500; }
.step-indicator {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #636366;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.step.completed .step-indicator { border-color: #30d158; color: #30d158; }
.step.current .step-indicator { border-color: #FFD84D; background: #FFD84D; color: white; }
.check { font-size: 12px; }

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
}
.resolve-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #acacbe;
}
.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #d1d5db;
}
.resolve-status.connected .status-dot { background: #FFD84D; }
.resolve-status.connected { color: #FFD84D; }

/* ===== 메인 영역 ===== */
.main {
    flex: 1;
    margin-left: 260px;
    padding: 20px 28px;
    max-width: 960px;
}

/* ===== 공통 컴포넌트 ===== */
.page-header {
    margin-bottom: 14px;
}
.page-header h1 {
    font-size: 15px;
    font-weight: 500;
    color: #353740;
    letter-spacing: -0.2px;
    padding-bottom: 6px;
    position: relative;
    display: inline-block;
}
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #FFD84D;
    border-radius: 1px;
}
.page-desc { color: #86868b; font-size: 12px; margin-top: -8px; margin-bottom: 14px; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 7px;
    background: white;
    color: #1d1d1f;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.btn:hover { background: #f5f5f7; text-decoration: none; }
.btn-primary {
    background: #FFD84D;
    color: white;
    border-color: #FFD84D;
}
.btn-primary:hover { background: #E5C13D; }
.btn-danger { color: #ff453a; border-color: #ff453a; }
.btn-danger:hover { background: #ff453a; color: white; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.input-text {
    padding: 7px 11px;
    border: 1px solid #d2d2d7;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border 0.15s;
}
.input-text:focus { border-color: #FFD84D; }
.input-key { flex: 1; min-width: 200px; }

.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}
.badge-created { background: #f0f0f5; color: #86868b; }
.badge-transcribed { background: #e8f5e8; color: #2d8659; }
.badge-subtitled { background: #e8ecfa; color: #FFD84D; }
.badge-done { background: #d4edda; color: #155724; }

.alert {
    padding: 8px 14px;
    border-radius: 7px;
    margin-bottom: 12px;
    font-size: 12px;
}
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ===== 프로젝트 카드 ===== */
.new-project-form {
    display: flex;
    gap: 8px;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.project-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-header {
    padding: 16px 16px 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 0 16px 8px; }
.card-date { font-size: 12px; color: #86868b; }
.card-actions {
    padding: 8px 16px 12px;
    display: flex;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h2 { font-size: 18px; color: #1d1d1f; margin-bottom: 8px; }

/* ===== 단계 섹션 ===== */
.step-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
    padding: 24px;
    margin-bottom: 20px;
}
.step-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f5;
}

/* ===== 영상 업로드 ===== */
.video-list { margin-bottom: 16px; }
.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9f9fb;
    border-radius: 8px;
    margin-bottom: 8px;
}
.video-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta { font-size: 12px; color: #86868b; }

.upload-zone {
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}
.upload-zone:hover { border-color: #FFD84D; }
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-hint { font-size: 12px; color: #86868b; margin-top: 4px; }
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ===== 진행률 표시 ===== */
.action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.progress-area { flex: 1; min-width: 200px; }
.progress-bar {
    height: 6px;
    background: #e5e5ea;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD84D, #E5C13D);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}
.progress-text { font-size: 12px; color: #86868b; }

/* ===== 전사 결과 ===== */
.transcript-preview { margin-top: 20px; }
.transcript-preview h3 { font-size: 14px; margin-bottom: 10px; color: #636366; }
.transcript-list {
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    padding: 4px;
}
.transcript-item {
    display: flex;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
}
.transcript-item:hover { background: #f9f9fb; }
.timestamp {
    color: #FFD84D;
    font-family: monospace;
    font-size: 12px;
    white-space: nowrap;
    min-width: 70px;
}

/* ===== 자막 설정 ===== */
.subtitle-settings {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.setting-group label { font-size: 13px; font-weight: 500; }
.setting-group select {
    padding: 6px 10px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
}

/* ===== 자막 결과 ===== */
.subtitle-results { margin-top: 20px; }
.subtitle-results h3 { font-size: 14px; margin-bottom: 12px; color: #636366; }
.download-links {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.subtitle-type-group { margin-bottom: 16px; }
.subtitle-type-group h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f5;
}
.subtitle-item {
    display: flex;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    border-left: 3px solid transparent;
}
.subtitle-h1 { border-left-color: #FFD84D; background: #f0f2ff; }
.subtitle-h2 { border-left-color: #30d158; background: #f0faf0; }
.subtitle-emphasis { border-left-color: #ff9f0a; background: #fff8f0; }
.subtitle-hook { border-left-color: #ff453a; background: #fff5f5; }

/* ===== 설정 페이지 ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}
.settings-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    padding: 14px 16px;
}
.settings-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.settings-card .desc { font-size: 12px; color: #acacbe; margin-bottom: 12px; }
.key-status {
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}
.key-status.connected { color: #30d158; }
.key-status.disconnected { color: #ff453a; }

.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cost-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f5;
}

/* ===== 데이터 테이블 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5ea;
}
.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    background: #f9f9fb;
    color: #636366;
    border-bottom: 1px solid #e5e5ea;
}
.data-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f5;
}

/* ===== 용어 추가 폼 ===== */
.term-add-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.term-add-form .input-text { flex: 1; min-width: 150px; }

/* ===== 사이드바 파이프라인 스텝 (ChatGPT 스타일) ===== */
.menu-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #6e6e80;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    border-radius: 8px;
    margin: 1px 8px;
    cursor: pointer;
}
.menu-step:hover { color: #353740; background: #ececec; text-decoration: none; }
.menu-step.viewing { color: #353740; background: #e5e5e5; }

/* 아이콘 래퍼 */
.step-icon-wrap {
    position: relative;
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e5e5e5;
    color: #8e8ea0;
    transition: all 0.2s;
}
.menu-step:hover .step-icon-wrap { background: #d9d9d9; color: #353740; }
.menu-step.viewing .step-icon-wrap { background: #353740; color: white; }
.menu-step.done .step-icon-wrap { background: #d1fae5; color: #FFD84D; }
.menu-step.current .step-icon-wrap { background: #e0f2fe; color: #0284c7; }
.menu-step.processing .step-icon-wrap {
    background: #fef3c7;
    color: #d97706;
    animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0.3); }
    50% { box-shadow: 0 0 0 5px rgba(217,119,6,0); }
}
.step-icon { display: flex; align-items: center; justify-content: center; }

/* 완료 배지 */
.step-done-badge {
    display: none;
    position: absolute;
    bottom: -2px; right: -2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #FFD84D;
    align-items: center;
    justify-content: center;
    border: 2px solid #f9f9f9;
}
.menu-step.done .step-done-badge { display: flex; }

/* 스피너 */
.step-spinner {
    display: none;
    position: absolute;
    inset: -3px;
    border-radius: 10px;
    border: 2px solid transparent;
    border-top-color: #d97706;
    animation: spin 0.8s linear infinite;
}
.step-spinner.active { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 라벨 */
.step-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.step-name { font-size: 13px; line-height: 1.3; color: #6e6e80; }
.menu-step:hover .step-name { color: #353740; }
.menu-step.viewing .step-name { color: #353740; font-weight: 500; }
.menu-step.done .step-name { color: #FFD84D; }
.menu-step.current .step-name { color: #0284c7; font-weight: 500; }
.menu-step.processing .step-name { color: #d97706; font-weight: 500; }

.step-status-text {
    font-size: 10px;
    color: #acacbe;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-step.done .step-status-text { color: #FFD84D; }
.menu-step.processing .step-status-text { color: #d97706; }
.menu-step.current .step-status-text { color: #0284c7; }

/* 시작 폼 */
.start-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label, .form-label { font-size: 12px; font-weight: 500; color: #6e6e80; display: block; margin-bottom: 5px; }
.input-lg { padding: 8px 12px; font-size: 14px; width: 100%; }

/* ===== 토스트 알림 ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    background: #1d1d1f;
    color: white;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
}
.toast.show { transform: translateX(0); }
.toast-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.toast-success .toast-icon { background: #FFD84D; }
.toast-error .toast-icon { background: #ef4444; }
.toast-info .toast-icon { background: #0284c7; }

/* ===== 카드 (공통) ===== */
.card {
    background: white;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    padding: 16px 18px;
    margin-bottom: 10px;
}
.card-title {
    font-size: 13px;
    font-weight: 500;
    color: #353740;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-num {
    width: 20px; height: 20px;
    border-radius: 5px;
    background: #FFD84D;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}
.card-desc {
    font-size: 12px;
    color: #8e8ea0;
    line-height: 1.55;
    margin-bottom: 10px;
}

/* ===== 헤더 설명 ===== */
.header-desc {
    font-size: 12px;
    color: #acacbe;
    margin-top: 4px;
    margin-bottom: 0;
}

/* ===== 영상 업로드 (step1) ===== */
.video-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f9f9fb;
    border-radius: 10px;
    margin-bottom: 8px;
}
.video-thumb {
    width: 48px; height: 36px;
    background: #e5e5ea;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.video-details { flex: 1; }
.video-name { font-weight: 500; font-size: 14px; }
.video-meta { font-size: 12px; color: #86868b; margin-top: 2px; }
.video-status { margin-right: 8px; }
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}
.tag-green { background: #d4edda; color: #155724; }
.tag-gray { background: #f0f0f5; color: #86868b; }
.btn-icon {
    width: 28px; height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}
.btn-danger-ghost {
    border-color: transparent;
    color: #86868b;
    background: transparent;
}
.btn-danger-ghost:hover { color: #ff453a; background: #fff5f5; }

.upload-content { padding: 20px 0; }
.upload-icon-big { font-size: 48px; margin-bottom: 12px; }
.upload-main-text { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.upload-sub-text { font-size: 13px; color: #86868b; }
.upload-formats { font-size: 11px; color: #a1a1a6; margin-top: 8px; }
.upload-zone.dragover {
    border-color: #FFD84D;
    background: #f0f2ff;
}

/* ===== 단계 이동 네비게이션 ===== */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    margin-top: 8px;
    border-top: 1px solid #e5e5ea;
}
.step-nav-info {
    flex: 1;
    font-size: 14px;
    color: #636366;
}
.btn-lg {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
}

/* ===== 액션 행 ===== */
.action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.action-status {
    font-size: 13px;
    color: #86868b;
}
.action-status.done { color: #30d158; font-weight: 500; }

/* ===== 전사 스크롤 ===== */
.transcript-scroll {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    padding: 4px;
}
.transcript-row {
    display: flex;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
}
.transcript-row:hover { background: #f9f9fb; }
.ts {
    color: #FFD84D;
    font-family: monospace;
    font-size: 12px;
    min-width: 72px;
    white-space: nowrap;
}
.tx { flex: 1; }

/* ===== 프롬프트 미리보기 ===== */
.prompt-preview {
    background: #f9f9fb;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}
.prompt-label {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    margin-bottom: 8px;
}
.prompt-example {
    font-size: 13px;
    white-space: pre-wrap;
    color: #636366;
    line-height: 1.7;
    font-family: monospace;
}

/* ===== Coming Soon 박스 ===== */
.coming-soon {
    text-align: center;
    padding: 32px 20px;
    color: #acacbe;
}
.coming-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.5; }
.coming-soon h3 { color: #6e6e80; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.feature-preview {
    text-align: left;
    max-width: 400px;
    margin: 16px auto 0;
    list-style: none;
}
.feature-preview li {
    padding: 4px 0;
    font-size: 13px;
}
.feature-preview li::before {
    content: '\\2022 ';
    color: #FFD84D;
    margin-right: 6px;
}

/* ===== 자막 설정 (step5) ===== */
.settings-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.setting-item label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.setting-select {
    padding: 6px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
}

/* ===== 자막 탭 ===== */
.subtitle-tabs {
    display: flex;
    gap: 4px;
    margin: 16px 0 12px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 6px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 20px;
    background: white;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tab-btn.active { background: #FFD84D; color: white; border-color: #FFD84D; }
.tab-count {
    background: rgba(0,0,0,0.1);
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
}
.tab-btn.active .tab-count { background: rgba(255,255,255,0.25); }

.subtitle-content {
    max-height: 500px;
    overflow-y: auto;
}
.sub-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}
.sub-time {
    font-family: monospace;
    font-size: 12px;
    color: #FFD84D;
    min-width: 42px;
}
.sub-badge {
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-h1 { background: #e8ecfa; color: #4a5bc7; }
.badge-h2 { background: #e8f5e8; color: #2d8659; }
.badge-emphasis { background: #fff3e0; color: #e67e22; }
.badge-hook { background: #ffebee; color: #c62828; }
.sub-text { flex: 1; }
.sub-type-h1 { background: #f8f9ff; }
.sub-type-h2 { background: #f6faf6; }
.sub-type-emphasis { background: #fffbf5; }
.sub-type-hook { background: #fff8f8; }

/* ===== 다운로드 바 ===== */
.download-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ===== 다운로드 그리드 (step7) ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: #f9f9fb;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.15s;
}
.download-card:hover { background: #eef0ff; border-color: #FFD84D; text-decoration: none; }
.dl-icon { font-size: 28px; margin-bottom: 8px; }
.dl-name { font-weight: 500; font-size: 13px; }
.dl-desc { font-size: 11px; color: #86868b; margin-top: 4px; }

/* ===== Resolve 상태 ===== */
.resolve-connected-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.status-indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.status-indicator.green { background: #30d158; }
.status-indicator.red { background: #ff453a; }

.info-box {
    background: #f0f2ff;
    border: 1px solid #d0d5f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
}
.info-box strong { display: block; margin-bottom: 4px; }

/* ===== 편집 요약 (하단) ===== */
.edit-summary-bottom {
    font-size: 14px;
    font-weight: 500;
    color: #636366;
}
