:root {
  --bg: #f2ece7;
  --panel: rgba(255, 250, 246, 0.95);
  --panel-strong: #fffdfb;
  --line: #e7d9d1;
  --text: #241816;
  --muted: #7b6660;
  --accent: #a20f10;
  --accent-dark: #7f0c0d;
  --sidebar: #110a0a;
  --shadow: 0 18px 40px rgba(48, 21, 21, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Aptos", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(162, 15, 16, 0.16), transparent 25%),
    linear-gradient(135deg, #fffaf8 0%, #f4ece8 46%, #efe5df 100%);
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 28px;
  background:
    linear-gradient(180deg, rgba(17, 10, 10, 0.98) 0%, rgba(37, 12, 12, 0.94) 100%);
  color: #fff8f2;
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  opacity: 0.72;
}

.accent {
  color: var(--accent);
}

.sidebar h1,
.hero-card h2,
.panel h3 {
  margin: 0;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
}

.brand-block {
  display: grid;
  gap: 20px;
  align-content: start;
}

.brand-logo {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #ffffff;
  padding: 10px;
}

.brand-copy {
  display: grid;
  gap: 6px;
}

.sidebar h1 {
  font-size: 36px;
  line-height: 1.05;
}

.sidebar-copy,
.hero-copy {
  color: inherit;
  line-height: 1.5;
}

.sidebar-copy {
  margin-top: 18px;
  color: rgba(255, 248, 242, 0.78);
}

.sidebar-nav {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.footer-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 248, 242, 0.56);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8f2;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #63d38f;
  box-shadow: 0 0 0 6px rgba(99, 211, 143, 0.14);
}

.nav-item,
.ghost-button,
.primary-button,
.search-field input,
.form-grid input,
.form-grid select,
.notes-field textarea,
.icon-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.nav-item {
  width: 100%;
  min-height: 58px;
  text-align: left;
  color: #fff8f2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-item:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.96), rgba(127, 12, 13, 0.92));
  border-color: rgba(239, 201, 163, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 233, 0.12);
}

.nav-item:disabled {
  opacity: 0.55;
}

.content {
  padding: 32px 34px 40px;
  min-width: 0;
}

.content > * {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-card,
.panel,
.client-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-card {
  display: none;
}

.hero-card h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.hero-metric {
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.hero-metric span {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-dark);
}

.hero-metric small,
.status,
.meta {
  color: var(--muted);
}

.panel {
  margin-top: 24px;
  border-radius: 22px;
  padding: 18px 20px 22px;
}

.panel-kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-button {
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.ghost-button:hover {
  background: #fff6f4;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(162, 15, 16, 0.18);
}

.icon-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.search-field {
  display: grid;
  gap: 10px;
  flex: 1;
}

.search-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}

.search-field input:focus {
  border-color: rgba(162, 15, 16, 0.5);
  box-shadow: 0 0 0 4px rgba(162, 15, 16, 0.08);
}

.summary-card {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  text-align: right;
}

.clients-database-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
}

.clients-database-tools-copy {
  display: grid;
  gap: 4px;
}

.clients-database-tools-copy small {
  color: rgba(17, 17, 17, 0.54);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.clients-database-tools-copy strong {
  font-size: 18px;
  color: #111111;
}

.clients-database-tools-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.summary-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.summary-card strong {
  font-size: 30px;
  color: var(--accent-dark);
}

.status {
  margin-top: 18px;
}

.hidden-section {
  /* This must override full-screen overlays such as the welcome animation. */
  display: none !important;
}

.hidden-field {
  display: none !important;
}

.client-list {
  display: block;
}

.client-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(231, 217, 209, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.client-table-header,
.client-table-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.25fr)
    minmax(135px, 0.95fr)
    minmax(220px, 1.35fr)
    minmax(120px, 0.85fr)
    minmax(220px, 1.15fr)
    minmax(150px, 0.95fr)
    minmax(90px, 0.7fr)
    minmax(110px, 0.8fr);
  align-items: center;
}

.client-table-header {
  background: rgba(248, 241, 237, 0.92);
  border-bottom: 1px solid rgba(231, 217, 209, 0.9);
}

.client-table-row {
  border-bottom: 1px solid rgba(239, 228, 221, 0.9);
}

.client-table-row:last-child {
  border-bottom: 0;
}

.client-table-heading,
.client-table-cell {
  min-width: 0;
  padding: 14px 16px;
}

.client-table-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.client-table-cell {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.client-table-name-cell {
  font-weight: 700;
}

.table-name-button {
  margin: 0;
  display: inline-block;
  max-width: 100%;
  padding: 10px 16px !important;
  font-size: 14px;
  font-family: "Manrope", "Aptos", "Trebuchet MS", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.table-client-badge {
  min-width: 72px;
  justify-content: center;
}

.client-detail-panel {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(48, 21, 21, 0.08);
  min-height: 520px;
}

.client-detail-view {
  margin-top: 20px;
}

.detail-view-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.full-detail-panel {
  width: 100%;
  position: static;
}

.appointments-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.dashboard-summary-card {
  min-width: 0;
  text-align: left;
}

.dashboard-summary-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-panel-actions {
  flex-wrap: wrap;
}

.dashboard-month-chip {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 220px;
  min-height: 76px;
  padding: 12px 20px;
  border-radius: 16px;
  text-align: center;
  line-height: 1.1;
}

.dashboard-month-chip small {
  display: block;
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dashboard-month-chip strong {
  display: block;
  color: var(--accent-dark);
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 22px;
  text-transform: capitalize;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(48, 21, 21, 0.08);
}

.dashboard-wide-card {
  margin-top: 18px;
}

.dashboard-card-header h4 {
  margin: 0;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 28px;
}

.dashboard-status-breakdown,
.dashboard-ranked-list,
.dashboard-weekly-trend {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.dashboard-status-row,
.dashboard-ranked-row,
.dashboard-week-row {
  display: grid;
  gap: 10px;
}

.dashboard-status-topline,
.dashboard-ranked-row,
.dashboard-week-row {
  align-items: center;
}

.dashboard-status-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-status-label {
  font-size: 13px;
  font-weight: 700;
}

.dashboard-status-label.status-booked,
.dashboard-bar-fill.status-booked {
  color: var(--accent-dark);
  background: rgba(162, 15, 16, 0.78);
}

.dashboard-status-label.status-completed,
.dashboard-bar-fill.status-completed {
  color: #21653a;
  background: rgba(99, 211, 143, 0.82);
}

.dashboard-status-label.status-cancelled,
.dashboard-bar-fill.status-cancelled {
  color: #5a4d49;
  background: rgba(118, 107, 103, 0.7);
}

.dashboard-status-label.status-no_show,
.dashboard-bar-fill.status-no_show {
  color: #8a5700;
  background: rgba(205, 136, 24, 0.78);
}

.dashboard-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(231, 217, 209, 0.72);
  overflow: hidden;
}

.dashboard-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.dashboard-ranked-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.dashboard-ranked-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-ranked-main strong,
.dashboard-week-copy strong {
  display: block;
  font-size: 16px;
}

.dashboard-ranked-main small,
.dashboard-week-copy small {
  color: var(--muted);
}

.dashboard-ranked-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(162, 15, 16, 0.08);
  color: var(--accent-dark);
  font-weight: 700;
}

.dashboard-ranked-metric {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.dashboard-inline-bar {
  display: block;
  width: 140px;
  height: 10px;
  border-radius: 999px;
  background: rgba(231, 217, 209, 0.72);
  overflow: hidden;
}

.dashboard-inline-bar span,
.weekly-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.dashboard-week-row {
  grid-template-columns: 180px minmax(0, 1fr) 140px;
  gap: 16px;
}

.dashboard-week-metric {
  text-align: right;
}

.calendar-layout {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.calendar-main-panel {
  display: grid;
  gap: 16px;
  position: relative;
}

.mini-calendar-card,
.calendar-summary-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(48, 21, 21, 0.08);
}

.mini-calendar-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.mini-calendar-toolbar strong {
  text-align: center;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 24px;
  color: var(--accent-dark);
  text-transform: capitalize;
}

.mini-calendar-nav {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

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

.mini-calendar-weekdays {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mini-calendar-days {
  margin-top: 14px;
}

.mini-calendar-day {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.mini-calendar-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(48, 21, 21, 0.08);
}

.mini-calendar-day.outside-month {
  opacity: 0.36;
}

.mini-calendar-day.today {
  border-color: rgba(162, 15, 16, 0.45);
}

.mini-calendar-day.selected {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-color: transparent;
}

.mini-calendar-day.has-events span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: currentColor;
}

.calendar-summary-card small,
.calendar-date-trigger span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.calendar-summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-dark);
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 24px;
  text-transform: capitalize;
}

.calendar-summary-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.calendar-summary-grid {
  display: grid;
  gap: 14px;
}

.inline-calendar-summary {
  padding: 12px 16px;
}

.inline-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
  margin-top: 8px;
}

.calendar-main-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.calendar-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-nav-compact {
  align-items: center;
  flex-wrap: nowrap;
}

.calendar-view-switch {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.agenda-view-button {
  min-height: 46px;
}

.agenda-view-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: transparent;
}

.agenda-nav-icon {
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 1;
}

.calendar-date-trigger {
  min-height: 56px;
  min-width: 260px;
  padding: 10px 18px;
  display: grid;
  justify-items: start;
  text-align: left;
}

.calendar-date-trigger strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 20px;
  text-transform: capitalize;
}

.agenda-today-button {
  min-height: 48px;
  padding-inline: 16px;
}

.calendar-popup {
  position: absolute;
  top: 78px;
  left: 58px;
  z-index: 10;
}

.calendar-popup.hidden {
  display: none;
}

.calendar-popup-card {
  width: 320px;
  box-shadow: 0 18px 44px rgba(48, 21, 21, 0.16);
}

.calendar-surface {
  margin-top: 0;
}

.calendar-board {
  display: grid;
  gap: 14px;
}

.calendar-board-header {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}

.single-day-header {
  grid-template-columns: 1fr;
}

.calendar-time-header {
  min-height: 1px;
}

.calendar-columns-header {
  display: grid;
  gap: 12px;
}

.week-board .calendar-columns-header {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-column-header {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}

.calendar-column-header:hover {
  transform: translateY(-1px);
  border-color: rgba(162, 15, 16, 0.3);
}

.calendar-column-header small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.calendar-column-header strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  color: var(--accent-dark);
  text-transform: capitalize;
}

.calendar-column-header.selected {
  border-color: rgba(162, 15, 16, 0.36);
  background: rgba(162, 15, 16, 0.06);
}

.calendar-column-header.today strong {
  color: var(--accent);
}

.calendar-board-body {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}

.calendar-time-column {
  display: grid;
  grid-auto-rows: var(--calendar-row-height, 48px);
}

.calendar-time-label {
  display: flex;
  align-items: flex-start;
  height: var(--calendar-row-height, 48px);
  padding-top: 0;
  transform: translateY(-0.5em);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-sizing: border-box;
}

.calendar-columns-grid {
  display: grid;
  gap: 12px;
}

.month-board {
  display: grid;
  gap: 10px;
}

.month-weekdays-row,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.month-weekday-cell {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.month-day-cell {
  min-height: 164px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(231, 217, 209, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 239, 234, 0.92) 100%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 10px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.month-day-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(162, 15, 16, 0.28);
  box-shadow: 0 12px 20px rgba(48, 21, 21, 0.08);
}

.month-day-cell.outside-month {
  opacity: 0.42;
}

.month-day-cell.today {
  border-color: rgba(162, 15, 16, 0.4);
}

.month-day-cell.selected {
  box-shadow: inset 0 0 0 2px rgba(162, 15, 16, 0.2);
  background: linear-gradient(180deg, rgba(255, 248, 246, 0.98) 0%, rgba(247, 228, 222, 0.96) 100%);
}

.month-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--accent-dark);
}

