html[data-bla93-family-booking-preview="1"],
html[data-bla93-family-booking-preview="1"] body {
  min-height: 100%;
  margin: 0;
  background: #f4f7fb;
  color: #0f172a;
  font-family: "Manrope", sans-serif;
}

body.bla93-preview-body *,
body.bla93-preview-body *::before,
body.bla93-preview-body *::after {
  box-sizing: border-box;
}

.bla93-shell {
  min-height: 100vh;
  background: #f4f7fb;
}

.bla93-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 10px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.bla93-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.bla93-brand img {
  display: block;
  width: 94px;
  height: auto;
}

.bla93-brand span {
  width: 1px;
  height: 28px;
  background: #dbe4ef;
}

.bla93-brand strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.bla93-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #f8fafc;
}

.bla93-search span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bla93-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
}

.bla93-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bla93-top-actions button {
  min-width: 38px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
}

.bla93-workspace {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 62px);
}

.bla93-sidebar {
  position: sticky;
  top: 62px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 62px);
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
}

.bla93-nav-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
  padding: 18px 12px;
}

.bla93-nav-group {
  display: grid;
  gap: 4px;
}

.bla93-nav-heading {
  padding: 5px 10px 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bla93-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.bla93-nav-item.is-active {
  background: #eff6ff;
  color: #2563eb;
  box-shadow: inset 3px 0 0 #2563eb;
}

.bla93-nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.bla93-sidebar-footer {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
}

.bla93-sidebar-footer button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  font-weight: 800;
}

.bla93-canvas {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 340px);
  gap: 24px;
  min-width: 0;
  padding: 24px;
}

.bla93-calendar-board {
  align-self: start;
  min-height: 520px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  padding: 18px;
}

.bla93-calendar-board span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bla93-calendar-board strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.bla93-calendar-board p {
  max-width: 520px;
  color: #64748b;
  line-height: 1.45;
}

#admin-view {
  --bla89c-drawer-width: 340px;
  --bla89c-drawer-max-height: calc(100vh - 48px);
  --bla89c-drawer-top: 24px;
  --bla89c-drawer-right: 24px;
  --bla89c-drawer-radius: 18px;
  --bla89c-drawer-padding: 16px;
  --bla89c-drawer-header-height: 54px;
  --bla89c-drawer-footer-height: 58px;
  --bla89c-title-size: 18px;
  --bla89c-title-weight: 800;
  --bla89c-body-size: 12px;
  --bla89c-label-size: 11px;
  --bla89c-line-height: 1.35;
  --bla89c-divider: #e5e7eb;
  --bla89c-section-gap: 12px;
  --bla89c-control-gap: 8px;
  --bla89c-input-height: 34px;
  --bla89c-input-radius: 8px;
  --bla89c-button-height: 34px;
  --bla89c-button-radius: 8px;
  --bla89c-attendee-row-height: 58px;
  --bla89c-avatar-size: 22px;
  --bla89c-blue: #0f6bff;
  --bla89c-text: #0f172a;
  --bla89c-muted: #64748b;
  --bla89c-surface: #ffffff;
}

#admin-view .appointments-context-drawer {
  width: min(var(--bla89c-drawer-width), calc(100vw - 32px));
  max-height: var(--bla89c-drawer-max-height);
}

#admin-view .appointments-context-drawer-card {
  overflow: hidden;
  max-height: var(--bla89c-drawer-max-height);
  border: 1px solid var(--bla89c-divider);
  border-radius: var(--bla89c-drawer-radius);
  background: var(--bla89c-surface);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

#admin-view .appointments-context-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--bla89c-drawer-header-height);
  padding: 14px var(--bla89c-drawer-padding);
  border-bottom: 1px solid var(--bla89c-divider);
  background: #ffffff;
}

#admin-view .appointments-context-drawer-head h2 {
  margin: 0;
  color: var(--bla89c-text);
  font-size: var(--bla89c-title-size);
  font-weight: var(--bla89c-title-weight);
  letter-spacing: -0.02em;
}

#admin-view .appointments-context-drawer-head p {
  margin: 3px 0 0;
  color: var(--bla89c-muted);
  font-size: 11px;
  line-height: 1.25;
}

