:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18352c;
  background: #edf5f1;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #d3efe2 0, transparent 34rem), #edf5f1; }
.app-shell { width: min(1480px, 100%); margin: 0 auto; padding: 28px; display: grid; grid-template-columns: minmax(340px, 470px) 1fr; gap: 28px; align-items: start; }
.editor, .preview-panel { background: rgba(255,255,255,.94); border: 1px solid #cde0d7; box-shadow: 0 18px 50px rgba(20,65,50,.09); border-radius: 24px; }
.editor { padding: 30px; }
.eyebrow { color: #07865c; font-weight: 800; letter-spacing: .12em; font-size: .75rem; }
h1 { margin: 8px 0 6px; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.035em; color: #123d30; }
.intro { margin: 0 0 24px; color: #5a7169; line-height: 1.5; }
form { display: grid; gap: 15px; }
.grid { display: grid; gap: 13px; }
.grid.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 7px; color: #35564b; font-size: .875rem; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #bfd4cb; border-radius: 11px; padding: 12px 13px; font: inherit; color: #163f31; background: #fbfdfc; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 78px; }
input:focus, textarea:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,.14); }
.money-input { display: flex; align-items: center; border: 1px solid #bfd4cb; border-radius: 11px; background: #fbfdfc; overflow: hidden; }
.money-input > span { padding-left: 13px; color: #079669; font-size: 1.25rem; font-weight: 800; }
.money-input input { border: 0; box-shadow: none; }
.actions { display: grid; gap: 10px; margin-top: 22px; }
button { min-height: 48px; border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .15s, filter .15s; }
button:hover { filter: brightness(.96); transform: translateY(-1px); }
button:active { transform: translateY(0); }
.primary { color: white; background: #087a55; }
.secondary { color: #087a55; background: #e0f2e9; }
.whatsapp { color: #073b27; background: #42d77d; }
.status { min-height: 1.4em; margin: 12px 0 0; color: #4b665d; font-size: .85rem; text-align: center; }
.preview-panel { padding: 24px; position: sticky; top: 24px; }
.preview-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.preview-heading h2 { margin: 0; font-size: 1.1rem; color: #173f32; }
.preview-heading span { font-size: .8rem; color: #648078; }
.paper-wrap { background: #dfe9e4; border-radius: 16px; padding: 20px; overflow: auto; }
canvas { display: block; width: 100%; height: auto; background: white; box-shadow: 0 8px 25px rgba(22,63,49,.12); }
@media (max-width: 950px) {
  .app-shell { grid-template-columns: 1fr; padding: 16px; }
  .preview-panel { position: static; grid-row: 1; padding: 15px; }
  .editor { padding: 22px; }
}
@media (max-width: 520px) {
  .grid.two { grid-template-columns: 1fr; }
  .paper-wrap { padding: 8px; }
  .app-shell { padding: 10px; gap: 12px; }
  .preview-panel, .editor { border-radius: 18px; }
}
@media print {
  body { background: white; }
  .editor, .preview-heading { display: none !important; }
  .app-shell, .preview-panel, .paper-wrap { display: block; padding: 0; margin: 0; border: 0; box-shadow: none; background: white; }
  canvas { width: 100%; box-shadow: none; }
}
