@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@700&display=swap");

:root {
  --ink-strong: #171a1f;
  --ink-muted: #565d6d;
  --line: #dee1e6;
  --surface: #ffffff;
  --white: #ffffff;
  --soft: #f3f4f6;
  --soft-green: rgba(46, 121, 106, 0.15);
  --green: #2e796a;
  --red: #e53e3e;
  --panel: #f4fbf9;
  --shadow-1: 0 0 2px rgba(23, 26, 31, 0.08);
  --shadow-2: 0 1px 2.5px rgba(23, 26, 31, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fcfcfd !important;
  color: var(--ink-strong);
  font-family: "Inter", sans-serif;
}

/*
 * Flutter InAppWebView (embedded=true) runs the WebView with a transparent
 * backing, so the html/body root background is NOT composited as opaque and
 * the page shows through to black. Child element backgrounds still paint, so
 * we lay down a full-viewport opaque element layer behind the content instead
 * of relying on the root background.
 */
body.embedded-view::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #fcfcfd;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

body .page-footer,
body .web-footer,
body .footer,
body .sp-footer {
  display: none !important;
}

body.embedded-view .sp-user-wrap {
  display: none !important;
}

.web-header .btn-login,
.web-header .login-link,
.web-header a[href="/login"],
.web-header a[href*="login"],
.web-header a[href*="keycloak_auto_login"],
.web-header a[href*="cmd=login"] {
  display: none !important;
}

.sp-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  background: #ffffff;
  box-shadow: var(--shadow-1), var(--shadow-2);
}

.sp-topbar-inner,
.sp-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.sp-topbar-inner {
  min-height: 64px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sp-brand-group,
.sp-brand,
.sp-breadcrumbs,
.sp-topbar-actions,
.sp-user-btn {
  display: flex;
  align-items: center;
}

.sp-brand-group {
  gap: 24px;
  min-width: 0;
}

.sp-brand {
  gap: 14px;
  color: var(--ink-strong);
  text-decoration: none;
}

.sp-brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sp-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-brand-text {
  font-family: "Lora", serif;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
}

.sp-embedded-mobile-title {
  display: none;
  font-family: "Lora", serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink-strong);
}

.sp-breadcrumbs {
  gap: 14px;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
}

.sp-breadcrumbs a,
.sp-breadcrumbs span {
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}

.sp-breadcrumbs span:last-child {
  color: var(--ink-strong);
}

.sp-appointments-crumb-current {
  color: var(--ink-strong);
}

.sp-topbar-actions {
  gap: 18px;
  margin-left: auto;
}

.sp-topbar-actions--guest {
  flex: 0 0 auto;
}

.sp-topbar-search {
  position: relative;
  width: 255px;
  height: 39px;
  display: inline-flex;
  align-items: center;
}

.sp-topbar-search input {
  width: 100%;
  height: 100%;
  padding: 8px 18px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f7f7;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 22px;
  outline: none;
}

.sp-topbar-search input::placeholder {
  color: #9ca3af;
}