#admin-view .appointments-context-drawer-head .appointments-filter-rail-copy {
  display: none;
}

#admin-view .bla89c-icon-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 18px;
  cursor: pointer;
}

#admin-view .appointments-context-panel {
  padding: 0;
  overflow: hidden;
}

#admin-view .bla89c-unified-drawer {
  display: flex;
  flex-direction: column;
  max-height: calc(var(--bla89c-drawer-max-height) - var(--bla89c-drawer-header-height));
  min-height: 0;
  background: #ffffff;
  color: var(--bla89c-text);
  font-size: var(--bla89c-body-size);
  line-height: var(--bla89c-line-height);
}

#admin-view .bla89c-unified-body {
  display: flex;
  flex: 0 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--bla89c-section-gap);
  padding: var(--bla89c-drawer-padding);
  overflow-y: auto;
}

#admin-view .bla89c-field-block {
  display: grid;
  align-content: start;
  justify-content: stretch;
  gap: 6px;
  padding: 0;
}

#admin-view .bla89c-field-block label,
#admin-view .bla89c-label-action label {
  color: #334155;
  font-size: var(--bla89c-label-size);
  font-weight: 700;
}

#admin-view .bla89c-field-block label span {
  color: var(--bla89c-muted);
  font-weight: 500;
}

#admin-view .bla89c-label-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#admin-view .bla89c-label-action button,
#admin-view .bla89c-add-service {
  border: 0;
  background: transparent;
  color: var(--bla89c-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#admin-view .bla89c-control,
#admin-view .bla89c-selected-row {
  min-height: var(--bla89c-input-height);
  border: 1px solid var(--bla89c-divider);
  border-radius: var(--bla89c-input-radius);
  background: #ffffff;
  color: var(--bla89c-text);
  font-size: 12px;
}

#admin-view .bla89c-control {
  width: 100%;
  padding: 0 10px;
}

#admin-view .bla89c-when-row {
  display: grid;
  gap: var(--bla89c-control-gap);
}

#admin-view .bla89c-when-row-three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
}

#admin-view .bla89c-duration-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bla89c-input-height);
  padding: 0 9px;
  border: 1px solid var(--bla89c-divider);
  border-radius: var(--bla89c-input-radius);
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#admin-view .bla89c-selected-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 5px 9px;
}

#admin-view .bla89c-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--bla89c-avatar-size);
  width: var(--bla89c-avatar-size);
  height: var(--bla89c-avatar-size);
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 10px;
  font-weight: 800;
}

#admin-view .bla89c-avatar.is-warm {
  background: #fff7ed;
  color: #9a3412;
}

#admin-view .bla89c-avatar.is-family {
  background: #f3e8ff;
  color: #6d28d9;
}

#admin-view .bla89c-row-input,
#admin-view .bla89c-row-select,
#admin-view .bla89c-row-static {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--bla89c-text);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin-view .bla89c-row-select {
  width: 100%;
}

#admin-view .bla89c-chevron,
#admin-view .bla89c-service-price,
#admin-view .bla89c-service-duration {
  flex: 0 0 auto;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

#admin-view .bla89c-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

#admin-view .bla89c-row-subcopy {
  min-width: 0;
  overflow: hidden;
  color: var(--bla89c-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin-view .bla93-contact-row {
  display: grid;
  grid-template-columns: var(--bla89c-avatar-size) minmax(0, 1fr);
}

#admin-view .bla93-contact-meta {
  grid-column: 2;
  display: flex;
  min-width: 0;
  gap: 8px;
  color: var(--bla89c-muted);
  font-size: 11px;
}

#admin-view .bla93-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin-view .bla89c-family-participant-list,
#admin-view .bla93-new-client-panel {
  display: grid;
  gap: var(--bla89c-control-gap);
}

#admin-view .bla89c-family-participant-row {
  display: grid;
  grid-template-columns: var(--bla89c-avatar-size) minmax(0, 1fr);
  grid-template-areas:
    "index name"
    ". service"
    ". meta"
    ". override"
    ". actions";
  align-items: center;
  gap: 8px;
  min-height: var(--bla89c-attendee-row-height);
  padding: 5px 9px;
  border: 1px solid var(--bla89c-divider);
  border-radius: var(--bla89c-input-radius);
  background: #ffffff;
}

