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

:root {
  color-scheme: light;
  --cf-bg: #ffffff;
  --cf-bg-strong: #f0fdff;
  --cf-surface: #ffffff;
  --cf-surface-warm: #f0fdff;
  --cf-surface-muted: #e6faff;
  --cf-surface-tint: #ecfeff;
  --cf-line: #d5f3f8;
  --cf-line-soft: #e6faff;
  --cf-input-line: #8ed8e8;
  --cf-ink: #083344;
  --cf-ink-secondary: #164e63;
  --cf-muted: #527486;
  --cf-faint: #6b8fa0;
  --cf-brand: #06b6d4;
  --cf-brand-hover: #0891b2;
  --cf-brand-strong: #0e7490;
  --cf-brand-soft: #ecfeff;
  --cf-dashboard-dark: #052f3a;
  --cf-warm-interlude: #e0fbff;
  --cf-ruby: #ea2261;
  --cf-magenta: #22d3ee;
  --cf-lemon: #0f766e;
  --cf-info: #0891b2;
  --cf-info-soft: #ecfeff;
  --cf-warning: #9b6829;
  --cf-warning-soft: #fff6e7;
  --cf-danger: #b3194a;
  --cf-danger-soft: #fde8ef;
  --cf-focus: rgba(6, 182, 212, .24);
  --cf-blue: var(--cf-info);
  --cf-red: var(--cf-danger);
  --cf-amber: var(--cf-warning);
  --cf-shadow-card: 0 1px 3px rgba(8, 51, 68, .08);
  --cf-shadow-raised: 0 8px 24px rgba(8, 51, 68, .10), 0 2px 6px rgba(8, 51, 68, .05);
  --cf-shadow-subtle: 0 2px 8px rgba(8, 51, 68, .07);
  --cf-radius-xs: 4px;
  --cf-radius-sm: 6px;
  --cf-radius: 8px;
  --cf-radius-md: 8px;
  --cf-radius-lg: 12px;
  --cf-radius-shell: 16px;
  --cf-radius-pill: 9999px;
  --cf-sidebar-width: 272px;
  --cf-topbar-height: 64px;
  --cf-widget-width: 420px;
  --cf-widget-height: 650px;
  --cf-z-dropdown: 55;
  --cf-z-modal: 90;
  --cf-z-toast: 100;
  --cf-z-widget: 80;
  --cf-section-title-size: 1.375rem;
  --cf-status-pending-bg: var(--cf-warning-soft);
  --cf-status-pending-text: var(--cf-warning);
  --cf-status-confirmed-bg: var(--cf-info-soft);
  --cf-status-confirmed-text: var(--cf-brand-strong);
  --cf-status-completed-bg: #e9f7ef;
  --cf-status-completed-text: #0f766e;
  --cf-status-cancelled-bg: var(--cf-danger-soft);
  --cf-status-cancelled-text: var(--cf-danger);
  --cf-status-no-show-bg: #edf2f7;
  --cf-status-no-show-text: #4a5870;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, .20), transparent 20rem),
    radial-gradient(circle at 82% 4%, rgba(6, 182, 212, .18), transparent 24rem),
    linear-gradient(180deg, var(--cf-bg-strong) 0%, var(--cf-bg) 48%);
  color: var(--cf-ink);
  font-family: "Inter", sans-serif;
  font-feature-settings: "ss01";
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
}

a,
button {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a { color: var(--cf-brand-strong); }
a:hover { color: var(--cf-brand-strong); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.cf-secret-toggle {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cf-password-toggle {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
}

.cf-secret-toggle:hover,
.cf-secret-toggle:focus-visible {
  background-color: var(--cf-brand-soft);
}

.cf-secret-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cf-focus);
}

a:focus-visible,
button:focus-visible,
.cf-btn:focus-visible,
.cf-icon-btn:focus-visible,
.cf-nav-link:focus-visible,
.cf-tab:focus-visible,
.cf-slot-button:focus-visible,
.cf-menu-row:focus-visible,
.cf-search-result:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--cf-focus);
}

input,
select,
textarea,
.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--cf-input-line);
  border-radius: var(--cf-radius-sm);
  padding: .5rem .75rem;
  background-color: var(--cf-surface);
  color: var(--cf-ink);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

input:focus,
select:focus,
textarea:focus,
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus,
.cf-input:focus-visible,
.cf-select:focus-visible,
.cf-textarea:focus-visible {
  border-color: var(--cf-brand);
  box-shadow: 0 0 0 3px var(--cf-focus);
}

input:disabled,
select:disabled,
textarea:disabled,
.cf-input:disabled,
.cf-select:disabled,
.cf-textarea:disabled,
.ui-input:disabled {
  background-color: var(--cf-surface-muted);
  color: var(--cf-muted);
  cursor: not-allowed;
  opacity: 1;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.cf-input[aria-invalid="true"],
.cf-select[aria-invalid="true"],
.cf-textarea[aria-invalid="true"],
.cf-input-error {
  border-color: var(--cf-danger);
  box-shadow: 0 0 0 3px rgba(179, 25, 74, .16);
}

.cf-password-input {
  padding-right: 5rem;
}

input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  min-height: 2.75rem;
}

select,
.cf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.5rem;
}

select option {
  background: #fff;
  color: var(--cf-ink);
}

select option:disabled {
  background: #fff;
  color: var(--cf-muted);
}

select option:checked {
  background: var(--cf-brand-soft);
  color: var(--cf-brand-strong);
  font-weight: 700;
}

select[multiple] {
  min-height: 7.5rem;
  border-radius: var(--cf-radius-md);
  border: 1px solid var(--cf-input-line);
  background-color: var(--cf-surface);
  background-image: none;
  padding: .375rem;
}

select[multiple] option {
  margin-bottom: 1px;
  border-radius: var(--cf-radius-sm);
  padding: .5rem .75rem;
}

select[multiple] option:checked {
  background: var(--cf-brand-soft);
  color: var(--cf-brand-strong);
  font-weight: 700;
}

