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

.metric {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.metric-title {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.metric-value {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 800;
}

.page-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.24;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.helper-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.page-inline-tip {
  margin: 0;
  border: 1px dashed #ead8c3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
  padding: 10px 12px;
}

.row > * {
  min-width: 0;
}

.helper-text strong,
.helper-text code,
.helper-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-card h3,
.client-card h3 {
  margin: 0;
  font-size: 15px;
}

.service-card p,
.client-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-login-grid {
  display: grid;
  gap: 8px;
}

.auth-vkid-slot {
  min-height: 44px;
}

.auth-vkid-slot:empty {
  display: none;
}

.services-groups {
  gap: 14px;
}

.services-group {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 10px;
}

.services-group + .services-group {
  border-top: 1px dashed #ead8c3;
  padding-top: 14px;
}

.services-group-head {
  display: grid;
  gap: 3px;
}

.services-group-title {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
  color: #4d3a2d;
}

.services-group-hint {
  margin: 0;
  font-size: 12px;
  color: #9a8776;
}

.services-group-list {
  gap: 10px;
}

.services-group-empty {
  margin: 0;
}

.service-row {
  border-color: #efe8de;
  gap: 8px;
}

.service-row-inactive {
  border-color: #e7e0d8;
  background: linear-gradient(180deg, #fcfaf7 0%, #f7f2ec 100%);
}

.service-row-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.service-row-summary-main {
  display: grid;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}

.service-row-summary-title {
  font-size: 21px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-row-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.service-row-summary-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff2e4;
  color: #99532c;
  min-height: 24px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
}

.service-row-summary-status {
  background: #edf8f1;
  color: #2f7a4e;
}

.service-row-summary-status-inactive {
  background: #f3f1ed;
  color: #7c756c;
}

.service-row-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  justify-content: stretch;
  margin-top: 6px;
}

.service-row-action-row .btn {
  min-height: 34px;
  width: 100%;
  white-space: nowrap;
}

.service-row-edit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-row-edit {
  border-top: 1px dashed #ead8c3;
  padding-top: 8px;
  margin-top: 4px;
}

.service-active-field {
  align-items: flex-start;
}

.service-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  cursor: pointer;
  align-self: start;
}

.service-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-switch-ui {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #dfe3e9;
  border: 1px solid #cfd5df;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.service-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-fast);
}

.service-switch input:checked + .service-switch-ui {
  background: linear-gradient(140deg, #ffbf72 0%, #ff9f31 100%);
  border-color: #ff9f31;
}

.service-switch input:checked + .service-switch-ui::after {
  transform: translateX(20px);
}

.profile-drilldown-home {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 222, 183, 0.45) 0 18%, transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 247, 236, 0.76) 100%);
  border-color: rgba(255, 211, 157, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(39, 28, 16, 0.1);
}

.profile-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ffd8ad;
  background: rgba(255, 255, 255, 0.76);
}

.profile-brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(140deg, #ff980f 0%, #ff7600 100%);
}

.profile-brand-texts {
  display: grid;
  gap: 1px;
}

.profile-brand-title {
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.profile-brand-subtitle {
  font-size: 10px;
  color: #8f816f;
  line-height: 1;
}

.profile-drilldown-subtitle {
  color: #717171;
  letter-spacing: -0.003em;
}

.profile-drilldown-list {
  display: grid;
  gap: 10px;
}

.profile-drilldown-item {
  position: relative;
  width: 100%;
  border: 1px solid rgba(234, 220, 202, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(37, 30, 20, 0.08);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.profile-drilldown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffd9af 0%, #ff8a00 100%);
}

.profile-drilldown-item:hover {
  border-color: #ffc27b;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 30, 20, 0.12);
}

.profile-drilldown-item-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-drilldown-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #985100;
  background: linear-gradient(180deg, #fff6ea 0%, #ffe6c7 100%);
  border: 1px solid #ffd5a4;
  flex: 0 0 auto;
}

.profile-drilldown-item-icon-svg {
  width: 18px;
  height: 18px;
}

.profile-drilldown-item-texts {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-drilldown-item-label {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.profile-drilldown-item-hint {
  color: #717171;
  font-size: 11px;
  line-height: 1.2;
}

.profile-drilldown-item-primary {
  border-color: #ffca8f;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 240, 221, 0.88) 100%);
  box-shadow: 0 13px 24px rgba(255, 138, 0, 0.17);
}

.profile-drilldown-item-primary .profile-drilldown-item-label {
  font-size: 16px;
  font-weight: 700;
}

.profile-drilldown-item-arrow {
  font-size: 20px;
  color: #9a5800;
  line-height: 1;
  flex: 0 0 auto;
}

.profile-drilldown-item:active {
  transform: translateY(1px);
}

.profile-drilldown-section {
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(232, 222, 210, 0.92);
  backdrop-filter: blur(8px);
}

.profile-drilldown-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffdcb5 0%, #ff8a00 100%);
  pointer-events: none;
}

.profile-drilldown-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-drilldown-tip {
  margin: 0 0 6px;
  color: #7a6f61;
}

.profile-drilldown-head-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.profile-qr-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed #ead7c2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ee 100%);
}

.profile-qr-image {
  width: min(72vw, 280px);
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #f0ddc8;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(44, 28, 11, 0.08);
}

.profile-qr-link {
  word-break: break-word;
  line-height: 1.35;
}

.client-card {
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.client-card:hover {
  border-color: #ffcb95;
  transform: translateY(-1px);
}

.client-card-active {
  border-color: #ffba68;
  background: linear-gradient(180deg, #fffdf9 0%, #fff3e3 100%);
}

#app-header[data-route="dashboard"] .header-wrap {
  display: none;
}

#app-header[data-route="analytics"] .header-wrap {
  display: none;
}

.page-content[data-route="dashboard"] {
  padding-top: 10px;
}

.page-content[data-route="analytics"] {
  padding-top: 10px;
}

.dashboard-hero-card {
  position: relative;
  border: 1px solid rgba(245, 208, 200, 0.52);
  border-radius: 28px;
  padding: 16px 14px 12px;
  margin-bottom: 10px;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.18) 0 28%, transparent 29%),
    linear-gradient(168deg, rgba(232, 93, 36, 0.96) 0%, rgba(224, 90, 37, 0.94) 58%, rgba(176, 64, 16, 0.92) 100%);
  color: #ffffff;
  box-shadow:
    0 16px 28px rgba(176, 64, 16, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  overflow: hidden;
  isolation: isolate;
}

.dashboard-hero-card::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.dashboard-hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 174px;
  height: 174px;
  transform: translate(36%, -40%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.34) 0 30%, rgba(255, 255, 255, 0.08) 62%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-hero-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-hero-greeting {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  color: rgba(255, 244, 237, 0.88);
  font-weight: 600;
}

.dashboard-hero-name {
  margin: 0;
  font-size: clamp(34px, 7.6vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.dashboard-hero-date {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.2;
  color: rgba(255, 244, 237, 0.9);
  font-weight: 600;
  text-transform: capitalize;
}

.dashboard-add-booking-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  flex: 0 0 52px;
  aspect-ratio: 1 / 1;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 233, 0.62);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.16) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
  color: #ffffff;
  font-size: 0;
  line-height: 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.dashboard-add-booking-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.33) 0%, rgba(255, 255, 255, 0.2) 100%);
  box-shadow: 0 8px 14px rgba(177, 63, 15, 0.22);
}