.month-day-cell.selected .month-day-number,
.month-day-cell.today .month-day-number {
  background: rgba(162, 15, 16, 0.12);
}

.month-day-events {
  display: grid;
  gap: 6px;
}

.month-event-chip,
.month-more-chip {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(162, 15, 16, 0.08);
  color: var(--text);
  font-size: 12px;
}

.month-event-chip {
  border: 1px solid rgba(162, 15, 16, 0.12);
  text-align: left;
  cursor: pointer;
}

.month-event-chip span {
  color: var(--accent-dark);
  font-weight: 700;
}

.month-event-chip strong {
  font-size: 12px;
}

.month-event-chip small {
  color: var(--muted);
  font-size: 11px;
}

.month-more-chip {
  color: var(--muted);
}

.week-board .calendar-columns-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.single-day-grid {
  grid-template-columns: 1fr;
}

.calendar-day-column {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 239, 234, 0.84) 100%);
  border: 1px solid rgba(231, 217, 209, 0.9);
}

.calendar-slot-layer,
.calendar-events-layer {
  position: relative;
}

.calendar-slot-layer {
  display: grid;
  grid-template-rows: repeat(var(--calendar-rows, 30), var(--calendar-row-height, 48px));
}

.calendar-grid-slot {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid rgba(231, 217, 209, 0.75);
}

.calendar-grid-slot:nth-child(2n + 1) {
  background: rgba(255, 255, 255, 0.24);
}

.calendar-grid-slot:hover {
  background: rgba(162, 15, 16, 0.08);
}

.calendar-events-layer {
  position: absolute;
  inset: 0;
  padding: 0;
  pointer-events: none;
}

.calendar-event-card {
  --category-accent: var(--accent-dark);
  --category-border: rgba(162, 15, 16, 0.14);
  --category-bg-start: rgba(162, 15, 16, 0.12);
  position: absolute;
  left: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 9px;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid var(--category-border);
  background: linear-gradient(135deg, var(--category-bg-start) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: inset 4px 0 0 var(--category-accent), 0 10px 18px rgba(48, 21, 21, 0.07);
  overflow: hidden;
  pointer-events: auto;
  box-sizing: border-box;
}

.calendar-event-card:hover {
  border-color: color-mix(in srgb, var(--category-accent) 40%, white);
  box-shadow: 0 14px 24px rgba(48, 21, 21, 0.11);
}

.calendar-event-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--category-accent) 50%, white);
  outline-offset: 2px;
}

.calendar-event-card strong,
.calendar-event-card span,
.calendar-event-card small {
  display: block;
  margin: 0;
}

.calendar-event-card strong {
  font-size: 13px;
  line-height: 1.24;
}

.calendar-event-card span,
.calendar-event-card small,
.calendar-empty-copy {
  color: var(--muted);
}

.calendar-event-card span {
  font-size: 12px;
  line-height: 1.2;
}

.calendar-event-card small {
  font-size: 11px;
  line-height: 1.2;
}

.calendar-event-time {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 11px;
}

.week-event-card {
  font-size: 12px;
}

.day-event-card {
  font-size: 14px;
}

.compact-actions {
  margin-top: auto;
  padding-top: 6px;
  gap: 8px;
}

.compact-actions .appointment-action-button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}

.week-compact-actions {
  margin-top: 6px;
}

.compact-open-button {
  min-height: 28px !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
}

.calendar-empty-copy {
  margin: 16px;
  pointer-events: none;
}

.agenda-summary-card {
  min-width: 0;
  text-align: left;
}

.client-card {
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.client-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), #d8b399);
}

.client-card-focus {
  margin: -8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.client-name-button {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  cursor: pointer;
  text-align: left;
}

.client-name-button:hover {
  color: var(--accent-dark);
}

.client-name-button:focus {
  outline: none;
  text-decoration: underline;
}

.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #f8ebe7;
  color: var(--accent-dark);
  border: 1px solid #edd3c9;
}

.meta {
  margin: 4px 0;
}

.small-button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

.detail-empty-state,
.detail-card,
.client-form-section {
  display: grid;
  gap: 16px;
}

.detail-empty-state {
  align-content: center;
  min-height: 100%;
}

.detail-empty-state h4,
.detail-header h4,
.client-form-section-head h4,
.detail-card h5,
.measurements-history h6 {
  margin: 0;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
}

.detail-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-header,
.detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

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

.client-quick-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 18px;
}

.client-side-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.client-side-sheet.is-open {
  pointer-events: auto;
}

.client-side-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 14, 14, 0.18);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.client-side-sheet.is-open .client-side-sheet-backdrop {
  opacity: 1;
}

.client-side-sheet-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 100vw);
  height: 100vh;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  background: #ffffff;
  border-left: 1px solid rgba(162, 15, 16, 0.08);
  transform: translateX(100%);
  transition: transform 0.26s ease;
  overflow: hidden;
}

.client-side-sheet.is-open .client-side-sheet-panel {
  transform: translateX(0);
}

.client-side-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.client-side-sheet-header small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-side-sheet-header strong {
  display: block;
  margin-top: 6px;
  color: #241816;
  font-size: 28px;
  line-height: 1.05;
  font-family: "Cormorant Garamond", "Georgia", serif;
}

.client-side-sheet-content {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.client-side-sheet-shell {
  margin-top: 0;
}

.client-side-history-list {
  display: grid;
  gap: 16px;
}

.detail-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 239, 234, 0.84) 100%);
  border: 1px solid rgba(231, 217, 209, 0.88);
}

.detail-card-head small,
.detail-grid small,
.detail-notes-grid small,
.measurement-pill small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

.detail-grid,
.detail-notes-grid,
.measurements-grid,
.notes-grid {
  display: grid;
  gap: 12px;
}

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

.detail-grid strong,
.detail-notes-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}

.detail-span-2 {
  grid-column: span 2;
}

.subtle-badge {
  white-space: nowrap;
}

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

.measurement-pill {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(231, 217, 209, 0.92);
}

.measurement-pill strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--accent-dark);
}

.measurements-history {
  display: grid;
  gap: 12px;
}

.body-visual-card {
  overflow: hidden;
}

.body-visual-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.body-figure-frame {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 36px 34px 54px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 18%, rgba(162, 15, 16, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 241, 236, 0.9) 100%);
  border: 1px solid rgba(231, 217, 209, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 34px rgba(48, 21, 21, 0.06);
  overflow: hidden;
  isolation: isolate;
}

.body-figure-glow {
  position: absolute;
  width: 200px;
  height: 350px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(162, 15, 16, 0.12) 0%, rgba(162, 15, 16, 0.025) 55%, transparent 74%);
  filter: blur(10px);
}

.body-figure-svg {
  position: relative;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.body-figure-image {
  position: relative;
  width: 100%;
  max-width: 345px;
  max-height: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 14px 24px rgba(48, 21, 21, 0.08));
  z-index: 1;
}

.body-measure-map {
  display: grid;
  gap: 12px;
  align-content: start;
}

.body-measure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(231, 217, 209, 0.88);
}

.body-measure-row span {
  color: var(--muted);
  font-size: 14px;
}

.body-measure-row strong {
  color: var(--accent-dark);
  font-size: 17px;
}

.body-measure-row.accent-row {
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(162, 15, 16, 0.18);
}

.body-measure-row.accent-soft-row {
  background: rgba(162, 15, 16, 0.04);
  border-color: rgba(162, 15, 16, 0.12);
}

.body-measure-empty {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(231, 217, 209, 0.88);
}

.body-measure-empty strong {
  display: block;
  color: var(--accent-dark);
  font-size: 18px;
}

.body-measure-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.measurement-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(231, 217, 209, 0.72);
}

.measurement-history-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.measurement-history-metrics {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  font-size: 13px;
}

.treatment-history-list {
  display: grid;
  gap: 14px;
}

.detail-history-inline-head {
  margin-top: 8px;
}

.detail-history-inline-head small {
  color: var(--muted);
}

.client-appointment-history-table {
  display: grid;
  gap: 10px;
}

.client-appointment-history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.client-appointment-history-main,
.client-appointment-history-meta {
  display: grid;
  gap: 6px;
}

.client-appointment-history-main strong {
  font-size: 17px;
  line-height: 1.25;
  color: #241816;
}

.client-appointment-history-main span,
.client-appointment-history-meta span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.client-appointment-history-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.client-appointment-history-status {
  font-weight: 700;
  color: var(--accent-dark) !important;
}

.compact-history-empty {
  margin: 0;
  padding: 8px 2px 2px;
}

.client-communication-filters {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  width: auto;
  max-width: 100%;
  overflow-x: auto;
}

.client-communication-composer {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.45fr);
  gap: 18px;
  margin-top: 14px;
}

.client-communication-shell {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.client-communication-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.client-communication-compose-panel,
.client-communication-history-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: #fff;
}

.client-communication-compose-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.client-chat-compose-head strong,
.client-chat-head strong {
  display: block;
  color: #241816;
  font-size: 18px;
  line-height: 1.2;
}

.client-chat-compose-head p,
.client-chat-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.client-communication-target {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.client-communication-target small,
.client-communication-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-communication-target strong {
  color: #241816;
  font-size: 15px;
  line-height: 1.35;
}

.client-communication-compose-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.client-communication-field {
  display: grid;
  gap: 8px;
}

.client-communication-field-full {
  grid-column: 1 / -1;
}

.client-communication-field input,
.client-communication-field textarea {
  width: 100%;
  border: 1px solid rgba(162, 15, 16, 0.14);
  border-radius: 18px;
  background: #fff;
  color: #241816;
  font: inherit;
  padding: 14px 16px;
  resize: vertical;
}

.client-communication-field input:focus,
.client-communication-field textarea:focus {
  outline: none;
  border-color: rgba(162, 15, 16, 0.34);
}

.client-communication-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.client-communication-compose-actions .meta {
  margin: 0;
}

.client-communication-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 104px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(162, 15, 16, 0.14);
  background: #fff;
  color: #241816;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.client-communication-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(162, 15, 16, 0.32);
}

