/* ========================================
   Table Transformer v2 — Apple Design
   简洁克制 · 中性色为主 · 蓝色强调
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Apple 官网配色 */
  --bg-main: #F5F5F7;
  --bg-main-alt: #FBFBFD;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  
  /* Apple 文字色 */
  --text-primary: #1D1D1F;
  --text-secondary: #424245;
  --text-muted: #86868B;
  --text-light: #A1A1A6;
  
  /* Apple 强调色 */
  --accent: #007AFF;
  --accent-hover: #0066D6;
  --accent-light: #E5F1FF;
  
  /* 状态色 */
  --success: #34C759;
  --success-bg: #E8F8EC;
  --warning: #FF9500;
  --warning-bg: #FFF8E6;
  --error: #FF3B30;
  --error-bg: #FFF0F0;
  
  /* 边框 & 阴影 */
  --border: #D2D2D7;
  --border-light: #E5E5EA;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-xl: 0 8px 32px rgba(0,0,0,0.12);
  
  /* Apple 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* 动画 */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: 24px;
}

.nav-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease-out);
}

.nav-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.nav-link-traffic {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-link-traffic:hover {
  background: var(--accent);
  color: white;
}

/* ---------- Container ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 100px;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-sub-nowrap {
  white-space: nowrap;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 20px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

/* 简化版 - 页脚样式 */
.stats-strip-simple {
  padding: 16px 24px;
  background: var(--bg-main-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: none;
  margin-bottom: 0;
}

.stats-strip-simple .stat-chip {
  padding: 6px 16px;
}

.stats-strip-simple .stat-chip-label {
  font-size: 11px;
}

.stats-strip-simple .stat-chip-value {
  font-size: 20px;
}

.stats-strip-simple .stat-chip-unit {
  font-size: 12px;
}

.stats-strip-simple .stat-chip-divider {
  height: 32px;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 24px;
  text-align: center;
}

.stat-chip-icon {
  font-size: 20px;
}

.stat-chip-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-chip-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-chip-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-chip-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.stat-external-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.stat-external-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---------- Upload Grid ---------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

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

/* ---------- Upload Grid (Single) ---------- */
.upload-grid-single {
  max-width: 100%;
  margin: 0 auto 32px auto;
}

/* ---------- Workflow Grid (统一布局) ---------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* 源卡片横跨两列，宽度=两个模式卡片之和 */
.workflow-grid > .card-source {
  grid-column: 1 / -1;
}

/* 源卡片内容居中，保持舒适阅读宽度 */
.workflow-grid > .card-source .card-body {
  max-width: 480px;
  margin: 0 auto;
}

/* 模式分隔线横跨两列 */
.workflow-grid > .mode-divider {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .workflow-grid > .card-source,
  .workflow-grid > .mode-divider {
    grid-column: 1;
  }
}

.mode-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}

.mode-divider-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-main-alt);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-divider-text::before,
.mode-divider-text::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--border);
}

/* ---------- Mode Cards ---------- */
.mode-card {
  position: relative;
}

/* 模式卡片内容区需要留出顶部空间给badge和step */
.mode-card .card-body {
  padding-top: 36px;
}

.card-mode-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  z-index: 1;
}

.mode-card .card-step {
  top: 12px;
  right: 12px;
  left: auto;
  width: 24px;
  height: 24px;
  font-size: 12px;
  background: var(--accent-light);
}

.upload-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.upload-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.upload-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.card-step {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

/* File Drop Zone */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.file-drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.file-drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.02);
}

.drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.drop-icon {
  font-size: 32px;
  opacity: 0.7;
}

.drop-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.drop-formats {
  font-size: 12px;
  color: var(--text-light);
}

/* File Meta */
.file-meta {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
  display: none;
}

.file-meta.show {
  display: block;
}

.file-meta.error {
  background: var(--error-bg);
  color: var(--error);
}

/* File Preview */
.file-preview {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-main-alt);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}

.file-preview strong {
  color: var(--text-secondary);
}

/* ---------- Config Panel ---------- */
.config-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

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

.config-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.config-badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.config-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 560px) {
  .config-row {
    grid-template-columns: 1fr;
  }
}

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

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field-select {
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.field-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Column Preview */
.col-preview {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-main-alt);
  border-radius: var(--radius-md);
}

.col-preview-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.col-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.col-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.col-tag.found {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.col-tag.not-found {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-main);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #FFFFFF;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: var(--bg-main);
  color: var(--text-secondary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- Batch Panel ---------- */
.batch-panel {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 28px;
}

.batch-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.batch-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.batch-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.batch-results {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

/* ---------- Reorder Panel ---------- */
.reorder-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 28px;
}

.reorder-header {
  margin-bottom: 20px;
}

.reorder-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.reorder-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.reorder-track {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reorder-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  padding-right: 60px;
  background: var(--bg-main-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: grab;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  user-select: none;
}

.reorder-item:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.reorder-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.reorder-item.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.reorder-controls {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}

.reorder-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.reorder-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ---------- Result Panel ---------- */
.result-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.result-icon {
  font-size: 40px;
}

.result-headline {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.result-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.result-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.result-table th,
.result-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  white-space: nowrap;
}

.result-table th {
  background: var(--bg-main-alt);
  font-weight: 600;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
}

.result-table tr:hover td {
  background: var(--bg-main-alt);
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.batch-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-height: 360px;
  overflow-y: auto;
}

.batch-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-main-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--success);
}

.batch-result-item.failed {
  border-left-color: var(--error);
}

.batch-result-icon {
  font-size: 20px;
}

.batch-result-name {
  font-weight: 500;
  color: var(--text-primary);
}

.batch-result-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Batch Execute Section ---------- */
.batch-execute-section {
  text-align: center;
  margin-bottom: 28px;
}

/* ---------- Batch Config Preview ---------- */
.batch-config-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-config-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.batch-config-item.ok {
  background: var(--success-bg);
}

.batch-config-item.err {
  background: var(--error-bg);
}

.batch-config-idx {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.batch-config-item.err .batch-config-idx {
  background: var(--error-bg);
  color: var(--error);
}

.batch-config-name {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-config-cols {
  color: var(--text-muted);
  flex-shrink: 0;
}

.batch-config-more {
  text-align: center;
  padding: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

/* ---------- Templates Strip ---------- */
.templates-strip {
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.templates-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.templates-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tpl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-main-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.tpl-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  transform: translateY(-1px);
}

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

.tpl-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--text-primary);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

.toast.warning {
  background: var(--warning);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Apple风格 - 不使用脉冲动画 */
.upload-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav {
    padding: 12px 16px;
  }
  
  .nav-title {
    display: none;
  }
  
  .container {
    padding: 24px 16px 60px;
  }
  
  .hero {
    padding: 32px 0;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-sub {
    font-size: 15px;
  }
  
  .stats-strip {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  .stat-chip-divider {
    width: 60%;
    height: 1px;
  }
  
  .config-panel,
  .result-panel,
  .batch-panel,
  .reorder-panel,
  .templates-strip {
    padding: 20px;
  }
  
  .nav-links {
    gap: 4px;
  }
  
  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 16px;
}

/* ---------- Loading ---------- */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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