/* The member pages, in the studio's look: the same --sala-* properties the timetable and <sala-practice> take
   (look.py), set by site.js from GET /studio. Plain fallbacks until they arrive. */
:root {
  --ink: var(--sala-ink, #161616);
  --bg: var(--sala-bg, #ffffff);
  --surface: var(--sala-surface, color-mix(in srgb, var(--ink) 4%, transparent));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --muted: color-mix(in srgb, var(--ink) 64%, transparent);
  --accent: var(--sala-accent, #303030);
  --accent-ink: var(--sala-accent-ink, #ffffff);
  --warn: #a3361a;
  --r: var(--sala-radius, 0);
  --br: var(--sala-button-radius, 0);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sala-font, system-ui, -apple-system, "Segoe UI", sans-serif); font-size: var(--sala-size, 16px);
  line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: env(safe-area-inset-top, 0px) max(32px, env(safe-area-inset-bottom, 0px));
}
.bar, main { max-width: 760px; margin: 0 auto; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.framed .bar { padding-right: 56px; }
.name { font-family: var(--sala-heading-font, inherit); font-weight: 700; font-size: 1.125em; color: inherit; text-decoration: none; }
nav { display: flex; gap: 16px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9375em; padding: 10px 0; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
main { padding-top: 24px; display: grid; gap: 16px; }
h1 { font-family: var(--sala-heading-font, inherit); font-size: 1.75em; line-height: 1.15; margin: 0; }
p { margin: 0; max-width: 60ch; }
.muted { color: var(--muted); }
.error { color: var(--warn); }
form { display: grid; gap: 12px; max-width: 420px; }
label { font-weight: 600; font-size: 0.9375em; }
input {
  font: inherit; font-size: max(16px, 1em); width: 100%; min-height: 48px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); color: inherit;
}
input.code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; font-size: 1.375em; }
button {
  font: inherit; font-weight: 700; min-height: 48px; padding: 0 20px; border-radius: var(--br); cursor: pointer;
  border: 1.5px solid var(--accent); background: none; color: inherit; justify-self: start;
}
button.solid { background: var(--accent); color: var(--accent-ink); }
button.link { border: 0; padding: 0; min-height: 44px; color: var(--muted); text-decoration: underline; font-weight: 600; }
button:disabled { opacity: 0.6; cursor: default; }
:is(a, button, input):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
ul.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
ul.sessions li { background: var(--bg); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
ul.sessions b { display: block; }
.here { font-size: 0.8125em; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-left: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* The booking sheet, My bookings and Account (decision 0079). */
h2 { font-family: var(--sala-heading-font, inherit); font-size: 1.25em; margin: 0; }
.part { display: grid; gap: 12px; padding-top: 8px; }
.small { font-size: 0.875em; }
.ok { color: var(--ink); font-weight: 600; }
a.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--br);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; justify-self: start; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-weight: 600; padding: 0 4px; }
label.choice { display: flex; gap: 8px; align-items: center; font-weight: 400; min-height: 44px; }
label.choice input { width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
select { font: inherit; font-size: max(16px, 1em); min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line);
  border-radius: var(--r); background: var(--bg); color: inherit; width: 100%; }
ul.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
ul.list li { background: var(--bg); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px; }
.stack { display: grid; gap: 2px; min-width: 0; }
.stack b { display: block; }
.confirm { flex-basis: 100%; display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--surface); }
.terms { margin: 0; padding: 10px 12px; border-left: 3px solid var(--sala-accent, currentColor); background: var(--bg); }
.card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
ul.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
ul.facts b { font-size: 1.25em; font-variant-numeric: tabular-nums; }
.room .grid { position: relative; width: 100%; max-width: 520px; max-height: 70vh; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); }
.room .spot, .room .fixture { position: absolute; display: grid; place-items: center; box-sizing: border-box;
  font-size: 0.75em; padding: 0; min-height: 0; border-radius: 6px; }
.room .fixture { color: var(--muted); border: 1px dashed var(--line); }
.room .spot { border: 1.5px solid var(--accent); background: var(--bg); color: var(--ink); font-weight: 700; }
.room .spot:disabled { border-color: var(--line); color: var(--muted); background: var(--line); }
.room .spot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