input::placeholder,
textarea::placeholder { color: var(--cf-faint); }

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  min-height: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 1.5px solid var(--cf-input-line);
  border-radius: var(--cf-radius-sm);
  background-color: var(--cf-surface);
  background-position: center;
  background-repeat: no-repeat;
  background-size: .875rem .875rem;
  box-shadow: inset 0 0 0 2px var(--cf-surface);
  cursor: pointer;
  padding: 0;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

input[type="checkbox"]:hover {
  border-color: var(--cf-brand);
  background-color: var(--cf-brand-soft);
}

input[type="checkbox"]:checked {
  border-color: var(--cf-brand);
  background-color: var(--cf-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5 8.5 14 15.5 6'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 4px var(--cf-brand-soft);
}

input[type="checkbox"]:focus-visible {
  border-color: var(--cf-brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--cf-focus);
}

input[type="checkbox"]:disabled {
  border-color: var(--cf-line);
  background-color: var(--cf-surface-muted);
  box-shadow: inset 0 0 0 2px var(--cf-surface-muted);
  cursor: not-allowed;
}

input[type="checkbox"]:checked:disabled {
  border-color: var(--cf-input-line);
  background-color: var(--cf-input-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5 8.5 14 15.5 6'/%3E%3C/svg%3E");
}

input[type="radio"] {
  min-height: 1.125rem;
  width: 1.125rem;
  border-radius: .35rem;
  padding: 0;
  accent-color: var(--cf-brand);
}

input[type="radio"] { border-radius: var(--cf-radius-pill); }

.cf-choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  color: var(--cf-ink);
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
  padding: 1rem;
  text-transform: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.cf-choice-card:hover {
  border-color: var(--cf-brand);
  box-shadow: var(--cf-shadow-subtle);
}

.cf-choice-card:has(.cf-choice-card-input:checked) {
  border-color: var(--cf-brand);
  background: linear-gradient(180deg, var(--cf-surface) 0%, var(--cf-brand-soft) 100%);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, .22), 0 8px 24px rgba(8, 51, 68, .08);
}

.cf-choice-card:has(.cf-choice-card-input:focus-visible) {
  border-color: var(--cf-brand);
  box-shadow: 0 0 0 3px var(--cf-focus), var(--cf-shadow-subtle);
}

.cf-choice-card-input {
  position: absolute;
  top: 1rem;
  left: 1rem;
  min-height: 1px;
  width: 1px;
  height: 1px;
  margin: 0;
  border: 0;
  opacity: 0;
  padding: 0;
}

.cf-choice-card-input:focus { box-shadow: none; }

.cf-choice-card-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .125rem;
  border: 1.5px solid var(--cf-input-line);
  border-radius: var(--cf-radius-pill);
  background: var(--cf-surface);
  box-shadow: inset 0 0 0 3px var(--cf-surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cf-choice-card-mark::after {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: inherit;
  background: var(--cf-brand);
  transform: scale(0);
  transition: transform .15s ease;
}

.cf-choice-card:has(.cf-choice-card-input:checked) .cf-choice-card-mark {
  border-color: var(--cf-brand);
  box-shadow: 0 0 0 4px var(--cf-brand-soft), inset 0 0 0 3px var(--cf-surface);
}

.cf-choice-card:has(.cf-choice-card-input:checked) .cf-choice-card-mark::after {
  background: var(--cf-brand);
  transform: scale(1);
}

.cf-switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  color: var(--cf-ink);
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
  padding: 1rem;
  text-transform: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.cf-switch-row:hover {
  border-color: var(--cf-brand);
  box-shadow: var(--cf-shadow-subtle);
}

.cf-switch-row:has(.cf-switch-input:checked) {
  border-color: rgba(6, 182, 212, .38);
  background: linear-gradient(180deg, var(--cf-surface) 0%, var(--cf-brand-soft) 100%);
}

.cf-switch-row:has(.cf-switch-input:focus-visible) {
  border-color: var(--cf-brand);
  box-shadow: 0 0 0 3px var(--cf-focus), var(--cf-shadow-subtle);
}

.cf-switch-input {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 1px;
  width: 1px;
  height: 1px;
  margin: 0;
  border: 0;
  opacity: 0;
  padding: 0;
}

.cf-switch-input:focus { box-shadow: none; }

.cf-switch-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .625rem;
}

.cf-switch-state {
  min-width: 2rem;
  color: var(--cf-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: right;
  text-transform: uppercase;
}

.cf-switch-state-on {
  display: none;
  color: var(--cf-brand-strong);
}

.cf-switch-state-off { display: inline; }

.cf-switch-track {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 1.75rem;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-pill);
  background: var(--cf-status-no-show-bg);
  padding: .1875rem;
  transition: border-color .15s ease, background .15s ease;
}

.cf-switch-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--cf-radius-pill);
  background: var(--cf-surface);
  box-shadow: var(--cf-shadow-subtle);
  transform: translateX(0);
  transition: transform .15s ease;
}

.cf-switch-row:has(.cf-switch-input:checked) .cf-switch-track {
  border-color: var(--cf-brand);
  background: var(--cf-brand);
}

.cf-switch-row:has(.cf-switch-input:checked) .cf-switch-thumb {
  transform: translateX(1.5rem);
}

.cf-switch-row:has(.cf-switch-input:checked) .cf-switch-state-on { display: inline; }
.cf-switch-row:has(.cf-switch-input:checked) .cf-switch-state-off { display: none; }

