/* ==========================================================================
   KATI barber dashboard (resources/views/barber/*) and barber sign-up (frontend/auth/barber-signup)
   Like the rest of the brand layer it only uses palette tokens (--kati-*) and the site layer's --k-* sizes.
   Rules sit under .k-bd (dashboard) or .k-join (sign-up), so nothing leaks into other pages.
   ========================================================================== */
.k-bd-body { background: var(--kati-background); }

/* ---------- Shell: side menu on wide screens, tab bar on phones ---------- */
.k-bd {
  display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(28px, 3.5vw, 48px); align-items: start;
  max-width: var(--k-maxw); margin: 0 auto; padding: clamp(16px, 2.5vw, 28px) var(--k-gutter) clamp(56px, 7vw, 96px);
}
.k-bd__side { position: sticky; top: 96px; }
.k-bd__me { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--kati-line); }
.k-bd__me strong { display: block; font-size: 15px; font-weight: 600; color: var(--kati-ink); line-height: 1.3; }
.k-bd__me small { display: block; font-size: 13px; color: var(--kati-ink-2); }
.k-bd__nav { display: flex; flex-direction: column; gap: 2px; }
.k-bd__nav a {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px;
  font-size: 15px; font-weight: 500; color: var(--kati-ink-2); text-decoration: none; transition: background-color .2s, color .2s;
}
.k-bd__nav a i { font-size: 18px; color: var(--kati-icon); }
.k-bd__nav a:hover { background: var(--kati-tint-soft); color: var(--kati-ink); }
.k-bd__nav a.is-active { background: var(--kati-tint); color: var(--kati-on-tint); }
.k-bd__nav a.is-active i { color: currentColor; }
.k-bd__nav a:focus-visible { outline: none; box-shadow: var(--kati-ring); }
/* menu group labels and counts (the vendor menu is longer than the barber's) */
.k-bd__nav .k-bd__group { margin: 14px 14px 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--kati-ink-3); }
.k-bd__nav .k-bd__group:first-child { margin-top: 2px; }
.k-bd__nav .k-bd__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--kati-primary); color: var(--kati-on-primary); font-size: 12px; font-weight: 600; }
.k-bd__nav .k-bd__badge { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--kati-sand); color: var(--kati-ink-2); font-size: 11.5px; font-weight: 600; }
.k-bd__nav a.is-active .k-bd__badge { background: color-mix(in srgb, var(--kati-on-tint) 10%, transparent); color: var(--kati-on-tint); }
.k-bd__me .k-bd__plan { color: var(--kati-accent-text); font-weight: 600; text-decoration: none; }
.k-bd__me .k-bd__plan:hover { text-decoration: underline; }
.k-bd__nav .k-bd__logout { margin-top: 10px; color: var(--kati-danger); }
.k-bd__nav .k-bd__logout i { color: currentColor; }
.k-bd__main { min-width: 0; }
.k-bd__tabs { display: none; }

/* ---------- Page heading ---------- */
.k-bd .k-bd__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.k-bd .k-bd__head .k-eyebrow { margin-bottom: 10px; }
.k-bd .k-bd__title {
  font-family: var(--kati-display) !important; font-weight: 500 !important;
  font-size: clamp(34px, 4.6vw, 52px) !important; line-height: 1.02 !important; letter-spacing: -.015em;
  color: var(--kati-ink); margin: 0;
}
.k-bd .k-bd__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 62ch; margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--kati-ink-2); }
.k-bd .k-bd__head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.k-bd .k-bd__flash { margin-bottom: 18px; }

/* ---------- Building blocks ---------- */
.k-bd .k-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.k-bd .k-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.k-bd .k-card { min-width: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--k-radius-lg); background: var(--kati-surface); border: 1px solid var(--kati-card-line); box-shadow: var(--kati-shadow); }
.k-bd .k-card + .k-cols, .k-bd .k-cols + .k-card { margin-top: 20px; }
.k-bd .k-card--tint { background: var(--kati-tint-soft); border-color: var(--kati-tint-line); box-shadow: none; margin-bottom: 20px; }
.k-bd .k-card--narrow { max-width: 680px; }
.k-bd .k-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.k-bd .k-card__title { margin: 0 0 14px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--kati-ink); }
.k-bd .k-card__head .k-card__title { margin: 0; }
.k-bd .k-card__head .k-link { font-size: 14px; }
.k-bd .k-card__text { margin: -4px 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--kati-ink-2); }
.k-bd .k-card__cta { margin-top: 16px; }