.dashboard-add-booking-plus {
  display: inline-block;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.dashboard-stats-grid {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(237, 224, 212, 0.95);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 248, 242, 0.9) 0%, rgba(255, 248, 242, 0.78) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.dashboard-stat-item {
  min-height: 78px;
  padding: 9px 8px 8px;
  display: grid;
  gap: 1px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.dashboard-stat-item + .dashboard-stat-item {
  border-left: 1px solid #efe3d7;
}

.dashboard-stat-item strong {
  font-size: clamp(18px, 4.8vw, 33px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #221f1b;
}

.dashboard-stat-item span {
  font-size: 11px;
  line-height: 1.15;
  color: #8f8275;
  font-weight: 400;
}

.dashboard-stat-accent strong {
  color: #df551f;
}

.dashboard-booking-swipe-host {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  --swipe-progress-left: 0;
  --swipe-progress-right: 0;
  touch-action: pan-y;
}

.dashboard-booking-swipe-host + .dashboard-booking-swipe-host {
  margin-top: 0;
}

.dashboard-day-bookings-list {
  display: grid;
  gap: 8px;
}

.dashboard-booking-swipe-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
}

.dashboard-booking-swipe-bg-left {
  justify-content: flex-start;
  background: linear-gradient(90deg, #f08a4a 0%, #e2642a 60%, #cc4b12 100%);
  opacity: calc(0.18 + (var(--swipe-progress-right) * 0.82));
}

.dashboard-booking-swipe-bg-right {
  justify-content: flex-end;
  background: linear-gradient(90deg, #7bcc95 0%, #45b872 54%, #2f9d5f 100%);
  opacity: calc(0.18 + (var(--swipe-progress-left) * 0.82));
}

.dashboard-booking-swipe-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.24);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.dashboard-booking-swipe-text {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-booking-swipe-bg-left .dashboard-booking-swipe-text {
  max-width: 156px;
}

.dashboard-booking-swipe-bg-right .dashboard-booking-swipe-text {
  max-width: 132px;
  text-align: right;
}

.dashboard-booking-card {
  border-color: var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.dashboard-booking-swipe-host .dashboard-booking-card {
  border-radius: var(--radius-md);
  margin: 0;
}

.dashboard-booking-swipe-host.swiping .dashboard-booking-card {
  transition: none;
}

.dashboard-booking-swipe-host.swipe-ready-left .dashboard-booking-swipe-bg-right,
.dashboard-booking-swipe-host.swipe-ready-right .dashboard-booking-swipe-bg-left {
  opacity: 1;
}

.dashboard-booking-swipe-host.is-processing {
  opacity: 0.75;
  pointer-events: none;
}

.dashboard-booking-main {
  display: grid;
  gap: 5px;
}

.dashboard-booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-booking-client {
  margin: 0;
  font-size: clamp(14px, 4.3vw, 17px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-main);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.dashboard-booking-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid #d24f1b;
  white-space: nowrap;
}

.dashboard-booking-service {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  color: #b09880;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.dashboard-booking-group-members {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  color: #8c7865;
  overflow-wrap: anywhere;
}

.dashboard-booking-meta {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-booking-price {
  margin: 1px 0 0;
  font-size: clamp(16px, 4.8vw, 19px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-main);
  font-weight: 600;
}

.dashboard-booking-badges {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-booking-status,
.dashboard-booking-payment-status {
  white-space: nowrap;
}

.dashboard-booking-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard-booking-actions .btn {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.1;
  min-width: 84px;
  flex: 0 0 auto;
  width: auto;
}

.dashboard-booking-actions .btn-ghost {
  background: var(--bg-main);
  border-color: var(--border);
  color: var(--text-muted);
  font-weight: 400;
}

.dashboard-booking-actions .btn-primary {
  font-weight: 600;
  box-shadow: none;
}

.dashboard-client-search-field {
  gap: 8px;
}

.dashboard-create-booking-modal {
  position: relative;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  background: var(--bg-surface);
  box-shadow: 0 14px 28px rgba(54, 34, 17, 0.08);
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

.dashboard-swipe-complete-modal {
  gap: 10px;
}

.dashboard-swipe-complete-title {
  font-size: clamp(18px, 4.8vw, 21px);
  line-height: 1.12;
}

.dashboard-swipe-complete-meta {
  margin: 0;
}

.dashboard-swipe-complete-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.reschedule-modal {
  gap: 10px;
}

.reschedule-request-block {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdf9;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.reschedule-request-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-main);
  font-weight: 600;
}

.reschedule-request-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.reschedule-request-hint {
  margin: 0;
  line-height: 1.35;
}

.reschedule-modal-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.reschedule-modal-actions .btn {
  min-height: 38px;
}

@media (max-width: 460px) {
  .reschedule-modal-actions .btn {
    flex: 1 1 calc(50% - 4px);
  }

  .reschedule-request-label {
    font-size: 13px;
  }
}

.dashboard-group-members-list {
  display: grid;
  gap: 6px;
}

.dashboard-group-members-list-cards {
  max-height: min(56vh, 460px);
  overflow: auto;
  display: grid;
  grid-auto-rows: max-content;
  gap: 10px;
  padding-right: 2px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.dashboard-group-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffdf9;
}

.dashboard-group-member-name {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.2;
}

.dashboard-booking-card-group-item {
  box-shadow: none;
  background: #fffcf8;
  min-height: 134px;
}

.dashboard-group-members-list-cards .dashboard-booking-swipe-host {
  margin: 0;
  isolation: isolate;
  min-height: max-content;
}

.dashboard-booking-card-group-item .dashboard-booking-main {
  gap: 6px;
}

.dashboard-booking-card-group-item .dashboard-booking-actions {
  border-top: 1px solid rgba(231, 214, 197, 0.74);
  padding-top: 6px;
}

.dashboard-booking-card-group-item .dashboard-booking-actions .btn {
  min-height: 30px;
  font-size: 10px;
  min-width: 76px;
}

.dashboard-create-booking-handle {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #dfd0c2;
  margin: 8px auto 6px;
}

.dashboard-create-booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
}

.dashboard-create-booking-title {
  font-size: clamp(19px, 4.8vw, 23px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.dashboard-create-booking-section {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  background: transparent;
}

.dashboard-create-booking-head + .dashboard-create-booking-section {
  border-top: none;
}

.dashboard-create-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 8px;
}

.dashboard-create-booking-field {
  margin-bottom: 0;
}

.dashboard-create-booking-section-title,
.dashboard-create-booking-field label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  font-weight: 600;
  color: #b09880;
}

.dashboard-create-booking-section-title {
  margin: 0 0 8px;
}

.dashboard-create-booking-field input:not([type="checkbox"]):not([type="radio"]),
.dashboard-create-booking-field select,
.dashboard-create-booking-field textarea {
  background: #fffdf9;
  border-color: var(--border);
  border-radius: 10px;
  min-height: 40px;
  font-size: 15px;
  padding: 9px 12px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.dashboard-client-search-input {
  width: 100%;
  font-size: 15px;
  background: #fffdf9;
  border-color: var(--border);
}

.dashboard-client-select {
  width: 100%;
  min-height: 40px;
  max-height: 40px;
  appearance: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffdf9;
  padding: 0 12px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
}

.dashboard-client-select:disabled {
  background: #f8f1e9;
}

.dashboard-client-select option {
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text-main);
}

.dashboard-client-hint {
  margin: 0;
  color: #b09880;
  font-size: 11px;
}

.dashboard-create-client-btn {
  justify-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.dashboard-slots-wrap {
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: 58px;
  background: transparent;
}

.dashboard-slots-wrap .helper-text {
  margin: 0;
  font-size: 12px;
  color: #8f7860;
}

.dashboard-slots-wrap .slot-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-slots-wrap .slot-chip {
  background: #fff7ee;
  border-color: #e8d5c5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #7a5c46;
  min-height: 34px;
  padding: 6px 8px;
}

.dashboard-slots-wrap .slot-chip.active {
  background: #ffeadd;
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
}

.dashboard-slots-wrap .slot-chip.disabled {
  background: #f4ece4;
  color: #c0a890;
  opacity: 1;
  text-decoration: line-through;
}

.dashboard-create-booking-date-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.dashboard-create-booking-date-time input {
  min-height: 44px;
  border: 1.5px solid #e4d1be;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff8f1 100%);
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #2a1c12;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(54, 34, 17, 0.04);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.dashboard-create-booking-date-time input:focus {
  border-color: rgba(224, 90, 37, 0.6);
  box-shadow:
    0 0 0 3px rgba(224, 90, 37, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#dashboard-selected-time {
  cursor: default;
  color: #8b725b;
}

#dashboard-selected-time:not(:placeholder-shown) {
  border-color: rgba(224, 90, 37, 0.45);
  background: linear-gradient(180deg, #fff7ef 0%, #fff1e4 100%);
  color: #b14618;
}

#dashboard-selected-time::placeholder {
  color: #b39a83;
}

#dashboard-booking-date {
  letter-spacing: 0.01em;
}

#dashboard-booking-date::-webkit-calendar-picker-indicator {
  opacity: 0.78;
  cursor: pointer;
  filter: sepia(14%) saturate(125%) hue-rotate(-10deg);
}

.dashboard-service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-service-card {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 11px 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fffdf9;
  color: var(--text-main);
  text-align: left;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.dashboard-service-card:focus-visible {
  outline: 2px solid rgba(224, 90, 37, 0.35);
  outline-offset: 1px;
}

.dashboard-service-card.is-active {
  border-color: var(--accent);
  background: #fff9f3;
  box-shadow: 0 6px 12px rgba(176, 64, 16, 0.08);
}

.dashboard-service-card-dot {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #d2baa2;
  background: transparent;
}

.dashboard-service-card.is-active .dashboard-service-card-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.dashboard-service-card-title {
  font-size: 13px;
  line-height: 1.12;
  font-weight: 600;
  padding-left: 12px;
  word-break: break-word;
}

.dashboard-service-card-meta {
  font-size: 11px;
  color: #8f7660;
  padding-left: 12px;
}

.dashboard-service-card-price {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--text-main);
  padding-left: 12px;
}

.dashboard-service-card.is-active .dashboard-service-card-title,
.dashboard-service-card.is-active .dashboard-service-card-price {
  color: var(--accent-strong);
}

.dashboard-service-select-hidden {
  display: none;
}

.dashboard-create-booking-close {
  appearance: none;
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffaf4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.dashboard-create-booking-close::before,
.dashboard-create-booking-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.8px;
  border-radius: 999px;
  background: #c3ae9a;
}

.dashboard-create-booking-close::before {
  transform: rotate(45deg);
}

.dashboard-create-booking-close::after {
  transform: rotate(-45deg);
}

.dashboard-create-booking-actions {
  border-top: 1px solid var(--border);
  padding: 10px 12px 12px;
  background: #fff8f2;
  justify-content: stretch;
  gap: 0;
}

.dashboard-create-booking-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.dashboard-create-booking-actions .btn-primary {
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 600;
}

.dashboard-empty-bookings {
  border-style: dashed;
  border-color: #ead9c7;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.dashboard-empty-bookings .helper-text {
  text-align: center;
}

.dashboard-empty-bookings .btn {
  min-height: 42px;
  border-radius: 999px;
  border-color: #f1cda8;
  background: #fff1e3;
  color: #d95e23;
  font-weight: 800;
  padding: 9px 16px;
}

.dashboard-bookings-head {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-bookings-toggle {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 10px;
  white-space: nowrap;
}

.dashboard-collapsed-bookings {
  border-style: dashed;
  border-color: #e6d8c8;
  background: #fff9f3;
}

.dashboard-collapsed-bookings .helper-text {
  margin: 0;
  text-align: center;
}

.coach-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.coach-tour-dim {
  position: absolute;
  inset: 0;
  background: rgba(34, 22, 13, 0.58);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.coach-tour-highlight {
  position: fixed;
  border-radius: 16px;
  border: 2px solid rgba(255, 167, 112, 0.9);
  box-shadow:
    0 0 0 9999px rgba(27, 18, 10, 0.55),
    0 10px 24px rgba(38, 24, 11, 0.26);
  pointer-events: none;
  transition:
    top 0.2s ease,
    left 0.2s ease,
    width 0.2s ease,
    height 0.2s ease;
}

.coach-tour-card {
  position: fixed;
  width: min(320px, calc(100vw - 24px));
  background: #fffaf5;
  border: 1px solid #f0dcc8;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(37, 24, 12, 0.22);
  pointer-events: auto;
}

.coach-tour-step {
  margin: 0;
  font-size: 11px;
  line-height: 1.1;
  color: #a7896f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coach-tour-title {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.2;
  color: #2a1e14;
  font-weight: 700;
}

.coach-tour-text {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.33;
  color: #654b38;
}

.coach-tour-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.coach-tour-actions .btn {
  min-height: 34px;
  border-radius: 10px;
  font-size: 12px;
  padding: 7px 12px;
}

.dashboard-home-shortcut-card {
  margin-top: 10px;
  border-color: #f5d0c8;
  background: linear-gradient(180deg, #fff8f2 0%, #faeade 100%);
  box-shadow: 0 10px 22px rgba(176, 64, 16, 0.08);
  display: grid;
  gap: 10px;
}

.dashboard-home-shortcut-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #1c120a;
}

.dashboard-home-shortcut-text {
  margin: 0;
}

.dashboard-home-shortcut-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-week-card {
  position: relative;
  gap: 12px;
  margin-top: 0;
  border-color: rgba(237, 224, 212, 0.95);
  background: linear-gradient(170deg, rgba(255, 248, 242, 0.95) 0%, rgba(251, 245, 238, 0.84) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 10px 22px rgba(45, 34, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.dashboard-week-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 35%);
  z-index: 0;
}

.dashboard-booking-status.booking-status {
  min-height: 24px;
  padding: 4px 10px;
  font-size: 12px;
}

.dashboard-week-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.dashboard-week-head-text {
  display: grid;
  gap: 2px;
}

.dashboard-week-range {
  margin: 0;
}

.dashboard-calendar-toggle {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 11px;
  white-space: nowrap;
  flex: 0 0 auto;
  border-color: rgba(237, 224, 212, 0.95);
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.92) 0%, rgba(250, 234, 222, 0.45) 100%);
  color: #7a5c46;
  font-weight: 600;
}

.dashboard-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 1;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.week-day-chip {
  border: 1px solid rgba(237, 224, 212, 0.95);
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.86) 0%, rgba(255, 248, 242, 0.72) 100%);
  border-radius: 14px;
  min-height: 72px;
  padding: 8px 4px 6px;
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: 3px;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.week-day-chip:hover {
  border-color: #f3b57e;
  transform: translateY(-1px);
}

.week-day-chip-label {
  font-size: 10px;
  color: #8f867b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.week-day-chip-date {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: #2a2723;
}

.week-day-chip-count {
  min-width: 18px;
  border-radius: 999px;
  background: #2b2b2b;
  color: #ffffff;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  padding: 2px 5px;
  text-align: center;
}

.week-day-chip-count-empty {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #ccb9a3;
}

.week-day-chip-active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(250, 234, 222, 0.95) 0%, rgba(255, 239, 224, 0.84) 100%);
  box-shadow:
    0 0 0 2px rgba(224, 90, 37, 0.14) inset,
    0 8px 15px rgba(224, 90, 37, 0.11);
}

.week-day-chip-active .week-day-chip-label,
.week-day-chip-active .week-day-chip-date {
  color: #8e421a;
}

.week-day-chip-dayoff {
  background: linear-gradient(180deg, rgba(247, 240, 232, 0.84) 0%, rgba(243, 233, 222, 0.74) 100%);
  border-color: #dccfbe;
}

.week-day-chip-dayoff .week-day-chip-label,
.week-day-chip-dayoff .week-day-chip-date {
  color: #867765;
}

.week-day-chip-past {
  background: #f2efeb;
  border-color: #e2dbd2;
}

.week-day-chip-past .week-day-chip-label,
.week-day-chip-past .week-day-chip-date {
  color: #a99f93;
}

.dashboard-month-block {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #eadfce;
  animation: dashboardCalendarReveal 0.18s ease;
}

@keyframes dashboardCalendarReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.calendar-toolbar .btn {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 12px;
}

.calendar-month-title {
  margin: 0;
  text-transform: capitalize;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.4rem;
  font-weight: 800;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  min-width: 0;
}

.calendar-weekdays span {
  display: block;
  white-space: nowrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.calendar-cell {
  border: 1px solid var(--border);
  background: #ffffff;
  min-height: 58px;
  border-radius: 13px;
  padding: 6px;
  display: grid;
  justify-items: center;
  align-content: space-between;
  min-width: 0;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.calendar-cell:hover {
  border-color: #ffbf76;
  transform: translateY(-1px);
}

.calendar-cell-empty {
  border-color: transparent;
  background: transparent;
}

.calendar-cell-active {
  border-color: var(--accent);
  background: #fff3e2;
  box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.16) inset;
}

.calendar-cell-past {
  background: #f3f4f6;
  border-color: #e0e3e8;
  color: #9aa0a6;
}

.calendar-cell-past .calendar-count {
  background: #9aa0a6;
}

.calendar-cell-dayoff {
  background: #fff1e6;
  border-color: #ffd4a8;
  color: #9a5800;
}

.calendar-cell-past.calendar-cell-dayoff {
  background: #f6eee7;
  border-color: #e4d5c6;
  color: #9b8f83;
}

.calendar-day {
  font-size: 13px;
  font-weight: 700;
}

.calendar-count {
  font-size: 10px;
  background: #2b2b2b;
  color: #ffffff;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  padding: 2px 5px;
}

.availability-legend {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.availability-dot-free {
  background: #35b86b;
}

.availability-dot-busy {
  background: #ff8a00;
}

.availability-dot-blocked {
  background: #9aa0a6;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.availability-chip {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.availability-chip-time {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.availability-chip-free {
  background: #edfbf2;
  color: #087d35;
  border-color: #b9e9c8;
}

.availability-chip-busy {
  background: #fff2e1;
  color: #9a5800;
  border-color: #ffd6a3;
}

.availability-chip-blocked {
  background: #f3f4f6;
  color: #61646b;
  border-color: #dee0e6;
}

.availability-chip-actionable:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(43, 43, 43, 0.08);
}

.availability-chip-actionable:active {
  transform: translateY(0);
  box-shadow: none;
}

.availability-chip-readonly {
  cursor: default;
}

.availability-chip-pending {
  opacity: 0.65;
  pointer-events: none;
}

.clients-page-layout {
  display: grid;
  gap: 10px;
  padding-bottom: 74px;
}

.clients-toolbar-card {
  border-color: rgba(231, 217, 201, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 249, 240, 0.93) 100%);
  box-shadow: 0 10px 22px rgba(41, 31, 20, 0.08);
}

.clients-toolbar-actions {
  flex-wrap: nowrap;
}

.clients-add-btn {
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
}

.clients-refresh-btn {
  min-height: 34px;
  border-radius: 10px;
}

.clients-search-field label {
  color: #717171;
}

.input-icon-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #8f8f93;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-icon-svg {
  width: 17px;
  height: 17px;
}

.input-icon-wrap input {
  padding-left: 34px !important;
  border-color: #e8ded2;
  background: #fffdf9;
}

.input-icon-wrap input:focus {
  border-color: #ffb15a;
  background: #ffffff;
}

.client-skeleton-card {
  overflow: hidden;
}

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

.skeleton-line,
.skeleton-chip {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 9px;
  background: #efe6dc;
}

.skeleton-line {
  height: 13px;
}

.skeleton-chip {
  height: 34px;
  border-radius: 11px;
}

.skeleton-line::after,
.skeleton-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  animation: skeletonSweep 1.4s ease-in-out infinite;
}

@keyframes skeletonSweep {
  100% {
    transform: translateX(100%);
  }
}

.client-empty-card {
  border-color: var(--border);
}

.client-empty-state {
  border: 1px dashed #e7dac8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf9 0%, #fffaf4 100%);
  padding: 14px 12px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.booking-empty-state {
  margin-top: 4px;
}

.client-empty-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4ece2;
  color: #6f665b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-empty-icon-svg {
  width: 18px;
  height: 18px;
}

.client-details-card {
  border-color: var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fffcf8 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

.client-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: calc(62px + env(safe-area-inset-top));
  z-index: 9;
  margin: -2px -2px 2px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.client-details-head.is-elevated {
  box-shadow: 0 8px 16px rgba(30, 23, 15, 0.08);
  border-color: var(--border-strong);
}

.client-details-head-main {
  min-width: 0;
}

.client-details-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.client-details-name {
  letter-spacing: -0.01em;
}

.client-details-phone {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.2;
}

.client-details-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-call-btn {
  border-color: var(--border-strong);
  background: #ffffff;
  color: var(--text-main);
}

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

.btn-icon-svg {
  width: 14px;
  height: 14px;
}

.client-actions-menu-wrap {
  position: relative;
}

.client-actions-trigger {
  min-width: 34px;
  width: 34px;
  padding: 0;
}

.client-menu-icon-svg {
  width: 16px;
  height: 16px;
}

.client-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: max-content;
  min-width: 164px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 20px rgba(25, 19, 13, 0.14);
  padding: 6px;
  z-index: 10;
}

.client-danger-link {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff4f2;
  color: #b23f2f;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.client-danger-link:hover {
  background: #ffefec;
}

.client-neutral-link {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #f8f4ef;
  color: #63584c;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.client-neutral-link:hover {
  background: #f1e9df;
}

.client-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.client-stat-chip {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 10px;
  background: #ffffff;
  display: grid;
  gap: 4px;
}

.client-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.client-stat-value {
  font-size: 12px;
  color: #2b2b2b;
  line-height: 1.2;
}

.client-compact-summary {
  display: grid;
  gap: 8px;
}

.client-summary-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}