label,
.cf-label {
  display: block;
  margin: 0 0 .35rem;
  color: var(--cf-muted);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

table { border-collapse: separate; border-spacing: 0; }

th {
  color: var(--cf-faint);
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td {
  color: var(--cf-muted);
  vertical-align: middle;
}

code,
.cf-mono,
.cf-kpi-value,
.cf-tabular {
  font-family: "Inter", sans-serif;
  font-feature-settings: "ss01", "tnum";
  font-variant-numeric: tabular-nums;
}

[x-cloak] { display: none !important; }

.cf-page {
  display: grid;
  min-width: 0;
  gap: 1.25rem;
}

.cf-page > * { min-width: 0; }

.cf-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cf-page-header > :first-child {
  min-width: 0;
}

.cf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--cf-brand);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cf-section { display: grid; gap: 1rem; }

.cf-section-title,
.cf-modal-title,
.cf-page-title,
.ui-page-title {
  color: var(--cf-ink);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.cf-page-title,
.cf-page-description,
.cf-section-title,
.cf-section-description,
.cf-modal-title,
.cf-modal-description {
  overflow-wrap: anywhere;
}

.cf-section-title {
  font-size: var(--cf-section-title-size);
  line-height: 1.2;
}

.cf-muted {
  color: var(--cf-muted);
  font-size: .875rem;
  line-height: 1.5;
}

.cf-page-description {
  margin: .5rem 0 0;
  color: var(--cf-muted);
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cf-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.cf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
}

.cf-async-panel:empty { display: none; }

.cf-card {
  background: var(--cf-surface);
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  box-shadow: var(--cf-shadow-card);
}

.cf-card { padding: 1.25rem; }
.cf-card-muted { background: var(--cf-surface-warm); }

.cf-kpi {
  position: relative;
  min-height: 7rem;
  overflow: hidden;
  padding: 1rem;
}

.cf-kpi-label {
  color: var(--cf-faint);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cf-kpi-value {
  margin-top: 1.35rem;
  color: var(--cf-ink);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.cf-empty-state {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.cf-icon-box {
  display: grid;
  place-items: center;
  border-radius: var(--cf-radius);
  background: var(--cf-brand-soft);
  color: var(--cf-brand);
}

.cf-messenger-page-strip {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .5rem;
  margin-bottom: 0;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-sm);
  background: var(--cf-brand-soft);
  padding: .45rem .65rem;
  color: var(--cf-muted);
  font-size: .8125rem;
}

.cf-messenger-page-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
  min-width: 0;
}

.cf-messenger-page-details {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .8rem;
}

.cf-messenger-page-item {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  min-width: 0;
}

.cf-messenger-page-name {
  min-width: 0;
  overflow: hidden;
  color: var(--cf-ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-messenger-page-strip code {
  color: var(--cf-brand-strong);
}

.cf-btn,
.ui-button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: var(--cf-radius-pill);
  padding: .5rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cf-btn:disabled,
.ui-button:disabled {
  opacity: .58;
  transform: none;
}

.cf-btn-primary,
.ui-button-primary {
  background: var(--cf-brand);
  color: var(--cf-dashboard-dark);
}

.cf-btn-primary:hover,
.ui-button-primary:hover {
  background: var(--cf-brand-hover);
  color: #001f2a;
}

.cf-btn-primary:active,
.ui-button-primary:active {
  background: var(--cf-brand-strong);
  color: #fff;
}

.cf-btn-secondary,
.ui-button-secondary {
  border-color: var(--cf-brand);
  background: var(--cf-surface);
  color: var(--cf-brand);
}

.cf-btn-secondary:hover,
.ui-button-secondary:hover {
  background: var(--cf-brand-soft);
  border-color: var(--cf-brand-hover);
  color: var(--cf-brand-hover);
}

.cf-btn-muted {
  border-color: rgba(82, 116, 134, .3);
  background: var(--cf-surface);
  color: var(--cf-muted);
}

.cf-btn-muted:hover {
  background: var(--cf-surface-muted);
  border-color: rgba(82, 116, 134, .5);
  color: var(--cf-ink);
}

.cf-service-edit-action:hover {
  background: var(--cf-brand);
  border-color: var(--cf-brand);
  color: #fff;
}

.cf-service-archive-action:hover {
  background: var(--cf-ink-secondary);
  border-color: var(--cf-ink-secondary);
  color: #fff;
}

.cf-service-activate-action {
  border-color: rgba(15, 118, 110, .38);
  background: var(--cf-surface);
  color: var(--cf-lemon);
}

.cf-service-activate-action:hover {
  background: var(--cf-lemon);
  border-color: var(--cf-lemon);
  color: #fff;
}

.cf-appointment-reschedule-action {
  border-color: rgba(155, 104, 41, .34);
  background: var(--cf-warning-soft);
  color: var(--cf-warning);
}

.cf-appointment-reschedule-action:hover {
  background: var(--cf-warning);
  border-color: var(--cf-warning);
  color: #fff;
}

.cf-appointment-view-action {
  border-color: var(--cf-muted);
  background: var(--cf-surface);
  color: var(--cf-muted);
}

.cf-appointment-view-action:hover {
  background: var(--cf-muted);
  border-color: var(--cf-muted);
  color: #fff;
}

.cf-btn-ghost {
  background: transparent;
  color: var(--cf-muted);
}

.cf-btn-ghost:hover {
  background: var(--cf-surface-muted);
  color: var(--cf-ink);
}

.cf-btn-danger {
  border-color: var(--cf-danger);
  background: var(--cf-danger);
  color: #fff;
}

.cf-btn-danger:hover {
  border-color: #95143d;
  background: #95143d;
  color: #fff;
}

.cf-btn-link {
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cf-brand);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.cf-btn-link:hover { color: var(--cf-brand-strong); }

.cf-btn-sm {
  min-height: 2.5rem;
  padding: .35rem .75rem;
  font-size: .75rem;
}

.cf-btn-xs {
  min-height: 1.75rem;
  gap: .35rem;
  padding: .25rem .55rem;
  font-size: .6875rem;
}

.cf-btn-xs svg {
  width: .75rem;
  height: .75rem;
}

.cf-mobile-filter-toggle { display: none; }

.cf-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.cf-row-actions-start {
  justify-content: flex-start;
}

.cf-row-actions .cf-btn-xs {
  min-height: 1.625rem;
  padding: .2rem .45rem;
  font-size: .6875rem;
}

.cf-row-actions .cf-btn-xs svg {
  width: .7rem;
  height: .7rem;
}

.cf-btn-lg {
  min-height: 3rem;
  padding: .875rem 1.25rem;
  font-size: .9375rem;
}

.cf-icon-btn {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-md);
  background: transparent;
  color: var(--cf-muted);
}

.cf-icon-btn:hover {
  background: var(--cf-surface-muted);
  color: var(--cf-ink);
}

.cf-icon-btn svg { width: 1.125rem; height: 1.125rem; }

.cf-field { display: grid; gap: .35rem; }
.cf-field .cf-label { margin-bottom: 0; }

.cf-textarea { min-height: 6.5rem; resize: vertical; }

.cf-textarea-compact { min-height: 4.5rem; }

.cf-help,
.cf-error {
  margin: .25rem 0 0;
  font-size: .75rem;
  line-height: 1.4;
}

.cf-help { color: var(--cf-muted); }
.cf-error { color: var(--cf-danger); }

.cf-form-error {
  border: 1px solid rgba(179, 25, 74, .28);
  border-radius: var(--cf-radius-md);
  background: var(--cf-danger-soft);
  color: var(--cf-danger);
  padding: .75rem .875rem;
}

.cf-faq-shell {
  display: grid;
  gap: 1.25rem;
}

.cf-faq-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cf-faq-header-icon {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-pill);
  background: var(--cf-brand-soft);
  color: var(--cf-brand);
}

.cf-faq-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-pill);
  background: var(--cf-surface);
  padding: .3rem;
  box-shadow: var(--cf-shadow-card);
}

.cf-faq-summary-metric,
.cf-faq-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: var(--cf-radius-pill);
  padding: .4rem .65rem;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.cf-faq-summary-metric {
  border: 1px solid var(--cf-brand-soft);
  border-radius: var(--cf-radius-pill);
  background: var(--cf-brand-soft);
  color: var(--cf-brand-strong);
  font-variant-numeric: tabular-nums;
}

.cf-faq-summary-separator {
  width: .25rem;
  height: .25rem;
  border-radius: var(--cf-radius-pill);
  background: var(--cf-input-line);
}

.cf-faq-status-visible {
  border: 1px solid var(--cf-brand-soft);
  background: var(--cf-brand-soft);
  color: var(--cf-brand-strong);
}

.cf-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  align-items: flex-start;
  gap: 1.125rem;
}

