/* ============================================================
   AI당근커넥트 올인원 프로그램
   디자인 컨셉: 럭셔리 부티크 + 미니멀 에디토리얼
============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #faf8f5;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #8a8a8a;
  --line: #e8e4dd;
  --gold: #b8935a;
  --gold-deep: #8a6a3d;
  --accent: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
}

.hero .brand-mark {
  color: var(--gold);
  font-style: italic;
}

.tagline {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* ===== Card ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.step-header h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hint {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== Upload ===== */
.upload-area {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  background: #fdfcfa;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-area:hover {
  border-color: var(--gold);
  background: #fff;
}

.upload-area.dragover {
  border-color: var(--gold);
  background: #fff8ee;
}

.upload-placeholder {
  color: var(--ink-muted);
}

.upload-placeholder i {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.upload-placeholder p {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.upload-placeholder small {
  font-size: 12px;
  color: var(--ink-muted);
}

#preview-img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  object-fit: contain;
}

/* ===== Form ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.6;
}

/* ===== Mode Cards ===== */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  position: relative;
  display: block;
  padding: 22px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  background: #fff;
  transition: all .18s ease;
}

.mode-card:hover {
  border-color: var(--gold);
}

.mode-card input { display: none; }

.mode-card:has(input:checked) {
  border-color: var(--ink);
  background: #fafafa;
}

.mode-card .badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.mode-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mode-price {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.mode-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ===== Checkbox grid ===== */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
  transition: all .15s ease;
}

.check-item:hover {
  border-color: var(--gold);
}

.check-item input { accent-color: var(--ink); }

.check-item:has(input:checked) {
  background: #fafafa;
  border-color: var(--ink);
}

/* ===== Buttons ===== */
.action-row {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary,
.btn-test,
.btn-fast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  background: #c0c0c0;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-test {
  background: #fff;
  border: 1px dashed var(--gold);
  color: var(--gold-deep);
}

.btn-fast {
  background: linear-gradient(135deg, #ffd76b 0%, #ffb347 100%);
  color: #4a2c00;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.3);
}

.btn-fast:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.45);
}

.btn-test:hover {
  background: #fff8ee;
}

/* ===== Results Grid ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.shot-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f5f1ea, #ebe5d9);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-thumb .placeholder {
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.shot-thumb .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e8e4dd;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.shot-meta {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.shot-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.shot-desc {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.shot-actions {
  display: flex;
  gap: 6px;
}

.shot-actions button {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-soft);
}

.shot-actions button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.shot-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}

.shot-status.pending { background: #f0f0f0; color: #777; }
.shot-status.generating { background: #fff8ee; color: var(--gold-deep); }
.shot-status.done { background: #e8f5e9; color: #2e7d32; }
.shot-status.error { background: #ffebee; color: #c62828; }

.shot-history-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff8ee, #fde9c4);
  color: var(--gold-deep);
  border: 1px solid #f0d99c;
  letter-spacing: 0.3px;
}

.shot-last-edit {
  font-size: 11.5px;
  color: var(--ink-muted);
  background: #faf7f0;
  border-left: 3px solid var(--gold-deep);
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 자연어 수정 박스 ===== */
.shot-edit-box {
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: #fcfaf5;
  border: 1px solid #ece4d3;
  border-radius: 8px;
  transition: background 0.2s;
}
.shot-edit-box[open] {
  background: #fff8ee;
  border-color: #f0d99c;
}
.shot-edit-box summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shot-edit-box summary::-webkit-details-marker { display: none; }
.shot-edit-box summary::after {
  content: '▾';
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.2s;
}
.shot-edit-box[open] summary::after { transform: rotate(180deg); }

.shot-edit-input {
  width: 100%;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #d9c9a3;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 56px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
  box-sizing: border-box;
}
.shot-edit-input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}