/* only inside the k- components: legacy vendor pages inside .k-bd keep Bootstrap's paragraph spacing */
.k-bd :where(.k-bd__head, .k-card, .k-next, .k-appt, .k-row, .k-empty, .k-note, .k-stat, .k-tile) p { margin: 0; }
.k-bd .k-link--danger { color: var(--kati-danger) !important; cursor: pointer; }

/* avatars and initials */
.k-ava {
  width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kati-sand); color: var(--kati-ink-2); font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.k-ava i { font-size: 18px; color: var(--kati-icon); }
.k-ava--sm { width: 40px; height: 40px; font-size: 13px; }
.k-ava--lg { width: 72px; height: 72px; font-size: 22px; }
.k-ava--lg i { font-size: 24px; }

/* small buttons and danger buttons (the site layer has --sm and --lg) */
.k-bd .k-btn--xs, .k-join .k-btn--xs { height: 36px; padding: 0 14px; gap: 7px; font-size: 13.5px; }
.k-bd .k-btn--xs i { font-size: 14px; }
.k-bd .k-btn--danger { --k-btn-bg: transparent; --k-btn-fg: var(--kati-danger); --k-btn-line: color-mix(in srgb, var(--kati-danger) 35%, transparent); }
.k-bd .k-btn--danger:hover { background: color-mix(in srgb, var(--kati-danger) 8%, var(--kati-surface)); color: var(--kati-danger) !important; box-shadow: none; }
.k-bd .k-btn--danger-solid { --k-btn-bg: var(--kati-danger); --k-btn-fg: var(--kati-surface); }
.k-bd .k-btn--danger-solid:hover { background: color-mix(in srgb, var(--kati-danger) 85%, var(--kati-ink)); color: var(--kati-surface) !important; }
.k-bd .k-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.k-bd .k-btn:disabled:hover { background: var(--k-btn-bg); color: var(--k-btn-fg) !important; }

/* tags */
.k-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  background: var(--kati-sand); color: var(--kati-ink-2); font-size: 12.5px; font-weight: 500; line-height: 1;
}
.k-tag i { font-size: 13px; }
.k-tag--home { background: var(--kati-tint); color: var(--kati-on-tint); }
.k-tag--ok { background: color-mix(in srgb, var(--kati-success) 14%, var(--kati-surface)); color: color-mix(in srgb, var(--kati-success) 75%, var(--kati-ink)); }
.k-tag--warn { background: color-mix(in srgb, var(--kati-warning) 18%, var(--kati-surface)); color: color-mix(in srgb, var(--kati-warning) 55%, var(--kati-ink)); }
.k-tag--off { background: color-mix(in srgb, var(--kati-danger) 10%, var(--kati-surface)); color: color-mix(in srgb, var(--kati-danger) 75%, var(--kati-ink)); }

/* notes and flash messages */
.k-note {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--kati-tint-soft); border: 1px solid var(--kati-tint-line); color: var(--kati-ink); font-size: 14.5px; line-height: 1.5;
}
.k-note > i { font-size: 18px; line-height: 1.25; color: var(--kati-icon); }
.k-note > div { flex: 1; min-width: 200px; }
.k-note a { color: var(--kati-accent-text); font-weight: 600; }
.k-note--ok { background: color-mix(in srgb, var(--kati-success) 8%, var(--kati-surface)); border-color: color-mix(in srgb, var(--kati-success) 28%, transparent); }
.k-note--ok > i { color: var(--kati-success); }
.k-note--warn { background: color-mix(in srgb, var(--kati-warning) 10%, var(--kati-surface)); border-color: color-mix(in srgb, var(--kati-warning) 35%, transparent); }
.k-note--warn > i { color: color-mix(in srgb, var(--kati-warning) 70%, var(--kati-ink)); }
/* errors read in red, like the booking page's alert */
.k-note--danger { background: color-mix(in srgb, var(--kati-danger) 7%, var(--kati-surface)); border-color: color-mix(in srgb, var(--kati-danger) 28%, transparent); color: color-mix(in srgb, var(--kati-danger) 85%, var(--kati-ink)); }
.k-note--danger > i { color: var(--kati-danger); }
.k-note__actions { display: flex; gap: 8px; }
.k-note__actions form { margin: 0; }
.k-bd .k-todo { margin: 6px 0 0; padding-left: 18px; }
.k-bd .k-todo li { margin: 2px 0; }