.sp-topbar-search-icon {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.sp-topbar-search-icon svg {
  width: 16px;
  height: 16px;
}

.sp-bell-btn {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.sp-bell-btn svg {
  width: 20px;
  height: 20px;
}

.sp-notification-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 168px;
  width: min(360px, calc(100vw - 32px));
  max-height: 420px;
  padding: 18px 0 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  z-index: 30;
}

.sp-notification-menu-head {
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sp-notification-menu-head h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.sp-notification-mark-read {
  border: 0;
  padding: 0;
  background: transparent;
  color: #b83141;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}

.sp-notification-menu-list {
  padding: 8px 0 0;
  max-height: 320px;
  overflow-y: auto;
}

.sp-notification-item {
  padding: 12px 18px;
  border-left: 3px solid transparent;
  display: grid;
  gap: 4px;
}

.sp-notification-item.is-unread {
  border-left-color: #b83141;
  background: rgba(252, 243, 244, 0.45);
}

.sp-notification-item + .sp-notification-item {
  border-top: 1px solid #f3f4f6;
}

.sp-notification-item-title {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sp-notification-item-copy {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 19px;
}

.sp-notification-item-time {
  color: #9ca3af;
  font-size: 12px;
  line-height: 18px;
}

.sp-notification-menu-empty {
  margin: 0;
  padding: 20px 18px 16px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-notification-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b83141;
  color: var(--white);
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
}

.sp-notification-badge[hidden] {
  display: none !important;
}

.sp-notification-badge.is-dot {
  top: -2px;
  right: -1px;
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
}

.sp-topbar-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.sp-user-wrap {
  position: relative;
}

.sp-user-btn {
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.sp-user-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.sp-user-nameplate {
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  color: var(--ink-strong);
}

.sp-user-role {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}

.sp-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9dde5;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 600;
}

.sp-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-user-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
  display: none;
}

.sp-user-wrap.open .sp-user-menu {
  display: block;
}

.sp-user-menu-name {
  margin: 0 0 8px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.sp-user-menu a,
.sp-login-link {
  color: var(--ink-strong);
  text-decoration: none;
}

.sp-user-menu a {
  display: block;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
}

.sp-user-menu a:hover {
  background: #f8fafc;
}

.sp-director-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 32px;
  padding: 52px 24px;
  background: #f5f6f8;
}

.sp-director-cta-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  text-align: center;
}

.sp-director-cta h2 {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 42px;
  line-height: 1.1;
}

.sp-director-cta p {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.65;
}

.sp-director-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.18);
}

.sp-login-link {
  font-size: 14px;
  font-weight: 500;
}

.sp-shell {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  padding: 48px 24px 0;
}

.sp-tabs {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  min-height: 41px;
  border-bottom: 1px solid var(--line);
}

.sp-tab {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
}

.sp-tab.is-active {
  color: var(--ink-strong);
}

.sp-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #cf4b54;
}

.sp-shell.appointments-view-active .sp-tabs {
  display: none;
}

.sp-panel {
  display: none;
}

.sp-panel.is-active {
  display: block;
}

.sp-layout {
  margin-top: 31px;
  display: grid;
  grid-template-columns: minmax(0, 798px) minmax(320px, 562px);
  gap: 32px;
  align-items: start;
}

.sp-main-column {
  min-width: 0;
}

.sp-searchbox {
  position: relative;
  height: 57px;
}

.sp-searchbox input {
  width: 100%;
  height: 100%;
  padding: 15px 24px 15px 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 26px;
  outline: none;
}

.sp-searchbox input::placeholder {
  color: #9ca3af;
}

.sp-searchbox-icon {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
  pointer-events: none;
}

.sp-searchbox-icon svg {
  width: 20px;
  height: 20px;
}

.sp-filter-row {
  margin-top: 21px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 46px;
}

.sp-filter-wrap {
  position: relative;
}

.sp-filter-chip {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
}

.sp-filter-chip.is-selected {
  border-color: rgba(46, 121, 106, 0.28);
  background: rgba(46, 121, 106, 0.08);
  color: var(--green);
}

.sp-filter-chip.is-empty {
  color: #9ca3af;
}

.sp-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
  display: none;
  z-index: 20;
}

.sp-filter-wrap.open .sp-filter-menu {
  display: block;
}

.sp-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink-strong);
  font-size: 14px;
  cursor: pointer;
}

.sp-filter-option:hover {
  background: #f8fafc;
}

.sp-filter-option input {
  margin: 0;
}

.sp-filter-empty {
  margin: 0;
  padding: 8px;
  color: #9ca3af;
  font-size: 13px;
}

.sp-embedded-host-action {
  display: none;
}

.sp-directors-section {
  margin-top: 32px;
}

