:root {
  --ink: #1c2430;
  --muted: #6b7684;
  --line: #e2e6ea;
  --accent: #2f6f4f;
  --bg: #f7f8f9;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}
header {
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.5rem;
}
header a { color: #fff; text-decoration: none; }
main { max-width: 960px; margin: 1.5rem auto; padding: 0 1rem; }
footer { max-width: 960px; margin: 2rem auto; padding: 0 1rem 2rem; color: var(--muted); font-size: 0.85rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
h2 { margin-top: 0; }
label { display: block; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.95rem; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=number], select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}
label.inline { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
label.inline input { width: auto; }

button, .button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { opacity: 0.9; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: top; }
.snippet { color: var(--muted); font-size: 0.85rem; max-width: 320px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.8rem; }

.filter-bar { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.filter-bar label { min-width: 160px; margin-bottom: 0; }

.status { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status-new { background: #fde68a33; color: #92650c; }
.status-queued { background: #bfdbfe55; color: #1d4ed8; }
.status-requested { background: #ddd6fe55; color: #6d28d9; }
.status-confirmed_removed { background: #bbf7d055; color: #15803d; }
.status-declined { background: #fecaca55; color: #b91c1c; }
.status-failed { background: #fecaca55; color: #b91c1c; }

.conf-high td:nth-child(3) { color: #15803d; font-weight: 700; }
.conf-mid td:nth-child(3) { color: #b45309; font-weight: 700; }
.conf-low td:nth-child(3) { color: #b91c1c; }

.flash-block { margin-bottom: 1rem; }
.flash { padding: 0.6rem 1rem; border-radius: 6px; margin-bottom: 0.5rem; }
.flash-error { background: #fecaca55; color: #b91c1c; }

.outcome { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.outcome pre { background: var(--bg); padding: 0.75rem; border-radius: 6px; white-space: pre-wrap; font-size: 0.85rem; }

.inline-form { display: flex; gap: 0.4rem; }
.muted { color: var(--muted); }
