/* ==================== Global Reset & Variables ==================== */
:root {
  --primary: #2196F3;
  --primary-light: #64B5F6;
  --primary-bg: #E3F2FD;
  --primary-dark: #1565C0;
  --accent: #D32F2F;
  --accent-light: #EF5350;
  --success: #10B981;
  --success-bg: #D1FAE5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --brand-red: #D32F2F;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --topbar-h: 56px;
  --sidebar-w: 260px;
  --right-panel-w: 340px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
}

/* ==================== Top Bar ==================== */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(33,150,243,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  height: 28px;
  display: flex;
  align-items: center;
}

.topbar-logo img {
  height: 28px;
  width: auto;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.topbar-breadcrumb {
  color: var(--gray-400);
  font-size: 13px;
  margin-left: 8px;
}

.topbar-breadcrumb span { color: var(--gray-600); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
  background: var(--success-bg);
  padding: 4px 10px;
  border-radius: 20px;
}

.topbar-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.topbar-org {
  font-size: 13px;
  color: var(--gray-600);
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.topbar-btn {
  font-size: 13px;
  color: var(--gray-500);
  background: none;
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-btn:hover {
  border-color: var(--gray-300);
  color: var(--gray-700);
}

/* ==================== Page Container ==================== */
.page-container {
  margin-top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

.page { display: none; height: 100%; }
.page.active { display: flex; flex-direction: column; }

/* ==================== Landing Page ==================== */
.landing {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  overflow-y: auto;
  background: linear-gradient(135deg, #e0f0ff 0%, #b8ddf7 30%, #8ec8f0 60%, #d0eafc 100%);
  position: relative;
}
.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6) 25%, transparent 25%) -50px 0,
    linear-gradient(225deg, rgba(255,255,255,0.4) 25%, transparent 25%) -50px 0,
    linear-gradient(315deg, rgba(255,255,255,0.3) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%);
  background-size: 200px 200px;
  opacity: 0.3;
  pointer-events: none;
}
.landing > * { position: relative; z-index: 1; }
.landing.active { display: flex; }

.landing-hero {
  text-align: center;
  max-width: 720px;
  margin-bottom: 40px;
}

.landing-logo {
  margin-bottom: 20px;
}

.landing-logo img {
  height: 56px;
  width: auto;
}

.landing-hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.landing-hero p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.landing-hero .brand-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: -8px;
  margin-bottom: 24px;
}

.landing-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 8px 32px rgba(33,150,243,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.landing-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.landing-card .subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.landing-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-700);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
  resize: none;
  min-height: 80px;
  font-family: inherit;
}

.landing-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.landing-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(33,150,243,0.25);
}

.btn-primary:hover { background: linear-gradient(135deg, #1E88E5 0%, #0D47A1 100%); }

.btn-secondary {
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.landing-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  width: 100%;
  margin-top: 32px;
}

.shortcut-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(33,150,243,0.08);
}

.shortcut-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 24px rgba(33,150,243,0.18);
  transform: translateY(-3px);
}

.shortcut-card .icon {
  width: 40px;
  height: 40px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.shortcut-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-800);
}

.shortcut-card p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ==================== Workspace (Three Column Layout) ==================== */
.workspace {
  display: flex;
  height: 100%;
}

/* Left Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.sidebar-btn-new {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-btn-new:hover { background: #1565C0; }

/* Stepper */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  position: relative;
}

.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  border: 2px solid var(--gray-300);
  color: var(--gray-400);
  background: var(--white);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.step.completed .step-indicator {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step.active .step-indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.step-content h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
}

.step.active .step-content h4 { color: var(--primary); font-weight: 600; }
.step.completed .step-content h4 { color: var(--gray-700); }

.step-content p {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 38px;
  bottom: -10px;
  width: 2px;
  background: var(--gray-200);
}

.step.completed:not(:last-child)::after {
  background: var(--success);
}

/* Sidebar task list */
.task-list { list-style: none; }

.task-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.task-item:hover { background: var(--gray-50); }
.task-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 500; }

.task-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}

.task-item.active .dot { background: var(--primary); }

