:root {
  --teal: #00a3ad;
  --teal-dark: #00757c;
  --ink: #1d2b2f;
  --muted: #5d6b6f;
  --line: #d7e0e2;
  --bg: #f6f9f9;
  --warn: #b35c00;
  --bad: #b3261e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--teal); color: #fff; }
header a, header button { color: #fff; text-decoration: none; margin-left: 16px; font-weight: bold; }
header .brand { margin-left: 0; font-size: 18px; }
header button { background: none; border: 1px solid #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
main { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
h1 { font-size: 22px; margin: 8px 0 16px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef4f5; font-size: 13px; }
tr.row { cursor: pointer; }
tr.row:hover { background: #f0fafb; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
label { display: block; font-size: 13px; color: var(--muted); }
input, select, textarea { width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 4px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 80px; }
button.primary { background: var(--teal); color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; font-weight: bold; cursor: pointer; }
button.primary:hover { background: var(--teal-dark); }
button.link { background: none; border: 0; color: var(--teal-dark); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.events { display: flex; flex-wrap: wrap; gap: 8px; }
.events button { background: #fff; border: 1px solid var(--teal); color: var(--teal-dark); border-radius: 4px; padding: 6px 10px; cursor: pointer; font-weight: bold; }
.events button.active { background: var(--teal); color: #fff; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #e3f2f3; color: var(--teal-dark); margin: 0 4px 2px 0; }
.pill.warn { background: #fdecd9; color: var(--warn); }
.status { font-weight: bold; }
.muted { color: var(--muted); font-size: 13px; }
.error { background: #fbe9e7; color: var(--bad); border: 1px solid #f2c4bf; padding: 10px; border-radius: 4px; margin: 10px 0; }
.ok { background: #e6f4ea; color: #1e6b34; border: 1px solid #bfe0c8; padding: 10px; border-radius: 4px; margin: 10px 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.filters > * { width: auto; }
.filters input[type=search] { min-width: 260px; }
pre.body { white-space: pre-wrap; font-family: inherit; background: #fafcfc; border: 1px solid var(--line); padding: 10px; border-radius: 4px; max-height: 320px; overflow: auto; }
.draft { border-top: 1px solid var(--line); padding: 10px 0; }
.draft .actions { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
a.button-link { display: inline-block; padding: 8px 14px; color: #fff; background: var(--teal); border-radius: 4px; text-decoration: none; font-weight: bold; }
a.button-link:hover { background: var(--teal-dark); }
