:root {
  color-scheme: dark;
  --bg: #0b0e0c;
  --panel: #151b17;
  --panel2: #1b241e;
  --text: #f1f0e9;
  --muted: #b6beb5;
  --moss: #71846b;
  --gold: #c9b57a;
  --border: #354239;
  --danger: #e3a19a;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: radial-gradient(ellipse at top, #1c2920 0, var(--bg) 48rem);
  color: var(--text); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-header { display: flex; gap: 1rem; align-items: center; max-width: 900px; margin: 0 auto; padding: 2rem 1.2rem 1rem; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: Georgia, serif; letter-spacing: .08em; }
h1, h2, h3, h4, legend { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin: 0; font-size: 1.7rem; }
.eyebrow { margin: 0 0 .25rem; color: var(--gold); font-size: .72rem; letter-spacing: .14em; }
.container { max-width: 900px; margin: 0 auto; padding: 1rem 1.2rem 3rem; }
.intro { margin: 1rem 0 2rem; max-width: 760px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: .4rem 0 1rem; }
h3 { color: var(--gold); font-size: 1.45rem; }
.notice { margin: 1rem 0; padding: 1rem; background: #1a241d; border-left: 3px solid var(--gold); border-radius: 0 .5rem .5rem 0; color: #e8e8df; }
a { color: var(--gold); }
.required-note, .field-help { color: var(--muted); font-size: .9rem; }
fieldset { margin: 1.2rem 0; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--panel) 94%, transparent); }
legend { padding: 0 .5rem; color: var(--gold); font-size: 1.35rem; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; margin: 0 0 1rem; color: var(--text); font-size: .95rem; }
input, select, textarea { display: block; width: 100%; margin-top: .4rem; padding: .8rem .85rem; border: 1px solid #465448; border-radius: 8px; background: #0e130f; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
textarea { resize: vertical; min-height: 90px; }
.checkline { display: flex; align-items: flex-start; gap: .7rem; }
.checkline input { width: 1.1rem; min-width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: var(--moss); }
button { cursor: pointer; border: 1px solid var(--gold); border-radius: 8px; padding: .85rem 1.2rem; background: var(--gold); color: #171a14; font: 600 1rem/1.2 system-ui, sans-serif; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { margin-left: .5rem; background: transparent; color: var(--gold); }
.status { min-height: 1.5rem; color: var(--muted); }
.status.success { color: #b8d4b2; }
.status.error { color: var(--danger); }
.admin-tools { padding: 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.records { display: grid; gap: 1rem; }
.record-card { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow-wrap: anywhere; }
.record-card h4 { margin: 0 0 .2rem; color: var(--gold); font-size: 1.15rem; }
.detail-json { white-space: pre-wrap; overflow-wrap: anywhere; background: #080a08; padding: 1rem; border-radius: 8px; max-height: 30rem; overflow: auto; font-size: .8rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.5rem max(1.2rem, calc((100% - 900px)/2)); border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
  .grid.two { grid-template-columns: 1fr; gap: .2rem; }
  .site-header { padding-top: 1.3rem; }
  .container { padding-inline: 1rem; }
  fieldset { padding: 1rem; }
  button { width: 100%; margin: .25rem 0; }
  button.secondary { margin-left: 0; }
}

/* Honeypot anti-spam: oculto de usuários, mas presente para bots simples. */
.bot-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

[hidden] { display: none !important; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard-heading h3 { margin: .25rem 0 1rem; }
