:root {
  --ink: #17201c;
  --muted: #60706a;
  --line: #d8e1dc;
  --line-strong: #c2d0c9;
  --surface: #f3f6f4;
  --surface-2: #edf3f0;
  --panel: #ffffff;
  --mint: #16a085;
  --mint-dark: #0f715e;
  --mint-soft: #e8f6f1;
  --brand-primary: #16a085;
  --brand-primary-dark: #0f715e;
  --brand-primary-soft: #e8f6f1;
  --brand-primary-surface: #f3fbf8;
  --brand-primary-surface-strong: #d9f2ea;
  --brand-primary-rgb: 22, 160, 133;
  --brand-font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-button-radius: 10px;
  --brand-card-radius: 18px;
  --brand-card-radius-large: 24px;
  --brand-card-shadow: 0 14px 28px rgba(23, 32, 28, 0.08);
  --brand-button-shadow: 0 10px 20px rgba(22, 160, 133, 0.22);
  --brand-button-min-height: 42px;
  --brand-button-padding: 10px 16px;
  --brand-section-gap: 18px;
  --brand-card-padding: 18px;
  --brand-card-border-color: rgba(194, 208, 201, 0.9);
  --brand-primary-gradient-start: #32c3a7;
  --brand-primary-gradient-end: #16a085;
  --brand-secondary-background: #ffffff;
  --brand-secondary-border: #d7e1dc;
  --brand-secondary-text: #37524b;
  --brand-card-hover-shadow: 0 18px 30px rgba(23, 32, 28, 0.09);
  --brand-slot-surface: #ffffff;
  --brand-slot-border: rgba(194, 208, 201, 0.9);
  --brand-slot-hover-border: #16a085;
  --brand-slot-selected-background: #16a085;
  --brand-slot-selected-text: #ffffff;
  --brand-slot-available-background: linear-gradient(180deg, #e7f8ef 0%, #cfeedd 100%);
  --brand-slot-available-border: #0c8b65;
  --brand-slot-available-text: #084436;
  --brand-heading-weight: 800;
  --brand-heading-letter-spacing: -0.01em;
  --brand-hero-overlay: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%);
  --brand-public-surface: #ffffff;
  --brand-booking-surface: #ffffff;
  --public-hero-start: #dff5ee;
  --public-hero-middle: #eef7fb;
  --public-hero-end: #f7fbfc;
  --comm: #3f7f95;
  --comm-dark: #275a6d;
  --comm-soft: #edf6f8;
  --rose: #d85f72;
  --rose-soft: #fff2f5;
  --gold: #c7a23a;
  --gold-soft: #fff8e7;
  --shadow: 0 18px 45px rgba(23, 32, 28, 0.08);
  --shadow-soft: 0 10px 28px rgba(23, 32, 28, 0.06);
  --shadow-hover: 0 18px 34px rgba(23, 32, 28, 0.12);
  --app-bg: #f3f6f4;
  --app-surface: #ffffff;
  --app-surface-muted: #fafcfb;
  --app-surface-elevated: #ffffff;
  --app-text: #17201c;
  --app-text-muted: #60706a;
  --app-border: #d8e1dc;
  --app-input-bg: #ffffff;
  --app-input-text: #17201c;
  --app-button-secondary-bg: #ffffff;
  --app-button-secondary-text: #37524b;
}

.analytics-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 20px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(232, 246, 241, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(15, 113, 94, 0.08);
  box-shadow: 0 14px 36px rgba(13, 68, 58, 0.08);
}

.analytics-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.analytics-period-field {
  min-width: 160px;
}

.analytics-period-field select {
  background: #fff;
  border: 1px solid rgba(15, 113, 94, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.analytics-section {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.analytics-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.analytics-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(20, 68, 59, 0.06);
  box-shadow: 0 14px 34px rgba(23, 32, 28, 0.06);
}

.analytics-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.analytics-chart-panel {
  gap: 18px;
}

.analytics-chart-shell {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.analytics-chart-scale {
  display: grid;
  align-content: stretch;
  justify-items: end;
  color: rgba(96, 112, 106, 0.86);
  font-size: 11px;
  padding-top: 20px;
}

.analytics-chart-scale span {
  display: flex;
  align-items: end;
}

.analytics-chart-wrap {
  position: relative;
  min-width: 0;
  overflow-x: auto;
  padding-top: 6px;
}

.analytics-chart-guides {
  position: absolute;
  inset: 22px 0 22px 0;
  display: grid;
  pointer-events: none;
}

.analytics-chart-guide {
  border-top: 1px dashed rgba(15, 113, 94, 0.12);
}

.analytics-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(24px, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 220px;
  min-width: min(100%, 720px);
  position: relative;
  z-index: 1;
}

.analytics-bar-group {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: end;
  min-width: 0;
}

.analytics-bar-track {
  width: 100%;
  height: 148px;
  border-radius: 14px;
  display: flex;
  align-items: end;
  justify-content: stretch;
  background: linear-gradient(180deg, rgba(232, 246, 241, 0.32) 0%, rgba(232, 246, 241, 0.58) 100%);
}

.analytics-bar {
  width: 100%;
  min-height: 0;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #1bb59d 0%, #0f766e 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.analytics-bar.is-zero {
  height: 0 !important;
  box-shadow: none;
}

.analytics-bar-value,
.analytics-bar-label {
  font-size: 12px;
  color: var(--muted-foreground, #5f6b76);
}

.analytics-bar-value {
  font-weight: 600;
  color: #18453d;
}

.analytics-bar-label {
  text-align: center;
  line-height: 1.15;
}

.analytics-bar-label.is-muted {
  color: rgba(95, 107, 118, 0.45);
}

.analytics-metric-card {
  background: #fff;
  border: 1px solid rgba(20, 68, 59, 0.06);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(23, 32, 28, 0.05);
  min-height: 116px;
}

.analytics-metric-card span {
  color: #5e7069;
}

.analytics-metric-card strong {
  color: #163e37;
  font-size: 28px;
  line-height: 1;
  margin-top: 8px;
}

.analytics-metric-card small {
  margin-top: 10px;
  color: rgba(95, 107, 118, 0.9);
}

.analytics-metric-card--accent {
  background: linear-gradient(180deg, #ffffff 0%, #eefaf6 100%);
  border-color: rgba(15, 113, 94, 0.14);
}

.analytics-period-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf8f5;
  color: #0f715e;
  font-size: 12px;
  font-weight: 700;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.analytics-table th,
.analytics-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.analytics-table th {
  font-size: 12px;
  color: var(--muted-foreground, #5f6b76);
  font-weight: 600;
}

.analytics-table td {
  font-size: 14px;
}

.analytics-funnel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.analytics-funnel-card {
  min-height: 96px;
}

.analytics-note,
.analytics-loading {
  color: var(--muted-foreground, #5f6b76);
}

.analytics-empty-state {
  min-height: 180px;
}

@media (max-width: 720px) {
  .analytics-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-toolbar-actions {
    width: 100%;
  }

  .analytics-period-field {
    min-width: 0;
    flex: 1 1 180px;
  }

  .analytics-panel-head {
    flex-direction: column;
  }

  .analytics-chart-shell {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .analytics-table {
    display: block;
    overflow-x: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbf9 0%, var(--surface) 220px),
    var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  place-items: center;
  width: 100%;
  max-width: 100%;
  padding: 20px;
}

.app-loading-card {
  width: min(420px, 100%);
  justify-items: center;
  text-align: center;
}

.app-loading-screen p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.app-loading-message-error {
  color: #9f3043;
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(460px, 100%);
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.landing-entry-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
  justify-items: center;
  align-items: start;
  align-content: start;
  padding:
    max(20px, env(safe-area-inset-top))
    clamp(18px, 4vw, 40px)
    max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0%, rgba(249, 243, 236, 0.88) 26%, transparent 58%),
    radial-gradient(circle at right 18%, rgba(207, 223, 212, 0.52) 0%, transparent 34%),
    linear-gradient(135deg, #fbfaf7 0%, #f3f0ea 38%, #edf3ef 100%);
}

.landing-entry-screen::before,
.landing-entry-screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.landing-entry-screen::before {
  inset: auto auto -140px -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0) 72%);
}

.landing-entry-screen::after {
  inset: 40px -80px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 219, 208, 0.36) 0%, rgba(200, 219, 208, 0) 74%);
}

.landing-entry-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  justify-items: stretch;
  width: min(1280px, 100%);
  margin-inline: auto;
  max-width: 100%;
  min-width: 0;
}

.landing-copy-column {
  display: grid;
  gap: 24px;
  align-content: center;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.landing-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1d2f29;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-brand-lockup img {
  width: 42px;
  height: 42px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 224, 219, 0.92);
  box-shadow: 0 12px 24px rgba(28, 39, 34, 0.06);
}

.language-switcher-button {
  min-width: 42px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b6a65;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.language-switcher-button.is-active {
  background: linear-gradient(135deg, #1f9f7d 0%, #167b61 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(22, 123, 97, 0.22);
}

.landing-copy-block {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.landing-copy-block > * {
  min-width: 0;
  max-width: 100%;
}

.landing-copy-column h1 {
  margin: 0;
  display: grid;
  gap: 0.02em;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: #18211d;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(28px, 6.5vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.landing-copy-column h1 span {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.landing-lead {
  margin: 0;
  max-width: 33rem;
  min-width: 0;
  color: #52615b;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
  font-weight: 500;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.landing-primary-cta,
.landing-secondary-cta {
  min-height: 58px;
  min-width: 0;
  max-width: 100%;
  padding-inline: 28px;
  border-radius: 999px;
  font-size: 16px;
}

.landing-primary-cta {
  box-shadow: 0 22px 38px rgba(var(--brand-primary-rgb), 0.22);
}

.landing-trust-note {
  margin: 0;
  color: #66736e;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.landing-login-line {
  margin: -2px 0 0;
  color: #68756f;
  font-size: 14px;
  line-height: 1.5;
}

.landing-login-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mint-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.landing-login-link:hover,
.landing-login-link:focus-visible {
  color: #0c5d4c;
}

.landing-early-access {
  display: grid;
  gap: 6px;
  max-width: 34rem;
  padding-top: 2px;
}

.landing-early-access-title,
.landing-early-access-copy {
  margin: 0;
}

.landing-early-access-title {
  color: #24332d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.landing-early-access-copy {
  color: #62706b;
  font-size: 14px;
  line-height: 1.6;
}

.landing-visual-stage {
  position: relative;
  min-height: min(76vh, 690px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  isolation: isolate;
}

.landing-visual-stage::before {
  content: "";
  position: absolute;
  inset: 6% 4% 2%;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 34px 88px rgba(86, 72, 45, 0.12);
}

.landing-visual-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.9;
}

.landing-visual-glow-primary {
  inset: 10% auto auto 2%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(241, 230, 214, 0.72) 0%, rgba(241, 230, 214, 0) 72%);
}

.landing-visual-glow-secondary {
  inset: auto 5% 8% auto;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(205, 223, 213, 0.58) 0%, rgba(205, 223, 213, 0) 72%);
}

.landing-photo-frame {
  position: absolute;
  inset: 4% 5% 4% 9%;
  overflow: hidden;
  margin: 0;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 70px rgba(57, 49, 35, 0.14);
}

.landing-photo-frame-universal {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 38%),
    #efeae2;
}

.landing-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.landing-photo-frame-universal > img {
  object-position: center 34%;
}

.landing-link-chip,
.landing-confirm-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(57, 49, 35, 0.12);
  backdrop-filter: blur(18px);
  z-index: 3;
}

.landing-link-chip {
  top: 11%;
  left: 2%;
  animation: hero-float 8s ease-in-out infinite;
}

.landing-confirm-chip {
  left: 3%;
  bottom: 14%;
  animation: hero-float 9s ease-in-out infinite;
  animation-delay: -2.5s;
}

.landing-chip-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(232, 246, 241, 0.92);
}

.landing-chip-icon-success {
  background: rgba(228, 244, 236, 0.96);
}

.landing-chip-icon svg {
  width: 22px;
  height: 22px;
  stroke: #557868;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-chip-pulse {
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(22, 160, 133, 0.18) 0%, rgba(22, 160, 133, 0.62) 55%, rgba(22, 160, 133, 0.18) 100%);
}

.landing-confirm-lines {
  display: grid;
  gap: 8px;
  min-width: 70px;
}

.landing-confirm-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(43, 60, 53, 0.12);
}

.landing-confirm-lines span:last-child {
  width: 62%;
}

.landing-flow-section {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin-inline: auto;
  max-width: 100%;
  scroll-margin-top: 20px;
}

.landing-how-section {
  display: grid;
  gap: 28px;
  padding: clamp(34px, 6vw, 72px) 0 clamp(10px, 3vw, 28px);
}

.landing-how-head {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  justify-items: center;
  text-align: center;
}

.landing-how-head h2 {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.08em;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  color: #18211d;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: initial;
}

.landing-how-head h2 span {
  display: block;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.landing-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  align-items: stretch;
}

.landing-how-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 590px;
  height: 100%;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(26, 36, 32, 0.06);
  box-shadow: 0 18px 42px rgba(42, 48, 45, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    opacity 0.5s ease,
    filter 0.5s ease;
}

.landing-how-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.landing-how-number {
  color: rgba(25, 34, 30, 0.18);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  display: inline-flex;
  align-items: flex-start;
}

.landing-how-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f5f8f6;
  border: 1px solid rgba(15, 113, 94, 0.08);
}

.landing-how-icon svg {
  width: 20px;
  height: 20px;
  stroke: #5a7a6f;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-how-copy {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 128px;
}

.landing-how-copy h3,
.landing-how-copy p {
  margin: 0;
}

.landing-how-copy h3 {
  color: #1d2925;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.landing-how-copy p {
  color: #63716b;
  font-size: 15px;
  line-height: 1.6;
  max-width: 31ch;
  font-weight: 400;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.landing-how-title-nowrap {
  white-space: nowrap;
}

.landing-how-visual {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 336px;
  height: 336px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(247, 249, 248, 0.96) 0%, rgba(241, 245, 243, 0.96) 100%);
  border: 1px solid rgba(16, 37, 32, 0.05);
  overflow: visible;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.landing-how-visual-link {
  display: block;
}

.landing-mini-link-preview,
.landing-mini-calendar-card,
.landing-mini-notify-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(19, 34, 30, 0.05);
  box-shadow: 0 18px 36px rgba(35, 48, 42, 0.08);
  box-sizing: border-box;
  overflow: visible;
}

.landing-mini-link-preview {
  gap: 12px;
  justify-content: center;
}

.landing-mini-link-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 2px 2px 14px;
  justify-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(19, 34, 30, 0.08);
}

.landing-mini-link-label {
  color: #7a8882;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-mini-link-stack strong {
  color: #18312a;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.landing-mini-link-stack small {
  color: #6c7b75;
  font-size: 12px;
  line-height: 1.45;
}

.landing-demo-action-link {
  color: var(--mint-dark);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.landing-demo-action-link:hover,
.landing-demo-action-link:focus-visible {
  color: #102b24;
  opacity: 0.84;
}

.landing-mini-qr-panel {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 172px;
  min-width: 0;
  padding: 8px;
  overflow: visible;
}

.landing-mini-qr-panel canvas {
  width: min(146px, 100%);
  max-width: 100%;
  max-height: 146px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}

.landing-mini-calendar-card {
  gap: 7px;
  padding: 14px;
}

.landing-mini-calendar-head,
.landing-mini-calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-mini-calendar-head strong {
  color: #1e2a26;
  font-size: 14px;
}

.landing-mini-calendar-head small,
.landing-mini-calendar-footer span {
  color: #6c7b75;
  font-size: 10px;
  font-weight: 700;
}

.landing-mini-calendar-footer {
  align-items: flex-end;
}

.landing-mini-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.landing-mini-calendar-weekdays span {
  color: #93a09b;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.landing-mini-calendar-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.landing-mini-calendar-grid span {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 29px;
  padding: 3px 2px;
  border-radius: 12px;
  background: #f5f8f7;
  border: 1px solid rgba(17, 38, 33, 0.06);
}

.landing-mini-calendar-grid b,
.landing-mini-calendar-grid i {
  font-style: normal;
}

.landing-mini-calendar-grid b {
  color: #1f332d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.landing-mini-calendar-grid i {
  min-width: 12px;
  min-height: 12px;
  padding: 0 3px;
  border-radius: 999px;
  background: rgba(15, 113, 94, 0.09);
  color: #0f715e;
  font-size: 7px;
  font-weight: 800;
  line-height: 12px;
}

.landing-mini-calendar-grid .is-muted {
  background: #f7f9f8;
}

.landing-mini-calendar-grid .is-muted b,
.landing-mini-calendar-grid .is-disabled b {
  color: #9aa7a2;
}

.landing-mini-calendar-grid .is-available {
  background: #eef9f4;
  border-color: rgba(15, 113, 94, 0.12);
}

.landing-mini-calendar-grid .is-available b {
  color: #0f715e;
}

.landing-mini-calendar-grid .is-disabled {
  background: #f8faf9;
  border-style: dashed;
}

.landing-mini-calendar-grid .is-muted i,
.landing-mini-calendar-grid .is-disabled i {
  display: none;
}

.landing-mini-calendar-grid .is-today {
  background: linear-gradient(180deg, #e3f3ff 0%, #cde9ff 100%);
  border-color: #7ec3ff;
  box-shadow: 0 8px 18px rgba(53, 140, 255, 0.14);
}

.landing-mini-calendar-grid .is-today b {
  color: #1448a0;
}

.landing-mini-calendar-grid .is-today i {
  background: rgba(20, 72, 160, 0.1);
  color: #1448a0;
}

.landing-mini-calendar-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.landing-mini-calendar-slots strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f7f6;
  border: 1px solid rgba(17, 38, 33, 0.08);
  color: #22332d;
  font-size: 10px;
  line-height: 1;
}

.landing-mini-calendar-slots .is-selected {
  background: #e6f3ff;
  border-color: #a8d2ff;
  color: #1448a0;
}

.landing-how-visual-calendar,
.landing-how-visual-schedule {
  display: block;
}

.landing-mini-notify-card {
  gap: 12px;
}

.landing-mini-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 113, 94, 0.08);
  box-shadow: 0 14px 28px rgba(35, 48, 42, 0.06);
}

.landing-mini-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f0faf6;
  font-size: 14px;
}

.landing-mini-notice strong,
.landing-mini-notice small {
  display: block;
}

.landing-mini-notice strong {
  color: #18312a;
  font-size: 12px;
  line-height: 1.3;
}

.landing-mini-notice small {
  color: #697771;
  font-size: 11px;
  line-height: 1.35;
}

.landing-mini-notice div {
  display: grid;
  gap: 2px;
}

.landing-mini-appointment-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f5fbf8 0%, #eef7f2 100%);
  border: 1px solid rgba(15, 113, 94, 0.08);
}

.landing-mini-appointment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-mini-appointment-top em {
  color: #60716b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.landing-mini-appointment-top span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f6ef;
  border: 1px solid rgba(15, 113, 94, 0.14);
  color: #0f715e;
  font-size: 10px;
  font-weight: 800;
}

.landing-mini-appointment-card strong {
  color: #17352d;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.landing-mini-appointment-details {
  display: grid;
  gap: 5px;
}

.landing-mini-appointment-details span {
  color: #5f6e68;
  font-size: 12px;
  line-height: 1.35;
}

.landing-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.landing-trust-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 113, 94, 0.12);
  color: #30403a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow:
    0 16px 32px rgba(33, 39, 37, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.landing-trust-row b {
  margin-right: 10px;
  color: #0f715e;
  font-size: 18px;
  line-height: 1;
}

.landing-confirmation-section {
  display: grid;
  gap: 28px;
  padding: clamp(36px, 6vw, 84px) 0 clamp(10px, 2vw, 24px);
  justify-items: center;
}

.landing-confirmation-head {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 760px;
}

.landing-confirmation-eyebrow {
  margin: 0;
  color: #0f715e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-confirmation-head h2 {
  margin: 0;
  display: grid;
  gap: 0.06em;
  justify-items: center;
  color: #18211d;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.landing-confirmation-lead {
  margin: 0;
  max-width: 40rem;
  color: #617069;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
  text-wrap: balance;
}

.landing-confirmation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}

.landing-confirmation-stat-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 34, 30, 0.06);
  box-shadow: 0 18px 42px rgba(42, 48, 45, 0.06);
  text-align: left;
}

.landing-confirmation-stat-card p,
.landing-confirmation-stat-card strong,
.landing-confirmation-stat-card span {
  margin: 0;
}

.landing-confirmation-stat-card p {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.landing-confirmation-stat-card strong {
  color: #18211d;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.landing-confirmation-stat-card span {
  max-width: 18ch;
  color: #64726d;
  font-size: 15px;
  line-height: 1.6;
}

.landing-confirmation-stat-card.is-confirmed p {
  color: #1c8c5d;
}

.landing-confirmation-stat-card.is-waiting p {
  color: #b28622;
}

.landing-confirmation-stat-card.is-cancelled p {
  color: #c64d5b;
}

.landing-confirmation-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 34, 30, 0.06);
  box-shadow: 0 24px 56px rgba(28, 38, 34, 0.07);
}

.landing-confirmation-flow-step {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.landing-confirmation-step-label {
  margin: 0;
  color: #7b8883;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.landing-confirmation-step-card {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(19, 34, 30, 0.06);
  box-shadow: 0 16px 34px rgba(23, 32, 28, 0.05);
  text-align: center;
}

.landing-confirmation-step-card p,
.landing-confirmation-step-card strong,
.landing-confirmation-step-card span {
  margin: 0;
}

.landing-confirmation-step-card p,
.landing-confirmation-step-card span {
  color: #5f6e68;
  font-size: 15px;
  line-height: 1.55;
}

.landing-confirmation-step-card strong {
  color: #18312a;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.landing-confirmation-flow-step:nth-child(3) .landing-confirmation-step-card strong,
.landing-confirmation-flow-step:last-child .landing-confirmation-step-card strong {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.landing-confirmation-step-card.is-success {
  background: #f8fbf9;
}

.landing-confirmation-flow-step:first-child .landing-confirmation-step-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 0 18px;
  border-radius: 999px;
  background: #edf6f2;
  border: 1px solid rgba(15, 113, 94, 0.12);
  color: #0f715e;
  font-size: 15px;
}

.landing-confirmation-flow-step:nth-child(3) .landing-confirmation-step-card strong::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  background: #e9f7f0;
  color: #17845a;
  font-size: 16px;
}

.landing-confirmation-flow-step:last-child .landing-confirmation-step-card strong::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 18px;
  background: #edf6f2;
  border: 1px solid rgba(15, 113, 94, 0.12);
  color: #0f715e;
  font-size: 24px;
  font-weight: 800;
}

.landing-confirmation-flow-arrow {
  color: #b0bbb6;
  font-size: 36px;
  line-height: 1;
}

.landing-profile-section {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 4vw, 56px) 0 clamp(12px, 2vw, 24px);
  justify-items: center;
}

.landing-profile-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 780px;
}

.landing-profile-eyebrow {
  margin: 0;
  color: #0f715e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-profile-head h2 {
  margin: 0;
  display: grid;
  gap: 0.06em;
  justify-items: center;
  color: #18211d;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.landing-profile-lead {
  margin: 0;
  max-width: 40rem;
  color: #617069;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  text-wrap: balance;
}

.landing-profile-stage {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 1140px;
  min-width: 0;
  min-height: min(52vh, 480px);
}

.landing-profile-side {
  display: grid;
  gap: 14px;
  align-content: center;
}

.landing-profile-showcase {
  width: 100%;
}

.landing-profile-public-card {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 34, 30, 0.06);
  box-shadow: 0 20px 44px rgba(28, 38, 34, 0.07);
}

.landing-profile-public-head {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.landing-profile-public-head img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 236px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 22px;
}

.landing-profile-public-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.landing-profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-profile-rating,
.landing-profile-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.landing-profile-rating {
  background: #f5f8f6;
  color: #40534b;
  border: 1px solid rgba(19, 34, 30, 0.06);
}

.landing-profile-status {
  background: #edf6f2;
  color: #0f715e;
  border: 1px solid rgba(15, 113, 94, 0.1);
}

.landing-profile-public-copy h3,
.landing-profile-specialization,
.landing-profile-description {
  margin: 0;
}

.landing-profile-public-copy h3 {
  color: #18211d;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.landing-profile-specialization {
  color: #0f715e;
  font-size: 16px;
  font-weight: 700;
}

.landing-profile-description {
  max-width: 34ch;
  color: #617069;
  font-size: 14px;
  line-height: 1.5;
}

.landing-profile-book-button {
  width: fit-content;
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(15, 113, 94, 0.14);
  font-size: 15px;
}

.landing-profile-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
}

.landing-profile-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: #fbfcfb;
  border: 1px solid rgba(19, 34, 30, 0.05);
}

.landing-profile-panel-label {
  margin: 0;
  color: #74817b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-profile-services {
  display: grid;
  gap: 8px;
}

.landing-profile-services article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(19, 34, 30, 0.05);
}

.landing-profile-services strong,
.landing-profile-services span {
  margin: 0;
}

.landing-profile-services strong {
  color: #20302a;
  font-size: 14px;
  line-height: 1.35;
}

.landing-profile-services span {
  color: #6b7872;
  font-size: 12px;
  white-space: nowrap;
}

.landing-profile-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-profile-slots span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 113, 94, 0.1);
  color: #224138;
  font-size: 13px;
  font-weight: 700;
}

.landing-profile-float-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 34, 30, 0.06);
  box-shadow: 0 16px 32px rgba(28, 38, 34, 0.07);
}

.landing-profile-float-card p,
.landing-profile-float-card strong,
.landing-profile-float-card span {
  margin: 0;
}

.landing-profile-float-card p {
  color: #74817b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-profile-float-card strong {
  color: #20302a;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.landing-profile-float-card span {
  color: #62706b;
  font-size: 13px;
  line-height: 1.5;
}

.landing-profile-float-card .landing-demo-action-link {
  justify-self: center;
  text-align: center;
}

.landing-profile-float-card.is-link {
  min-height: 104px;
}

.landing-profile-float-card.is-qr {
  justify-items: center;
  min-height: 180px;
  text-align: center;
}

.landing-profile-float-card.is-fast,
.landing-profile-float-card.is-open {
  min-height: 104px;
}

.landing-profile-qr-wrap {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(19, 34, 30, 0.05);
}

.landing-profile-qr-wrap canvas {
  display: block;
  width: 72px;
  height: 72px;
}

.landing-profile-note {
  margin: 0;
  max-width: 36rem;
  color: #4f5f58;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.landing-reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    filter 0.5s ease;
}

.landing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.landing-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    18px
    max(18px, env(safe-area-inset-bottom));
}

.landing-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 19, 17, 0.34);
  backdrop-filter: blur(10px);
}

.auth-entry-card {
  gap: 16px;
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(77, 68, 48, 0.18);
  backdrop-filter: blur(18px);
}

.auth-entry-head {
  display: grid;
  gap: 10px;
}

.auth-entry-head h2 {
  margin: 0;
  color: #18211d;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.auth-entry-copy {
  margin: 0;
  color: #5d6b66;
  font-size: 15px;
  line-height: 1.6;
}

.landing-auth-modal {
  position: relative;
  z-index: 1;
}

.landing-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 246, 244, 0.96);
  color: #45524d;
  cursor: pointer;
}

.landing-auth-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.auth-entry-actions {
  display: grid;
  gap: 10px;
}

.auth-legal-consent {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-legal-consent a,
.compact-legal-links a,
.legal-entity-list a,
.legal-brand {
  display: inline-block;
  color: var(--mint-dark);
  text-decoration: none;
}

.auth-legal-consent a:hover,
.auth-legal-consent a:focus-visible,
.compact-legal-links a:hover,
.compact-legal-links a:focus-visible,
.legal-entity-list a:hover,
.legal-entity-list a:focus-visible,
.legal-brand:hover,
.legal-brand:focus-visible {
  color: var(--mint);
  text-decoration: underline;
}

.landing-legal-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(186, 205, 196, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .landing-how-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(42, 48, 45, 0.08);
    border-color: rgba(15, 113, 94, 0.1);
  }
}

.compact-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.compact-legal-links a {
  font-size: 14px;
  line-height: 1.4;
}

.legal-screen {
  padding: 28px 18px 44px;
  background:
    radial-gradient(circle at top left, rgba(180, 227, 214, 0.4), transparent 32%),
    linear-gradient(180deg, #f4faf7 0%, #edf5f1 100%);
}

.legal-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}

.legal-brand img {
  width: 36px;
  height: 36px;
  display: block;
}

.legal-header-links a.is-active {
  color: var(--mint);
  font-weight: 700;
}

