/* Minimal, dependency-free styling -- not a design system, just enough
   to make the MVP screens legible. */
body { font-family: -apple-system, system-ui, sans-serif; margin: 0; background: #f6f7f9; color: #1a1a1a; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; background: #111827; color: #fff; }
.topbar .brand { font-weight: 600; }
.topbar nav a, .topbar nav button.link-button { color: #fff; margin-left: 1rem; text-decoration: none; background: none; border: none; cursor: pointer; font-size: 1rem; }
.topbar nav a:hover, .topbar nav button.link-button:hover { text-decoration: underline; }
main { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.card { background: #fff; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.card.narrow { max-width: 360px; margin: 3rem auto; }
.card.wide { max-width: 1100px; }
label { display: block; margin-top: 1rem; font-weight: 600; }
input, textarea { width: 100%; box-sizing: border-box; padding: 0.5rem; margin-top: 0.25rem; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
button { margin-top: 1rem; padding: 0.5rem 1.25rem; border-radius: 4px; border: none; background: #2563eb; color: #fff; cursor: pointer; }
button.reject { background: #dc2626; margin-left: 0.5rem; }
button.approve { background: #16a34a; }
.error { color: #b91c1c; font-weight: 600; }
.success { color: #15803d; font-weight: 600; }
.hint { color: #6b7280; font-size: 0.9rem; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
td.wrap { max-width: 320px; overflow-wrap: break-word; white-space: pre-wrap; }
.status { padding: 0.15rem 0.5rem; border-radius: 4px; background: #e5e7eb; font-size: 0.85rem; }
.inline-form { display: inline; }
dl.approval-fields dt { font-weight: 600; margin-top: 1rem; }
dl.approval-fields dd { margin: 0.25rem 0 0 0; white-space: pre-wrap; overflow-wrap: break-word; }
.json-tree { margin: 0.25rem 0 0 1.25rem; }
.json-key { font-weight: 600; }
.pagination { margin-top: 1rem; display: flex; gap: 1rem; align-items: center; }