/* empty states */
.k-bd .k-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px; text-align: center; border-radius: var(--k-radius-md); border: 1px dashed var(--kati-line-strong); color: var(--kati-ink-2); font-size: 14.5px; line-height: 1.55; }
.k-bd .k-empty i { font-size: 28px; color: var(--kati-icon); }
.k-bd .k-empty p { max-width: 46ch; }
.k-bd .k-empty strong { color: var(--kati-ink); }
.k-bd .k-empty form { margin: 0; }
.k-bd .k-empty--lead { padding: clamp(40px, 6vw, 72px) 24px; background: var(--kati-surface); }

/* rows: workplaces, time off, notifications, services */
.k-bd .k-rows { display: flex; flex-direction: column; }
.k-bd .k-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--kati-line); }
.k-bd .k-row:first-child { border-top: 0; padding-top: 2px; }
.k-bd .k-row:last-child { padding-bottom: 2px; }
.k-bd .k-row__main { flex: 1; min-width: 0; }
.k-bd .k-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--kati-ink); }
.k-bd .k-row__sub { margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--kati-ink-2); }
.k-bd .k-row__sub .k-tag { margin-right: 4px; }
.k-bd .k-row__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.k-bd .k-row__actions form, .k-bd .k-row form { margin: 0; }
.k-bd .k-row__time { flex: none; font-size: 12.5px; color: var(--kati-ink-3); }
.k-bd .k-row.is-new .k-row__title::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kati-primary); }
.k-bd .k-row .k-icon-btn { width: 40px; height: 40px; color: var(--kati-ink-2); }
/* a service that opens into its edit form */
.k-bd .k-row--edit { display: block; }
.k-bd .k-row--edit > summary { display: flex; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.k-bd .k-row--edit > summary::-webkit-details-marker { display: none; }
.k-bd .k-row--edit > summary:focus-visible { outline: none; box-shadow: var(--kati-ring); border-radius: 12px; }
.k-bd .k-row__chev { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--kati-ink-2); background: var(--kati-sand); }
.k-bd .k-row--edit[open] .k-row__chev { background: var(--kati-tint); color: var(--kati-on-tint); }
.k-bd .k-row--edit > .k-form { margin-top: 16px; padding: 16px; border-radius: var(--k-radius-md); background: var(--kati-surface-alt); }
.k-bd .k-row--edit .k-row__delete { margin-top: 10px; }
.k-bd .k-row--edit.is-off .k-row__title { color: var(--kati-ink-2); }

/* a calendar date tile */
.k-bd .k-date {
  width: 48px; height: 52px; flex: none; border-radius: 14px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--kati-sand); color: var(--kati-ink); font-size: 19px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.k-bd .k-date small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--kati-ink-2); }

/* ---------- Today ---------- */
.k-bd .k-next {
  display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--k-radius-xl);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--kati-deep-accent) 18%, transparent), transparent 55%), var(--kati-deep);
  color: var(--kati-on-deep); box-shadow: var(--kati-shadow-lg);
}
.k-bd .k-next__label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--kati-deep-accent); }
.k-bd .k-next__time { font-family: var(--kati-display); font-size: clamp(44px, 6vw, 64px); font-weight: 500; line-height: .95; letter-spacing: -.01em; color: var(--kati-on-deep); }
.k-bd .k-next__who { font-size: 19px; font-weight: 600; color: var(--kati-on-deep); }
.k-bd .k-next__meta { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--kati-on-deep-muted); }
.k-bd .k-next__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.k-bd .k-next__actions:empty { display: none; }

.k-bd .k-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.k-bd .k-stat { padding: 16px 18px; border-radius: 18px; background: var(--kati-surface); border: 1px solid var(--kati-card-line); }
.k-bd .k-stat strong { display: block; font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--kati-ink); overflow-wrap: anywhere; }
.k-bd .k-stat span { display: block; margin-top: 2px; font-size: 13px; color: var(--kati-ink-2); }

/* six numbers in a row on the shop dashboard */
.k-bd .k-stats--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 20px; }
.k-bd .k-stat__star { margin-left: 5px; font-size: 18px; color: var(--kati-rating); vertical-align: 2px; }