.client-communication-filter.active {
  border-color: transparent;
  background: linear-gradient(135deg, #a20f10 0%, #d33b2f 100%);
  color: #fff;
}

.client-communication-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.client-communication-history-chat {
  gap: 16px;
  min-height: 100%;
  max-height: 640px;
}

.client-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.client-chat-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a20f10 0%, #d33b2f 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.client-chat-list {
  margin-top: 0;
  align-content: start;
  max-height: 44vh;
  overflow-y: auto;
  padding-right: 4px;
}

.client-chat-message {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.client-chat-message-email {
  justify-items: start;
}

.client-chat-message-meta {
  width: min(100%, 84%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-chat-message-email .client-chat-message-meta {
  justify-self: start;
}

.client-chat-message-channel,
.client-chat-message-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.client-chat-message-channel span,
.client-chat-message-side span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.client-chat-bubble {
  width: min(100%, 84%);
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 26px 26px 8px 26px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.08) 0%, rgba(211, 59, 47, 0.04) 100%);
}

.client-chat-message-email .client-chat-bubble {
  justify-self: start;
  border-radius: 26px 26px 26px 8px;
  background: #fff;
}

.client-chat-message-incoming .client-chat-bubble {
  justify-self: start;
  border-radius: 26px 26px 26px 8px;
  border-color: rgba(26, 117, 76, 0.18);
  background: linear-gradient(135deg, rgba(44, 157, 102, 0.14), rgba(255, 255, 255, 0.95));
}

.client-chat-bubble p {
  margin: 0;
  color: #241816;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.client-chat-subject {
  color: #241816;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-chat-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(162, 15, 16, 0.08);
}

.client-chat-bubble-footer span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.client-chat-empty-state {
  display: grid;
  gap: 8px;
  padding: 28px 22px;
  border-radius: 22px;
  border: 1px dashed rgba(162, 15, 16, 0.18);
  background: #fff;
}

.client-chat-empty-state strong {
  color: #241816;
  font-size: 16px;
}

.client-chat-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.client-chat-compose-panel {
  align-content: start;
}

.client-chat-compose-actions {
  align-items: flex-end;
}

.client-side-compose-panel {
  position: sticky;
  bottom: 0;
}

.client-chat-compose-panel textarea {
  min-height: 132px;
}

.client-communications-disabled-notice {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #efd2c8;
  border-radius: 18px;
  background: #fff8f5;
}

.client-communications-disabled-notice strong {
  color: var(--accent-dark);
}

.client-communications-disabled-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.auth-screen,
.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
}

.auth-screen {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 16%, rgba(178, 31, 35, 0.14), transparent 27%),
    radial-gradient(circle at 86% 82%, rgba(209, 173, 126, 0.2), transparent 30%),
    #fff;
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(162, 15, 16, 0.13);
  border-radius: 50%;
  animation: auth-orbit-spin 18s linear infinite;
}

.auth-orbit-one {
  width: min(78vw, 850px);
  aspect-ratio: 1;
  top: -42%;
  right: -16%;
}

.auth-orbit-two {
  width: min(62vw, 650px);
  aspect-ratio: 1;
  bottom: -38%;
  left: -15%;
  animation-direction: reverse;
  animation-duration: 24s;
}

.auth-screen-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 32px;
  border: 1px solid rgba(32, 20, 18, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  animation: auth-card-enter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  color: #1d1312;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 24px;
  font-weight: 700;
}

.auth-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.auth-view {
  display: grid;
  gap: 14px;
}

.auth-view h1 {
  margin: 0;
  color: #1d1312;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(42px, 8vw, 56px);
  line-height: 0.88;
}

.auth-view > p:not(.panel-kicker) {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

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

.auth-form label span {
  color: #3a2926;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(32, 20, 18, 0.18);
  border-radius: 16px;
  background: #fff;
  color: #1d1312;
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid rgba(162, 15, 16, 0.24);
  outline-offset: 2px;
  border-color: #a20f10;
}

.auth-status {
  min-height: 20px;
  color: #8f1a1a;
  font-size: 14px;
  line-height: 1.4;
}

.auth-submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.auth-link-button,
.auth-logout-button {
  border: 0;
  background: transparent;
  color: #7b3330;
  cursor: pointer;
  font: inherit;
}

.auth-link-button {
  justify-self: start;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-logout-button {
  margin-top: 8px;
  padding: 4px 0;
  font-size: 13px;
}

.welcome-screen {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(239, 190, 133, 0.4), transparent 19%),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(135deg, #52090c 0%, #a20f10 53%, #d24a38 100%);
}

.welcome-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: welcome-logo-pulse 1.7s ease-in-out infinite;
}

.welcome-screen p {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.welcome-screen h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(58px, 12vw, 108px);
  line-height: 0.85;
  animation: welcome-title-rise 680ms 140ms both;
}

.welcome-screen > span {
  font-size: 17px;
  animation: welcome-title-rise 680ms 260ms both;
}

.welcome-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  animation: welcome-float 4s ease-in-out infinite;
}

.welcome-spark-one { top: 18%; left: 19%; }
.welcome-spark-two { top: 26%; right: 18%; width: 22px; height: 22px; animation-delay: -1.4s; }
.welcome-spark-three { bottom: 19%; right: 29%; width: 9px; height: 9px; animation-delay: -2.5s; }

@keyframes auth-card-enter {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes welcome-logo-pulse {
  50% { transform: scale(1.08) rotate(4deg); }
}

@keyframes welcome-title-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes welcome-float {
  50% { transform: translateY(-24px) scale(1.35); opacity: 0.32; }
}

@media (max-width: 620px) {
  .auth-screen { padding: 16px; }
  .auth-screen-card { padding: 26px 20px; border-radius: 24px; }
  .auth-brand { margin-bottom: 28px; font-size: 21px; }
  .auth-orbit-one { width: 125vw; top: -22%; right: -45%; }
  .auth-orbit-two { width: 110vw; bottom: -26%; left: -46%; }
}

.client-communication-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: #fff;
}

.client-communication-main {
  display: grid;
  gap: 10px;
}

.client-communication-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.client-communication-topline strong {
  font-size: 17px;
  line-height: 1.25;
  color: #241816;
}

.client-communication-main p,
.client-communication-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.client-communication-main p {
  color: var(--muted);
}

.client-communication-error {
  color: #a20f10;
  font-weight: 600;
}

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

.client-communication-meta span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.client-communication-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-communication-status.status-sent {
  background: rgba(72, 170, 104, 0.14);
  color: #2d7e45;
}

.client-communication-status.status-pending {
  background: rgba(228, 180, 49, 0.16);
  color: #8a6208;
}

.client-communication-status.status-skipped {
  background: rgba(139, 130, 122, 0.14);
  color: #685f57;
}

.client-communication-status.status-error {
  background: rgba(162, 15, 16, 0.1);
  color: #a20f10;
}

.treatment-history-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(162, 15, 16, 0.08);
}

.treatment-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.treatment-history-head h6 {
  margin: 0;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 22px;
  color: #241816;
}

.treatment-history-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.treatment-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.treatment-history-grid small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

.treatment-history-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
  color: #241816;
}

@media (max-width: 960px) {
  .client-appointment-history-row {
    grid-template-columns: 1fr;
  }

  .client-appointment-history-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-communication-composer,
  .client-communication-row {
    grid-template-columns: 1fr;
  }

  .client-communication-compose-head,
  .client-communication-compose-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .client-appointment-history-meta {
    grid-template-columns: 1fr;
  }

  .client-communication-compose-fields,
  .client-communication-meta {
    grid-template-columns: 1fr;
  }

  .client-communication-toolbar,
  .client-chat-head,
  .client-chat-message-meta,
  .client-chat-bubble-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .client-chat-message,
  .client-chat-message-email {
    justify-items: stretch;
  }

  .client-chat-bubble,
  .client-chat-message-meta {
    width: 100%;
  }

  .client-communication-compose-head,
  .client-communication-compose-actions {
    display: grid;
  }

  .client-communication-target {
    justify-items: start;
    text-align: left;
  }
}

.empty-state {
  margin-top: 12px;
  padding: 28px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}

.appointment-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.appointment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.appointment-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
}

.appointment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8ebe7;
  color: var(--accent-dark);
  border: 1px solid #edd3c9;
  white-space: nowrap;
}

.appointment-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.appointment-meta {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.appointment-meta small {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 11px;
}

.appointment-meta strong {
  font-size: 18px;
  color: var(--text);
}

.appointment-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.appointment-action-button {
  min-height: 44px;
  padding: 10px 16px;
}

.appointment-cancel-button {
  color: var(--accent);
  border-color: rgba(162, 15, 16, 0.26);
  background: rgba(162, 15, 16, 0.04);
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 242, 238, 0.96);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: 26px 28px 34px;
  border-radius: 0;
  background: rgba(255, 250, 246, 0.98);
  border: 0;
  box-shadow: none;
}

.appointment-modal-panel {
  width: 100vw;
  min-height: 100vh;
  padding: 20px 24px 32px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.client-form {
  margin-top: 20px;
}

.client-form-section {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(231, 217, 209, 0.72);
}

.client-form-section-head {
  margin-bottom: 14px;
}

.client-form-section-head h4 {
  font-size: 16px;
  line-height: 1.2;
}

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

.appointment-modal-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.appointment-block {
  margin-top: 0;
  height: auto;
}

.appointment-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.appointment-section-copy {
  display: none;
}

.appointment-form-grid {
  align-items: start;
}

.appointment-form-grid > * {
  min-width: 0;
}

.appointment-price-field,
.appointment-form-grid .duration-option-card {
  align-self: stretch;
}

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

.appointment-overview-grid {
  margin-top: 18px;
}

.appointment-overview-card {
  min-height: 116px;
}

.appointment-timing-overview {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

.form-grid label,
.notes-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.client-picker-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.form-grid span,
.notes-field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.form-grid input,
.form-grid select,
.notes-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}

.form-grid input:focus,
.form-grid select:focus,
.notes-field textarea:focus {
  border-color: rgba(162, 15, 16, 0.5);
  box-shadow: 0 0 0 4px rgba(162, 15, 16, 0.08);
}

.service-browser {
  display: grid;
  gap: 12px;
}

.client-browser {
  display: grid;
  gap: 12px;
}

.client-browser-embedded {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 217, 209, 0.56);
}