.sp-section-title {
  margin: 0 0 24px;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.sp-directors-list {
  display: grid;
  gap: 20px;
}

.sp-card,
.sp-booking-card {
  min-height: 177px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.sp-card {
  padding: 24px 24px 24px 32px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 188px;
  align-items: start;
  gap: 18px;
}

.sp-card[hidden],
.sp-empty-state[hidden],
.sp-empty-state-inline[hidden] {
  display: none !important;
}

.sp-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;
}

.sp-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-card-copy {
  min-width: 0;
  padding-top: 1px;
}

.sp-card-name {
  margin: 0 0 3px;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.sp-card-description {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 23px;
}

.sp-card-rating {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-strong);
}

.sp-star-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-star-icon svg {
  width: 14.74px;
  height: 14.12px;
}

.sp-card-rating-score {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.sp-card-rating-count {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-card-actions {
  min-height: 129px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.sp-availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-align: center;
}

.sp-book-btn {
  width: 139px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e2128;
  text-decoration: none;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

.sp-empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink-muted);
  font-size: 14px;
}

.sp-empty-state-inline {
  margin-top: 16px;
}

.sp-aside {
  min-width: 0;
}

.sp-ready-card {
  min-height: 400px;
  padding: 94px 40px 40px;
  border: 1px solid rgba(46, 121, 106, 0.2);
  border-radius: 16px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sp-ready-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
  color: rgba(46, 121, 106, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-ready-icon svg {
  width: 32px;
  height: 32px;
}

.sp-ready-card h2 {
  margin: 24px 0 8px;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.sp-ready-card p {
  width: min(100%, 312px);
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
}

.sp-bookings {
  margin-top: 31px;
}

.sp-bookings-sub,
.sp-bookings-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
}

.sp-bookings-list {
  display: grid;
  gap: 20px;
}

.sp-booking-card {
  padding: 24px 28px;
}

.sp-booking-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-booking-title {
  margin: 0 0 12px;
  font-family: "Lora", serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--ink-strong);
}

.sp-booking-meta {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 24px;
}

.sp-booking-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.sp-bookings-empty.hidden {
  display: none;
}

.sp-appointments {
  margin-top: 42px;
}

.sp-appointments-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.sp-appointments-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-appointments-title {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.75px;
  font-weight: 700;
}

.sp-appointments-sub {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
}

.sp-appointments-action-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.sp-appointments-action-notice.is-success {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.sp-appointments-action-notice.is-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.sp-book-new-btn {
  min-width: 191px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
}

.sp-book-new-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-book-new-icon svg {
  width: 16px;
  height: 16px;
}

.sp-appointments-switcher {
  margin-top: 32px;
  width: fit-content;
  min-width: 292px;
  min-height: 46px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--white);
  box-shadow: 0 0 2px rgba(23, 26, 31, 0.08), 0 0 1px rgba(23, 26, 31, 0.05);
  display: flex;
  gap: 10px;
}

.sp-appointments-inline-filter {
  margin-top: 16px;
  max-width: 360px;
}

.sp-appointments-inline-filter[hidden] {
  display: none !important;
}

.sp-appointments-inline-filter-field {
  display: grid;
  gap: 8px;
}

.sp-appointments-inline-filter-field span {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sp-appointments-inline-filter-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 22px;
}

.sp-appointments-inline-filter-field input::placeholder {
  color: var(--ink-muted);
}

.sp-notes-directory-group {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
  overflow: hidden;
}

.sp-notes-directory-group + .sp-notes-directory-group {
  margin-top: 18px;
}

.sp-notes-directory-group-toggle,
.sp-notes-directory-session-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.sp-notes-directory-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.sp-notes-directory-group-copy,
.sp-notes-directory-session-copy {
  display: grid;
  gap: 6px;
}

.sp-notes-directory-group-name {
  font-family: "Lora", serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink-strong);
}

.sp-notes-directory-group-subtitle,
.sp-notes-directory-session-role,
.sp-notes-directory-note-meta,
.sp-notes-directory-group-meta,
.sp-notes-directory-session-count,
.sp-notes-directory-empty {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-notes-directory-group-meta,
.sp-notes-directory-session-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  white-space: nowrap;
}

.sp-notes-directory-group-body {
  border-top: 1px solid var(--line);
  padding: 0 20px 20px;
}

.sp-notes-directory-session {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247, 247, 247, 0.55);
  overflow: hidden;
}

.sp-notes-directory-session-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.sp-notes-directory-session-label {
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.sp-notes-directory-session-body {
  border-top: 1px solid var(--line);
  padding: 16px 20px 18px;
  display: grid;
  gap: 12px;
}

.sp-notes-directory-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 14px 16px;
}

.sp-notes-directory-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sp-notes-directory-note-author {
  color: var(--ink-strong);
  font-weight: 700;
}

.sp-notes-directory-note-copy {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 22px;
  white-space: pre-wrap;
}

.sp-appointments-switch {
  flex: 0 0 auto;
  padding: 0 16px;
  min-height: 36px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
}

.sp-appointments-switch.is-active {
  background: #f7f7f7;
  color: var(--ink-strong);
  font-weight: 700;
}

.sp-appointments-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 706px) 495px;
  gap: 31px;
  align-items: start;
}