.client-summary-label {
  font-size: 11px;
  color: var(--text-muted);
}

.client-summary-value {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.2;
}

.client-notes-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.client-notes-preview p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #595f69;
}

.client-notes-preview-empty p {
  color: var(--text-muted);
}

.client-edit-shell {
  display: grid;
  gap: 2px;
}

.client-edit-footer {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 8;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.client-edit-footer .btn {
  width: 100%;
}

.client-blacklist-badge {
  justify-self: start;
}

.client-field label {
  color: var(--text-muted);
  font-size: 12px;
}

.client-field input,
.client-field textarea {
  border-color: var(--border-strong);
  background: #ffffff;
}

.client-field textarea {
  min-height: 86px;
}

.client-edit-actions .btn {
  flex: 0 0 auto;
}

.clients-list-card {
  border-color: var(--border);
}

.clients-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clients-filter-chip {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.clients-filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
  transform: translateY(-1px);
}

.clients-filter-chip.is-active {
  border-color: #ffc27c;
  background: linear-gradient(140deg, #fff2e2 0%, #ffe7cc 100%);
  color: #7c4600;
}

.clients-filter-count {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.16);
  color: #8f4f00;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.client-card-list {
  border-color: var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fffcf8 100%);
}

.client-open-btn {
  border-color: var(--border-strong);
}

.clients-fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(108px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border: 1px solid #ffb868;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff8a00 0%, #ff7300 100%);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(255, 138, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 46;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.clients-fab-icon-svg {
  width: 18px;
  height: 18px;
}

.clients-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.92);
}

.booking-card {
  border: 1px solid var(--border);
}

.booking-card-toolbar {
  margin-top: 2px;
}