.client-search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(231, 217, 209, 0.92);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  outline: none;
}

.client-search-input:focus {
  border-color: rgba(162, 15, 16, 0.5);
  box-shadow: 0 0 0 4px rgba(162, 15, 16, 0.08);
}

.selected-client-card {
  display: grid;
  gap: 10px;
}

.selected-client-card.is-empty {
  display: none;
}

.selected-client-empty,
.client-results-empty {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(162, 15, 16, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.selected-client-filled-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(48, 21, 21, 0.04);
}

.selected-client-filled-copy small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.selected-client-filled-copy strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
}

.selected-client-filled-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.client-results-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.client-result-card {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(231, 217, 209, 0.82);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.client-result-card:hover {
  border-color: rgba(162, 15, 16, 0.18);
  box-shadow: 0 8px 18px rgba(48, 21, 21, 0.05);
  background: #fff;
}

.client-result-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.client-result-card small {
  color: var(--muted);
  font-size: 12px;
}

.appointment-service-section {
  margin-top: 18px;
}

.appointment-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.appointment-service-help {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  text-align: right;
  font-size: 13px;
}

.service-browser-embedded {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 217, 209, 0.74);
}

.selected-services-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.selected-services-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.selected-services-head > div:first-child {
  display: grid;
  gap: 4px;
  align-content: start;
}

.selected-services-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.selected-services-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(162, 15, 16, 0.08);
  border: 1px solid rgba(162, 15, 16, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.selected-services-head small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.selected-services-head p {
  margin: 0;
  max-width: 220px;
  color: var(--muted);
  line-height: 1.35;
  text-align: left;
  font-size: 13px;
}

.selected-services-list {
  display: grid;
  gap: 10px;
}

.selected-services-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(162, 15, 16, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.selected-service-card {
  --category-accent: var(--accent-dark);
  --category-border: rgba(162, 15, 16, 0.1);
  --category-bg: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--category-border);
  background: linear-gradient(180deg, var(--category-bg) 0%, rgba(248, 241, 237, 0.9) 100%);
  box-shadow: inset 4px 0 0 var(--category-accent);
}

.selected-service-card-copy small,
.service-result-action-copy {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.selected-service-card-copy strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.selected-service-card-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.selected-service-remove-button {
  min-height: 40px;
  white-space: nowrap;
}

.selected-service-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.selected-service-order-button,
.selected-service-remove-button {
  min-height: 40px;
  padding-inline: 12px;
}

.selected-service-order-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.service-result-action-copy {
  margin-top: 6px;
  font-style: normal;
}

.service-search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.service-search-input:focus {
  border-color: rgba(162, 15, 16, 0.5);
  box-shadow: 0 0 0 4px rgba(162, 15, 16, 0.08);
}

.service-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-category-chip {
  --category-accent: var(--accent-dark);
  --category-border: rgba(162, 15, 16, 0.12);
  --category-bg: rgba(255, 255, 255, 0.82);
  --category-bg-active: rgba(162, 15, 16, 0.1);
  --category-text: var(--muted);
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--category-border);
  background: var(--category-bg);
  color: var(--category-text);
  font: inherit;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.service-category-chip.active {
  background: linear-gradient(135deg, var(--category-bg-active) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: var(--category-border);
  color: var(--category-accent);
}

.service-results-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
  padding-bottom: 4px;
}

.service-result-card,
.service-results-empty {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(231, 217, 209, 0.92);
  background: rgba(255, 255, 255, 0.86);
}

.service-result-card {
  --category-accent: var(--accent-dark);
  --category-border: rgba(231, 217, 209, 0.92);
  --category-bg: rgba(255, 255, 255, 0.86);
  --category-bg-active: rgba(162, 15, 16, 0.08);
  display: grid;
  gap: 6px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  border-color: var(--category-border);
  background: var(--category-bg);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.service-result-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--category-accent) 28%, white);
  box-shadow: 0 12px 24px rgba(48, 21, 21, 0.08);
}

.service-result-card.active {
  border-color: color-mix(in srgb, var(--category-accent) 36%, white);
  background: linear-gradient(135deg, var(--category-bg-active) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.service-result-category {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.service-result-card strong {
  font-size: 16px;
  color: var(--text);
}

.service-result-card.active strong {
  color: var(--category-accent);
}

.service-result-card small,
.service-results-empty {
  color: var(--muted);
}

.service-category-chip[data-category-tone="all"] {
  --category-accent: #7f0c0d;
  --category-border: rgba(127, 12, 13, 0.18);
  --category-bg-active: rgba(127, 12, 13, 0.12);
}

[data-category-tone="ciglia"] {
  --category-accent: #9d4f7a;
  --category-border: rgba(157, 79, 122, 0.2);
  --category-bg: rgba(250, 241, 245, 0.96);
  --category-bg-active: rgba(157, 79, 122, 0.14);
  --category-text: #7d5e70;
}

[data-category-tone="epilazione"] {
  --category-accent: #c47a2c;
  --category-border: rgba(196, 122, 44, 0.22);
  --category-bg: rgba(255, 247, 237, 0.96);
  --category-bg-active: rgba(196, 122, 44, 0.14);
  --category-text: #8b6a4f;
}

[data-category-tone="corpo"] {
  --category-accent: #3b8f8a;
  --category-border: rgba(59, 143, 138, 0.22);
  --category-bg: rgba(239, 249, 248, 0.96);
  --category-bg-active: rgba(59, 143, 138, 0.14);
  --category-text: #5f7f7c;
}

[data-category-tone="estetica"] {
  --category-accent: #5878b8;
  --category-border: rgba(88, 120, 184, 0.22);
  --category-bg: rgba(241, 246, 255, 0.96);
  --category-bg-active: rgba(88, 120, 184, 0.14);
  --category-text: #60708f;
}

[data-category-tone="viso"] {
  --category-accent: #7f9b5a;
  --category-border: rgba(127, 155, 90, 0.22);
  --category-bg: rgba(244, 250, 238, 0.96);
  --category-bg-active: rgba(127, 155, 90, 0.14);
  --category-text: #6b7c5d;
}

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

.compact-notes-field textarea {
  min-height: 110px;
}

.compact-modal-panel {
  width: 100vw;
  min-height: 100vh;
}

.inline-picker-button {
  width: fit-content;
  min-height: 42px;
  padding: 8px 12px;
}

.duration-option-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 217, 209, 0.8);
}

.duration-option-head {
  display: grid;
  gap: 6px;
}

.duration-option-head span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.duration-option-head small {
  color: var(--muted);
  line-height: 1.3;
  font-size: 12px;
}

.compact-checkbox-field {
  margin-top: 0;
}

.duration-fields {
  display: grid;
  gap: 12px;
}

.duration-fields label {
  display: grid;
  gap: 8px;
}

.currency-input-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(162, 15, 16, 0.1);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.currency-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  color: var(--accent-dark);
  font-weight: 700;
  background: rgba(162, 15, 16, 0.06);
  border-right: 1px solid rgba(162, 15, 16, 0.08);
}

.currency-input-shell input {
  border: 0;
  border-radius: 0;
  min-height: 50px;
  background: transparent;
  box-shadow: none;
}

.field-help-text {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.time-field-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.time-field-head {
  display: grid;
  gap: 4px;
}

.time-field-head span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.time-field-head small {
  color: var(--muted);
  line-height: 1.4;
}

.time-select-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.time-select-inline label {
  display: grid;
  gap: 8px;
}

.time-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 700;
}

.appointment-timing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.05) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.appointment-timing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.appointment-timing-badge.timing-empty,
.appointment-timing-badge.timing-future {
  background: rgba(162, 15, 16, 0.08);
  color: var(--accent-dark);
  border-color: rgba(162, 15, 16, 0.14);
}

.appointment-timing-badge.timing-today {
  background: rgba(205, 136, 24, 0.12);
  color: #8a5700;
  border-color: rgba(205, 136, 24, 0.22);
}

.appointment-timing-badge.timing-soon {
  background: rgba(112, 86, 214, 0.1);
  color: #5943a6;
  border-color: rgba(112, 86, 214, 0.18);
}

.appointment-timing-badge.timing-past {
  background: rgba(80, 80, 80, 0.1);
  color: #4f4542;
  border-color: rgba(80, 80, 80, 0.18);
}

.appointment-timing-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.appointment-auto-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.appointment-quick-status {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.services-toolbar {
  justify-content: flex-start;
}

.services-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(162, 15, 16, 0.08) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(246, 234, 229, 0.92) 100%);
  border: 1px solid rgba(162, 15, 16, 0.12);
  box-shadow: inset 0 0 28px rgba(162, 15, 16, 0.04);
}

.services-sync-banner small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.services-sync-banner strong {
  display: block;
  max-width: 720px;
  color: #241816;
  font-size: 18px;
  line-height: 1.45;
}

.services-sync-pill {
  background: rgba(255, 255, 255, 0.86);
}

.services-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.services-sidebar-card,
.services-main-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(252, 247, 243, 0.76) 100%);
  border: 1px solid rgba(162, 15, 16, 0.09);
  box-shadow:
    inset 0 0 32px rgba(162, 15, 16, 0.03),
    0 20px 40px rgba(48, 21, 21, 0.06);
}

.services-sidebar-card {
  position: sticky;
  top: 24px;
}

.services-card-head,
.catalog-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.services-card-head h4,
.catalog-form-head h5 {
  margin: 0;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  color: #241816;
}

.services-categories-list,
.services-items-list {
  display: grid;
  gap: 12px;
}

.services-categories-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.service-category-list-card,
.service-item-card,
.catalog-form {
  border-radius: 22px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.service-category-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.service-category-list-card.active {
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(162, 15, 16, 0.22);
  box-shadow: 0 14px 26px rgba(48, 21, 21, 0.07);
}

.service-category-list-card:hover {
  transform: translateY(-1px);
  border-color: rgba(162, 15, 16, 0.18);
}

.service-category-select-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.service-category-select-button strong,
.service-item-card strong {
  color: #241816;
  font-size: 17px;
}

.service-category-select-button small,
.service-category-select-button span,
.service-item-card small,
.service-item-meta span {
  color: var(--muted);
}

.service-category-select-button span {
  font-family: "Manrope", "Aptos", "Trebuchet MS", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.service-category-edit-button {
  align-self: start;
  min-height: 40px;
  padding: 10px 12px;
}

.service-item-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.service-item-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.service-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.service-item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(162, 15, 16, 0.06);
  border: 1px solid rgba(162, 15, 16, 0.08);
}

.catalog-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 243, 239, 0.84) 100%);
}