.sp-appointments-list-wrap {
  min-width: 0;
}

.sp-appointments-list {
  display: grid;
  gap: 14px;
}

.sp-appointment-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
  cursor: pointer;
}

.sp-appointment-card.is-selected {
  border-color: #b83141;
  background: rgba(252, 243, 244, 0.2);
  box-shadow: 0 0 2px rgba(23, 26, 31, 0.08), 0 2px 4px rgba(23, 26, 31, 0.09);
}

.sp-appointment-card-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.sp-appointment-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;
}

.sp-appointment-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-appointment-card-copy {
  min-width: 0;
}

.sp-appointment-card-copy h3 {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.sp-appointment-card-copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-appointment-card-copy p + .sp-appointment-card-meta {
  margin-top: 12px;
}

.sp-appointment-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(46, 121, 106, 0.15);
  color: var(--green);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.sp-appointment-status-badge.is-upcoming {
  background: rgba(46, 121, 106, 0.15);
  color: var(--green);
}

.sp-appointment-status-badge.is-completed {
  background: #f3f4f6;
  color: var(--ink-muted);
}

.sp-appointment-status-badge.is-cancelled {
  background: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
}

.sp-appointment-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-appointment-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-appointment-card-meta-item svg {
  width: 16px;
  height: 16px;
}

.sp-appointment-card-meta-primary {
  color: var(--ink-strong);
  font-weight: 500;
}

.sp-appointment-card-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sp-appointment-link-pill {
  min-height: 28px;
  max-width: 340px;
  padding: 4px 12px;
  border-radius: 14px;
  background: #f7f7f7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.sp-appointment-link-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.sp-appointment-link-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-appointment-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sp-appointment-text-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
}

.sp-appointment-text-action.is-danger {
  color: #e53e3e;
}

.sp-appointment-text-action.is-admin {
  color: #b83141;
  font-weight: 700;
}

.sp-appointment-pill-action {
  min-width: 69px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: #b83141;
  box-shadow: var(--shadow-1), var(--shadow-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
}

.sp-appointment-side {
  display: grid;
  gap: 28px;
}

.sp-appointment-detail-card,
.sp-inline-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
}

.sp-appointment-detail-card {
  padding: 25px 24px 25px;
}

.sp-appointment-side[hidden],
.sp-appointment-detail-card[hidden],
.sp-side-divider[hidden] {
  display: none !important;
}

.sp-appointment-detail-heading,
.sp-inline-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.sp-appointment-detail-profile {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sp-appointment-detail-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;
}

.sp-appointment-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-appointment-detail-profile h4 {
  margin: 16px 0 4px;
  font-family: "Lora", serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.sp-appointment-detail-profile p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
}

.sp-appointment-detail-meta {
  margin-top: 32px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 247, 247, 0.5);
  display: grid;
  gap: 16px;
}

.sp-appointment-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.sp-appointment-meta-row-stack {
  display: block;
}

.sp-appointment-meta-topline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.sp-appointment-meta-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  flex: 0 0 auto;
}

.sp-appointment-meta-icon svg {
  width: 20px;
  height: 20px;
}

.sp-appointment-meta-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.sp-appointment-meta-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-appointment-meeting-link {
  margin-left: 34px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #b83141;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.sp-appointment-meeting-link.is-disabled {
  color: var(--ink-muted);
  pointer-events: none;
}

.sp-appointment-meeting-link-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.sp-appointment-meeting-link-icon svg {
  width: 16px;
  height: 16px;
}

.sp-appointment-join-btn,
.sp-inline-primary-btn,
.sp-inline-danger-btn,
.sp-inline-secondary-btn {
  min-height: 52px;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  line-height: 26px;
}

.sp-appointment-join-btn,
.sp-inline-primary-btn {
  margin-top: 20px;
  width: 100%;
  border: 0;
  background: #b83141;
  box-shadow: 0 0 2px rgba(184, 49, 65, 0.2), 0 4px 7px rgba(184, 49, 65, 0.2);
  color: var(--white);
  font-weight: 700;
}