.legal-card {
  padding: clamp(22px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(188, 207, 198, 0.9);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(39, 61, 53, 0.1);
}

.legal-card h1,
.legal-card h2 {
  margin: 0;
}

.legal-intro {
  margin: 14px 0 0;
  color: #486058;
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}

.legal-content {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.legal-section {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(246, 250, 248, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(205, 220, 213, 0.92);
  border-radius: 22px;
}

.legal-section h2 {
  font-size: 22px;
}

.legal-section p,
.legal-section li,
.legal-entity-card,
.legal-plan-meta {
  color: #4b6159;
  line-height: 1.7;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
}

.legal-plan-summary {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.legal-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-plan-card {
  padding: 20px;
  background: #f8fcfa;
  border: 1px solid rgba(198, 214, 206, 0.92);
  border-radius: 22px;
}

.legal-plan-card-premium {
  background: linear-gradient(180deg, #eef9f5 0%, #f9fffd 100%);
  border-color: rgba(111, 181, 155, 0.48);
}

.legal-plan-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-plan-label {
  margin: 0;
  color: #17352f;
  font-size: 18px;
  font-weight: 800;
}

.legal-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 0 4px;
  font-size: 14px;
}

.legal-entity-card {
  margin-top: 24px;
  padding: 22px;
  background: #f8fcfa;
  border: 1px solid rgba(198, 214, 206, 0.92);
  border-radius: 22px;
}

.legal-entity-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.legal-entity-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.legal-entity-list dt {
  color: var(--muted);
  font-weight: 700;
}

.legal-entity-list dd {
  margin: 0;
}

.legal-entity-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(22, 160, 133, 0.08);
  border: 1px solid rgba(22, 160, 133, 0.18);
  border-radius: 16px;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1180px) {
  .landing-entry-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .landing-copy-column {
    max-width: 720px;
  }

  .landing-copy-column h1,
  .landing-lead {
    max-width: none;
  }

  .landing-visual-stage {
    min-height: 620px;
  }

  .landing-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-how-card {
    min-height: 518px;
  }

  .landing-how-visual {
    height: 268px;
  }

  .landing-confirmation-section {
    gap: 24px;
  }

  .landing-confirmation-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-confirmation-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-width: 720px;
  }

  .landing-confirmation-flow-arrow {
    justify-self: center;
  }

  .landing-profile-stage {
    grid-template-columns: minmax(160px, 190px) minmax(0, 1fr) minmax(160px, 190px);
    gap: 12px;
    min-height: 0;
  }

  .landing-profile-public-head {
    grid-template-columns: minmax(160px, 190px) minmax(0, 1fr);
  }

  .landing-profile-public-head img {
    min-height: 190px;
    max-height: 220px;
  }

  .landing-profile-side {
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .landing-entry-screen {
    padding-inline: 14px;
  }

  .landing-copy-column {
    gap: 18px;
  }

  .landing-topbar {
    gap: 12px;
  }

  .landing-copy-column h1 {
    font-size: clamp(28px, 9vw, 44px);
    max-width: 100%;
    line-height: 0.92;
  }

  .landing-copy-column h1 span,
  .landing-how-title-nowrap {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .landing-lead {
    font-size: 17px;
    max-width: 100%;
  }

  .landing-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-primary-cta,
  .landing-secondary-cta {
    width: 100%;
    padding-inline: 18px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .landing-early-access {
    gap: 7px;
  }

  .landing-early-access-copy {
    font-size: 13px;
  }

  .landing-login-line {
    font-size: 13px;
  }

  .landing-how-section {
    gap: 22px;
    padding-top: 24px;
  }

  .landing-confirmation-section {
    gap: 20px;
    padding-top: 20px;
  }

  .landing-confirmation-head h2 {
    font-size: clamp(30px, 8.5vw, 42px);
  }

  .landing-confirmation-lead {
    font-size: 16px;
  }

  .landing-confirmation-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-confirmation-stat-card {
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
  }

  .landing-confirmation-stat-card strong {
    font-size: 34px;
  }

  .landing-confirmation-flow {
    padding: 14px;
    border-radius: 24px;
  }

  .landing-confirmation-step-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .landing-profile-head h2 {
    font-size: clamp(30px, 8.5vw, 42px);
  }

  .landing-profile-lead {
    font-size: 16px;
  }

  .landing-profile-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .landing-profile-showcase {
    grid-column: 1 / -1;
    order: 1;
  }

  .landing-profile-side {
    display: contents;
  }

  .landing-profile-public-card {
    padding: 18px;
    border-radius: 26px;
  }

  .landing-profile-public-head {
    gap: 18px;
  }

  .landing-profile-public-head img {
    min-height: 220px;
    max-height: 260px;
    border-radius: 22px;
  }

  .landing-profile-public-copy h3 {
    font-size: 28px;
  }

  .landing-profile-specialization {
    font-size: 16px;
  }

  .landing-profile-description {
    font-size: 14px;
  }

  .landing-profile-book-button {
    width: 100%;
  }

  .landing-profile-public-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-profile-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .landing-profile-services article {
    padding: 14px;
    border-radius: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-profile-services span {
    white-space: normal;
  }

  .landing-profile-slots span {
    width: 100%;
    justify-content: center;
    font-size: 13px;
  }

  .landing-profile-float-card {
    order: 2;
    padding: 16px;
    border-radius: 18px;
    width: 100% !important;
    min-height: 0 !important;
    text-align: left;
    justify-items: start;
  }

  .landing-profile-float-card.is-qr {
    text-align: left;
    justify-items: start;
  }

  .landing-profile-qr-wrap {
    width: 104px;
    height: 104px;
  }

  .landing-profile-note {
    font-size: 18px;
  }

  .landing-how-head h2 {
    font-size: clamp(28px, 8.2vw, 40px);
    width: 100%;
  }

  .landing-how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-how-card,
  .landing-how-card:last-child {
    grid-column: auto;
  }

  .landing-how-card {
    padding: 20px;
    border-radius: 24px;
    min-height: 0;
  }

  .landing-how-copy {
    min-height: 0;
  }

  .landing-how-copy h3 {
    font-size: 22px;
  }

  .landing-how-copy p {
    font-size: 14px;
    max-width: none;
  }

  .landing-how-visual {
    min-height: 300px;
    height: 300px;
    padding: 16px;
  }

  .landing-how-visual-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .landing-mini-link-preview,
  .landing-mini-calendar-card,
  .landing-mini-notify-card {
    padding: 12px;
  }

  .landing-mini-link-preview {
    align-items: center;
    justify-content: center;
  }

  .landing-mini-link-stack,
  .landing-mini-qr-panel {
    width: 100%;
  }

  .landing-mini-calendar-card {
    gap: 6px;
  }

  .landing-mini-calendar-head strong {
    font-size: 12px;
  }

  .landing-mini-calendar-head small,
  .landing-mini-calendar-footer span {
    font-size: 10px;
  }

  .landing-mini-calendar-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .landing-mini-calendar-head small {
    display: none;
  }

  .landing-mini-calendar-weekdays {
    gap: 2px;
  }

  .landing-mini-calendar-weekdays span {
    font-size: 8px;
  }

  .landing-mini-calendar-grid {
    gap: 3px;
  }

  .landing-mini-calendar-grid span {
    min-height: 24px;
    padding: 2px 1px;
  }

  .landing-mini-calendar-grid b {
    font-size: 9px;
  }

  .landing-mini-calendar-grid i {
    display: none;
  }

  .landing-mini-calendar-slots {
    justify-content: flex-start;
  }

  .landing-mini-appointment-actions {
    gap: 6px;
  }

  .landing-mini-appointment-actions small {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .landing-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .landing-trust-row span {
    min-height: 56px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .landing-visual-stage {
    min-height: 420px;
  }

  .landing-photo-frame {
    inset: 6% 4% 6% 4%;
    border-radius: 28px;
  }

  .landing-photo-frame img {
    object-position: center 30%;
  }

  .landing-link-chip,
  .landing-confirm-chip {
    padding: 10px 12px;
    border-radius: 18px;
    gap: 8px;
  }

  .landing-link-chip {
    top: 6%;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .landing-confirm-chip {
    left: 12px;
    bottom: 12%;
    max-width: calc(100% - 24px);
  }

  .landing-chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .landing-chip-pulse {
    width: 38px;
  }

  .landing-confirm-lines {
    min-width: 44px;
  }

  .auth-entry-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .auth-entry-head h2 {
    font-size: 29px;
  }

  .auth-entry-card .password-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-entry-card .password-toggle {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .landing-entry-shell {
    gap: 28px;
  }

  .landing-topbar {
    align-items: flex-start;
  }

  .landing-copy-column h1 {
    font-size: 28px;
    line-height: 0.98;
  }

  .landing-lead {
    font-size: 15px;
    line-height: 1.56;
    overflow-wrap: anywhere;
  }

  .landing-trust-note {
    font-size: 13px;
  }

  .landing-cta-row {
    gap: 10px;
  }

  .landing-primary-cta,
  .landing-secondary-cta {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 15px;
  }

  .landing-login-line {
    line-height: 1.45;
  }

  .landing-trust-row {
    gap: 12px;
  }

  .landing-trust-row span {
    min-height: 54px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .landing-trust-row b {
    font-size: 16px;
  }

  .landing-visual-stage {
    min-height: 372px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-link-chip,
  .landing-confirm-chip {
    animation: none !important;
  }
}

.onboarding-card {
  width: min(560px, 100%);
  gap: 20px;
}

.onboarding-progress {
  display: grid;
  gap: 10px;
}

.onboarding-progress-track {
  width: 100%;
  height: 8px;
  background: #e8efeb;
  border-radius: 999px;
  overflow: hidden;
}

.onboarding-progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #17a68a 0%, #0f715e 100%);
  border-radius: inherit;
  transition: width 0.22s ease;
}

.onboarding-step {
  display: none;
  gap: 16px;
  animation: onboarding-fade 0.22s ease;
}

.onboarding-step.active {
  display: grid;
}

.onboarding-copy {
  display: grid;
  gap: 8px;
}

.onboarding-form {
  gap: 14px;
}

.onboarding-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.onboarding-actions {
  justify-content: space-between;
  align-items: center;
}

.onboarding-actions .primary-button,
.onboarding-actions .secondary-button,
.onboarding-actions .ghost-button {
  flex: 1 1 0;
}

.onboarding-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-template {
  justify-content: center;
  min-height: 52px;
}

.onboarding-template.active {
  color: var(--mint-dark);
  background: var(--mint-soft);
  border-color: #8fd1c0;
}

.onboarding-custom-schedule {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.onboarding-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onboarding-weekdays .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.onboarding-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-helper {
  font-size: 14px;
  color: var(--muted);
}

.onboarding-service-preview,
.onboarding-link-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.onboarding-photo-preview {
  width: 96px;
  height: 96px;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 40;
  min-width: 160px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  color: white;
  background: rgba(23, 32, 28, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-stack.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-stack.is-error {
  background: rgba(140, 42, 42, 0.96);
}

.guided-hint-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.guided-hint-backdrop {
  position: absolute;
  inset: 0;
  z-index: 9000;
  background: rgba(17, 24, 21, 0.14);
}

.guided-hint-card {
  position: fixed;
  z-index: 9010;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(20, 35, 30, 0.16);
  pointer-events: auto;
}

.guided-hint-card h3,
.guided-hint-card p {
  margin: 0;
}

.guided-hint-card h3 {
  line-height: 1.25;
}

.guided-hint-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.guided-hint-actions .primary-button {
  justify-self: end;
}

.modal-close-button {
  position: sticky;
  top: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin: -8px -8px -2px auto;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(216, 225, 220, 0.96);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 32, 28, 0.08);
  cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
  color: var(--ink);
  border-color: rgba(15, 113, 94, 0.24);
}

.guided-hint-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}

.reset-demo-dialog {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.reset-demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 21, 0.36);
}

.reset-demo-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  overflow-x: hidden;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(23, 32, 28, 0.18);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.reset-demo-card h3,
.reset-demo-card p {
  margin: 0;
}

.reset-demo-card p {
  color: var(--muted);
  line-height: 1.5;
}

.reset-demo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-editor-card,
.client-create-card {
  width: min(680px, 100%);
}

.booking-editor-head {
  display: grid;
  gap: 6px;
}

.booking-editor-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-editor-mode .is-active {
  box-shadow: inset 0 0 0 1px rgba(19, 118, 94, 0.24);
}

.booking-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.booking-editor-new-client {
  display: grid;
  gap: 12px;
}

.manual-booking-calendar,
.manual-booking-slots {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.manual-booking-slots {
  scroll-margin: 12px 0 120px;
  padding-bottom: 12px;
}

.manual-booking-date-grid {
  margin-bottom: 0;
}

.manual-booking-date-grid .month-day {
  min-height: 68px;
  border-radius: 12px;
}

.manual-booking-date-button:disabled {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.manual-booking-date-button:disabled:hover {
  border-color: inherit;
  box-shadow: none;
  transform: none;
}

.manual-booking-slots .slot-grid {
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
}

.manual-booking-slots .slot-button {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 64px;
  color: var(--ink);
  text-align: left;
}

.manual-booking-slots .slot-button strong,
.manual-booking-slots .slot-button small {
  position: relative;
  z-index: 1;
  min-width: 0;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.manual-booking-slots .slot-button strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.manual-booking-slots .slot-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.manual-booking-slots .manual-booking-slot-button.is-idle,
#manualBookingModal #manualBookingSlotGrid > .manual-booking-slot-button.is-idle {
  color: var(--ink);
  background: var(--brand-slot-surface);
  border-color: var(--brand-slot-border);
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.manual-booking-slots .manual-booking-slot-time.is-idle,
#manualBookingModal #manualBookingSlotGrid > .manual-booking-slot-button.is-idle .manual-booking-slot-time {
  color: var(--ink);
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.manual-booking-slots .manual-booking-slot-duration.is-idle,
#manualBookingModal #manualBookingSlotGrid > .manual-booking-slot-button.is-idle .manual-booking-slot-duration {
  color: var(--muted);
  opacity: 1;
  -webkit-text-fill-color: var(--muted);
}

.reset-demo-card #manualBookingSlotGrid > .slot-button:not(:hover):not(.selected):not(:active):not(:focus-visible),
#manualBookingModal #manualBookingSlotGrid > .slot-button:not(:hover):not(.selected):not(:active):not(:focus-visible) {
  color: var(--ink);
  background: var(--brand-slot-surface);
  border-color: var(--brand-slot-border);
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.reset-demo-card #manualBookingSlotGrid > .slot-button:not(:hover):not(.selected):not(:active):not(:focus-visible) strong,
#manualBookingModal #manualBookingSlotGrid > .slot-button:not(:hover):not(.selected):not(:active):not(:focus-visible) strong {
  color: var(--ink);
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.reset-demo-card #manualBookingSlotGrid > .slot-button:not(:hover):not(.selected):not(:active):not(:focus-visible) small,
#manualBookingModal #manualBookingSlotGrid > .slot-button:not(:hover):not(.selected):not(:active):not(:focus-visible) small {
  color: var(--muted);
  opacity: 1;
  -webkit-text-fill-color: var(--muted);
}

.manual-booking-slots .slot-button:hover,
.manual-booking-slots .slot-button:focus-visible,
.manual-booking-slots .slot-button:active {
  color: var(--ink);
}

.manual-booking-slots .slot-button:hover strong,
.manual-booking-slots .slot-button:hover small,
.manual-booking-slots .slot-button:focus-visible strong,
.manual-booking-slots .slot-button:focus-visible small,
.manual-booking-slots .slot-button:active strong,
.manual-booking-slots .slot-button:active small {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.manual-booking-slots .slot-button.selected,
.manual-booking-slots .slot-button.selected:hover,
.manual-booking-slots .slot-button.selected:active,
.manual-booking-slots .slot-button.selected:focus-visible {
  color: var(--brand-slot-selected-text);
  background: var(--brand-slot-selected-background);
  border-color: var(--brand-slot-hover-border);
  box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.22);
}

.manual-booking-slots .manual-booking-slot-button.is-selected,
#manualBookingModal #manualBookingSlotGrid > .manual-booking-slot-button.is-selected {
  color: var(--brand-slot-selected-text);
  background: var(--brand-slot-selected-background);
  border-color: var(--brand-slot-hover-border);
  opacity: 1;
  -webkit-text-fill-color: var(--brand-slot-selected-text);
}

.manual-booking-slots .slot-button.selected strong,
.manual-booking-slots .slot-button.selected small {
  color: var(--brand-slot-selected-text);
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.manual-booking-slots .manual-booking-slot-time.is-selected,
.manual-booking-slots .manual-booking-slot-duration.is-selected,
#manualBookingModal #manualBookingSlotGrid > .manual-booking-slot-button.is-selected .manual-booking-slot-time,
#manualBookingModal #manualBookingSlotGrid > .manual-booking-slot-button.is-selected .manual-booking-slot-duration {
  color: var(--brand-slot-selected-text);
  opacity: 1;
  -webkit-text-fill-color: var(--brand-slot-selected-text);
}

.reset-demo-card #manualBookingSlotGrid > .slot-button:hover,
.reset-demo-card #manualBookingSlotGrid > .slot-button:hover strong,
.reset-demo-card #manualBookingSlotGrid > .slot-button:hover small,
#manualBookingModal #manualBookingSlotGrid > .slot-button:hover,
#manualBookingModal #manualBookingSlotGrid > .slot-button:hover strong,
#manualBookingModal #manualBookingSlotGrid > .slot-button:hover small,
.reset-demo-card #manualBookingSlotGrid > .slot-button.selected,
.reset-demo-card #manualBookingSlotGrid > .slot-button.selected strong,
.reset-demo-card #manualBookingSlotGrid > .slot-button.selected small,
#manualBookingModal #manualBookingSlotGrid > .slot-button.selected,
#manualBookingModal #manualBookingSlotGrid > .slot-button.selected strong,
#manualBookingModal #manualBookingSlotGrid > .slot-button.selected small {
  opacity: 1;
}

.manual-booking-slots .slot-button:disabled,
.manual-booking-slots .slot-button[disabled] {
  color: #62706b;
  background: #edf2ef;
  border-color: #c6d1cc;
  box-shadow: none;
}

.manual-booking-slots .slot-button:disabled strong,
.manual-booking-slots .slot-button[disabled] strong {
  color: #43514c;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.manual-booking-slots .slot-button:disabled small,
.manual-booking-slots .slot-button[disabled] small {
  color: #62706b;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.booking-editor-actions,
.booking-editor-success-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.booking-editor-success {
  display: grid;
  gap: 14px;
}

.booking-editor-success h4,
.booking-editor-success p {
  margin: 0;
}

.is-guided-target {
  position: relative;
  z-index: 9020;
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(23, 166, 138, 0.18);
}

@keyframes onboarding-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form {
  display: grid;
  gap: 12px;
}

.specialist-profile-panel {
  margin-top: 16px;
}

.specialist-profile-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.specialist-profile-fields,
.specialist-profile-media {
  min-width: 0;
}

.specialist-profile-fields {
  align-items: start;
}

.specialist-profile-media {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.specialist-profile-preview-panel {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.specialist-profile-preview-wrap {
  display: grid;
  justify-items: center;
}

.specialist-profile-actions {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.specialist-profile-actions .primary-button {
  width: 100%;
}

.specialist-profile-notice {
  display: block;
}

.client-preview-panel {
  min-width: 0;
  width: 100%;
}

.client-preview-card {
  display: grid;
  grid-template-columns: minmax(148px, 168px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}

.client-preview-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  background: #f3f6f4;
}

.client-preview-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.client-preview-header {
  display: grid;
  gap: 4px;
}

.client-preview-header strong {
  font-size: 22px;
  line-height: 1.1;
}

.client-preview-header span {
  color: var(--muted);
  font-weight: 700;
}

.client-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-preview-meta span {
  padding: 6px 10px;
  background: #f1f6f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #37524b;
  font-size: 13px;
  font-weight: 700;
}

.client-preview-bio {
  color: var(--muted);
  line-height: 1.5;
}

.client-preview-services {
  display: grid;
  gap: 8px;
}

.client-preview-services ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-preview-services li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 12px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-preview-services li span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.client-preview-note {
  margin: 0;
  color: #466259;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 0 0;
  background: transparent;
  border-top: 1px solid #dbe6e1;
}

.premium-hero-panel,
.premium-early-access-panel,
.premium-overview-panel,
.premium-settings-panel,
.premium-growth-panel,
.premium-automation-panel,
.premium-preview-panel {
  border-radius: 24px;
}

.premium-hero-panel {
  background:
    radial-gradient(circle at top right, rgba(var(--brand-primary-rgb), 0.18) 0%, rgba(var(--brand-primary-rgb), 0) 32%),
    linear-gradient(145deg, #ffffff 0%, var(--brand-primary-surface) 100%);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.14);
}

.premium-hero-copy {
  display: grid;
  gap: 18px;
}

.premium-status-card {
  display: grid;
  gap: 12px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
}

.premium-status-card.is-enabled {
  background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.1) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.premium-status-label {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1f2c28;
}

.premium-early-access-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.09) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.12);
  box-shadow: 0 12px 26px rgba(var(--brand-primary-rgb), 0.06);
}

.premium-early-access-card p {
  margin: 0;
  color: #466259;
  line-height: 1.5;
}

.premium-early-access-title {
  color: #18352f;
  font-size: 15px;
  font-weight: 900;
}

.premium-overview-grid,
.premium-settings-stack,
.premium-preview-grid {
  display: grid;
  gap: 16px;
}

.premium-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.premium-settings-stack {
  align-content: start;
}

.premium-preview-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.premium-editor-card,
.premium-overview-card,
.premium-feature-card,
.premium-interface-preview-card,
.premium-public-preview-wrap {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 28, 0.06);
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.05);
}

.premium-cover-editor-card,
.premium-style-editor-card {
  gap: 12px;
  padding: 14px 16px;
}

.premium-overview-card {
  grid-template-rows: auto 1fr;
  align-content: start;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.06) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.premium-overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(var(--brand-primary-rgb), 0.12);
  font-size: 22px;
  line-height: 1;
}

.premium-overview-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.premium-overview-copy h4,
.premium-overview-copy p {
  margin: 0;
}

.premium-overview-copy p {
  color: var(--muted);
}

.premium-tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.premium-tariff-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f7fbf9 100%);
  border: 1px solid rgba(194, 208, 201, 0.92);
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(23, 32, 28, 0.08);
}

.premium-tariff-card.is-current {
  border-color: rgba(var(--brand-primary-rgb), 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(var(--brand-primary-rgb), 0.2),
    0 22px 36px rgba(23, 32, 28, 0.1);
}

.premium-tariff-card-premium {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(var(--brand-primary-rgb), 0.08) 100%),
    linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.1) 0%, rgba(255, 255, 255, 0) 60%);
}

.premium-tariff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.premium-tariff-head h4,
.premium-tariff-head p {
  margin: 0;
}

.premium-tariff-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.premium-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--mint-dark);
  background: rgba(var(--brand-primary-rgb), 0.12);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.premium-tariff-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-tariff-features li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 700;
}

.premium-tariff-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mint);
}

.premium-tariff-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.premium-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.premium-inline-setting {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid rgba(194, 208, 201, 0.72);
}

.premium-style-toolbar {
  display: grid;
  gap: 8px;
  padding-block: 2px 4px;
}

.premium-inline-setting-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.premium-inline-setting-head h4 {
  margin: 0;
}

.premium-style-theme-head {
  align-items: center;
}

.premium-style-theme-head h4 {
  font-size: 14px;
}

.premium-feature-card {
  background:
    linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.premium-feature-card.is-locked {
  opacity: 0.96;
}

.premium-feature-card.is-enabled {
  border-color: rgba(var(--brand-primary-rgb), 0.18);
  box-shadow: 0 16px 32px rgba(var(--brand-primary-rgb), 0.1);
}

.premium-feature-head,
.premium-reactivation-preview {
  display: grid;
  gap: 14px;
}

.premium-feature-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.premium-feature-head h4,
.premium-feature-head p,
.premium-feature-note {
  margin: 0;
}

.premium-feature-head p,
.premium-feature-note {
  color: var(--muted);
}

.premium-feature-badge-enabled {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.premium-reactivation-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-reactivation-tier {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(194, 208, 201, 0.78);
  box-shadow: 0 10px 22px rgba(23, 32, 28, 0.04);
}

.premium-reactivation-tier strong {
  font-size: 15px;
  line-height: 1.25;
}

.premium-reactivation-tier span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.premium-feature-card.is-locked .primary-button {
  opacity: 0.72;
  box-shadow: none;
}

.premium-editor-head h4,
.premium-editor-head p,
.premium-interface-preview-note {
  margin: 0;
}

.premium-editor-head p {
  margin-top: 6px;
  color: var(--muted);
}

.premium-lock-chip,
.premium-interface-badge,
.premium-interface-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.premium-lock-chip {
  color: var(--brand-primary-dark);
  background: var(--brand-primary-soft);
}

.premium-upload-field span {
  display: block;
  margin-bottom: 8px;
}

.premium-segmented-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: #f3f7f5;
  border: 1px solid rgba(194, 208, 201, 0.9);
  border-radius: 18px;
}

.premium-segmented-toggle-compact {
  width: min(100%, 280px);
}

.premium-segmented-toggle.is-locked {
  background: #f5f7f6;
  border-color: rgba(194, 208, 201, 0.82);
}

.premium-segmented-toggle-preview {
  min-width: min(100%, 300px);
}

.premium-segment-button {
  min-height: 44px;
  padding: 9px 14px;
  color: #52655f;
  background: transparent;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.premium-segment-button.active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.18);
}

.premium-segment-button:disabled {
  opacity: 0.58;
}

.premium-segmented-toggle.is-locked .premium-segment-button:not(.active) {
  color: #91a39d;
}

.premium-segmented-toggle.is-locked .premium-segment-button[data-premium-interface-mode="dark"] {
  cursor: pointer;
}

.premium-cover-controls {
  display: grid;
  gap: 8px;
}

.premium-style-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.premium-style-option {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 12px;
  text-align: left;
  font-family: var(--style-font-family, var(--brand-font-family));
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--style-option-surface, #fff);
  color: var(--style-option-text, #1f2c28);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.premium-style-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-primary-rgb), 0.32);
  box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.12);
}

.premium-style-option.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.premium-style-option.is-locked {
  cursor: pointer;
}

.premium-style-option:disabled {
  opacity: 0.64;
}

.premium-style-option-head,
.premium-style-option-copy,
.premium-style-option-card {
  display: grid;
  gap: 4px;
}

.premium-style-option-head {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 64px;
  padding-right: 72px;
}

.premium-style-option-head small,
.premium-style-option-card-text {
  color: var(--style-option-muted, var(--muted));
}

.premium-style-option-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #6b5318;
  background: #fff2cd;
  border: 1px solid #eed18b;
  font-size: 11px;
  font-weight: 900;
}

.premium-style-option.is-locked .premium-style-option-badge {
  color: #6c4d18;
  background: #fff3cf;
  border-color: #efd7a3;
}

.premium-style-option-preview {
  display: grid;
  grid-template-rows: minmax(96px, 1fr) minmax(var(--style-button-min-height, 42px), auto) minmax(84px, auto);
  align-content: stretch;
  gap: var(--style-gap, 10px);
  height: 100%;
}

.premium-style-option-hero {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: var(--style-card-padding, 14px);
  border-radius: var(--style-card-radius-large, 24px);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--style-hero-start, #edf7f4) 0%, var(--style-hero-middle, #f3f7fb) 56%, var(--style-hero-end, #ffffff) 100%);
  box-shadow: var(--style-card-shadow, 0 12px 24px rgba(23, 32, 28, 0.08));
}

.premium-style-option-hero.has-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 28%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(4, 7, 8, 0.4) 0%, rgba(8, 12, 14, 0.34) 100%),
    var(--premium-style-option-cover);
  background-size: cover;
  background-position: center;
}

.premium-style-option-hero > * {
  position: relative;
  z-index: 1;
}

.premium-style-option-hero img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.96);
}

.premium-style-option-hero.has-cover .premium-style-option-copy strong,
.premium-style-option-hero.has-cover .premium-style-option-copy span {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.premium-style-option-copy strong {
  font-size: 14px;
}

.premium-style-option-copy span {
  font-size: 12px;
  color: var(--style-option-muted, #567069);
}

.premium-style-option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--style-button-min-height, 42px);
  padding: var(--style-button-padding, 10px 12px);
  color: #ffffff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--style-accent) 86%, white) 0%, var(--style-accent-dark) 100%);
  border-radius: var(--style-button-radius, 10px);
  box-shadow: var(--style-button-shadow, 0 10px 20px rgba(22, 160, 133, 0.22));
  font-size: 13px;
  font-weight: 800;
}

.premium-style-option-card {
  align-content: start;
  padding: var(--style-card-padding, 12px);
  border-radius: var(--style-card-radius, 18px);
  background: var(--style-card-surface, var(--style-surface, #f3fbf8));
  border: 1px solid var(--style-border-color, rgba(var(--style-rgb, 22, 160, 133), 0.12));
  box-shadow: var(--style-card-shadow, 0 12px 24px rgba(23, 32, 28, 0.08));
}

.premium-style-option-card-title {
  color: var(--style-card-title, var(--style-accent-dark, #0f715e));
  font-size: 13px;
  font-weight: 800;
}

.premium-style-option.is-dark {
  --style-option-surface: linear-gradient(180deg, rgba(18, 25, 27, 0.98) 0%, rgba(12, 17, 19, 0.98) 100%);
  --style-option-text: #edf5f2;
  --style-option-muted: #b6c8c2;
  --style-card-surface: rgba(17, 26, 28, 0.94);
  --style-card-title: #f4fbf8;
  border-color: rgba(88, 106, 100, 0.74);
  box-shadow: 0 18px 36px rgba(4, 8, 9, 0.28);
}

.premium-style-option.is-dark .premium-style-option-hero {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--style-accent) 24%, #13201f) 0%, rgba(17, 25, 27, 0.98) 100%);
  box-shadow: 0 16px 30px rgba(4, 8, 9, 0.3);
}

.premium-style-option.is-dark .premium-style-option-hero img {
  border-color: rgba(255, 255, 255, 0.88);
}

.premium-style-option.is-dark .premium-style-option-button {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.premium-style-option[disabled] {
  cursor: not-allowed;
  filter: saturate(0.82);
}

.premium-style-option[disabled] .premium-style-option-button {
  box-shadow: none;
}

.premium-preview-toolbar,
.premium-preview-mode-group,
.premium-preview-meta,
.premium-interface-preview-nav,
.premium-interface-preview-fields {
  display: grid;
  gap: 12px;
}

.premium-preview-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.premium-preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-preview-meta {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: end;
}

.premium-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #34524a;
  background: rgba(var(--brand-primary-rgb), 0.08);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.12);
  font-size: 12px;
  font-weight: 800;
}

.premium-interface-preview-card {
  font-family: var(--brand-font-family);
  gap: var(--brand-section-gap);
  padding: var(--brand-card-padding);
  background:
    linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid var(--brand-card-border-color);
  border-radius: var(--brand-card-radius-large);
  box-shadow: var(--brand-card-shadow);
}

.premium-interface-preview-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.premium-interface-badge {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.premium-interface-active {
  color: var(--brand-primary-dark);
  background: rgba(var(--brand-primary-rgb), 0.12);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
}

.premium-interface-preview-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-interface-preview-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--brand-button-min-height);
  padding: var(--brand-button-padding);
  color: #5d746e;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--brand-card-border-color);
  border-radius: var(--brand-button-radius);
  font-size: 13px;
  font-weight: 800;
}

.premium-interface-preview-tab.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(var(--brand-primary-rgb), 0.18);
}

.premium-interface-preview-fields .field {
  gap: 8px;
}

.premium-interface-preview-fields input[readonly],
.premium-interface-preview-fields textarea[readonly] {
  color: #22332d;
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--brand-card-border-color);
  border-radius: var(--brand-button-radius);
}

.premium-interface-preview-actions {
  display: grid;
  gap: 10px;
}

.premium-interface-preview-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.premium-interface-preview-card.is-dark {
  color: #edf5f2;
  background:
    linear-gradient(180deg, rgba(15, 22, 20, 0.94) 0%, rgba(19, 28, 25, 0.98) 100%);
  border-color: rgba(84, 102, 96, 0.7);
  box-shadow: 0 18px 40px rgba(6, 10, 9, 0.3);
}

.premium-interface-preview-card.is-dark .premium-interface-active {
  color: #e9f7f4;
  background: rgba(var(--brand-primary-rgb), 0.16);
  border-color: rgba(var(--brand-primary-rgb), 0.28);
}

.premium-interface-preview-card.is-dark .premium-interface-preview-tab {
  color: #bccdc8;
  background: rgba(21, 31, 28, 0.96);
  border-color: rgba(86, 105, 98, 0.72);
}

.premium-interface-preview-card.is-dark .premium-interface-preview-fields input[readonly],
.premium-interface-preview-card.is-dark .premium-interface-preview-fields textarea[readonly] {
  color: #edf5f2;
  background: rgba(19, 30, 27, 0.95);
  border-color: rgba(86, 105, 98, 0.72);
}

.premium-interface-preview-card.is-dark .premium-interface-preview-note {
  color: #c8d7d2;
}

.client-preview-panel.is-dark .public-master-page {
  color: #edf5f2;
  background: linear-gradient(180deg, rgba(12, 18, 20, 0.98) 0%, rgba(15, 22, 24, 0.98) 100%);
  border-color: rgba(84, 102, 96, 0.72);
  box-shadow: 0 18px 40px rgba(6, 10, 9, 0.3);
}

.client-preview-panel.is-dark .public-master-hero {
  background: linear-gradient(180deg, rgba(18, 27, 30, 0.98) 0%, rgba(20, 29, 32, 0.98) 100%);
}

.client-preview-panel.is-dark .public-master-section {
  border-top-color: rgba(84, 102, 96, 0.52);
}

.client-preview-panel.is-dark .public-master-section-heading h3,
.client-preview-panel.is-dark .public-master-about,
.client-preview-panel.is-dark .public-master-review p,
.client-preview-panel.is-dark .public-master-services li strong,
.client-preview-panel.is-dark .public-master-services li span {
  color: #edf5f2;
}

