/*
 * Koupe staff app: sign-in, sign-up and the shop's settings.
 * Same monochrome language as the marketing site (node/apps/marketing/app/
 * globals.css): black and white, light display type, sharp controls, pill tabs.
 * Colour is kept for one job only — errors — so they are never missed.
 */
:root {
  --a-bg: #ffffff;
  --a-soft: #f5f5f5;
  --a-fg: #000000;
  --a-muted: #4a4a4a;
  --a-subtle: #6b6b6b;
  --a-line: #dddddd;
  --a-line-strong: #8c8c8c; /* control edges: 3.4:1 on white (WCAG 1.4.11) */
  --a-ink: #000000;
  --a-on-ink: #ffffff;
  --a-on-ink-muted: #bdbdbd;
  --a-danger: #b3261e;
  --a-danger-soft: #fdecea;
  --a-radius: 8px;
  --a-touch: 44px;
  --a-font: Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

.a-body {
  margin: 0;
  background: var(--a-bg);
  color: var(--a-fg);
  font: 400 16px/1.5 var(--a-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.a-loading { padding: 48px 16px; color: var(--a-subtle); text-align: center; }

a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--a-fg); outline-offset: 2px; }

h1, h2, p { margin: 0; }

.a-display,
.a-h1 {
  font-weight: 300;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.a-h1:focus { outline: none; }
.a-h2 { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.a-sub { margin-top: 8px; color: var(--a-muted); max-width: 60ch; }
.a-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.a-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; }
.a-note { color: var(--a-muted); font-size: 14px; }
.a-fine { color: var(--a-subtle); font-size: 13px; text-align: center; }

.a-wordmark {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

/* --- buttons ------------------------------------------------------------- */
.a-btn {
  min-height: var(--a-touch);
  padding: 10px 20px;
  border: 1px solid var(--a-ink);
  border-radius: 0;
  background: transparent;
  color: var(--a-fg);
  font: 500 15px/1.2 var(--a-font);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.a-btn:disabled { opacity: 0.55; cursor: default; }
.a-btn-primary { background: var(--a-ink); color: var(--a-on-ink); }
.a-btn-primary:hover:not(:disabled) { background: #2f2f2f; }
.a-btn-ghost:hover:not(:disabled) { background: var(--a-soft); }
.a-btn-quiet { border-color: transparent; padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.a-btn-quiet:hover:not(:disabled) { background: var(--a-soft); }
.a-btn-danger { color: var(--a-danger); border-color: var(--a-danger); text-decoration: none; }
.a-btn-light { background: var(--a-on-ink); color: var(--a-ink); border-color: var(--a-on-ink); }
.a-btn-ghost-light { color: var(--a-on-ink); border-color: var(--a-on-ink); }
.a-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.a-btn-block { width: 100%; }
.a-btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
@media (pointer: coarse) { .a-btn-sm { min-height: var(--a-touch); } }

.a-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.a-push { margin-left: auto; }
.a-inline { display: flex; flex-wrap: wrap; gap: 4px; }

/* --- form controls ------------------------------------------------------- */
.a-form, .a-editor, .a-plain { display: flex; flex-direction: column; gap: 20px; }
.a-plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.a-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-label { font-size: 14px; font-weight: 500; padding: 0; }
.a-hint { font-size: 13px; color: var(--a-subtle); }
.a-err { font-size: 13px; color: var(--a-danger); font-weight: 500; }
.a-input {
  width: 100%;
  min-height: var(--a-touch);
  padding: 10px 12px;
  border: 1px solid var(--a-line-strong);
  border-radius: 0;
  background: var(--a-bg);
  color: var(--a-fg);
  font: 400 16px/1.4 var(--a-font); /* 16px: no zoom-on-focus in iOS Safari */
}
.a-input:hover:not(:disabled) { border-color: var(--a-fg); }
.a-input:focus { outline: 2px solid var(--a-fg); outline-offset: -1px; border-color: var(--a-fg); }
.a-input:disabled { background: var(--a-soft); color: var(--a-subtle); }
.a-input[aria-invalid="true"] { border-color: var(--a-danger); outline-color: var(--a-danger); }
select.a-input {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.a-textarea { min-height: 88px; resize: vertical; }
.a-pw { position: relative; display: flex; }
.a-pw .a-input { padding-right: 76px; }
.a-reveal {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font: 500 13px var(--a-font);
  color: var(--a-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.a-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.a-radios, .a-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.a-toggle, .a-radio, .a-check { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.a-toggle .a-hint { grid-column: 2; }
.a-check, .a-radio {
  min-height: var(--a-touch);
  padding: 0 14px;
  border: 1px solid var(--a-line-strong);
  border-radius: 100px;
}
.a-check:has(input:checked), .a-radio:has(input:checked) { border-color: var(--a-fg); background: var(--a-soft); }
.a-toggle label, .a-check label, .a-radio label { min-height: 32px; display: flex; align-items: center; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--a-ink); cursor: pointer; }
.a-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.a-alert {
  padding: 12px 14px;
  border-left: 3px solid var(--a-danger);
  background: var(--a-danger-soft);
  color: var(--a-danger);
  font-size: 14px;
  font-weight: 500;
}
.a-alert:focus { outline: none; }

.a-grid2, .a-grid3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .a-grid2 { grid-template-columns: 1fr 1fr; }
  .a-grid3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- sign in / sign up --------------------------------------------------- */
.a-lang {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.a-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.a-auth-brand {
  background: var(--a-ink);
  color: var(--a-on-ink);
  padding: 20px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.a-auth-tag { color: var(--a-on-ink-muted); font-size: 13px; text-align: right; }
.a-auth-main { padding: 16px 16px 48px; display: flex; flex-direction: column; }
.a-auth-top { display: flex; justify-content: flex-end; }
.a-auth-card { width: 100%; max-width: 420px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 24px; }
.a-auth-card .a-sub { margin-top: -12px; }
.a-auth-alt { text-align: center; font-size: 15px; color: var(--a-muted); }
.a-auth-alt a { color: var(--a-fg); font-weight: 500; }
@media (min-width: 900px) {
  .a-auth { grid-template-rows: none; grid-template-columns: minmax(360px, 5fr) 7fr; }
  .a-auth-brand { flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 40px 48px; }
  .a-auth-brand .a-wordmark { font-size: 24px; }
  .a-auth-tag { font-weight: 300; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-align: left; color: var(--a-on-ink); max-width: 12ch; }
  .a-auth-main { padding: 32px 48px 64px; }
  .a-auth-card { margin-top: 8vh; }
}

/* --- app shell ------------------------------------------------------------ */
.a-top { background: var(--a-ink); color: var(--a-on-ink); }
.a-top-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.a-shopname {
  color: var(--a-on-ink-muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.a-top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.a-top-btn {
  min-height: 36px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--a-on-ink);
  font: 500 13px var(--a-font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.a-top .a-lang { color: var(--a-on-ink); }
.a-top :focus-visible { outline-color: var(--a-on-ink); }

.a-nav { border-bottom: 1px solid var(--a-line); background: var(--a-bg); position: sticky; top: 0; z-index: 5; }
.a-nav ul {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  list-style: none;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.a-nav ul::-webkit-scrollbar { display: none; }
.a-tab {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--a-line-strong);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.a-tab:hover { border-color: var(--a-fg); }
.a-tab[aria-current="page"] { background: var(--a-ink); color: var(--a-on-ink); border-color: var(--a-ink); }

.a-main { max-width: 1040px; margin: 0 auto; padding: 32px 16px 96px; }
@media (min-width: 768px) {
  .a-top-in, .a-nav ul { padding-inline: 32px; }
  .a-main { padding: 48px 32px 120px; }
}
.a-stack { display: flex; flex-direction: column; gap: 28px; }
.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.a-card { border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 20px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .a-card { padding: 28px; } }

.a-band {
  background: var(--a-ink);
  color: var(--a-on-ink);
  border-radius: var(--a-radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.a-band-hint { color: var(--a-on-ink-muted); max-width: 60ch; font-size: 15px; }
.a-url-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.a-url {
  flex: 1 1 280px;
  background: transparent;
  color: var(--a-on-ink);
  border-color: #5a5a5a;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
}
.a-url:focus { outline-color: var(--a-on-ink); border-color: var(--a-on-ink); }
.a-band :focus-visible { outline-color: var(--a-on-ink); }
@media (min-width: 768px) { .a-band { padding: 36px 32px; } }

.a-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; }
.a-step {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border-top: 1px solid var(--a-line);
}
.a-step::before {
  content: counter(step, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: var(--a-subtle);
  font-size: 13px;
  width: 22px;
}
.a-step a { flex: 1; font-weight: 500; }
.a-step[data-done] a { color: var(--a-muted); }

.a-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--a-line-strong);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--a-muted);
  white-space: nowrap;
}

/* lists of services and people */
.a-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--a-fg); }
.a-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--a-line);
}
.a-row-open { display: block; padding: 20px 0 24px; }
div.a-row-open { border: 1px solid var(--a-fg); border-radius: var(--a-radius); padding: 20px; }
@media (min-width: 768px) { div.a-row-open { padding: 28px; } }
.a-row-main { flex: 1; min-width: 0; }
.a-row-title { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.a-row-meta { margin-top: 2px; color: var(--a-muted); font-size: 14px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.a-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--a-ink);
  color: var(--a-on-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
}

.a-empty { padding: 40px 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; color: var(--a-muted); }

/* weekly hours */
.a-week { display: flex; flex-direction: column; }
.a-day {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--a-line);
}
.a-day .a-err { grid-column: 1 / -1; }
.a-day-name { display: flex; align-items: center; gap: 10px; min-height: var(--a-touch); }
.a-day-name label { font-weight: 500; cursor: pointer; }
.a-day-times { display: flex; align-items: center; gap: 8px; min-width: 0; }
.a-time { width: auto; min-width: 0; flex: 0 1 140px; padding-inline: 8px; font-variant-numeric: tabular-nums; }
.a-dash { color: var(--a-subtle); }
.a-closed { display: none; color: var(--a-subtle); font-size: 14px; }
.a-day[data-open="false"] .a-time,
.a-day[data-open="false"] .a-dash { display: none; }
.a-day[data-open="false"] .a-closed { display: inline; }
@media (max-width: 420px) {
  .a-day { grid-template-columns: 1fr; }
  .a-time { flex: 1 1 0; }
}

/* toast (lib.js) */
.k-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  padding: 14px 18px;
  background: var(--a-ink);
  color: var(--a-on-ink);
  font-size: 14px;
  font-weight: 500;
  z-index: 20;
}
.k-toast[data-tone="error"] { background: var(--a-danger); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* --- calendar ------------------------------------------------------------- */
.a-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.a-toolbar .a-inline { gap: 6px; align-items: center; }
.a-date { width: auto; min-height: 40px; padding: 6px 10px; font-size: 15px; }
.a-cal {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  overflow: auto;
  max-height: 72vh;
  max-height: 72dvh;
  background: var(--a-bg);
}
.a-cal-head, .a-cal-body {
  display: grid;
  grid-template-columns: 56px repeat(var(--cols), minmax(168px, 1fr));
  min-width: calc(56px + var(--cols) * 168px);
}
.a-cal-head { position: sticky; top: 0; z-index: 3; background: var(--a-bg); border-bottom: 1px solid var(--a-fg); }
.a-cal-corner { position: sticky; left: 0; background: var(--a-bg); z-index: 1; }
.a-cal-staff { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; font-weight: 500; border-left: 1px solid var(--a-line); min-width: 0; }
.a-cal-staff span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-avatar-sm { width: 28px; height: 28px; font-size: 13px; }
.a-cal-axis { position: sticky; left: 0; z-index: 2; background: var(--a-bg); border-right: 1px solid var(--a-line); }
.a-cal-hour {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--a-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.a-cal-hour:first-child { transform: none; top: 2px !important; }
.a-col {
  position: relative;
  border-left: 1px solid var(--a-line);
  /* an hour line every 96px (PPM 1.6), a faint half-hour line between */
  background-image: repeating-linear-gradient(to bottom, var(--a-line) 0 1px, transparent 1px 48px, #f0f0f0 48px 49px, transparent 49px 96px);
  cursor: copy;
}
.a-off {
  position: absolute;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.045) 0 6px, transparent 6px 12px);
}
.a-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--a-danger); z-index: 2; pointer-events: none; }
.a-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--a-danger); }
.a-appt {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 1;
  padding: 4px 8px;
  border: 1px solid var(--a-fg);
  border-left-width: 4px;
  border-radius: 4px;
  background: var(--a-bg);
  color: var(--a-fg);
  font: 400 12px/1.3 var(--a-font);
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  cursor: pointer;
}
.a-appt:hover { background: var(--a-soft); }
.a-appt-time { font-variant-numeric: tabular-nums; color: var(--a-muted); }
.a-appt-who { font-weight: 500; font-size: 13px; }
.a-appt-what { color: var(--a-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-appt span { min-width: 0; }
/* Status reads from fill and border style, not colour alone. */
.a-appt[data-status="checked_in"],
.a-appt[data-status="in_progress"] { background: var(--a-ink); color: var(--a-on-ink); }
.a-appt[data-status="checked_in"] .a-appt-time,
.a-appt[data-status="checked_in"] .a-appt-what,
.a-appt[data-status="in_progress"] .a-appt-time,
.a-appt[data-status="in_progress"] .a-appt-what { color: var(--a-on-ink-muted); }
.a-appt[data-status="completed"] { background: var(--a-soft); border-color: var(--a-line-strong); color: var(--a-muted); }
.a-appt[data-status="no_show"] { border-style: dashed; color: var(--a-subtle); background: transparent; }
.a-appt[data-status="no_show"] .a-appt-who { text-decoration: line-through; }
.a-appt:focus-visible { outline-offset: 1px; z-index: 2; }

/* --- sheets (appointment details, new appointment) ------------------------ */
.a-sheet {
  width: min(560px, 100vw);
  max-width: 100vw;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--a-fg);
  background: var(--a-bg);
  color: var(--a-fg);
}
.a-sheet::backdrop { background: rgba(0, 0, 0, 0.45); }
.a-sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px calc(14px);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: var(--a-bg);
  border-bottom: 1px solid var(--a-line);
}
.a-sheet-head .a-h2 { font-weight: 300; font-size: 26px; letter-spacing: -0.02em; }
.a-sheet-body { padding: 20px 20px calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 20px; }
.a-status {
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid var(--a-fg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.a-status[data-status="checked_in"], .a-status[data-status="in_progress"] { background: var(--a-ink); color: var(--a-on-ink); }
.a-status[data-status="no_show"], .a-status[data-status="cancelled"] { border-style: dashed; }
.a-kvs { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--a-line); }
.a-kv { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--a-line); }
.a-kv dt { color: var(--a-muted); font-size: 14px; }
.a-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .a-kv { grid-template-columns: 1fr; gap: 2px; } }
.a-stack-sm { display: flex; flex-direction: column; gap: 10px; }
.a-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.a-result {
  width: 100%;
  min-height: var(--a-touch);
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--a-line);
  background: transparent;
  text-align: left;
  font: 400 15px var(--a-font);
  color: var(--a-fg);
  cursor: pointer;
}
.a-result:hover { background: var(--a-soft); }
.a-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--a-fg);
  border-radius: 100px;
}
.a-chip[hidden] { display: none; }
.a-row-side { text-align: right; font-size: 13px; color: var(--a-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .a-row { flex-wrap: wrap; } .a-row-side { width: 100%; text-align: left; padding-left: 54px; } }

/* day / week switch, barber pills, today's column */
.a-seg { display: inline-flex; border: 1px solid var(--a-fg); border-radius: 100px; overflow: hidden; }
.a-seg-btn {
  min-height: 38px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--a-fg);
  font: 500 14px var(--a-font);
  cursor: pointer;
}
.a-seg-btn[aria-pressed="true"] { background: var(--a-ink); color: var(--a-on-ink); }
.a-pill {
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--a-line-strong);
  border-radius: 100px;
  background: var(--a-bg);
  color: var(--a-fg);
  font: 500 14px var(--a-font);
  cursor: pointer;
}
.a-pill[aria-pressed="true"] { background: var(--a-ink); color: var(--a-on-ink); border-color: var(--a-ink); }
.a-cal[data-view="week"] .a-cal-head,
.a-cal[data-view="week"] .a-cal-body { grid-template-columns: 56px repeat(7, minmax(120px, 1fr)); min-width: calc(56px + 7 * 120px); }
.a-cal-staff[data-today] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.a-col[data-today] { background-color: rgba(0, 0, 0, 0.02); }

/* client card */
.a-linkbtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.a-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; }
.a-stats > div + div { border-left: 1px solid var(--a-line); }
.a-stats strong { font-weight: 300; font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.a-stats span { font-size: 13px; color: var(--a-muted); }
.a-notes, .a-visits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.a-note-item { padding: 12px 0; border-bottom: 1px solid var(--a-line); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.a-note-item[data-pinned] { border-left: 3px solid var(--a-fg); padding-left: 12px; }
.a-note-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.a-visit { padding: 10px 0; border-bottom: 1px solid var(--a-line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.a-visit strong { font-weight: 500; }
.a-visit span:not(.a-tag) { color: var(--a-muted); }
.a-visit[data-status="cancelled"] strong, .a-visit[data-status="no_show"] strong { text-decoration: line-through; color: var(--a-subtle); }

/* time off in the grid: hatched, clearly not bookable, readable without colour */
.a-block {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 1;
  padding: 4px 8px;
  border: 1px dashed var(--a-muted);
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, #ececec 0 6px, #f7f7f7 6px 12px);
  color: var(--a-muted);
  font: 500 12px/1.3 var(--a-font);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}