#admin-view .bla89c-family-person-index {
  display: inline-flex;
  grid-area: index;
  align-self: start;
  align-items: center;
  justify-content: center;
  width: var(--bla89c-avatar-size);
  height: var(--bla89c-avatar-size);
  margin-top: 2px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--bla89c-blue);
  font-size: 10px;
  font-weight: 800;
}

#admin-view .bla89c-family-participant-row .bla89c-row-input {
  grid-area: name;
  width: 100%;
}

#admin-view .bla89c-family-participant-row .bla89c-row-select {
  grid-area: service;
}

#admin-view .bla89c-family-participant-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

#admin-view .bla89c-family-participant-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--bla89c-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

#admin-view .bla89c-family-participant-meta .bla93-participant-helper {
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--bla89c-muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

#admin-view .bla93-participant-barber-override {
  grid-area: override;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  min-width: 0;
}

#admin-view .bla93-participant-barber-override .bla89c-btn {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

#admin-view .bla89c-family-participant-actions {
  grid-area: actions;
  position: relative;
  display: flex;
  gap: 4px;
  justify-content: flex-start;
}

#admin-view .bla89c-family-participant-actions button {
  min-height: 28px;
  border: 1px solid var(--bla89c-divider);
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
}

#admin-view .bla93-participant-options {
  min-width: 54px;
  padding: 0 9px;
}

#admin-view .bla93-participant-options-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 8;
  display: grid;
  gap: 3px;
  width: 132px;
  padding: 5px;
  border: 1px solid var(--bla89c-divider);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

#admin-view .bla93-participant-options-menu button {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--bla89c-text);
  text-align: left;
}

#admin-view .bla93-participant-options-menu button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

#admin-view .bla89c-notes {
  min-height: 52px;
  padding: 9px 10px;
  resize: vertical;
}

#admin-view .bla93-new-client-panel {
  grid-template-columns: 1fr;
}

#admin-view .bla93-new-client-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#admin-view .bla93-new-client-actions .bla89c-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
}

#admin-view .bla93-new-client-actions .bla89c-btn:focus-visible,
#admin-view .bla93-participant-options:focus-visible,
#admin-view .bla93-participant-options-menu button:focus-visible {
  outline: 2px solid rgba(15, 107, 255, 0.36);
  outline-offset: 2px;
}

#admin-view .bla93-convergence .bla89c-row-static,
#admin-view .bla93-type-switch-proof .bla89c-row-static {
  white-space: normal;
}

#admin-view .bla89c-unified-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  min-height: var(--bla89c-drawer-footer-height);
  padding: 12px var(--bla89c-drawer-padding);
  border-top: 1px solid var(--bla89c-divider);
  background: #ffffff;
}

#admin-view [data-bla89c-item-type="family-booking"] .bla89c-unified-footer {
  grid-template-columns: 1fr 1fr;
}

#admin-view .bla89c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bla89c-button-height);
  border-radius: var(--bla89c-button-radius);
  font-size: 11px;
  font-weight: 800;
}

#admin-view .bla89c-btn-ghost {
  border: 1px solid var(--bla89c-divider);
  background: #ffffff;
  color: #334155;
}

#admin-view .bla89c-btn-secondary {
  border: 1px solid var(--bla89c-divider);
  background: #f8fafc;
  color: #0f172a;
}

#admin-view .bla89c-btn-primary {
  border: 1px solid var(--bla89c-blue);
  background: var(--bla89c-blue);
  color: #ffffff;
}

@media (max-width: 900px) {
  .bla93-workspace {
    grid-template-columns: 1fr;
  }

  .bla93-sidebar {
    display: none;
  }

  .bla93-canvas {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .bla93-calendar-board {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .bla93-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 9px 12px;
  }

  .bla93-brand img {
    width: 82px;
  }

  .bla93-brand span,
  .bla93-search,
  .bla93-top-actions button:not(:last-child) {
    display: none;
  }

  .bla93-canvas {
    padding: 10px;
  }

  #admin-view {
    --bla89c-drawer-padding: 14px;
  }

  #admin-view .appointments-context-drawer {
    width: min(var(--bla89c-drawer-width), calc(100vw - 32px));
    margin: 0 auto;
  }
}