.client-preview-panel.is-dark .public-master-placeholder,
.client-preview-panel.is-dark .public-master-review,
.client-preview-panel.is-dark .public-master-services li,
.client-preview-panel.is-dark .public-master-work {
  background: rgba(18, 27, 29, 0.92);
  border-color: rgba(84, 102, 96, 0.62);
}

.client-preview-panel.is-dark .public-master-review small,
.client-preview-panel.is-dark .public-master-placeholder,
.client-preview-panel.is-dark .public-master-services li span,
.client-preview-panel.is-dark .public-master-meta #publicMasterCity {
  color: #bfcfca;
}

.client-preview-panel.is-dark .public-master-booking-cta {
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.26),
    0 12px 24px rgba(var(--brand-primary-rgb), 0.24);
}

.client-preview-panel.is-dark .public-master-contact-action {
  color: #edf5f2;
  background: rgba(17, 26, 29, 0.94);
  border-color: rgba(84, 102, 96, 0.72);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.client-preview-panel.is-dark .public-master-contact-action:hover,
.client-preview-panel.is-dark .public-master-contact-action:focus,
.client-preview-panel.is-dark .public-master-contact-action:focus-visible {
  background: rgba(22, 32, 35, 0.98);
  border-color: rgba(110, 131, 123, 0.82);
}

.public-master-page {
  display: grid;
  gap: 0;
  overflow: hidden;
  font-family: var(--brand-font-family);
  background: linear-gradient(180deg, var(--brand-public-surface) 0%, #fbfcfc 100%);
  border: 1px solid var(--brand-card-border-color);
  border-radius: var(--brand-card-radius-large);
  box-shadow: var(--brand-card-shadow);
}

.public-master-hero {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: calc(var(--brand-card-padding) + 10px) calc(var(--brand-card-padding) + 6px) var(--brand-card-padding);
  background: linear-gradient(180deg, #eef5ff 0%, #f5f9ff 56%, #fcfefd 100%);
  background: linear-gradient(180deg, var(--public-hero-start) 0%, var(--public-hero-middle) 56%, var(--public-hero-end) 100%);
}

.public-master-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--brand-hero-overlay);
  pointer-events: none;
}

.public-master-cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.58) 0, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at top left, rgba(var(--brand-primary-rgb), 0.18) 0, rgba(var(--brand-primary-rgb), 0) 34%),
    linear-gradient(135deg, var(--public-hero-start) 0%, var(--public-hero-middle) 48%, var(--public-hero-end) 100%);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.public-master-cover.has-image {
  background: var(--premium-cover-image);
  background-size: cover;
  background-position: center;
  filter: none;
}

.public-master-hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--brand-section-gap);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

.public-master-hero.has-cover-image .public-master-hero-body::before {
  position: absolute;
  top: -36px;
  left: 50%;
  width: min(100%, 560px);
  height: 320px;
  content: "";
  z-index: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 34%, rgba(4, 8, 10, 0.26) 0%, rgba(7, 11, 14, 0.18) 28%, rgba(8, 12, 15, 0.08) 52%, rgba(8, 12, 15, 0) 78%);
  pointer-events: none;
  filter: blur(10px);
}

.public-master-hero.has-cover-image .public-master-hero-body > * {
  position: relative;
  z-index: 1;
}

.public-master-photo {
  width: 156px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  border: 5px solid #ffffff;
  background: #f3f6f4;
  box-shadow: 0 12px 28px rgba(var(--brand-primary-rgb), 0.18);
}

.public-master-hero-copy {
  display: grid;
  gap: calc(var(--brand-section-gap) * 0.66);
  min-width: 0;
  width: 100%;
  justify-items: center;
}

.public-master-header {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.public-master-header strong {
  font-size: 34px;
  line-height: 1.05;
  font-weight: var(--brand-heading-weight);
  letter-spacing: var(--brand-heading-letter-spacing);
  overflow-wrap: anywhere;
}

.public-master-specialization {
  color: #567069;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.public-master-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.public-master-meta span {
  padding: 7px 11px;
  color: #37524b;
  background: var(--brand-primary-surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.public-master-hero.has-cover-image .public-master-photo {
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 12px 28px rgba(var(--brand-primary-rgb), 0.18);
}

.public-master-hero.has-cover-image .public-master-header strong,
.public-master-hero.has-cover-image .public-master-specialization,
.public-master-hero.has-cover-image .public-master-meta,
.public-master-hero.has-cover-image .public-master-meta span {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.public-master-hero.has-cover-image .public-master-specialization,
.public-master-hero.has-cover-image .public-master-meta,
.public-master-hero.has-cover-image .public-master-meta span {
  color: rgba(244, 248, 246, 0.96);
}

.public-master-hero.has-cover-image .public-master-header strong {
  color: #ffffff;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.34),
    0 1px 2px rgba(0, 0, 0, 0.42);
}

.public-master-hero.has-cover-image .public-master-specialization {
  color: rgba(247, 250, 249, 0.92);
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.3),
    0 1px 1px rgba(0, 0, 0, 0.22);
}

.public-master-hero.has-cover-image .public-master-meta {
  gap: 10px;
}

.public-master-hero.has-cover-image .public-master-meta span {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.public-master-hero.has-cover-image .public-master-meta #publicMasterPhone {
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.public-master-hero.has-cover-image .public-master-meta #publicMasterCity {
  color: rgba(247, 250, 249, 0.84);
}

.public-master-hero.has-cover-image .public-master-booking-cta {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 10px 20px rgba(var(--brand-primary-rgb), 0.22);
}

.public-master-hero.has-cover-image .public-master-contact-action {
  color: #ffffff;
  background: rgba(10, 15, 17, 0.46);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.public-master-hero.has-cover-image .public-master-contact-action:hover,
.public-master-hero.has-cover-image .public-master-contact-action:focus,
.public-master-hero.has-cover-image .public-master-contact-action:focus-visible {
  background: rgba(10, 15, 17, 0.58);
  border-color: rgba(255, 255, 255, 0.24);
}

:root[data-premium-style="modern"] .public-master-page,
:root[data-premium-style="modern"] .booking-flow,
:root[data-premium-style="modern"] .premium-interface-preview-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 6%, white) 0%, rgba(255, 255, 255, 0.98) 100%);
}

:root[data-premium-style="modern"] .public-master-header strong,
:root[data-premium-style="modern"] .booking-flow .step h3,
:root[data-premium-style="modern"] .premium-interface-preview-card h4,
:root[data-premium-style="modern"] .premium-interface-preview-card strong {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
}

:root[data-premium-style="modern"] .public-master-booking-cta,
:root[data-premium-style="modern"] .booking-flow .primary-button,
:root[data-premium-style="modern"] .premium-interface-preview-actions .primary-button {
  letter-spacing: -0.01em;
}

:root[data-premium-style="modern"] .service-option,
:root[data-premium-style="modern"] .slot-button,
:root[data-premium-style="modern"] .date-button {
  min-height: 64px;
}

:root[data-premium-style="minimal"] .public-master-page,
:root[data-premium-style="minimal"] .booking-flow,
:root[data-premium-style="minimal"] .premium-interface-preview-card {
  box-shadow: 0 1px 2px rgba(20, 30, 27, 0.04);
}

:root[data-premium-style="minimal"] .public-master-booking-cta,
:root[data-premium-style="minimal"] .booking-flow .primary-button,
:root[data-premium-style="minimal"] .premium-interface-preview-actions .primary-button {
  background: var(--brand-primary);
  box-shadow: none;
}

:root[data-premium-style="minimal"] .secondary-button,
:root[data-premium-style="minimal"] .ghost-button,
:root[data-premium-style="minimal"] .chip,
:root[data-premium-style="minimal"] .public-master-contact-action,
:root[data-premium-style="minimal"] .booking-flow .secondary-button,
:root[data-premium-style="minimal"] .service-option,
:root[data-premium-style="minimal"] .slot-button,
:root[data-premium-style="minimal"] .date-button {
  background: #ffffff;
  border-color: var(--brand-slot-border);
}

:root[data-premium-style="minimal"] .public-master-contact-action,
:root[data-premium-style="minimal"] .booking-flow .secondary-button,
:root[data-premium-style="minimal"] .premium-interface-preview-actions .secondary-button {
  color: #303940;
  background: #ffffff;
  border-width: 1px;
  border-color: #9ba5ac;
  box-shadow: none;
}

:root[data-premium-style="minimal"] .public-master-booking-cta,
:root[data-premium-style="minimal"] .public-master-contact-action,
:root[data-premium-style="minimal"] .booking-flow .primary-button,
:root[data-premium-style="minimal"] .booking-flow .secondary-button {
  font-weight: 700;
}

:root[data-premium-style="minimal"] .public-master-contact-action:hover,
:root[data-premium-style="minimal"] .public-master-contact-action:focus,
:root[data-premium-style="minimal"] .public-master-contact-action:focus-visible,
:root[data-premium-style="minimal"] .booking-flow .secondary-button:hover,
:root[data-premium-style="minimal"] .booking-flow .secondary-button:focus,
:root[data-premium-style="minimal"] .booking-flow .secondary-button:focus-visible {
  color: #20272c;
  background: #f3f5f6;
  border-color: #6c7780;
}

:root[data-premium-style="bright"] .public-master-page,
:root[data-premium-style="bright"] .booking-flow,
:root[data-premium-style="bright"] .premium-interface-preview-card {
  background:
    linear-gradient(180deg, #fffdfa 0%, color-mix(in srgb, var(--brand-primary) 8%, white) 100%);
}

:root[data-premium-style="bright"] .public-master-booking-cta,
:root[data-premium-style="bright"] .booking-flow .primary-button,
:root[data-premium-style="bright"] .premium-interface-preview-actions .primary-button {
  font-weight: 800;
}

:root[data-premium-style="bright"] .public-master-section-heading h3,
:root[data-premium-style="bright"] .booking-flow .step h3 {
  font-weight: 900;
}

:root[data-premium-style="bright"] .service-option,
:root[data-premium-style="bright"] .slot-button,
:root[data-premium-style="bright"] .date-button {
  background: linear-gradient(180deg, #fff9f7 0%, #fff2f7 100%);
}

:root[data-premium-style="bright"] .date-button.is-available,
:root[data-premium-style="bright"] .slot-button.selected,
:root[data-premium-style="bright"] .date-button.selected {
  box-shadow: 0 16px 28px rgba(240, 92, 136, 0.22);
}

.public-master-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.public-master-booking-cta {
  min-width: min(100%, 260px);
  justify-content: center;
  text-decoration: none;
}

.public-master-contact-action {
  min-width: 144px;
  justify-content: center;
  text-decoration: none;
}

.public-master-booking-cta:hover,
.public-master-booking-cta:focus,
.public-master-booking-cta:focus-visible,
.public-master-contact-action:hover,
.public-master-contact-action:focus,
.public-master-contact-action:focus-visible {
  text-decoration: none;
}

.public-master-section {
  display: grid;
  gap: calc(var(--brand-section-gap) * 0.66);
  padding: calc(var(--brand-card-padding) + 4px) calc(var(--brand-card-padding) + 6px);
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 14%, var(--brand-card-border-color));
}

.public-master-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-master-section-heading h3 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: var(--brand-heading-weight);
  letter-spacing: var(--brand-heading-letter-spacing);
}

.public-master-about,
.public-master-placeholder {
  margin: 0;
  color: #5c6f68;
  line-height: 1.6;
}

.public-master-placeholder {
  padding: 16px 18px;
  background: #f7faf9;
  border: 1px dashed #d2dfd9;
  border-radius: 14px;
  font-weight: 700;
}

.public-master-reviews {
  display: grid;
  gap: 12px;
}

.public-master-review {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.public-master-review p,
.public-master-review small {
  margin: 0;
}

.public-master-review small {
  color: var(--muted);
  font-weight: 700;
}

.public-master-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.public-master-work {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f6f4;
  border: 1px solid var(--line);
}

.public-master-work img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-master-services ul {
  gap: 10px;
}

.public-master-services li {
  background: #f9fbfa;
  border-radius: 12px;
}

.share-clients-panel {
  display: grid;
  gap: 14px;
}

.referral-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.referral-panel[hidden] {
  display: none;
}

.referral-bonus {
  align-self: center;
  justify-self: end;
  padding: 8px 10px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  border: 1px solid #bfe0d5;
  border-radius: 8px;
  font-size: 14px;
}

.referral-link-field input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.referral-actions {
  justify-content: start;
}

.partner-hero-panel,
.partner-stats-panel,
.partner-how-panel,
.partner-table-panel {
  display: grid;
  gap: 16px;
}

.partner-hero-panel {
  background:
    radial-gradient(circle at top right, rgba(22, 99, 79, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fdfb 0%, #f5fbf8 100%);
}

.partner-hero-badge-wrap {
  display: flex;
  justify-content: end;
}

.partner-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.partner-hero-copy,
.partner-link-card {
  display: grid;
  gap: 14px;
}

.partner-hero-link-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 224, 213, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(18, 61, 50, 0.08);
}

.partner-link-head h4 {
  margin: 0;
  font-size: 17px;
}

.partner-hero-actions {
  justify-content: start;
}

.partner-link-field {
  gap: 8px;
}

.partner-link-input-wrap {
  position: relative;
  display: block;
}

.partner-link-input-wrap input {
  min-height: 56px;
  padding: 16px 56px 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 224, 213, 0.95);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding-right: 52px;
}

.partner-link-copy-icon {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--mint-dark);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.partner-link-copy-icon:hover,
.partner-link-copy-icon:focus-visible {
  background: rgba(22, 99, 79, 0.08);
  border-color: rgba(140, 201, 175, 0.9);
  color: #104f40;
}

.partner-link-copy-icon:active {
  transform: translateY(-50%) scale(0.98);
}

.partner-link-copy-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.partner-link-helper {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.partner-link-copy-icon.is-copied {
  background: rgba(22, 99, 79, 0.12);
  border-color: rgba(140, 201, 175, 1);
}

.partner-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-steps-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.partner-table-wrap {
  overflow-x: auto;
}

.partner-table {
  min-width: 640px;
}

.partner-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 18px 12px;
}

.partner-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f6f8f7;
  color: var(--text);
  white-space: nowrap;
}

.partner-status-chip.is-registered {
  background: #f6f8f7;
}

.partner-status-chip.is-activated {
  background: #eef8f3;
  border-color: #bfe0d5;
  color: var(--mint-dark);
}

.partner-status-chip.is-rewarded {
  background: #e8f7ef;
  border-color: #8cc9af;
  color: #0f5d47;
}

@media (max-width: 900px) {
  .partner-hero-layout {
    grid-template-columns: 1fr;
  }

  .partner-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .partner-stats-grid {
    grid-template-columns: 1fr;
  }

  .partner-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .partner-table {
    min-width: 560px;
  }
}

.public-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.danger-zone-checkbox {
  justify-self: start;
  min-height: 20px;
}

.danger-zone-checkbox input {
  margin: 0;
}

.public-link-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px 0 0;
  background: transparent;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
}

.public-link-card input {
  min-width: 0;
  font-size: 14px;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: grid;
  place-items: center;
  padding: 18px;
}

.qr-modal.hidden-field {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 21, 0.46);
}

.qr-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  max-height: calc(100dvh - 36px);
  overflow: auto;
  overflow-x: hidden;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(13, 34, 28, 0.2);
  text-align: center;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.qr-modal-card h3,
.qr-modal-card p {
  margin: 0;
}

.qr-modal-card canvas {
  width: min(300px, 78vw);
  height: min(300px, 78vw);
  background: #ffffff;
  border-radius: 10px;
}