.booking-main-action,
.booking-secondary-action {
  min-height: 36px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.booking-secondary-action {
  border-color: #ead8c2;
}

.booking-status {
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-width: 1px;
}

.booking-status-pending {
  background: #faeade;
  border-color: #f5d0c8;
  color: #b04010;
}

.booking-status-confirmed {
  background: #e8f5e0;
  border-color: #cfe8ba;
  color: #3a6010;
}

.booking-status-cancelled {
  background: #f9efec;
  border-color: #edd6ce;
  color: #9c6250;
}

.booking-status-completed {
  background: #e0f5ec;
  border-color: #c9e9da;
  color: #106040;
}

.booking-status-no_show {
  background: #f7eeee;
  border-color: #ecd8d8;
  color: #c03020;
}

.booking-status-rescheduled {
  background: #fbf2e8;
  border-color: #eadbc9;
  color: #8d653b;
}

.booking-status-payment-paid {
  background: #e0f5ec;
  border-color: #c9e9da;
  color: #106040;
}

.booking-status-payment-unpaid {
  background: #faeade;
  border-color: #f5d0c8;
  color: #b04010;
}

.booking-actions-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-details {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 10px;
  background: linear-gradient(180deg, #fffaf3 0%, #f8f8fa 100%);
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    padding 0.2s ease,
    border-color 0.2s ease,
    margin-top 0.2s ease;
}

.booking-details.is-open,
.booking-details.is-loading {
  opacity: 1;
  margin-top: 5px;
  padding: 8px 10px;
  border-color: #efe5d8;
}

.booking-details-row {
  display: grid;
  gap: 2px;
}

.booking-details-row + .booking-details-row {
  margin-top: 6px;
}

.booking-details-label {
  font-size: 11px;
  color: #7b746c;
}

.booking-details-skeleton {
  display: grid;
  gap: 5px;
}

.booking-action-sheet-title {
  letter-spacing: -0.01em;
}

.booking-action-sheet-meta {
  border: 1px solid #f1e5d7;
  border-radius: 12px;
  background: #fffaf2;
  padding: 8px 10px;
}

.booking-action-sheet .btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  justify-content: flex-start;
  padding-left: 14px;
}

.booking-action-sheet-close {
  margin-top: 2px;
  justify-content: center !important;
}

.schedule-week-grid {
  display: grid;
  gap: 10px;
}

.schedule-day-row {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fffcf8 100%);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.schedule-day-row.schedule-day-expanded {
  border-color: #e7d5c2;
}

.schedule-day-row.schedule-day-off {
  background: linear-gradient(180deg, #fcfaf7 0%, #f7f2ec 100%);
}

.schedule-day-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.schedule-day-summary-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.schedule-day-name {
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.schedule-day-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.schedule-day-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 24px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
}

.schedule-day-status {
  background: #edf8f1;
  color: #2f7a4e;
}

.schedule-day-hours {
  background: #fff2e4;
  color: #99532c;
}

.schedule-day-break {
  background: #f5f2ef;
  color: #786f67;
}

.schedule-day-row.schedule-day-off .schedule-day-status {
  background: #f3f1ed;
  color: #7c756c;
}

.schedule-day-row.schedule-day-off .schedule-day-hours {
  background: #f3f1ed;
  color: #7c756c;
}

.schedule-day-switch {
  align-self: start;
}

.schedule-day-actions {
  margin-top: 2px;
}

.schedule-day-actions .btn {
  width: 100%;
  min-height: 34px;
}

.schedule-day-details {
  border-top: 1px dashed #ead8c3;
  padding-top: 8px;
  margin-top: 2px;
  display: grid;
  gap: 8px;
}

.schedule-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.day-toggle {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.day-toggle input {
  accent-color: var(--accent);
}

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

.schedule-times label {
  font-size: 12px;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}

.schedule-times input[type="time"] {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  background: #ffffff;
}

.schedule-times input[type="time"]:disabled {
  opacity: 0.45;
  background: #f3f4f6;
}

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

.vacation-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vacation-edit-list {
  display: grid;
  gap: 8px;
}

.vacation-edit-item {
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: #fffdfa;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.vacation-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vacation-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff5e8;
  color: #8f4f00;
  border: 1px solid #ffd5a3;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

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

.public-master-wrap {
  display: grid;
  gap: 8px;
}

.public-master-card {
  border: 1px solid #eadccd;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb 0%, #fff8ef 100%);
  padding: 11px 12px;
  display: grid;
  gap: 10px;
}

.public-master-top {
  display: grid;
  gap: 4px;
}

.public-master-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 800;
  color: #2b2b2b;
  letter-spacing: -0.01em;
}

.public-master-profession {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: #6e6255;
  font-weight: 600;
}

.public-master-meta {
  display: grid;
  gap: 7px;
}

.public-master-item {
  display: grid;
  gap: 2px;
}

.public-master-item-label {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9a7f62;
  font-weight: 700;
}

.public-master-item-value {
  font-size: 14px;
  line-height: 1.35;
  color: #2f2a25;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.public-master-item-payment {
  border-top: 1px dashed #e9d7c3;
  padding-top: 7px;
}

.public-availability-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(180deg, #fffefb 0%, #fff9f0 100%);
}

.public-service-meta {
  border: 1px solid #f0e5d6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb 0%, #fff6ea 100%);
  padding: 10px;
  display: grid;
  gap: 10px;
}

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

.public-service-metric {
  border: 1px solid #f0dcc1;
  border-radius: 12px;
  padding: 10px 8px;
  background: #ffffff;
  text-align: center;
}

.public-service-metric-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 11px;
  font-weight: 700;
  color: #8f6a3d;
}

.public-service-metric-value {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  color: #2b2b2b;
}

.public-service-description {
  margin: 0;
  border: 1px dashed #f2d2aa;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fffdf9;
  color: #6f6354;
  font-size: 12px;
  line-height: 1.4;
}

.public-calendar-grid .public-calendar-day {
  min-height: 52px;
}

.public-calendar-day-free {
  background: #fff1de;
  border-color: #ffbf76;
  color: #8d4b00;
}

.public-calendar-day-busy {
  background: #f4f5f7;
  border-color: #e1e4ea;
  color: #9aa0a6;
}

.public-calendar-day-loading {
  opacity: 0.55;
}

.public-booking-success {
  background: linear-gradient(180deg, #fff7ec 0%, #ffefdc 100%);
  border-color: #ffd6a3;
}

.public-booking-result-modal {
  gap: 12px;
}

.public-booking-result-head {
  margin: 0;
  align-items: center;
}

.public-booking-result-title {
  margin: 0;
  font-size: 18px;
}

.public-booking-result-grid {
  border: 1px solid #f0ddc8;
  border-radius: 14px;
  background: #fffdf9;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.public-booking-result-row {
  display: grid;
  gap: 2px;
}

.public-booking-result-row strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-main);
}

.public-booking-result-actions {
  justify-content: flex-end;
  gap: 8px;
}

.consent-required {
  border: 1px solid #ffd5a3;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff8ed;
}

.scroll-top-btn {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(96px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: 1px solid #ffc27b;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff8a00 0%, #ff7400 100%);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(255, 138, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
  z-index: 45;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .row > .field {
    flex: 1 1 100% !important;
  }

  .page-title {
    font-size: 16px;
  }

  .dashboard-hero-card {
    border-radius: 24px;
    padding: 14px 11px 10px;
    margin-bottom: 9px;
  }

  .dashboard-hero-card::after {
    width: 154px;
    height: 154px;
    transform: translate(40%, -44%);
  }

  .dashboard-hero-greeting {
    font-size: 13px;
  }

  .dashboard-hero-name {
    font-size: clamp(30px, 9.4vw, 44px);
  }

  .dashboard-hero-date {
    font-size: 13px;
  }

  .dashboard-add-booking-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    flex-basis: 42px;
  }

  .dashboard-add-booking-plus {
    font-size: 24px;
  }

  .dashboard-stats-grid {
    margin-top: 12px;
    border-radius: 14px;
  }

  .dashboard-stat-item {
    min-height: 66px;
    padding: 8px 5px 7px;
  }

  .dashboard-stat-item strong {
    font-size: clamp(15px, 4.6vw, 23px);
  }

  .dashboard-stat-item span {
    font-size: 10px;
  }

  .dashboard-booking-time-pill {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .dashboard-booking-client {
    font-size: clamp(15px, 5vw, 18px);
  }

  .dashboard-booking-price {
    font-size: 19px;
  }

  .dashboard-client-select {
    min-height: 40px;
    max-height: 40px;
  }

  .dashboard-booking-actions .btn {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 11px;
    min-width: 80px;
  }

  .dashboard-booking-badges {
    margin-left: 0;
  }

  .dashboard-create-booking-title {
    font-size: 20px;
  }

  .dashboard-create-booking-modal {
    border-radius: 14px;
  }

  .dashboard-create-booking-section {
    padding: 9px 10px;
  }

  .dashboard-service-card-title {
    font-size: 13px;
  }

  .dashboard-service-card-price {
    font-size: 15px;
  }

  .dashboard-slots-wrap .slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-create-booking-actions .btn-primary {
    font-size: 16px;
  }

  .dashboard-week-head {
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-calendar-toggle {
    width: 100%;
    justify-content: center;
  }

  .dashboard-week-grid {
    gap: 5px;
  }

  .week-day-chip {
    min-height: 62px;
    border-radius: 11px;
    padding: 7px 3px 5px;
  }

  .week-day-chip-label {
    font-size: 9px;
  }

  .week-day-chip-date {
    font-size: 16px;
  }

  .week-day-chip-count {
    min-width: 16px;
    font-size: 9px;
    padding: 1px 4px;
  }

  .calendar-weekdays {
    gap: 3px;
    font-size: 9px;
  }

  .calendar-toolbar {
    grid-template-columns: 32px 1fr 32px;
    gap: 8px;
  }

  .calendar-toolbar .btn {
    width: 32px;
    min-width: 32px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-cell {
    min-height: 44px;
    border-radius: 9px;
    padding: 3px 2px;
  }

  .calendar-day {
    font-size: 11px;
  }

  .availability-legend {
    grid-template-columns: auto 1fr;
    row-gap: 6px;
  }

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

  .booking-actions-row .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .clients-add-btn {
    min-width: 0;
    padding: 6px 9px;
  }

  .clients-page-layout {
    padding-bottom: 90px;
  }

  .clients-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .clients-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .clients-filter-chip {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .client-details-head {
    flex-direction: column;
    top: calc(56px + env(safe-area-inset-top));
    padding: 8px;
  }

  .client-details-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .client-stats-strip {
    grid-template-columns: 1fr;
  }

  .client-edit-actions .btn {
    flex: 1 1 100%;
  }

  .client-edit-footer {
    bottom: calc(88px + env(safe-area-inset-bottom));
    padding: 7px;
  }

  .booking-card-toolbar .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .clients-fab {
    width: 46px;
    height: 46px;
    bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .schedule-day-summary {
    align-items: flex-start;
  }

  .schedule-day-name {
    font-size: 16px;
  }

  .schedule-day-chip {
    font-size: 11px;
    min-height: 22px;
    padding: 3px 8px;
  }

  .service-row-summary-title {
    font-size: 18px;
  }

  .service-row-summary-chip {
    font-size: 12px;
    padding: 4px 9px;
    min-height: 22px;
    line-height: 1.15;
  }

  .service-row-action-row .btn,
  .service-row-edit-actions .btn,
  .vacation-edit-actions .btn {
    width: 100%;
  }

  .schedule-times {
    grid-template-columns: 1fr;
  }

  .vacation-range {
    grid-template-columns: 1fr;
  }

  .scroll-top-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .public-service-metric-grid {
    grid-template-columns: 1fr;
  }

  .public-master-card {
    padding: 10px;
    gap: 9px;
  }

  .public-master-name {
    font-size: 18px;
  }

  .public-master-profession {
    font-size: 12px;
  }

  .public-master-item-value {
    font-size: 13px;
  }

  .profile-drilldown-item {
    padding: 10px 10px 10px 12px;
  }

  .profile-drilldown-item-icon {
    width: 32px;
    height: 32px;
  }

  .profile-drilldown-item-icon-svg {
    width: 16px;
    height: 16px;
  }

  .profile-drilldown-item-label {
    font-size: 14px;
  }

  .profile-drilldown-item-hint {
    font-size: 10px;
  }

  .profile-brand-lockup {
    padding: 5px 9px;
  }
}

@media (max-width: 390px) {
  .page-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .dashboard-hero-card {
    border-radius: 20px;
    margin-bottom: 8px;
  }

  .dashboard-hero-card::after {
    width: 140px;
    height: 140px;
    transform: translate(42%, -46%);
  }

  .dashboard-hero-name {
    font-size: clamp(27px, 9.2vw, 37px);
  }

  .dashboard-hero-date {
    font-size: 12px;
  }

  .dashboard-stat-item {
    min-height: 62px;
    padding: 8px 4px 6px;
  }

  .dashboard-stat-item strong {
    font-size: clamp(14px, 4.5vw, 19px);
  }

  .dashboard-stat-item span {
    font-size: 9px;
  }

  .dashboard-booking-time-pill {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 9px;
  }

  .dashboard-booking-swipe-text {
    font-size: 10px;
  }

  .dashboard-booking-swipe-bg-right .dashboard-booking-swipe-text {
    max-width: 92px;
  }

  .dashboard-booking-swipe-bg-left .dashboard-booking-swipe-text {
    max-width: 118px;
  }

  .dashboard-booking-client {
    font-size: clamp(14px, 4.9vw, 16px);
  }

  .dashboard-booking-service {
    font-size: 11px;
  }

  .dashboard-booking-price {
    font-size: 18px;
  }

  .dashboard-client-select option {
    font-size: 12px;
  }

  .helper-text {
    font-size: 11px;
  }

  .dashboard-create-booking-title {
    font-size: 17px;
  }

  .dashboard-create-booking-modal {
    border-radius: 13px;
  }

  .dashboard-create-booking-section {
    padding: 8px 9px;
  }

  .dashboard-booking-actions .btn {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
    min-width: 76px;
    flex: 0 0 auto;
  }

  .dashboard-create-booking-actions {
    padding: 9px 10px 10px;
  }

  .dashboard-create-booking-actions .btn-primary {
    min-width: 0;
    font-size: 14px;
  }

  .dashboard-booking-meta {
    align-items: flex-start;
  }

  .dashboard-booking-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-slots-wrap .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-service-cards {
    gap: 6px;
  }

  .dashboard-service-card {
    padding: 9px 8px;
    border-radius: 10px;
  }

  .dashboard-service-card-title {
    font-size: 13px;
  }

  .dashboard-service-card-meta {
    font-size: 11px;
  }

  .dashboard-service-card-price {
    font-size: 14px;
  }

  .dashboard-week-grid {
    gap: 4px;
  }

  .dashboard-bookings-toggle {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .week-day-chip {
    min-height: 58px;
    border-radius: 10px;
  }

  .week-day-chip-date {
    font-size: 14px;
  }

  .calendar-toolbar {
    grid-template-columns: 28px 1fr 28px;
    gap: 4px;
  }

  .calendar-toolbar .btn {
    width: 28px;
    min-width: 28px;
  }

  .calendar-month-title {
    font-size: 1.3rem;
  }

  .calendar-weekdays {
    gap: 2px;
    font-size: 8px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-cell {
    min-height: 40px;
    border-radius: 8px;
    padding: 2px 1px;
  }

  .calendar-day {
    font-size: 10px;
  }

  .calendar-count {
    min-width: 14px;
    font-size: 8px;
    padding: 1px 3px;
  }

  .clients-fab {
    width: 44px;
    height: 44px;
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .client-details-head {
    top: calc(52px + env(safe-area-inset-top));
    padding: 7px;
  }

  .client-edit-footer {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .clients-fab-icon-svg {
    width: 18px;
    height: 18px;
  }

  .service-row-summary {
    gap: 8px;
  }

  .service-row-summary-title {
    font-size: 17px;
    line-height: 1.12;
  }

  .service-row-summary-main {
    gap: 6px;
  }

  .service-row-summary-metrics {
    gap: 5px;
  }

  .service-row-summary-chip {
    font-size: 11px;
    min-height: 22px;
    padding: 3px 8px;
  }

  .service-switch-ui {
    width: 44px;
    height: 26px;
  }

  .service-switch-ui::after {
    width: 20px;
    height: 20px;
  }

  .service-switch input:checked + .service-switch-ui::after {
    transform: translateX(18px);
  }
}

@media (max-width: 360px) {
  .calendar-toolbar {
    grid-template-columns: 26px 1fr 26px;
    gap: 3px;
  }

  .calendar-toolbar .btn {
    width: 26px;
    min-width: 26px;
  }

  .calendar-cell {
    min-height: 36px;
    padding: 1px;
  }

  .calendar-day {
    font-size: 9px;
  }

  .calendar-count {
    min-width: 16px;
    font-size: 9px;
    padding: 1px 4px;
  }

  .booking-actions-row .btn {
    flex: 1 1 100%;
  }

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

  .service-row-action-row,
  .service-row-edit-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026 refresh */
.page-title {
  letter-spacing: -0.015em;
}

.helper-text {
  color: #767068;
}

.row {
  gap: 10px;
}

.page-content[data-route="dashboard"] .card {
  border-radius: 18px;
}

.page-content[data-route="dashboard"] .calendar-toolbar {
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
}

.page-content[data-route="dashboard"] .calendar-toolbar .btn {
  border-radius: 14px;
  background: #f6eee5;
  border-color: #e4d7c7;
}

.page-content[data-route="dashboard"] .calendar-month-title {
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.page-content[data-route="dashboard"] .calendar-weekdays {
  font-size: 12px;
  color: #8f887e;
  margin-top: 2px;
}

.page-content[data-route="dashboard"] .calendar-grid {
  gap: 7px;
}

.page-content[data-route="dashboard"] .calendar-cell {
  min-height: 64px;
  border-radius: 14px;
  border-color: #dfd4c7;
  background: #fffdfa;
}

.page-content[data-route="dashboard"] .calendar-cell-active {
  border-color: var(--accent);
  background: #fff3eb;
  box-shadow: 0 0 0 2px rgba(232, 93, 36, 0.12) inset;
}

.page-content[data-route="dashboard"] .calendar-cell-dayoff {
  background: #f5eee6;
  border-color: #dacbbb;
  color: #807264;
}

.page-content[data-route="dashboard"] .calendar-cell-past {
  background: #f2efeb;
  border-color: #e2dbd2;
  color: #aaa198;
}

.page-content[data-route="dashboard"] .calendar-day {
  font-size: 14px;
}

.page-content[data-route="dashboard"] .calendar-count {
  background: #2b2723;
}

.page-content[data-route="dashboard"] article.card.stack[data-booking-id] {
  border-radius: 16px;
  border-color: #dfd3c4;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7f0 100%);
}

.page-content[data-route="dashboard"] .availability-legend {
  padding: 8px 10px;
  border: 1px solid #ecdcc8;
  border-radius: 12px;
  background: #fff8ef;
}

.page-content[data-route="dashboard"] .availability-grid {
  gap: 7px;
}

.page-content[data-route="clients"] .clients-page-layout {
  gap: 12px;
}

.page-content[data-route="clients"] .clients-toolbar-card,
.page-content[data-route="clients"] .clients-list-card,
.page-content[data-route="clients"] .client-details-card {
  border-radius: 18px;
}

.page-content[data-route="clients"] .clients-toolbar-card {
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
}

.page-content[data-route="clients"] .clients-toolbar-actions .btn {
  min-height: 34px;
  border-radius: 11px;
}

.page-content[data-route="clients"] .client-details-head {
  border-color: #e4d8ca;
  background: rgba(255, 252, 247, 0.95);
  top: calc(84px + env(safe-area-inset-top));
}

.page-content[data-route="clients"] .client-details-kicker {
  color: #908578;
}

.page-content[data-route="clients"] .client-stats-strip .client-stat-chip,
.page-content[data-route="clients"] .client-summary-row,
.page-content[data-route="clients"] .client-notes-preview {
  border-color: #e9dfd4;
  background: #fffefc;
}

.page-content[data-route="clients"] .booking-card {
  border-radius: 14px;
  border-color: #e3d8cb;
  background: #fffdf9;
}

.page-content[data-route="clients"] .booking-main-action {
  min-width: 92px;
}

.page-content[data-route="clients"] .booking-secondary-action {
  order: -1;
}

.page-content[data-route="clients"] .clients-filter-chip {
  background: #fffdfa;
  border-color: #e2d7ca;
  color: #7d7368;
}

.page-content[data-route="clients"] .clients-filter-chip.is-active {
  background: rgba(232, 93, 36, 0.12);
  border-color: rgba(232, 93, 36, 0.4);
  color: var(--accent);
}

.page-content[data-route="clients"] .client-card-list {
  border-radius: 14px;
  border-color: #e0d4c6;
  background: #fffdfa;
}

.page-content[data-route="clients"] .clients-fab {
  width: 50px;
  height: 50px;
  border-color: rgba(255, 245, 234, 0.9);
}

.page-content[data-route="profile"] .profile-drilldown-home {
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
  border-color: #e9ddcf;
  box-shadow: 0 12px 24px rgba(42, 29, 17, 0.07);
}

.page-content[data-route="profile"] .profile-brand-lockup {
  border-color: #f0d2b7;
  background: #fff7ee;
}

.page-content[data-route="profile"] .profile-brand-mark {
  border-radius: 9px;
  width: 28px;
  height: 28px;
}

.page-content[data-route="profile"] .profile-drilldown-item {
  border-color: #ebdfd2;
  background: #fffdfa;
  border-radius: 14px;
  box-shadow: none;
}

.page-content[data-route="profile"] .profile-home-link-block {
  display: grid;
  gap: 7px;
  border: 1px solid #efdcc9;
  border-radius: 14px;
  padding: 10px;
  background: #fff8f1;
}

.page-content[data-route="profile"] .profile-home-link-label {
  font-size: 12px;
  color: #8c7865;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-content[data-route="profile"] .profile-home-link-value {
  border: 1px solid #e8d5c2;
  border-radius: 11px;
  padding: 9px 10px;
  background: #fffdfb;
  font-size: 13px;
  line-height: 1.3;
  color: #5f5146;
  overflow-wrap: anywhere;
}

.page-content[data-route="profile"] .profile-home-link-copy {
  justify-content: center;
}

.page-content[data-route="profile"] .profile-drilldown-item::before {
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #ffc9a7 0%, var(--accent) 100%);
}

.page-content[data-route="profile"] .profile-drilldown-item-icon {
  border-radius: 10px;
  border-color: #f0dbc5;
  background: #fff1e5;
  color: #a45120;
}

.page-content[data-route="profile"] .profile-drilldown-section {
  border-radius: 18px;
  border-color: #e9ddcf;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
}

.page-content[data-route="profile"] .profile-drilldown-head {
  margin: -14px -14px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #efe2d5;
  background: rgba(255, 252, 247, 0.9);
}

.page-content[data-route="profile"] .profile-drilldown-head .btn {
  min-height: 30px;
}

.page-content[data-route="profile"] .service-row {
  border-radius: 14px;
  border-color: #e6d9cb;
  background: #fffdfa;
}

.page-content[data-route="profile"] .service-active-field {
  gap: 8px;
}

.page-content[data-route="profile"] .service-switch-ui {
  background: #e9ddd0;
  border-color: #ddd0c0;
}

.page-content[data-route="profile"] .service-switch input:checked + .service-switch-ui {
  background: linear-gradient(140deg, #ed7641 0%, #e85d24 100%);
  border-color: #d95520;
}

.page-content[data-route="profile"] .schedule-day-row {
  border-radius: 14px;
  border-color: #e4d8cb;
  background: #fffdfa;
}

.page-content[data-route="profile"] #profile-feedback-message {
  min-height: 110px;
  resize: vertical;
}

.page-content[data-route="profile"] .schedule-day-name {
  font-size: 17px;
}

.page-content[data-route="profile"] .schedule-day-chip {
  border: 1px solid #eddcca;
}

.page-content[data-route="profile"] .schedule-day-status {
  background: #ecf8f0;
  color: #356f52;
  border-color: #dbeadf;
}

.page-content[data-route="profile"] .schedule-day-hours {
  background: #fff2e3;
  color: #91512b;
  border-color: #f0ddc6;
}

.page-content[data-route="profile"] .schedule-day-break {
  background: #f6f1ea;
  color: #807366;
  border-color: #e9dfd4;
}

.page-content[data-route="profile"] .schedule-day-row.schedule-day-off .schedule-day-status,
.page-content[data-route="profile"] .schedule-day-row.schedule-day-off .schedule-day-hours {
  background: #f3eee8;
  color: #85786b;
  border-color: #e5dacc;
}

.page-content[data-route="profile"] .vacation-chip {
  background: #fff1e6;
  border-color: #f1c8a7;
  color: #9e4c1d;
}

.page-content[data-route="public-booking"] .card {
  border-radius: 18px;
}

.page-content[data-route="public-booking"] .public-availability-wrap {
  border-color: #eadccd;
  border-radius: 16px;
  background: #fffdf9;
}

.page-content[data-route="public-booking"] .public-service-meta {
  border-color: #efdfcf;
  background: #fff9f2;
}

.page-content[data-route="public-booking"] .public-service-metric {
  border-color: #edd8c1;
}

.page-content[data-route="public-booking"] .public-service-metric-value {
  font-size: 26px;
}

@media (max-width: 480px) {
  .page-content[data-route="dashboard"] .calendar-toolbar {
    grid-template-columns: 34px 1fr 34px;
    gap: 8px;
  }

  .page-content[data-route="dashboard"] .calendar-month-title {
    font-size: 28px;
  }

  .page-content[data-route="dashboard"] .calendar-cell {
    min-height: 50px;
    border-radius: 11px;
  }

  .page-content[data-route="clients"] .client-details-head {
    top: calc(74px + env(safe-area-inset-top));
  }

  .page-content[data-route="profile"] .profile-drilldown-head {
    margin: -11px -11px 10px;
    padding: 9px 11px;
  }
}

@media (max-width: 390px) {
  .page-content[data-route="dashboard"] .calendar-month-title {
    font-size: 24px;
  }

  .page-content[data-route="dashboard"] .calendar-cell {
    min-height: 44px;
  }
}

/* Profile menu redesign */
#app-header[data-route="profile"] .header-wrap {
  display: none;
}

.page-content[data-route="profile"] {
  padding-top: 10px;
}

.page-content[data-route="profile"] .profile-drilldown-home {
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  border-color: #e3d8cc;
  background: #f7f2ec;
  box-shadow: 0 12px 26px rgba(41, 29, 18, 0.07);
}

.page-content[data-route="profile"] .profile-menu-hero {
  background: linear-gradient(170deg, #e85d24 0%, #df551f 100%);
  color: #ffffff;
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(170, 73, 30, 0.35);
}

.page-content[data-route="profile"] .profile-menu-hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 7.8vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page-content[data-route="profile"] .profile-menu-hero-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 247, 238, 0.88);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.page-content[data-route="profile"] .profile-menu-content {
  padding: 12px 12px 14px;
  display: grid;
  gap: 12px;
}

.page-content[data-route="profile"] .profile-home-link-block {
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.page-content[data-route="profile"] .profile-home-link-label {
  font-size: 13px;
  color: #8f8376;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-content[data-route="profile"] .profile-home-link-value {
  border: 1px solid #ead7c2;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbefe3;
  color: #8f4a26;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.page-content[data-route="profile"] .profile-home-link-copy {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  border-color: #d4c6b4;
  background: #fffdfa;
}

.page-content[data-route="profile"] .profile-menu-list {
  gap: 0;
  border: 1px solid #e8dccc;
  border-radius: 18px;
  overflow: hidden;
  background: #fffdfa;
}

.page-content[data-route="profile"] .profile-menu-item {
  border: 0;
  border-bottom: 1px solid #eee4d8;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 13px 12px;
  min-height: 76px;
}

.page-content[data-route="profile"] .profile-menu-item:last-child {
  border-bottom: 0;
}

.page-content[data-route="profile"] .profile-menu-item::before {
  display: none;
}

.page-content[data-route="profile"] .profile-menu-item:hover {
  transform: none;
  box-shadow: none;
  background: #fff8f1;
  border-color: transparent;
}

.page-content[data-route="profile"] .profile-drilldown-item-main {
  gap: 12px;
}

.page-content[data-route="profile"] .profile-drilldown-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #f0dfcd;
  background: #fbefe3;
  color: #de6227;
}

.page-content[data-route="profile"] .profile-drilldown-item-icon-svg {
  width: 20px;
  height: 20px;
}

.page-content[data-route="profile"] .profile-drilldown-item-label {
  font-size: 19px;
  font-weight: 700;
  color: #1f1c18;
}

.page-content[data-route="profile"] .profile-drilldown-item-hint {
  font-size: 14px;
  color: #908376;
}

.page-content[data-route="profile"] .profile-drilldown-item-arrow {
  font-size: 24px;
  color: #b8aa97;
}

@media (max-width: 480px) {
  .page-content[data-route="profile"] .profile-menu-hero {
    padding: 18px 14px 14px;
  }

  .page-content[data-route="profile"] .profile-menu-hero-title {
    font-size: clamp(24px, 9vw, 32px);
  }

  .page-content[data-route="profile"] .profile-menu-hero-subtitle {
    font-size: 14px;
  }

  .page-content[data-route="profile"] .profile-menu-content {
    padding: 10px;
    gap: 10px;
  }

  .page-content[data-route="profile"] .profile-home-link-value {
    font-size: 13px;
    padding: 10px 11px;
  }

  .page-content[data-route="profile"] .profile-home-link-copy {
    min-height: 45px;
    font-size: 14px;
  }

  .page-content[data-route="profile"] .profile-menu-item {
    min-height: 68px;
    padding: 11px 10px;
  }

  .page-content[data-route="profile"] .profile-drilldown-item-icon {
    width: 36px;
    height: 36px;
  }

  .page-content[data-route="profile"] .profile-drilldown-item-icon-svg {
    width: 18px;
    height: 18px;
  }

  .page-content[data-route="profile"] .profile-drilldown-item-label {
    font-size: 16px;
  }

  .page-content[data-route="profile"] .profile-drilldown-item-hint {
    font-size: 12px;
  }
}

/* Clients contacts redesign */
#app-header[data-route="clients"] .header-wrap {
  display: none;
}

.page-content[data-route="clients"] {
  padding-top: 10px;
}

.page-content[data-route="clients"] .clients-toolbar-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: 0;
  border-color: rgba(237, 224, 212, 0.96);
  background: linear-gradient(168deg, rgba(255, 248, 242, 0.92) 0%, rgba(251, 245, 238, 0.8) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
  box-shadow:
    0 12px 26px rgba(41, 29, 18, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  isolation: isolate;
}

.page-content[data-route="clients"] .clients-toolbar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 36%);
  z-index: 0;
}

.page-content[data-route="clients"] .clients-toolbar-hero {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.22) 0 24%, transparent 25%),
    linear-gradient(170deg, #e85d24 0%, #df551f 100%);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(167, 70, 29, 0.35);
}

.page-content[data-route="clients"] .clients-toolbar-title {
  margin: 0;
  color: #ffffff;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-content[data-route="clients"] .clients-toolbar-add {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 232, 0.55);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.page-content[data-route="clients"] .clients-toolbar-add-plus {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.page-content[data-route="clients"] .clients-toolbar-controls {
  position: relative;
  z-index: 1;
  padding: 12px 12px 12px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.86) 0%, rgba(251, 245, 238, 0.72) 100%);
}

.page-content[data-route="clients"] .clients-search-field {
  margin: 0;
}

.page-content[data-route="clients"] .clients-search-field .input-icon-wrap input {
  min-height: 48px;
  border-radius: 14px;
  border-color: rgba(237, 224, 212, 0.94);
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.92) 0%, rgba(255, 248, 242, 0.78) 100%);
  font-size: 18px;
}

.page-content[data-route="clients"] .clients-filters-slot {
  min-height: 0;
}

.page-content[data-route="clients"] .clients-sort-field {
  margin: 0;
}

.page-content[data-route="clients"] .clients-sort-field label {
  font-size: 12px;
  color: #8d7f70;
  margin-bottom: 4px;
}

.page-content[data-route="clients"] .clients-sort-field select {
  min-height: 40px;
  border-radius: 12px;
  border-color: rgba(237, 224, 212, 0.95);
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.9) 0%, rgba(255, 248, 242, 0.74) 100%);
  font-size: 14px;
  color: #5e5348;
}

.page-content[data-route="clients"] .clients-filters-slot .clients-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid rgba(237, 224, 212, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.78) 0%, rgba(255, 248, 242, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.page-content[data-route="clients"] .clients-filters-slot .clients-filter-chip {
  white-space: nowrap;
  border-radius: 999px;
  border-color: rgba(237, 224, 212, 0.95);
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.9) 0%, rgba(255, 248, 242, 0.74) 100%);
  color: #8b7d6f;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
}

.page-content[data-route="clients"] .clients-filters-slot .clients-filter-chip.is-active {
  background: linear-gradient(145deg, rgba(232, 93, 36, 0.94) 0%, rgba(223, 85, 31, 0.92) 100%);
  border-color: rgba(210, 84, 32, 0.9);
  color: #ffffff;
  box-shadow:
    0 8px 14px rgba(224, 90, 37, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.page-content[data-route="clients"] .clients-filters-slot .clients-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  min-width: 22px;
}

.page-content[data-route="clients"] .clients-refresh-btn {
  min-height: 32px;
}

.page-content[data-route="clients"] .clients-contacts-card {
  border-radius: 18px;
  border-color: #e8dccc;
  background: #fffdfa;
  box-shadow: none;
  padding: 8px;
  gap: 4px;
}

.page-content[data-route="clients"] .client-contact-row {
  width: 100%;
  border: 1px solid #ecdfd0;
  border-radius: 16px;
  background: #fffdfa;
  padding: 10px 10px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.page-content[data-route="clients"] .client-contact-row:hover {
  border-color: #e1c9b3;
  background: #fff8f1;
  transform: translateY(-1px);
}

.page-content[data-route="clients"] .client-contact-row + .client-contact-row {
  margin-top: 0;
}

.page-content[data-route="clients"] .client-contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.client-contact-avatar-peach {
  background: #f9ece2;
  color: #b25a29;
}

.client-contact-avatar-blue {
  background: #e4f0ff;
  color: #376ea6;
}

.client-contact-avatar-violet {
  background: #ece5ff;
  color: #6e4bb3;
}

.client-contact-avatar-mint {
  background: #e4f4ee;
  color: #2f7b63;
}

.client-contact-avatar-sand {
  background: #f4ecdf;
  color: #8a6a3d;
}

.page-content[data-route="clients"] .client-contact-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-content[data-route="clients"] .client-contact-name {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #1f1c18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-content[data-route="clients"] .client-contact-phone {
  font-size: 16px;
  line-height: 1;
  color: #887b6d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-content[data-route="clients"] .client-contact-risk-wrap {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}

.page-content[data-route="clients"] .client-contact-risk {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 999px;
  border: 1px solid #f0c8aa;
  background: #fff1e5;
  color: #a54a1f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 8px;
  white-space: nowrap;
}

.page-content[data-route="clients"] .client-contact-risk.is-high {
  border-color: #efb3b3;
  background: #ffe9e9;
  color: #a73434;
}

.page-content[data-route="clients"] .client-contact-risk.is-medium {
  border-color: #f0c8aa;
  background: #fff1e5;
  color: #a54a1f;
}

.page-content[data-route="clients"] .client-contact-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin-left: 6px;
}

.page-content[data-route="clients"] .client-contact-visits {
  font-size: 13px;
  color: #9b8d7e;
  line-height: 1;
  white-space: nowrap;
}

.page-content[data-route="clients"] .client-contact-last {
  font-size: 17px;
  line-height: 1;
  color: #d95e23;
  text-transform: capitalize;
  white-space: nowrap;
}

.page-content[data-route="clients"] .clients-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.page-content[data-route="clients"] .clients-list-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a8d7e;
}

.page-content[data-route="clients"] .clients-list-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ebd5be;
  background: #fff5ea;
  color: #df551f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.page-content[data-route="clients"] .clients-list-add-btn:hover {
  background: #ffecd8;
  border-color: #e6c3a2;
}

.page-content[data-route="clients"] .clients-fab {
  display: inline-flex;
}

.page-content[data-route="clients"] .clients-detail-nav-card {
  padding: 8px;
  border-radius: 14px;
  border-color: #eadfce;
  background: #fffdfa;
  box-shadow: none;
}

.page-content[data-route="clients"] .clients-back-to-list {
  min-height: 34px;
}

.page-content[data-route="clients"].clients-mode-list #selected-client-section,
.page-content[data-route="clients"].clients-mode-list #selected-bookings-section {
  display: none;
}

