:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  background: #f1f5f9;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
.page { min-height: 100vh; padding: 24px; background: #f1f5f9; }
.layout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid #cbd5e1; border-radius: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.sidebar, .content-card, .stats-card, .info-card { padding: 24px; }
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 8px; flex: 0 0 auto; }
.no-logo .brand-row { display: block; }
.heading { margin: 0; font-size: 28px; }
.subheading { margin: 8px 0 0; color: #475569; font-size: 14px; line-height: 1.5; }
.form-section { margin-top: 24px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .stat-title, .meta-title { font-size: 14px; font-weight: 600; }
.text-input, .number-input, .output-textarea { width: 100%; border: 1px solid #94a3b8; border-radius: 14px; padding: 10px 12px; background: #fff; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; border: 1px solid #cbd5e1; border-radius: 14px; padding: 12px; background: #fff; }
.buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.button { border: none; border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.button-primary { background: #0f172a; color: #fff; }
.button-secondary { background: #e2e8f0; color: #0f172a; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.status-panel { margin-top: 24px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 14px; padding: 16px; }
.status-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.progress-track { margin-top: 12px; height: 12px; background: #cbd5e1; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: #2563eb; width: 0%; }
.status-note { margin-top: 8px; color: #475569; font-size: 14px; }
.error { margin-top: 10px; color: #b91c1c; font-size: 14px; }
.hidden { display: none; }
.content-stack { display: grid; gap: 24px; }
.title-preview { margin: 0 0 16px; font-size: 22px; }
.output-textarea { min-height: 460px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.6; resize: vertical; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-list { display: grid; gap: 10px; margin-top: 16px; }
.stat-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.meta-row { font-size: 14px; color: #475569; }
.meta-row + .meta-row { margin-top: 10px; }
@media (max-width: 1000px) { .layout, .stats-grid, .two-columns, .buttons { grid-template-columns: 1fr; } }
@media print {
  .page { padding: 0; background: #fff; }
  .layout { display: block; max-width: none; }
  .sidebar, .stats-card, .info-card { display: none; }
  .content-card { border: none; box-shadow: none; padding: 0; }
  .output-textarea { border: none; min-height: auto; padding: 0; }
}
