/* Dashboard Layout - Apple Style (샘플 기반) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  /* 컬러 토큰 */
  --primary-color: #00c6dc;
  --primary-soft: #c7f9ff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --bg-body: #f3f4f6;
  --bg-panel: #ffffff;
  --bg-sidebar: #f9fafb;

  /* 레이아웃 */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --radius-large: 24px;
  --radius-medium: 20px;
  --radius-small: 14px;

  /* 기타 */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
}

/* 기본 리셋 */
.dashboard-wrapper {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", sans-serif;
}

.dashboard-wrapper *,
.dashboard-wrapper *::before,
.dashboard-wrapper *::after {
  box-sizing: border-box;
}

.dashboard-wrapper h1,
.dashboard-wrapper h2,
.dashboard-wrapper h3,
.dashboard-wrapper h4,
.dashboard-wrapper p {
  margin: 0;
}

.dashboard-wrapper ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 앱 컨테이너 */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-body);
}

/* 사이드바 */
.dashboard-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 30px 16px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-normal) ease;
  z-index: 100;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 36px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #e0faff 0, #ffffff 60%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

/* 메뉴 */
.sidebar-nav {
  flex: 1;
}

.sidebar-nav ul li {
  margin-bottom: 8px;
  border-radius: 16px;
  position: relative;
  transition: background var(--transition-fast) ease;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.15px;
  cursor: pointer;
}

.nav-icon {
  font-size: 18px;
  margin-right: 14px;
  min-width: 22px;
  text-align: center;
  color: var(--text-muted);
}

.sidebar-nav ul li:hover {
  background: #e5e7eb;
}

.sidebar-nav ul li.active {
  background: var(--primary-soft);
}

.sidebar-nav ul li.active .nav-icon {
  color: var(--primary-color);
}

.sidebar-nav ul li.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--primary-color);
  border-radius: 0 4px 4px 0;
}

/* 프로필 */
.sidebar-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-panel);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.profile-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid #e5e7eb;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text-main);
}

.profile-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* 메인 콘텐츠 */
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  background: var(--bg-body);
  min-height: 100vh;
}

/* 헤더 */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.dashboard-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 버튼 */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--primary-color);
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 198, 220, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.primary-button:hover {
  background: #00b0c3;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 198, 220, 0.4);
}