.cf-faq-composer {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-bg-strong);
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.cf-faq-composer-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.cf-faq-composer-icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  flex-shrink: 0;
}

.cf-faq-composer-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.cf-faq-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--cf-ink-secondary);
  font-size: .875rem;
  cursor: pointer;
}

.cf-faq-list {
  display: grid;
  min-width: 0;
  gap: .75rem;
}

.cf-faq-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.cf-faq-card {
  display: grid;
  min-width: 0;
  gap: .75rem;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  padding: .875rem;
  box-shadow: var(--cf-shadow-card);
}

.cf-faq-question-icon {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: var(--cf-radius-pill);
  background: var(--cf-brand-soft);
  color: var(--cf-brand);
  font-size: .8125rem;
  font-weight: 600;
  flex-shrink: 0;
}

.cf-faq-card-muted .cf-faq-question-icon,
.cf-faq-status-hidden {
  background: var(--cf-status-no-show-bg);
  color: var(--cf-status-no-show-text);
}

.cf-faq-card-actions {
  justify-content: space-between;
  border-top: 1px solid var(--cf-line-soft);
  padding-top: .75rem;
}

.cf-faq-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.cf-faq-icon-action {
  width: 2rem;
  height: 2rem;
  border-radius: var(--cf-radius-pill);
}

.cf-faq-icon-action svg {
  width: .95rem;
  height: .95rem;
}

.cf-faq-edit-action {
  border-color: var(--cf-line);
  color: var(--cf-brand);
}

.cf-faq-edit-action:hover {
  border-color: var(--cf-brand);
  background: var(--cf-brand);
  color: #fff;
}

.cf-faq-delete-action {
  border-color: rgba(179, 25, 74, .22);
  color: var(--cf-danger);
}

.cf-faq-delete-action:hover {
  border-color: var(--cf-danger);
  background: var(--cf-danger);
  color: #fff;
}

.cf-faq-empty-state {
  min-height: 16rem;
  border: 1px dashed var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
}

@media (max-width: 1024px) {
  .cf-faq-layout { grid-template-columns: 1fr; }
}

.cf-tabs {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  border-radius: var(--cf-radius);
  background: var(--cf-surface-muted);
  padding: .25rem;
}

.cf-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: .6875rem;
  padding: .625rem .875rem;
  color: var(--cf-muted);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.cf-tab:hover { color: var(--cf-brand-strong); }

.cf-tab-active {
  background: var(--cf-surface);
  color: var(--cf-brand);
  box-shadow: var(--cf-shadow-subtle);
}

.cf-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  box-shadow: var(--cf-shadow-card);
}

.cf-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  contain: layout paint;
}

.cf-voice-transcript-scroll {
  max-height: min(32rem, 70vh);
  overflow-y: auto;
  overscroll-behavior-block: contain;
}

.cf-table-scroll:focus-visible {
  outline: 2px solid var(--cf-brand);
  outline-offset: -2px;
}

.cf-table-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: 1px solid var(--cf-line-soft);
  background: var(--cf-surface);
  padding: .5rem .75rem;
}

.cf-table-header > :first-child {
  min-width: 0;
}

.cf-table {
  min-width: max(100%, 44rem);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: .875rem;
  line-height: 1.4;
}

.cf-table-compact { min-width: max(100%, 32rem); }
.cf-table-form { min-width: max(100%, 48rem); }
.cf-table-wide { min-width: max(100%, 56rem); }

.cf-table th,
.cf-table td {
  border-bottom: 1px solid var(--cf-line-soft);
  padding: .75rem 1rem;
}

.cf-table thead {
  color: var(--cf-faint);
  text-transform: uppercase;
}

