html[data-bla93-simple-builder-preview="1"],
html[data-bla93-simple-builder-preview="1"] body {
  min-height: 100%;
  margin: 0;
  background: #eef3f8;
}

body.bla93-simple-preview-body * {
  box-sizing: border-box;
  font-family: Manrope, Inter, sans-serif;
}

body.bla93-simple-preview-body {
  overflow: hidden;
}

#admin-view.bla93-simple-shell {
  --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-avatar-size: 22px;
  --bla89c-blue: #0f6bff;
  --bla89c-text: #0f172a;
  --bla89c-muted: #64748b;
  --bla89c-surface: #ffffff;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #142033;
  background: linear-gradient(135deg, #eef3f8 0%, #f8fafc 48%, #e6edf5 100%);
}

.bla93-simple-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

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

.bla93-simple-brand img {
  width: 108px;
  height: auto;
}

.bla93-simple-brand strong {
  max-width: 260px;
  overflow: hidden;
  color: #1b2a41;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bla93-simple-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 520px;
  padding: 10px 14px;
  border: 1px solid #d8e2ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #6c7a8c;
  font-size: 12px;
}

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

.bla93-simple-top-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.bla93-simple-top-actions button {
  width: 38px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #edf3fa;
  color: #25364c;
  cursor: default;
  font-weight: 700;
}

.bla93-simple-calendar-fixture {
  min-height: calc(100vh - 72px);
  padding: 24px calc(var(--bla89c-drawer-width) + 72px) 24px 24px;
}

.bla93-simple-calendar-head,
.bla93-simple-calendar-grid {
  max-width: 760px;
}

.bla93-simple-calendar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: #172236;
}

.bla93-simple-calendar-head strong {
  font-size: 18px;
}

.bla93-simple-calendar-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.bla93-simple-calendar-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.bla93-simple-calendar-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 78px;
  padding: 0 18px;
  border-bottom: 1px solid #eef3f8;
  color: #64748b;
  font-size: 12px;
}

.bla93-simple-calendar-row:last-child {
  border-bottom: 0;
}

.bla93-simple-calendar-row em {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0f6bff;
  font-style: normal;
  font-weight: 800;
}

#admin-view .appointments-context-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.08);
}

#admin-view .appointments-context-drawer {
  position: fixed;
  top: var(--bla89c-drawer-top);
  right: var(--bla89c-drawer-right);
  width: min(var(--bla89c-drawer-width), calc(100vw - 32px));
  max-height: var(--bla89c-drawer-max-height);
  z-index: 90;
}

#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-filter-rail-title {
  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-filter-rail-copy {
  display: none;
}

#admin-view .appointments-context-drawer-close,
#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: default;
}

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

#admin-view .bla89c-unified-drawer {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: calc(var(--bla89c-drawer-max-height) - var(--bla89c-drawer-header-height));
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  padding: 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;
  width: 100%;
  max-width: none;
  min-height: 0;
  min-width: 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;
  width: 100%;
  min-width: 0;
  align-content: start;
  justify-content: stretch;
  gap: 6px;
  padding: 0;
}

#admin-view .bla89c-field-block span,
#admin-view .bla93-simple-section-title {
  color: #334155;
  font-size: var(--bla89c-label-size);
  font-weight: 800;
}

#admin-view .bla89c-control,
#admin-view .bla89c-selected-row {
  width: 100%;
  min-width: 0;
  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 {
  padding: 0 10px;
}

#admin-view .bla89c-control::placeholder,
#admin-view .bla89c-row-input::placeholder,
#admin-view textarea::placeholder {
  color: #94a3b8;
}

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

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

#admin-view .bla89c-chevron {
  flex: 0 0 auto;
  color: #94a3b8;
  font-weight: 800;
}

#admin-view .bla89c-row-subcopy {
  color: var(--bla89c-muted);
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
}

#admin-view .bla89c-add-service,
#admin-view .bla89c-inline-link {
  justify-self: start;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bla89c-blue);
  font-size: 11px;
  font-weight: 800;
  cursor: default;
}

#admin-view .bla93-simple-block-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 26px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#admin-view .bla93-simple-block-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}

#admin-view .bla93-simple-section,
#admin-view .bla93-simple-client-list,
#admin-view .bla93-simple-services {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  gap: var(--bla89c-control-gap);
}

#admin-view .bla93-simple-section-head,
#admin-view .bla93-simple-client-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

#admin-view .bla93-simple-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

#admin-view .bla93-simple-line-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(100px, 1.2fr) minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 3px;
}

#admin-view .bla93-simple-when-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bla89c-control-gap);
}

#admin-view [data-bla93-state="block-time"] .bla93-simple-when-row {
  grid-template-columns: minmax(112px, 1.25fr) minmax(82px, 0.9fr) minmax(82px, 0.85fr);
}

#admin-view .bla93-simple-calculated,
#admin-view .bla93-simple-client-total {
  margin: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

#admin-view .bla93-simple-client-row {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--bla89c-divider);
  border-radius: var(--bla89c-input-radius);
  background: #ffffff;
}

#admin-view .bla93-simple-client-head strong {
  color: var(--bla89c-text);
  font-size: 12px;
  font-weight: 800;
}

#admin-view .bla93-simple-service-row {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 5px;
}