.sp-session-notes-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 247, 247, 0.5);
}

.sp-session-notes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sp-session-notes-head h4 {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.sp-session-notes-hint,
.sp-session-notes-status {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 19px;
}

.sp-session-notes-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.sp-session-notes-empty {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-session-note-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: grid;
  gap: 8px;
}

.sp-session-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 18px;
}

.sp-session-note-author {
  font-weight: 600;
  color: var(--ink-strong);
}

.sp-session-note-copy {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 22px;
  white-space: pre-wrap;
}

.sp-session-note-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-session-note-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
}

.sp-session-note-action.is-danger {
  color: #b83141;
}

.sp-profile-card-head {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d9dde5;
  color: var(--ink-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
}

.sp-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-profile-card-copy h5 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.sp-profile-card-copy p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
}

.sp-profile-card-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.sp-book-new-link {
  text-decoration: none;
}

.sp-profile-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  line-height: 20px;
}

.sp-profile-card-row span {
  color: var(--ink-muted);
}

.sp-profile-card-row strong {
  color: var(--ink-strong);
  text-align: right;
  font-weight: 600;
}

.sp-profile-card-bio {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
  white-space: pre-wrap;
}

.sp-session-notes-field {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.sp-session-notes-field span {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sp-session-notes-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-strong);
  font: inherit;
  resize: vertical;
  outline: none;
}

.sp-session-notes-field textarea:focus {
  border-color: rgba(184, 49, 65, 0.45);
  box-shadow: 0 0 0 3px rgba(184, 49, 65, 0.08);
}

.sp-session-notes-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sp-session-notes-status.is-success {
  color: #166534;
}

.sp-session-notes-status.is-error {
  color: #991b1b;
}

.sp-session-notes-save {
  min-width: 132px;
}

.sp-appointment-action-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-appointment-action-icon svg {
  width: 20px;
  height: 20px;
}

.sp-side-divider {
  position: relative;
  text-align: center;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sp-side-divider::before,
.sp-side-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 72px);
  height: 1px;
  background: var(--line);
}

.sp-side-divider::before {
  left: 0;
}

.sp-side-divider::after {
  right: 0;
}

.sp-side-divider span {
  display: inline-block;
  padding: 0 12px;
  background: #fcfcfd;
}

.sp-inline-card {
  padding: 25px 24px;
}

.sp-inline-card[hidden] {
  display: none;
}