.shot-edit-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.shot-edit-apply {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--gold-deep), #d4a93a);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.shot-edit-apply:hover { opacity: 0.92; }
.shot-edit-apply:active { transform: translateY(1px); }
.shot-edit-undo {
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #d9c9a3;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shot-edit-undo:hover { background: #faf5e8; }

.shot-edit-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #e6dcc4;
}
.shot-edit-presets button {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #e0d4b3;
  border-radius: 999px;
  font-size: 11.5px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.shot-edit-presets button:hover {
  background: var(--gold-deep);
  color: #fff;
  border-color: var(--gold-deep);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.foot {
  text-align: center;
  margin-top: 60px;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: toastIn .2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero h1 { font-size: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 22px; }
  .container { padding: 28px 14px 60px; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .action-row { justify-content: stretch; }
  .action-row button,
  .action-row a { flex: 1; justify-content: center; }
}

/* ===== v0.2 추가 스타일 ===== */

/* API 키 카드 */
.api-card {
  background: linear-gradient(135deg, #fffaf0, #fff);
  border-color: #e8d9b8;
}

.api-card .step-num {
  background: var(--gold);
}

.api-input-row {
  display: flex;
  gap: 8px;
}

.api-input-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  background: #fff;
}

.api-input-row input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.12);
}

.api-status {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.api-status.checking { color: var(--ink-muted); }
.api-status.ok { color: #2e7d32; }
.api-status.err { color: #c62828; }

.api-card a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}

.api-card a:hover {
  text-decoration: underline;
}

/* full 너비 버튼 */
.btn-secondary.full {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px;
}

/* 분석 결과 박스 */
.classify-result {
  margin-top: 16px;
  padding: 16px;
  background: #fafaf7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-row .label {
  color: var(--ink-muted);
  font-size: 13px;
}

.result-row strong {
  color: var(--ink);
  font-weight: 600;
}

.classify-result details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.classify-result summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

.classify-result summary:hover {
  color: var(--ink);
}

/* 토글 행 */
.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: all .15s ease;
}

.toggle-row:hover {
  border-color: var(--gold);
}

.toggle-row input {
  margin-top: 3px;
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.toggle-row:has(input:checked) {
  background: #fafaf7;
  border-color: var(--ink);
}

.toggle-body {
  flex: 1;
}

.toggle-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.toggle-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ===== 프리셋 칩 ===== */
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preset-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}

.preset-chip:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: #fff8ee;
}

.preset-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ===== 진행 카운터 ===== */
.progress-counter {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  font-weight: 500;
}

.progress-active {
  color: var(--gold-deep);
  background: #fff8ee;
  padding: 4px 12px;
  border-radius: 999px;
  animation: pulse 1.4s ease-in-out infinite;
}

.progress-done {
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 12px;
  border-radius: 999px;
}

.progress-partial {
  color: #b8860b;
  background: #fff8dc;
  padding: 4px 12px;
  border-radius: 999px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}


/* ============================================================
   학생/관리자 페이지 추가 스타일
   ============================================================ */

/* 네비게이션 */
.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .15s;
}
.nav-link:hover { background: #fff; }
.nav-link.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.nav-spacer { flex: 1; }
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.nav-user-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}
.nav-link-btn {
  padding: 6px 12px;
  font-size: 13px;
}

/* 토스트 */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 22px;
  background: rgba(20,20,20,0.92);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: #0a7d3a; }
.toast-error { background: #c0392b; }
.toast-info { background: #333; }

/* 탭 */
.tab-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--gold-deep);
}
.tab-badge {
  display: inline-block;
  background: #f3f4f6;
  color: var(--ink-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tab-btn.active .tab-badge {
  background: #fff8ee;
  color: var(--gold-deep);
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-muted);
}
.empty-state i {
  font-size: 42px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.5;
}
.empty-state p {
  margin: 0 0 14px 0;
  font-size: 14px;
}
.btn-primary.inline {
  display: inline-flex;
  text-decoration: none;
  padding: 8px 18px;
  font-size: 14px;
}
.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--ink-muted);
}

/* 폼 섹션 */
.form-section {
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  margin-top: 10px;
}
.form-section:first-of-type { border-top: none; }
.form-section-title {
  font-size: 14px;
  margin: 0 0 12px 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-section-title i { color: var(--gold-deep); }
.hint-inline {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* 상품 카드 */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: all .15s;
}
.product-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.product-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb i { font-size: 24px; color: #cbd5e0; }
.product-info { flex: 1; min-width: 0; }
.product-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 5px;
  color: var(--ink);
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-muted);
}
.tag-brand { background: #fff8ee; color: var(--gold-deep); font-weight: 600; }
.product-date { font-size: 11px; color: var(--ink-muted); }
.product-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* 주문 카드 */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.order-no { font-family: monospace; font-size: 13px; color: var(--ink-muted); }
.order-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
}
.order-meta i { margin-right: 4px; }
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #f0f9ff;
  color: #0369a1;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}