.catalog-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.catalog-form-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.catalog-form-grid label,
.catalog-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.catalog-form-grid span,
.catalog-field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.catalog-form-grid input,
.catalog-form-grid select,
.catalog-field input,
.catalog-field select {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(162, 15, 16, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: none;
}

.catalog-form-grid input:focus,
.catalog-form-grid select:focus,
.catalog-field input:focus,
.catalog-field select:focus {
  border-color: rgba(162, 15, 16, 0.42);
  box-shadow: 0 0 0 4px rgba(162, 15, 16, 0.08);
}

.time-select-inline select,
.catalog-form-grid label > select {
  min-height: 58px;
  border-radius: 18px;
}

.catalog-form .checkbox-field span {
  font-weight: 500;
}

.currency-input-shell {
  min-height: 58px;
  border-radius: 18px;
}

.currency-input-shell input {
  min-height: 58px;
}

.time-field-card,
.duration-option-card {
  border-radius: 18px;
}

.with-stepper {
  appearance: auto;
}

.with-stepper::-webkit-inner-spin-button,
.with-stepper::-webkit-outer-spin-button {
  -webkit-appearance: auto;
  margin: 0;
}

.appointment-quick-status-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.appointment-quick-status-header small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.appointment-quick-status-copy {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.45;
  text-align: right;
}

.appointment-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.appointment-status-badge.status-booked {
  background: rgba(162, 15, 16, 0.08);
  color: var(--accent-dark);
  border-color: rgba(162, 15, 16, 0.12);
}

.appointment-status-badge.status-completed {
  background: rgba(99, 211, 143, 0.12);
  color: #21653a;
  border-color: rgba(99, 211, 143, 0.24);
}

.appointment-status-badge.status-no_show {
  background: rgba(205, 136, 24, 0.12);
  color: #8a5700;
  border-color: rgba(205, 136, 24, 0.22);
}

.appointment-status-badge.status-cancelled {
  background: rgba(80, 80, 80, 0.12);
  color: #4f4542;
  border-color: rgba(80, 80, 80, 0.18);
}

.appointment-quick-status-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.appointment-payment-panel {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(162, 15, 16, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 241, 237, 0.92) 100%);
  display: grid;
  gap: 16px;
}

.appointment-payment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.appointment-payment-header small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.appointment-payment-copy {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.45;
  text-align: right;
}

.appointment-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.appointment-payment-badge.payment-paid {
  background: rgba(99, 211, 143, 0.12);
  color: #21653a;
  border-color: rgba(99, 211, 143, 0.24);
}

.appointment-payment-badge.payment-pending {
  background: rgba(205, 136, 24, 0.12);
  color: #8a5700;
  border-color: rgba(205, 136, 24, 0.2);
}

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

.appointment-payment-action {
  min-height: 46px;
}

.appointment-payment-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.appointment-reschedule-strip {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(162, 15, 16, 0.1);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 14px;
}

.appointment-reschedule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.appointment-reschedule-head small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.appointment-reschedule-head p {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.45;
  text-align: right;
}

.appointment-reschedule-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.appointment-shift-button {
  min-height: 46px;
}

.appointment-status-action {
  min-height: 46px;
  padding: 10px 12px;
}

.appointment-status-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.danger-status-action {
  color: var(--accent);
  border-color: rgba(162, 15, 16, 0.24);
  background: rgba(162, 15, 16, 0.05);
}

.auto-summary-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.auto-summary-card small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.auto-summary-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  word-break: break-word;
}

.notes-field {
  margin-top: 16px;
}

.notes-field textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--text);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.form-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.datetime-modal-panel {
  width: 100vw;
  min-height: 100vh;
  padding: 22px 24px 30px;
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.99) 0%, rgba(247, 240, 235, 0.97) 100%);
}

.datetime-picker-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  margin-top: 22px;
}

.calendar-panel,
.time-panel {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 247, 243, 0.92) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(231, 217, 209, 0.8);
}

.calendar-header h4 {
  margin: 0;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 28px;
  color: var(--accent-dark);
}

.calendar-nav-button {
  width: 42px;
  height: 42px;
  font-size: 20px;
  font-weight: 700;
}

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

.calendar-weekdays {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.calendar-days {
  margin-top: 14px;
}

.calendar-day {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
  border-color: rgba(162, 15, 16, 0.26);
  box-shadow: 0 10px 20px rgba(57, 24, 24, 0.08);
}

.calendar-day.muted {
  opacity: 0.42;
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(162, 15, 16, 0.22);
}

.calendar-day.today {
  border-color: rgba(162, 15, 16, 0.55);
  color: var(--accent-dark);
}

.time-selectors {
  display: grid;
  gap: 16px;
}

.time-panel-header {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.time-panel-header h4 {
  margin: 0;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 26px;
  color: var(--accent-dark);
}

.time-panel-kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.quick-date-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.quick-action-button {
  min-height: 46px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.time-selectors label {
  display: grid;
  gap: 10px;
}

.time-selectors span,
.datetime-summary small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.time-selectors select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
}

.datetime-summary {
  margin-top: 22px;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(162, 15, 16, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid var(--line);
}

.datetime-summary p {
  margin: 10px 0 0;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.datetime-summary-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

input[type="number"] {
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

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

  .sidebar {
    position: static;
    min-height: auto;
    gap: 24px;
    padding: 24px 20px;
  }

  .content {
    padding: 20px;
  }

  .content > * {
    width: 100%;
  }

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

  .toolbar,
  .panel-header,
  .panel-actions,
  .calendar-main-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-nav-group,
  .calendar-view-switch {
    width: 100%;
  }

  .calendar-nav-group,
  .calendar-view-switch,
  .calendar-summary-grid,
  .dashboard-grid {
    display: grid;
  }

  .dashboard-grid,
  .dashboard-layout,
  .dashboard-week-row,
  .services-layout,
  .marketing-workflow-layout,
  .marketing-grid,
  .marketing-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-ranked-row {
    grid-template-columns: 1fr;
  }

  .dashboard-ranked-metric,
  .dashboard-week-metric {
    justify-items: start;
    text-align: left;
  }

  .detail-grid,
  .detail-notes-grid,
  .measurements-grid,
  .notes-grid,
  .measurement-grid,
  .measurement-history-row,
  .body-visual-layout,
  .treatment-history-grid,
  .catalog-form-grid-wide,
  .duration-fields {
    grid-template-columns: 1fr;
  }

  .body-marker {
    display: none;
  }

  .client-detail-panel {
    position: static;
    min-height: auto;
  }

  .detail-span-2 {
    grid-column: auto;
  }

  .client-quick-actions-row,
  .detail-actions {
    justify-content: flex-start;
  }

  .client-side-sheet-panel {
    width: 100vw;
    padding: 18px;
  }

  .measurement-history-metrics {
    justify-items: start;
  }

  .calendar-main-toolbar {
    grid-template-columns: 1fr;
  }

  .sidebar-nav,
  .sidebar-footer {
    margin-top: 0;
  }

  .calendar-nav-compact {
    grid-template-columns: 48px 1fr 48px;
    align-items: stretch;
  }

  .agenda-today-button {
    grid-column: 1 / -1;
  }

  .calendar-date-trigger {
    min-width: 0;
  }

  .calendar-popup {
    position: static;
  }

  .calendar-popup-card {
    width: 100%;
  }

  .inline-summary-grid {
    grid-template-columns: 1fr;
  }

  .calendar-board-header,
  .calendar-board-body {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .calendar-columns-header,
  .week-board .calendar-columns-grid {
    grid-template-columns: 1fr;
  }

  .month-weekdays-row,
  .month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-day-cell {
    min-height: 140px;
  }

  .calendar-time-column,
  .calendar-time-header {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .appointment-modal-layout,
  .appointment-overview-grid,
  .appointment-management-grid,
  .appointment-auto-summary,
  .datetime-picker-layout {
    grid-template-columns: 1fr;
  }

  .appointment-section-head {
    display: grid;
  }

  .appointment-section-copy {
    max-width: none;
    text-align: left;
  }

  .appointment-service-head {
    display: grid;
  }

  .appointment-service-help {
    max-width: none;
    text-align: left;
  }

  .selected-services-head {
    display: grid;
  }

  .selected-services-head p {
    max-width: none;
    text-align: left;
  }

  .selected-services-meta {
    justify-content: flex-start;
  }

  .selected-service-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .selected-service-actions {
    flex-wrap: wrap;
  }

  .appointment-timing-strip {
    display: grid;
  }

  .appointment-timing-copy {
    text-align: left;
  }

  .appointment-quick-status-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .appointment-quick-status-copy {
    max-width: none;
    text-align: left;
  }

  .appointment-quick-status-actions {
    grid-template-columns: 1fr;
  }

  .appointment-payment-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .appointment-payment-copy {
    max-width: none;
    text-align: left;
  }

  .appointment-payment-actions {
    grid-template-columns: 1fr;
  }

  .appointment-reschedule-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .appointment-reschedule-head p {
    max-width: none;
    text-align: left;
  }

  .appointment-reschedule-actions {
    grid-template-columns: 1fr;
  }

  .services-card-head,
  .catalog-form-head,
  .service-item-card-head,
  .service-category-list-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .form-actions {
    flex-direction: column;
  }

  .summary-card {
    min-width: 0;
    text-align: left;
  }
}

/* Orbital-inspired Lovely Beauty theme overrides */

body {
  font-family: "Manrope", "Aptos", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(162, 15, 16, 0.14), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(212, 111, 96, 0.12), transparent 22%),
    linear-gradient(180deg, #fffaf8 0%, #f7eeea 44%, #f2e7e2 100%);
  color: #2a1816;
}

.aura,
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aura {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(162, 15, 16, 0.12), transparent 28%),
    radial-gradient(circle at 20% 72%, rgba(212, 111, 96, 0.08), transparent 24%);
  filter: blur(18px);
}

.stars {
  z-index: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(162,15,16,0.16), transparent),
    radial-gradient(1px 1px at 24% 76%, rgba(122,82,73,0.12), transparent),
    radial-gradient(1px 1px at 68% 18%, rgba(212,111,96,0.18), transparent),
    radial-gradient(1px 1px at 82% 62%, rgba(122,82,73,0.12), transparent),
    radial-gradient(1px 1px at 42% 46%, rgba(162,15,16,0.14), transparent);
}

.orbital-shell {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  width: 100%;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(162, 15, 16, 0.08);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0 36px rgba(162, 15, 16, 0.04),
    0 20px 60px rgba(48, 21, 21, 0.1);
  position: relative;
  overflow: visible;
  z-index: 30;
}

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

.topbar-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.topbar-copy h1 {
  margin: 0;
  font-size: 28px;
  color: #2a1816;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
}

.topbar-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-status {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.footer-label,
.eyebrow,
.panel-kicker,
.search-label,
.calendar-summary-card small,
.calendar-date-trigger span {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 600;
}

.eyebrow {
  color: rgba(123, 102, 96, 0.78);
}

.accent,
.panel-kicker {
  color: #a20f10;
}

.nav-item {
  width: auto;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: "Manrope", "Aptos", "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(66, 40, 37, 0.68);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(162, 15, 16, 0.08);
}

.nav-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(162, 15, 16, 0.16);
  color: #2a1816;
}

.nav-item.active {
  color: #fff8f4;
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.78), rgba(86, 11, 13, 0.82));
  border-color: rgba(255, 219, 205, 0.24);
  box-shadow: 0 0 24px rgba(162, 15, 16, 0.24);
}

.settings-menu {
  position: relative;
  z-index: 40;
}

.settings-gear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: rgba(66, 40, 37, 0.72);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.settings-gear-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(162, 15, 16, 0.16);
  color: #2a1816;
}

.settings-gear-button.active {
  color: #fff8f4;
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.78), rgba(86, 11, 13, 0.82));
  border-color: rgba(255, 219, 205, 0.24);
  box-shadow: 0 0 24px rgba(162, 15, 16, 0.24);
}

