:root {
  --bg: #f6f4ee; --card: #ffffff; --ink: #1f2a1f; --muted: #5d6b5d; --line: #dcd8cc;
  --brand: #2f5d3a; --brand-ink: #ffffff; --accent: #c9822b; --bad: #a3322a; --good: #2f7a45;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151a15; --card: #1e251e; --ink: #e8ece6; --muted: #a3ada1; --line: #334033; --brand: #6fa97b; --brand-ink: #0f140f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.wide { max-width: 1100px; }
header.bar { background: var(--brand); color: var(--brand-ink); }
header.bar .wrap { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
header.bar a, header.bar button { color: inherit; }
header.bar strong { font-size: 1.1rem; margin-right: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .95rem; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }
textarea { min-height: 70px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
button, .btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 0; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button:disabled { opacity: .6; cursor: wait; }
.ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ticket:first-of-type { border-top: 0; }
.ticket input { width: 80px; }
.total { font-size: 1.2rem; font-weight: 700; text-align: right; margin-top: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; }
.error { color: var(--bad); font-weight: 600; }
.ok { color: var(--good); font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); }
.pill.paid, .pill.published, .pill.open { border-color: var(--good); color: var(--good); }
.pill.cancelled, .pill.refunded { border-color: var(--bad); color: var(--bad); }
nav.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
nav.tabs button { background: transparent; color: var(--brand-ink); border: 1px solid transparent; }
nav.tabs button.on { border-color: var(--brand-ink); }
.table-scroll { overflow-x: auto; }