.sp-inline-card-head,
.sp-cancel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sp-inline-card-close {
  width: 20px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sp-inline-card-sub {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.sp-reschedule-calendar {
  margin-top: 20px;
  padding: 17px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.sp-reschedule-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.sp-calendar-nav {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sp-reschedule-weekdays,
.sp-reschedule-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.sp-reschedule-weekdays {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
}

.sp-reschedule-days {
  margin-top: 16px;
}

.sp-calendar-day {
  height: 36px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.sp-calendar-day.is-available {
  border-color: rgba(46, 121, 106, 0.22);
  background: rgba(46, 121, 106, 0.08);
  color: var(--green);
}

.sp-calendar-day.is-custom {
  border-color: rgba(194, 133, 43, 0.24);
  background: rgba(194, 133, 43, 0.12);
  color: #9a6a1e;
}

.sp-calendar-day.is-booked {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(226, 232, 240, 0.5);
  color: #64748b;
}

.sp-calendar-day.is-unavailable {
  border-color: rgba(229, 62, 62, 0.2);
  background: rgba(254, 242, 242, 0.7);
  color: #b91c1c;
}

.sp-calendar-day.is-empty {
  border-color: rgba(15, 23, 42, 0.08);
  background: transparent;
  color: #c4c7cf;
}

.sp-calendar-day.is-past {
  color: #c4c7cf;
}

.sp-calendar-day.is-outside {
  color: #c4c7cf;
}

.sp-calendar-day.is-selected {
  background: #b83141;
  border-color: #b83141;
  box-shadow: var(--shadow-1), var(--shadow-2);
  color: var(--white);
}

.sp-calendar-day.is-muted {
  color: #c4c7cf;
  cursor: default;
}

.sp-inline-card-times {
  margin-top: 20px;
}

.sp-inline-card-times h4 {
  margin: 0 0 12px;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sp-time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-time-chip {
  min-width: 71px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.sp-time-chip.is-selected {
  border-color: #b83141;
  background: rgba(252, 243, 244, 1);
  color: #b83141;
}

.sp-time-chip.is-muted,
.sp-time-chip:disabled {
  color: #c4c7cf;
  cursor: default;
}

.sp-time-chip.is-readonly {
  border-color: rgba(46, 121, 106, 0.18);
  background: rgba(46, 121, 106, 0.08);
  color: var(--ink-strong);
}

.sp-inline-card-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.sp-inline-card-actions-split {
  justify-content: space-between;
}

.sp-inline-secondary-btn {
  min-width: 94px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-strong);
  font-weight: 500;
  cursor: pointer;
}

.sp-inline-primary-btn {
  min-width: 206px;
  height: 40px;
  padding: 0 24px;
}

.sp-inline-card-danger {
  border-color: rgba(229, 62, 62, 0.2);
}

.sp-cancel-head {
  justify-content: flex-start;
}

.sp-cancel-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: rgba(229, 62, 62, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e53e3e;
  flex: 0 0 auto;
}

.sp-cancel-icon svg {
  width: 20px;
  height: 20px;
}

.sp-inline-card-sub-danger {
  line-height: 22px;
}

.sp-inline-danger-btn {
  min-width: 203px;
  padding: 0 24px;
  border: 0;
  background: #e53e3e;
  box-shadow: var(--shadow-1), var(--shadow-2);
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .sp-layout {
    grid-template-columns: 1fr;
  }

  .sp-aside {
    order: -1;
  }
}

@media (max-width: 900px) {
  .sp-topbar-inner {
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .sp-brand-group {
    gap: 16px;
    flex-wrap: wrap;
  }

  .sp-shell {
    padding: 32px 16px 56px;
  }

  .sp-topbar-search {
    width: 100%;
    max-width: 320px;
  }

  .sp-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .sp-card-actions {
    grid-column: 1 / -1;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
  }

  .sp-appointments-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-appointments-hero-actions {
    width: 100%;
  }

  .sp-appointments-layout {
    grid-template-columns: 1fr;
  }

  .sp-topbar-actions--guest {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}

@media (max-width: 1180px) {
  .sp-appointments-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sp-appointment-side {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .sp-topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .sp-topbar-inner--guest {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .sp-brand-group--guest {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sp-topbar-actions--guest {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0;
  }

  .sp-login-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .sp-notification-menu {
    top: calc(100% + 10px);
    right: 0;
  }

  .sp-tabs {
    gap: 18px;
    overflow-x: auto;
  }

  .sp-tab {
    white-space: nowrap;
  }

  .sp-shell {
    padding: 24px 12px 40px;
  }

  .sp-topbar-search {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .sp-searchbox input {
    font-size: 15px;
  }

  .sp-filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .sp-card,
  .sp-booking-card {
    padding: 18px;
  }

  .sp-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sp-card-avatar {
    width: 84px;
    height: 84px;
  }

  .sp-card-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sp-book-btn {
    width: 100%;
  }

  .sp-ready-card {
    min-height: auto;
    padding: 40px 24px;
  }

  .sp-section-title {
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 30px;
  }

  .sp-booking-title {
    font-size: 22px;
    line-height: 30px;
  }

  .sp-appointments {
    margin-top: 28px;
  }

  .sp-appointments-title {
    font-size: 26px;
    line-height: 32px;
  }

  .sp-appointments-switcher {
    width: 100%;
  }

  .sp-appointments-inline-filter {
    max-width: none;
  }

  .sp-appointment-card-main {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sp-appointment-card-main > .sp-appointment-status-badge {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }

  .sp-appointment-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-appointment-link-pill {
    max-width: 100%;
  }

  .sp-appointment-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sp-appointment-detail-card,
  .sp-inline-card {
    padding: 20px;
  }

  .sp-inline-card-actions,
  .sp-inline-card-actions-split {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-inline-primary-btn,
  .sp-inline-danger-btn,
  .sp-inline-secondary-btn {
    width: 100%;
  }

  .sp-session-notes-head,
  .sp-session-notes-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-session-notes-save {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.embedded-view .sp-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid #f1f2f4;
    transition: transform 0.24s ease;
  }

  body.embedded-view .sp-topbar-inner {
    position: relative;
    min-height: 48px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  body.embedded-view .sp-brand {
    display: inline-flex !important;
    transform: translateY(0);
  }

  body.embedded-view .sp-breadcrumbs,
  body.embedded-view .sp-topbar-divider,
  body.embedded-view .sp-user-copy,
  body.embedded-view .sp-tabs,
  body.embedded-view .sp-ready-card,
  body.embedded-view .sp-side-divider,
  body.embedded-view .sp-appointments-sub,
  body.embedded-view .sp-appointments-switcher,
  body.embedded-view .sp-appointment-detail-heading,
  body.embedded-view .sp-notification-menu,
  body.embedded-view .sp-topbar-search,
  body.embedded-view .sp-login-link {
    display: none !important;
  }

  body.embedded-view .sp-embedded-mobile-title {
    display: none !important;
  }

  body.embedded-view .sp-brand-group {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -54%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
  }

  body.embedded-view .sp-topbar-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    width: auto;
    gap: 0;
  }

  body.embedded-view .sp-bell-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }

  body.embedded-view .sp-user-btn {
    gap: 0;
  }

  body.embedded-view .sp-user-avatar {
    width: 32px;
    height: 32px;
    background: #fde2f9;
    box-shadow: var(--shadow-1), var(--shadow-2);
  }

  body.embedded-view .sp-shell {
    padding: 16px 16px 32px;
    background: #ffffff;
  }

  body.embedded-view .sp-panel {
    display: block;
  }

  body.embedded-view #appointments-panel {
    margin-top: 28px;
  }

  body.embedded-view .sp-layout,
  body.embedded-view .sp-appointments-layout {
    margin-top: 0;
    display: block;
  }

  body.embedded-view .sp-searchbox {
    height: 49px;
  }

  body.embedded-view .sp-searchbox input {
    padding: 11px 16px 11px 38px;
    border-radius: 16px;
    background: #fafafb;
    box-shadow: var(--shadow-1), var(--shadow-2);
  }

  body.embedded-view .sp-searchbox input::placeholder {
    color: var(--ink-muted);
  }

  body.embedded-view .sp-searchbox-icon {
    top: 14px;
    left: 12px;
  }

  body.embedded-view .sp-filter-row {
    position: static;
    top: auto;
    z-index: 40;
    margin-top: 14px;
    gap: 8px;
    padding-top: 0;
    padding-bottom: 2px;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transition: top 0.24s ease;
  }

  body.embedded-view .sp-filter-row::-webkit-scrollbar {
    display: none;
  }

  body.embedded-view .sp-filter-wrap {
    z-index: 41;
    flex: 0 0 auto;
  }

  body.embedded-view .sp-filter-wrap.open {
    z-index: 45;
  }

  body.embedded-view .sp-filter-chip {
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 19px;
    background: #fafafb;
  }

  body.embedded-view .sp-filter-menu {
    min-width: 220px;
    padding: 12px;
    border: 1px solid #d9bf8d;
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 22px 40px rgba(25, 23, 20, 0.18);
  }

  body.embedded-view .sp-embedded-host-action {
    display: block;
    margin-top: 14px;
  }

  body.embedded-view .sp-embedded-host-action .sp-book-new-btn {
    width: 100%;
  }

  body.embedded-view .sp-filter-option {
    padding: 10px 10px;
    border-radius: 10px;
  }

  body.embedded-view .sp-directors-section {
    margin-top: 36px;
  }

  body.embedded-view .sp-section-title,
  body.embedded-view .sp-appointments-title {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 28px;
  }

  body.embedded-view .sp-directors-list,
  body.embedded-view .sp-appointments-list {
    gap: 16px;
  }

  body.embedded-view .sp-card {
    padding: 16px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    border-radius: 16px;
    min-height: 164px;
    align-items: start;
  }

  body.embedded-view .sp-card:first-child {
    border-color: #b83141;
    background: #fdf3f4;
  }

  body.embedded-view .sp-card-avatar {
    width: 64px;
    height: 64px;
  }

  body.embedded-view .sp-card-copy {
    padding-top: 0;
  }

  body.embedded-view .sp-card-name {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 28px;
  }

  body.embedded-view .sp-card-description {
    margin-top: 2px;
    font-size: 14px;
    line-height: 19px;
  }

  body.embedded-view .sp-card-rating {
    margin-top: 7px;
  }

  body.embedded-view .sp-card-rating-count {
    display: none;
  }

  body.embedded-view .sp-card-actions {
    grid-column: 1 / -1;
    padding-top: 7px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.embedded-view .sp-availability-badge {
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 6px;
  }

  body.embedded-view .sp-book-btn {
    min-width: 104px;
    width: auto;
    padding: 0 14px;
    height: 32px;
    border-radius: 6px;
    background: #b83141;
    color: var(--white);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    white-space: nowrap;
  }

  body.embedded-view .sp-appointments {
    margin-top: 0;
  }

  body.embedded-view .sp-appointments-hero {
    margin-bottom: 16px;
  }

  body.embedded-view .sp-appointments-hero-actions {
    display: none;
  }

  body.embedded-view .sp-book-new-btn {
    display: inline-flex;
  }

  body.embedded-view .sp-book-new-icon {
    display: none;
  }

  body.embedded-view.embedded-header-hidden .sp-topbar {
    transform: translateY(-100%);
  }

  body.embedded-view .sp-appointments-list-wrap {
    margin-bottom: 16px;
  }

  body.embedded-view .sp-appointment-card {
    padding: 16px;
    border-radius: 16px;
    overflow: hidden;
  }

  body.embedded-view .sp-appointment-card-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  body.embedded-view .sp-appointment-card-main > .sp-appointment-status-badge {
    display: inline-flex !important;
    align-self: start;
    justify-self: end;
    min-height: 22px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
  }

  body.embedded-view .sp-appointment-card-avatar,
  body.embedded-view .sp-appointment-pill-action {
    display: none !important;
  }

  body.embedded-view .sp-appointment-card-copy h3 {
    font-size: 16px;
    line-height: 24px;
  }

  body.embedded-view .sp-appointment-card-copy p {
    font-size: 14px;
    line-height: 20px;
  }

  body.embedded-view .sp-appointment-card-copy p + .sp-appointment-card-meta {
    margin-top: 14px;
  }

  body.embedded-view .sp-appointment-card-meta {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  body.embedded-view .sp-appointment-card-meta-item {
    gap: 8px;
  }

  body.embedded-view .sp-appointment-card-meta-item svg {
    width: 15px;
    height: 15px;
  }

  body.embedded-view .sp-appointment-card-meta-primary {
    font-weight: 500;
  }

  body.embedded-view .sp-appointment-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    align-items: stretch;
  }

  body.embedded-view .sp-appointment-link-pill {
    max-width: none;
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(184, 49, 65, 0.3);
    border-radius: 10px;
    background: #fafafb;
    color: #b83141;
    overflow: hidden;
  }

  body.embedded-view .sp-appointment-link-pill.is-disabled {
    color: var(--ink-muted);
    border-color: var(--line);
  }

  body.embedded-view .sp-appointment-link-pill span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
  }

  body.embedded-view .sp-appointment-card-actions {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
  }

  body.embedded-view .sp-appointment-text-action {
    display: inline-flex;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
  }

  body.embedded-view .sp-appointment-text-action.is-danger {
    color: #b83141;
  }

  body.embedded-view .sp-appointment-text-action.is-admin {
    color: #b83141;
    font-weight: 700;
  }

  body.embedded-view .sp-appointment-side {
    display: grid;
    gap: 16px;
    margin-top: 16px;
  }

  body.embedded-view .sp-appointment-detail-card {
    display: none;
  }

  body.embedded-view .sp-inline-card {
    padding: 16px;
    border-radius: 16px;
  }

  body.embedded-view .sp-inline-card h3 {
    font-size: 18px;
    line-height: 26px;
  }

  body.embedded-view .sp-inline-card-sub {
    margin-top: 10px;
  }

  body.embedded-view .sp-reschedule-calendar {
    margin-top: 16px;
    padding: 16px 14px 14px;
  }

  body.embedded-view .sp-inline-card-times {
    margin-top: 16px;
  }

  body.embedded-view .sp-inline-card-actions,
  body.embedded-view .sp-inline-card-actions-split {
    margin-top: 16px;
  }
}