.settings-gear-icon {
  font-size: 24px;
  line-height: 1;
}

.settings-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  min-width: 260px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 252, 250, 0.96);
  border: 1px solid rgba(162, 15, 16, 0.12);
  box-shadow:
    inset 0 0 24px rgba(162, 15, 16, 0.03),
    0 20px 44px rgba(48, 21, 21, 0.14);
  backdrop-filter: blur(18px);
}

.settings-menu-head {
  display: grid;
  gap: 4px;
  padding: 4px 4px 12px;
}

.settings-menu-head small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.settings-menu-head strong {
  color: #241816;
  font-family: "Bodoni MT", "Didot", "Georgia", serif;
  font-size: 22px;
}

.settings-menu-item {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(162, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #241816;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.settings-menu-item:hover,
.settings-menu-item.active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(162, 15, 16, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(162, 15, 16, 0.18);
}

.settings-menu-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px 2px;
}

.marketing-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.marketing-sync-banner {
  margin-bottom: 22px;
}

.marketing-workflow-banner {
  margin-bottom: 22px;
}

.marketing-workflow-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
  align-items: start;
}

.marketing-workflow-sidebar,
.marketing-workflow-main {
  min-height: 0;
}

.marketing-workflow-sidebar {
  position: static;
  top: auto;
}

.marketing-workflows-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.workflow-card {
  display: grid;
  gap: 8px;
  width: min(100%, 280px);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(231, 217, 209, 0.88);
  text-align: left;
  cursor: pointer;
}

.workflow-card.selected {
  border-color: rgba(162, 15, 16, 0.24);
  box-shadow: 0 10px 22px rgba(48, 21, 21, 0.08);
}

.workflow-card-top,
.workflow-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-card-top small,
.marketing-variable-help small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.workflow-card-top strong {
  display: block;
  margin-top: 4px;
  color: #241816;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 18px;
}

.workflow-card-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.workflow-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 217, 209, 0.9);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 11px;
}

.workflow-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.workflow-channel-icon {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.workflow-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.workflow-form-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.workflow-audience-button {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(231, 217, 209, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.workflow-audience-button.active {
  border-color: rgba(162, 15, 16, 0.22);
  background: rgba(162, 15, 16, 0.08);
  color: var(--accent-dark);
}

.workflow-form-head-actions .ghost-button.active-toggle {
  border-color: #2f9a63;
  background: linear-gradient(135deg, #2f9a63 0%, #57c785 100%);
  color: #ffffff;
}

.workflow-form-head-actions .ghost-button.inactive-toggle {
  border-color: #b62828;
  background: linear-gradient(135deg, #b62828 0%, #df5252 100%);
  color: #ffffff;
}

.workflow-state-pill.active {
  background: rgba(42, 131, 87, 0.12);
  color: #1f7a51;
}

.workflow-state-pill.inactive {
  background: rgba(162, 15, 16, 0.1);
  color: var(--accent-dark);
}

.marketing-variable-help {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(231, 217, 209, 0.88);
}

.marketing-variable-help p {
  margin: 0;
  color: var(--muted);
}

.marketing-variables-list {
  display: grid;
  gap: 14px;
}

.variable-group-block {
  display: grid;
  gap: 10px;
}

.variable-group-block small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.variable-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variable-chip {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(231, 217, 209, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-dark);
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.variable-chip:hover {
  transform: translateY(-1px);
  background: #fff6f4;
  border-color: rgba(162, 15, 16, 0.22);
}

.variable-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(162, 15, 16, 0.1);
}

.marketing-variable-copy {
  font-size: 13px;
}

.workflow-switch-field {
  display: grid;
  gap: 12px;
  align-content: start;
}

.workflow-steps-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.workflow-steps-head h5 {
  margin: 0 0 6px;
}

.workflow-steps-head small {
  color: var(--muted);
}

.workflow-step-list {
  display: grid;
  gap: 16px;
}

.workflow-step-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 239, 234, 0.9) 100%);
  border: 1px solid rgba(231, 217, 209, 0.9);
  box-shadow: 0 12px 30px rgba(48, 21, 21, 0.06);
}

.workflow-step-head,
.workflow-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-step-head small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.workflow-step-head strong {
  display: block;
  margin-top: 6px;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 30px;
  color: #241816;
}

.workflow-step-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.step-variable-menu {
  margin-top: 10px;
}

.step-variable-menu[open] {
  display: grid;
  gap: 10px;
}

.step-variable-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(231, 217, 209, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-dark);
  cursor: pointer;
  list-style: none;
  width: fit-content;
}

.step-variable-trigger::-webkit-details-marker {
  display: none;
}

.step-variable-trigger.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.step-variable-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(231, 217, 209, 0.88);
}

.small-variable-chip {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}

.workflow-preview-steps {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.workflow-preview-step {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 217, 209, 0.88);
}

.workflow-preview-step strong {
  font-size: 15px;
}

.workflow-preview-step small {
  color: var(--muted);
}

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

.marketing-grid-secondary {
  margin-top: 22px;
}

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

.marketing-card {
  min-height: 100%;
}

.marketing-list,
.marketing-tip-list {
  display: grid;
  gap: 14px;
}

.marketing-item-card,
.marketing-tip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 239, 234, 0.84) 100%);
  border: 1px solid rgba(231, 217, 209, 0.88);
}

.marketing-item-main {
  display: grid;
  gap: 6px;
}

.marketing-queue-card .marketing-item-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.marketing-delivery-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.marketing-delivery-status.status-pending {
  background: rgba(179, 126, 27, 0.12);
  color: #9a6612;
}

.marketing-delivery-status.status-sent {
  background: rgba(42, 131, 87, 0.12);
  color: #1f7a51;
}

.marketing-delivery-status.status-skipped {
  background: rgba(101, 91, 88, 0.12);
  color: #6d5d59;
}

.marketing-delivery-status.status-error {
  background: rgba(162, 15, 16, 0.12);
  color: var(--accent-dark);
}

.marketing-crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.marketing-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #241816;
  font: inherit;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 26px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.marketing-link-button:hover {
  color: var(--accent-dark);
}

.marketing-link-button:focus {
  outline: none;
  text-decoration: underline;
}

.marketing-item-main small,
.marketing-item-side span,
.marketing-tip-card small,
.marketing-tip-card p {
  color: var(--muted);
}

.preview-item-card .marketing-item-main strong {
  color: #241816;
  font-size: 18px;
}

.crm-preview-head strong {
  font-size: 30px;
}

.marketing-item-side {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.marketing-item-side strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.marketing-tip-card {
  display: grid;
  justify-content: start;
}

.marketing-tip-card strong {
  color: #241816;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 28px;
}

.marketing-tip-card p {
  margin: 0;
  line-height: 1.55;
}

.marketing-empty-state {
  min-height: 120px;
}

.status-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(162, 15, 16, 0.08);
  color: #2a1816;
}

.orbital-content {
  position: relative;
}

.content {
  padding: 0;
}

.hero-card,
.panel,
.client-card,
.appointment-card {
  background: rgba(255, 252, 250, 0.74);
  border: 1px solid rgba(162, 15, 16, 0.08);
  box-shadow:
    inset 0 0 32px rgba(162, 15, 16, 0.03),
    0 22px 54px rgba(48, 21, 21, 0.1);
  backdrop-filter: blur(18px);
}

.hero-card {
  border-radius: 32px;
  padding: 34px;
}

.hero-card h2,
.panel h3,
.dashboard-card-header h4,
.detail-empty-state h4,
.detail-header h4,
.client-form-section-head h4,
.detail-card h5,
.measurements-history h6,
.topbar-copy h1 {
  color: #241816;
}

.hero-copy,
.sidebar-copy,
.detail-copy,
.meta,
.status,
.calendar-summary-copy,
.measurement-history-row p,
.body-measure-empty p {
  color: rgba(72, 48, 44, 0.72);
}

.hero-copy,
.footer-label,
.eyebrow,
.panel-kicker,
.field-help-text,
.appointment-service-help,
.appointment-quick-status-copy,
.appointment-payment-copy,
.selected-services-head p,
.calendar-summary-copy,
.settings-menu-note,
.services-sync-banner,
.marketing-workflow-banner,
.marketing-sync-banner,
.time-panel-kicker {
  display: none !important;
}

.hero-metric,
.summary-card,
.dashboard-card,
.detail-card,
.client-detail-panel,
.mini-calendar-card,
.calendar-summary-card,
.appointment-meta,
.body-figure-frame,
.body-measure-row,
.measurement-pill,
.client-form-section {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(162, 15, 16, 0.08);
  color: #241816;
}

.hero-metric span,
.summary-card strong,
.calendar-summary-card strong,
.measurement-pill strong,
.body-measure-row strong,
.body-measure-empty strong,
.client-badge,
.appointment-badge {
  color: #a20f10;
}

.hero-metric small,
.summary-card small,
.dashboard-summary-card p,
.detail-card-head small,
.detail-grid small,
.detail-notes-grid small,
.measurement-pill small {
  color: rgba(123, 102, 96, 0.72);
}

.ghost-button,
.icon-button,
.search-field input,
.form-grid input,
.form-grid select,
.notes-field textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(162, 15, 16, 0.1);
  color: #241816;
}

.ghost-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.96);
}

