:root {
  --paper: #fbf7f0; --card: #ffffff; --ink: #23302f; --muted: #6b7472; --line: #e6dfd3;
  --teal: #1d6b67; --teal-2: #e3f0ee; --orange: #e8915f; --orange-2: #fbeadf; --red: #b3412f; --red-2: #f8e1dc; --green: #2f7a4b; --green-2: #e2f1e6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--teal); }
.testbar { background: var(--orange); color: #fff; text-align: center; font-weight: 600; font-size: 13px; padding: 4px 8px; letter-spacing: .02em; }
.top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; }
.nav a:hover { background: var(--teal-2); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who small { color: var(--muted); }
main { max-width: 1100px; margin: 0 auto; padding: 18px 20px 60px; }
main.wide { max-width: 1400px; }
h1 { font-size: 24px; margin: 6px 0 16px; }
h2 { font-size: 17px; margin: 0; }
.muted { color: var(--muted); }
.notice { background: var(--teal-2); border: 1px solid #c4e0db; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.warn-box { background: var(--orange-2); border: 1px solid #f2cdb5; padding: 8px 12px; border-radius: 10px; margin: 10px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cols { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eee; color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--green-2); color: var(--green); } .badge.warn { background: var(--orange-2); color: #9a4f22; }
.badge.bad { background: var(--red-2); color: var(--red); } .badge.info { background: var(--teal-2); color: var(--teal); }
.btn { display: inline-block; border: 1px solid var(--teal); background: var(--teal); color: #fff; padding: 7px 14px; border-radius: 9px; font: inherit; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.small { padding: 3px 9px; font-size: 13px; }
button.link { background: none; border: 0; color: var(--teal); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
.check { display: inline-flex; gap: 6px; align-items: center; margin: 2px 14px 6px 0; }
.radios { display: flex; flex-wrap: wrap; }
.help { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 16px; }
.tabs a { padding: 7px 12px; text-decoration: none; color: var(--ink); border-radius: 8px 8px 0 0; }
.tabs a.on { background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--card); margin-bottom: -1px; font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
.stat { font-size: 26px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.cal { display: grid; grid-template-columns: 70px repeat(7, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); font-size: 13px; }
.cal .hd { background: var(--teal-2); padding: 6px; font-weight: 600; text-align: center; border-left: 1px solid var(--line); }
.cal .tm { padding: 4px 6px; color: var(--muted); border-top: 1px solid var(--line); }
.cal .slot { border-left: 1px solid var(--line); border-top: 1px solid var(--line); min-height: 40px; padding: 2px; }
.appt { display: block; background: var(--teal); color: #fff; border-radius: 6px; padding: 2px 5px; margin-bottom: 2px; text-decoration: none; font-size: 12px; }
.appt.no_show, .appt.late_cancel { background: var(--orange); } .appt.cancelled { background: #b8b8b8; } .appt.completed { background: var(--green); }
.print-only { display: none; }
@media print { .top, .testbar, .no-print, .btn { display: none !important; } .print-only { display: block; } body { background: #fff; } .card { border: 0; } }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .top { padding: 8px 12px; } main { padding: 12px 16px 40px; } }
.key { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: .06em; background: var(--teal-2); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.codes { columns: 2; font-family: ui-monospace, Menlo, monospace; font-size: 15px; line-height: 2; padding-left: 22px; }
.who a { color: var(--ink); text-decoration: none; } .who a:hover { text-decoration: underline; }
/* online booking: the client pages */
.bk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.bk-brand { font-weight: 700; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.bk-chip { border: 1px solid var(--teal); color: var(--teal); border-radius: 999px; padding: 7px 14px; text-decoration: none; }
.bk-chip.on { background: var(--teal); color: #fff; }
.bk-day { margin: 12px 0; } .bk-day h3 { font-size: 15px; margin: 0 0 6px; }
.bk-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-slots a { display: inline-block; min-width: 100px; min-height: 44px; text-align: center; border: 1px solid #c4e0db; background: var(--teal-2); color: var(--teal); border-radius: 10px; padding: 10px 12px; text-decoration: none; font-weight: 600; }
.bk-slots a:hover, .bk-slots a:focus { border-color: var(--teal); }
.bk-appt { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.bk-foot { margin-top: 24px; font-size: 13px; }
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 600; padding: 0 6px; }
.ferr { color: var(--red); display: block; }
.warn-box a, .notice a, code { overflow-wrap: anywhere; }
/* the parent's boxes show only when "For my child" is chosen (browsers without :has show them, with a note) */
form:has(input[name=who][value=self]:checked) .bk-parent, form:has(input[name=who][value=self]:checked) .bk-childnote { display: none; }