#admin-view .bla93-simple-extra-service {
  padding-top: 1px;
}

#admin-view .bla93-simple-client-control,
#admin-view .bla93-simple-service-control {
  padding-right: 3px;
  padding-left: 3px;
}

#admin-view .bla93-simple-client-control .bla89c-row-input,
#admin-view .bla93-simple-service-control .bla89c-row-input,
#admin-view .bla93-simple-barber-control .bla89c-row-input {
  padding-right: 0 !important;
  padding-left: 0 !important;
  font-size: 12px !important;
}

#admin-view .bla93-simple-client-spacer,
#admin-view .bla93-simple-action-spacer {
  min-width: 0;
}

#admin-view .bla93-simple-extra-service .bla93-simple-action-spacer:nth-last-child(2) {
  display: block;
  width: 56px;
}

#admin-view .bla93-simple-extra-service .bla93-simple-action-spacer:last-child {
  display: block;
  width: 22px;
}

#admin-view .bla93-simple-add-client {
  justify-self: start;
}

#admin-view .bla93-simple-add-service {
  min-width: 44px;
  min-height: 28px;
  padding: 0 5px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  line-height: 1;
  font-size: 10px;
  white-space: nowrap;
}

#admin-view .bla93-simple-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  min-height: 28px;
  border: 1px solid var(--bla89c-divider);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

#admin-view .bla93-simple-search-results,
#admin-view .bla93-simple-new-client-panel,
#admin-view .bla93-simple-errors,
#admin-view .bla93-simple-confirm {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--bla89c-divider);
  border-radius: var(--bla89c-input-radius);
  background: #f8fafc;
}

#admin-view .bla93-simple-search-results button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #172236;
  text-align: left;
  font-weight: 800;
}

#admin-view .bla93-simple-search-results span {
  display: block;
  color: #6c7a8c;
  font-size: 11px;
}

#admin-view .bla93-simple-errors {
  border-color: #f5c2c7;
  background: #fff5f6;
  color: #9f2434;
}

#admin-view .bla93-simple-errors p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

#admin-view .bla93-simple-confirm {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
}

#admin-view .bla93-simple-confirm p {
  margin: 0;
  color: #7c2d12;
  font-size: 11px;
  font-weight: 700;
}

#admin-view .bla93-simple-confirm-actions,
#admin-view .bla93-simple-new-client-panel div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#admin-view .bla89c-unified-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 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 .bla89c-btn {
  min-height: var(--bla89c-button-height);
  border-radius: var(--bla89c-button-radius);
  font-size: 11px;
  font-weight: 800;
  cursor: default;
}

#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;
}

@media (max-width: 900px) {
  .bla93-simple-topbar {
    min-height: 64px;
    padding: 0 16px;
  }

  .bla93-simple-calendar-fixture {
    padding: 16px;
  }

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

  #admin-view .appointments-context-drawer-card {
    max-height: calc(100vh - 32px);
  }

  #admin-view .bla89c-unified-drawer {
    max-height: calc(100vh - 32px - var(--bla89c-drawer-header-height));
  }
}

@media (max-width: 520px) {
  #admin-view.bla93-simple-shell {
    --bla89c-drawer-padding: 12px;
    --bla89c-section-gap: 9px;
    --bla89c-control-gap: 6px;
    --bla89c-drawer-header-height: 48px;
  }

  .bla93-simple-topbar {
    padding: 0 12px;
  }

  .bla93-simple-brand img {
    width: 92px;
  }

  .bla93-simple-brand strong,
  .bla93-simple-search {
    display: none;
  }

  .bla93-simple-calendar-fixture {
    display: none;
  }

  #admin-view .appointments-context-drawer {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  #admin-view .appointments-context-drawer-card {
    max-height: calc(100vh - 20px);
  }

  #admin-view .appointments-context-drawer-head {
    min-height: var(--bla89c-drawer-header-height);
    padding: 10px var(--bla89c-drawer-padding);
  }

  #admin-view .bla89c-unified-body {
    padding: 10px var(--bla89c-drawer-padding);
  }

  #admin-view .bla93-simple-client-row {
    gap: 6px;
    padding: 7px;
  }

  #admin-view .bla93-simple-line-grid {
    grid-template-columns: 1fr auto auto;
    gap: 6px;
  }

  #admin-view .bla93-simple-client-control,
  #admin-view .bla93-simple-service-control {
    grid-column: 1 / -1;
  }

  #admin-view .bla93-simple-client-control::before {
    content: "Client";
  }

  #admin-view .bla93-simple-service-control::before {
    content: "Service";
  }

  #admin-view .bla93-simple-client-control::before,
  #admin-view .bla93-simple-service-control::before {
    flex: 0 0 52px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  #admin-view .bla93-simple-client-spacer,
  #admin-view .bla93-simple-action-spacer {
    display: none;
  }

  #admin-view .bla93-simple-extra-service {
    padding-top: 0;
  }

  #admin-view .bla89c-unified-footer {
    padding: 10px var(--bla89c-drawer-padding);
  }

  #admin-view .bla89c-unified-drawer {
    max-height: calc(100vh - 20px - var(--bla89c-drawer-header-height));
  }

  #admin-view [data-bla93-state="block-time"] .bla93-simple-when-row {
    grid-template-columns: 1fr 1fr;
  }
}