/* "get your shop ready" checklist */
.k-bd .k-card--tint + .k-stats, .k-bd .k-card--tint + .k-cols { margin-top: 0; }
.k-bd .k-steps-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.k-bd .k-steps-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--kati-surface); border: 1px solid var(--kati-line); }
.k-bd .k-steps-list li > div { flex: 1; min-width: 0; }
.k-bd .k-steps-list strong { display: block; font-size: 15px; font-weight: 600; color: var(--kati-ink); }
.k-bd .k-steps-list small { display: block; font-size: 13px; color: var(--kati-ink-2); }
.k-bd .k-steps-list__mark { width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--kati-sand); color: var(--kati-ink-3); font-size: 15px; }
.k-bd .k-steps-list li.is-done .k-steps-list__mark { background: color-mix(in srgb, var(--kati-success) 16%, var(--kati-surface)); color: var(--kati-success); }
.k-bd .k-steps-list li.is-done strong { color: var(--kati-ink-2); }

/* chart card */
.k-bd .k-card__note { font-size: 13px; color: var(--kati-ink-2); }
.k-bd .k-chart { min-height: 220px; margin: 0 -8px -8px; }

/* a team member's settings: small panels side by side */
.k-bd .k-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.k-bd .k-panel { display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: var(--k-radius-md); background: var(--kati-surface-alt); }
.k-bd .k-panel .k-form { gap: 12px; }
.k-bd .k-panel--row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.k-bd .k-panel__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--kati-ink); }
.k-bd .k-panel__title i { color: var(--kati-icon); }
.k-bd .k-row--edit > .k-panels { margin-top: 16px; }

/* search and "go to a day" in a page heading */
.k-bd .k-search-box { position: relative; width: min(320px, 100%); margin: 0; }
.k-bd .k-search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--kati-icon); }
.k-bd .k-search-box input, .k-bd .k-datejump input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--kati-line-strong);
  background: var(--kati-surface); color: var(--kati-ink); font: inherit; font-size: 14.5px;
}
.k-bd .k-datejump { margin: 0; }
.k-bd .k-datejump input { padding: 0 14px; }
.k-bd .k-search-box input:focus, .k-bd .k-datejump input:focus { outline: none; border-color: var(--kati-primary); box-shadow: var(--kati-ring); }
.k-bd .k-row__sub strong { font-weight: 600; color: var(--kati-ink); }

/* ---------- Bookings ---------- */
.k-bd .k-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--kati-sand); }
.k-bd .k-seg a { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--kati-ink-2); text-decoration: none; }
.k-bd .k-seg a.is-on { background: var(--kati-surface); color: var(--kati-ink); box-shadow: 0 2px 8px color-mix(in srgb, var(--kati-shadow-tint) 12%, transparent); }
.k-bd .k-seg a:focus-visible { outline: none; box-shadow: var(--kati-ring); }
.k-bd .k-chips { display: flex; gap: 8px; margin: -6px 0 20px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.k-bd .k-chips::-webkit-scrollbar { display: none; }
.k-bd .k-chips a {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--kati-surface); border: 1px solid var(--kati-line-strong); font-size: 14px; font-weight: 500; color: var(--kati-ink); text-decoration: none;
}
.k-bd .k-chips a.is-on { background: var(--kati-primary); border-color: var(--kati-primary); color: var(--kati-on-primary); }
.k-bd .k-day-group + .k-day-group { margin-top: 26px; }
.k-bd .k-day-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--kati-ink); }
.k-bd .k-day-head span { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--kati-ink-3); }
.k-bd .k-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; font-size: 14px; color: var(--kati-ink-2); }