.qr-modal-card #qrModalLink {
  color: var(--mint-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.qr-modal-note {
  margin: 0;
  color: #5d6f68;
  font-size: 0.95rem;
  text-align: center;
}

.qr-modal-actions {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-toggle,
.auth-link-button {
  min-width: 92px;
  padding: 10px 12px;
  color: var(--mint-dark);
  background: #eef7f4;
  border: 1px solid #c8d8d2;
  border-radius: 8px;
  font-weight: 800;
}

.auth-link-button {
  justify-self: start;
  min-width: 0;
  background: transparent;
  border-color: transparent;
}

.auth-test-code {
  padding: 12px;
  color: var(--mint-dark);
  background: #eef7f4;
  border: 1px solid #8fcfbd;
  border-radius: 8px;
}

.app-shell.is-auth-hidden {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(194, 208, 201, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--mint);
  background: linear-gradient(180deg, #eff9f5 0%, #e3f3ed 100%);
  border: 1px solid #b8ddd1;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-mark svg,
.brand-mark img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-mark svg {
  fill: currentColor;
}

.brand h1,
.topbar h2,
.panel h3,
.public-profile h3,
.step h3 {
  margin: 0;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-utility {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.mobile-utility-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(194, 208, 201, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(23, 32, 28, 0.08);
  font-size: 24px;
  line-height: 1;
}

.mobile-utility-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: min(calc(100vh - 92px), 640px);
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(194, 208, 201, 0.9);
  border-radius: 16px;
  box-shadow: 0 20px 34px rgba(23, 32, 28, 0.14);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 9800;
}

.mobile-utility-section {
  display: grid;
  gap: 6px;
}

.mobile-utility-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-utility-action {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d6dfda;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.mobile-utility-nav-item.active {
  background: #eff7f3;
  border-color: var(--mint);
  box-shadow:
    inset 4px 0 0 var(--mint),
    0 10px 20px rgba(15, 113, 94, 0.1);
  font-weight: 900;
}

.mobile-utility-action-feature {
  color: var(--comm-dark);
  background: #f6fbfc;
  border-color: #b9d8e0;
}

.mobile-utility-action-feature.active {
  color: #ffffff;
  background: var(--comm);
  border-color: var(--comm);
  box-shadow:
    inset 4px 0 0 rgba(255, 255, 255, 0.55),
    0 12px 24px rgba(63, 127, 149, 0.18);
}

.mobile-utility-action-danger {
  color: #8f3344;
  background: #fff7f9;
  border-color: #efc0cb;
}

.nav-tabs {
  display: grid;
  gap: 14px;
}

.nav-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(216, 225, 220, 0.8);
  border-radius: 8px;
}

.nav-group-communication {
  background: linear-gradient(180deg, #f7fbfc 0%, var(--comm-soft) 100%);
  border-color: #c9dfe6;
}

.nav-group-booking {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
}

.nav-group-monetization {
  background: linear-gradient(180deg, #fffdfa 0%, #fff4ee 100%);
  border-color: rgba(242, 203, 182, 0.92);
}

.nav-group-internal {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  border-color: rgba(199, 209, 220, 0.9);
}

.nav-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-tab {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-tab.active,
.nav-tab:hover {
  background: #eff7f3;
  border-color: #b8ddd1;
  box-shadow: 0 6px 14px rgba(15, 113, 94, 0.08);
}

.nav-tab.active {
  border-color: var(--mint);
  box-shadow:
    inset 4px 0 0 var(--mint),
    0 10px 20px rgba(15, 113, 94, 0.1);
  font-weight: 900;
}

.nav-tab-feature {
  color: var(--comm-dark);
  background: #f6fbfc;
  border-color: #b9d8e0;
  font-weight: 800;
}

.nav-tab-feature.active,
.nav-tab-feature:hover {
  color: #ffffff;
  background: var(--comm);
  border-color: var(--comm);
  box-shadow:
    inset 4px 0 0 rgba(255, 255, 255, 0.55),
    0 12px 24px rgba(63, 127, 149, 0.18);
}

.nav-tab + .nav-tab {
  margin-top: 0;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.app-legal-footer {
  margin-top: 20px;
  padding: 18px 4px 4px;
  border-top: 1px solid rgba(194, 208, 201, 0.75);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 10px 0 2px;
}

.topbar-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  overflow: visible;
}

.topbar-language-switcher {
  background: rgba(248, 251, 249, 0.96);
}

.offline-status {
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(190, 78, 47, 0.1);
  border: 1px solid rgba(190, 78, 47, 0.16);
  color: #8f3c24;
  justify-items: start;
  min-width: 220px;
}

.offline-status strong {
  font-size: 13px;
  line-height: 1.1;
}

.offline-status small {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(143, 60, 36, 0.82);
}

.app-offline-mode .offline-status {
  box-shadow: 0 10px 22px rgba(190, 78, 47, 0.08);
}

.user-menu {
  position: relative;
  z-index: 120;
  overflow: visible;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 800;
}

.user-menu-toggle {
  color: #496159;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 225, 220, 0.9);
  border-radius: 999px;
}

.user-menu-caret {
  font-size: 11px;
  line-height: 1;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 9500;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(216, 225, 220, 0.92);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(23, 32, 28, 0.14);
}

.user-menu-badge {
  justify-self: start;
  margin-bottom: 2px;
}

.user-menu-item {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d6dfda;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: #f7faf8;
  border-color: #b7cbc3;
  transform: translateY(-1px);
}

.user-menu-item-danger {
  color: #8f3344;
  background: #fff7f9;
  border-color: #efc0cb;
}

.user-menu-item-danger:hover,
.user-menu-item-danger:focus-visible {
  background: #fff0f4;
  border-color: #e5aebc;
}

.topbar-user {
  color: var(--muted);
  font-weight: 800;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33, 150, 126, 0.12);
  color: #1f7f6c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.premium-interface-dark {
  --app-bg: #0f1514;
  --app-surface: rgba(18, 26, 24, 0.94);
  --app-surface-muted: rgba(21, 31, 28, 0.92);
  --app-surface-elevated: rgba(24, 35, 32, 0.96);
  --app-text: #edf5f2;
  --app-text-muted: #b9cbc6;
  --app-border: rgba(82, 99, 93, 0.76);
  --app-input-bg: rgba(15, 23, 21, 0.96);
  --app-input-text: #edf5f2;
  --app-button-secondary-bg: rgba(18, 27, 24, 0.96);
  --app-button-secondary-text: #edf5f2;
  color: var(--app-text);
  background:
    radial-gradient(circle at top, rgba(var(--brand-primary-rgb), 0.12) 0%, rgba(var(--brand-primary-rgb), 0) 32%),
    linear-gradient(180deg, #0d1312 0%, #111918 100%);
}

body.premium-interface-dark .app-shell,
body.premium-interface-dark .workspace {
  background: transparent;
  color: var(--app-text);
}

body.premium-interface-dark .sidebar,
body.premium-interface-dark .topbar,
body.premium-interface-dark .panel,
body.premium-interface-dark .metric,
body.premium-interface-dark .booking-flow,
body.premium-interface-dark .public-link-card,
body.premium-interface-dark .summary-list-item,
body.premium-interface-dark .client-directory-row,
body.premium-interface-dark .schedule-exception-card,
body.premium-interface-dark .notification-panel,
body.premium-interface-dark .qr-modal-card,
body.premium-interface-dark .booking-editor-card,
body.premium-interface-dark .client-create-card,
body.premium-interface-dark .mobile-utility-menu {
  color: var(--app-text);
  background: var(--app-surface);
  border-color: var(--app-border);
  box-shadow: 0 18px 36px rgba(5, 10, 9, 0.24);
}

body.premium-interface-dark .muted-panel,
body.premium-interface-dark .dashboard-stat-card,
body.premium-interface-dark .nav-group,
body.premium-interface-dark .nav-group-booking,
body.premium-interface-dark .nav-group-communication {
  background: var(--app-surface-muted);
  border-color: rgba(82, 99, 93, 0.7);
}

body.premium-interface-dark .brand-mark,
body.premium-interface-dark .mobile-utility-toggle {
  color: #f3fbf8;
  background: rgba(var(--brand-primary-rgb), 0.16);
  border-color: rgba(var(--brand-primary-rgb), 0.24);
}

body.premium-interface-dark .user-menu-toggle,
body.premium-interface-dark .user-menu-dropdown {
  color: var(--app-text);
  background: var(--app-surface-elevated);
  border-color: var(--app-border);
}

body.premium-interface-dark .eyebrow,
body.premium-interface-dark .topbar-subtitle,
body.premium-interface-dark .topbar-user,
body.premium-interface-dark .mobile-utility-label,
body.premium-interface-dark .summary-list-main small,
body.premium-interface-dark .metric span,
body.premium-interface-dark .dashboard-stat-card span,
body.premium-interface-dark .premium-editor-head p,
body.premium-interface-dark .premium-interface-preview-note {
  color: var(--app-text-muted);
}

body.premium-interface-dark .metric strong,
body.premium-interface-dark .dashboard-stat-card strong,
body.premium-interface-dark .panel h3,
body.premium-interface-dark .topbar h2,
body.premium-interface-dark .brand h1,
body.premium-interface-dark .panel h4,
body.premium-interface-dark strong {
  color: #f2f9f6;
}

body.premium-interface-dark .nav-tab {
  color: #d8e6e1;
}

body.premium-interface-dark .nav-tab.active,
body.premium-interface-dark .nav-tab:hover {
  background: rgba(var(--brand-primary-rgb), 0.12);
  border-color: rgba(var(--brand-primary-rgb), 0.24);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.premium-interface-dark .topbar-badge,
body.premium-interface-dark .premium-lock-chip,
body.premium-interface-dark .premium-preview-chip {
  color: #eef8f5;
  background: rgba(var(--brand-primary-rgb), 0.16);
  border-color: rgba(var(--brand-primary-rgb), 0.22);
}

body.premium-interface-dark .secondary-button,
body.premium-interface-dark .ghost-button,
body.premium-interface-dark .mobile-utility-action,
body.premium-interface-dark .user-menu-item {
  color: var(--app-button-secondary-text);
  background: var(--app-button-secondary-bg);
  border-color: var(--app-border);
}

body.premium-interface-dark .secondary-button:hover,
body.premium-interface-dark .ghost-button:hover,
body.premium-interface-dark .mobile-utility-action:hover,
body.premium-interface-dark .user-menu-item:hover,
body.premium-interface-dark .user-menu-item:focus-visible {
  border-color: rgba(var(--brand-primary-rgb), 0.28);
  background: rgba(22, 34, 30, 0.96);
}

body.premium-interface-dark .mobile-utility-nav-item.active {
  color: #f8fbff;
  background: rgba(var(--brand-primary-rgb), 0.22);
  border-color: rgba(122, 233, 235, 0.46);
  box-shadow:
    inset 4px 0 0 rgba(122, 233, 235, 0.78),
    0 12px 24px rgba(2, 10, 18, 0.38);
}

body.premium-interface-dark .mobile-utility-action-feature {
  color: #d7f0f6;
  background: rgba(34, 52, 64, 0.88);
  border-color: rgba(90, 140, 161, 0.48);
}

body.premium-interface-dark .mobile-utility-action-feature.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(71, 161, 194, 0.92), rgba(83, 122, 221, 0.88));
  border-color: rgba(120, 194, 235, 0.68);
}

body.premium-interface-dark .mobile-utility-action-danger {
  color: #ffcad5;
  background: rgba(82, 32, 42, 0.72);
  border-color: rgba(170, 84, 104, 0.58);
}

body.premium-interface-dark .user-menu-item-danger {
  color: #f7cad4;
  background: rgba(72, 24, 36, 0.88);
  border-color: rgba(137, 73, 88, 0.82);
}

body.premium-interface-dark .user-menu-item-danger:hover,
body.premium-interface-dark .user-menu-item-danger:focus-visible {
  background: rgba(86, 30, 43, 0.94);
  border-color: rgba(171, 92, 111, 0.9);
}

body.premium-interface-dark input,
body.premium-interface-dark select,
body.premium-interface-dark textarea {
  color: var(--app-input-text);
  background: var(--app-input-bg);
  border-color: var(--app-border);
}

body.premium-interface-dark input::placeholder,
body.premium-interface-dark textarea::placeholder,
body.premium-interface-dark select {
  color: #9db1ab;
}

body.premium-interface-dark .analytics-toolbar,
body.premium-interface-dark .analytics-panel,
body.premium-interface-dark .analytics-metric-card,
body.premium-interface-dark .analytics-table,
body.premium-interface-dark .partner-hero-panel,
body.premium-interface-dark .partner-stats-panel,
body.premium-interface-dark .partner-how-panel,
body.premium-interface-dark .partner-table-panel,
body.premium-interface-dark .partner-hero-link-card,
body.premium-interface-dark .partner-link-input-wrap input,
body.premium-interface-dark .dispatch-upload,
body.premium-interface-dark .dispatch-template-fold,
body.premium-interface-dark .dispatch-group-card,
body.premium-interface-dark .dispatch-selected-group,
body.premium-interface-dark .dispatch-summary-card,
body.premium-interface-dark .dispatch-sidebar-block,
body.premium-interface-dark .dispatch-picker-panel,
body.premium-interface-dark .dispatch-group-picker-item,
body.premium-interface-dark .dispatch-queue,
body.premium-interface-dark .dispatch-template,
body.premium-interface-dark .dispatch-mapping,
body.premium-interface-dark .dispatch-card,
body.premium-interface-dark .dispatch-workspace > section[data-communication-panel],
body.premium-interface-dark .broadcast-overview,
body.premium-interface-dark .broadcast-tools,
body.premium-interface-dark .broadcast-inline-answers,
body.premium-interface-dark .broadcast-answer-card,
body.premium-interface-dark .event-summary article,
body.premium-interface-dark .recipient-channel-group,
body.premium-interface-dark .archive-box,
body.premium-interface-dark .recipient-row,
body.premium-interface-dark .schedule-section-surface,
body.premium-interface-dark .schedule-setting-card,
body.premium-interface-dark .schedule-setting-field,
body.premium-interface-dark .schedule-mode-card,
body.premium-interface-dark .weekly-schedule-table,
body.premium-interface-dark .schedule-hint,
body.premium-interface-dark .week-strip .month-day,
body.premium-interface-dark .month-day,
body.premium-interface-dark .timeline-item,
body.premium-interface-dark .booking-row-card.is-expanded .booking-row-toggle,
body.premium-interface-dark .booking-note,
body.premium-interface-dark .booking-response-note,
body.premium-interface-dark .booking-message-preview,
body.premium-interface-dark .service-option,
body.premium-interface-dark .data-card,
body.premium-interface-dark .due-item,
body.premium-interface-dark .slot-button,
body.premium-interface-dark .date-button,
body.premium-interface-dark .summary-list-item,
body.premium-interface-dark .client-directory-row,
body.premium-interface-dark .client-preview-card,
body.premium-interface-dark .confirm-card,
body.premium-interface-dark .form-fold-heading,
body.premium-interface-dark .list-create-form,
body.premium-interface-dark .broadcast-mode-help,
body.premium-interface-dark .public-link-card,
body.premium-interface-dark .partner-status-chip,
body.premium-interface-dark .communication-tab {
  color: var(--app-text);
  background: var(--app-surface);
  border-color: var(--app-border);
}

body.premium-interface-dark .analytics-toolbar,
body.premium-interface-dark .partner-hero-panel,
body.premium-interface-dark .broadcast-overview,
body.premium-interface-dark .broadcast-tools,
body.premium-interface-dark .broadcast-inline-answers,
body.premium-interface-dark .schedule-section-surface-subtle,
body.premium-interface-dark .dispatch-import,
body.premium-interface-dark .dispatch-upload,
body.premium-interface-dark .booking-time,
body.premium-interface-dark .dashboard-stat-card,
body.premium-interface-dark .metric,
body.premium-interface-dark .summary-list-item,
body.premium-interface-dark .service-option,
body.premium-interface-dark .due-item,
body.premium-interface-dark .data-card,
body.premium-interface-dark .slot-button,
body.premium-interface-dark .date-button,
body.premium-interface-dark .timeline-item,
body.premium-interface-dark .client-directory-row {
  background: var(--app-surface-muted);
}

body.premium-interface-dark .topbar-user,
body.premium-interface-dark .topbar-badge,
body.premium-interface-dark .brand .eyebrow,
body.premium-interface-dark .nav-label,
body.premium-interface-dark .field,
body.premium-interface-dark .field-hint,
body.premium-interface-dark .section-subtitle,
body.premium-interface-dark .dispatch-import-note,
body.premium-interface-dark .dispatch-preview,
body.premium-interface-dark .dispatch-meta span,
body.premium-interface-dark .dispatch-mode-note,
body.premium-interface-dark .dispatch-empty-state,
body.premium-interface-dark .booking-main small,
body.premium-interface-dark .booking-time span,
body.premium-interface-dark .booking-response-line small,
body.premium-interface-dark .broadcast-text-note,
body.premium-interface-dark .broadcast-recipient-hint,
body.premium-interface-dark .partner-link-helper,
body.premium-interface-dark .partner-table-empty,
body.premium-interface-dark .public-master-about,
body.premium-interface-dark .schedule-inline-meta,
body.premium-interface-dark .schedule-inline-note,
body.premium-interface-dark .schedule-mode-card small,
body.premium-interface-dark .public-link-card input,
body.premium-interface-dark .analytics-note,
body.premium-interface-dark .analytics-loading,
body.premium-interface-dark .analytics-empty-state,
body.premium-interface-dark .analytics-bar-label.is-muted {
  color: var(--app-text-muted);
}

body.premium-interface-dark .analytics-table th,
body.premium-interface-dark .analytics-table td,
body.premium-interface-dark .partner-table th,
body.premium-interface-dark .partner-table td {
  border-color: var(--app-border);
  color: var(--app-text);
}

body.premium-interface-dark .brand-mark svg,
body.premium-interface-dark .brand-mark img,
body.premium-interface-dark .topbar-user,
body.premium-interface-dark .topbar-badge,
body.premium-interface-dark .topbar-user strong {
  color: #f2f9f6;
}

body.premium-interface-dark .nav-tab.active,
body.premium-interface-dark .nav-tab-feature.active {
  color: #f3fbf8;
}

body.premium-interface-dark .nav-tab-feature {
  background: rgba(18, 27, 24, 0.96);
  border-color: var(--app-border);
}

body.premium-interface-dark .communication-tab.is-disabled,
body.premium-interface-dark .month-day.is-outside-month,
body.premium-interface-dark .status.completed,
body.premium-interface-dark .status.unknown {
  color: #98aca6;
  background: rgba(24, 33, 31, 0.92);
  border-color: rgba(82, 99, 93, 0.66);
}

body.premium-interface-dark .booking-time strong,
body.premium-interface-dark .metric strong,
body.premium-interface-dark .dashboard-stat-card strong,
body.premium-interface-dark .event-summary strong,
body.premium-interface-dark .analytics-metric-card strong {
  color: #f2f9f6;
}

body.premium-interface-dark .timeline-item.is-confirmed .booking-time,
body.premium-interface-dark .recipient-row.response-yes,
body.premium-interface-dark .due-item.priority-remind,
body.premium-interface-dark .status.confirmed {
  background: rgba(17, 53, 43, 0.82);
}

body.premium-interface-dark .timeline-item.is-pending .booking-time,
body.premium-interface-dark .recipient-row.response-call,
body.premium-interface-dark .due-item.priority-follow-up,
body.premium-interface-dark .status.pending,
body.premium-interface-dark .status.waiting {
  background: rgba(68, 55, 19, 0.82);
}

body.premium-interface-dark .timeline-item.is-declined .booking-time,
body.premium-interface-dark .recipient-row.response-no,
body.premium-interface-dark .due-item.priority-lost,
body.premium-interface-dark .status.declined,
body.premium-interface-dark .status.cancelled {
  background: rgba(70, 24, 35, 0.82);
}

body.premium-interface-dark .timeline-item.is-reschedule .booking-time,
body.premium-interface-dark .status.reschedule,
body.premium-interface-dark .status.rescheduled {
  background: rgba(35, 41, 78, 0.82);
}

body.premium-interface-dark .booking-row-toggle,
body.premium-interface-dark .day-row-toggle,
body.premium-interface-dark .schedule-mode-card-control,
body.premium-interface-dark .fold-chevron,
body.premium-interface-dark .recipient-chevron,
body.premium-interface-dark .dispatch-template-trigger,
body.premium-interface-dark .dispatch-date-tab,
body.premium-interface-dark .schedule-setting-card:has(.compact-toggle-row),
body.premium-interface-dark .compact-toggle-row {
  color: var(--app-text);
  background: var(--app-surface-elevated);
  border-color: var(--app-border);
}

body.premium-interface-dark .analytics-period-field select,
body.premium-interface-dark .partner-link-field input,
body.premium-interface-dark .dispatch-search-field input,
body.premium-interface-dark .dispatch-date-input,
body.premium-interface-dark .dispatch-date-input input,
body.premium-interface-dark .broadcast-output textarea,
body.premium-interface-dark .dispatch-template textarea,
body.premium-interface-dark .password-field input {
  background: var(--app-input-bg);
  color: var(--app-input-text);
  border-color: var(--app-border);
}


.dashboard-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
}

.dashboard-hero h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.dashboard-hero-copy p:last-child {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-hero-copy > :last-child.onboarding-hero-hint {
  margin-top: 6px;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#createTestBookingHero {
  display: none;
}

#dashboardView.is-onboarding #createTestBookingHero {
  display: inline-flex;
}

#dashboardView.is-onboarding #createFirstBookingHero,
#dashboardView.is-onboarding .value-points {
  display: none;
}

.onboarding-hero-hint {
  margin-top: 10px;
  color: var(--mint-dark);
  font-weight: 800;
}

.value-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.value-point {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-items: start;
  min-height: 56px;
  padding: 12px 14px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.4;
}

.value-point strong {
  font-size: 16px;
}

.value-point small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-heading > div > :first-child.section-note {
  margin-top: 0;
}

.view,
.step {
  display: none;
}

.view.active,
.step.active {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-bottom: 18px;
}

.onboarding-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fffef9 0%, #fff7dd 100%);
  border-color: #e4cb7a;
}

.onboarding-banner h3 {
  margin: 0;
  line-height: 1.3;
}

.dashboard-quick-actions {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.dashboard-quick-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-quick-actions-row .primary-button,
.dashboard-quick-actions-row .secondary-button {
  flex: 0 0 auto;
}

.notification-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.notification-panel-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #16634f;
  background: #eef7f4;
  border: 1px solid #bfe0d5;
  border-radius: 8px;
}

.notification-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.notification-panel h3,
.notification-panel p {
  margin: 0;
}

.notification-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.notification-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.notification-actions {
  justify-content: end;
}

.notification-actions [data-action] {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.notification-actions [data-action][data-disabled="true"] {
  opacity: 0.68;
  cursor: default;
}

.iphone-push-hint {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  color: #33413b;
  background: #fffdf4;
  border: 1px solid #e4d79a;
  border-radius: 8px;
}

.iphone-push-hint ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .notification-panel {
    grid-template-columns: 1fr;
  }

  .notification-actions {
    justify-content: start;
  }

  .sidebar {
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
  }

  .brand {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand-main {
    gap: 10px;
    min-width: 0;
  }

  .brand-main > div {
    min-width: 0;
  }

  .brand h1 {
    font-size: 22px;
  }

  .mobile-utility {
    display: block;
  }

  .topbar-actions,
  .topbar-user {
    display: none;
  }

  .landing-topbar {
    gap: 12px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 16px;
    padding-top: 2px;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .topbar-subtitle {
    margin-top: 2px;
    font-size: 14px;
  }

  .nav-tabs {
    display: none !important;
  }

  .mobile-utility-menu {
    width: min(340px, calc(100vw - 24px));
  }

  .workspace {
    padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  }

  .public-page {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .public-profile {
    padding: 16px;
  }

  .public-profile .client-preview-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .client-preview-card {
    gap: 14px;
    padding: 14px;
  }

  .client-preview-image {
    width: min(100%, 180px);
    max-width: 180px;
    justify-self: center;
  }

  .client-preview-header strong,
  .public-profile h3 {
    overflow-wrap: anywhere;
  }
}

.master-booking-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: var(--mint-dark);
  background: #eef7f4;
  border: 1px solid #bfe0d5;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.client-link-panel {
  margin-bottom: 18px;
}

.client-link-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.client-link-summary::-webkit-details-marker {
  display: none;
}

.client-link-summary h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.client-link-toggle {
  color: var(--mint-dark);
  font-weight: 800;
}

.client-link-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-row {
  justify-content: start;
}

.metric,
.panel,
.public-profile,
.booking-flow {
  background: var(--panel);
  border: 1px solid rgba(194, 208, 201, 0.9);
  border-radius: var(--brand-card-radius);
  box-shadow: var(--brand-card-shadow);
}

.metric {
  display: grid;
  align-content: start;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.metric-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.metric-button.is-active {
  border-color: #8fd1c0;
  box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.12), 0 14px 28px rgba(23, 32, 28, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf7 100%);
}

.metric:hover,
.panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: var(--mint-dark);
}

.summary-grid-soft {
  margin-top: 14px;
}

.dashboard-stats-grid {
  margin-bottom: 0;
}

.dashboard-stat-card {
  min-height: 104px;
  padding: 16px 16px 14px;
  background: #fbfcfb;
  border-color: #d7e1dc;
  box-shadow: none;
}

.dashboard-stat-card:hover {
  border-color: #c2d2cb;
  box-shadow: none;
}

.dashboard-stat-card.is-active {
  border-color: #b7d3ca;
  box-shadow: inset 0 0 0 1px rgba(22, 160, 133, 0.12);
  background: #f6faf8;
}

.dashboard-stat-card span {
  min-height: 0;
  color: #63726d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-stat-card strong {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
  color: #20332d;
}

.dashboard-summary-secondary-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dashboard-workspace {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.dashboard-summary-panel {
  gap: 16px;
}

.dashboard-summary-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.summary-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-list-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.summary-list-person,
.due-person,
.booking-row-client-wrap,
.client-list-person,
.client-detail-person {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.summary-list-person {
  font-weight: 800;
}

.client-list-person {
  width: 100%;
}

.client-list-person-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.summary-list-main strong,
.summary-list-main small {
  overflow-wrap: anywhere;
}

.summary-list-main small {
  color: var(--muted);
}

.summary-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-detail-panel {
  align-self: start;
  position: sticky;
  top: 0;
}

.profile-photo-preview {
  display: block;
  width: min(260px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f7;
}

.panel {
  display: grid;
  align-content: start;
  padding: 18px;
}

.area-card {
  position: relative;
  overflow: hidden;
}

.area-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--line);
}

.area-card-booking::before {
  background: var(--mint);
}

.area-card-communication::before {
  background: var(--comm);
}

.muted-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  box-shadow: 0 6px 16px rgba(23, 32, 28, 0.035);
}

.priority-panel {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.section-divider {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.broadcast-page {
  display: grid;
  gap: 20px;
  padding: 2px;
}

.dispatch-page {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dispatch-import {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
}

.clients-directory {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.clients-actions,
.clients-workspace {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.clients-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 280px);
}

.clients-toolbar-search {
  grid-template-columns: minmax(260px, 1fr);
}

.clients-sidebar-block {
  display: grid;
  gap: 10px;
  padding: 12px 0 0;
  background: transparent;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
}

.clients-sidebar-header {
  display: grid;
  gap: 6px;
}

.clients-sidebar-header h4,
.clients-sidebar-header p {
  margin: 0;
}

.clients-sidebar-actions {
  display: grid;
  gap: 8px;
}

.clients-actions .dispatch-upload,
.clients-sidebar-block,
.clients-workspace > .dispatch-summary-grid,
.clients-toolbar,
.client-directory-row,
.client-detail,
.client-create-card {
  max-width: 100%;
  min-width: 0;
}

.dispatch-upload {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
  background: #f6fbfc;
  border: 1px dashed #98c5d2;
  border-radius: 8px;
  font-weight: 700;
}

.dispatch-upload input {
  width: 100%;
  color: var(--ink);
}

.dispatch-upload strong {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--comm);
  border-radius: 8px;
}

.dispatch-import-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.communication-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.communication-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #c9dfe6;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(14, 34, 48, 0.03);
}

.communication-tab.active {
  color: #ffffff;
  background: var(--comm);
  border-color: var(--comm);
}

.communication-tab.is-disabled {
  color: var(--muted);
  background: #f4f6f8;
  border-color: var(--line);
  cursor: not-allowed;
}

.dispatch-template-fold {
  border: 1px solid #dde7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.dispatch-template-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dispatch-template-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.dispatch-template-trigger {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #b9dbe4;
  border-radius: 8px;
  background: #f7fbfc;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

.dispatch-template-trigger::after {
  content: "Открыть";
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dispatch-template-trigger[aria-expanded="true"]::after {
  content: "Скрыть";
}

.dispatch-template-trigger[aria-expanded="true"] {
  border-color: #63bdd3;
  background: #eef8fb;
  box-shadow: none;
}

.dispatch-template-toggle {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
}

.dispatch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.dispatch-search-field {
  min-width: 220px;
  margin-left: auto;
}

.dispatch-search-field input {
  min-width: 200px;
}

.dispatch-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.dispatch-date-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.dispatch-date-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatch-date-tab {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 700;
}

.dispatch-date-tab.active {
  color: #ffffff;
  background: var(--comm);
  border-color: var(--comm);
}

.dispatch-date-input {
  min-width: 200px;
}

.dispatch-summary-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.dispatch-summary-title strong {
  font-size: 24px;
}

.dispatch-summary-title span {
  color: var(--muted);
}

.dispatch-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.dispatch-summary-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #fbfcfc;
  border: 1px solid #e2eaee;
  border-radius: 8px;
  box-shadow: none;
}

.dispatch-summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.dispatch-summary-card strong {
  font-size: 20px;
  font-weight: 600;
}

.dispatch-selected-group {
  display: grid;
  gap: 6px;
  padding: 12px 0 0;
  background: transparent;
  border: 1px solid #e2eaee;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.dispatch-selected-group strong,
.dispatch-selected-group small,
.dispatch-selected-group p {
  margin: 0;
}

.dispatch-selected-group small,
.dispatch-selected-group p {
  color: var(--muted);
}

.dispatch-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.dispatch-search-control,
.dispatch-filter-control {
  min-width: 0;
}

.dispatch-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dispatch-action-strip button,
.dispatch-group-actions button,
.dispatch-mapping-actions button {
  min-height: 44px;
  border-radius: 12px;
}

.dispatch-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dispatch-filter-tab {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
}

.dispatch-filter-tab.active {
  background: #eef8fb;
  border-color: #63bdd3;
  color: #1d4c5a;
}

.dispatch-pagination {
  display: flex;
  justify-content: center;
}

.dispatch-mode-note,
.dispatch-empty-state {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f8fbfc;
  border: 1px solid #e0eaee;
  border-radius: 12px;
}

.dispatch-mode-note strong,
.dispatch-empty-state h4,
.dispatch-empty-state p {
  margin: 0;
}

.dispatch-mode-note p {
  margin: 0;
  color: var(--muted);
}

.soft-empty-state {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  background: linear-gradient(180deg, #fbfdfd 0%, #f4f8f8 100%);
  border: 1px solid #dde8ea;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(26, 44, 39, 0.05);
}

.soft-empty-state--center {
  justify-items: center;
  text-align: center;
}

.soft-empty-state-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #58786d;
  background: #eaf3f0;
  border: 1px solid #d3e3de;
  border-radius: 16px;
}

.soft-empty-state-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.soft-empty-state-copy {
  display: grid;
  gap: 8px;
}

.soft-empty-state-copy h4,
.soft-empty-state-copy p {
  margin: 0;
}

.soft-empty-state-copy p {
  color: var(--muted);
}

.soft-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-empty-state-actions button {
  min-height: 44px;
}

.dashboard-empty-state-card,
.communications-empty-state-card {
  min-height: 100%;
}

#clientsEmptyState,
#communicationsEmptyState,
#profileCompletionHint {
  min-width: 0;
}

#clientsEmptyState .soft-empty-state,
#communicationsEmptyState .soft-empty-state {
  min-height: 220px;
  align-content: center;
}

.dispatch-group-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dispatch-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.dispatch-group-choice {
  flex: 1 1 280px;
}

.dispatch-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatch-group-meta,
.dispatch-group-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dispatch-group-details {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.campaign-history-actions,
.campaign-response-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.dispatch-group-manager {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f6fbfc;
  border: 1px solid #d7e8ee;
  border-radius: 12px;
}

.dispatch-group-manager h4,
.dispatch-group-manager p {
  margin: 0;
}

.dispatch-group-manager p {
  color: var(--muted);
}

.dispatch-group-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dispatch-client-row {
  border: 1px solid #e6edf1;
  border-radius: 10px;
  overflow: hidden;
}

.dispatch-client-button {
  width: 100%;
}

.dispatch-sticky-bar {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #c9dfe6;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(13, 35, 54, 0.12);
}

.dispatch-sticky-bar.is-visible {
  display: flex;
}

.dispatch-template {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.dispatch-template h4,
.dispatch-template p {
  margin: 0;
}

.dispatch-template p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dispatch-template textarea {
  padding: 14px 16px;
  resize: vertical;
  border-radius: 12px;
  line-height: 1.5;
}

.dispatch-inline-warning {
  padding: 12px 14px;
  background: #fff8e8;
  border: 1px solid #f2d18b;
  border-radius: 12px;
  color: #7a5715;
  font-size: 13px;
  line-height: 1.5;
}

.dispatch-template-fold[open] + .dispatch-sidebar-block,
.dispatch-template-header + .dispatch-template-fold {
  margin-top: 0;
}

.dispatch-sidebar-cards {
  display: grid;
  gap: 24px;
  padding-top: 16px;
}

.dispatch-sidebar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid #dfe8ec;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(13, 35, 54, 0.05);
}

.dispatch-sidebar-header {
  display: grid;
  gap: 6px;
}

.dispatch-sidebar-header h4,
.dispatch-sidebar-header p {
  margin: 0;
}

.dispatch-sidebar-header .dispatch-section-title {
  font-size: 16px;
}

.dispatch-picker-panel {
  display: grid;
  gap: 12px;
}

.dispatch-selection-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dispatch-group-picker-item {
  display: block;
  padding: 14px;
  background: #fbfcfc;
  border: 1px solid #e2eaee;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dispatch-group-picker-item .dispatch-choice {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.dispatch-group-picker-item strong,
.dispatch-group-picker-item small {
  display: block;
}

.dispatch-group-picker-item strong + small {
  margin-top: 6px;
}

.dispatch-group-picker-item .communication-group-select {
  width: 20px;
  height: 20px;
  accent-color: var(--comm);
}

.dispatch-group-picker-item.is-selected {
  background: #f1fbff;
  border-color: #63bdd3;
  box-shadow: 0 10px 22px rgba(40, 116, 134, 0.08);
}

.dispatch-group-picker-item:hover {
  border-color: #b8d8e1;
}

.dispatch-queue {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
  background: transparent;
  border: 1px solid #e2eaee;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.dispatch-queue-header,
.dispatch-queue-recipient {
  display: grid;
  gap: 8px;
}

.dispatch-queue-header h4,
.dispatch-queue-header p,
.dispatch-queue-recipient strong,
.dispatch-queue-recipient small {
  margin: 0;
}

.dispatch-queue-recipient {
  padding: 12px 14px;
  background: #f8fbfc;
  border: 1px solid #e0eaee;
  border-radius: 8px;
}

.dispatch-queue-recipient small,
.dispatch-queue-progress {
  color: var(--muted);
}

.dispatch-queue textarea[readonly] {
  background: #fbfdfe;
}

.dispatch-queue-nav {
  padding-top: 4px;
  border-top: 1px solid #edf3f6;
}

.dispatch-group-settings {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
  background: transparent;
  border: 1px solid #e2eaee;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.dispatch-group-settings-header {
  display: grid;
  gap: 6px;
}

.dispatch-group-settings-header h4,
.dispatch-group-settings-header p,
.dispatch-group-settings-actions {
  margin: 0;
}

.dispatch-group-settings-header p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dispatch-group-settings-header [data-dispatch-limit-summary] {
  color: var(--ink);
  font-weight: 600;
}

.dispatch-selected-group {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #f6fafb;
  border: 1px solid #dbe8ec;
  border-radius: 14px;
}

.dispatch-selected-group strong,
.dispatch-selected-group small,
.dispatch-selected-group p {
  margin: 0;
}

.dispatch-selected-group small,
.dispatch-mode-note {
  color: var(--muted);
}

.dispatch-limit-toggle .checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.dispatch-workspace {
  display: grid;
  gap: 24px;
  align-content: start;
}

.dispatch-workspace > section[data-communication-panel] {
  display: grid;
  gap: 18px;
}

.dispatch-workspace .dispatch-action-strip {
  row-gap: 10px;
}

.dispatch-workspace .campaign-prepared-list,
.dispatch-workspace .campaign-history,
.dispatch-workspace .dispatch-queue {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid #dfe8ec;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(13, 35, 54, 0.05);
}

.dispatch-workspace .dispatch-queue {
  gap: 14px;
}

.dispatch-workspace .dispatch-queue-nav {
  margin-top: 2px;
}

#campaignGroupSelectField {
  display: grid;
  gap: 16px;
}

#campaignGroupSelectField .field {
  gap: 12px;
}

#campaignGroupSelectField .dispatch-selection-tools {
  gap: 12px;
  align-items: stretch;
}

#campaignGroupSelectField .dispatch-selection-tools button {
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 12px;
  justify-content: center;
  text-align: center;
}

#campaignGroupPickerList {
  display: grid;
  gap: 18px;
}

#campaignGroupPickerList .dispatch-group-picker-item {
  padding: 16px;
  border-radius: 14px;
}

.dispatch-mapping {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fbfcfc;
  border: 1px solid #c9dfe6;
  border-radius: 8px;
}

.dispatch-mapping h4,
.dispatch-mapping p {
  margin: 0;
}

.dispatch-mapping p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dispatch-mapping-fields {
  display: grid;
  gap: 10px;
}

.dispatch-mapping-row {
  gap: 5px;
}

.dispatch-mapping-actions {
  display: flex;
  gap: 12px;
}

#dispatchImportResult {
  white-space: pre-line;
}

.dispatch-workspace {
  display: grid;
  gap: 16px;
}

.dispatch-filters {
  display: grid;
  gap: 12px;
  align-items: end;
}

.dispatch-filters-muted {
  padding: 12px 14px;
  background: #f6fbfc;
  border: 1px solid #c9dfe6;
  border-radius: 8px;
}

.dispatch-filters-muted p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dispatch-period {
  display: flex;
  gap: 6px;
  align-self: end;
}

.dispatch-period .chip.active {
  color: #ffffff;
  background: var(--comm);
  border-color: var(--comm);
}

.dispatch-actions-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--comm-soft);
  border: 1px solid #c9dfe6;
  border-radius: 8px;
}

.dispatch-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-weight: 700;
}

.dispatch-select-all input,
.dispatch-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--comm);
}

.dispatch-list {
  display: grid;
  gap: 12px;
}

.dispatch-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dispatch-card.compact {
  gap: 0;
  padding: 0;
}

.dispatch-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.dispatch-choice span {
  display: grid;
  gap: 4px;
}

.dispatch-choice strong {
  display: block;
  margin: 0;
}

.dispatch-choice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.dispatch-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 0;
}

.dispatch-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-items: end;
}

.dispatch-row-phone {
  color: var(--muted);
  font-size: 13px;
}

.dispatch-row-details {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.campaign-prepared-recipient {
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.campaign-prepared-recipient-main,
.campaign-prepared-recipient-text {
  min-width: 0;
}

.campaign-copy-message-button {
  white-space: nowrap;
}

.campaign-prepared-recipient.is-highlighted {
  border-color: #b8d6c8;
  background: #f3faf5;
  box-shadow: 0 0 0 1px rgba(93, 145, 110, 0.08);
}

.campaign-recipient-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.campaign-recipient-badge.is-pending {
  background: #f4efe2;
  color: #86691a;
}

.campaign-recipient-badge.is-copied {
  background: #e7f0ff;
  color: #2353a3;
}

.campaign-recipient-badge.is-sent {
  background: #efe9ff;
  color: #5c3aa6;
}

.campaign-recipient-badge.is-opened {
  background: #fff2df;
  color: #9a5a17;
}

.campaign-recipient-badge.is-responded {
  background: #e5f7eb;
  color: #1f7a43;
}

.campaign-recipient-badge.is-confirmed,
.campaign-recipient-badge.is-ready {
  background: #e5f7eb;
  color: #1f7a43;
}

.campaign-recipient-badge.is-declined {
  background: #fde8e7;
  color: #b24137;
}

.campaign-recipient-badge.is-reschedule,
.campaign-recipient-badge.is-progress {
  background: #e9f0ff;
  color: #3557b7;
}

.campaign-recipient-badge.is-waiting,
.campaign-recipient-badge.is-draft {
  background: #eef1f3;
  color: #5d6972;
}

.campaign-recipient-badge.is-complete {
  background: #e5f7eb;
  color: #1f7a43;
}

.campaign-response-card,
.campaign-upcoming-card {
  gap: 14px;
}

.campaign-response-head {
  align-items: start;
}

.campaign-response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.campaign-response-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.campaign-response-grid strong {
  display: block;
  color: var(--ink);
}

.campaign-response-comment {
  margin: 0;
  padding: 12px 14px;
  background: #f8fbfc;
  border: 1px solid #e0eaee;
  border-radius: 12px;
  color: var(--ink);
}

.campaign-repeat-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fbfc;
  border: 1px solid #e0eaee;
  border-radius: 14px;
}

.campaign-repeat-toggle {
  margin: 0;
}

.campaign-repeat-fields {
  display: grid;
  gap: 12px;
}

@media (max-width: 720px) {
  .dispatch-selection-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .dispatch-row.campaign-prepared-recipient {
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
  }

  .dispatch-row.campaign-prepared-recipient .dispatch-row-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .campaign-history-actions,
  .campaign-response-badges {
    width: 100%;
    justify-content: flex-start;
  }
}

.client-directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 10px 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e2eaee;
  border-radius: 8px;
  background: #fbfcfc;
}

.client-directory-row .dispatch-choice {
  min-width: 0;
}

.client-directory-row .dispatch-choice > span {
  min-width: 0;
}

.client-directory-row .edit-client {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.client-directory-row .client-edit-form {
  grid-column: 1 / -1;
  width: 100%;
}

.dispatch-preview {
  margin: 0;
  white-space: pre-line;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dispatch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dispatch-meta span {
  padding: 5px 9px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.dispatch-message textarea {
  resize: vertical;
}

.dispatch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatch-card-actions button {
  min-height: 46px;
}

.status.prepared {
  color: #8a6d1a;
  background: #fff7da;
}

.status.sent {
  color: var(--comm-dark);
  background: var(--comm-soft);
}

.dispatch-empty {
  padding: 34px 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .dispatch-steps {
    grid-template-columns: 1fr;
  }

  .dispatch-toolbar {
    grid-template-columns: 1fr;
  }

  .dispatch-search-field {
    min-width: 0;
    margin-left: 0;
  }

  .dispatch-sticky-bar {
    bottom: 8px;
  }

  .dispatch-group-head,
  .dispatch-date-tabs {
    display: grid;
    width: 100%;
  }

  .dispatch-group-manager-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-row {
    align-items: start;
  }

  .dispatch-row-meta {
    justify-items: start;
  }

  .dispatch-group-head .ghost-button,
  .dispatch-action-strip button,
  .dispatch-sticky-bar button,
  .dispatch-date-tab {
    width: 100%;
  }
}

.broadcast-page .panel {
  border-color: #c9dfe6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  box-shadow: 0 10px 24px rgba(39, 90, 109, 0.06);
}

.broadcast-overview {
  gap: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #f9fcfd 0%, var(--comm-soft) 100%);
  border-color: #a9cfd9;
  box-shadow: 0 10px 26px rgba(63, 127, 149, 0.09);
}

.broadcast-compose,
.broadcast-output,
.broadcast-recipients-panel {
  position: relative;
  overflow: hidden;
}

.broadcast-compose::before,
.broadcast-output::before,
.broadcast-recipients-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  content: "";
}

.broadcast-compose::before {
  background: var(--comm);
}

.broadcast-output::before {
  background: var(--gold);
}

.broadcast-recipients-panel::before {
  background: var(--rose);
}

.broadcast-page .section-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid #d4e6eb;
}

.broadcast-page .eyebrow {
  color: var(--comm-dark);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.ghost-button,
.chip {
  min-height: var(--brand-button-min-height);
  padding: var(--brand-button-padding);
  border-radius: var(--brand-button-radius);
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(180deg, var(--brand-primary-gradient-start) 0%, var(--brand-primary-gradient-end) 100%);
  box-shadow: var(--brand-button-shadow);
}

.primary-button:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary-gradient-start) 86%, white) 0%, color-mix(in srgb, var(--brand-primary-gradient-end) 92%, #0c1114) 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--brand-primary-rgb), 0.28);
}

.secondary-button,
.ghost-button,
.chip {
  color: var(--brand-secondary-text);
  background: var(--brand-secondary-background);
  border-color: var(--brand-secondary-border);
  box-shadow: none;
}

.ghost-button {
  background: transparent;
}

.secondary-button:hover,
.ghost-button:hover,
.chip:hover,
.danger-button:hover {
  transform: translateY(-1px);
  border-color: #b7cbc3;
}

.timeline,
.week-list,
.due-list,
.cards-list,
.schedule-list,
.slot-grid,
.service-options,
  .date-grid,
  .recipient-list {
  display: grid;
  gap: 14px;
}

.cards-list.is-long,
.due-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.timeline-item,
.week-day,
.due-item,
.data-card,
.day-row,
.slot-button,
.date-button,
.service-option,
.repeat-box,
.recipient-row {
  padding: 14px;
  background: #fbfcfb;
  border: 1px solid var(--brand-slot-border);
  border-radius: var(--brand-card-radius);
}

