* { box-sizing: border-box; }
body { margin: 0; padding: 16px; background: #f1f5f9; color: #172033; font-family: Arial, sans-serif; }
.app { width: 100%; max-width: 850px; margin: 0 auto; }
header { margin-bottom: 18px; }
header h1 { margin: 0; font-size: 27px; }
header p { margin: 5px 0; color: #64748b; }
.panel { padding: 16px; margin-bottom: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
label { display: block; margin-bottom: 9px; font-weight: bold; }
select, textarea, button { width: 100%; font: inherit; }
select { padding: 13px; font-size: 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
#layoutInfo { margin-bottom: 0; color: #64748b; font-size: 14px; }
textarea { display: block; min-height: 230px; padding: 14px; resize: vertical; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; background: #fff; color: #172033; font-size: 25px; line-height: 1.8; }
textarea:focus { border-color: #2563eb; }
button { margin-top: 12px; padding: 13px; border: 0; border-radius: 8px; background: #172033; color: #fff; font-size: 16px; cursor: pointer; }
button:focus-visible, select:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.diagnostics h2 { margin-top: 0; font-size: 17px; }
pre { min-height: 90px; margin: 0; padding: 12px; overflow-wrap: anywhere; white-space: pre-wrap; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: 13px; line-height: 1.6; }

@media (max-width: 480px) { body { padding: 12px; } .panel { padding: 13px; } textarea { min-height: 42vh; font-size: 22px; } }