/* Sidebar quick entry */
.quick-entry {
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-500);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.quick-entry:hover { background: var(--gray-50); color: var(--primary); }

.quick-entry .qe-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* Sidebar bottom actions */
.sidebar-bottom {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-bottom-btn {
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.sidebar-bottom-btn:hover { border-color: var(--gray-300); color: var(--gray-700); }

/* ==================== Middle Column (Chat + Content) ==================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gray-50);
  min-width: 0;
}

.main-header {
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.main-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}

.main-header p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.main-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Chat bubbles */
.chat-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.bubble.ai {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  border-bottom-left-radius: 4px;
}

.bubble.ai .ai-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.bubble.loading {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ==================== Result Cards (embedded in chat) ==================== */
.result-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 8px 0;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.result-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.result-card-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-success { background: var(--success-bg); color: #065F46; }
.badge-warning { background: var(--warning-bg); color: #92400E; }
.badge-danger { background: var(--danger-bg); color: #991B1B; }
.badge-info { background: var(--primary-bg); color: var(--primary); }

/* Trend items */
.trend-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}

.trend-rank {
  width: 28px;
  height: 28px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.trend-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.trend-info p { font-size: 12px; color: var(--gray-500); }

.trend-meta {
  margin-left: auto;
  text-align: right;
}

.trend-meta .heat {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

.trend-meta .heat::before { content: '↑ '; }

/* Tags / Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.chip {
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 12px;
  color: var(--gray-600);
}

.chip.primary { background: var(--primary-bg); color: var(--primary-dark); }

/* Risk hints */
.risk-hints {
  background: var(--warning-bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 12px 0;
}

.risk-hints h4 {
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.risk-hints ul {
  list-style: none;
  font-size: 13px;
  color: #78350F;
}

.risk-hints li { padding: 2px 0; }
.risk-hints li::before { content: '• '; color: var(--warning); }

/* Action buttons row */
.action-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-sm.primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; box-shadow: 0 2px 6px rgba(33,150,243,0.2); }
.btn-sm.primary:hover { background: linear-gradient(135deg, #1E88E5 0%, #0D47A1 100%); }

.btn-sm.outline {
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.btn-sm.outline:hover { border-color: var(--gray-300); background: var(--gray-50); }

/* ==================== Design Cards Grid ==================== */
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.design-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.design-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.design-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.design-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e0f0ff 0%, #d0e8f8 50%, #e8f4fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 13px;
  position: relative;
}

.design-img .placeholder-icon {
  font-size: 48px;
  opacity: 0.3;
}

.design-body { padding: 16px; }

.design-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.design-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.design-meta span { display: flex; align-items: center; gap: 4px; }

/* Score card */
.score-card {
  background: linear-gradient(135deg, #E3F2FD 0%, #EBF5FF 100%);
  border: 1px solid #90CAF9;
  border-radius: var(--radius);
  padding: 14px;
}

.score-card h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.score-label {
  font-size: 12px;
  color: var(--gray-600);
  width: 72px;
  flex-shrink: 0;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.score-bar-fill.high { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.score-bar-fill.mid { background: linear-gradient(90deg, var(--warning), #FBBF24); }
.score-bar-fill.low { background: linear-gradient(90deg, var(--danger), #F87171); }

.score-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  width: 28px;
  text-align: right;
}

.score-overall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #90CAF9;
}

.score-overall .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
}

.score-overall .grade {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.score-reasons {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-600);
}

.score-reasons li {
  padding: 2px 0;
  list-style: none;
}
.score-reasons li::before { content: '✓ '; color: var(--success); }

.design-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.design-actions .btn-sm { flex: 1; text-align: center; font-size: 12px; padding: 7px 8px; }

/* Filter toolbar */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 12px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

/* ==================== Marketing Page ==================== */
.marketing-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.marketing-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.marketing-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.marketing-img {
  height: 140px;
  background: linear-gradient(135deg, #e0f4ff 0%, #d8ecfa 50%, #eef7fd 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 12px;
  border: 1px solid var(--gray-100);
}

.copy-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
}

.copy-block h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.copy-block p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.bullet-list {
  list-style: none;
  margin: 8px 0;
}

.bullet-list li {
  padding: 3px 0;
  font-size: 13px;
  color: var(--gray-600);
}

.bullet-list li::before { content: '• '; color: var(--primary); font-weight: bold; }

/* ==================== Draft Pages (Listing & Production) ==================== */
.warning-bar {
  background: var(--warning-bg);
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-bar .warn-icon { font-size: 16px; }

.draft-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.draft-form h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray-800);
}

.form-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.form-row:last-child { border-bottom: none; }

.form-label {
  width: 120px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  flex-shrink: 0;
  padding-top: 2px;
}

.form-value {
  font-size: 14px;
  color: var(--gray-800);
  flex: 1;
}

/* ==================== Right Panel ==================== */
.right-panel {
  width: var(--right-panel-w);
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 16px;
}

.panel-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.panel-tab:hover { color: var(--gray-700); }

.panel-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.panel-section { display: none; }
.panel-section.active { display: block; }

/* Panel info rows */
.panel-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 13px;
}

.panel-info-row .label { color: var(--gray-500); }
.panel-info-row .value { color: var(--gray-800); font-weight: 500; }

/* Panel file list */
.file-list { margin-top: 12px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.file-item:hover { background: var(--gray-50); }

.file-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }

.file-info .name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-info .meta {
  font-size: 11px;
  color: var(--gray-400);
}

.file-actions {
  display: flex;
  gap: 4px;
}

.file-action-btn {
  padding: 4px 8px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 11px;
  color: var(--gray-500);
  cursor: pointer;
}

.file-action-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Timeline */
.timeline { margin-top: 8px; }

.timeline-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -8px;
  width: 2px;
  background: var(--gray-100);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-bg);
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--primary);
  z-index: 1;
}

.timeline-dot.completed {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.timeline-body { flex: 1; min-width: 0; }

.timeline-time {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.timeline-text {
  font-size: 13px;
  color: var(--gray-700);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--gray-400);
}

.empty-state .empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.empty-state p { font-size: 13px; }

/* ==================== Chat Input ==================== */
.chat-input-area {
  padding: 12px 24px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--white);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  resize: none;
  min-height: 20px;
  max-height: 100px;
  font-family: inherit;
  color: var(--gray-800);
}

.chat-input::placeholder { color: var(--gray-400); }

.input-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.15s;
  font-size: 16px;
}

.input-btn:hover { background: var(--gray-100); color: var(--gray-600); }

.input-btn.send {
  background: var(--primary);
  color: white;
}
.input-btn.send:hover { background: #4338CA; }

/* ==================== Run Summary Page ==================== */
.summary-page {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.summary-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.summary-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-item .label {
  font-size: 12px;
  color: var(--gray-500);
}

.summary-item .value {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.completed { background: var(--success-bg); color: #065F46; }
.status-badge.pending { background: var(--warning-bg); color: #92400E; }

/* Summary asset list */
.asset-list { margin-top: 8px; }

.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.asset-item:last-child { border-bottom: none; }

.asset-item .name {
  font-size: 14px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-item .actions {
  display: flex;
  gap: 8px;
}

.asset-item .actions a {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.asset-item .actions a:hover { text-decoration: underline; }

/* Review summary card */
.review-card {
  background: linear-gradient(135deg, #E3F2FD 0%, #EBF5FF 100%);
  border: 1px solid #90CAF9;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}

.review-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ==================== Transitions ==================== */
.fade-enter {
  animation: fadeIn 0.3s ease forwards;
}

/* ==================== Summary timeline (larger) ==================== */
.summary-timeline {
  position: relative;
  padding-left: 32px;
}

.summary-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.summary-tl-item {
  position: relative;
  padding: 10px 0;
}

.summary-tl-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--white);
  z-index: 1;
}

.summary-tl-item.done::before { background: var(--success); }

.summary-tl-time {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.summary-tl-text {
  font-size: 14px;
  color: var(--gray-700);
}

/* ==================== Utility ==================== */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--gray-500) !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