.due-item,
.data-card,
.service-option,
.repeat-box,
.slot-button,
.date-button {
  box-shadow: var(--brand-card-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.due-item:hover,
.data-card:hover,
.service-option:hover,
.repeat-box:hover,
.slot-button:hover,
.date-button:hover {
  border-color: var(--brand-slot-hover-border);
  box-shadow: var(--brand-card-hover-shadow);
  transform: translateY(-1px);
}

.due-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.due-main {
  display: grid;
  gap: 5px;
}

.due-person {
  font-weight: 800;
}

.due-main strong,
.due-main small {
  display: block;
}

.due-main small {
  color: var(--muted);
  font-weight: 700;
}

.due-priority {
  justify-self: start;
  padding: 4px 8px;
  color: var(--muted);
  background: #f0f3f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.due-item.priority-lost {
  border-color: #efb6c0;
  background: linear-gradient(180deg, #fff9fa 0%, #fff2f4 100%);
}

.due-item.priority-lost .due-priority {
  color: #9f3043;
  background: #fff0f4;
  border-color: #f0bcc8;
}

.due-item.priority-follow-up {
  border-color: #ead18a;
  background: linear-gradient(180deg, #fffef8 0%, #fff8e8 100%);
}

.due-item.priority-follow-up .due-priority {
  color: #7d6a25;
  background: #fff6d7;
  border-color: #ead18a;
}

.due-item.priority-remind .due-priority {
  color: var(--mint-dark);
  background: #eef7f4;
  border-color: #bfe0d5;
}

.due-item.is-prepared {
  opacity: 0.66;
}

.due-prepared {
  color: var(--success);
  font-weight: 800;
}

.due-show-more {
  justify-self: stretch;
}

.week-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legend-item.legend-item-text {
  gap: 0;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.legend-swatch.is-workday {
  background: #eff7f3;
  border-color: #8fcfbd;
}

.legend-swatch.is-day-off {
  background: #edf1ef;
  border-color: #cfd8d3;
}

.legend-swatch.is-no-slots {
  background: #f5f7f6;
  border-color: #d9e1dc;
}

.legend-swatch.is-out-of-range {
  background: #f3f4f4;
  border-color: #e1e5e3;
}

.legend-swatch.has-pending {
  background: #fbf2cf;
  border-color: #dfc25f;
}

.month-toolbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px auto;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.month-toolbar strong {
  min-width: 0;
  text-align: center;
}

.month-toolbar .secondary-button {
  min-height: 42px;
  padding: 9px 12px;
}

.month-weekdays,
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.month-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.week-strip {
  margin-bottom: 12px;
  width: 100%;
  overflow: hidden;
}

.month-day {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  padding: 5px 4px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfded2;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.month-day.is-empty {
  min-height: 52px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.month-day-number,
.month-day-badge {
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-day-number {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.month-day-badge {
  position: absolute;
  top: 5px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  max-width: calc(100% - 28px);
  padding: 0 6px;
  color: var(--mint-dark);
  background: #e7f4ef;
  border: 1px solid #b8ddd1;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.month-day.today {
  color: #1d3f91;
  border-color: #8ebcff;
  background: #dcecff;
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.08),
    0 10px 18px rgba(37, 99, 235, 0.12);
}

.month-day.today.is-workday,
.month-day.today.is-day-off,
.month-day.today.has-no-slots {
  color: #1d3f91;
  border-color: #8ebcff;
  background: #dcecff;
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.08),
    0 10px 18px rgba(37, 99, 235, 0.12);
  opacity: 1;
}

.month-day.today .month-day-number {
  color: #17357f;
}

.month-day.today.selected {
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.24),
    0 12px 22px rgba(37, 99, 235, 0.14);
}

.month-day.is-workday {
  color: #0f3f35;
  background: #f2fff9;
  border-color: #86cdb7;
  box-shadow: inset 0 0 0 1px rgba(22, 160, 133, 0.08);
}

.month-day.is-day-off {
  color: #7f8c87;
  background: #edf1ef;
  border-color: #d5ddd9;
  box-shadow: none;
  opacity: 0.78;
}

.month-day.is-past,
.month-day.is-out-of-range {
  color: #94a09b;
  background: #f4f6f5;
  border-color: #dde4e0;
  box-shadow: none;
}

.month-day.is-out-of-range::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(145, 156, 150, 0.07) 0,
    rgba(145, 156, 150, 0.07) 5px,
    transparent 5px,
    transparent 11px
  );
  pointer-events: none;
}

.month-day.has-bookings {
  border-color: #9fcfbe;
}

.month-day.has-pending {
  border-color: #dfc25f;
  box-shadow: 0 0 0 2px rgba(199, 162, 58, 0.12);
}

.month-day.has-no-slots {
  background: #f0f3f1;
}

.month-day.has-no-slots::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(145, 156, 150, 0.08) 0,
    rgba(145, 156, 150, 0.08) 5px,
    transparent 5px,
    transparent 11px
  );
  pointer-events: none;
}

.month-day.has-declined-only {
  border-color: #d7dedd;
  background: #f6f8f7;
}

.month-day.is-other-month {
  opacity: 0.48;
}

.month-day.selected,
.month-day.selected.is-workday,
.month-day.selected.is-day-off,
.month-day.selected.has-no-slots {
  color: #ffffff;
  background: var(--mint);
  border-color: var(--mint-dark);
  box-shadow: 0 12px 24px rgba(22, 160, 133, 0.2);
  opacity: 1;
}

.month-day.selected .month-day-number,
.month-day.selected .month-day-badge {
  color: #ffffff;
}

.month-day.selected .month-day-badge {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
}

.month-day-dots {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 8px;
}

.month-day-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #ffffff;
}

.month-day-dot.dot-waiting,
.legend-swatch.dot-waiting {
  background: #d8a72a;
}

.month-day-dot.dot-declined,
.legend-swatch.dot-declined {
  background: #d14d5f;
}

.month-day-dot.dot-reschedule,
.legend-swatch.dot-reschedule {
  background: #8468d7;
}

.month-day.selected .month-day-dot {
  box-shadow: 0 0 0 2px rgba(15, 113, 94, 0.34);
}

.month-day:hover {
  border-color: #b9d9ce;
  box-shadow: 0 10px 20px rgba(15, 113, 94, 0.08);
  transform: translateY(-1px);
}

.month-day.sunday .month-day-number {
  color: #b84d5d;
}

.month-day.selected.sunday .month-day-number {
  color: #ffffff;
}

.week-day.pulse {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.14);
}

.week-day {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: #c7d4ce;
  box-shadow: 0 6px 16px rgba(23, 32, 28, 0.05);
}

.day-mini-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.day-mini-summary span {
  min-width: 0;
  padding: 8px 10px;
  color: var(--muted);
  background: #f7faf8;
  border: 1px solid #dde7e2;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.day-panel,
.day-panel-content {
  border-color: #d7e1dc;
  box-shadow: 0 8px 22px rgba(23, 32, 28, 0.06);
}

.day-panel.is-today,
.day-panel-content.is-today {
  border-color: #cbdad3;
  box-shadow: 0 8px 22px rgba(23, 32, 28, 0.06);
}

.day-panel-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  padding: 4px 0 0;
  background: transparent;
  border-bottom: 0;
}

.day-panel-header.is-past-day {
  grid-template-columns: 1fr;
  align-items: start;
}

.day-panel-helper {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.week-day.is-today {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.12), 0 10px 22px rgba(23, 32, 28, 0.07);
}

.week-day.has-bookings summary {
  background: #eef7f4;
}

.week-day.has-pending summary {
  background: #fff8df;
}

.week-day.is-day-off summary {
  background: #f7f9f8;
}

.week-day.is-past summary,
.week-day.is-out-of-range summary {
  background: #f6f8f7;
}

.week-day[open] {
  border-color: #aebfb7;
}

.week-day summary {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid transparent;
}

.week-day[open] summary {
  border-bottom-color: var(--line);
}

.week-day summary::-webkit-details-marker {
  display: none;
}

.week-day summary strong {
  display: block;
}

.week-day summary small {
  color: var(--muted);
}

.day-date strong {
  font-size: 18px;
}

.day-date {
  display: grid;
  gap: 4px;
}

.day-date small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.day-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.day-summary strong,
.day-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-summary strong {
  font-size: 17px;
}

.day-side {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.day-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--mint-dark);
  background: #e7f4ef;
  border: 1px solid #b8ddd1;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.week-day[open] .day-chevron {
  transform: rotate(180deg);
}

.day-count {
  color: var(--muted);
  font-weight: 700;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.day-bookings-details {
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #fbfcfb;
  overflow: hidden;
}

.day-bookings-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.day-bookings-details summary::-webkit-details-marker {
  display: none;
}

.day-bookings-summary {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.day-bookings-summary strong {
  font-size: 14px;
  line-height: 1.35;
}

.day-bookings-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-status {
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
}

.day-bookings-toggle {
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.day-bookings-details[open] .day-bookings-toggle {
  color: var(--muted);
}

.day-bookings-list {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.day-bookings-list.is-direct {
  padding: 0;
}

.day-history-notes {
  display: grid;
  gap: 10px;
}

.day-history-note {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #f6f8f7;
  border: 1px dashed #c8d7d0;
  border-radius: 8px;
}

.day-history-note.is-rescheduled {
  background: #f7f4fb;
  border-color: #d5c8ea;
}

.day-history-note.is-cancelled {
  background: #fbf5f7;
  border-color: #e7c7d3;
}

.day-history-note-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-history-note strong {
  font-size: 14px;
  line-height: 1.4;
}

.day-history-note small {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.topbar-note {
  color: var(--mint-dark);
  font-weight: 700;
}

.day-body {
  display: grid;
  gap: 12px;
  padding: 0;
  background: transparent;
}

.day-panel-content {
  display: grid;
  gap: 12px;
}

.week-day.has-no-slots summary {
  background: #f7f9f8;
}

.open-slots {
  padding: 12px;
  color: var(--muted);
  background: linear-gradient(180deg, #f7faf8 0%, #f1f6f3 100%);
  border-radius: 8px;
  line-height: 1.45;
  border: 1px solid #dde7e2;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.booking-actions button {
  min-height: 40px;
}

.booking-message-preview .booking-actions button {
  min-width: 164px;
}

.booking-status-actions button {
  flex: 1 1 140px;
}

.booking-actions-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.booking-message-status {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--mint-dark);
  background: #eef7f4;
  border: 1px solid #bfe0d5;
  border-radius: 8px;
}

.booking-message-status strong,
.booking-message-status small {
  color: inherit;
}

.booking-actions.is-onboarding-spotlight {
  padding: 10px;
  background: linear-gradient(180deg, #fffef8 0%, #fff8e7 100%);
  border: 1px solid #ead18a;
  border-radius: 8px;
}

.booking-actions .is-next-action {
  border-color: #d7b653;
  box-shadow: 0 0 0 3px rgba(199, 162, 58, 0.14);
}

.onboarding-inline-hint {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: #6b5a1e;
  background: linear-gradient(180deg, #fffef8 0%, #fff8e8 100%);
  border: 1px solid #ead18a;
  border-radius: 8px;
}

.onboarding-inline-hint small,
.onboarding-inline-hint span {
  color: #7d6a25;
  font-weight: 700;
}

.section-tip-card {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9050;
  width: min(320px, calc(100vw - 36px));
  padding: 14px 14px 12px;
  color: #163029;
  background: linear-gradient(180deg, #fffef8 0%, #f5fff9 100%);
  border: 1px solid rgba(22, 160, 133, 0.42);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(16, 25, 21, 0.2);
  animation: section-tip-enter 0.24s ease-out;
}

.section-tip-content {
  display: grid;
  gap: 7px;
  padding-right: 36px;
}

.section-tip-content p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
}

.section-tip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  color: #2a6559;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(22, 160, 133, 0.1);
  border: 1px solid rgba(22, 160, 133, 0.18);
  border-radius: 50%;
  cursor: pointer;
}

.section-tip-close:hover {
  color: #163029;
  background: rgba(22, 160, 133, 0.16);
}

.section-tip-ok {
  margin-top: 12px;
  padding: 9px 12px;
  color: #0f715e;
  font-weight: 700;
  background: #ecfbf5;
  border: 1px solid rgba(22, 160, 133, 0.35);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

@keyframes section-tip-enter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.client-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.client-message-draft {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #fffdf6 0%, #fff7e3 100%);
  border: 1px solid #eed58e;
  border-radius: 8px;
}

.client-message-draft p {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  overflow-wrap: anywhere;
}

.danger-button {
  min-height: 40px;
  padding: 10px 14px;
  color: #9f3043;
  background: linear-gradient(180deg, #fff7f9 0%, #fff0f4 100%);
  border: 1px solid #f4bfca;
  border-radius: 8px;
  font-weight: 700;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(96px, 116px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #d9e3de;
  box-shadow: 0 8px 20px rgba(23, 32, 28, 0.06);
  position: relative;
  overflow: hidden;
}

.booking-row-card {
  display: block;
}

.booking-row-toggle {
  display: grid;
  grid-template-columns: minmax(84px, 104px) minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  gap: 4px 10px;
  min-height: 58px;
  padding: 10px 12px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.booking-row-toggle span {
  min-width: 0;
}

.booking-row-time,
.booking-row-client {
  font-weight: 800;
}

.booking-row-client-wrap {
  display: inline-flex;
  grid-column: 2 / 3;
  align-self: center;
}

.booking-row-client {
  align-self: center;
}

.booking-row-service {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.booking-row-card.is-expanded .booking-row-toggle {
  background: #f7faf8;
  border-bottom: 1px solid #dce8e2;
}

.booking-row-details {
  display: none;
  grid-template-columns: minmax(0, 1fr);
}

.booking-row-details.is-open {
  display: grid;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #cfdad4;
}

.timeline-item.is-confirmed::before {
  background: var(--mint);
}

.timeline-item.is-confirmed {
  border-color: #c8ded6;
}

.timeline-item.is-pending::before {
  background: var(--gold);
}

.timeline-item.is-pending {
  border-color: #e8dba5;
}

.timeline-item.is-onboarding-booking {
  box-shadow: 0 0 0 3px rgba(199, 162, 58, 0.14), 0 18px 28px rgba(23, 32, 28, 0.08);
}

.timeline-item.updated {
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.16), 0 18px 28px rgba(23, 32, 28, 0.08);
}

.timeline-item.is-declined::before {
  background: var(--rose);
}

.timeline-item.is-declined {
  border-color: #f0c8d0;
}

.timeline-item.is-reschedule::before {
  background: #7e8fd1;
}

.timeline-item.is-reschedule {
  border-color: #d2d8f3;
}

.booking-time {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
}

.timeline-item.is-confirmed .booking-time {
  background: #eef7f4;
}

.timeline-item.is-pending .booking-time {
  background: #fff8df;
}

.timeline-item.is-declined .booking-time {
  background: #fff5f7;
}

.timeline-item.is-reschedule .booking-time {
  background: #f3f5ff;
}

.booking-time strong {
  color: var(--mint-dark);
  font-size: 17px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.booking-time span {
  color: var(--muted);
  font-weight: 700;
}

.booking-main {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 12px 14px 14px;
}

.booking-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-main small {
  color: var(--muted);
  line-height: 1.4;
}

.booking-summary-line {
  display: block;
  overflow-wrap: anywhere;
}

.booking-note,
.booking-response-note {
  min-height: 0;
  margin: 0;
  padding: 10px;
  color: var(--ink);
  background: #f7faf8;
  border-radius: 8px;
  line-height: 1.45;
  border: 1px solid #dce8e2;
  overflow-wrap: anywhere;
}

.booking-response-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--mint-dark);
  font-weight: 700;
}

.booking-response-line small {
  color: var(--muted);
  font-weight: 700;
}

.booking-substatus-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.response-status {
  font-size: 12px;
}

.booking-response-note {
  color: var(--muted);
  background: #fffaf0;
  border-color: #ecd9ad;
}

.booking-response-note strong {
  color: var(--ink);
}

.booking-message-preview {
  background: #fbfcfb;
  border-color: #dbe6e1;
}

.booking-message-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-message-heading strong,
.booking-message-heading small {
  margin: 0;
}

.booking-message-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booking-message-heading small {
  color: var(--mint-dark);
  font-weight: 800;
}

.booking-status-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.booking-status-actions button {
  min-width: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--mint-dark);
  background: #e7f4ef;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.status.pending {
  color: #846400;
  background: #fbf2cf;
  border-color: #eadb9b;
}

.status.waiting {
  color: #846400;
  background: #fbf2cf;
  border-color: #eadb9b;
}

.status.confirmed {
  color: var(--mint-dark);
  background: #e7f4ef;
  border-color: #bfe0d1;
}

.status.declined {
  color: #9f3043;
  background: #fde4e9;
  border-color: #efc0cb;
}

.status.reschedule {
  color: #4f5fa6;
  background: #e9edff;
  border-color: #ccd5ff;
}

.status.cancelled {
  color: #9f3043;
  background: #fde4e9;
  border-color: #efc0cb;
}

.status.rescheduled {
  color: #4f5fa6;
  background: #e9edff;
  border-color: #ccd5ff;
}

.status.completed,
.status.unknown {
  color: #536170;
  background: #eef2f5;
  border-color: #d7e0e7;
}

.appointment-status-badge {
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-row.day-off:not(.show-day-off) {
  display: none;
}

.empty {
  color: var(--muted);
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.broadcast-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.broadcast-compose,
.broadcast-output {
  align-self: stretch;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 0.8fr 0.7fr 1.2fr;
  gap: 12px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.hidden-field {
  display: none !important;
}

.booking-autofill-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.booking-clear-profile {
  justify-self: start;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #86cab8;
  box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
  background: #fcfefd;
}

textarea {
  resize: vertical;
}

#masterRequestText {
  min-height: 210px;
  line-height: 1.45;
  resize: none;
}

.done-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.booking-manage-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.form-error {
  padding: 12px 14px;
  color: #9f3043;
  background: linear-gradient(180deg, #fff7f9 0%, #fff0f4 100%);
  border: 1px solid #f0bcc8;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.broadcast-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.broadcast-mode-help {
  display: none;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.broadcast-mode-help p {
  margin: 0;
}

.broadcast-mode-help strong {
  color: var(--ink);
}

.broadcast-text-note,
.broadcast-recipient-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.broadcast-recipient-hint {
  margin: 10px 0 12px;
}

.broadcast-output textarea {
  min-height: 160px;
  max-height: 210px;
  line-height: 1.45;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  border-color: #b9d8e0;
  box-shadow: inset 0 0 0 1px rgba(63, 127, 149, 0.12);
}

.broadcast-output textarea.is-template {
  min-height: 112px;
  max-height: 150px;
}

.broadcast-form-section {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.broadcast-form-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.form-fold {
  display: grid;
  gap: 12px;
}

.form-fold-heading {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c8d8d2;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.form-fold-heading::-webkit-details-marker {
  display: none;
}

.form-fold-heading small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fold-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--mint-dark);
  background: #ffffff;
  border: 1px solid #c8d8d2;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.form-fold[open] .fold-chevron {
  transform: rotate(180deg);
}

.form-fold[open] .form-fold-heading {
  background: #e7f4ef;
  border-color: #8fcfbd;
  box-shadow: 0 10px 20px rgba(15, 113, 94, 0.08);
}

.list-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #b8ddd1;
  border-radius: 8px;
}

.list-create-details {
  align-self: end;
  min-width: 0;
}

.list-create-details .list-create-form {
  margin-top: 10px;
}

.list-create-details .form-fold-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.broadcast-list-switcher {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto minmax(220px, 0.9fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 4px;
}

.broadcast-list-switcher > .field,
.broadcast-list-switcher > button,
.broadcast-list-switcher > details {
  min-width: 0;
}

.broadcast-list-switcher > button,
.list-create-details > .form-fold-heading {
  min-height: 42px;
}

.broadcast-list-switcher > button {
  align-self: end;
  white-space: nowrap;
}

.compact-field {
  min-width: 220px;
}

.broadcast-recipient-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.broadcast-tools {
  display: grid;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background: #f8fbfc;
  border: 1px solid #d4e6eb;
  border-radius: 8px;
}

.broadcast-inline-answers {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f7fbfc;
  border: 1px solid #b9d8e0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(63, 127, 149, 0.08);
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

.event-summary article {
  display: grid;
  align-content: start;
  min-height: 82px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #b9d8e0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(63, 127, 149, 0.05);
}

.event-summary span,
.event-summary small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.event-summary strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--comm-dark);
  font-size: 24px;
  line-height: 1;
}

.broadcast-answer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.broadcast-answer-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #c9dfe6;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(63, 127, 149, 0.05);
}

.broadcast-answer-card strong,
.broadcast-answer-card small {
  display: block;
}

.broadcast-answer-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.broadcast-answer-card p {
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.broadcast-answer-card.response-yes {
  border-color: #9bd1b2;
}

.broadcast-answer-card.response-no {
  border-color: #e2aaa0;
}

.broadcast-answer-card.response-call {
  border-color: #d6c577;
}

.recipient-channel-group,
.archive-box {
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
  border: 1px solid #d3e4e9;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(63, 127, 149, 0.05);
}

.recipient-channel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.recipient-channel-heading::-webkit-details-marker {
  display: none;
}

.recipient-channel-heading span,
.archive-box summary {
  color: var(--ink);
  font-weight: 700;
}

.recipient-channel-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipient-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--comm-dark);
  background: var(--comm-soft);
  border: 1px solid #b9d8e0;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.recipient-channel-group[open] {
  border-color: #98c7d2;
  box-shadow: 0 14px 32px rgba(63, 127, 149, 0.12);
}

.recipient-channel-group[open] .recipient-chevron {
  transform: rotate(180deg);
}

.recipient-channel-group.response-yes {
  border-color: #9bd1b2;
}

.recipient-channel-group.response-no {
  border-color: #e2aaa0;
}

.recipient-channel-group.response-call {
  border-color: #d6c577;
}

.recipient-channel-heading small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-channel-body {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.archive-box {
  margin-top: 14px;
}

.archive-box summary {
  cursor: pointer;
}

.archive-box .recipient-list {
  max-height: 320px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.recipient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d4e6eb;
  border-radius: 8px;
}

.recipient-row.archived {
  opacity: 0.78;
}

.recipient-row.response-yes {
  border-color: #8fc8b7;
  background: #eef7f4;
}

.recipient-row.response-no {
  border-color: #eba5b2;
  background: #fff5f7;
}

.recipient-row.response-call {
  border-color: #dfc25f;
  background: #fff8df;
}

.recipient-row.highlighted {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.14);
}

.confirm-page {
  display: grid;
  width: 100%;
  min-height: auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  padding: clamp(28px, 6vh, 56px) clamp(16px, 3vw, 24px) 18px;
  background: var(--surface);
  box-sizing: border-box;
}

.confirm-card {
  display: grid;
  width: 100%;
  max-width: 560px;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

html.public-confirm-mode .app-legal-footer,
body.public-confirm-mode .app-legal-footer {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 28px;
  border-top: 0;
}

html.public-confirm-mode .app-legal-footer .compact-legal-links,
body.public-confirm-mode .app-legal-footer .compact-legal-links {
  justify-content: center;
  text-align: center;
  gap: 10px 16px;
}

.confirm-card h3,
.confirm-card p {
  margin: 0;
}

.confirm-card p {
  color: var(--muted);
  line-height: 1.45;
}

.confirm-event-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.confirm-event-summary article {
  padding: 12px;
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f6f3 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirm-event-summary .personal-booking-card {
  grid-column: 1 / -1;
}

.confirm-event-summary span,
.confirm-event-summary strong {
  display: block;
}

.confirm-event-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.confirm-event-summary strong {
  margin-top: 4px;
  color: var(--ink);
}

.confirm-event-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.confirm-event-summary p {
  grid-column: 1 / -1;
  padding: 12px;
  background: #f6f8f7;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.confirm-guest-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f6f3 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirm-guest-box p {
  margin: 0;
}

.public-confirm-personal #confirmMemberField,
.public-confirm-personal #confirmGuestBox {
  display: none !important;
}

.danger-zone-panel {
  margin-top: 16px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 600;
}

.danger-zone-actions {
  align-items: center;
}

.danger-zone-actions small {
  color: var(--mint-dark);
  font-weight: 700;
}

.confirm-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.confirm-message-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f6f3 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirm-message-actions {
  display: flex;
  justify-content: flex-start;
}

.confirm-message-box .field-hint {
  margin: 0;
}

.confirm-actions.is-complete button:not(.selected),
#confirmCommentField.is-complete {
  display: none;
}

.confirm-response.selected {
  cursor: default;
  opacity: 0.72;
  box-shadow: none;
  filter: grayscale(0.08);
}

.confirm-response.selected:hover {
  background: var(--mint);
}

.recipient-form,
.channel-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.9fr) minmax(170px, 1fr) minmax(160px, 0.95fr) minmax(130px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.channel-form {
  grid-template-columns: minmax(180px, 1fr) auto;
  margin-top: 10px;
  margin-bottom: 0;
}

.channel-create-details .form-fold-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.recipient-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 520px;
}

.recipient-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.recipient-payment-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.recipient-row.payment-unpaid {
  box-shadow: inset 4px 0 0 #e2687a;
}

.recipient-paid-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: #f6f8f7;
  border: 1px solid #d4e6eb;
  border-radius: 8px;
  font-weight: 800;
}

.recipient-paid-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--mint);
}

.back-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 10px;
}

.done-notice {
  padding: 14px;
  color: var(--mint-dark);
  background: #e7f4ef;
  border: 1px solid #b8ddd1;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.done-notice.is-loading {
  color: #6e5800;
  background: #fbf2cf;
  border-color: #ead79b;
}

.done-notice.is-error {
  color: #9f3043;
  background: linear-gradient(180deg, #fff7f9 0%, #fff0f4 100%);
  border-color: #f0bcc8;
}

.booking-flow .field + .primary-button,
.booking-flow .field + .secondary-button,
.booking-flow textarea + .primary-button,
.booking-flow textarea + .secondary-button {
  margin-top: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.14);
}

input.invalid {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(216, 95, 114, 0.14);
}

.assistant-output {
  display: grid;
  gap: 12px;
  align-content: start;
}

.assistant-context {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
  color: var(--muted);
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-weight: 700;
  line-height: 1.45;
}

.assistant-context ul {
  margin: 0;
  padding-left: 18px;
}

.assistant-output-label {
  color: var(--muted);
  font-weight: 800;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft {
  min-height: 110px;
  margin: 0;
  padding: 14px;
  color: var(--ink);
  background: #f6fbf8;
  border: 1px solid #d9e6e0;
  border-radius: 8px;
  line-height: 1.5;
  white-space: pre-line;
}

.service-form,
.client-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.service-form > *,
.client-form > *,
.recipient-form > *,
.channel-form > * {
  min-width: 0;
}

.client-form {
  grid-template-columns: 1fr 1fr 1.4fr auto;
}

.progressive-disclosure {
  min-width: 0;
  max-width: 100%;
}

.progressive-disclosure summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.25;
  list-style: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.progressive-disclosure summary::-webkit-details-marker {
  display: none;
}

.progressive-disclosure-arrow {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  place-items: center;
  color: var(--mint-dark);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.progressive-disclosure[open] > summary {
  background: #f4fbf8;
  border-color: #b8ddd1;
  box-shadow: 0 8px 18px rgba(15, 113, 94, 0.06);
}

.progressive-disclosure[open] > summary .progressive-disclosure-arrow {
  transform: none;
}

.progressive-disclosure-content {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 12px;
  animation: disclosure-open 0.18s ease;
}

@supports selector(::details-content) {
  .progressive-disclosure::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.18s ease,
      content-visibility 0.18s allow-discrete;
  }

  .progressive-disclosure[open]::details-content {
    block-size: auto;
  }
}

.service-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(180px, 0.78fr);
  gap: 14px 16px;
  min-width: 0;
}

.service-form-field {
  min-width: 0;
}

.service-form-hint {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.service-form-actions {
  display: flex;
  justify-content: flex-start;
}

.service-form-actions .primary-button {
  min-width: 180px;
}

.service-advanced-disclosure {
  width: 100%;
  min-width: 0;
}

.service-advanced-content {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  align-items: end;
  padding: 10px 12px 12px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.schedule-restrictions-content {
  gap: 10px;
}

@keyframes disclosure-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-detail {
  display: grid;
  gap: 14px;
}

.client-archive,
.client-archive-box {
  margin-top: 14px;
}

.client-archive-box {
  padding: 14px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-archive-box summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-archive-box summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.client-archive-box .cards-list {
  margin-top: 12px;
}

.client-archive-row {
  background: #ffffff;
  border-style: dashed;
}

.client-archive-row .client-card-actions {
  justify-content: flex-end;
}

.client-detail-hero,
.client-detail-panel {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
  background: transparent;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.client-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  align-items: start;
  overflow: hidden;
}

.client-detail-heading {
  display: grid;
  gap: 10px;
}

.client-detail-person {
  align-items: flex-start;
}

.client-detail-person > div {
  min-width: 0;
}

.client-back-link {
  justify-self: start;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--mint-dark);
  background: #eaf6f2;
  border: 1px solid #bfe2d8;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.client-back-link:hover {
  color: var(--mint);
  background: #ddf1eb;
  border-color: #92d2c1;
  transform: translateY(-1px);
}

.client-back-link:active {
  transform: translateY(0);
}

.client-detail-hero h3 {
  margin: 0;
}

.client-detail-meta {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.client-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  color: var(--mint-dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(15, 113, 94, 0.32);
  white-space: normal;
  overflow-wrap: anywhere;
}

.client-phone-link:hover,
.client-phone-link:focus-visible {
  color: var(--mint);
  border-bottom-color: rgba(22, 160, 133, 0.48);
}

.client-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.client-detail-actions .primary-button,
.client-detail-actions .secondary-button,
.client-detail-actions .ghost-button,
.client-message-tools .primary-button {
  min-width: 0;
  max-width: 100%;
}

.client-edit-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1.1fr) minmax(150px, auto);
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.client-message-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.client-copy-status {
  min-height: 20px;
  color: var(--success);
  font-weight: 800;
}

.client-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.client-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.client-detail-facts article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 68px;
  padding: 11px 12px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-detail-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.client-detail-facts strong {
  font-size: 16px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.client-detail-message {
  padding: 14px;
  background: linear-gradient(180deg, #fffef9 0%, #fffbee 100%);
  border: 1px solid #d6c577;
  border-radius: 8px;
}

.client-detail-message p,
.client-history-item p {
  margin: 0;
  line-height: 1.5;
}

.client-history {
  display: grid;
  gap: 10px;
}

.client-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  gap: 10px 12px;
  padding: 12px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-history-main {
  display: grid;
  gap: 3px;
}

.client-history-main small {
  color: var(--muted);
}

.client-history-item p {
  grid-column: 1 / -1;
  padding: 10px 12px;
  background: #f5f9f7;
  border: 1px solid #dde7e2;
  border-radius: 8px;
}

.stack-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.data-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.data-card small,
.day-row small,
.service-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.day-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr auto;
  align-items: center;
  gap: 12px;
}

.schedule-hint {
  color: var(--muted);
  margin: 0;
  padding: 10px 12px;
  background: #f4f7f6;
  border-radius: 8px;
}

.schedule-config,
.schedule-setting-stack {
  display: grid;
  gap: 12px;
}

#scheduleView .two-column,
#scheduleView .two-column > *,
#scheduleView .schedule-list,
#scheduleView .schedule-list > *,
#scheduleView .schedule-section,
#scheduleView .schedule-section > *,
#scheduleView .schedule-setting-card,
#scheduleView .schedule-setting-field,
#scheduleView .schedule-mode-card,
#scheduleView .weekly-schedule-table,
#scheduleView .weekly-schedule-row,
#scheduleView .weekly-schedule-row > *,
#scheduleView .schedule-exception-card,
#scheduleView .schedule-exception-card > *,
#scheduleView .stack-form,
#scheduleView .stack-form > * {
  min-width: 0;
}

#scheduleView .field,
#scheduleView .field > span,
#scheduleView .schedule-setting-card-title,
#scheduleView .schedule-mode-card-title,
#scheduleView .schedule-mode-card small,
#scheduleView .schedule-inline-meta,
#scheduleView .schedule-inline-note,
#scheduleView .schedule-hint,
#scheduleView .section-subtitle,
#scheduleView .schedule-breaks-heading strong,
#scheduleView .schedule-exception-selected,
#scheduleView .schedule-exception-card strong,
#scheduleView .schedule-exception-card p,
#scheduleView .schedule-exception-card small,
#scheduleView .weekly-day-name,
#scheduleView .day-row-toggle span {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#scheduleView input,
#scheduleView select,
#scheduleView textarea,
#scheduleView button {
  max-width: 100%;
}

.schedule-section {
  display: grid;
  gap: 12px;
}

.schedule-section-surface {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-section-surface-subtle {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfc 100%);
  border-color: #dbe7e1;
}

.schedule-config > .schedule-section + .schedule-section {
  position: relative;
}

.schedule-config > .schedule-section + .schedule-section::before {
  position: absolute;
  top: -6px;
  left: 16px;
  right: 16px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(188, 205, 197, 0) 0%, rgba(188, 205, 197, 0.9) 15%, rgba(188, 205, 197, 0.9) 85%, rgba(188, 205, 197, 0) 100%);
}

.schedule-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-section-head strong {
  font-size: 16px;
  line-height: 1.25;
}

.schedule-section-head + .schedule-settings-grid,
.schedule-section-head + .schedule-mode,
.schedule-section-head + .cycle-settings,
.schedule-section-head + .weekly-schedule-table,
.schedule-section-head + .individual-schedule {
  margin-top: 2px;
}

.schedule-section-head-spread {
  align-items: baseline;
}

.schedule-inline-meta,
.schedule-inline-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.schedule-restrictions-grid,
.schedule-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.schedule-restrictions-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.schedule-setting-card,
.schedule-setting-field {
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-setting-card {
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.schedule-setting-card-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.schedule-setting-field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.schedule-number-field {
  position: relative;
  display: flex;
  align-items: center;
}

.number-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.number-with-unit span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-number-field input {
  padding-right: 42px;
}

.schedule-inline-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.compact-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 700;
}

.compact-toggle-row span {
  min-width: 0;
  color: var(--ink);
  line-height: 1.35;
}

.compact-toggle-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.schedule-range .schedule-hint {
  margin: 0;
}

.day-row-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: #5f6d67;
  background: #f5f7f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.day-row-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-row-toggle span {
  line-height: 1.2;
}

.weekly-state-choice.is-selected {
  color: #084436;
  background: #e9f8f0;
  border-color: #8dcbb7;
}

.schedule-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.schedule-mode label,
.schedule-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
  min-width: 0;
  padding: 16px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.schedule-mode-card:hover {
  border-color: #9fd4c4;
  box-shadow: 0 10px 24px rgba(12, 139, 101, 0.08);
}

.schedule-mode input,
.schedule-mode-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  min-height: auto;
  cursor: pointer;
}

.schedule-mode-card-control {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #9eb3ab;
  border-radius: 999px;
  background: #ffffff;
}

.schedule-mode-card-control::after {
  position: absolute;
  inset: 4px;
  content: "";
  background: var(--mint);
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.18s ease;
}

.schedule-mode-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-mode-card-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.schedule-mode-card small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.schedule-mode-card.is-selected {
  background: linear-gradient(180deg, #f8fffb 0%, #eefaf5 100%);
  border-color: #78bea8;
  box-shadow: 0 12px 28px rgba(12, 139, 101, 0.1);
}

.schedule-mode-card.is-selected .schedule-mode-card-control {
  border-color: var(--mint);
}

.schedule-mode-card.is-selected .schedule-mode-card-control::after {
  transform: scale(1);
}

.weekly-schedule-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce6e1;
  border-radius: 8px;
}

.weekly-schedule-head,
.day-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 88px 88px minmax(0, 300px);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.weekly-schedule-head {
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  background: #fbfcfb;
  border-bottom: 1px solid #e2ebe6;
}

.day-row {
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e2ebe6;
}

.schedule-section-surface .day-row,
.schedule-section-surface .cycle-preview-day,
.schedule-section-surface .individual-editor,
.schedule-section-surface .individual-month {
  background: #ffffff;
}

.day-row.day-off {
  background: #f6f8f7;
}

.weekly-schedule-row:last-child {
  border-bottom: 0;
}

.weekly-day-name {
  font-size: 15px;
  line-height: 1.35;
  min-width: 0;
}

.weekly-state-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 40px;
  color: #495751;
  cursor: pointer;
  border-radius: 12px;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.weekly-state-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weekly-state-box {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid #8fa69d;
  border-radius: 6px;
  background: #ffffff;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.weekly-state-box::after {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  content: "";
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.weekly-state-label {
  display: none;
}

.weekly-time-range {
  display: grid;
  grid-template-columns: minmax(0, 132px) auto minmax(0, 132px);
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.weekly-time-range .time-input {
  min-width: 0;
  width: 100%;
  max-width: 140px;
  text-align: center;
}

.weekly-time-range input:disabled {
  color: #96a29d;
  background: #eef1ef;
  border-color: #d8dfdc;
}

.weekly-state-choice.is-selected {
  color: #0a4a3a;
  background: rgba(12, 139, 101, 0.08);
}

.weekly-state-choice.is-selected .weekly-state-box {
  border-color: #0c8b65;
  background: #0c8b65;
  box-shadow: 0 0 0 5px rgba(12, 139, 101, 0.12);
}

.weekly-state-choice.is-selected .weekly-state-box::after {
  transform: rotate(45deg) scale(1);
}

.weekly-time-separator {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.weekly-schedule-row .weekly-time-range,
.weekly-schedule-row .weekly-day-name,
.weekly-schedule-row .time-input {
  min-width: 0;
}

.weekly-schedule-row.day-off .weekly-day-name {
  color: #75817c;
}

.weekly-schedule-row.day-off .weekly-time-separator {
  color: #a5b1ac;
}

.cycle-settings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cycle-preview {
  display: grid;
  gap: 8px;
}

.cycle-preview-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cycle-preview-day.work {
  background: #eef8f3;
  border-color: #bfdccc;
}

.cycle-preview-day.off {
  color: var(--muted);
  background: #f4f7f6;
}

.cycle-preview-day small {
  color: inherit;
  font-weight: 700;
}

.schedule-breaks-heading {
  margin-top: 4px;
}

.schedule-breaks-heading strong {
  font-size: 15px;
  line-height: 1.3;
}

.individual-schedule {
  display: grid;
  gap: 12px;
}

.individual-actions,
.individual-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.individual-day-mode {
  gap: 12px;
}

.individual-day-mode .secondary-button {
  min-height: 44px;
  min-width: 116px;
  border-radius: 10px;
}

.individual-day-mode .secondary-button.is-active {
  color: #ffffff;
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.individual-schedule-toolbar {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.individual-schedule-month-nav {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.individual-month-current {
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
}

.individual-month-arrow {
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  font-size: 22px;
}

.individual-calendar {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.individual-month {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
  padding: 10px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.individual-weekdays span {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.individual-day {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 78px;
  padding: 12px 6px 20px;
  color: var(--ink);
  background: #f1f4f2;
  border: 1px solid #cfd7d3;
  border-radius: 8px;
  font-weight: 800;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.individual-day.is-workday {
  color: #084436;
  background: #b9ead4;
  border-color: #0c8b65;
  box-shadow:
    inset 0 0 0 1px rgba(12, 139, 101, 0.24),
    0 10px 22px rgba(12, 139, 101, 0.12);
}

.individual-day.is-day-off {
  color: #77847f;
  background: #d4dbd8;
  border-color: #aeb8b4;
  box-shadow: none;
}

.individual-day small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.individual-day-number {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.individual-day.is-today {
  color: #1d3f91;
  background: #dcecff;
  border-color: #8ebcff;
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.08),
    0 12px 24px rgba(37, 99, 235, 0.12);
}

.individual-day.is-workday.is-today {
  color: #1d3f91;
  background: #dcecff;
  border-color: #8ebcff;
}

.individual-day.is-day-off.is-today {
  color: #1d3f91;
  background: #dcecff;
  border-color: #8ebcff;
}

.individual-day.is-today .individual-day-number::before {
  content: none;
}

.individual-day.is-today .individual-day-number {
  color: #17357f;
  font-weight: 950;
}

.individual-day.is-selected {
  color: #0f3e34;
  background: #c5e8da;
  border-color: #0c8b65;
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px rgba(22, 160, 133, 0.18),
    0 14px 24px rgba(12, 139, 101, 0.12);
}

.individual-day.is-selected.is-day-off {
  background: #cad8d3;
  border-color: #0c8b65;
}

.individual-day.is-selected.is-today {
  color: #17357f;
  background: #dcecff;
  border-color: #2563eb;
}

.individual-day.is-other-month {
  opacity: 0.45;
}

.individual-day.is-locked {
  color: #8a9591;
  background: #eff2f0;
  border-color: #d3dbd7;
  box-shadow: none;
  cursor: default;
}

.individual-day.is-past {
  color: #93a09a;
  background: #edf1ef;
  border-color: #d4ddda;
}

.individual-day.is-out-of-range {
  color: #8f9a96;
  background: #eef2f0;
  border-color: #d3dcda;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(139, 150, 144, 0.12) 0,
    rgba(139, 150, 144, 0.12) 5px,
    transparent 5px,
    transparent 11px
  );
}

.individual-day.is-locked .individual-day-number {
  color: inherit;
}

.individual-day:disabled {
  opacity: 1;
}

.individual-day:disabled:hover,
.individual-day.is-locked:hover {
  transform: none;
  box-shadow: none;
  border-color: inherit;
}

.individual-day-dots {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.individual-day-dot {
  width: 8px;
  height: 8px;
  background: var(--mint-dark);
  border: 0;
  border-radius: 999px;
}

.individual-day-dot.dot-waiting {
  background: #d8a72a;
}

.individual-day-dot.dot-declined {
  background: #d14d5f;
}

.individual-day-dot.dot-reschedule {
  background: #8468d7;
}

.individual-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 10px 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#scheduleView.is-individual-layout .two-column {
  grid-template-columns: minmax(0, 1fr);
}

.individual-editor {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.individual-editor small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.individual-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  align-items: end;
  gap: 12px;
}

.individual-day-off-state {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  color: var(--muted);
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.individual-day-off-state strong,
.individual-day-off-state p {
  margin: 0;
}

.individual-day-off-state strong {
  color: var(--ink);
}

.individual-day-exceptions {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: #f6faf8;
  border: 1px solid #d9e7e0;
  border-radius: 8px;
}

.individual-day-exception-list {
  display: grid;
  gap: 8px;
}

.individual-day-exception-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.individual-day-exception-item small {
  color: var(--muted);
}

.schedule-exception-selected {
  margin: -4px 0 0;
  color: var(--mint-dark);
  font-size: 14px;
  font-weight: 700;
}

.schedule-exception-quick-actions,
.schedule-exception-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.schedule-exceptions-panel {
  gap: 0;
}

.schedule-exceptions-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  text-align: left;
}

.schedule-exceptions-toggle:focus-visible {
  outline: 3px solid rgba(22, 160, 133, 0.22);
  outline-offset: 4px;
  border-radius: 8px;
}

.schedule-exceptions-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  color: var(--mint-dark);
  font-size: 15px;
  line-height: 1;
}

.schedule-exceptions-content {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.schedule-exceptions-content[hidden] {
  display: none;
}

.schedule-exception-time-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.schedule-exception-weekdays {
  display: grid;
  gap: 10px;
}

.schedule-exception-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  background: #f7fbf9;
  border: 1px solid #c7ddd4;
  border-radius: 8px;
  font-weight: 700;
}

.schedule-exception-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.schedule-exception-card-main {
  min-width: 0;
}

.schedule-exception-card p,
.schedule-exception-card small {
  margin: 4px 0 0;
}

.schedule-exception-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#scheduleView .schedule-list {
  overflow: visible;
}

#scheduleView .two-column {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

@media (max-width: 1320px) {
  #scheduleView .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  #scheduleView .weekly-schedule-head {
    display: none;
  }

  #scheduleView .day-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }

  #scheduleView .weekly-day-name,
  #scheduleView .weekly-time-range {
    grid-column: 1 / -1;
  }

  #scheduleView .weekly-state-choice-working {
    grid-column: 1;
  }

  #scheduleView .weekly-state-choice-off {
    grid-column: 2;
  }

  #scheduleView .schedule-section-head {
    align-items: flex-start;
  }

  #scheduleView .weekly-state-choice {
    justify-self: start;
    width: auto;
    min-width: 0;
    padding: 0 12px 0 0;
    gap: 10px;
    background: transparent;
  }

  #scheduleView .weekly-state-label {
    display: inline;
    color: #4c5b55;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  #scheduleView .weekly-time-range {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: stretch;
  }

  #scheduleView .weekly-time-range .time-input {
    max-width: none;
  }

  #scheduleView .schedule-mode {
    grid-template-columns: 1fr;
  }
}

.schedule-exception-card:hover {
  border-color: #86cab8;
  box-shadow: 0 10px 22px rgba(12, 139, 101, 0.08);
}

.schedule-exception-picker-card {
  width: min(100%, 720px);
}

.schedule-exception-picker-header,
.schedule-exception-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-exception-picker-weekdays,
.schedule-exception-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-exception-picker-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-exception-picker-day {
  min-height: 74px;
  display: grid;
  align-content: space-between;
  gap: 6px;
  padding: 10px 8px;
  text-align: left;
  color: var(--ink);
  background: #f7fbf9;
  border: 1px solid #c7ddd4;
  border-radius: 8px;
}

.schedule-exception-picker-day small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.schedule-exception-picker-day.is-workday {
  background: #dff5e9;
  border-color: #0c8b65;
}

.schedule-exception-picker-day.is-day-off {
  background: #eaeeec;
  border-color: #b7c0bc;
}

.schedule-exception-picker-day.is-today {
  color: #1d3f91;
  background: #dcecff;
  border-color: #8ebcff;
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.08),
    0 10px 18px rgba(37, 99, 235, 0.12);
}

