:root {
  --cream: #fbf5e9;
  --paper: #fffdf8;
  --ink: #3b2f2f;
  --muted: #7a6a5f;
  --accent: #e07a2e;
  --accent-dark: #b85c18;
  --line: #eadfcd;
  --ok: #3f7d4e;
  --warn: #b7791f;
  --err: #b23b3b;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 "Nunito", system-ui, sans-serif;
}
a { color: var(--accent-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1180px; }
header.site { padding: 22px 0 8px; }
header.site a { text-decoration: none; color: var(--ink); }
.brand { font: 700 2.4rem/1 "Amatic SC", cursive; letter-spacing: .02em; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 2px 10px rgba(60, 40, 20, .15); }
@media (max-width: 520px) { .brand img { width: 48px; height: 48px; } }
h1, h2 { font-family: "Amatic SC", cursive; line-height: 1.05; margin: .4em 0 .3em; }
h1 { font-size: 3.2rem; }
h2 { font-size: 2.2rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}
label { display: block; font-weight: 700; margin: 14px 0 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8cbb5;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } h1 { font-size: 2.6rem; } }
button, .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: 700 1rem "Nunito", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-dark); }
button.secondary { background: #fff; color: var(--ink); border: 1px solid #d8cbb5; }
button.danger { background: var(--err); }
.total { font-size: 1.3rem; font-weight: 800; }
.errors { background: #fdecec; border: 1px solid #f2c2c2; color: var(--err); border-radius: 10px; padding: 10px 16px; }
.notice { background: #fff5e6; border: 1px solid #f3d3a4; border-radius: 10px; padding: 10px 16px; }
#dedication-box[hidden] { display: none; }
footer.site { color: var(--muted); font-size: .85rem; padding: 30px 0 40px; }
footer.site a { color: var(--muted); }

/* painel */
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
th { background: #f3e9d8; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #eee; white-space: nowrap; }
.pill.review { background: #ffe7c7; color: #8a4b00; }
.pill.failed { background: #fbd5d5; color: var(--err); }
.pill.sent_to_print, .pill.shipped { background: #d9efdf; color: var(--ok); }
.pill.generating, .pill.regenerating, .pill.paid, .pill.approved { background: #dde7f7; color: #2f4f86; }
.filters a { margin-right: 12px; }
.env { font-weight: 800; padding: 2px 10px; border-radius: 6px; }
.env.sandbox { background: #dde7f7; color: #2f4f86; }
.env.live { background: var(--err); color: #fff; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pages figure { margin: 0; }
.pages img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.pages figcaption { font-size: .8rem; color: var(--muted); text-align: center; }
pre.log { background: #2b2420; color: #f3e9d8; padding: 12px; border-radius: 10px; max-height: 280px; overflow: auto; font-size: .8rem; white-space: pre-wrap; }
.actions form { display: inline-block; margin: 4px 8px 4px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.imgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.imgpick label { font-weight: 400; margin: 0; }
.imgpick img { width: 100%; border-radius: 6px; display: block; }
