:root {
  --bg: #fafaf8; --card: #fff; --text: #2b2d2f; --muted: #7a7e83; --line: #e7e7e3;
  --brand: #2f7d74; --brand-soft: color-mix(in srgb, var(--brand) 12%, white); --ok: #3d7a4f; --ok-soft: #eaf4ec;
  --warn: #9a6a1c; --warn-soft: #faf2e3; --bad: #b4473f; --bad-soft: #f9eceb;
  --radius: 10px; --btn-radius: 8px; --accent2: #2f7d74; --on-brand: #fff; --header-bg: #fff; --header-text: #2b2d2f; color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
b, strong, h1, h2, h3, th { font-weight: 500; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); }
header.top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; background: var(--header-bg); color: var(--header-text); }
.logo { font-weight: 600; font-size: 20px; letter-spacing: -.5px; color: inherit; text-decoration: none; }
.logo .muted { color: inherit; opacity: .6; }
.logo img { height: 28px; vertical-align: middle; margin-right: 8px; }
.err { color: var(--bad); font-size: 14px; }
header.top nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.5px; }
h2 { font-size: 18px; margin: 24px 0 10px; }
h3 { margin: 0 0 6px; font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

button, .btn { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 7px 14px; border-radius: var(--btn-radius); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--brand); }
button.primary, .btn.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
button.link { border: 0; background: none; color: var(--brand); padding: 0; }

input, select, textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: min(var(--btn-radius), 12px); background: var(--card); color: var(--text); }
textarea { min-height: 80px; }
label { display: block; font-size: 13px; font-weight: 500; margin: 10px 0 4px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 15px; }
label.check input { width: auto; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
form .actions { margin-top: 16px; display: flex; gap: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filters > input, .filters > select { width: auto; flex: 0 1 auto; border-color: transparent; background-color: var(--bg); }
.filters > input:focus, .filters > select:focus { border-color: var(--brand); outline: none; }
.filters > :first-child { flex: 1 1 240px; padding-left: 34px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a7e83' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 11px center; }
.filters input[type=number] { width: 80px; }
.filters .seg { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; }
.seg button { border: 0; border-radius: 0; }
.seg button.on { background: var(--brand); color: var(--on-brand); }
.cal-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-nav h3 { margin: 0 auto 0 2px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-day { display: flex; flex-direction: column; min-height: 340px; border-right: 1px solid var(--line); }
.cal-day:last-child { border-right: 0; }
.cal-day.past { background: color-mix(in srgb, var(--bg) 70%, var(--card)); }
.cal-head { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cal-head b { display: block; font-size: 20px; color: var(--text); }
.cal-day.today .cal-head { color: var(--brand); }
.cal-day.today .cal-head b { color: var(--brand); }
.cal-body { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.cal-ev { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 6px 8px; font-size: 13px; line-height: 1.35;
  border: 0; border-left: 3px solid var(--accent2); border-radius: min(var(--btn-radius), 8px); background: color-mix(in srgb, var(--accent2) 9%, white); }
.cal-ev b { color: var(--text); overflow-wrap: anywhere; }
.cal-ev.full { border-left-color: var(--warn); background: var(--warn-soft); }
.cal-ev.closed { opacity: .55; }
.cal-ev:hover { border-color: var(--brand); filter: brightness(.97); }
@media (max-width: 760px) {
  .cal { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cal-day:last-child { border-bottom: 0; }
  .cal-day.no-ev { display: none; }
  .cal-head { display: flex; gap: 8px; align-items: baseline; }
  .cal-head b { display: inline; font-size: 15px; }
}
@media (max-width: 640px) { .filters > select, .filters > input[type=number] { flex: 1 1 40%; } .filters .seg { margin-left: 0; flex: 1 1 100%; } .filters .seg button { flex: 1; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.class-card { cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .1s, box-shadow .1s; }
.class-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgb(0 0 0 / .07); }
.class-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; }
.price { font-weight: 500; font-size: 17px; }

.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent2) 13%, white); color: color-mix(in srgb, var(--accent2) 75%, black); margin-right: 4px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.grey { background: var(--bg); color: var(--muted); }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { border-radius: 0; }

.session { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: min(var(--btn-radius), 12px); margin-bottom: 6px; cursor: pointer; background: var(--card); }
.session input { width: auto; }
.session .grow { flex: 1; }

dialog { border: 0; border-radius: var(--radius); padding: 24px; width: min(620px, calc(100vw - 32px)); max-height: 90vh; background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
dialog::backdrop { background: rgb(10 10 25 / .45); }
dialog .x { position: absolute; right: 12px; top: 10px; border: 0; font-size: 22px; background: none; line-height: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.5px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 10px 14px; color: var(--muted); }
.tabs button.on { color: var(--brand); border-color: var(--brand); font-weight: 500; }
.list > * + * { margin-top: 10px; }
.item { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 32px; color: var(--muted); }
.bar { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--brand); }
pre.email { white-space: pre-wrap; font: inherit; margin: 6px 0 0; color: var(--muted); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; z-index: 100; box-shadow: 0 6px 20px rgb(0 0 0 / .2); }
.toast.bad { background: var(--bad); color: #fff; }
.embed header.top { display: none; }
.hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.hero img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
@media (max-width: 860px) { .brand-grid { grid-template-columns: 1fr !important; } }
.site-foot { max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; font-size: 13px; }
.embed .site-foot { padding-bottom: 12px; }
details.maps { position: relative; display: inline-block; }
details.maps summary { list-style: none; }
details.maps summary::-webkit-details-marker { display: none; }
.maps-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px rgb(0 0 0 / .14); }
.maps-menu.right { left: auto; right: 0; }
.maps-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.maps-menu a:hover { background: var(--bg); }
.maps-menu svg { width: 24px; height: 24px; flex: none; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 1100px; margin: 16px auto 0; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.bolts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.bolt { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; }
.bolt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, white); }
.bolt input { width: auto; margin-top: 3px; }
.bolt .t { flex: 1; }
.bolt b { display: block; }
.bolt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.bolt .p { color: var(--brand); white-space: nowrap; font-weight: 500; }