.cf-table tbody tr:hover { background: var(--cf-bg-strong); }
.cf-table tbody tr:last-child td { border-bottom: 0; }
.cf-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: var(--cf-radius-pill);
  padding: .25rem .5rem;
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.cf-badge-info { background: var(--cf-info-soft); color: var(--cf-info); }
.cf-status-pending,
.cf-status-booked,
.status-pending,
.status-booked { background: var(--cf-status-pending-bg); color: var(--cf-status-pending-text); }
.cf-status-confirmed,
.status-confirmed { background: var(--cf-status-confirmed-bg); color: var(--cf-status-confirmed-text); }
.cf-status-completed,
.status-completed { background: var(--cf-status-completed-bg); color: var(--cf-status-completed-text); }
.cf-status-cancelled,
.status-cancelled { background: var(--cf-status-cancelled-bg); color: var(--cf-status-cancelled-text); }
.cf-status-no-show,
.cf-status-no_show,
.status-no-show,
.status-no_show { background: var(--cf-status-no-show-bg); color: var(--cf-status-no-show-text); }
.cf-badge-active { background: var(--cf-brand); color: #fff; }
.cf-badge-inactive { background: var(--cf-status-no-show-bg); color: var(--cf-status-no-show-text); }

.cf-sidebar {
  background:
    radial-gradient(circle at 18% 0%, rgba(165, 243, 252, .28), transparent 15rem),
    radial-gradient(circle at 100% 32%, rgba(34, 211, 238, .20), transparent 18rem),
    linear-gradient(180deg, #0f667c 0%, #0b7f99 54%, #0c5f58 100%);
  border-right: 1px solid rgba(34, 211, 238, .22);
  color: rgba(255, 255, 255, .88);
  box-shadow: inset -1px 0 0 rgba(165, 243, 252, .18), 10px 0 28px rgba(8, 51, 68, .12);
}

@media (max-width: 1023.98px) {
  .cf-sidebar:not(.translate-x-0) {
    transform: translateX(-100%);
  }
}

@media (min-width: 1024px) {
  .cf-sidebar {
    transform: translateX(0);
  }
}

.cf-sidebar-header {
  border-bottom: 1px solid rgba(125, 211, 252, .22);
}

.cf-sidebar a,
.cf-sidebar .cf-eyebrow,
.cf-sidebar .cf-label,
.cf-sidebar .cf-muted,
.cf-sidebar [class*="text-slate-"],
.cf-sidebar [class*="text-[var(--cf-muted)]"],
.cf-sidebar [class*="text-[var(--cf-faint)]"] {
  color: rgba(207, 250, 254, .76) !important;
}

.cf-sidebar [class*="text-[var(--cf-ink)]"] {
  color: #fff !important;
}

.cf-sidebar [class*="text-[var(--cf-brand)]"],
.cf-sidebar [class*="text-[var(--cf-brand-strong)]"] {
  color: #a5f3fc !important;
}

.cf-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: var(--cf-radius-pill);
  padding: .68rem .75rem;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
}

.cf-nav-link:hover {
  background: rgba(5, 47, 58, .18);
  border-color: rgba(125, 211, 252, .22);
  color: #fff;
}

.cf-sidebar .cf-nav-link,
.cf-sidebar .cf-nav-link:visited {
  color: rgba(255, 255, 255, .72) !important;
}

.cf-sidebar .cf-nav-link:hover,
.cf-sidebar .cf-nav-link-active,
.cf-sidebar .cf-nav-link-active:visited {
  color: #fff !important;
}

.cf-sidebar .cf-nav-link-danger,
.cf-sidebar .cf-nav-link-danger:visited {
  color: #ff8fb2 !important;
}

.cf-sidebar .cf-nav-link-danger:hover {
  background: rgba(234, 34, 97, .16);
  color: #ffd3e0 !important;
}

.cf-sidebar .cf-icon-btn {
  color: rgba(207, 250, 254, .82);
}

.cf-sidebar .cf-icon-btn:hover {
  background: rgba(34, 211, 238, .14);
  color: #fff;
}

.cf-nav-link-active {
  background: linear-gradient(90deg, rgba(5, 47, 58, .34), rgba(8, 145, 178, .18));
  border-color: rgba(125, 211, 252, .28);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cf-brand), 0 0 20px rgba(6, 182, 212, .16);
}

.cf-topbar {
  min-height: var(--cf-topbar-height);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
}

.cf-app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.cf-dashboard-main { min-width: 0; }
.cf-topbar-search .cf-search-panel:empty { display: none; }

.cf-topbar-search .cf-input {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--cf-line);
}

.cf-topbar-search .cf-input:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--cf-brand), 0 0 0 3px var(--cf-focus);
}

.cf-calendar-card {
  height: calc(100dvh - 15rem);
  min-height: 32rem;
  overflow: hidden;
  gap: .75rem;
  padding: 1rem;
}

.cf-calendar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--cf-line-soft);
  padding-bottom: .75rem;
}

.cf-calendar-nav,
.cf-calendar-views {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.cf-calendar-views { justify-content: flex-end; }

.cf-calendar-view-button[aria-pressed="true"],
.cf-calendar-view-button.cf-calendar-view-active {
  border-color: var(--cf-brand);
  background: var(--cf-brand);
  color: var(--cf-dashboard-dark);
}

.cf-calendar-view-button[aria-pressed="false"] {
  border-color: var(--cf-line);
  background: var(--cf-surface);
  color: var(--cf-muted);
}

.cf-calendar-view-button[aria-pressed="false"]:hover {
  border-color: var(--cf-brand-hover);
  background: var(--cf-brand-soft);
  color: var(--cf-brand-hover);
}

.cf-calendar-title {
  margin: 0;
  color: var(--cf-ink);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
}

.cf-calendar-filters .cf-select { min-width: 11rem; }

.cf-calendar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
}

.cf-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.cf-calendar-legend-badge {
  position: relative;
}

.cf-calendar-status-dot {
  width: .45rem;
  height: .45rem;
  border-radius: var(--cf-radius-pill);
  background: currentColor;
}

.cf-calendar-grid-scroll {
  min-height: 0;
  overflow: hidden;
}

#calendar {
  overflow: hidden;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-sm);
  background: var(--cf-surface);
}

#calendar .fc-theme-standard td,
#calendar .fc-theme-standard th,
#calendar .fc-scrollgrid {
  border-color: var(--cf-line);
}

#calendar .fc-col-header-cell {
  background: var(--cf-bg-strong);
}

