/* appointdd. One stylesheet for the public pages and the admin.
   Brand: green on warm paper, Fraunces for headings, Instrument Sans for the interface.
   The six colours below are the brand guidelines', unchanged. */

/* Two variable files, self-hosted (the CSP is font-src 'self').
   Fraunces is set with a little SOFT and WONK so the display face reads as drawn rather
   than picked off a list; Instrument Sans carries the interface. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/fraunces.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --brand: #1f4d3f;
  --brand-ink: #fff;
  --ink: #1f1e1b;
  --muted: #6d6a62;
  --faint: #9b978d;
  --line: #e6e2da;
  --line-strong: #d3cec4;
  --bg: #f6f4ef;
  --card: #ffffff;
  --soft: #f1eee8;
  --ok: #1d7a4f;
  --ok-bg: #e5f3eb;
  --warn: #9a6200;
  --warn-bg: #fbf1dc;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(30, 25, 15, .04), 0 8px 28px rgba(30, 25, 15, .05);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 var(--sans);
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
/* The book face carries headings; labels, buttons and form text stay the device's sans. */
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em;
             letter-spacing: -.012em; font-optical-sizing: auto;
             font-variation-settings: 'SOFT' 28, 'WONK' 1; }
h1 { font-size: 30px; font-weight: 500; }
h2 { font-size: 22px; font-weight: 500; }
h3 { font-size: 15px; font-weight: 600; font-family: var(--sans); letter-spacing: -.008em;
     font-variation-settings: normal; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
[hidden] { display: none !important; }

/* ---------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 14px; line-height: 1;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none;
  white-space: nowrap; letter-spacing: -.005em;
  transition: background .14s ease, border-color .14s ease;
}
.btn:hover { background: #173b30; border-color: #173b30; }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { background: var(--soft); border-color: var(--line-strong); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.small { padding: 8px 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkish { white-space: nowrap; background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.linkish.bad { color: var(--bad); }

label { display: block; font-weight: 550; font-size: 13.5px; margin: 0 0 5px;
        letter-spacing: -.004em; color: var(--ink); }
label .muted { font-weight: 400; }
.field { margin: 0 0 16px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field .error, .error-text { font-size: 13px; color: var(--bad); margin-top: 5px; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=submit]):not([type=button]):not([type=hidden]),
select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 11px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.row > .field { flex: 1 1 160px; }
.inline { display: inline; }
.stack > * + * { margin-top: 12px; }

.flash { padding: 11px 14px; border-radius: 8px; margin: 0 0 18px; font-size: 14px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill { border-radius: 999px; }
.card.pad { padding: 24px; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }

/* ================================================================ public pages */
.public { min-height: 100vh; padding: 40px 16px 60px; }
.public.embedded { padding: 0; min-height: 0; background: transparent; }
.shell { max-width: 1060px; margin: 0 auto; }
.brandbar { text-align: center; margin: 0 0 22px; }
.brandbar img { max-height: 44px; }
.brandbar .name { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 600; text-decoration: none; }

.profile { max-width: 760px; margin: 0 auto; }
.profile-head { text-align: center; padding: 34px 24px 26px; border-bottom: 1px solid var(--line); }
.profile-head h1 { margin-bottom: 8px; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; }
.event-tile { display: block; padding: 22px 24px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); border-top: 4px solid transparent; }
.event-tile:hover { background: var(--soft); }
.event-tile h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.event-tile p { color: var(--muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-tile .meta { margin-top: 10px; font-size: 13px; color: var(--muted); }

.scheduler { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; overflow: hidden; }
.scheduler .info { padding: 28px; border-right: 1px solid var(--line); }
.scheduler .main { padding: 28px; min-width: 0; }
.info .host { color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.info h1 { font-size: 24px; margin-bottom: 16px; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 600; font-size: 14px; margin: 0 0 10px; }
.facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.facts li.when { color: var(--ok); }
.info .desc { font-size: 14px; color: var(--ink); white-space: pre-line; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--brand); text-decoration: none; margin-bottom: 16px; font-size: 18px; }

.picker { display: grid; grid-template-columns: 1fr 220px; gap: 28px; }
.picker.no-day { grid-template-columns: 1fr; max-width: 440px; }
.picker h2 { font-size: 18px; margin-bottom: 18px; }
.durations { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.durations button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; }
.durations button[aria-pressed=true] { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.month-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.month-head .label { min-width: 150px; text-align: center; font-weight: 500; }
.month-head button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand); cursor: pointer; font-size: 16px; }
.month-head button[disabled] { background: transparent; color: var(--faint); cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal .dow { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; padding: 4px 0; }
.cal button { aspect-ratio: 1; max-width: 46px; width: 100%; margin: 0 auto; border-radius: 50%; border: 0; font: inherit; font-size: 15px; background: transparent; color: var(--faint); cursor: default; position: relative; }
.cal button.open { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-weight: 700; cursor: pointer; }
.cal button.open:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.cal button.selected { background: var(--brand); color: var(--brand-ink); }
.cal button.today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-loading { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 0; }
.tzrow { margin-top: 22px; }
.tzrow label { font-size: 13px; }
.tzrow .controls { display: flex; gap: 10px; align-items: center; }
.tzrow select { max-width: 280px; font-size: 14px; padding: 8px 10px; }
.clock-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; flex: none; }
.clock-toggle button { font: inherit; font-size: 12px; font-weight: 600; border: 0; padding: 7px 10px; background: #fff; cursor: pointer; color: var(--muted); }
.clock-toggle button[aria-pressed=true] { background: var(--ink); color: #fff; }
.day h3 { font-weight: 500; margin: 6px 0 14px; }
.times { display: flex; flex-direction: column; gap: 8px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.slot { display: flex; gap: 8px; }
.slot button { flex: 1; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); background: #fff; color: var(--brand); cursor: pointer; transition: all .15s; }
.slot button:hover { border-color: var(--brand); border-width: 2px; padding: 12px 7px; }
.slot.chosen .time { background: #5f5c55; border-color: #5f5c55; color: #fff; flex: 1; }
.slot .next { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.slot .left { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.none { color: var(--muted); font-size: 14px; }

.book-form { max-width: 520px; }
.guest-toggle { margin: -6px 0 18px; }
.sms-box { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }
.sms-box .check { margin: 0; }
.sms-box small { display: block; margin: 6px 0 0 26px; }
.legal { font-size: 12px; color: var(--muted); margin-top: 14px; }
.options .check { margin: 6px 0; }

.confirmation { max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 28px; }
.confirmation .tick { width: 46px; height: 46px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.confirmation .tick.cancelled { background: var(--bad); }
.confirmation .summary { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 22px 0; }
.confirmation .summary h2 { font-size: 18px; }
.confirmation .summary .facts li { font-weight: 500; }
.add-cal { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.manage { display: flex; justify-content: center; gap: 22px; font-size: 14px; }
.powered { text-align: center; margin-top: 18px; font-size: 12px; color: var(--faint); }
.powered a { color: inherit; }
.was { text-decoration: line-through; color: var(--faint) !important; }

@media (max-width: 860px) {
  .scheduler { grid-template-columns: 1fr; }
  .scheduler .info { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .scheduler .main { padding: 22px; }
  .picker { grid-template-columns: 1fr; }
  .times { max-height: none; }
}
@media (max-width: 480px) {
  .public { padding: 16px 12px 40px; }
  .confirmation { padding: 28px 16px; }
  .cal { gap: 3px; }
}

/* ================================================================ admin */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .logo { font-weight: 700; font-size: 17px; padding: 4px 10px 18px; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.sidebar .logo span { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.sidebar nav a:hover { background: var(--soft); }
.sidebar nav a.on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-weight: 650; }
.sidebar nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.sidebar .me { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sidebar .me strong { display: block; }
.content { padding: 32px 36px 80px; min-width: 0; max-width: 1180px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input, .toolbar select { width: auto !important; min-width: 160px; padding: 8px 10px !important; font-size: 14px; }
.toolbar .spacer { flex: 1; }

.day-group { margin-bottom: 22px; }
.day-group > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.booking-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.booking-row:last-child { border-bottom: 0; }
.booking-row:hover { background: var(--soft); }
.booking-row .when { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 14px; }
.booking-row .who strong { display: block; }
.booking-row .who small { display: block; }
.booking-row.cancelled .who strong { text-decoration: line-through; color: var(--muted); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.detail > * { min-width: 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.answers dt { font-weight: 600; margin-top: 12px; }
.answers dd { margin: 2px 0 0; white-space: pre-line; }
.msg-log td { font-size: 13px; }
.panel + .panel { margin-top: 18px; }

.et-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.et-card { border-top: 5px solid var(--brand); display: flex; flex-direction: column; }
.et-card .body { padding: 18px 20px; flex: 1; }
.et-card h2 { font-size: 17px; margin-bottom: 4px; }
.et-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.et-card.off { opacity: .6; }
.et-card .actions { display: flex; gap: 12px; font-size: 13px; flex-wrap: wrap; }

.section { padding: 24px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section > h2 { margin-bottom: 4px; }
.section > .lede { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.sticky-save { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); padding: 14px 0; margin-top: 18px; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); z-index: 5; }

.builder-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: #fff; }
.builder-item .row { align-items: center; }
.builder-item .remove { margin-left: auto; }

.week { display: grid; gap: 0; }
.weekday { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.weekday:last-child { border-bottom: 0; }
.weekday .spans { display: flex; flex-direction: column; gap: 8px; }
.span-row { display: flex; gap: 8px; align-items: center; }
.span-row input { width: 120px !important; padding: 8px 10px !important; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.unavail { color: var(--muted); font-size: 14px; padding-top: 6px; }
.override { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.override strong { min-width: 150px; }

.var-list { display: flex; flex-wrap: wrap; gap: 6px; }
.var-list button { font: 12px ui-monospace, Menlo, monospace; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.var-list button:hover { border-color: var(--brand); color: var(--brand); }
.preview { background: var(--soft); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; font-size: 14px; }
.preview .subject { font-weight: 650; margin-bottom: 8px; }
.bubble { background: #e9e9eb; color: #000; border-radius: 18px; padding: 10px 14px; max-width: 320px; white-space: pre-wrap; font-size: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px 20px; }
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 140px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--brand); border-radius: 5px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; }
.hours div { background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.hours-axis { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; font-size: 10px; color: var(--faint); text-align: center; margin-top: 4px; }

.integration { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start; }
.integration .logo { width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, Menlo, monospace; font-size: 13px !important; }
pre.code { background: #1f1e1b; color: #f1ede4; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.5; white-space: pre; }


@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .logo { padding: 4px 8px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .sidebar nav .sep { display: none; }
  .sidebar .me { margin: 0 0 0 auto; padding: 0 8px; border: 0; }
  .sidebar .me strong, .sidebar .me span { display: none; }
  .content { padding: 22px 16px 60px; }
  .detail { grid-template-columns: 1fr; }
  .booking-row { grid-template-columns: 1fr auto; }
  .booking-row .when { grid-column: 1 / -1; }
  .weekday { grid-template-columns: 1fr; gap: 8px; }
  .bar { grid-template-columns: 100px 1fr 36px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .integration { grid-template-columns: 1fr; }
}

/* ---------- multi-account additions */
.sidebar .acct-name { font-size: 13px; color: var(--muted); padding: 0 10px 14px; margin-top: -10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details > summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; }
details.muted > summary { color: var(--muted); font-weight: 500; }
.step { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.step:last-child { border-bottom: 0; }
.step:hover { background: var(--soft); }
.step .tickbox { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.step.done .tickbox { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.done span:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.step .go { color: var(--faint); font-size: 20px; }

/* ================================================================ appointdd brand
   The wordmark is always lower case and always ink or paper, never the accent
   (brand guidelines, 02). The symbol is the calendar page with one day taken. */
.wordmark { font-family: var(--display); font-weight: 500; letter-spacing: 0; text-transform: lowercase; }
.lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.lockup img, .lockup svg { height: 1.15em; width: auto; flex: none; }

/* Auth pages */

/* Admin sidebar */
.sidebar .logo { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: 0; text-transform: lowercase; gap: 9px; }
.sidebar .logo img { height: 24px; width: auto; }

/* The booking page's big moments: the event name and the confirmation. */
.info h1 { font-size: 26px; font-weight: 500; }
.confirmation h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 500; }
.profile-head h1 { font-weight: 500; }

/* ================================================================ sign in and sign up
   Two panels rather than one card adrift in the middle of the screen: the brand holds
   the left, the form sits against it on the right, left-aligned and close-set. */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.auth-side { background: var(--brand); color: #fff; padding: 44px 48px;
             display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
                   color: #fff; font-family: var(--display); font-weight: 500; font-size: 22px;
                   text-transform: lowercase; letter-spacing: -.01em; }
.auth-side .mark img { height: 26px; width: auto; }
.auth-side .pitch { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px);
                    line-height: 1.12; letter-spacing: -.015em; margin: 0 0 14px; max-width: 13em;
                    font-variation-settings: 'SOFT' 28, 'WONK' 1; }
.auth-side .sub { color: rgba(255, 255, 255, .74); font-size: 15px; margin: 0; max-width: 30em; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px;
                font-size: 13.5px; color: rgba(255, 255, 255, .74); }
.auth-side li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.auth-side li::before { content: "\2014"; color: rgba(255, 255, 255, .45); }

.auth-main { display: flex; align-items: center; justify-content: flex-start;
             padding: 44px 48px; background: var(--bg); }
.auth-form { width: 100%; max-width: 384px; }
.auth-form h1 { font-size: 27px; margin-bottom: 6px; }
.auth-form .intro { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
.auth-form .btn { margin-top: 4px; }
.auth-form .after { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.auth-form .after + .after { margin-top: 7px; }
/* The booking-page address reads as one control, not a caption beside a box. */
.slug-field { display: flex; align-items: stretch; border: 1px solid var(--line-strong);
              border-radius: var(--radius-sm); background: #fff; overflow: hidden;
              transition: border-color .14s ease, box-shadow .14s ease; }
.slug-field:focus-within { border-color: var(--brand);
                           box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.slug-field .prefix { display: flex; align-items: center; padding: 0 2px 0 11px; color: var(--faint);
                      font-size: 14px; white-space: nowrap; }
.slug-field input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
                    padding-left: 0 !important; min-width: 0; }

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { padding: 22px 24px; flex-direction: row; align-items: center; gap: 16px; }
  .auth-side .pitch, .auth-side .sub, .auth-side ul { display: none; }
  .auth-main { padding: 36px 24px 56px; align-items: flex-start; }
  .auth-form { max-width: 440px; margin: 0 auto; }
}