.page-content[data-route="clients"].clients-mode-detail .clients-toolbar-card,
.page-content[data-route="clients"].clients-mode-detail #other-clients-section {
  display: none;
}

@media (max-width: 480px) {
  .page-content[data-route="clients"] .clients-toolbar-title {
    font-size: 26px;
  }

  .page-content[data-route="clients"] .clients-toolbar-add {
    width: 40px;
    height: 40px;
  }

  .page-content[data-route="clients"] .clients-toolbar-add-plus {
    font-size: 24px;
  }

  .page-content[data-route="clients"] .clients-search-field .input-icon-wrap input {
    min-height: 42px;
    font-size: 14px;
  }

  .page-content[data-route="clients"] .clients-filters-slot .clients-filter-chip {
    font-size: 12px;
    padding: 6px 9px;
  }

  .page-content[data-route="clients"] .clients-filters-slot .clients-filter-row {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 6px;
  }

  .page-content[data-route="clients"] .client-contact-row {
    grid-template-columns: 36px 1fr auto;
    border-radius: 13px;
    padding: 6px 7px;
    gap: 6px;
  }

  .page-content[data-route="clients"] .client-contact-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .page-content[data-route="clients"] .client-contact-name {
    font-size: 17px;
  }

  .page-content[data-route="clients"] .client-contact-phone {
    font-size: 12px;
  }

  .page-content[data-route="clients"] .client-contact-risk {
    font-size: 10px;
    min-height: 16px;
    padding: 2px 7px;
  }

  .page-content[data-route="clients"] .client-contact-visits {
    font-size: 11px;
  }

  .page-content[data-route="clients"] .client-contact-last {
    font-size: 13px;
  }

  .page-content[data-route="clients"] .clients-list-head {
    margin-bottom: 2px;
  }

  .page-content[data-route="clients"] .clients-list-title {
    font-size: 13px;
  }

  .page-content[data-route="clients"] .clients-list-add-btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}