/* sized by its column, not the screen: the Today card is narrow even on a desktop */
.k-bd .k-appts { display: flex; flex-direction: column; gap: 10px; container-type: inline-size; }
.k-bd .k-appt {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 20px; background: var(--kati-surface); border: 1px solid var(--kati-card-line);
}
.k-bd .k-card .k-appt { background: var(--kati-surface-alt); border-color: transparent; }
.k-bd .k-appt.is-closed { opacity: .72; }
.k-bd .k-appt.is-overdue { border-color: color-mix(in srgb, var(--kati-warning) 45%, transparent); }
.k-bd .k-appt__time strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--kati-ink); }
.k-bd .k-appt__time strong small { margin-left: 3px; font-size: 12px; font-weight: 600; color: var(--kati-ink-2); }
.k-bd .k-appt__time span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--kati-ink-3); }
.k-bd .k-appt__who { font-size: 16px; font-weight: 600; color: var(--kati-ink); }
.k-bd .k-appt__what { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--kati-ink-2); }
.k-bd .k-appt__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.k-bd .k-appt__visit { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--kati-surface); border: 1px solid var(--kati-line); font-size: 14px; line-height: 1.45; color: var(--kati-ink); }
.k-bd .k-appt__visit p, .k-bd .k-appt__hint { display: flex; gap: 8px; }
.k-bd .k-appt__visit i, .k-bd .k-appt__hint i { color: var(--kati-icon); }
.k-bd .k-appt__hint { margin-top: 6px; font-size: 13.5px; color: var(--kati-ink-2); }
.k-bd .k-appt__contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.k-bd .k-appt__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 8px; }
.k-bd .k-appt__actions form { margin: 0; }
/* a narrow list: the buttons go under the details instead of squeezing them */
@container (max-width: 640px) {
  .k-bd .k-appt { grid-template-columns: 88px minmax(0, 1fr); }
  .k-bd .k-appt__actions { grid-column: 2; justify-content: flex-start; }
  .k-bd .k-appt .k-more__panel { margin-left: 0; }
}
/* narrower still (phones): the time becomes one line above the details */
@container (max-width: 460px) {
  .k-bd .k-appt { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .k-bd .k-appt__time { display: flex; align-items: baseline; gap: 6px; }
  .k-bd .k-appt__time strong { font-size: 19px; }
  .k-bd .k-appt__time span { margin: 0; font-size: 14px; color: var(--kati-ink-2); }
  .k-bd .k-appt__time span::before { content: "– "; }
  .k-bd .k-appt__actions { grid-column: 1; }
  .k-bd .k-appt .k-more__panel { width: 100%; }
}

/* "Cancel" opens a small form in place */
.k-bd .k-more > summary { list-style: none; }
.k-bd .k-more > summary::-webkit-details-marker { display: none; }
.k-bd .k-more[open] > summary { background: color-mix(in srgb, var(--kati-danger) 8%, var(--kati-surface)); }
.k-bd .k-appt__actions .k-more[open] { flex-basis: 100%; }
.k-bd .k-more__panel { display: grid; gap: 10px; width: min(320px, 100%); margin-top: 10px; margin-left: auto; padding: 14px; border-radius: 16px; background: var(--kati-surface); border: 1px solid var(--kati-line-strong); box-shadow: var(--kati-shadow); }
.k-bd .k-more--block .k-more__panel { width: 100%; margin-left: 0; box-shadow: none; }
.k-bd .k-choice-list { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.k-bd .k-choice-list legend { float: none; width: auto; margin: 0 0 4px; padding: 0; font-size: 14px; font-weight: 500; color: var(--kati-ink); }
.k-bd .k-more--block > summary { display: inline-flex; }

/* ---------- Forms (dashboard and sign-up) ---------- */
.k-bd .k-form, .k-join .k-form { display: grid; gap: 16px; }
.k-bd .k-form__row, .k-join .k-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.k-bd .k-form__row[hidden], .k-join [hidden] { display: none !important; }
.k-bd .k-form__actions { display: flex; gap: 10px; }
.k-bd .k-form__hint, .k-join .k-form__hint { font-size: 13px; line-height: 1.5; color: var(--kati-ink-2); }
.k-bd .k-form .k-btn, .k-join .k-form .k-btn { justify-self: start; }
.k-in { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.k-in > span { font-size: 14px; font-weight: 500; color: var(--kati-ink); }
.k-in > span small { margin-left: 4px; font-weight: 400; color: var(--kati-ink-3); }
.k-in input:not([type="checkbox"]):not([type="radio"]), .k-in select, .k-in textarea, .k-hour input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; resize: vertical;
  background: var(--kati-surface); border: 1px solid var(--kati-line-strong); color: var(--kati-ink);
  font: inherit; font-size: 15px; line-height: 1.45; transition: border-color .2s, box-shadow .2s;
}
.k-in input[type="file"] { padding: 10px; font-size: 14px; }
.k-in input::placeholder, .k-in textarea::placeholder { color: var(--kati-ink-3); }
.k-in input:focus, .k-in select:focus, .k-in textarea:focus, .k-hour input:focus { outline: none; border-color: var(--kati-primary); box-shadow: var(--kati-ring); }
.k-in input:disabled { opacity: .55; }
.k-in .k-err { font-size: 13px; color: var(--kati-danger); }
.k-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; color: var(--kati-ink); cursor: pointer; }
.k-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--kati-primary); }
.k-bd .k-photo { display: flex; align-items: center; gap: 16px; }
.k-bd .k-photo .k-in { flex: 1; }