.primary-button {
  background: linear-gradient(135deg, #a20f10 0%, #5f0c0e 100%);
  color: #fff9f7;
  box-shadow: 0 18px 36px rgba(162, 15, 16, 0.26);
}

.search-field input::placeholder,
.form-grid input::placeholder,
.notes-field textarea::placeholder {
  color: rgba(123, 102, 96, 0.42);
}

.client-card::before {
  background: linear-gradient(180deg, #d46f60, #a20f10);
}

.client-name-button {
  color: #241816;
}

.client-name-button:hover {
  color: #ffd3cb;
}

.client-badge,
.appointment-badge,
.subtle-badge {
  background: rgba(162, 15, 16, 0.08);
  border-color: rgba(162, 15, 16, 0.1);
}

.calendar-view-switch,
.calendar-column-header,
.month-day-cell,
.calendar-day-column {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(162, 15, 16, 0.08);
  color: #241816;
}

.calendar-column-header small,
.month-weekday-cell,
.mini-calendar-weekdays {
  color: rgba(123, 102, 96, 0.68);
}

.calendar-column-header strong,
.month-day-number,
.mini-calendar-toolbar strong,
.calendar-date-trigger strong,
.dashboard-month-chip strong {
  color: #a20f10;
}

.calendar-grid-slot:nth-child(2n + 1) {
  background: rgba(162, 15, 16, 0.03);
}

.month-event-chip,
.month-more-chip,
.calendar-event-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(162, 15, 16, 0.08);
  color: #241816;
}

.dashboard-inline-bar,
.dashboard-bar-track {
  background: rgba(162, 15, 16, 0.08);
}

.dashboard-inline-bar span,
.weekly-fill,
.dashboard-bar-fill {
  background: linear-gradient(135deg, #d46f60 0%, #a20f10 100%);
}

.topbar .eyebrow,
.topbar .footer-label {
  margin-bottom: 6px;
}

@keyframes soft-bounce-hover {
  0% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-3px) scale(1.03);
  }

  72% {
    transform: translateY(1px) scale(0.995);
  }

  100% {
    transform: translateY(-1px) scale(1.015);
  }
}

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(17, 17, 17, 0.12);
  --text: #111111;
  --muted: #111111;
  --shadow: 0 18px 34px rgba(17, 17, 17, 0.06);
}

body,
.orbital-shell,
.orbital-content {
  background: #ffffff !important;
  color: #111111 !important;
}

.aura,
.stars {
  display: none !important;
}

.topbar,
.panel,
.client-card,
.appointment-card,
.hero-card,
.hero-metric,
.summary-card,
.dashboard-card,
.detail-card,
.client-detail-panel,
.mini-calendar-card,
.calendar-summary-card,
.appointment-meta,
.body-figure-frame,
.body-measure-row,
.measurement-pill,
.client-form-section,
.client-table,
.client-table-header,
.client-table-row,
.calendar-view-switch,
.calendar-column-header,
.month-day-cell,
.calendar-day-column,
.month-event-chip,
.month-more-chip,
.calendar-event-card,
.services-sidebar-card,
.services-main-card,
.service-browser-embedded,
.selected-services-panel,
.client-browser-embedded,
.selected-client-filled-card,
.service-result-card,
.selected-service-card,
.workflow-card,
.marketing-item-card,
.marketing-tip-card,
.dashboard-summary-card,
.catalog-form,
.datetime-panel,
.datetime-calendar,
.datetime-time-panel,
.appointment-form-layout,
.client-selection-panel,
.appointment-details-panel,
.appointment-side-stack,
.services-catalog-layout,
.services-category-list-card,
.services-forms-grid,
.marketing-workflow-layout,
.marketing-workflow-form,
.marketing-workflows-list,
.settings-menu {
  background: #ffffff !important;
  background-image: none !important;
  backdrop-filter: none !important;
  border-color: rgba(17, 17, 17, 0.1) !important;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05) !important;
}

.calendar-grid-slot:nth-child(2n + 1),
.dashboard-inline-bar,
.dashboard-bar-track {
  background: #ffffff !important;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
small,
label,
strong,
.meta,
.status,
.detail-copy,
.measurement-history-row p,
.body-measure-empty p,
.summary-card small,
.dashboard-summary-card p,
.detail-card-head small,
.detail-grid small,
.detail-notes-grid small,
.measurement-pill small,
.calendar-column-header small,
.month-weekday-cell,
.mini-calendar-weekdays,
.panel-kicker,
.footer-label,
.eyebrow,
.search-label,
.client-table-heading,
.client-table-cell,
.client-name-button,
.calendar-event-card span,
.calendar-event-card small,
.selected-service-card-copy span,
.selected-service-card-copy small,
.service-result-card small,
.workflow-card-top small,
.workflow-card-meta,
.workflow-card-meta span {
  color: #111111 !important;
}

.sidebar,
.sidebar-copy,
.status-pill,
.status-dot {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(17, 17, 17, 0.1) !important;
}

.status-dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  border-radius: 50% !important;
  background: #63d38f !important;
  border: 0 !important;
  box-shadow: 0 0 0 4px rgba(99, 211, 143, 0.18) !important;
}

.client-card::before,
.dashboard-inline-bar span,
.weekly-fill,
.dashboard-bar-fill {
  background: linear-gradient(135deg, #d96d6d 0%, #a20f10 100%) !important;
}

.nav-item,
.ghost-button,
.primary-button,
.icon-button,
.workflow-audience-button,
.service-category-chip,
.table-name-button,
.calendar-date-nav,
.calendar-date-trigger,
.settings-trigger,
.workflow-step-button,
.client-badge,
.appointment-badge,
.subtle-badge {
  border-radius: 999px !important;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    background 180ms ease,
    border-color 180ms ease !important;
  box-shadow: none !important;
}

.nav-item,
.primary-button,
.workflow-audience-button.active,
.service-category-chip.active,
.table-name-button,
.calendar-date-trigger,
.settings-trigger {
  background: linear-gradient(135deg, #c54a4a 0%, #a20f10 52%, #6f0b0c 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(162, 15, 16, 0.26) !important;
  box-shadow: none !important;
}

.ghost-button,
.icon-button,
.workflow-audience-button,
.service-category-chip,
.calendar-date-nav,
.workflow-step-button,
.client-badge,
.appointment-badge,
.subtle-badge {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%) !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
}

.nav-item:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.primary-button:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.workflow-audience-button:hover:not(:disabled),
.service-category-chip:hover:not(:disabled),
.table-name-button:hover:not(:disabled),
.calendar-date-nav:hover:not(:disabled),
.calendar-date-trigger:hover:not(:disabled),
.settings-trigger:hover:not(:disabled),
.workflow-step-button:hover:not(:disabled) {
  animation: soft-bounce-hover 180ms ease-out forwards;
  filter: brightness(1.02);
  box-shadow: none !important;
}

.danger-ghost-button {
  background: linear-gradient(135deg, #fff3f3 0%, #ffe6e6 100%) !important;
  color: #7f0c0d !important;
  border: 1px solid rgba(162, 15, 16, 0.22) !important;
}

body *,
body *::before,
body *::after {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.dashboard-status-label {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  display: inline-flex;
  align-items: center;
}

.dashboard-status-label.status-booked {
  color: #7f0c0d !important;
}

.dashboard-status-label.status-completed {
  color: #21653a !important;
}

.dashboard-status-label.status-cancelled {
  color: #5a4d49 !important;
}

.dashboard-status-label.status-no_show {
  color: #8a5700 !important;
}

.dashboard-bar-track {
  background: #f2f2f2 !important;
}

.dashboard-bar-fill.status-booked {
  background: #c74c4c !important;
}

.dashboard-bar-fill.status-completed {
  background: #6abf8b !important;
}

.dashboard-bar-fill.status-cancelled {
  background: #9a8f8c !important;
}

.dashboard-bar-fill.status-no_show {
  background: #d39a32 !important;
}

.dashboard-inline-bar span,
.weekly-fill,
.dashboard-bar-fill {
  color: transparent !important;
}

.settings-menu,
.settings-menu button,
.settings-gear-button,
.settings-gear-button:hover,
.settings-gear-button.active {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  color: #111111 !important;
  border-radius: 18px !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.settings-gear-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  fill: #111111 !important;
  background: transparent !important;
  border: 0 !important;
}

.settings-menu-dropdown {
  background: #ffffff !important;
  backdrop-filter: none !important;
}

.whatsapp-setup-grid {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.whatsapp-setup-status {
  display: grid;
  gap: 16px;
  align-content: start;
}

.whatsapp-setup-card .dashboard-card-header {
  align-items: flex-start;
  margin-bottom: 18px;
}

.whatsapp-setup-card .panel-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.whatsapp-setup-intro {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 244, 0.98) 100%);
}

.whatsapp-setup-intro-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-setup-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.72) !important;
}

.channel-brand-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 10px;
  mix-blend-mode: multiply;
}

.whatsapp-brand-icon {
  width: 38px;
  height: 38px;
}

.whatsapp-setup-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5f8eb 0%, #ccefd8 100%);
  border: 1px solid rgba(99, 211, 143, 0.35);
  color: #1f6e3d !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.whatsapp-status-card {
  min-width: 0;
  min-height: 132px;
  text-align: left;
  display: grid;
  align-content: start;
}

.whatsapp-status-card strong {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.2;
  word-break: break-word;
}

.whatsapp-inline-status {
  margin-top: 0;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: rgba(249, 247, 246, 0.95);
  display: flex;
  align-items: center;
}

.whatsapp-setup-qr {
  display: grid;
  min-height: 100%;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 246, 0.98) 100%);
  padding: 28px;
}

.whatsapp-qr-shell {
  width: 100%;
  display: grid;
  gap: 20px;
}

.whatsapp-qr-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.whatsapp-qr-head small {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.52) !important;
}

.whatsapp-qr-head strong {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 34px;
  line-height: 1;
  color: #111111 !important;
}

.whatsapp-qr-note {
  justify-self: end;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.68) !important;
  text-align: right;
}

.whatsapp-qr-stage {
  min-height: 320px;
  border: 1px dashed rgba(17, 17, 17, 0.14);
  border-radius: 28px;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 24px;
}

.whatsapp-qr-stage .empty-state {
  max-width: 320px;
  text-align: center;
  color: rgba(17, 17, 17, 0.58) !important;
}

.whatsapp-qr-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  padding: 10px;
  border-radius: 24px;
  background: #ffffff;
}