.schedule-exception-picker-day.is-selected {
  outline: 3px solid var(--mint);
  background: linear-gradient(180deg, #f2fff7 0%, #def7ea 100%);
}

.schedule-exception-picker-day.has-exception {
  border-style: dashed;
}

.schedule-exception-picker-day.is-outside-month {
  opacity: 0.55;
}

.schedule-exception-picker-day.is-blocked {
  background: repeating-linear-gradient(135deg, #f3f5f4 0, #f3f5f4 10px, #ebefed 10px, #ebefed 20px);
  border-color: #d8dfdc;
  color: #9ba5a0;
  box-shadow: none;
}

.schedule-exception-picker-day.is-blocked small {
  display: none;
}

.schedule-exception-picker-number {
  font-size: 17px;
  font-weight: 900;
}

.form-error.is-success {
  color: var(--mint-dark);
  background: linear-gradient(180deg, #f4fffa 0%, #e8faf2 100%);
  border-color: #b8decf;
}

.public-page {
  display: grid;
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 auto;
  gap: 18px;
  justify-items: center;
}

.public-loading-state {
  display: none;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  color: var(--mint-dark);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.public-profile {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.public-profile .client-preview-panel {
  width: 100%;
}

.booking-flow {
  width: 100%;
  padding: var(--brand-card-padding);
  font-family: var(--brand-font-family);
  border-radius: var(--brand-card-radius-large);
  background: linear-gradient(180deg, var(--brand-booking-surface) 0%, #ffffff 100%);
  border-color: var(--brand-card-border-color);
  box-shadow: var(--brand-card-shadow);
}

.booking-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: var(--brand-section-gap);
}

.booking-progress span {
  height: 4px;
  background: #dce5e1;
  border-radius: 8px;
}

.booking-progress span.active {
  background: var(--mint);
}

.booking-flow .step h3 {
  margin-bottom: calc(var(--brand-section-gap) * 0.66);
  font-weight: var(--brand-heading-weight);
  letter-spacing: var(--brand-heading-letter-spacing);
}

.booking-flow .step h3 + p {
  margin-top: -6px;
}

.step p {
  color: var(--muted);
}

.booking-flow .step {
  min-height: 360px;
}

.booking-flow .primary-button,
.booking-flow .secondary-button,
.booking-flow .ghost-button {
  min-height: var(--brand-button-min-height);
  padding: var(--brand-button-padding);
  border-radius: var(--brand-button-radius);
}

.booking-flow .primary-button {
  width: 100%;
}

.service-option,
.slot-button,
.date-button {
  width: 100%;
  text-align: left;
}

.service-options,
.slot-grid {
  display: grid;
  gap: 10px;
}

.service-option,
.slot-button {
  min-height: 58px;
  padding: calc(var(--brand-card-padding) * 0.72) calc(var(--brand-card-padding) * 0.78);
  background: var(--brand-slot-surface);
  border: 1px solid var(--brand-slot-border);
  border-radius: var(--brand-card-radius);
}

.slot-button {
  display: grid;
  align-content: start;
  gap: 4px;
  color: var(--ink);
}

.slot-button strong,
.slot-button small {
  display: block;
  min-width: 0;
  position: relative;
  z-index: 1;
  opacity: 1;
}

.slot-button strong {
  color: inherit;
  font-size: 16px;
  line-height: 1.1;
}

.slot-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.service-option:hover,
.slot-button:hover,
.date-button:not(:disabled):hover {
  border-color: var(--brand-slot-hover-border);
}

.slot-button:hover,
.slot-button:focus-visible,
.slot-button:active {
  color: var(--ink);
}

.slot-button:hover small,
.slot-button:focus-visible small,
.slot-button:active small {
  color: var(--muted);
}

.month-picker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}

.month-picker strong {
  text-align: center;
}

.calendar-weekdays,
.date-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.date-grid {
  gap: 8px;
  margin-bottom: 16px;
}

.date-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  background: var(--brand-slot-surface);
  border-color: var(--brand-slot-border);
  border-radius: var(--brand-card-radius);
}

.date-button strong,
.date-button small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-button strong {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.date-button small {
  color: var(--brand-slot-available-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.date-button.is-available small {
  color: #2c6df6;
  color: var(--brand-slot-available-text);
}

.booking-legend .legend-item {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-legend .legend-item.booking-legend-text {
  align-items: flex-start;
  gap: 0;
}

.compact-booking-legend {
  margin: 0 0 10px;
}

.booking-legend .slots-availability-dot {
  flex: 0 0 auto;
}

.booking-legend .slots-count-example {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(44, 109, 246, 0.12);
  border: 1px solid rgba(44, 109, 246, 0.28);
  color: #2c6df6;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.date-button.is-available {
  color: var(--brand-slot-available-text);
  background: var(--brand-slot-available-background);
  border-color: var(--brand-slot-available-border);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), 0.12);
}

.date-button.is-day-off {
  color: #67726d;
  background: #d8dfdc;
  border-color: #aeb8b4;
}

.date-button.is-day-off small {
  color: #67726d;
}

.date-button.is-no-slots {
  color: #7a8580;
  background: #e4ebe8;
  border-color: #bcc7c2;
}

.date-button.is-no-slots small {
  color: #7a8580;
}

.date-button.is-out-of-range {
  color: #9ba4a0;
  background: #f2f4f3;
  border-color: #e2e7e4;
}

.date-button.is-out-of-range small {
  color: #99a39f;
}

.date-button.selected {
  color: var(--brand-slot-selected-text);
  background: var(--brand-slot-selected-background);
  border-color: var(--brand-slot-hover-border);
  box-shadow: 0 12px 24px rgba(22, 160, 133, 0.22);
}

.date-button.selected small,
.date-button.selected strong {
  color: var(--brand-slot-selected-text);
}

.date-button:disabled {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.date-button:disabled:hover {
  border-color: inherit;
  box-shadow: none;
  transform: none;
}

.date-button.is-empty {
  visibility: hidden;
}

.repeat-box {
  display: none;
  margin-top: 6px;
  margin-bottom: 12px;
  background: #eef7f4;
}

.repeat-box.active {
  display: grid;
  gap: 10px;
}

.repeat-box p {
  margin: 0;
}

.slot-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-bottom: 16px;
}

.slot-button.selected {
  color: var(--brand-slot-selected-text);
  background: var(--brand-slot-selected-background);
  border-color: var(--brand-slot-hover-border);
}

.slot-button.selected strong,
.slot-button.selected small {
  color: var(--brand-slot-selected-text);
}

.slot-button:disabled {
  color: #70807a;
}

.slot-button:disabled strong {
  color: #5f6d68;
}

.slot-button:disabled small {
  color: #70807a;
}

.service-option.selected,
.service-option[aria-pressed="true"] {
  color: var(--brand-slot-selected-text);
  background: var(--brand-slot-selected-background);
  border-color: var(--brand-slot-hover-border);
}

@media (max-width: 980px) {
  .app-shell,
  .two-column,
  .share-panel,
  .assistant-grid,
  .broadcast-main-grid,
  .form-grid-3,
  .form-grid-2,
  .recipient-form,
  .channel-form,
  .public-link-grid,
  .broadcast-list-switcher,
  .list-create-form,
  .dispatch-page,
  .clients-directory,
  .dispatch-filters {
    grid-template-columns: 1fr;
  }

  .soft-empty-state {
    padding: 20px;
    border-radius: 18px;
  }

  .soft-empty-state-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .soft-empty-state-actions button {
    width: 100%;
  }

  .calendar-detail-panel {
    position: static;
  }

  .dispatch-import {
    position: static;
  }

  .sidebar {
    position: static;
    gap: 16px;
    padding: 16px;
  }

  .nav-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .nav-group-communication {
    padding-top: 0;
    padding-left: 8px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .nav-label {
    display: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 118px;
    padding: 10px 12px;
    background: #f6f8f7;
    border-color: var(--line);
    text-align: center;
  }

  .workspace {
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  }

  .service-form,
  .client-form,
  .client-edit-form,
  .clients-toolbar,
  .summary-grid,
  .event-summary,
  .button-row,
  .cycle-settings,
  .individual-calendar,
  .individual-editor-grid,
  .client-detail-grid,
  .client-detail-facts,
  .value-points {
    grid-template-columns: 1fr;
  }

  .onboarding-banner {
    grid-template-columns: 1fr;
  }

  .premium-overview-grid,
  .premium-tariff-grid,
  .premium-settings-stack,
  .premium-reactivation-preview,
  .premium-preview-grid,
  .premium-style-picker {
    grid-template-columns: 1fr;
  }

  .premium-preview-toolbar {
    grid-template-columns: 1fr;
  }

  .premium-preview-meta {
    grid-auto-flow: row;
    justify-content: start;
  }

  .premium-editor-head {
    flex-direction: column;
  }

  .client-link-summary {
    grid-template-columns: 1fr;
  }

  .button-row {
    display: grid;
  }

  .summary-list-item {
    grid-template-columns: 1fr;
  }

  .summary-list-actions {
    justify-content: stretch;
  }

  .summary-list-actions .primary-button,
  .summary-list-actions .secondary-button,
  .summary-list-actions .ghost-button {
    width: 100%;
  }

  .schedule-mode {
    grid-template-columns: 1fr;
  }

  .schedule-restrictions-grid,
  .schedule-settings-grid,
  .booking-manage-actions {
    grid-template-columns: 1fr;
  }

  .cycle-settings,
  .weekly-schedule-head,
  .day-row {
    grid-template-columns: 1fr;
  }

  .weekly-schedule-head {
    display: none;
  }

  .day-row {
    gap: 10px;
    padding: 14px;
  }

  .weekly-time-range {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  #scheduleView .day-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #scheduleView .weekly-day-name,
  #scheduleView .weekly-time-range {
    grid-column: 1 / -1;
  }

  #scheduleView .weekly-state-choice {
    justify-self: start;
    width: auto;
    min-width: 0;
    padding-right: 12px;
    gap: 10px;
  }

  #scheduleView .weekly-state-choice-working {
    grid-column: 1;
  }

  #scheduleView .weekly-state-choice-off {
    grid-column: 2;
  }

  #scheduleView .weekly-state-label {
    display: inline;
    color: #4c5b55;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  #scheduleView .weekly-time-range .time-input {
    max-width: none;
  }

  .schedule-section-head {
    align-items: flex-start;
  }

  .back-actions {
    grid-template-columns: 1fr;
  }

  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .client-detail-hero,
  .due-item,
  .client-history-item,
  .client-directory-row {
    grid-template-columns: 1fr;
  }

  .client-card-actions,
  .client-detail-actions {
    justify-content: stretch;
  }

  .client-directory-row .edit-client {
    justify-self: stretch;
  }

  .client-detail-person,
  .summary-list-person,
  .booking-row-client-wrap,
  .client-list-person,
  .due-person {
    gap: 8px;
  }

  .dispatch-action-strip button,
  .dispatch-selection-tools button,
  .dispatch-sticky-bar button,
  .clients-actions .dispatch-upload strong {
    width: 100%;
  }

  .dispatch-sidebar-cards {
    gap: 16px;
  }

  .dispatch-sidebar-card,
  .dispatch-workspace .campaign-prepared-list,
  .dispatch-workspace .campaign-history,
  .dispatch-workspace .dispatch-queue {
    padding: 16px;
    border-radius: 16px;
  }

  .clients-sidebar-actions {
    grid-template-columns: 1fr;
  }

  .client-detail-actions .primary-button,
  .client-detail-actions .secondary-button,
  .client-message-tools .primary-button {
    min-width: 0;
    width: 100%;
  }

  .guided-hint-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guided-hint-actions .primary-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .section-tip-card {
    right: 14px;
    bottom: 14px;
    width: min(320px, calc(100vw - 28px));
  }
}

html.public-client-mode,
body.public-client-mode,
html.public-confirm-mode,
body.public-confirm-mode {
  background: #ffffff;
}

html.public-client-mode .sidebar,
html.public-client-mode .topbar,
html.public-client-mode .view:not(#bookingView),
body.public-client-mode .sidebar,
body.public-client-mode .topbar,
body.public-client-mode .view:not(#bookingView) {
  display: none;
}

html.public-confirm-mode .sidebar,
html.public-confirm-mode .topbar,
html.public-confirm-mode .view:not(#confirmView),
body.public-confirm-mode .sidebar,
body.public-confirm-mode .topbar,
body.public-confirm-mode .view:not(#confirmView) {
  display: none;
}

html.public-client-mode .app-shell,
html.public-client-mode .workspace,
body.public-client-mode .app-shell,
body.public-client-mode .workspace {
  display: block;
  min-height: 100vh;
  padding: 0;
}

html.public-confirm-mode .app-shell,
html.public-confirm-mode .workspace,
body.public-confirm-mode .app-shell,
body.public-confirm-mode .workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  min-width: 0;
}

html.public-client-mode #bookingView,
body.public-client-mode #bookingView {
  display: block;
  margin: 0;
}

html.public-confirm-mode #confirmView,
body.public-confirm-mode #confirmView {
  display: flex;
  width: 100%;
  margin: 0;
  min-width: 0;
  justify-content: center;
}

html.public-client-mode .public-page,
body.public-client-mode .public-page {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.public-loading .public-loading-state,
body.public-loading .public-loading-state {
  display: grid;
}

html.public-loading .public-profile,
html.public-loading .booking-flow,
body.public-loading .public-profile,
body.public-loading .booking-flow {
  display: none;
}

html.public-profile-route .public-page,
body.public-profile-route .public-page {
  align-content: start;
}

@media (max-width: 620px) {
  body {
    background: #ffffff;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark svg,
  .brand-mark img {
    width: 29px;
    height: 29px;
  }

  .brand h1 {
    font-size: 24px;
  }

  .brand .eyebrow {
    display: none;
  }

  .nav-tab {
    min-width: auto;
    min-height: 44px;
    padding: 9px 11px;
    font-size: 14px;
    white-space: nowrap;
  }

  .workspace {
    padding: 12px 12px max(18px, env(safe-area-inset-bottom));
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  .chip {
    min-height: 44px;
  }

  .topbar,
  .section-heading,
  .data-card {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 14px;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .ghost-button {
    width: 100%;
  }

  .panel {
    padding: 14px;
    box-shadow: none;
  }

  .share-panel {
    gap: 14px;
  }

  .share-panel h3,
  .panel h3 {
    font-size: 21px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric {
    padding: 12px 10px;
    box-shadow: none;
  }

  .metric span {
    display: block;
    min-height: 34px;
    font-size: 12px;
    line-height: 1.25;
  }

  .metric strong {
    margin-top: 4px;
    font-size: 28px;
  }

  .dashboard-stat-card {
    min-height: 92px;
    padding: 12px 10px;
  }

  .dashboard-stat-card span {
    font-size: 12px;
    line-height: 1.2;
  }

  .dashboard-stat-card strong {
    margin-top: 8px;
    font-size: 26px;
  }

  .week-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .month-toolbar {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .month-toolbar .month-today {
    grid-column: 1 / -1;
  }

  .week-strip {
    grid-column: 1 / -1;
    gap: 4px;
  }

  .month-day {
    min-height: 56px;
    padding: 5px 4px 18px;
  }

  .individual-day {
    min-height: 58px;
    padding: 10px 4px 16px;
  }

  .individual-weekdays,
  .individual-days {
    gap: 6px;
  }

  .individual-weekdays span {
    font-size: 12px;
  }

  .individual-day small {
    font-size: 10px;
  }

  .individual-day-number {
    font-size: 15px;
  }

  .individual-schedule-month-nav {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .individual-month-current {
    font-size: 18px;
  }

  .individual-month-arrow {
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
  }

  .individual-day-mode .secondary-button,
  .individual-copy .secondary-button {
    flex: 1 1 100%;
    width: 100%;
    min-height: 48px;
  }

  .schedule-section-surface {
    padding: 14px;
  }

  .schedule-mode-card {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 14px;
  }

  .cycle-settings {
    grid-template-columns: 1fr;
  }

  .weekly-state-choice,
  .schedule-exception-actions .primary-button,
  .schedule-exception-actions .danger-button,
  .schedule-exception-quick-actions .secondary-button {
    width: 100%;
  }

  .schedule-exception-time-fields {
    grid-template-columns: 1fr;
  }

  .schedule-exception-weekdays-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-exception-quick-actions,
  .schedule-exception-actions,
  .schedule-exception-picker-header,
  .schedule-exception-picker-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-exception-card,
  .schedule-exception-card-actions,
  .individual-day-exception-item {
    align-items: stretch;
  }

  .schedule-exception-card {
    grid-template-columns: 1fr;
  }

  .schedule-exception-card-actions {
    justify-content: stretch;
  }

  .weekly-time-range {
    grid-template-columns: 1fr;
  }

  .weekly-time-separator {
    display: none;
  }

  .weekly-state-choice {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .schedule-exception-picker-grid,
  .schedule-exception-picker-weekdays {
    gap: 6px;
  }

  .schedule-exception-picker-day {
    min-height: 58px;
    padding: 8px 6px;
  }

  .schedule-exception-picker-number {
    font-size: 15px;
  }

  .individual-month {
    padding: 8px;
  }

  .individual-schedule-month-nav,
  .individual-month {
    width: 100%;
  }

  .month-day-number {
    font-size: 16px;
  }

  .month-day-badge {
    top: auto;
    right: 4px;
    bottom: 4px;
    min-width: 18px;
    width: 18px;
    height: 18px;
    max-width: none;
    padding: 0;
    border-width: 1px;
    font-size: 9px;
    line-height: 1;
  }

  .month-day-dots {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -10%);
    justify-content: center;
    width: calc(100% - 16px);
  }

  .day-mini-summary {
    grid-template-columns: 1fr;
  }

  .day-mini-summary span {
    text-align: left;
  }

  .day-panel-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .week-day summary {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .day-date,
  .day-summary {
    grid-column: 1;
  }

  .day-side {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .day-count,
  .week-day .status {
    justify-self: start;
  }

  .timeline-item,
  .day-row {
    grid-template-columns: 1fr;
  }

  .booking-row-toggle,
  .booking-row-details {
    grid-template-columns: 1fr;
  }

  .booking-row-toggle {
    gap: 4px 8px;
  }

  .day-history-note-main {
    align-items: start;
    flex-direction: column;
  }

  .booking-time {
    padding: 12px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-main {
    gap: 7px;
    padding: 11px 14px 14px;
  }

  .booking-row-service {
    font-size: 12px;
  }

  .booking-message-preview .booking-actions button,
  .booking-status-actions button {
    flex: 1 1 100%;
    min-width: 0;
  }

  .booking-status-actions {
    grid-template-columns: 1fr;
  }

  .booking-response-line {
    gap: 4px 10px;
  }

  #bookingView {
    margin: 0;
    background: #ffffff;
  }

  html.public-client-mode #bookingView,
  body.public-client-mode #bookingView {
    margin: 0;
  }

  .public-page {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .public-profile {
    padding: 12px;
  }

  .guided-hint-layer {
    display: grid;
    align-items: end;
  }

  .guided-hint-layer.is-mobile-sheet .guided-hint-backdrop {
    background: rgba(17, 24, 21, 0.22);
  }

  .guided-hint-layer.is-mobile-sheet .guided-hint-card {
    position: relative;
    inset: auto;
    width: calc(100vw - 20px);
    margin: 0 auto 10px;
    border-radius: 16px;
    padding: 18px;
  }

  .onboarding-profile-layout,
  .client-preview-card {
    grid-template-columns: 1fr;
  }

  .specialist-profile-fields {
    grid-template-columns: 1fr;
  }

  .client-preview-image {
    max-width: 180px;
  }

  .booking-flow {
    padding: 16px 16px max(24px, env(safe-area-inset-bottom));
  }

  #masterRequestText {
    min-height: 230px;
  }

  .month-picker {
    grid-template-columns: 44px 1fr 44px;
  }

  .month-picker .secondary-button {
    padding: 8px;
    font-size: 16px;
  }

  .calendar-weekdays,
  .date-grid {
    gap: 5px;
  }

  .date-button {
    min-height: 58px;
    padding: 8px 4px;
  }

  .date-button strong {
    font-size: 14px;
  }

  .date-button small {
    font-size: 10px;
  }

  .booking-legend .legend-item {
    gap: 6px;
  }

  .booking-legend .slots-count-example {
    min-width: 18px;
    min-height: 18px;
    font-size: 10px;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .section-tip-card {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 10px;
    right: 10px;
    bottom: auto;
    width: min(340px, calc(100vw - 20px));
    padding: 14px 14px 12px;
  }

  .section-tip-content p {
    font-size: 0.93rem;
  }

  .onboarding-template-grid,
  .onboarding-time-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    grid-template-columns: 1fr;
  }

  .button-row {
    display: grid;
  }

  .event-summary {
    grid-template-columns: 1fr;
  }

  .broadcast-answer-groups {
    grid-template-columns: 1fr;
  }

  .broadcast-recipient-controls {
    width: 100%;
  }

  .broadcast-recipient-controls .compact-field,
  .broadcast-recipient-controls .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .broadcast-list-switcher > button,
  .list-create-details > .form-fold-heading,
  .list-create-form .secondary-button {
    width: 100%;
  }

  .dispatch-period,
  .dispatch-card-actions,
  .dispatch-actions-panel,
  .dispatch-mapping-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dispatch-period {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dispatch-period button,
  .dispatch-card-actions button {
    width: 100%;
  }

  .dispatch-card-head {
    flex-direction: column;
  }

  .calendar-legend {
    gap: 8px 12px;
  }

  .qr-modal {
    align-items: end;
    padding: 12px;
  }

  .qr-modal-card {
    width: 100%;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }

  .reset-demo-dialog {
    align-items: end;
    padding: 12px;
  }

  .reset-demo-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  }

  .reset-demo-actions,
  .guided-hint-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 18px);
  }

  #manualBookingForm {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }

  .manual-booking-slots {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .manual-booking-slots .slot-grid {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .modal-close-button {
    top: 0;
    margin-right: 0;
  }
}

@media (max-height: 520px) {
  .section-tip-card {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: min(320px, calc(100vw - 20px));
    padding: 13px 13px 11px;
  }

  .section-tip-content p {
    font-size: 0.9rem;
  }
}

/* UI polish overrides */
:root {
  --radius-sm: 12px;
  --radius-md: var(--brand-card-radius);
  --radius-lg: var(--brand-card-radius-large);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --layout-section-gap: 20px;
  --layout-grid-gap: 20px;
  --layout-panel-padding: 24px;
  --layout-heading-gap: 14px;
  --surface-raised: rgba(255, 255, 255, 0.92);
  --shadow-soft: var(--brand-card-shadow);
  --shadow-hover: 0 16px 34px rgba(23, 32, 28, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #f8fbf9 0%, #f2f6f4 240px),
    var(--surface);
  font-family:
    "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  gap: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 249, 0.92) 100%);
  border-right: 1px solid rgba(194, 208, 201, 0.68);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-mark svg,
.brand-mark img {
  width: 30px;
  height: 30px;
}

.brand h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.nav-group {
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
}

.nav-tab {
  padding: 11px 13px;
  border-radius: 12px;
  font-weight: 700;
}

.nav-tab.active {
  box-shadow:
    inset 3px 0 0 var(--mint),
    0 10px 18px rgba(15, 113, 94, 0.08);
}

.workspace {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 30px;
  overflow: visible;
}

.topbar,
.workspace > .view {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.topbar {
  gap: 14px;
  margin-bottom: 18px;
  padding: 4px 0 2px;
  position: relative;
  overflow: visible;
}

.topbar h2 {
  font-size: 42px;
  letter-spacing: -0.03em;
}

.topbar-subtitle {
  margin-top: 4px;
  font-size: 15px;
}

.topbar-actions {
  gap: 8px;
}

.topbar-user {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 225, 220, 0.9);
  border-radius: 999px;
  color: #496159;
}

.eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.panel,
.metric,
.public-profile,
.booking-flow,
.auth-card,
.confirm-card {
  border-radius: var(--radius-md);
}

.panel,
.metric,
.public-profile,
.booking-flow {
  border-color: rgba(194, 208, 201, 0.86);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: var(--layout-panel-padding);
}

.metric {
  min-height: 116px;
  padding: 20px;
}

.metric strong {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.metric:hover,
.panel:hover,
.due-item:hover,
.data-card:hover,
.service-option:hover,
.repeat-box:hover,
.slot-button:hover,
.date-button:hover,
.month-day:hover {
  transform: none;
}

.field {
  gap: 8px;
  color: #567069;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border-color: #d6dfda;
}

textarea {
  min-height: 112px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.chip {
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}

.secondary-button,
.ghost-button,
.chip {
  color: #314842;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  border-color: #d6dfda;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.76);
}

.button-row {
  gap: 12px;
}

.section-heading {
  gap: 12px;
  margin-bottom: var(--layout-heading-gap);
}

.section-subtitle,
.section-note,
.booking-actions-note,
.client-preview-bio,
.confirm-card p,
.public-loading-state,
.notification-help,
.field-hint {
  color: #5e7069;
}

.dashboard-quick-actions {
  padding: 18px 20px;
}

.dashboard-quick-actions-row {
  gap: 12px;
}

.notification-panel {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.notification-panel-main {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.notification-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.notification-panel h3 {
  font-size: 18px;
}

.notification-panel p {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.4;
}

.notification-actions {
  justify-content: flex-start;
  align-items: stretch;
}

.view.active {
  display: grid;
  gap: var(--layout-section-gap);
  align-content: start;
}

.step.active {
  display: block;
}

.summary-grid {
  gap: 14px;
  margin-bottom: 0;
}

.dashboard-workspace {
  gap: var(--layout-grid-gap);
  margin-top: 0;
}

.summary-list-item,
.timeline-item,
.day-bookings-details,
.broadcast-tools,
.broadcast-inline-answers,
.dispatch-mapping,
.public-link-card,
.clients-sidebar-block,
.list-create-form,
.form-fold-heading,
.schedule-exception-card,
.individual-editor,
.individual-day-exceptions,
.confirm-guest-box,
.confirm-message-box,
.recipient-channel-group,
.archive-box {
  border-radius: 14px;
}

.summary-list-item,
.client-directory-row,
.recipient-row,
.day-bookings-details,
.schedule-exception-card,
.public-link-card {
  box-shadow: none;
}

.two-column {
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.9fr);
  gap: var(--layout-grid-gap);
  margin-bottom: 0;
  align-items: start;
}

.calendar-detail-panel {
  top: 18px;
}

.dashboard-column-panel {
  align-self: start;
}

.dashboard-column-panel .section-heading {
  align-items: flex-start;
  min-height: 68px;
}

.dashboard-column-panel .section-heading > div {
  min-width: 0;
}

.dashboard-column-panel .section-heading h3 {
  margin: 0;
}

.calendar-legend {
  gap: 8px 12px;
  margin-bottom: 16px;
}

.legend-item {
  font-size: 12px;
}

.month-toolbar {
  gap: 10px;
  margin: 14px 0 16px;
}

.month-toolbar strong,
.month-picker strong,
.individual-month-current {
  letter-spacing: -0.02em;
}

.week-strip,
.month-weekdays,
.calendar-weekdays,
.date-grid {
  gap: 8px;
}

.month-day {
  min-height: 64px;
  padding: 8px 6px 10px;
  border-radius: 12px;
}

.month-day-number {
  font-size: 16px;
}

.month-day-badge {
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 9px;
}

.month-day-dots {
  right: 8px;
  bottom: 8px;
}

.week-day,
.day-panel,
.timeline-item {
  border-radius: 14px;
}

.week-day summary,
.day-panel-header {
  min-height: 68px;
  padding: 16px 18px;
}

.day-summary strong {
  font-size: 16px;
}

.day-body {
  gap: 12px;
  padding: 16px;
}

.booking-row-service,
.day-count,
.recipient-channel-heading small,
.broadcast-answer-card small,
.client-preview-meta span,
.confirm-event-summary span {
  font-size: 12px;
}

.checkbox-field,
.schedule-mode label,
.checkbox-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 12px;
}

.checkbox-field input,
.schedule-mode input,
.checkbox-chip input {
  margin-top: 3px;
}

.compact-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
}

.compact-toggle-row input {
  margin-top: 0;
}

.schedule-mode {
  gap: 12px;
}

.individual-calendar {
  gap: 18px;
}

.individual-month {
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
}

.individual-day {
  min-height: 86px;
  padding: 14px 8px 20px;
  border-radius: 14px;
}

.individual-day-number {
  font-size: 18px;
}

.clients-directory,
.dispatch-page,
.broadcast-main-grid {
  gap: 22px;
}

.clients-directory {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.dispatch-page {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.dispatch-import,
.dispatch-workspace,
.clients-actions,
.clients-workspace {
  gap: 18px;
}

.client-directory-row {
  gap: 12px;
  padding: 14px 16px;
}

.broadcast-list-switcher,
.broadcast-recipient-controls,
.clients-toolbar,
.form-grid-2,
.form-grid-3,
.individual-editor-grid,
.schedule-exception-time-fields {
  gap: 14px;
}

.public-page {
  max-width: min(920px, calc(100vw - 48px));
  border-radius: 20px;
  box-shadow: 0 26px 50px rgba(23, 32, 28, 0.08);
}

.public-profile {
  padding: 24px;
}

.public-profile .client-preview-card {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border-radius: 18px;
}

.booking-flow {
  padding: 24px;
}

.booking-progress {
  gap: 8px;
  margin-bottom: 22px;
}

.booking-flow .step h3 {
  margin-bottom: 10px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.service-option,
.slot-button,
.date-button {
  border-radius: 14px;
}

.service-option {
  min-height: 64px;
  padding: 15px 16px;
}

.date-button {
  min-height: 76px;
  padding: 10px 8px;
}

.slot-button {
  min-height: 54px;
}

.section-tip-card {
  right: 20px;
  bottom: 20px;
  width: min(282px, calc(100vw - 40px));
  padding: 12px 12px 10px;
  border-radius: 16px;
  box-shadow: 0 20px 36px rgba(16, 25, 21, 0.16);
}

.section-tip-content {
  gap: 6px;
  padding-right: 34px;
}

.section-tip-content p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.section-tip-close {
  width: 30px;
  height: 30px;
  top: 8px;
  right: 8px;
}

@media (max-width: 980px) {
  .workspace {
    padding: 20px 20px max(18px, env(safe-area-inset-bottom));
  }

  .topbar,
  .workspace > .view {
    width: 100%;
  }

  .two-column,
  .clients-directory,
  .dispatch-page,
  .broadcast-main-grid {
    grid-template-columns: 1fr;
  }

  .public-page {
    max-width: min(760px, calc(100vw - 28px));
  }
}

@media (max-width: 620px) {
  .sidebar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-mark svg,
  .brand-mark img {
    width: 24px;
    height: 24px;
  }

  .workspace {
    padding: 14px 14px max(22px, env(safe-area-inset-bottom));
  }

  .workspace,
  .workspace > .view,
  .topbar,
  .topbar > *,
  .panel,
  .public-page,
  .public-profile,
  .booking-flow,
  .confirm-card,
  .client-preview-card,
  .clients-directory > *,
  .dispatch-page > *,
  .broadcast-main-grid > *,
  .field,
  .field > *,
  .button-row,
  .button-row > *,
  .client-directory-row,
  .recipient-row,
  .service-option,
  .slot-button,
  .date-button,
  .schedule-exception-card,
  .schedule-exception-card-actions,
  .timeline-item,
  .booking-row-toggle,
  .booking-row-details {
    min-width: 0;
  }

  .topbar h2 {
    font-size: 22px;
  }

  .topbar-subtitle {
    font-size: 14px;
  }

  .panel,
  .metric,
  .public-profile,
  .booking-flow {
    border-radius: 14px;
  }

  .panel {
    padding: 16px;
  }

  .dashboard-quick-actions-row .primary-button,
  .dashboard-quick-actions-row .ghost-button,
  .notification-actions .primary-button,
  .notification-actions .secondary-button,
  .confirm-actions button,
  .booking-actions button,
  .booking-status-actions button,
  .clients-actions button,
  .dispatch-action-strip button,
  .dispatch-selection-tools button,
  .dispatch-sticky-bar button {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  .mobile-utility-action {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-utility-menu {
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 20px));
    max-height: min(calc(100vh - 78px), 72dvh);
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric {
    min-height: 96px;
    padding: 16px;
  }

  .metric span {
    min-height: 0;
    font-size: 13px;
  }

  .metric strong {
    font-size: 32px;
  }

  .dashboard-stat-card {
    min-height: 88px;
    padding: 12px 10px;
  }

  .dashboard-stat-card span {
    font-size: 11px;
    line-height: 1.2;
  }

  .dashboard-stat-card strong {
    margin-top: 8px;
    font-size: 24px;
  }

  .dashboard-summary-secondary-action {
    width: 100%;
  }

  .notification-panel-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .month-day {
    min-height: 54px;
    padding: 7px 4px 8px;
  }

  .month-day-number {
    font-size: 15px;
  }

  .month-day-badge {
    top: auto;
    right: 4px;
    bottom: 4px;
    min-width: 18px;
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: 9px;
  }

  .month-day-dots {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -10%);
    justify-content: center;
    width: calc(100% - 16px);
  }

  .individual-day {
    min-height: 72px;
    padding: 12px 5px 18px;
  }

  .public-page {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    gap: 14px;
  }

  .public-profile,
  .booking-flow {
    padding: 16px;
  }

  .public-master-page {
    border-radius: 18px;
  }

  .public-master-hero-body {
    gap: 16px;
  }

  .public-master-photo {
    width: min(156px, 44vw);
  }

  .public-master-hero-copy {
    gap: 10px;
  }

  .public-master-header strong {
    font-size: 28px;
  }

  .public-master-meta {
    justify-content: center;
  }

  .public-master-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .public-master-booking-cta,
  .public-master-contact-action {
    width: 100%;
    min-width: 0;
  }

  .public-master-section {
    padding: 18px;
  }

  .public-master-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-grid,
  .calendar-weekdays,
  .week-strip {
    gap: 6px;
  }

  .date-button {
    min-height: 62px;
    padding: 8px 5px;
  }

  .date-button strong {
    font-size: 14px;
  }

  .date-button small {
    font-size: 10px;
  }

  .service-option,
  .slot-button {
    min-height: 52px;
    padding: 13px 14px;
  }

  .dispatch-search-field,
  .dispatch-search-field input,
  .dispatch-date-input,
  .dispatch-date-input input,
  .client-link-summary .field,
  .public-link-card .field,
  input[type="file"],
  img,
  canvas,
  svg {
    max-width: 100%;
    min-width: 0;
  }

  .dispatch-search-field,
  .dispatch-date-input {
    margin-left: 0;
  }

  .dispatch-search-field input,
  .dispatch-date-input input {
    width: 100%;
  }

  .summary-list-item,
  .client-directory-row,
  .recipient-row,
  .schedule-exception-card,
  .day-history-note,
  .confirm-message-box,
  .confirm-guest-box {
    overflow-wrap: anywhere;
  }

  .panel h3,
  .public-profile h3,
  .booking-flow .step h3,
  .client-preview-header strong,
  .day-panel-heading-row strong,
  .booking-row-name,
  .recipient-row strong,
  .summary-list-main strong {
    overflow-wrap: anywhere;
  }

  .checkbox-field,
  .schedule-mode label,
  .checkbox-chip {
    min-height: 48px;
    padding: 12px;
  }

  .compact-toggle-row {
    min-height: 44px;
    padding: 8px 0;
  }

  .booking-editor-card,
  .client-create-card {
    width: min(100%, 100%);
    padding: 16px;
  }

  .booking-editor-grid {
    grid-template-columns: 1fr;
  }

  .booking-editor-mode,
  .booking-editor-success-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-tip-card {
    display: none;
  }
}

/* Design polish pass #1 */
:root {
  --polish-card-radius: 16px;
  --polish-card-padding: 22px;
  --polish-section-gap: 20px;
  --polish-inline-gap: 12px;
}

.view.active {
  gap: var(--polish-section-gap);
}

.panel,
.metric,
.booking-flow {
  border-radius: var(--polish-card-radius);
}

.panel {
  padding: var(--polish-card-padding);
}

.area-card {
  min-width: 0;
}

.section-heading {
  align-items: flex-start;
  gap: var(--polish-inline-gap);
  margin: 0 0 16px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h3,
.section-heading p {
  margin-top: 0;
}

.dashboard-workspace,
.clients-directory,
.dispatch-page,
.broadcast-main-grid,
.public-page,
.schedule-config,
.schedule-section,
.stack-form {
  gap: var(--polish-section-gap);
}

.dashboard-workspace .two-column,
#scheduleView .two-column {
  align-items: start;
}

.dashboard-column-panel {
  align-self: start;
  margin-top: 0;
}

.dashboard-column-panel > .section-heading:first-child {
  margin-top: 0;
}

.dashboard-column-panel .section-heading {
  min-height: 0;
}

.calendar-detail-panel {
  top: 16px;
}

.dashboard-summary-panel,
.dashboard-column-panel,
#scheduleView .panel,
#clientsView .panel,
#profileView .panel,
#bookingView .booking-flow {
  align-content: start;
}

.dashboard-stat-card {
  min-height: 96px;
  align-content: center;
}

.summary-list-item,
.client-directory-row,
.recipient-row,
.schedule-exception-card,
.public-link-card,
.day-bookings-details {
  border-radius: 12px;
}

.compact-toggle-row,
.checkbox-line,
.dispatch-limit-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  max-width: 100%;
}

.compact-toggle-row {
  min-height: 40px;
  padding: 4px 0;
}

.compact-toggle-row input,
.checkbox-line input,
.dispatch-limit-toggle input {
  flex: 0 0 auto;
}

.compact-toggle-row span,
.checkbox-line span,
.dispatch-limit-toggle span {
  min-width: 0;
}

.schedule-setting-card:has(.compact-toggle-row) {
  gap: 8px;
}

.schedule-setting-card:has(.compact-toggle-row) .schedule-setting-stack {
  gap: 4px;
}

.schedule-exception-time-fields,
.form-grid-2,
.form-grid-3,
.clients-toolbar,
.broadcast-recipient-controls,
.dispatch-action-strip {
  align-items: end;
}

.client-preview-card,
.public-master-page,
.booking-flow,
.public-profile {
  max-width: 100%;
}

.public-page {
  width: min(100%, 920px);
  box-shadow: none;
}

.public-profile {
  padding: 0;
}

.public-profile .client-preview-card {
  margin-inline: auto;
}

.public-master-page {
  overflow: hidden;
  border: 1px solid rgba(194, 208, 201, 0.9);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.public-master-hero {
  background:
    radial-gradient(circle at 50% 0, rgba(232, 246, 241, 0.9) 0, rgba(232, 246, 241, 0) 42%),
    linear-gradient(180deg, #f6fbf8 0%, #ffffff 100%);
}

.public-master-hero-body {
  justify-items: center;
  text-align: center;
}

.public-master-hero-copy,
.public-master-header {
  justify-items: center;
}

.public-master-actions {
  justify-content: center;
}

.public-master-booking-cta,
.public-master-contact-action {
  text-decoration: none;
}

.public-master-section {
  margin: 0;
  border-radius: 16px;
}

.public-master-services li,
.service-option,
.slot-button,
.date-button {
  min-width: 0;
}

.nav-tabs,
.topbar,
.mobile-header,
.public-page,
.client-preview-panel,
.booking-flow,
.clients-workspace,
.dispatch-workspace {
  min-width: 0;
}

@media (max-width: 980px) {
  .calendar-detail-panel {
    position: static;
    top: auto;
  }

  .dashboard-column-panel .section-heading {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --polish-card-padding: 16px;
    --polish-section-gap: 14px;
  }

  html,
  body {
    overflow-x: clip;
  }

  .workspace {
    gap: 0;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .section-heading {
    display: grid;
    gap: 10px;
  }

  .section-heading > button,
  .section-heading > .secondary-button,
  .section-heading > .ghost-button {
    justify-self: start;
  }

  .dashboard-quick-actions-row,
  .button-row,
  .back-actions,
  .done-actions,
  .schedule-exception-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-stat-card {
    min-height: 82px;
    padding: 10px 8px;
  }

  .dashboard-stat-card span {
    font-size: 10px;
  }

  .dashboard-stat-card strong {
    font-size: 24px;
  }

  .summary-list-item {
    grid-template-columns: 1fr;
  }

  .summary-list-actions {
    justify-content: stretch;
  }

  .summary-list-actions button {
    width: 100%;
  }

  .compact-toggle-row,
  .checkbox-line,
  .dispatch-limit-toggle {
    width: fit-content;
    min-height: 38px;
    gap: 9px;
  }

  .public-master-page {
    border-radius: 18px;
  }

  .premium-segmented-toggle,
  .premium-interface-preview-nav {
    grid-template-columns: 1fr;
  }

  .public-master-hero-body {
    padding-inline: 16px;
  }

  .public-master-section {
    padding: 16px;
  }

  .booking-flow .step {
    min-height: auto;
  }

  .month-toolbar,
  .month-picker {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .month-toolbar .month-today {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* Mobile UX audit: viewport safety, compact actions and consistent stacking */
@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .app-shell,
  .sidebar,
  .workspace,
  .workspace > .view,
  .topbar,
  .panel,
  .public-page,
  .public-profile,
  .public-master-page,
  .booking-flow,
  .confirm-page,
  .confirm-card,
  .reset-demo-card,
  .client-preview-panel,
  .client-preview-card,
  .clients-workspace,
  .dispatch-workspace,
  .dispatch-page,
  .broadcast-main-grid,
  .clients-directory {
    max-width: 100%;
    min-width: 0;
  }

  .brand {
    align-items: center;
  }

  .brand-main,
  .brand-main > div {
    min-width: 0;
  }

  .brand h1,
  .eyebrow,
  .topbar h2,
  .topbar-subtitle,
  .topbar-user,
  .topbar-badge {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .nav-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-group {
    min-width: 0;
  }

  .nav-tab {
    min-height: 44px;
    white-space: nowrap;
  }

  .mobile-utility-toggle,
  .mobile-utility-action,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    min-height: 44px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .section-heading,
  .clients-toolbar,
  .dispatch-filters,
  .dispatch-action-strip,
  .dispatch-selection-tools,
  .broadcast-recipient-controls,
  .broadcast-list-switcher,
  .confirm-actions,
  .confirm-message-actions,
  .done-actions,
  .booking-actions,
  .booking-status-actions,
  .booking-manage-actions,
  .booking-editor-actions,
  .booking-editor-success-actions,
  .reset-demo-actions,
  .schedule-exception-actions,
  .schedule-exception-quick-actions,
  .client-detail-actions,
  .client-card-actions,
  .soft-empty-state-actions,
  .back-actions,
  .button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    justify-content: stretch;
    align-items: stretch;
  }

  .section-heading > button,
  .section-heading > .primary-button,
  .section-heading > .secondary-button,
  .section-heading > .ghost-button,
  .clients-toolbar button,
  .dispatch-action-strip button,
  .dispatch-selection-tools button,
  .broadcast-recipient-controls button,
  .broadcast-list-switcher button,
  .confirm-actions button,
  .confirm-message-actions button,
  .done-actions button,
  .booking-actions button,
  .booking-status-actions button,
  .booking-manage-actions button,
  .booking-editor-actions button,
  .booking-editor-success-actions button,
  .reset-demo-actions button,
  .schedule-exception-actions button,
  .schedule-exception-quick-actions button,
  .client-detail-actions button,
  .client-card-actions button,
  .soft-empty-state-actions button,
  .back-actions button,
  .button-row button {
    width: 100%;
    min-width: 0;
  }

  .service-form,
  .client-form,
  .client-edit-form,
  .recipient-form,
  .channel-form,
  .list-create-form,
  .booking-editor-grid,
  .manual-booking-grid,
  .specialist-profile-fields,
  .schedule-exception-time-fields,
  .form-grid-2,
  .form-grid-3,
  .cycle-settings,
  .individual-editor-grid,
  .client-detail-grid,
  .client-detail-facts,
  .summary-grid,
  .event-summary,
  .value-points,
  .public-link-grid,
  .share-panel,
  .assistant-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .number-with-unit,
  .duration-input {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .field,
  .field > *,
  input,
  select,
  textarea,
  .dispatch-search-field,
  .dispatch-search-field input,
  .dispatch-date-input,
  .dispatch-date-input input,
  input[type="file"] {
    max-width: 100%;
    min-width: 0;
  }

  .month-toolbar,
  .month-picker {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100%;
  }

  .month-toolbar .month-today {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .date-grid,
  .calendar-weekdays,
  .week-strip {
    width: 100%;
    min-width: 0;
  }

  .month-day,
  .date-button,
  .individual-day,
  .schedule-exception-picker-day,
  .service-option,
  .slot-button,
  .summary-list-item,
  .client-directory-row,
  .recipient-row,
  .schedule-exception-card,
  .timeline-item,
  .booking-row-toggle,
  .booking-row-details,
  .confirm-message-box,
  .confirm-guest-box {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .calendar-legend,
  .booking-legend,
  .individual-legend,
  .public-master-meta,
  .client-preview-meta {
    max-width: 100%;
    min-width: 0;
  }

  .legend-item,
  .public-master-meta span,
  .client-preview-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .public-page {
    width: 100%;
    max-width: none;
  }

  .public-profile,
  .booking-flow,
  .confirm-card {
    padding: 16px;
  }

  html.public-confirm-mode .app-legal-footer,
  body.public-confirm-mode .app-legal-footer {
    width: calc(100% - 28px);
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .public-master-hero-body,
  .public-master-section {
    padding-inline: 16px;
  }

  .public-master-header strong,
  .public-master-header span,
  .public-master-services li,
  .client-preview-header strong,
  .client-preview-services li,
  .booking-flow .step h3,
  .confirm-card h3,
  .confirm-card p,
  .day-panel-heading-row strong,
  .booking-row-name,
  .recipient-row strong,
  .summary-list-main strong {
    overflow-wrap: anywhere;
  }

  .service-options,
  .slot-grid,
  .public-master-actions {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .public-master-booking-cta,
  .public-master-contact-action,
  .service-option,
  .slot-button {
    width: 100%;
  }

  .landing-profile-public-head,
  .landing-profile-public-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-profile-public-copy,
  .landing-profile-badge-row,
  .landing-profile-book-button {
    min-width: 0;
    max-width: 100%;
  }

  .toast-stack,
  .guided-hint-card {
    max-width: calc(100vw - 24px);
  }

  .landing-entry-screen::before {
    left: 0;
  }

  .landing-entry-screen::after {
    right: 0;
  }
}

@media (max-width: 380px) {
  .workspace {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .panel,
  .public-profile,
  .booking-flow,
  .confirm-card,
  .reset-demo-card {
    padding: 14px;
  }

  .nav-tab {
    min-width: 104px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .date-grid,
  .calendar-weekdays,
  .week-strip {
    gap: 4px;
  }

  .date-button,
  .month-day {
    padding-inline: 4px;
  }

  .date-button {
    min-height: 54px;
    gap: 2px;
  }

  .date-button strong,
  .month-day-number {
    font-size: 13px;
  }

  .date-button small,
  .month-day-badge {
    font-size: 10px;
  }

  .slot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-master-section,
  .public-master-hero-body {
    padding-inline: 14px;
  }

  .landing-entry-screen::before {
    width: 220px;
    height: 220px;
  }

  .landing-entry-screen::after {
    width: 180px;
    height: 180px;
  }
}

/* Clients UX audit: compact CRM layout without changing behavior */
#clientsView .clients-directory {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#clientsView .clients-workspace {
  min-width: 0;
  gap: 12px;
}

#clientsView .clients-top-tools {
  display: grid;
  gap: 12px;
}

#clientsView .clients-segmented-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  gap: 6px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  background: #f3f7f8;
  border: 1px solid #dbe6ea;
  border-radius: 14px;
}

#clientsView .clients-segmented-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

#clientsView .clients-segmented-tab.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(14, 34, 48, 0.08);
}

#clientsView .clients-tool-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(14, 34, 48, 0.03);
}

#clientsView .clients-actions .dispatch-upload,
#clientsView .clients-tool-panel .dispatch-upload,
#clientsView .clients-sidebar-block,
#clientsView .clients-toolbar,
#clientsView .client-directory-row,
#clientsView .client-detail,
#clientsView .client-detail-hero,
#clientsView .client-detail-panel,
#clientsView .client-edit-form,
#clientsView .client-history-item {
  max-width: 100%;
  min-width: 0;
}

#clientsView .clients-sidebar-block {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

#clientsView .clients-sidebar-actions {
  gap: 8px;
}

#clientsView .client-directory-row {
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  gap: 10px 12px;
  min-height: 58px;
  padding: 10px 12px;
  align-items: center;
}

#clientsView .client-directory-row .dispatch-choice,
#clientsView .client-directory-row .dispatch-choice > span {
  min-width: 0;
}

#clientsView .client-directory-row .edit-client {
  justify-self: end;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

#clientsView .client-detail {
  gap: 18px;
}

#clientsView .client-detail-hero,
#clientsView .client-detail-panel {
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  box-shadow: 0 12px 30px rgba(14, 34, 48, 0.05);
}

#clientsView .client-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: start;
  gap: 18px;
}

#clientsView .client-detail-heading {
  gap: 14px;
}

#clientsView .client-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}

#clientsView .client-detail-meta span,
#clientsView .client-phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f8f9;
  border: 1px solid #d8e6ea;
  color: #4a5b66;
}

#clientsView .client-detail-person h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

#clientsView .client-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

#clientsView .client-detail-actions .primary-button,
#clientsView .client-detail-actions .secondary-button,
#clientsView .client-detail-actions .ghost-button {
  min-width: 0;
  max-width: 100%;
}

#clientsView .client-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfc 100%);
  border: 1px solid #dce7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(14, 34, 48, 0.05);
}

#clientsView .client-edit-field {
  min-width: 0;
}

#clientsView .client-edit-field-notes {
  grid-column: 1 / -1;
}

#clientsView .client-edit-field textarea {
  min-height: 104px;
  resize: vertical;
}

#clientsView .client-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

#clientsView .client-detail-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

#clientsView .client-detail-main {
  display: grid;
  gap: 16px;
}

#clientsView .client-next-appointment-panel {
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(22, 160, 133, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
}

#clientsView .client-panel-kicker {
  color: #527068;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#clientsView .client-next-appointment-value {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#clientsView .client-next-appointment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #4d5f69;
  font-size: 14px;
}

#clientsView .client-next-appointment-badge {
  flex-shrink: 0;
}

#clientsView .client-detail-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#clientsView .client-detail-facts article {
  min-height: 0;
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: #f8fbfc;
  border: 1px solid #e2ebee;
}

#clientsView .client-detail-facts article.is-priority {
  background: linear-gradient(180deg, #eef9f6 0%, #f8fcfb 100%);
  border-color: #cbe4db;
}

#clientsView .client-detail-facts strong {
  font-size: 15px;
  line-height: 1.35;
}

#clientsView .client-detail-note-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#clientsView .client-detail-message {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffef8 0%, #fff9ea 100%);
  border: 1px solid #ecdca1;
}