.price-fee { background: #fff8ee; color: #b8860b; }
.price-settle { background: #ecfdf5; color: #047857; }
.tracking-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f0f9ff;
  border: 1px dashed #7dd3fc;
  border-radius: 8px;
  font-size: 13px;
  color: #0c4a6e;
}
.tracking-box code {
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* 자동발주(매입처) 상태 배지 */
.po-status-row {
  margin-top: 4px;
}
.po-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.po-badge code {
  background: rgba(255,255,255,0.7);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.po-badge-none {
  background: #fafafa;
  color: #6b7280;
  border-color: #e5e7eb;
}
.po-badge-pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.po-badge-sent {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.po-badge-failed {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* 상태 배지 */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-new { background: #fff8ee; color: #b8860b; }
.status-new .status-dot { background: #f59e0b; }
.status-buying { background: #eff6ff; color: #1d4ed8; }
.status-buying .status-dot { background: #3b82f6; }
.status-shipped { background: #f5f3ff; color: #6d28d9; }
.status-shipped .status-dot { background: #8b5cf6; }
.status-completed { background: #ecfdf5; color: #047857; }
.status-completed .status-dot { background: #10b981; }
.status-cancelled { background: #f3f4f6; color: #6b7280; }
.status-cancelled .status-dot { background: #9ca3af; }
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ============================================================
   관리자 대시보드
   ============================================================ */
.admin-container { max-width: 1400px; }
.admin-hero { margin-bottom: 24px; }
.admin-panel { display: block; }

/* 통계 카드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.stat-blue .stat-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-purple .stat-icon { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.stat-orange .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-green .stat-icon { background: linear-gradient(135deg, #10b981, #059669); }
.stat-pink .stat-icon { background: linear-gradient(135deg, #ec4899, #db2777); }
.stat-cyan .stat-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* 데이터 테이블 */
.orders-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  background: #fafafa;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: #fafafa; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .profit-pos { color: #047857; font-weight: 700; }
.data-table .profit-neg { color: #c0392b; font-weight: 700; }
.data-table small { color: var(--ink-muted); font-size: 11px; }
.data-table code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.btn-secondary.small, .btn-primary.small, .btn-ghost.small {
  padding: 5px 10px;
  font-size: 12px;
  margin-right: 4px;
}
.btn-ghost {
  background: none;
  border: 1px solid transparent;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all .15s;
}
.btn-ghost:hover { color: #c0392b; background: #fef2f2; }
.btn-ghost.icon-only { padding: 4px 8px; }

/* 필터 */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 14px;
}
.filter-row select, .filter-row input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.filter-row input { min-width: 220px; }

/* 모달 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 16px;
  overflow-y: auto;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  cursor: pointer;
}
.modal-body {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-muted);
}
.modal-close:hover { background: #e5e7eb; color: #c0392b; }

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.modal-section {
  background: #fafafa;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.modal-section h3 {
  font-size: 13px;
  margin: 0 0 10px 0;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal-section h3 i { color: var(--gold-deep); }
.kv {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px dashed #e5e7eb;
}
.kv:last-child { border-bottom: none; }
.kv span { color: var(--ink-muted); }
.kv strong { color: var(--ink); }

.status-pick {
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
}
.status-pick.active { opacity: 1; border-color: currentColor; }
.status-pick:hover { opacity: 0.9; }

.logs-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.logs-box ul { margin: 6px 0 0 0; padding-left: 18px; }
.logs-box li { margin-bottom: 4px; }
.logs-time { color: var(--ink-muted); font-family: monospace; }

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.info-list li:last-child { border-bottom: none; }
.info-list code {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* ============================================================
   중고거래 통합 자동 시스템 (자동 업로드 + 자동 발주)
   ============================================================ */

/* LIVE 배지 */
.tab-badge-live {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.auto-system-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auto-badge-purple {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

/* 플랫폼 카드 그리드 */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.platform-card.platform-connected {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}
.platform-card.platform-warning {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}
.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.platform-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.platform-bunjang { background: linear-gradient(135deg, #ff5722, #ff9800); }
.platform-danggn { background: linear-gradient(135deg, #ff7e36, #ffa726); }
.platform-joongna { background: linear-gradient(135deg, #00b894, #00cec9); }
.platform-kream { background: linear-gradient(135deg, #1e1e1e, #4a4a4a); }
.platform-hello { background: linear-gradient(135deg, #ff4081, #f06292); }
.platform-naver { background: linear-gradient(135deg, #03c75a, #00a04a); }

.platform-info {
  flex: 1;
  min-width: 0;
}
.platform-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.platform-meta {
  margin-bottom: 6px;
}
.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.status-connected {
  background: #d1fae5;
  color: #065f46;
}
.status-warning {
  background: #fef3c7;
  color: #92400e;
}
.platform-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-muted);
}
.platform-stats strong {
  color: var(--ink);
}

/* 토글 스위치 */
.platform-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}
.platform-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.platform-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #10b981, #059669);
}
.platform-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* 자동 업로드 액션바 */
.auto-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 18px 22px;
  border-radius: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 14px;
}
.auto-action-info strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.auto-action-info small {
  color: #cbd5e1;
  font-size: 12px;
}
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  animation: btn-glow-pulse 2.5s ease-in-out infinite;
}
@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 4px 22px rgba(239, 68, 68, 0.7); }
}

/* 진행 상태 */
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}
.progress-header h3 {
  margin: 0;
  font-size: 16px;
  color: #6366f1;
}
#progress-eta {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.overall-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.overall-progress-bar {
  flex: 1;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.overall-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  background-size: 200% 100%;
  animation: progress-shine 1.5s linear infinite;
  border-radius: 999px;
  transition: width 0.4s ease;
}
@keyframes progress-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
#overall-progress-text {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.upload-log {
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.7;
}
.upload-log .log-line {
  padding: 2px 0;
  opacity: 0;
  animation: log-slide-in 0.3s ease forwards;
}
@keyframes log-slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.log-time { color: #64748b; margin-right: 8px; }
.log-success { color: #34d399; }
.log-info { color: #60a5fa; }
.log-warn { color: #fbbf24; }
.log-platform { color: #f472b6; font-weight: 600; }

/* 업로드 로그 라인 (JS가 동적 생성) */
.upload-log-line {
  padding: 2px 0;
  opacity: 0;
  animation: log-slide-in 0.3s ease forwards;
}
.upload-log-line code {
  background: #1e293b;
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}
.upload-log-line strong { color: #f1f5f9; }
.upload-log-success { color: #34d399; }
.upload-log-success strong { color: #6ee7b7; }
.upload-log-info { color: #cbd5e1; }
.upload-log-warn { color: #fbbf24; }
.upload-log-warn strong { color: #fcd34d; }
.upload-log-start {
  color: #a78bfa;
  border-bottom: 1px dashed #334155;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.upload-log-done {
  color: #6ee7b7;
  font-weight: 700;
  border-top: 1px dashed #334155;
  padding-top: 6px;
  margin-top: 6px;
}
.log-ok {
  color: #34d399;
  font-weight: 700;
  background: rgba(52,211,153,0.1);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* 플랫폼 비활성화 시각 */
.platform-card.platform-disabled {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.platform-card.platform-disabled .platform-status {
  color: #94a3b8 !important;
}

/* 새 활동 피드 슬라이드 인 */
.auto-feed-new {
  animation: feed-slide-in 0.5s ease;
}
@keyframes feed-slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
    background: #fef3c7;
  }
  to {
    opacity: 1;
    transform: translateX(0);
    background: transparent;
  }
}

/* 자동 발주 시스템 섹션 */
.auto-system-section {
  margin-top: 30px;
  padding: 24px;
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 16px;
}
.auto-num-2 {
  background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
  color: white !important;
}

/* 흐름 다이어그램 */
.auto-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 24px 0;
  flex-wrap: wrap;
  background: white;
  padding: 20px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}
.flow-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  background: #f9fafb;
  position: relative;
}
.flow-step-active {
  background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  border: 1px solid #ddd6fe;
}
.flow-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
  animation: flow-pulse 3s ease-in-out infinite;
}
.flow-step:nth-child(3) .flow-icon { animation-delay: 0.5s; }
.flow-step:nth-child(5) .flow-icon { animation-delay: 1s; }
.flow-step:nth-child(7) .flow-icon { animation-delay: 1.5s; }
.flow-step:nth-child(9) .flow-icon { animation-delay: 2s; }
@keyframes flow-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 4px 18px rgba(139, 92, 246, 0.6); }
}
.flow-label {
  font-size: 13px;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 2px;
}
.flow-time {
  font-size: 11px;
  color: #7c3aed;
  font-weight: 600;
}
.flow-arrow {
  color: #c4b5fd;
  font-size: 14px;
  flex-shrink: 0;
}

/* 자동 발주 통계 그리드 */
.auto-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.auto-stat {
  background: white;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.auto-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  font-family: 'Playfair Display', serif;
}
.auto-stat-success {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auto-stat-time {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auto-stat-money {
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auto-stat-num-detail {
  font-size: 22px !important;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.auto-stat-won {
  font-size: 14px;
  margin-left: 2px;
  -webkit-text-fill-color: #0891b2;
}
.auto-stat-wide {
  grid-column: span 1;
  min-width: 0;
}
@media (min-width: 768px) {
  .auto-stat-wide {
    grid-column: span 2;
  }
}
.auto-stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

/* 실시간 활동 피드 */
.recent-auto-feed {
  background: white;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e5e7eb;
}
.recent-auto-feed h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: #4c1d95;
}
.auto-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}
.auto-feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 13px;
  animation: feed-slide-in 0.4s ease;
}
@keyframes feed-slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.auto-feed-item:last-child { border-bottom: none; }
.feed-time {
  font-size: 11px;
  color: var(--ink-muted);
  min-width: 60px;
  font-weight: 600;
}
.feed-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  flex-shrink: 0;
}
.feed-icon-success { background: linear-gradient(135deg, #10b981, #059669); }
.feed-icon-info { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.feed-icon-money { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.feed-text { flex: 1; line-height: 1.5; }
.feed-text code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .auto-flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-step { width: 100%; min-width: unset; }
  .auto-action-bar { flex-direction: column; align-items: stretch; }
}