@media (max-width: 1100px) {
  .whatsapp-setup-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-qr-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .whatsapp-qr-note {
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .whatsapp-status-cards {
    grid-template-columns: 1fr;
  }

  .whatsapp-setup-card .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .whatsapp-qr-head strong {
    font-size: 28px;
  }

  .whatsapp-qr-stage {
    min-height: 280px;
    padding: 18px;
  }
}

.service-category-chip {
  background: var(--category-bg, #ffffff) !important;
  color: var(--category-text, #111111) !important;
  border-color: var(--category-border, rgba(17, 17, 17, 0.12)) !important;
}

.service-category-chip.active {
  background: linear-gradient(135deg, var(--category-bg-active, rgba(162, 15, 16, 0.12)) 0%, #ffffff 100%) !important;
  color: var(--category-accent, #a20f10) !important;
  border-color: var(--category-border, rgba(17, 17, 17, 0.12)) !important;
}

.service-result-card {
  background: var(--category-bg, #ffffff) !important;
  border-color: var(--category-border, rgba(17, 17, 17, 0.12)) !important;
  color: #111111 !important;
}

.service-result-card.active {
  background: linear-gradient(135deg, var(--category-bg-active, rgba(162, 15, 16, 0.12)) 0%, #ffffff 100%) !important;
  border-color: var(--category-border, rgba(17, 17, 17, 0.12)) !important;
}

.service-result-card.active strong,
.service-result-card strong,
.service-result-category {
  color: var(--category-accent, #111111) !important;
}

.selected-service-card {
  background: linear-gradient(180deg, var(--category-bg, #ffffff) 0%, #ffffff 100%) !important;
  border-color: var(--category-border, rgba(17, 17, 17, 0.12)) !important;
  box-shadow: inset 4px 0 0 var(--category-accent, #a20f10) !important;
}

.selected-service-card-copy strong {
  color: var(--category-accent, #111111) !important;
}

.calendar-event-card {
  background: linear-gradient(135deg, var(--category-bg-start, rgba(162, 15, 16, 0.12)) 0%, #ffffff 100%) !important;
  border-color: var(--category-border, rgba(17, 17, 17, 0.12)) !important;
  box-shadow: inset 4px 0 0 var(--category-accent, #a20f10) !important;
}

.calendar-event-time,
.calendar-event-card strong {
  color: var(--category-accent, #111111) !important;
}

.calendar-event-card span,
.calendar-event-card small,
.selected-service-card-copy span,
.selected-service-card-copy small {
  color: #111111 !important;
}

.calendar-grid-slot {
  background: #ffffff !important;
}

.calendar-grid-slot:nth-child(2n + 1) {
  background: #fbf4f4 !important;
}

.calendar-grid-slot:nth-child(2n) {
  background: #ffffff !important;
}

.calendar-grid-slot:hover,
.calendar-grid-slot:nth-child(2n + 1):hover,
.calendar-grid-slot:nth-child(2n):hover {
  background: #f3dede !important;
}

.nav-item.active,
.workflow-audience-button.active,
.service-category-chip.active,
.table-name-button.active {
  color: #ffffff !important;
}

.search-field input,
.form-grid input,
.form-grid select,
.notes-field textarea,
.search-input,
.field-input,
.field-select,
.field-textarea {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  border-radius: 22px !important;
}

.search-field input::placeholder,
.form-grid input::placeholder,
.notes-field textarea::placeholder,
.search-input::placeholder,
.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(17, 17, 17, 0.5) !important;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topbar-nav {
    justify-content: flex-start;
  }

  .topbar-status {
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .orbital-shell {
    padding: 16px;
  }

  .topbar {
    padding: 18px;
    border-radius: 24px;
  }

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

  .topbar-logo {
    width: 64px;
    height: 64px;
  }

  .topbar-copy h1 {
    font-size: 22px;
  }

  .topbar-nav {
    width: 100%;
  }

  .nav-item {
    flex: 1 1 calc(33.333% - 8px);
    text-align: center;
    justify-content: center;
  }

  .hero-card {
    padding: 24px;
  }
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.onboarding-sidebar-card,
.onboarding-main-card,
.onboarding-preview-card,
.onboarding-next-step-card,
.public-intake-note-card,
.public-intake-form {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.onboarding-sidebar-card,
.onboarding-main-card {
  padding: 24px;
}

.onboarding-sidebar-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.onboarding-logo-shell {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #fff 0%, #fbf5f1 100%);
}

.onboarding-logo,
.public-intake-logo {
  width: 100%;
  max-width: 164px;
  height: auto;
  display: block;
}

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

.onboarding-sidebar-copy small,
.onboarding-preview-card small,
.onboarding-next-step-card small,
.public-intake-note-card small,
.public-intake-form-head small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent);
}

.onboarding-sidebar-copy strong,
.onboarding-preview-card strong,
.onboarding-next-step-card strong,
.public-intake-note-card strong {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 30px;
  line-height: 0.95;
  color: #1d1312;
}

.onboarding-sidebar-copy p,
.onboarding-preview-card p,
.onboarding-next-step-card p,
.public-intake-note-card p,
.public-intake-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.onboarding-share-actions {
  display: grid;
  gap: 12px;
}

.onboarding-main-card {
  display: grid;
  gap: 18px;
}

.onboarding-main-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.onboarding-main-head h4,
.public-intake-form-head h2,
.public-intake-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 42px;
  line-height: 0.95;
}

.onboarding-link-field input {
  font-size: 14px;
}

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

.onboarding-preview-card,
.onboarding-next-step-card {
  padding: 20px;
}

.public-intake-page {
  min-height: 100vh;
  padding: 18px 14px 32px;
  background:
    radial-gradient(circle at top right, rgba(162, 15, 16, 0.08), transparent 26%),
    linear-gradient(180deg, #fffefd 0%, #f7efea 100%);
}

.public-intake-body .aura,
.public-intake-body .stars {
  display: none;
}

.public-intake-shell {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.public-intake-hero,
.public-intake-form {
  background: #fff;
}

.public-intake-hero {
  display: grid;
  gap: 18px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
}

.public-intake-brand {
  display: grid;
  gap: 14px;
}

.public-intake-logo-shell {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff 0%, #fbf3ef 100%);
}

.public-intake-form {
  padding: 22px 18px;
  display: grid;
  gap: 18px;
  border-radius: 26px;
}

.public-intake-form-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.public-intake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.public-intake-span-2 {
  grid-column: span 1;
}

.public-intake-form .catalog-field input {
  min-height: 58px;
  border-radius: 18px;
  font-size: 16px;
}

.public-intake-consent {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #fcf4ef 100%);
}

.public-intake-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffdfb;
}

.public-intake-section-head {
  display: grid;
  gap: 6px;
}

.public-intake-section-head small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent);
}

.public-intake-section-head strong {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 30px;
  line-height: 0.95;
  color: #1d1312;
}

.public-intake-info-panel {
  background: linear-gradient(180deg, #fffefd 0%, #fcf7f3 100%);
}

.public-intake-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.public-intake-consent strong,
.public-intake-success strong {
  display: block;
  margin-bottom: 6px;
}

.public-intake-consent p,
.public-intake-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.public-intake-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-intake-info-chip {
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff8f4;
  color: var(--muted);
  font-size: 13px;
}

.public-intake-actions {
  justify-content: stretch;
}

.public-intake-success {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(99, 211, 143, 0.28);
  background: #f6fff9;
}

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

.public-intake-step-pill {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff9f6;
  text-align: center;
}

.public-intake-step-pill strong {
  font-size: 18px;
  color: var(--accent);
}

.public-intake-step-pill span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.public-intake-submit {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  font-size: 16px;
}

@media (max-width: 760px) {
  .public-intake-form-head {
    flex-direction: column;
    align-items: start;
  }

  .public-intake-step-pill {
    padding: 10px 8px;
  }

  .public-intake-hero h1,
  .public-intake-form-head h2 {
    font-size: 34px;
  }

  .public-intake-section-head strong {
    font-size: 28px;
  }
}

.client-smart-filters-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.client-smart-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-smart-filters-head small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--accent);
}

.client-smart-filters-head strong {
  color: var(--text);
  font-size: 16px;
}

.client-smart-filter-chips,
.client-inline-tags,
.client-detail-smart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-table-tags-cell {
  min-width: 0;
  position: relative;
}

.smart-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff9f6;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.smart-tag-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 11px;
}

.smart-filter-chip {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.smart-filter-chip:hover {
  transform: translateY(-1px);
}

.smart-filter-chip.active {
  border-color: rgba(162, 15, 16, 0.32);
  background: #f7e5df;
}

.static-chip {
  cursor: default;
}

.tone-accent {
  background: #f9e4e2;
  color: #8a1112;
  border-color: #efc6c2;
}

.tone-success {
  background: #ebfaf0;
  color: #23754d;
  border-color: #b9e7cb;
}

.tone-cool {
  background: #eef5ff;
  color: #285b9f;
  border-color: #cadcf8;
}

.tone-warm {
  background: #fff4e8;
  color: #9a5a18;
  border-color: #f2d7b5;
}

.tone-alert {
  background: #fff0ef;
  color: #a4432a;
  border-color: #f1c5b7;
}

.tone-neutral {
  background: #f6f1ee;
  color: #6f5b56;
  border-color: #e3d7d1;
}

.client-detail-smart-tags {
  margin-top: 14px;
}

.client-inline-tags {
  width: 100%;
  justify-content: flex-start;
}

.client-inline-tags .smart-tag-chip {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-tags-menu {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
}

.client-tags-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  width: min(180px, 100%);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.client-tags-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(162, 15, 16, 0.22);
  background: #fff7f3;
}

.client-tags-trigger span,
.client-tags-trigger strong {
  white-space: nowrap;
}

.client-tags-trigger strong {
  color: var(--accent-dark);
  font-size: 12px;
}

.client-tags-dropdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(231, 217, 209, 0.88);
  background: #fffdfb;
}

.client-tags-dropdown.hidden-section {
  display: none;
}

.client-tags-dropdown .smart-tag-chip {
  cursor: pointer;
}

.app-legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.app-legal-footer p,
.app-legal-footer nav,
.public-intake-legal-footer p,
.public-intake-legal-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.app-legal-footer strong {
  color: var(--text);
}

.app-legal-footer a,
.public-intake-legal-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.app-legal-footer a:hover,
.public-intake-legal-footer a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-intake-legal-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 12px 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.public-intake-legal-footer nav {
  justify-content: center;
  gap: 14px;
}

.legal-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
  background: #fff;
}

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 54px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.legal-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.95;
}

.legal-lead {
  max-width: 650px;
  margin: 24px 0 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-notice {
  margin-bottom: 42px;
  padding: 18px 20px;
  border: 1px solid #ead9d1;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: #fffaf7;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.legal-document {
  display: grid;
  gap: 30px;
}

.legal-document section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-document p {
  margin: 0;
}

.legal-document ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-document strong {
  color: var(--text);
}

.legal-page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 960px) {
  .client-smart-filters-head {
    flex-direction: column;
    align-items: start;
  }

  .client-table-tags-cell {
    min-width: 0;
  }

  .client-tags-trigger {
    width: 100%;
  }

  .app-legal-footer,
  .legal-page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