#clientsView .client-history-panel {
  gap: 16px;
  min-height: 100%;
}

#clientsView .client-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

#clientsView .client-history-head strong {
  font-size: 19px;
}

#clientsView .client-history-head small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#clientsView .client-history {
  gap: 8px;
}

#clientsView .client-history-item {
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fcfdfd;
  border: 1px solid #e4ecef;
}

#clientsView .client-history-date {
  display: grid;
  gap: 2px;
}

#clientsView .client-history-date strong {
  font-size: 14px;
  line-height: 1.25;
}

#clientsView .client-history-date small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#clientsView .client-history-main {
  gap: 2px;
}

#clientsView .client-history-main strong {
  font-size: 14px;
  line-height: 1.3;
}

#clientsView .client-history-main small {
  color: #60717b;
  font-size: 12px;
  line-height: 1.35;
}

#clientsView .client-history-side {
  display: flex;
  justify-content: flex-end;
}

#clientsView .client-history-note {
  grid-column: 2 / -1;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6faf9;
  border: 1px solid #e0eae6;
  color: #53626c;
  font-size: 12px;
  line-height: 1.45;
}

#clientsView .client-row-choice {
  align-self: start;
}

#clientsView .client-row-actions {
  align-self: start;
}

#clientsView .client-row-actions .secondary-button {
  font-weight: 700;
}

