:root {
  --bg: #f5f6f4;
  --card: #fff;
  --ink: #1d2320;
  --muted: #68716c;
  --line: #e2e5e1;
  --accent: #2f6b4f;
  --accent-soft: #e6f0ea;
  --bad: #b3261e;
  --bad-soft: #fbe9e7;
  --info: #1f5f8b;
  --info-soft: #e5eff7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
main { max-width: 1000px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 24px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.top { display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; }
.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top nav a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.top nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.flash { background: var(--accent-soft); border: 1px solid #c5dccd; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.warn { background: var(--bad-soft); border: 1px solid #f1c7c2; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: #eef0ee; color: var(--muted); }
.day { font-weight: 700; margin: 22px 0 8px; color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.event { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: start; text-decoration: none; color: inherit; }
.event { position: relative; }
.event:hover { border-color: #c8cfc9; }
.event a.stretch { position: absolute; inset: 0; z-index: 0; border-radius: 12px; }
.event .hide-form, .event .above { position: relative; z-index: 1; }
.event .above a { text-decoration: none; }
.event .time { font-weight: 600; }
.event .name { font-weight: 600; }
.event .meta { font-size: 13px; color: var(--muted); }
.event .right { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; } .event .right { align-items: flex-start; text-align: left; } }
label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd4d0; border-radius: 8px; font: inherit; background: #fff;
}
textarea { min-height: 90px; }
button, .btn { display: inline-block; background: var(--accent); color: #fff; border: 0; padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.secondary, .btn.secondary { background: #fff; color: var(--ink); border: 1px solid #cfd4d0; }
button.small { padding: 4px 10px; font-size: 13px; }
button.link { background: none; color: var(--muted); padding: 0; font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
td input { padding: 5px 8px; }
pre.mail { white-space: pre-wrap; font: inherit; background: #fafbfa; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 8px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.login { max-width: 360px; margin: 80px auto; }

/* email on/off switches */
.switches { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tgl-form { display: inline; }
.tgl { display: inline-block; border: 0; border-radius: 10px; padding: 1px 9px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.tgl.on { background: var(--accent); color: #fff; }
.tgl.off { background: #e3e6e3; color: #7c847f; }
.tgl:disabled { opacity: .6; }
.badge.faded { background: none; color: #a9b0ab; border: 1px dashed #d4d8d5; }
