/* Shatter SEO - Full Dashboard Styles */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --shatter-gradient: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #2563EB 100%);
  
  --purple-600: #8B5CF6;
  --purple-700: #7C3AED;
  --purple-100: #EDE9FE;
  --purple-50: #F5F3FF;
  
  --success: #22C55E;
  --success-light: #DCFCE7;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  
  --gray-900: #0F172A;
  --gray-800: #1E293B;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #ffffff;
  
  --sidebar-bg: #1E293B;
  --sidebar-dark: #0F172A;
  --sidebar-width: 260px;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-dark) 100%);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.05);
  height: 100vh;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-bottom: 20px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--shatter-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* Company Display */
.company-display {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.company-label {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.company-icon { font-size: 1rem; }

.company-switch-btn {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gray-400);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.company-switch-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Navigation */
.nav { flex: 1; }

.nav-section { margin-bottom: 24px; }

.nav-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 10px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--gray-400);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  margin-bottom: 3px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-item.active {
  background: var(--shatter-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-icon { font-size: 0.95rem; }

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.nav-badge.pending-badge {
  background: var(--warning);
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.test-mode-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.toggle {
  position: relative;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-600);
  border-radius: 22px;
  transition: 0.3s;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.toggle-label {
  font-size: 0.82rem;
  color: var(--gray-300);
  font-weight: 500;
}

.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--gray-400);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-500);
}

.status-dot.connected {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-dot.disconnected { background: var(--danger); }

/* Main Content */
.main {
  padding: 28px 36px;
  overflow-y: auto;
  height: 100vh;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--gray-500);
  margin-top: 4px;
  font-size: 0.9rem;
}

.page-header-right {
  display: flex;
  gap: 10px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--shatter-gradient);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

/* Toolbar */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 0.9rem;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-select {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Blog Table */
.blog-table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
}

.blog-table th {
  text-align: left;
  padding: 14px 20px;
  background: var(--gray-50);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}

.blog-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.blog-table tbody tr {
  transition: all 0.2s;
  cursor: pointer;
}

.blog-table tbody tr:hover {
  background: var(--primary-glow);
}

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

.blog-title-cell { max-width: 280px; }

.blog-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-keyword {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.volume-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--purple-100);
  color: var(--purple-600);
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
}

.difficulty-bar {
  width: 55px;
  height: 7px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.difficulty-fill { height: 100%; border-radius: 4px; }
.difficulty-fill.easy { background: var(--success); }
.difficulty-fill.medium { background: var(--warning); }
.difficulty-fill.hard { background: var(--danger); }

.difficulty-text { font-size: 0.78rem; color: var(--gray-500); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  color: #16A34A;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.generating {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.pending {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.08));
  color: var(--purple-600);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.status-badge.failed {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.action-buttons { display: flex; gap: 6px; }

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: var(--purple-100);
  border-color: var(--purple-600);
}

.action-btn.delete:hover {
  background: var(--danger-light);
  border-color: var(--danger);
}

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

.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { margin-bottom: 8px; color: var(--gray-700); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--shatter-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-small {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s ease-out;
}

.modal-large { max-width: 720px; }

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--gray-600);
  transition: all 0.2s;
}

.modal-close:hover { background: var(--gray-200); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Settings Tabs */
.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}

.settings-tab {
  padding: 12px 18px;
  border: none;
  background: none;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.settings-tab:hover { color: var(--primary); }
.settings-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* Form Styles */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.checkbox-item:hover { background: var(--gray-100); }

.checkbox-item input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.checkbox-item.standalone {
  background: transparent;
  padding: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.model-search {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.model-search input { flex: 1; }

.model-select {
  height: auto !important;
  min-height: 120px;
}

.model-info {
  margin-top: 10px;
  padding: 12px;
  background: var(--purple-50);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: none;
}

.model-info.active { display: block; }

.security-note {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #92400E;
}

.info-box {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.info-box h4 { margin-bottom: 6px; }
.info-box p { margin: 0; font-size: 0.9rem; }

.info-box-purple {
  background: linear-gradient(135deg, var(--purple-50), #DBEAFE);
  border: 1px solid var(--purple-100);
}

.info-box-purple h4 { color: var(--purple-700); }

.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  background: var(--success-light);
  border-radius: var(--radius-sm);
}

.domain-list span {
  background: var(--white);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--gray-700);
}

.restricted-list {
  background: var(--warning-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.restricted-list div { margin-bottom: 6px; }
.restricted-list div:last-child { margin-bottom: 0; }

.label-green { color: #065F46; }
.label-amber { color: #92400E; }
.label-red { color: #DC2626; }

/* Preview Panel */
.preview-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  background: var(--white);
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 900;
  display: flex;
  flex-direction: column;
}

.preview-panel.active { transform: translateX(0); }

.preview-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.preview-title { font-weight: 700; font-size: 1rem; }

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

.preview-toolbar {
  padding: 10px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
  background: var(--gray-50);
}

.preview-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--gray-100);
}

.preview-frame {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  min-height: 100%;
}

.preview-actions {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
}

.file-icon { font-size: 2rem; }

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-overlay.active { display: flex; }

.loading-content {
  text-align: center;
  color: var(--white);
  max-width: 320px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.loading-hint {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.loading-progress {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--shatter-gradient);
  border-radius: 3px;
  transition: width 0.3s;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
}

.toast {
  padding: 14px 20px;
  background: var(--gray-800);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
  animation: toastIn 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* FAQ Schema Retrofit Tool */
.schema-retrofit-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin-top: 24px;
}

.schema-retrofit-section .section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.schema-retrofit-section .section-desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.schema-retrofit-section textarea[readonly] {
  background: var(--gray-50);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-panel { width: 70%; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .preview-panel { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
