:root {
  --bg: #f7f3ee; --surface: #ffffff; --ink: #2b2420; --muted: #7a6d64; --line: #e6ddd4;
  --clay: #b5562f; --clay-ink: #ffffff; --clay-soft: #f3e2d8;
  --ok: #2f7a4f; --ok-soft: #e1f1e7; --warn: #9a6a12; --warn-soft: #f8edd4; --danger: #b3261e;
  --radius: 10px; --shadow: 0 1px 2px rgba(43,36,32,.06), 0 2px 8px rgba(43,36,32,.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#1b1715; --surface:#25201d; --ink:#efe7e1; --muted:#a89a90; --line:#3a332e;
          --clay:#d9774e; --clay-soft:#3d2a20; --ok:#7cc79a; --ok-soft:#1f3328; --warn:#e2b55a; --warn-soft:#3a2f18; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; }
a { color: var(--clay); }
h1 { font-size: 1.7rem; margin: .2em 0 .5em; line-height: 1.2; }
h2 { font-size: 1.25rem; margin: 1.2em 0 .5em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; border-radius: 50% 50% 45% 45%; background: var(--clay); display: inline-block; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--clay); }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.subnav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); }
.site-footer { color: var(--muted); font-size: .85rem; padding: 40px 16px; }
.hero { padding: 8px 0 16px; } .hero p { color: var(--muted); margin-top: -8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > label { flex: 1 1 140px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
label.check { flex-direction: row; align-items: center; font-weight: 500; gap: 8px; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; font-weight: 400; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: transparent; }
.w-sm { max-width: 90px; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--clay); }
.btn-primary { background: var(--clay); border-color: var(--clay); color: var(--clay-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
button.link { background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; padding: 0; }
form.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--surface); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.filters label { flex: 1 1 150px; }
.day-heading { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 28px 0 8px; }
.slot-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s; }
.slot-card:hover { border-color: var(--clay); }
.slot-card h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.slot-card p { margin: 0; }
.slot-when { display: flex; flex-direction: column; text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.slot-when .day { font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.slot-when .date { font-weight: 700; }
.slot-when .time { font-size: .85rem; }
.slot-meta { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.slot-meta .full { color: var(--danger); font-weight: 600; }
@media (max-width: 560px) { .slot-card { grid-template-columns: 64px 1fr; } .slot-meta { grid-column: 2; text-align: left; flex-direction: row; gap: 12px; } }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.tag-one_on_one { background: #e3ecf7; color: #1f4f86; }
.tag-class { background: var(--clay-soft); color: var(--clay); }
.tag-workshop { background: var(--ok-soft); color: var(--ok); }
@media (prefers-color-scheme: dark) { .tag-one_on_one { background: #1d2b3d; color: #9cc3f0; } }
.chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; margin: 0 6px 6px 0; font-size: .9rem; }
.badge { background: var(--clay); color: var(--clay-ink); border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.empty { color: var(--muted); padding: 24px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.prose { border-top: 1px solid var(--line); padding-top: 12px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); }
.flash-success { background: var(--ok-soft); border-color: transparent; }
.flash-error { background: #fbe4e2; color: #7d1a14; border-color: transparent; }
.flash-info { background: var(--warn-soft); border-color: transparent; }
@media (prefers-color-scheme: dark) { .flash-error { background: #3d1f1c; color: #f2b8b2; } }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1, .page-head h2 { margin: 0 0 12px; }
.status-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px; }
.status { flex: 1 1 260px; padding: 12px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.status.ok { border-left: 4px solid var(--ok); } .status.wait { border-left: 4px solid var(--warn); }
.status strong { display: block; font-size: .8rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.table tr.dim td { opacity: .5; }
.schedule { list-style: none; padding: 0; margin: 0; } .schedule li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.room-row { margin-bottom: 8px; } .room-row input:not(.w-sm) { flex: 1 1 160px; width: auto; }
.danger-zone { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
code { background: var(--line); padding: 1px 5px; border-radius: 4px; }