/* working hours */
.k-bd .k-hours { display: flex; flex-direction: column; }
.k-bd .k-hour { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-top: 1px solid var(--kati-line); }
.k-bd .k-hour:first-child { border-top: 0; }
.k-bd .k-hour__times { display: flex; align-items: center; gap: 10px; }
.k-bd .k-hour__times[hidden], .k-bd .k-hour__off[hidden] { display: none; }
.k-bd .k-hour__times input { max-width: 150px; }
.k-bd .k-hour__off { font-size: 14px; color: var(--kati-ink-3); }

/* home-visit business tabs */
.k-bd .k-subnav { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--kati-line); overflow-x: auto; scrollbar-width: none; }
.k-bd .k-subnav a { flex: none; padding: 10px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--kati-ink-2); text-decoration: none; }
.k-bd .k-subnav a:hover { color: var(--kati-ink); }
.k-bd .k-subnav a.is-on { color: var(--kati-ink); border-color: var(--kati-primary); }

/* ---------- Barber sign-up ---------- */
.k-join { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 8vw, 104px); }
.k-join__card {
  max-width: 720px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); border-radius: var(--k-radius-xl);
  background: var(--kati-surface); border: 1px solid var(--kati-card-line); box-shadow: var(--kati-shadow-lg);
}
.k-join__title { font-family: var(--kati-display) !important; font-weight: 500 !important; font-size: clamp(36px, 5vw, 54px) !important; line-height: 1 !important; letter-spacing: -.015em; color: var(--kati-ink); margin: 0 0 12px; }
.k-join__lead { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: var(--kati-ink-2); }
.k-join__section { margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--kati-line); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--kati-ink-2); }
.k-join__foot { margin: 22px 0 0; text-align: center; font-size: 14.5px; color: var(--kati-ink-2); }
.k-join__foot a { color: var(--kati-accent-text); font-weight: 600; }
.k-join .k-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.k-join .k-choice { position: relative; margin: 0; cursor: pointer; }
.k-join .k-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.k-join .k-choice__face { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: 18px; border: 1.5px solid var(--kati-line-strong); background: var(--kati-surface); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.k-join .k-choice__face i { font-size: 22px; color: var(--kati-icon); }
.k-join .k-choice__face strong { font-size: 16px; font-weight: 600; color: var(--kati-ink); }
.k-join .k-choice__face small { font-size: 13.5px; line-height: 1.45; color: var(--kati-ink-2); }
.k-join .k-choice:hover .k-choice__face { background: var(--kati-tint-soft); }
.k-join .k-choice input:checked + .k-choice__face { border-color: var(--kati-primary); background: var(--kati-tint-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kati-primary) 18%, transparent); }
.k-join .k-choice input:focus-visible + .k-choice__face { box-shadow: var(--kati-ring); }
.k-join .k-errors { margin-bottom: 20px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1199.98px) {
  .k-bd .k-cols { grid-template-columns: minmax(0, 1fr); }
  .k-bd .k-stats--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .k-bd .k-stats--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-bd .k-bd__head-actions { width: 100%; }
}
@media (max-width: 991.98px) {
  .k-bd { display: block; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .k-bd__side { display: none; }
  .k-bd__tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--kati-surface-warm) 94%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--kati-line);
  }
  .k-bd__tabs a, .k-bd__tabs button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; max-width: 110px;
    border-radius: 14px; font-size: 11.5px; font-weight: 500; color: var(--kati-ink-2); text-decoration: none;
  }
  .k-bd__tabs button { margin: 0; padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
  .k-bd__tabs a i, .k-bd__tabs button i { font-size: 21px; line-height: 1; }
  .k-bd__tabs a.is-active { color: var(--kati-ink); }
  .k-bd__tabs a.is-active i { color: var(--kati-accent-text); }
  .k-bd__tabs a:focus-visible, .k-bd__tabs button:focus-visible { outline: none; box-shadow: var(--kati-ring); }
  /* the site footer isn't on dashboard pages; keep the page clear of the tab bar */
  html:has(.k-bd__tabs) { scroll-padding-bottom: 96px; }
}
@media (max-width: 575.98px) {
  .k-bd .k-bd__head { align-items: flex-start; }
  .k-bd .k-more__panel { margin-left: 0; width: 100%; }
  .k-bd .k-form__row, .k-join .k-form__row, .k-join .k-choices { grid-template-columns: minmax(0, 1fr); }
  .k-bd .k-hour { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .k-bd .k-row { flex-wrap: wrap; }
  .k-bd .k-row__actions { width: 100%; justify-content: flex-start; padding-left: 54px; }
  .k-bd .k-stat strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-bd *, .k-join * { transition: none !important; }
}