/* Clients drill down redesign */
.page-content[data-route="clients"] .client-drill-card,
.page-content[data-route="clients"] .booking-drill-card,
.page-content[data-route="clients"] .client-history-card {
  border-radius: 26px;
  border: 1px solid #e3d8cc;
  background: #f7f2ec;
  box-shadow: 0 10px 24px rgba(41, 29, 18, 0.07);
  overflow: hidden;
}

.page-content[data-route="clients"] .client-drill-hero,
.page-content[data-route="clients"] .booking-drill-hero {
  background: linear-gradient(170deg, #e85d24 0%, #df551f 100%);
  color: #ffffff;
  padding: 14px 14px 16px;
  border-bottom: 1px solid rgba(167, 70, 29, 0.35);
  border-radius: 18px;
  margin: 10px 10px 0;
}

.page-content[data-route="clients"] .client-drill-back,
.page-content[data-route="clients"] .booking-drill-back {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  padding: 0;
  min-height: 22px;
  cursor: pointer;
}

.page-content[data-route="clients"] .client-drill-title {
  margin: 8px 0 3px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.page-content[data-route="clients"] .client-drill-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.page-content[data-route="clients"] .client-drill-title-risk {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 10px;
}

.page-content[data-route="clients"] .client-drill-title-risk.is-high {
  color: #8e280d;
  background: #ffe9df;
  border-color: #f3b8a3;
}

.page-content[data-route="clients"] .client-drill-title-risk.is-medium {
  color: #8a531f;
  background: #fff2df;
  border-color: #efd2ae;
}

.page-content[data-route="clients"] .client-drill-subtitle {
  margin: 0;
  color: rgba(255, 247, 238, 0.92);
  font-size: 17px;
  line-height: 1.1;
}

.page-content[data-route="clients"] .client-drill-risk {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.page-content[data-route="clients"] .client-drill-risk.is-high {
  background: #ffe7e7;
  border-color: #ffc3c3;
  color: #8f1f1f;
}

.page-content[data-route="clients"] .client-drill-risk.is-medium {
  background: #fff0e3;
  border-color: #ffd0ad;
  color: #8d4a16;
}

.page-content[data-route="clients"] .client-drill-body,
.page-content[data-route="clients"] .booking-drill-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.page-content[data-route="clients"] .client-drill-meta-grid,
.page-content[data-route="clients"] .booking-drill-grid {
  border: 1px solid #e5d9cb;
  border-radius: 18px;
  background: #fffaf4;
  overflow: hidden;
}

.page-content[data-route="clients"] .client-drill-meta-row,
.page-content[data-route="clients"] .booking-drill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
}

.page-content[data-route="clients"] .client-drill-meta-row + .client-drill-meta-row,
.page-content[data-route="clients"] .booking-drill-row + .booking-drill-row {
  border-top: 1px solid #ece0d4;
}

.page-content[data-route="clients"] .client-drill-meta-label,
.page-content[data-route="clients"] .booking-drill-row span {
  color: #988a7a;
  font-size: 18px;
  line-height: 1.1;
}

.page-content[data-route="clients"] .client-drill-meta-value,
.page-content[data-route="clients"] .booking-drill-row strong {
  font-size: 19px;
  line-height: 1.1;
  color: #1f1c18;
  font-weight: 500;
  text-align: right;
}

.page-content[data-route="clients"] .client-drill-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-content[data-route="clients"] .client-drill-actions .btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 600;
}

.page-content[data-route="clients"] .client-drill-actions .client-action-booking {
  grid-column: 1 / -1;
  min-height: 46px;
}

.page-content[data-route="clients"] .client-drill-actions .client-action-edit {
  min-width: 0;
}

.page-content[data-route="clients"] .client-drill-actions .client-actions-menu-wrap.client-action-menu {
  justify-self: end;
  position: relative;
}

.page-content[data-route="clients"] .client-drill-actions .client-action-menu .client-actions-trigger {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
}

.page-content[data-route="clients"] .client-drill-extra {
  display: grid;
  gap: 10px;
}

.page-content[data-route="clients"] .client-drill-notes {
  border: 1px solid #e7dccf;
  border-radius: 14px;
  background: #fffaf4;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.page-content[data-route="clients"] .client-drill-notes p {
  margin: 0;
  color: #5a4e42;
  font-size: 16px;
  line-height: 1.3;
}

.page-content[data-route="clients"] .client-drill-notes-empty p {
  color: #9e9387;
}

.page-content[data-route="clients"] .client-drill-edit {
  display: grid;
  gap: 10px;
}

.page-content[data-route="clients"] .client-drill-edit .btn {
  min-height: 46px;
  border-radius: 14px;
}

.page-content[data-route="clients"] .client-history-card {
  padding: 12px;
}

.page-content[data-route="clients"] .client-history-title {
  margin: 0 0 8px;
  color: #a09281;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-content[data-route="clients"] .client-history-list {
  border: 1px solid #e5d9cb;
  border-radius: 18px;
  background: #fffaf4;
  overflow: hidden;
}

.page-content[data-route="clients"] .client-history-item {
  width: 100%;
  border: 0;
  background: #fffaf4;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.page-content[data-route="clients"] .client-history-item + .client-history-item {
  border-top: 1px solid #ece0d4;
}

.page-content[data-route="clients"] .client-history-item:hover {
  background: #fff4e7;
}

.page-content[data-route="clients"] .client-history-main {
  display: grid;
  gap: 5px;
}

.page-content[data-route="clients"] .client-history-service {
  color: #1f1c18;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 600;
}

.page-content[data-route="clients"] .client-history-date {
  color: #8e8072;
  font-size: 17px;
  line-height: 1.08;
}

.page-content[data-route="clients"] .client-history-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.page-content[data-route="clients"] .client-history-price {
  color: #d65b23;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 700;
  white-space: nowrap;
}

.page-content[data-route="clients"] .client-history-payment {
  font-size: 16px;
  line-height: 1.08;
  white-space: nowrap;
}

.page-content[data-route="clients"] .client-history-visit-status.booking-status {
  font-size: 11px;
  min-height: 20px;
  padding: 2px 8px;
}

.page-content[data-route="clients"] .client-history-payment.is-paid {
  color: #2f8759;
}

.page-content[data-route="clients"] .client-history-payment.is-unpaid {
  color: #d1532a;
}

.page-content[data-route="clients"] .booking-drill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-content[data-route="clients"] .booking-drill-title {
  margin: 10px 0 0;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.page-content[data-route="clients"] .booking-drill-status {
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 16px;
  font-weight: 700;
}

.page-content[data-route="clients"] .booking-drill-client {
  border: 1px solid #e5d9cb;
  border-radius: 18px;
  background: #fffaf4;
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 11px;
  align-items: center;
}

.page-content[data-route="clients"] .booking-drill-client-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.page-content[data-route="clients"] .booking-drill-client-main {
  display: grid;
  gap: 4px;
}

.page-content[data-route="clients"] .booking-drill-client-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-content[data-route="clients"] .booking-drill-client-main strong {
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.page-content[data-route="clients"] .booking-drill-client-risk {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.page-content[data-route="clients"] .booking-drill-client-risk.is-high {
  color: #8e280d;
  background: #ffe9df;
  border-color: #f3b8a3;
}

.page-content[data-route="clients"] .booking-drill-client-risk.is-medium {
  color: #8a531f;
  background: #fff2df;
  border-color: #efd2ae;
}

.page-content[data-route="clients"] .booking-drill-client-main span {
  color: #8f8174;
  font-size: 16px;
  line-height: 1.08;
}

.page-content[data-route="clients"] .booking-drill-comment {
  border: 1px solid #e5d9cb;
  border-radius: 18px;
  background: #fffaf4;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.page-content[data-route="clients"] .booking-drill-comment span {
  color: #988a7a;
  font-size: 16px;
}

.page-content[data-route="clients"] .booking-drill-comment p {
  margin: 0;
  color: #5a4e42;
  font-size: 18px;
  line-height: 1.24;
}

.page-content[data-route="clients"] .booking-drill-payment.is-paid {
  color: #2f8759;
}

.page-content[data-route="clients"] .booking-drill-payment.is-unpaid {
  color: #d1532a;
}

.page-content[data-route="clients"] .booking-drill-pay-btn {
  min-height: 50px;
  border-radius: 14px;
  font-size: 26px;
}

.page-content[data-route="clients"] .booking-drill-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-content[data-route="clients"] .booking-drill-actions-grid-secondary {
  grid-template-columns: minmax(0, 1fr);
}

.page-content[data-route="clients"] .booking-drill-actions-grid-complete {
  grid-template-columns: minmax(0, 1fr);
}

.page-content[data-route="clients"] .booking-drill-actions-grid-danger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-content[data-route="clients"] .booking-complete-btn {
  min-height: 46px;
  font-size: 15px;
}

.page-content[data-route="clients"] .booking-drill-actions-grid .btn {
  min-height: 42px;
  border-radius: 14px;
}

.page-content[data-route="clients"] .booking-drill-actions-grid .booking-action-wide {
  grid-column: 1 / -1;
}

.page-content[data-route="clients"] .booking-no-show-btn,
.page-content[data-route="clients"] .booking-action-no-show {
  background: #fff4e8;
  border-color: #f3c9a6;
  color: #b45b23;
}

.page-content[data-route="clients"] .booking-no-show-btn:hover,
.page-content[data-route="clients"] .booking-action-no-show:hover {
  background: #ffe7cc;
  border-color: #efb987;
}

.page-content[data-route="clients"].clients-mode-booking-detail #selected-client-section {
  display: none;
}

@media (max-width: 480px) {
  .page-content[data-route="clients"] .client-drill-back,
  .page-content[data-route="clients"] .booking-drill-back {
    font-size: 16px;
    min-height: 20px;
  }

  .page-content[data-route="clients"] .client-drill-title {
    font-size: 25px;
  }

  .page-content[data-route="clients"] .client-drill-title-row {
    gap: 7px;
  }

  .page-content[data-route="clients"] .client-drill-title-risk {
    font-size: 10px;
    padding: 3px 8px;
    margin-top: 9px;
  }

  .page-content[data-route="clients"] .client-drill-subtitle {
    font-size: 13px;
  }

  .page-content[data-route="clients"] .client-drill-risk {
    font-size: 11px;
    padding: 3px 8px;
  }

  .page-content[data-route="clients"] .client-drill-meta-row,
  .page-content[data-route="clients"] .booking-drill-row {
    min-height: 38px;
    padding: 8px 10px;
  }

  .page-content[data-route="clients"] .client-drill-meta-label,
  .page-content[data-route="clients"] .booking-drill-row span {
    font-size: 13px;
  }

  .page-content[data-route="clients"] .client-drill-meta-value,
  .page-content[data-route="clients"] .booking-drill-row strong {
    font-size: 14px;
  }

  .page-content[data-route="clients"] .client-drill-actions,
  .page-content[data-route="clients"] .booking-drill-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-content[data-route="clients"] .client-drill-actions .btn {
    min-height: 40px;
    font-size: 13px;
  }

  .page-content[data-route="clients"] .client-drill-actions .client-action-booking {
    min-height: 42px;
    font-size: 14px;
  }

  .page-content[data-route="clients"] .client-drill-actions .client-action-menu .client-actions-trigger {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .page-content[data-route="clients"] .booking-drill-title {
    font-size: 30px;
  }

  .page-content[data-route="clients"] .booking-drill-status {
    font-size: 12px;
    min-height: 24px;
    padding: 3px 10px;
  }

  .page-content[data-route="clients"] .booking-drill-client {
    grid-template-columns: 42px 1fr;
    gap: 8px;
    padding: 9px;
  }

  .page-content[data-route="clients"] .booking-drill-client-avatar {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .page-content[data-route="clients"] .booking-drill-client-main strong {
    font-size: 18px;
  }

  .page-content[data-route="clients"] .booking-drill-client-risk {
    font-size: 10px;
    padding: 3px 7px;
  }

  .page-content[data-route="clients"] .booking-drill-client-main span {
    font-size: 12px;
  }

  .page-content[data-route="clients"] .client-history-service {
    font-size: 15px;
  }

  .page-content[data-route="clients"] .client-history-date,
  .page-content[data-route="clients"] .client-history-price,
  .page-content[data-route="clients"] .client-history-payment {
    font-size: 12px;
  }

  .page-content[data-route="clients"] .client-history-visit-status.booking-status {
    font-size: 10px;
    min-height: 18px;
    padding: 2px 7px;
  }

  .page-content[data-route="clients"] .booking-drill-pay-btn {
    font-size: 16px;
    min-height: 44px;
  }

  .page-content[data-route="clients"] .booking-drill-actions-grid-complete {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .page-content[data-route="clients"] .client-drill-back,
  .page-content[data-route="clients"] .booking-drill-back {
    font-size: 14px;
  }

  .page-content[data-route="clients"] .clients-toolbar-title {
    font-size: 23px;
  }

  .page-content[data-route="clients"] .client-contact-name {
    font-size: 15px;
  }

  .page-content[data-route="clients"] .client-contact-phone,
  .page-content[data-route="clients"] .client-contact-visits,
  .page-content[data-route="clients"] .client-contact-last {
    font-size: 11px;
  }

  .page-content[data-route="clients"] .client-drill-title {
    font-size: 22px;
  }

  .page-content[data-route="clients"] .client-drill-subtitle {
    font-size: 12px;
  }

  .page-content[data-route="clients"] .client-drill-risk {
    font-size: 10px;
    padding: 3px 7px;
  }

  .page-content[data-route="clients"] .client-drill-actions .btn {
    font-size: 12px;
    min-height: 38px;
  }

  .page-content[data-route="clients"] .client-drill-actions .client-action-booking {
    font-size: 13px;
    min-height: 40px;
  }

  .page-content[data-route="clients"] .client-drill-actions .client-action-menu .client-actions-trigger {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }
}

.page-content[data-route="analytics"] .analytics-page {
  display: grid;
  gap: 10px;
}

.page-content[data-route="analytics"] .analytics-hero-card {
  border-radius: 26px;
  border: 1px solid #d25420;
  padding: 12px;
  background: linear-gradient(170deg, #e85d24 0%, #df551f 100%);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(223, 85, 31, 0.2);
}

.page-content[data-route="analytics"] .analytics-hero-date {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 244, 234, 0.95);
}

.page-content[data-route="analytics"] .analytics-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-top-chip {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.96);
  color: #1c120a;
  padding: 8px;
  display: grid;
  gap: 3px;
}

.page-content[data-route="analytics"] .analytics-top-value {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-content[data-route="analytics"] .analytics-top-label {
  margin: 0;
  font-size: 12px;
  color: #786a5a;
}

.page-content[data-route="analytics"] .analytics-period-card {
  border-radius: 20px;
  border: 1px solid #eadccd;
  background: #fffaf4;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-period-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-content[data-route="analytics"] .analytics-period-btn {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #e3d4c3;
  background: #fff7ef;
  color: #786a5a;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-period-btn.is-active {
  background: linear-gradient(140deg, #ee672b 0%, #dc5421 100%);
  border-color: #da5120;
  color: #ffffff;
}

.page-content[data-route="analytics"] .analytics-period-label {
  margin: 0;
  color: #7d6c59;
  font-size: 13px;
}

.page-content[data-route="analytics"] .analytics-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.page-content[data-route="analytics"] .analytics-week-day {
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid #ebdccd;
  background: #ffffff;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 6px 2px 5px;
  color: #7f6e5d;
}

.page-content[data-route="analytics"] .analytics-week-day span {
  font-size: 11px;
  text-transform: uppercase;
}

.page-content[data-route="analytics"] .analytics-week-day strong {
  font-size: 18px;
  line-height: 1;
}

.page-content[data-route="analytics"] .analytics-week-day em {
  font-size: 10px;
  line-height: 1;
  color: #d2622d;
  min-height: 10px;
  font-style: normal;
}

.page-content[data-route="analytics"] .analytics-week-day.is-active {
  border-color: #dc5522;
  background: #fff2e7;
  color: #2a1b10;
}

.page-content[data-route="analytics"] .analytics-section-block {
  border-radius: 20px;
  border: 1px solid #eadccd;
  background: #fffaf4;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-section-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8b7765;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-metric-card {
  border-radius: 14px;
  border: 1px solid #eadfd1;
  background: #fffdf9;
  padding: 9px;
  display: grid;
  gap: 4px;
}

.page-content[data-route="analytics"] .analytics-metric-title {
  margin: 0;
  font-size: 12px;
  color: #8f7d6d;
}

.page-content[data-route="analytics"] .analytics-metric-value {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-content[data-route="analytics"] .analytics-metric-hint {
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  background: #f6efe6;
  color: #917e6b;
  border: 1px solid #ebdccd;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-metric-hint.is-positive {
  background: #eaf8ee;
  border-color: #c7e9d2;
  color: #2d7a49;
}

.page-content[data-route="analytics"] .analytics-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-progress-badge {
  border-radius: 999px;
  padding: 2px 8px;
  background: #eaf8ee;
  border: 1px solid #c7e9d2;
  color: #2d7a49;
  font-size: 11px;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-progress-track {
  height: 10px;
  border-radius: 999px;
  border: 1px solid #edd9c9;
  background: #fff2e7;
  overflow: hidden;
}

.page-content[data-route="analytics"] .analytics-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(140deg, #ee6c31 0%, #d6511e 100%);
}

.page-content[data-route="analytics"] .analytics-progress-caption {
  margin: 0;
  font-size: 12px;
  color: #8e7a68;
}

.page-content[data-route="analytics"] .analytics-funnel-list,
.page-content[data-route="analytics"] .analytics-forecast-list {
  display: grid;
  gap: 7px;
}

.page-content[data-route="analytics"] .analytics-funnel-row,
.page-content[data-route="analytics"] .analytics-forecast-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-funnel-row span,
.page-content[data-route="analytics"] .analytics-forecast-row span {
  font-size: 12px;
  color: #8e7b67;
}

.page-content[data-route="analytics"] .analytics-funnel-row strong,
.page-content[data-route="analytics"] .analytics-forecast-row strong {
  font-size: 13px;
  color: #3e2d21;
  white-space: nowrap;
}

.page-content[data-route="analytics"] .analytics-funnel-bar,
.page-content[data-route="analytics"] .analytics-forecast-bar {
  height: 12px;
  border-radius: 999px;
  background: #f7e7da;
  overflow: hidden;
}

.page-content[data-route="analytics"] .analytics-funnel-bar > span,
.page-content[data-route="analytics"] .analytics-forecast-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(140deg, #ef6b31 0%, #dc5623 100%);
}

.page-content[data-route="analytics"] .analytics-funnel-bar.is-booked > span {
  background: linear-gradient(140deg, #f18957 0%, #e06831 100%);
}

.page-content[data-route="analytics"] .analytics-funnel-bar.is-complete > span {
  background: linear-gradient(140deg, #f3a27e 0%, #e8885d 100%);
}

.page-content[data-route="analytics"] .analytics-funnel-bar.is-repeat > span {
  background: linear-gradient(140deg, #f4b79b 0%, #ea9a78 100%);
}

@media (max-width: 480px) {
  .page-content[data-route="analytics"] .analytics-top-grid {
    gap: 6px;
  }

  .page-content[data-route="analytics"] .analytics-top-value {
    font-size: 18px;
  }

  .page-content[data-route="analytics"] .analytics-top-label {
    font-size: 11px;
  }

  .page-content[data-route="analytics"] .analytics-week-day {
    min-height: 52px;
  }

  .page-content[data-route="analytics"] .analytics-week-day strong {
    font-size: 16px;
  }

  .page-content[data-route="analytics"] .analytics-metric-value {
    font-size: 24px;
  }

  .page-content[data-route="analytics"] .analytics-funnel-row,
  .page-content[data-route="analytics"] .analytics-forecast-row {
    grid-template-columns: 70px 1fr auto;
  }
}

@media (max-width: 390px) {
  .page-content[data-route="analytics"] .analytics-period-btn {
    min-height: 28px;
    padding: 0 12px;
    font-size: 12px;
  }

  .page-content[data-route="analytics"] .analytics-week-day {
    min-height: 48px;
    border-radius: 10px;
  }

  .page-content[data-route="analytics"] .analytics-week-day strong {
    font-size: 14px;
  }

  .page-content[data-route="analytics"] .analytics-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Analytics redesign v2 */
.page-content[data-route="analytics"] .analytics-page {
  display: grid;
  gap: 10px;
}

.page-content[data-route="analytics"] .analytics-hero-card {
  margin-top: 0;
  border-radius: 24px 24px 16px 16px;
  border: 1px solid #d55a26;
  background: linear-gradient(170deg, #e85d24 0%, #df551f 100%);
  color: #ffffff;
  padding: 14px 14px 12px;
  box-shadow: 0 14px 26px rgba(223, 85, 31, 0.22);
  position: relative;
  overflow: hidden;
}

.page-content[data-route="analytics"] .analytics-hero-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.page-content[data-route="analytics"] .analytics-hero-title {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.page-content[data-route="analytics"] .analytics-hero-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 241, 230, 0.98);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.page-content[data-route="analytics"] .analytics-period-card {
  border-radius: 18px;
  border: 1px solid #eadccd;
  background: #fffaf4;
  padding: 10px;
  display: grid;
  gap: 9px;
}

.page-content[data-route="analytics"] .analytics-period-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.page-content[data-route="analytics"] .analytics-period-btn {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #e6d8c9;
  background: #fff7ee;
  color: #857563;
  font-size: 12px;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-period-btn.is-active {
  background: linear-gradient(140deg, #ef6b31 0%, #dc5522 100%);
  border-color: #dd5522;
  color: #ffffff;
}

.page-content[data-route="analytics"] .analytics-period-btn:disabled {
  opacity: 0.55;
}

.page-content[data-route="analytics"] .analytics-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.page-content[data-route="analytics"] .analytics-week-day {
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid #eadbcc;
  background: #ffffff;
  display: grid;
  place-items: center;
  gap: 1px;
  color: #8a7864;
  padding: 4px 2px;
}

.page-content[data-route="analytics"] .analytics-week-day span {
  font-size: 10px;
  text-transform: uppercase;
}

.page-content[data-route="analytics"] .analytics-week-day strong {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #4f3a2b;
}

.page-content[data-route="analytics"] .analytics-week-day em {
  font-style: normal;
  min-height: 11px;
  font-size: 11px;
  color: #d46a36;
}

.page-content[data-route="analytics"] .analytics-week-day.is-active {
  border-color: #df5823;
  background: #fff1e5;
}

.page-content[data-route="analytics"] .analytics-revenue-card {
  border-radius: 18px;
  border: 1px solid #eaded0;
  background: #fffdf9;
  padding: 12px;
  display: grid;
  gap: 7px;
}

.page-content[data-route="analytics"] .analytics-revenue-title {
  margin: 0;
  text-transform: uppercase;
  color: #93816f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-content[data-route="analytics"] .analytics-revenue-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.page-content[data-route="analytics"] .analytics-revenue-value {
  margin: 0;
  font-size: 46px;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #1e140d;
}

.page-content[data-route="analytics"] .analytics-trend-chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #e0ded7;
  background: #f4f3ef;
  color: #6d665e;
  white-space: nowrap;
}

.page-content[data-route="analytics"] .analytics-trend-chip.is-positive {
  background: #eaf8ee;
  border-color: #cbead4;
  color: #2b7c4a;
}

.page-content[data-route="analytics"] .analytics-trend-chip.is-negative {
  background: #fdeeed;
  border-color: #f4cdc8;
  color: #bf4f42;
}

.page-content[data-route="analytics"] .analytics-trend-chip.is-neutral {
  background: #f5f2ef;
  border-color: #e7ddd3;
  color: #786e63;
}

.page-content[data-route="analytics"] .analytics-revenue-compare {
  margin: 0;
  color: #8f7d6a;
  font-size: 13px;
}

.page-content[data-route="analytics"] .analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-metric-card {
  border-radius: 14px;
  border: 1px solid #eadfd1;
  background: #fffdf9;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.page-content[data-route="analytics"] .analytics-metric-title {
  margin: 0;
  text-transform: uppercase;
  color: #907d6a;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-metric-value {
  margin: 0;
  color: #1f140d;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.page-content[data-route="analytics"] .analytics-metric-hint {
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #e7ddd2;
  background: #f8f3ec;
  color: #8f7d6b;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-metric-hint.is-positive {
  background: #eaf8ee;
  border-color: #c7e9d2;
  color: #2d7a49;
}

.page-content[data-route="analytics"] .analytics-metric-hint.is-negative {
  background: #fdeeed;
  border-color: #f3cec9;
  color: #be4f45;
}

.page-content[data-route="analytics"] .analytics-metric-hint.is-neutral {
  background: #f5f3f0;
  border-color: #e5ddd3;
  color: #756a5e;
}

.page-content[data-route="analytics"] .analytics-chart-card,
.page-content[data-route="analytics"] .analytics-section-block,
.page-content[data-route="analytics"] .analytics-clients-card {
  border-radius: 18px;
  border: 1px solid #eadccd;
  background: #fffaf4;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.page-content[data-route="analytics"] .analytics-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.page-content[data-route="analytics"] .analytics-section-title {
  margin: 0;
  text-transform: uppercase;
  color: #8b7765;
  letter-spacing: 0.03em;
  font-size: 13px;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-chart-caption {
  color: #a28f7c;
  font-size: 12px;
  text-transform: uppercase;
}

.page-content[data-route="analytics"] .analytics-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 8px;
  align-items: end;
}

.page-content[data-route="analytics"] .analytics-bar-column {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.page-content[data-route="analytics"] .analytics-bar-value {
  font-size: 10px;
  color: #8f7d6a;
  min-height: 12px;
}

.page-content[data-route="analytics"] .analytics-bar-track {
  width: 100%;
  height: 86px;
  border-radius: 10px;
  border: 1px solid #eedfce;
  background: #fff6ec;
  position: relative;
  overflow: hidden;
}

.page-content[data-route="analytics"] .analytics-bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f07a3e 0%, #de5723 100%);
  min-height: 4px;
}

.page-content[data-route="analytics"] .analytics-bar-label {
  color: #948270;
  font-size: 11px;
  text-transform: uppercase;
}

.page-content[data-route="analytics"] .analytics-services-list {
  display: grid;
  gap: 7px;
}

.page-content[data-route="analytics"] .analytics-service-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) minmax(58px, 1fr) 52px;
  gap: 8px;
  align-items: center;
}

.page-content[data-route="analytics"] .analytics-service-rank {
  color: #b09a85;
  font-size: 13px;
  font-weight: 700;
}

.page-content[data-route="analytics"] .analytics-service-title {
  color: #2d1f15;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.2;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-content[data-route="analytics"] .analytics-service-bar {
  height: 8px;
  border-radius: 999px;
  background: #f3e7db;
  overflow: hidden;
}

.page-content[data-route="analytics"] .analytics-service-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, #eb6d33 0%, #d9521e 100%);
}

.page-content[data-route="analytics"] .analytics-service-count {
  color: #8a7865;
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.page-content[data-route="analytics"] .analytics-empty-state {
  margin: 0;
  color: #9a8773;
  font-size: 13px;
}

.page-content[data-route="analytics"] .analytics-best-client {
  border-radius: 14px;
  border: 1px solid #e8d7c6;
  background: linear-gradient(180deg, #fffdf9 0%, #fff4e7 100%);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-content[data-route="analytics"] .analytics-best-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #9a4f22;
  background: #ffe6d0;
  border: 1px solid #f3c9a1;
}

.page-content[data-route="analytics"] .analytics-best-client-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.page-content[data-route="analytics"] .analytics-best-client-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #22160f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-content[data-route="analytics"] .analytics-best-client-meta {
  margin: 0;
  color: #8f7b68;
  font-size: 12px;
}

.page-content[data-route="analytics"] .analytics-best-client-tag {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #f2bf93;
  background: #fff1e4;
  color: #a05627;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.page-content[data-route="analytics"] .analytics-clients-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ecdccb;
}

.page-content[data-route="analytics"] .analytics-clients-row:last-child {
  border-bottom: 0;
}

.page-content[data-route="analytics"] .analytics-clients-row span {
  color: #867461;
  font-size: 14px;
}

.page-content[data-route="analytics"] .analytics-clients-row strong {
  color: #2a1b12;
  font-size: 16px;
}

@media (max-width: 480px) {
  .page-content[data-route="analytics"] .analytics-hero-title {
    font-size: 26px;
  }

  .page-content[data-route="analytics"] .analytics-hero-subtitle {
    font-size: 12px;
  }

  .page-content[data-route="analytics"] .analytics-week-day strong {
    font-size: 18px;
  }

  .page-content[data-route="analytics"] .analytics-revenue-value {
    font-size: 34px;
  }

  .page-content[data-route="analytics"] .analytics-revenue-title {
    font-size: 11px;
  }

  .page-content[data-route="analytics"] .analytics-revenue-compare {
    font-size: 12px;
  }

  .page-content[data-route="analytics"] .analytics-metric-value {
    font-size: 28px;
  }

  .page-content[data-route="analytics"] .analytics-metric-title {
    font-size: 11px;
  }

  .page-content[data-route="analytics"] .analytics-metric-hint {
    font-size: 10px;
  }

  .page-content[data-route="analytics"] .analytics-section-title {
    font-size: 12px;
  }

  .page-content[data-route="analytics"] .analytics-trend-chip {
    font-size: 12px;
    padding: 3px 9px;
  }

  .page-content[data-route="analytics"] .analytics-service-row {
    grid-template-columns: 18px minmax(0, 1fr) minmax(50px, 1fr) 46px;
  }

  .page-content[data-route="analytics"] .analytics-service-title {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .page-content[data-route="analytics"] .analytics-period-switch {
    gap: 5px;
  }

  .page-content[data-route="analytics"] .analytics-period-btn {
    min-height: 28px;
    font-size: 11px;
    padding: 0 8px;
  }

  .page-content[data-route="analytics"] .analytics-week-day {
    min-height: 56px;
  }

  .page-content[data-route="analytics"] .analytics-week-day strong {
    font-size: 16px;
  }

  .page-content[data-route="analytics"] .analytics-hero-title {
    font-size: 23px;
  }

  .page-content[data-route="analytics"] .analytics-hero-subtitle {
    font-size: 11px;
  }

  .page-content[data-route="analytics"] .analytics-revenue-value {
    font-size: 30px;
  }

  .page-content[data-route="analytics"] .analytics-revenue-title {
    font-size: 10px;
  }

  .page-content[data-route="analytics"] .analytics-revenue-compare {
    font-size: 11px;
  }

  .page-content[data-route="analytics"] .analytics-metric-value {
    font-size: 24px;
  }

  .page-content[data-route="analytics"] .analytics-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-content[data-route="analytics"] .analytics-bar-track {
    height: 76px;
  }

  .page-content[data-route="analytics"] .analytics-clients-row span {
    font-size: 13px;
  }

  .page-content[data-route="analytics"] .analytics-clients-row strong {
    font-size: 14px;
  }
}

/* Unified glass headers and typography (non-dashboard) */
.page-content[data-route="clients"] .clients-toolbar-hero,
.page-content[data-route="profile"] .profile-menu-hero,
.page-content[data-route="analytics"] .analytics-hero-card,
.page-content[data-route="clients"] .client-drill-hero,
.page-content[data-route="clients"] .booking-drill-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.18) 0 26%, transparent 27%),
    linear-gradient(168deg, rgba(232, 93, 36, 0.96) 0%, rgba(223, 85, 31, 0.94) 62%, rgba(176, 64, 16, 0.9) 100%);
  border-color: rgba(214, 97, 43, 0.52);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
  box-shadow:
    0 12px 24px rgba(176, 64, 16, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.page-content[data-route="clients"] .clients-toolbar-hero::before,
.page-content[data-route="profile"] .profile-menu-hero::before,
.page-content[data-route="analytics"] .analytics-hero-card::before,
.page-content[data-route="clients"] .client-drill-hero::before,
.page-content[data-route="clients"] .booking-drill-hero::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.page-content[data-route="clients"] .clients-toolbar-hero::after,
.page-content[data-route="profile"] .profile-menu-hero::after,
.page-content[data-route="analytics"] .analytics-hero-card::after,
.page-content[data-route="clients"] .client-drill-hero::after,
.page-content[data-route="clients"] .booking-drill-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 168px;
  height: 168px;
  transform: translate(44%, -44%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 36%, rgba(255, 255, 255, 0.34) 0 30%, rgba(255, 255, 255, 0.08) 62%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-content[data-route="clients"] .clients-toolbar-hero > *,
.page-content[data-route="profile"] .profile-menu-hero > *,
.page-content[data-route="analytics"] .analytics-hero-card > *,
.page-content[data-route="clients"] .client-drill-hero > *,
.page-content[data-route="clients"] .booking-drill-hero > * {
  position: relative;
  z-index: 1;
}

.page-content[data-route="clients"] .clients-toolbar-title,
.page-content[data-route="analytics"] .analytics-hero-title,
.page-content[data-route="profile"] .profile-menu-hero-title {
  font-size: clamp(30px, 7.4vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.page-content[data-route="analytics"] .analytics-hero-subtitle,
.page-content[data-route="profile"] .profile-menu-hero-subtitle {
  font-weight: 500;
}

@media (max-width: 480px) {
  .page-content[data-route="clients"] .clients-toolbar-title,
  .page-content[data-route="analytics"] .analytics-hero-title,
  .page-content[data-route="profile"] .profile-menu-hero-title {
    font-size: clamp(24px, 8.2vw, 30px);
    font-weight: 600;
  }

  .page-content[data-route="clients"] .clients-toolbar-hero::after,
  .page-content[data-route="profile"] .profile-menu-hero::after,
  .page-content[data-route="analytics"] .analytics-hero-card::after,
  .page-content[data-route="clients"] .client-drill-hero::after,
  .page-content[data-route="clients"] .booking-drill-hero::after {
    width: 152px;
    height: 152px;
    transform: translate(46%, -46%);
  }
}

@media (max-width: 390px) {
  .page-content[data-route="clients"] .clients-toolbar-title,
  .page-content[data-route="analytics"] .analytics-hero-title,
  .page-content[data-route="profile"] .profile-menu-hero-title {
    font-size: clamp(22px, 7.9vw, 27px);
    font-weight: 600;
  }

  .page-content[data-route="clients"] .clients-toolbar-hero::after,
  .page-content[data-route="profile"] .profile-menu-hero::after,
  .page-content[data-route="analytics"] .analytics-hero-card::after,
  .page-content[data-route="clients"] .client-drill-hero::after,
  .page-content[data-route="clients"] .booking-drill-hero::after {
    width: 140px;
    height: 140px;
    transform: translate(48%, -48%);
  }
}