#calendar .fc-col-header-cell-cushion {
  padding: .45rem .25rem;
  color: var(--cf-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

#calendar .fc-daygrid-day-number {
  padding: .45rem .5rem;
  color: var(--cf-ink);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}

#calendar .fc-day-other { background: var(--cf-bg-strong); }

#calendar .fc-day-other .fc-daygrid-day-number {
  color: var(--cf-faint);
  opacity: .65;
}

#calendar .fc-daygrid-day-frame {
  min-height: 6.25rem;
}

#calendar .fc-event {
  cursor: pointer;
  margin-inline: .25rem;
  border-radius: var(--cf-radius-sm);
  padding: .125rem .35rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--cf-shadow-subtle);
}

#calendar .fc-daygrid-more-link {
  margin-inline: .25rem;
  color: var(--cf-brand);
  font-size: .75rem;
  font-weight: 700;
}

#calendar .fc-timegrid-axis,
#calendar .fc-timegrid-slot-label {
  color: var(--cf-muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

#calendar .fc-timegrid-slot {
  height: 2.5rem;
}

#calendar .fc-timegrid-event {
  border-radius: var(--cf-radius-sm);
  padding: .125rem .35rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--cf-shadow-subtle);
}

#calendar .fc-now-indicator-line {
  border-color: var(--cf-brand);
}

#calendar .fc-now-indicator-arrow {
  border-top-color: var(--cf-brand);
  border-bottom-color: var(--cf-brand);
}

@media (max-width: 768px) {
  .cf-calendar-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .cf-calendar-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .cf-calendar-title { order: -1; }

  .cf-calendar-nav,
  .cf-calendar-views,
  .cf-calendar-filters {
    justify-content: stretch;
  }

  .cf-calendar-nav .cf-btn,
  .cf-calendar-views .cf-btn,
  .cf-calendar-filters .cf-field {
    flex: 1 1 auto;
  }

  .cf-calendar-filters .cf-select { min-width: 100%; }

  #calendar.cf-calendar-grid-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cf-calendar-grid-scroll .fc {
    min-width: 44rem;
  }

  #calendar .fc-dayGridMonth-view .fc-scroller {
    overflow-y: visible !important;
  }

  #calendar .fc-daygrid-day-frame { min-height: 5rem; }
}

.cf-search-panel,
.cf-menu-panel {
  z-index: var(--cf-z-dropdown);
  max-height: min(420px, calc(100vh - 96px));
  overflow-y: auto;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  background: var(--cf-surface);
  color: var(--cf-ink);
  box-shadow: var(--cf-shadow-raised);
}

.cf-menu-row,
.cf-search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .75rem;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--cf-ink);
  padding: .75rem 1rem;
  text-align: left;
  text-decoration: none;
}

.cf-menu-row:hover,
.cf-menu-row[aria-selected="true"],
.cf-menu-row-active,
.cf-search-result:hover,
.cf-search-result[aria-selected="true"],
.cf-search-result-active {
  border-left-color: var(--cf-brand);
  background: var(--cf-brand-soft);
  color: var(--cf-brand-strong);
}

.cf-menu-row-danger,
.cf-search-result-danger { color: var(--cf-danger); }

.cf-menu-row-danger:hover,
.cf-search-result-danger:hover {
  border-left-color: var(--cf-danger);
  background: var(--cf-danger-soft);
  color: var(--cf-danger);
}

.cf-menu-row:disabled,
.cf-search-result:disabled,
.cf-menu-row-disabled,
.cf-search-result-disabled {
  color: var(--cf-muted);
  cursor: not-allowed;
  opacity: .72;
}

.cf-toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  z-index: var(--cf-z-toast);
  display: grid;
  width: min(24rem, calc(100vw - 2rem));
  gap: .75rem;
  pointer-events: none;
}

.cf-toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  padding: .5rem .75rem;
  color: var(--cf-ink);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--cf-shadow-raised);
  pointer-events: auto;
}

.cf-toast-success { background: var(--cf-brand-soft); border-color: var(--cf-brand); color: var(--cf-brand-strong); }
.cf-toast-error { background: var(--cf-danger-soft); border-color: var(--cf-danger); color: var(--cf-danger); }
.cf-toast-warning { background: var(--cf-warning-soft); border-color: var(--cf-warning); color: var(--cf-ink); }
.cf-toast-info { background: var(--cf-info-soft); border-color: var(--cf-info); color: var(--cf-ink); }

.cf-toast-icon {
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
}

.cf-toast-message { flex: 1; min-width: 0; }

.cf-toast-close {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: var(--cf-radius-sm);
  background: transparent;
  color: inherit;
}

.cf-toast-close:hover { background: color-mix(in srgb, currentColor 18%, transparent); }

.cf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--cf-z-modal);
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(13, 37, 61, .56);
  padding: 1rem;
  backdrop-filter: blur(6px);
}

.cf-modal {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  color: var(--cf-ink);
  box-shadow: var(--cf-shadow-raised);
}

.cf-modal-sm { max-width: 26.25rem; }
.cf-modal-md { max-width: 35rem; }
.cf-modal-lg { max-width: 45rem; }
.cf-modal-xl { max-width: 57.5rem; }

.cf-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem .75rem;
}

.cf-modal-title {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.2;
}

.cf-modal-description {
  margin: .375rem 0 0;
  color: var(--cf-muted);
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cf-modal-body { padding: 1.25rem 1.5rem; }

.cf-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding: 1rem 1.5rem 1.5rem;
}

.cf-widget-shell {
  width: var(--cf-widget-width);
  height: var(--cf-widget-height);
  max-width: min(var(--cf-widget-width), calc(100vw - 24px));
  max-height: min(var(--cf-widget-height), calc(100dvh - 24px));
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-shell);
  background: var(--cf-surface);
  box-shadow: var(--cf-shadow-raised);
}

.cf-widget-header-control {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: currentColor;
  line-height: 1;
}

.cf-widget-header-control:hover,
.cf-widget-header-control:focus-visible {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .38);
  color: currentColor;
  box-shadow: var(--cf-shadow-subtle);
  transform: translateY(-1px);
}

.cf-widget-header-control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--cf-focus), var(--cf-shadow-subtle);
}

