:root {
  --betel: #d01834;
  --betel-dark: #a3122a;
  --ink: #1c2024;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f5f7;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

.topbar { background: var(--betel); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.topbar .brand { font-weight: 800; letter-spacing: .3px; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar nav a { color: #fff; text-decoration: none; opacity: .92; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }
.topbar .who { opacity: .8; font-size: .85rem; }

main.wrap { padding-top: 20px; padding-bottom: 40px; }

.searchbar { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }
.searchbar input[type=search] { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.searchbar button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--betel); color: #fff; cursor: pointer; }
.searchbar .clear { color: var(--muted); font-size: .85rem; }

table.grid { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
table.grid th, table.grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
table.grid thead th { background: #fafafa; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.grid tbody tr:hover { background: #fcf3f4; }
table.grid a { color: var(--betel-dark); }
.acoes { white-space: nowrap; }
.acoes form { display: inline; }

.card { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.06); max-width: 620px; }
.card.narrow { max-width: 380px; margin: 40px auto; }
.card h1 { margin-top: 0; }
label { display: block; margin: 12px 0; font-size: .88rem; color: #374151; }
label input, label textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.row { display: flex; gap: 10px; margin-top: 16px; }

.btn { display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--betel); color: #fff; text-decoration: none; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--betel-dark); }
.btn.ghost { background: #eef0f2; color: var(--ink); }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font-size: .93rem; }
button.link.danger { color: #b91c1c; margin-left: 8px; }

.alert { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: .92rem; }
.alert.ok { background: #e7f6ec; color: #1c7a3f; }
.alert.err { background: #fde8e8; color: #b91c1c; }

.muted { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }
footer.wrap { margin-top: 28px; }