.ghost-button {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(249, 250, 251, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.ghost-button:hover {
  background: #e5e7eb;
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.9);
}

/* 통계 카드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 32px;
  margin-top: 12px;
}

.stat-card {
  background: var(--bg-panel);
  border-radius: var(--radius-medium);
  padding: 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  background: var(--primary-soft);
  font-size: 24px;
}

.stat-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-main);
}

.stat-info p {
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-main);
}

.stat-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* 하단 2열 레이아웃 */
.bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

/* 공통 패널 */
.dashboard-section {
  background: var(--bg-panel);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

/* 최근 글 리스트 */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-item {
  padding: 12px 10px;
  border-radius: 14px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
}

.article-item:hover {
  background: #f9fafb;
  border-color: var(--border-soft);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.article-meta .badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.badge-success {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

.badge-default {
  background: rgba(148, 163, 184, 0.16);
  color: #4b5563;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.08);
  color: #ca8a04;
}

.article-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.article-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.article-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 활동 로그 */
.activity-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.activity-item:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.activity-icon.success {
  background: rgba(34, 197, 94, 0.09);
  color: #16a34a;
}

.activity-icon.info {
  background: rgba(59, 130, 246, 0.09);
  color: #2563eb;
}

.activity-icon.warn {
  background: rgba(234, 179, 8, 0.11);
  color: #ca8a04;
}

.activity-icon.neutral {
  background: rgba(148, 163, 184, 0.16);
  color: #4b5563;
}

.activity-content p:first-child {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text-main);
}

.activity-content p:last-child {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* 콘텐츠 섹션 (글 관리 등) */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 테이블 스타일 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.data-table th {
  background: var(--bg-sidebar);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: var(--bg-sidebar);
}

/* 반응형 */
@media (max-width: 1200px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar-nav a span,
  .profile-info {
    display: none;
  }

  .sidebar-profile {
    justify-content: center;
  }

  .profile-avatar {
    margin-right: 0;
  }

  .dashboard-main {
    margin-left: var(--sidebar-collapsed-width);
    padding: 26px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .dashboard-sidebar.active {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 20px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .primary-button {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 로딩 상태 */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* ========================================
   에디터 스타일
======================================== */

.editor-container {
  max-width: 900px;
  margin: 0 auto;
}

.editor-breadcrumb {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.editor-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.editor-breadcrumb a:hover {
  text-decoration: underline;
}

.editor-form {
  background: var(--bg-panel);
  border-radius: var(--radius-medium);
  padding: 32px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  background: white;
  color: var(--text-main);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 198, 220, 0.1);
}

.form-control-lg {
  font-size: 18px;
  font-weight: 500;
  padding: 16px 20px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: 'Monaco', 'Menlo', monospace;
  line-height: 1.6;
}

.form-text {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 색상 입력 */
.color-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.color-input-group input[type="color"] {
  width: 60px;
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  cursor: pointer;
}

.color-input-group input[type="text"] {
  flex: 1;
}

/* 브랜드 미리보기 */
.brand-preview {
  display: flex;
  gap: 12px;
}

.color-preview {
  flex: 1;
  height: 80px;
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 파트 카드 */
.parts-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.parts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.part-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  padding: 20px;
  transition: all var(--transition-fast);
}

.part-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 198, 220, 0.1);
}

.part-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.part-header h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
}

.part-badges {
  display: flex;
  gap: 6px;
}

.part-actions {
  display: flex;
  gap: 8px;
}

/* 이미지 그리드 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.image-item {
  position: relative;
  border-radius: var(--radius-medium);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition-fast);
}

.image-item:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.image-item.selected {
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 198, 220, 0.3);
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.selected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* 읽기 전용 콘텐츠 */
.readonly-content {
  background: var(--bg-sidebar);
  padding: 16px;
  border-radius: var(--radius-small);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

/* 에디터 헤더 & 탭 */
.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.editor-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-sidebar);
  padding: 4px;
  border-radius: var(--radius-small);
}

.editor-tab {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.editor-tab:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.editor-tab.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* 에디터 모드 */
.editor-mode {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.editor-mode.active {
  border-color: var(--primary-color);
}

/* Quill 에디터 커스터마이징 */
#quill-editor {
  font-size: 15px;
  line-height: 1.6;
}

.ql-toolbar {
  background: var(--bg-sidebar);
  border: none !important;
  border-bottom: 1px solid var(--border-soft) !important;
  padding: 12px 10px;
}

.ql-container {
  border: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.ql-editor {
  padding: 20px;
  min-height: 400px;
}

.ql-editor.ql-blank::before {
  color: var(--text-muted);
  font-style: normal;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text-main);
}

.ql-editor h1 { font-size: 28px; }
.ql-editor h2 { font-size: 24px; }
.ql-editor h3 { font-size: 20px; }
.ql-editor h4 { font-size: 18px; }
.ql-editor h5 { font-size: 16px; }
.ql-editor h6 { font-size: 14px; }

.ql-editor p {
  margin: 8px 0;
}

.ql-editor ul,
.ql-editor ol {
  padding-left: 24px;
  margin: 8px 0;
}

/* 코드 에디터 */
.code-textarea {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  min-height: 400px;
  background: #f8f9fa;
  border: none;
  padding: 20px;
}

.code-textarea:focus {
  background: white;
}

/* 반응형 */
@media (max-width: 768px) {
  .editor-form {
    padding: 20px;
  }
  
  .color-group {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .editor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .ql-editor {
    padding: 12px;
    min-height: 300px;
  }
}

/* ===================================================== */
/* 워크플로우 파트 카드 스타일 */
/* ===================================================== */

.workflow-notice {
    animation: fadeInUp 0.4s ease-out;
}

.parts-workflow-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.part-workflow-card {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.part-workflow-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.part-workflow-card.status-completed::before {
    background: #10b981;
}

.part-workflow-card.status-selecting::before {
    background: #f59e0b;
}

.part-workflow-card.status-ready::before {
    background: var(--primary-color);
}

.part-workflow-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.part-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.part-info {
    flex: 1;
}

.part-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.part-body-preview {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.part-status-badge {
    flex-shrink: 0;
}

.workflow-step {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-sidebar);
    border-radius: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-main);
}

.step-icon {
    font-size: 18px;
}

.prompt-display {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    border-left: 3px solid var(--primary-color);
}

.prompt-display p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}

.image-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.image-select-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.image-select-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.image-select-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.image-select-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 198, 220, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.ghost-button.small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 반응형: 작은 화면에서 이미지 1열로 */
@media (max-width: 768px) {
    .image-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .part-workflow-header {
        flex-direction: column;
    }
}