.pb-safe { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }

.cf-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.cf-slot-button {
  min-height: 2.75rem;
  border: 1px solid var(--cf-input-line);
  border-radius: var(--cf-radius-pill);
  background: var(--cf-surface);
  color: var(--cf-ink);
  padding: .65rem .5rem;
  font-size: .875rem;
  font-weight: 400;
  cursor: default; /* Interactive variants set cursor: pointer; below. */
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

button.cf-slot-button,
a.cf-slot-button,
[role="button"].cf-slot-button {
  cursor: pointer;
}

button.cf-slot-button:hover,
a.cf-slot-button:hover,
[role="button"].cf-slot-button:hover {
  background: var(--cf-brand-soft);
  border-color: var(--cf-brand);
  color: var(--cf-brand-strong);
  box-shadow: var(--cf-shadow-subtle);
}

button.cf-slot-button[aria-pressed="true"],
a.cf-slot-button[aria-pressed="true"],
[role="button"].cf-slot-button[aria-pressed="true"] {
  background: var(--cf-brand);
  border-color: var(--cf-brand);
  color: #fff;
  box-shadow: var(--cf-shadow-subtle);
}

button.cf-slot-button:hover,
a.cf-slot-button:hover,
[role="button"].cf-slot-button:hover {
  transform: translateY(-2px);
}

.cf-gradient-mesh,
.cf-auth-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(240, 253, 255, .95), transparent 18rem),
    radial-gradient(circle at 32% 4%, rgba(207, 250, 254, .75), transparent 20rem),
    radial-gradient(circle at 58% 0%, rgba(34, 211, 238, .55), transparent 18rem),
    radial-gradient(circle at 78% 8%, rgba(6, 182, 212, .42), transparent 21rem),
    radial-gradient(circle at 96% 2%, rgba(8, 51, 68, .25), transparent 17rem),
    var(--cf-bg-strong);
}

.cf-auth-panel::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 252, 246, .18);
  border-radius: 50%;
  background: rgba(255, 252, 246, .08);
  pointer-events: none;
}

.cf-schedule-rail { position: relative; }

.cf-schedule-rail::before {
  content: "";
  position: absolute;
  left: .28rem;
  top: .65rem;
  bottom: .65rem;
  width: 1px;
  background: linear-gradient(var(--cf-brand-soft), transparent);
}

.cf-agent-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  padding: 1rem;
  box-shadow: var(--cf-shadow-card);
}

.cf-agent-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cf-brand);
}

.cf-pulse {
  position: relative;
  display: inline-flex;
  height: .55rem;
  width: .55rem;
  border-radius: 999px;
  background: var(--cf-brand);
}

.cf-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--cf-brand);
  border-radius: 999px;
  animation: cf-ping 1.8s ease-out infinite;
}

.cf-chat {
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
}

.cf-chat-line {
  border-bottom: 1px solid var(--cf-line-soft);
  padding: 1rem;
}

.cf-chat-agent { background: var(--cf-brand-soft); }
.cf-tool-call { border-left: 3px solid var(--cf-info); background: color-mix(in srgb, var(--cf-info-soft) 70%, transparent); }
.cf-typing { display: inline-grid; grid-auto-flow: column; gap: .28rem; }
.cf-typing span { width: .38rem; height: .38rem; border-radius: 999px; background: var(--cf-brand); animation: cf-typing 1s infinite ease-in-out; }
.cf-typing span:nth-child(2) { animation-delay: .15s; }
.cf-typing span:nth-child(3) { animation-delay: .3s; }

.voice-orb {
  position: relative;
  isolation: isolate;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.voice-orb::before,
.voice-orb::after {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border: 1px solid rgba(6, 182, 212, .28);
  border-radius: 9999px;
  opacity: 0;
  pointer-events: none;
}

.voice-orb-listening::before,
.voice-orb-speaking::before {
  animation: voice-orb-pulse 1.65s ease-out infinite;
}

.voice-orb-listening::after,
.voice-orb-speaking::after {
  animation: voice-orb-pulse 1.65s ease-out .45s infinite;
}

.voice-orb-speaking {
  transform: scale(1.03);
  box-shadow: 0 0 48px rgba(6, 182, 212, .42), 0 18px 38px rgba(8, 51, 68, .18);
}

.voice-orb-thinking {
  animation: voice-orb-breathe 1.1s ease-in-out infinite;
}

.voice-orb-bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .18rem;
}

.voice-orb-bar {
  width: .22rem;
  height: .9rem;
  border-radius: 9999px;
  background: currentColor;
  transform-origin: center;
  animation: voice-bar-wave .72s ease-in-out infinite;
}

.voice-orb-bar:nth-child(2) { animation-delay: .1s; }
.voice-orb-bar:nth-child(3) { animation-delay: .2s; }
.voice-orb-bar:nth-child(4) { animation-delay: .3s; }

@keyframes cf-ping { to { transform: scale(3); opacity: 0; } }

@keyframes voice-orb-pulse {
  0% { transform: scale(.88); opacity: .7; }
  100% { transform: scale(1.26); opacity: 0; }
}

@keyframes voice-orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes voice-bar-wave {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1.15); }
}