#clientsView .client-directory-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 16px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid #dfe8ec;
  box-shadow: 0 8px 18px rgba(14, 34, 48, 0.035);
}

#clientsView .client-list-person-copy {
  gap: 4px;
}

#clientsView .client-list-person-copy strong {
  font-size: 15px;
  line-height: 1.3;
}

#clientsView .client-list-person-copy small {
  color: #64757f;
  line-height: 1.4;
}

@media (max-width: 980px) {
  #clientsView .clients-directory,
  #clientsView .client-detail-grid,
  #clientsView .client-detail-facts,
  #clientsView .client-edit-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #clientsView .client-detail-hero,
  #clientsView .client-history-item,
  #clientsView .client-directory-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #clientsView .client-history-note {
    grid-column: 1 / -1;
  }

  #clientsView .client-history-side {
    justify-content: flex-start;
  }

  #clientsView .client-detail-actions {
    justify-content: stretch;
  }

  #clientsView .client-directory-row .edit-client,
  #clientsView .client-detail-actions,
  #clientsView .client-edit-actions {
    justify-self: stretch;
    justify-content: stretch;
  }

  #clientsView .client-directory-row .edit-client,
  #clientsView .client-detail-actions button,
  #clientsView .client-edit-actions button {
    width: 100%;
  }

  #clientsView .client-detail-meta {
    gap: 8px;
  }

  #clientsView .client-detail-meta span,
  #clientsView .client-phone-link {
    width: 100%;
    justify-content: center;
  }

  #clientsView .client-detail-person h3 {
    font-size: 28px;
  }

  #clientsView .client-next-appointment-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  #clientsView .clients-segmented-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #clientsView .clients-segmented-tab {
    min-width: 0;
    padding-inline: 12px;
  }
}

/* Schedule UX audit: calmer density and responsive grouping without logic changes */
#scheduleView .two-column {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.54fr);
  gap: 16px;
  align-items: start;
}

#scheduleView .panel {
  align-content: start;
}

#scheduleView.is-individual-layout #schedulePanelHeader {
  display: none;
}

#scheduleView .section-heading {
  margin-bottom: 14px;
}

#scheduleView .section-heading h3,
#scheduleView .schedule-section-head strong,
#scheduleView .schedule-breaks-heading strong {
  line-height: 1.22;
}

#scheduleView .schedule-list,
#scheduleView .schedule-config,
#scheduleView .schedule-setting-stack,
#scheduleView .schedule-section,
#scheduleView .individual-schedule,
#scheduleView .schedule-exceptions-content,
#scheduleView .stack-form {
  gap: 10px;
}

#scheduleView .schedule-section-surface {
  padding: 14px;
  border-radius: 12px;
  box-shadow: none;
}

#scheduleView .schedule-config > .schedule-section + .schedule-section::before {
  top: -5px;
  left: 12px;
  right: 12px;
}

#scheduleView .schedule-mode {
  gap: 10px;
}

#scheduleView .schedule-mode-card {
  min-height: 78px;
  padding: 13px 14px;
  border-radius: 12px;
}

#scheduleView .schedule-mode-card-title {
  font-size: 14px;
}

#scheduleView .schedule-mode-card small {
  font-size: 12px;
  line-height: 1.3;
}

#scheduleView .schedule-settings-grid,
#scheduleView .schedule-restrictions-grid {
  gap: 10px;
}

#scheduleView .schedule-setting-card,
#scheduleView .schedule-setting-field {
  padding: 12px;
  border-radius: 12px;
}

#scheduleView .weekly-schedule-table {
  border-radius: 12px;
}

#scheduleView .weekly-schedule-head,
#scheduleView .day-row {
  grid-template-columns: minmax(126px, 1fr) 72px 72px minmax(0, 276px);
  gap: 10px;
}

#scheduleView .weekly-schedule-head {
  padding: 0 12px 8px;
  font-size: 11px;
}

#scheduleView .day-row {
  min-height: 58px;
  padding: 10px 12px;
}

#scheduleView .weekly-day-name {
  font-size: 14px;
}

#scheduleView .weekly-state-choice {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
}

#scheduleView .weekly-time-range {
  grid-template-columns: minmax(0, 112px) auto minmax(0, 112px);
  gap: 8px;
}

#scheduleView .weekly-time-range .time-input {
  max-width: 118px;
}

#scheduleView .cycle-settings {
  gap: 10px;
}

#scheduleView .cycle-preview-day {
  min-height: 48px;
  padding: 10px 12px;
}

#scheduleView .individual-actions,
#scheduleView .individual-copy {
  gap: 8px;
}

#scheduleView .individual-schedule-month-nav {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
}

#scheduleView .individual-month-arrow {
  min-width: 44px;
  min-height: 44px;
}

#scheduleView .individual-month-current {
  font-size: 20px;
}

#scheduleView .individual-calendar {
  gap: 12px;
}

#scheduleView .individual-month {
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
}

#scheduleView .individual-weekdays,
#scheduleView .individual-days {
  gap: 6px;
}

#scheduleView .individual-day {
  min-height: 68px;
  padding: 10px 5px 18px;
  border-radius: 10px;
}

#scheduleView .individual-day-number {
  font-size: 16px;
}

#scheduleView .individual-day small {
  font-size: 10px;
}

#scheduleView .individual-legend {
  gap: 8px 12px;
  padding: 9px 10px;
  border-radius: 12px;
}

#scheduleView .individual-editor {
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
}

#scheduleView .individual-editor-grid {
  gap: 10px;
}

#scheduleView .individual-day-off-state,
#scheduleView .individual-day-exceptions {
  padding: 12px;
}

#scheduleView .schedule-exceptions-panel {
  position: sticky;
  top: 16px;
  padding: 16px;
}

#scheduleView .schedule-exceptions-toggle {
  min-height: 40px;
  font-size: 17px;
}

#scheduleView .schedule-exceptions-content {
  margin-top: 12px;
}

#scheduleView .schedule-exceptions-content .section-heading {
  margin-bottom: 6px;
}

#scheduleView .schedule-exceptions-content .section-subtitle {
  margin-top: 4px;
}

#scheduleView .schedule-exception-time-fields {
  gap: 10px;
}

#scheduleView .schedule-exception-weekdays-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

#scheduleView .checkbox-chip {
  min-height: 38px;
  padding: 7px 9px;
}

#scheduleView .schedule-exception-actions,
#scheduleView .schedule-exception-quick-actions {
  gap: 8px;
}

#scheduleView .schedule-breaks-heading {
  margin-top: 2px;
}

#scheduleView .schedule-exception-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
}

#scheduleView .schedule-exception-card-actions .ghost-button {
  min-height: 38px;
  padding: 8px 12px;
}

.schedule-exception-picker-card {
  max-width: min(720px, calc(100vw - 28px));
  padding: 18px;
}

.schedule-exception-picker-day {
  min-height: 64px;
  padding: 8px 6px;
  border-radius: 10px;
}

.schedule-exception-picker-weekdays,
.schedule-exception-picker-grid {
  gap: 6px;
}

@media (max-width: 1320px) {
  #scheduleView .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  #scheduleView .schedule-exceptions-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 820px) {
  #scheduleView .section-heading {
    gap: 10px;
  }

  #scheduleView .section-heading > button,
  #scheduleView .section-heading > .secondary-button {
    width: 100%;
  }

  #scheduleView .schedule-section-surface {
    padding: 12px;
  }

  #scheduleView .day-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  #scheduleView .weekly-time-range {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  #scheduleView .weekly-time-range .time-input {
    max-width: none;
  }

  #scheduleView .schedule-mode,
  #scheduleView .schedule-settings-grid,
  #scheduleView .schedule-restrictions-grid,
  #scheduleView .cycle-settings,
  #scheduleView .individual-editor-grid,
  #scheduleView .schedule-exception-time-fields,
  #scheduleView .schedule-exception-actions,
  #scheduleView .schedule-exception-quick-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  #scheduleView .individual-calendar {
    grid-template-columns: minmax(0, 1fr);
  }

  #scheduleView .individual-weekdays,
  #scheduleView .individual-days,
  .schedule-exception-picker-weekdays,
  .schedule-exception-picker-grid {
    gap: 4px;
  }

  #scheduleView .individual-day {
    min-height: 58px;
    padding: 8px 4px 16px;
  }

  #scheduleView .schedule-exception-weekdays-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scheduleView .schedule-exception-card {
    grid-template-columns: minmax(0, 1fr);
  }

  #scheduleView .schedule-exception-card-actions,
  #scheduleView .schedule-exception-card-actions button {
    width: 100%;
  }

  .schedule-exception-picker-header {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-exception-picker-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
}

@media (max-width: 380px) {
  #clientsView .clients-mobile-groups-toggle small {
    display: none;
  }

  #scheduleView .individual-day,
  .schedule-exception-picker-day {
    min-height: 52px;
  }

  #scheduleView .individual-day small,
  .schedule-exception-picker-day small {
    font-size: 9px;
  }
}

/* Progressive disclosure pass */
#servicesView .service-form {
  max-width: 760px;
  margin-inline: auto;
  gap: 12px;
}

#servicesView .service-form-hint {
  max-width: 640px;
  margin-top: -4px;
  color: var(--muted);
}

#servicesView .service-form-actions {
  margin-top: 2px;
}

#servicesView .service-advanced-content {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  margin-top: 2px;
}

#servicesView .cards-list {
  gap: 10px;
  max-width: 760px;
  margin-inline: auto;
}

#servicesView .data-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
}

#servicesView .service-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#servicesView .data-card strong,
#servicesView .data-card small {
  min-width: 0;
}

#servicesView .data-card .delete-service {
  align-self: center;
  justify-self: end;
}

#scheduleView .schedule-restrictions-disclosure {
  gap: 0;
}

#scheduleView .schedule-restrictions-disclosure::before {
  content: none;
}

#scheduleView .schedule-restrictions-disclosure > summary {
  border-color: #dbe7e1;
  min-height: 40px;
  padding: 9px 12px;
}

#scheduleView .schedule-restrictions-content {
  padding-top: 10px;
}

#scheduleView .schedule-settings-grid {
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.1fr);
}

#scheduleView .schedule-restrictions-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

#scheduleView .schedule-setting-stack {
  display: grid;
  gap: 8px;
}

#scheduleView .compact-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  margin: 0;
}

#scheduleView .schedule-setting-card .schedule-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

#scheduleView .schedule-exceptions-panel.is-collapsed {
  padding-bottom: 16px;
}

#scheduleView .schedule-exceptions-content {
  animation: disclosure-open 0.18s ease;
}

@media (max-width: 980px) {
  #servicesView .service-form,
  #servicesView .service-advanced-content,
  #servicesView .service-form-grid,
  #scheduleView .schedule-settings-grid,
  #scheduleView .schedule-restrictions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #servicesView .service-advanced-disclosure,
  #servicesView .service-advanced-disclosure[open] {
    min-width: 0;
  }

  #servicesView .service-form-actions .primary-button {
    width: 100%;
    min-width: 0;
  }

  #servicesView .data-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .progressive-disclosure summary {
    min-height: 44px;
  }

  #servicesView .service-form-actions .primary-button {
    width: 100%;
    min-width: 0;
  }
}

/* Focused profile/theme cleanup */
.specialist-profile-preview-action-panel .section-heading {
  align-items: center;
  gap: 16px;
}

.specialist-profile-preview-action-panel .secondary-button {
  flex: 0 0 auto;
}

[data-theme-controls-hidden="true"],
#premiumPreviewThemeChip[hidden] {
  display: none !important;
}

#dashboardView .dashboard-workspace > .two-column {
  align-items: start;
}

#dashboardView .dashboard-column-panel {
  align-self: start;
  margin-top: 0;
}

#dashboardView .calendar-detail-panel {
  top: 0;
}

#dashboardView .dashboard-column-panel .section-heading {
  min-height: 0;
}

#clientsView .clients-group-tools {
  display: grid;
  order: 3;
  gap: 12px;
  min-width: 0;
}

#clientsView #clientsSummaryGrid {
  order: 1;
}

#clientsView .clients-toolbar-search {
  order: 2;
}

#clientsView #clientsList {
  order: 4;
}

#clientsView #clientsArchiveSection {
  order: 5;
}

#clientsView .clients-mobile-groups-toggle {
  display: none;
}

#clientsView .clients-group-tools-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

@media (max-width: 820px) {
  #dashboardView .dashboard-calendar-create-action {
    display: none;
  }

  #dashboardView .dashboard-quick-actions-row .primary-button {
    width: 100%;
  }

  #clientsView .clients-workspace {
    gap: 10px;
  }

  #clientsView .clients-group-tools {
    order: 20;
    margin-top: 2px;
    padding: 0;
  }

  #clientsView .clients-mobile-groups-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dbe7e1;
    border-radius: 14px;
    background: #f8fbfa;
    color: var(--ink);
    text-align: left;
    box-shadow: none;
  }

  #clientsView .clients-mobile-groups-toggle span {
    min-width: 0;
    font-weight: 850;
    overflow-wrap: anywhere;
  }

  #clientsView .clients-mobile-groups-toggle small {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  #clientsView .clients-mobile-groups-toggle::after {
    content: "▼";
    color: var(--muted);
    font-size: 11px;
    transition: transform 0.18s ease;
  }

  #clientsView .clients-group-tools.is-mobile-collapsed .clients-mobile-groups-toggle::after {
    transform: rotate(-90deg);
  }

  #clientsView .clients-group-tools.is-mobile-collapsed .clients-group-tools-body {
    display: none;
  }

  #clientsView .clients-group-tools-body {
    padding: 12px;
    border: 1px solid #dfe8ec;
    border-radius: 14px;
    background: #ffffff;
  }

  #clientsView #clientsList {
    order: 3;
  }

  #clientsView #clientsArchiveSection {
    order: 4;
  }

  #clientsView .dispatch-action-strip {
    gap: 8px;
  }

  #clientsView .dispatch-action-strip button,
  #clientsView .clients-sidebar-actions button,
  #clientsView .dispatch-mapping-actions button {
    width: 100%;
  }

  #scheduleView .schedule-list {
    display: grid;
    gap: 10px;
  }

  #scheduleView.is-individual-layout #scheduleMainPanel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #scheduleView .schedule-list > .schedule-section {
    order: 1;
  }

  #scheduleView .schedule-config {
    order: 2;
  }

  #scheduleView .individual-schedule-toolbar {
    gap: 8px;
  }

  #scheduleView .individual-month-today {
    display: none;
  }

  #scheduleView .individual-month-current {
    font-size: 17px;
  }

  #scheduleView .individual-calendar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #scheduleView .individual-editor {
    gap: 10px;
    padding: 10px;
  }

  #scheduleView .individual-day-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: -1;
  }

  #scheduleView .individual-day-mode .individual-clear-day {
    grid-column: 1 / -1;
  }

  #scheduleView .individual-day-mode button {
    width: 100%;
  }

  #scheduleView .schedule-restrictions-disclosure > summary {
    min-height: 44px;
  }
}

/* Communications UX cleanup */
#communicationsView .communications-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

#communicationsView .communications-setup-panel,
#communicationsView .communications-results-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-content: start;
}

#communicationsView .communications-setup-panel {
  position: sticky;
  top: 16px;
}

#communicationsView .communications-results-panel > [data-communication-panel],
#communicationsView .dispatch-sidebar-cards {
  display: grid;
  gap: 16px;
}

#communicationsView .communications-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#communicationsView .communication-step-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #dce8ec;
  border-radius: 999px;
  background: #f7fbfc;
  color: #6b7b76;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

#communicationsView .communication-step-pill.is-active-step {
  border-color: #82bfd0;
  background: #eaf8fc;
  color: #1d6579;
}

#communicationsView .communication-step-pill.is-complete-step {
  border-color: #c9e2d8;
  background: #f2faf5;
  color: #315b4b;
}

#communicationsView .communication-section-card,
#communicationsView .dispatch-workspace .campaign-prepared-list,
#communicationsView .dispatch-workspace .campaign-history,
#communicationsView .dispatch-workspace .dispatch-queue {
  min-width: 0;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  border: 1px solid #dce8ec;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(13, 35, 54, 0.045);
}

#communicationsView [data-communication-step] {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

#communicationsView [data-communication-step].is-active-step {
  border-color: #82bfd0;
  box-shadow:
    inset 4px 0 0 #3f7f95,
    0 14px 30px rgba(40, 116, 134, 0.08);
}

#communicationsView [data-communication-step].is-complete-step {
  border-color: #c9e2d8;
}

#communicationsView [data-communication-step].is-muted-step {
  opacity: 0.82;
}

#communicationsView .communication-template-card {
  order: 3;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(63, 127, 149, 0.1), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
}

#communicationsView #campaignTemplateDetails {
  order: 4;
}

#communicationsView .communication-results-card {
  order: 5;
  border-color: #cfe3e8;
  background:
    radial-gradient(circle at top left, rgba(63, 127, 149, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
}

#communicationsView .communication-actions-card {
  order: 1;
  border-color: #c9e2d8;
  background:
    radial-gradient(circle at top right, rgba(var(--brand-primary-rgb), 0.11), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

#communicationsView .communication-section-head,
#communicationsView .dispatch-sidebar-header,
#communicationsView .dispatch-template-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

#communicationsView .communication-section-head > div,
#communicationsView .dispatch-template-header > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

#communicationsView .dispatch-section-title,
#communicationsView .dispatch-template-title {
  color: #18352f;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

#communicationsView .communication-section-head p,
#communicationsView .dispatch-sidebar-header p,
#communicationsView .dispatch-template-header small {
  margin: 0;
  color: #63766f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

#communicationsView .dispatch-template-fold {
  padding: 14px;
  border-radius: 18px;
  border-color: #dce8ec;
  background: #ffffff;
}

#communicationsView .dispatch-template {
  display: grid;
  gap: 14px;
}

#communicationsView .dispatch-sidebar-cards {
  order: 2;
}

#communicationsView .dispatch-sidebar-card {
  gap: 12px;
}

#communicationsView .dispatch-group-picker-item,
#communicationsView .campaign-mode-item {
  border-radius: 14px;
}

#communicationsView .dispatch-group-picker-item:hover {
  border-color: #9fcbd7;
  box-shadow: 0 8px 18px rgba(40, 116, 134, 0.07);
}

#communicationsView .dispatch-group-picker-item.is-selected {
  background: #f0fbff;
  border-color: #63bdd3;
  box-shadow:
    inset 4px 0 0 #3f7f95,
    0 10px 22px rgba(40, 116, 134, 0.08);
}

#communicationsView .dispatch-selected-group {
  padding: 12px;
  background: #f7fbfc;
  border: 1px solid #dce8ec;
  border-radius: 14px;
}

#communicationsView .dispatch-selected-group strong {
  color: #18352f;
  font-weight: 850;
}

#communicationsView .campaign-recipient-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid #dce8ec;
  border-radius: 12px;
  background: #f7fbfc;
}

#communicationsView .campaign-recipient-toolbar span,
#communicationsView .communication-list-meta {
  margin: 0;
  color: #4e625c;
  font-size: 13px;
  font-weight: 850;
}

#communicationsView .communication-show-more {
  width: 100%;
  margin-top: 8px;
}

#communicationsView .communication-row-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef6f8;
  color: #496159;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#communicationsView .client-directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#communicationsView .dispatch-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

#communicationsView .dispatch-summary-card {
  min-height: 74px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #ffffff;
  border-color: #dce8ec;
}

#communicationsView .dispatch-summary-card span {
  color: #65766f;
  font-weight: 750;
}

#communicationsView .dispatch-summary-card strong {
  color: #173a33;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#communicationsView .communication-actions-card .dispatch-action-strip {
  gap: 10px;
}

#communicationsView .communication-actions-card .primary-button,
#communicationsView .communication-newsletter-card .primary-button {
  min-width: min(100%, 220px);
}

#communicationsView .communication-actions-card .secondary-button,
#communicationsView .communication-actions-card .ghost-button,
#communicationsView .communication-newsletter-card .secondary-button,
#communicationsView .dispatch-queue .secondary-button,
#communicationsView .dispatch-queue .ghost-button,
#communicationsView .campaign-prepared-list .ghost-button,
#communicationsView .campaign-history .ghost-button {
  box-shadow: none;
}

#communicationsView .dispatch-mode-note {
  border-radius: 14px;
  border-color: #d9e7dc;
  background: #f7fbf8;
  color: #496159;
  font-weight: 750;
}

#communicationsView .dispatch-queue {
  order: 3;
  border-width: 1px;
}

#communicationsView .dispatch-queue-recipient,
#communicationsView .campaign-response-comment {
  border-radius: 14px;
}

#communicationsView .dispatch-row.campaign-prepared-recipient {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e0eaee;
}

#communicationsView .campaign-prepared-list {
  order: 4;
}

#communicationsView #campaignRecipientResponsesSection {
  order: 6;
}

#communicationsView #campaignUpcomingSection {
  order: 7;
}

#communicationsView #campaignHistorySection {
  order: 8;
}

#communicationsView .campaign-response-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e0eaee;
  border-radius: 14px;
}

#communicationsView .campaign-response-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#communicationsView .dispatch-row-meta {
  flex-wrap: wrap;
}

#communicationsView .campaign-recipient-badge {
  font-weight: 800;
}

#communicationsView .campaign-history-card {
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

#communicationsView .campaign-history-card:hover,
#communicationsView .campaign-history-card.is-selected {
  border-color: #9fcbd7;
  background: #f8fcfd;
  box-shadow: 0 10px 22px rgba(40, 116, 134, 0.07);
}

#communicationsView .dispatch-empty-state,
#communicationsView .communications-empty-state-card {
  border-radius: 16px;
}

@media (max-width: 980px) {
  #communicationsView .communications-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #communicationsView .communications-setup-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  #communicationsView .communications-layout,
  #communicationsView .communications-setup-panel,
  #communicationsView .communications-results-panel,
  #communicationsView .communications-results-panel > [data-communication-panel],
  #communicationsView .dispatch-sidebar-cards {
    gap: 12px;
  }

  #communicationsView .communication-section-card,
  #communicationsView .dispatch-workspace .campaign-prepared-list,
  #communicationsView .dispatch-workspace .campaign-history,
  #communicationsView .dispatch-workspace .dispatch-queue {
    padding: 14px;
    border-radius: 16px;
  }

  #communicationsView .communication-section-head,
  #communicationsView .dispatch-sidebar-header,
  #communicationsView .dispatch-template-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #communicationsView .dispatch-template-header button,
  #communicationsView .dispatch-action-strip button,
  #communicationsView .dispatch-selection-tools button,
  #communicationsView .campaign-history-actions button,
  #communicationsView .dispatch-row-meta button {
    width: 100%;
  }

  #communicationsView .dispatch-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #communicationsView .communications-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #communicationsView .dispatch-row.campaign-prepared-recipient,
  #communicationsView .client-directory-row,
  #communicationsView .campaign-response-card,
  #communicationsView .dispatch-group-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #communicationsView .campaign-response-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #communicationsView .dispatch-row-meta,
  #communicationsView .campaign-history-actions,
  #communicationsView .campaign-response-badges {
    justify-content: stretch;
  }
}

@media (max-width: 380px) {
  #communicationsView .dispatch-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #communicationsView .communications-stepper,
  #communicationsView .campaign-response-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .compact-legal-links {
    gap: 10px 14px;
  }

  .legal-screen {
    padding-inline: 12px;
  }

  .legal-header {
    align-items: flex-start;
  }

  .legal-plan-grid,
  .legal-entity-list div {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-section,
  .legal-plan-card,
  .legal-entity-card {
    padding: 18px;
    border-radius: 18px;
  }

  .specialist-profile-preview-action-panel .section-heading {
    align-items: stretch;
  }

  .specialist-profile-preview-action-panel .secondary-button {
    width: 100%;
  }
}

/* Communications workflow compact pass */
#communicationsView .communications-layout {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
}

#communicationsView .communications-setup-panel,
#communicationsView .communications-results-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#communicationsView .communications-setup-panel .section-heading {
  padding: 0 2px;
}

#communicationsView .communications-setup-panel .section-subtitle {
  display: none;
}

#communicationsView .area-card-communication::before {
  content: none;
  display: none;
}

#communicationsView .communications-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

#communicationsView .communication-step-pill {
  justify-content: space-between;
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

#communicationsView .communication-step-pill strong {
  color: #18352f;
  font-size: 14px;
  line-height: 1.2;
}

#communicationsView .communication-step-pill span {
  min-width: 0;
  color: #71827d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}

#communicationsView .communication-step-pill.is-active-step {
  border-color: #7db8ca;
  background: #f3fbfd;
  box-shadow: inset 3px 0 0 #3f7f95;
}

#communicationsView .communication-step-pill.is-complete-step {
  background: #f8fbf9;
}

#communicationsView .communication-section-card,
#communicationsView .dispatch-workspace .campaign-prepared-list,
#communicationsView .dispatch-workspace .campaign-history,
#communicationsView .dispatch-workspace .dispatch-queue {
  padding: 16px;
  border-radius: 14px;
  border-color: #e1eaed;
  background: #ffffff;
  box-shadow: none;
}

#communicationsView [data-communication-step].is-active-step {
  box-shadow: none;
}

#communicationsView [data-communication-step].is-muted-step {
  opacity: 1;
}

#communicationsView .communications-results-panel > [data-communication-panel] {
  display: grid;
  gap: 14px;
}

#communicationsView .dispatch-sidebar-cards {
  gap: 10px;
}

#communicationsView .dispatch-sidebar-header p,
#communicationsView .communication-section-head p,
#communicationsView .dispatch-template-header small,
#communicationsView #campaignModeNotice,
#communicationsView #campaignGroupSelectionHint {
  display: none;
}

#communicationsView .dispatch-section-title,
#communicationsView .dispatch-template-title {
  font-size: 15px;
}

#communicationsView .dispatch-picker-panel,
#communicationsView .dispatch-template {
  display: grid;
  gap: 10px;
}

#communicationsView .campaign-recipient-modes {
  display: grid;
  gap: 8px;
}

#communicationsView .dispatch-group-picker-item,
#communicationsView .campaign-mode-item,
#communicationsView .dispatch-row.client-directory-row,
#communicationsView .dispatch-row.campaign-prepared-recipient,
#communicationsView .campaign-response-card {
  padding: 10px 12px;
  border-radius: 12px;
  border-color: #e3ecef;
  box-shadow: none;
}

#communicationsView .dispatch-choice {
  min-width: 0;
}

#communicationsView .dispatch-choice span,
#communicationsView .campaign-prepared-recipient-text,
#communicationsView .dispatch-group-choice {
  min-width: 0;
}

#communicationsView .dispatch-choice strong,
#communicationsView .campaign-prepared-recipient-text strong,
#communicationsView .dispatch-group-choice strong {
  overflow-wrap: anywhere;
}

#communicationsView .field {
  gap: 6px;
  font-size: 12px;
}

#communicationsView input,
#communicationsView select {
  min-height: 38px;
}

#communicationsView textarea {
  min-height: 132px;
}

#communicationsView #campaignSequentialMessage {
  min-height: 180px;
}

#communicationsView .communication-template-card {
  background: #ffffff;
}

#communicationsView .dispatch-template-fold {
  padding: 0;
  border: 0;
  border-radius: 0;
}

#communicationsView .communication-compact-grid {
  gap: 10px;
}

#communicationsView .campaign-repeat-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

#communicationsView .campaign-repeat-toggle {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #33443f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

#communicationsView .campaign-repeat-toggle input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 auto;
}

#communicationsView .campaign-repeat-fields {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e1eaed;
  border-radius: 12px;
  background: #f8fbfc;
}

#communicationsView .dispatch-action-strip {
  gap: 8px;
}

#communicationsView .dispatch-action-strip button {
  min-height: 38px;
}

#communicationsView .campaign-recipient-toolbar {
  padding: 8px;
  border-radius: 10px;
}

#communicationsView .dispatch-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#communicationsView .dispatch-summary-card {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: none;
}

#communicationsView .dispatch-summary-card strong {
  font-size: 20px;
}

#communicationsView .campaign-prepared-list .section-heading,
#communicationsView .campaign-history .section-heading {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  #communicationsView .communications-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  #communicationsView .communication-step-pill {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 4px;
  }

  #communicationsView .communication-step-pill span {
    text-align: left;
  }

  #communicationsView .communication-section-card,
  #communicationsView .dispatch-workspace .campaign-prepared-list,
  #communicationsView .dispatch-workspace .campaign-history,
  #communicationsView .dispatch-workspace .dispatch-queue {
    padding: 12px;
  }

  #communicationsView .dispatch-summary-grid,
  #communicationsView .campaign-response-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #communicationsView .communication-compact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #communicationsView .campaign-recipient-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  #communicationsView .dispatch-summary-grid,
  #communicationsView .campaign-response-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.public-profile.area-card::before,
.public-profile.area-card-booking::before {
  content: none;
  display: none;
}

.public-master-hero,
.public-master-cover,
.public-master-page {
  background-clip: padding-box;
}