@keyframes cf-typing {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.cf-mobile-break {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cf-mobile-scroll-hint {
  color: var(--cf-muted);
  font-size: .75rem;
  font-weight: 500;
}

.cf-table-scroll {
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.cf-table-scroll::after {
  content: "";
  position: sticky;
  right: 0;
  display: block;
  width: 1.5rem;
  height: 1px;
  margin-top: -1px;
  margin-left: auto;
  background: linear-gradient(90deg, transparent, var(--cf-surface));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (pointer: coarse) {
  .cf-btn-xs,
  .cf-row-actions .cf-btn-xs {
    min-height: 2.5rem;
    padding: .45rem .75rem;
    font-size: .75rem;
  }

  .cf-row-actions .cf-btn-xs svg,
  .cf-btn-xs svg {
    width: .875rem;
    height: .875rem;
  }

  #calendar .fc-event,
  #calendar .fc-timegrid-event,
  #calendar .fc-daygrid-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
  }
}

/* Migration compatibility: semantic aliases retained until active templates are normalized. */
.cf-page-title,
.ui-page-title {
  font-size: 2.5rem;
  line-height: .98;
}

.ui-section-gap { display: grid; gap: 1rem; }
.ui-muted { color: var(--cf-muted); }
.ui-input { width: 100%; min-height: 2.5rem; border: 1px solid var(--cf-input-line); border-radius: var(--cf-radius-sm); padding: .5rem .75rem; background: var(--cf-surface); color: var(--cf-ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ui-input:focus { border-color: var(--cf-brand); box-shadow: 0 0 0 3px var(--cf-focus); }

.rounded-3xl { border-radius: var(--cf-radius-lg) !important; }
.rounded-2xl { border-radius: var(--cf-radius-md) !important; }
.font-black { font-weight: 800 !important; }
.text-rose-600,
.text-rose-500 { color: var(--cf-danger) !important; }
.text-emerald-600 { color: var(--cf-brand) !important; }
.text-emerald-700 { color: var(--cf-brand-strong) !important; }
.text-amber-600 { color: var(--cf-warning) !important; }
.bg-rose-50 { background-color: var(--cf-danger-soft) !important; }
.bg-emerald-50 { background-color: var(--cf-brand-soft) !important; }
.bg-amber-50 { background-color: var(--cf-warning-soft) !important; }
.border-rose-100 { border-color: var(--cf-danger-soft) !important; }
.border-emerald-100 { border-color: var(--cf-brand-soft) !important; }
.divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--cf-line-soft) !important; }
.shadow-lg,
.shadow-xl,
.shadow-2xl { box-shadow: var(--cf-shadow-card) !important; }

a.cf-btn-primary:hover,
button.cf-btn-primary:hover { background: var(--cf-brand-hover) !important; }

a.bg-white:hover,
button.bg-white:hover,
a.bg-slate-100:hover,
button.bg-slate-100:hover { background: var(--cf-surface-warm) !important; }

.text-5xl { font-size: 2.55rem !important; line-height: 1.08 !important; }
.text-4xl { font-size: 2rem !important; line-height: 1.15 !important; }
.text-3xl { font-size: 1.65rem !important; line-height: 1.2 !important; }

@media (max-width: 640px) {
  .cf-page { gap: 1rem; }
  .cf-card { padding: 1rem; }

  .cf-page-header {
    align-items: flex-start;
  }

  .cf-page-actions {
    width: 100%;
    align-items: stretch;
  }

  .cf-tabs {
    scroll-snap-type: x proximity;
  }

  .cf-tab {
    scroll-snap-align: start;
  }

  .cf-topbar-search .cf-search-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: min(420px, calc(100dvh - 5rem));
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .cf-input,
  .cf-select,
  .cf-textarea,
  .cf-btn,
  .ui-button {
    min-height: 2.75rem;
  }

  .cf-btn-xs,
  .cf-row-actions .cf-btn-xs {
    min-height: 2.5rem;
    padding: .45rem .75rem;
    font-size: .75rem;
  }

  .cf-row-actions .cf-btn-xs svg,
  .cf-btn-xs svg {
    width: .875rem;
    height: .875rem;
  }

  .cf-faq-icon-action {
    width: 2.75rem;
    height: 2.75rem;
  }

  .cf-messenger-page-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cf-table { min-width: max(100%, 36rem); }
  .cf-table-compact { min-width: max(100%, 32rem); }
  .cf-table-form { min-width: max(100%, 42rem); }
  .cf-table-wide { min-width: max(100%, 48rem); }
  .cf-table th,
  .cf-table td { padding: .625rem .75rem; }
  .cf-toolbar > * { width: 100%; }
  .cf-page-actions .cf-btn,
  .cf-toolbar .cf-btn,
  .cf-modal-footer .cf-btn {
    width: 100%;
  }
  .cf-table .cf-btn,
  .cf-row-actions .cf-btn,
  .cf-btn-sm,
  .cf-btn-xs {
    width: auto;
  }
  .cf-mobile-filter-toggle { display: inline-flex; }
  .cf-toast-container {
    top: calc(var(--cf-topbar-height) + env(safe-area-inset-top) + .75rem);
    right: 1rem;
    bottom: auto;
    left: 1rem;
    width: auto;
  }
  .cf-modal-backdrop {
    align-items: start;
    padding: 1rem;
  }
  .cf-modal {
    max-height: calc(100dvh - 2rem);
  }
  .cf-modal-header { padding: 1.125rem 1rem .625rem; }
  .cf-modal-body { padding: 1rem; }
  .cf-modal-footer {
    flex-direction: column-reverse;
    padding: .875rem 1rem 1rem;
  }
  .cf-modal-footer .cf-btn { width: 100%; }
  .cf-widget-shell {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .cf-page-title,
  .ui-page-title { font-size: 2rem; }
  .cf-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-faq-header,
  .cf-faq-list-header,
  .cf-faq-card-actions {
    align-items: stretch;
  }
  .cf-faq-icon-actions {
    justify-content: flex-start;
  }
  .cf-faq-composer-footer {
    align-items: stretch;
  }
  .cf-faq-composer-footer .cf-btn {
    width: 100%;
  }
  .cf-advanced-filters {
    display: none;
    width: 100%;
  }

  .cf-advanced-filters.cf-advanced-filters-open {
    display: grid;
    gap: .75rem;
  }

  .cf-auth-panel {
    align-items: flex-start;
    overflow-x: clip;
    overflow-y: visible;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .cf-auth-panel::after {
    display: none;
    opacity: .55;
    pointer-events: none;
  }

  .cf-calendar-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cf-calendar-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .cf-calendar-grid-scroll .fc {
    min-width: 42rem;
  }

  .cf-widget-shell {
    width: min(var(--cf-widget-width), 100%);
    max-width: 100%;
    max-height: calc(100dvh - 1rem);
  }

  .cf-widget-scroll {
    scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .cf-slot-grid {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  }

  .cf-slot-button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 340px) {
  .cf-slot-grid { grid-template-columns: 1fr; }
}
