:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #68706d;
  --paper: #f6f8f7;
  --panel: #ffffff;
  --line: #d9dfdc;
  --teal: #163f3d;
  --teal-strong: #0f302e;
  --clay: #b85f43;
  --gold: #b9903b;
  --rose: #8f3141;
  --blue: #2f5f9f;
  --shadow: 0 16px 40px rgba(21, 29, 28, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(22, 63, 61, 0.04), transparent 340px),
    var(--paper);
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #111;
}

.header-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.header-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 13, 0.82), rgba(10, 14, 13, 0.58) 42%, rgba(10, 14, 13, 0.18));
}

.header-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 46px;
  color: #fff;
}

.client-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.shop-brand {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  text-decoration: none;
}

.shop-brand img {
  display: block;
  width: 100%;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}

.admin-brand-logo {
  display: block;
  width: 136px;
  max-height: 64px;
  margin: 0 0 12px;
  object-fit: contain;
  object-position: left center;
}

.client-account-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-login-open {
  min-height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.client-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.shop-kicker,
.section-label {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-kicker {
  color: #f1c46b;
}

.header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 10px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.shop-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.primary-action,
.secondary-action,
.danger-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  letter-spacing: 0;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.primary-action {
  width: 100%;
  margin-top: 10px;
  color: #fff;
  background: var(--teal);
  padding: 0 18px;
}

.primary-action:disabled,
.secondary-action:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.secondary-action,
.danger-action {
  color: var(--teal-strong);
  background: #fff;
  border-color: var(--line);
  padding: 0 12px;
}

.danger-action {
  color: var(--rose);
}

.icon-button {
  width: 38px;
  min-height: 38px;
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}

.secondary-action:hover,
.danger-action:hover,
.icon-button:hover,
.primary-action:not(:disabled):hover,
.slot-button:hover {
  transform: translateY(-1px);
}

.primary-action:not(:disabled):hover {
  background: var(--teal-strong);
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workspace {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 56px;
  position: relative;
  z-index: 2;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.view-grid,
.admin-layout {
  display: grid;
  gap: 18px;
}

.client-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
  border: 1px solid rgba(217, 223, 220, 0.88);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.field-grid {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 6px;
}

label span,
.inline-filter span {
  color: #47504c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

input,
select,
textarea {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 63, 61, 0.12);
}

textarea {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.35;
}

.native-service-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.service-options {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.booking-panel .booking-step {
  display: none;
}

.booking-panel.has-service-selected .booking-google-step,
.booking-panel.is-account-signup-open .booking-google-step,
.booking-panel.has-service-selected.is-google-connected .booking-step {
  display: grid;
}

.booking-panel.has-service-selected.has-client-account .client-profile-card,
.booking-panel.is-account-signup-open.has-client-account .client-profile-card {
  display: grid;
}

.booking-panel.has-service-selected.is-google-connected .booking-submit-step {
  display: inline-flex;
}

.booking-date-step {
  grid-column: 1 / -1;
  max-width: 360px;
}

.google-connect {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e8eaea;
  border-radius: var(--radius);
  background: #fafbfb;
}

.client-account-gate {
  align-items: stretch;
  justify-content: stretch;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfdfc, #f6faf8);
}

.client-account-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.client-account-heading h3 {
  margin: 0 0 4px;
  color: var(--teal-strong);
  font-size: 1.05rem;
}

.client-account-options {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1.18fr);
  gap: 12px;
}

.client-account-option,
.client-verification-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #dfe8e4;
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.client-google-option {
  align-content: start;
}

.client-account-option strong,
.client-verification-panel strong {
  display: block;
  color: var(--teal-strong);
  line-height: 1.2;
}

.client-account-option span,
.client-verification-panel span,
.client-account-helper {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

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

.client-account-helper {
  margin: -2px 0 0;
}

.client-verification-panel {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.45fr) auto;
  align-items: end;
  border-color: rgba(22, 63, 61, 0.28);
  background: #f7fbf9;
}

.client-verification-panel label {
  min-width: 0;
}

.client-account-gate.is-connected {
  border-color: rgba(22, 63, 61, 0.24);
  background: linear-gradient(180deg, rgba(22, 63, 61, 0.06), rgba(22, 63, 61, 0.025));
}

.client-account-gate.is-connected .client-account-options,
.client-account-gate.is-pending .client-account-options {
  display: none;
}

.google-connect-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.google-connect-copy > div {
  min-width: 0;
  flex: 1;
}

.google-connect h3 {
  margin-bottom: 2px;
  font-size: 0.88rem;
  color: #202124;
}

.google-connect p {
  margin: 0;
  color: #5f6368;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.google-signin-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 260px !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px;
  flex: 0 0 260px !important;
  overflow: hidden !important;
}

#clientGoogleButton {
  width: 260px !important;
  max-width: 100% !important;
  height: 40px !important;
  max-height: 40px !important;
  flex: 0 0 260px !important;
  overflow: hidden !important;
}

.google-signin-slot > div,
.google-signin-slot [role="button"],
#clientGoogleButton > div,
#clientGoogleButton [role="button"] {
  width: 260px !important;
  max-width: 100% !important;
  height: 40px !important;
  max-height: 40px !important;
}

.google-signin-slot iframe,
#clientGoogleButton iframe {
  width: 260px !important;
  max-width: 100% !important;
  height: 40px !important;
  max-height: 40px !important;
}

.google-signin-slot .L6cTce,
#clientGoogleButton .L6cTce {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.google-connect.is-connected {
  background: linear-gradient(135deg, rgba(22, 63, 61, 0.08), rgba(22, 63, 61, 0.04));
  border-color: rgba(22, 63, 61, 0.2);
}

.google-config-hint {
  margin: 0;
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.google-connect.is-connected .google-signin-slot {
  display: none;
}

.client-profile-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.client-profile-card.is-verified-contact {
  gap: 4px;
  border-color: rgba(22, 63, 61, 0.18);
  background: #f7fbf9;
}

.booking-client-step {
  grid-column: 1 / -1;
}

.booking-client-step label {
  grid-column: 1 / -1;
}

.client-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-profile-heading strong,
.client-profile-heading span {
  display: block;
}

.client-profile-heading span {
  color: var(--muted);
  font-size: 0.88rem;
}

.client-phone-actions,
.booking-card-actions,
.client-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-card-actions {
  margin-top: 10px;
}

.client-login-panel,
.client-account-page {
  grid-column: 1 / -1;
}

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

.client-create-account-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(22, 63, 61, 0.18);
  border-radius: var(--radius);
  background: #f7fbf9;
}

.client-create-account-cta strong,
.client-create-account-cta span {
  display: block;
}

.client-create-account-cta strong {
  color: var(--teal-strong);
}

.client-create-account-cta span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.client-password-state {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.client-password-state span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.client-password-state strong {
  color: var(--teal-strong);
}

.client-profile-actions .primary-action {
  width: auto;
  margin-top: 0;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 750;
}

.service-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1.35fr) minmax(82px, 0.55fr) minmax(82px, 0.55fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 78px;
  border: 1px solid #dce4e1;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(21, 29, 28, 0.06);
  padding: 12px;
  text-align: left;
}

.service-option:hover {
  border-color: rgba(22, 63, 61, 0.38);
  background: #fbfdfc;
}

.service-option.is-selected {
  border-color: var(--teal);
  background: linear-gradient(180deg, #f4fbf8, #fff);
  box-shadow: 0 0 0 3px rgba(22, 63, 61, 0.1), 0 12px 28px rgba(21, 29, 28, 0.08);
}

.service-options.is-collapsed-choice .service-option {
  min-height: 72px;
}

.service-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: transparent;
  background: #f7faf9;
}

.service-check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.service-option.is-selected .service-check {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.service-cell {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.service-cell span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-cell strong {
  min-width: 0;
  color: var(--teal-strong);
  font-size: 0.98rem;
  line-height: 1.12;
}

.service-name-cell strong {
  font-size: 1.05rem;
}

.service-badge {
  justify-self: start;
  width: fit-content;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(184, 95, 67, 0.14);
  color: #7b3c29;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: none;
}

.service-action {
  justify-self: start;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: none;
}

.service-name-cell small {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.slot-block {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfa;
}

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

.muted {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  min-height: 44px;
}

.slot-button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--teal-strong);
  font-weight: 800;
}

.slot-button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.slot-button.is-selected {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.slot-button.is-selected small {
  color: rgba(255, 255, 255, 0.78);
}

.barber-preference {
  display: grid;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.reminder-builder {
  display: grid;
  gap: 14px;
  margin: -4px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.shop-profile-panel {
  display: grid;
  gap: 16px;
}

.shop-profile-heading {
  align-items: start;
}

.shop-profile-address,
.shop-profile-actions {
  grid-column: 1 / -1;
}

.shop-profile-address textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.shop-profile-actions {
  display: flex;
  justify-content: flex-end;
}

.shop-profile-actions .primary-action {
  width: auto;
  min-width: 190px;
}

.manager-profile-panel {
  display: grid;
  gap: 16px;
}

.manager-profile-heading {
  align-items: start;
}

.manager-profile-form {
  display: grid;
  gap: 16px;
}

.manager-profile-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.manager-profile-preview span,
.manager-profile-preview small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.manager-profile-preview strong {
  display: block;
  margin: 3px 0;
  color: var(--teal-strong);
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.manager-profile-photo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.manager-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-profile-wide,
.manager-profile-save,
.manager-profile-note {
  grid-column: 1 / -1;
}

.manager-profile-save {
  width: auto;
  min-width: 210px;
  justify-self: end;
}

.reminder-center-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(22, 63, 61, 0.04), rgba(22, 63, 61, 0.01) 140px),
    #fff;
}

.reminder-center-heading {
  align-items: start;
  gap: 16px;
}

.reminder-center-copy,
.reminder-channel-copy {
  max-width: 62ch;
  margin-bottom: 0;
}

.reminder-center-actions,
.reminder-channel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.reminder-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.reminder-tab {
  display: grid;
  gap: 3px;
  min-height: 62px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.reminder-tab span {
  color: var(--teal-strong);
  font-size: 0.92rem;
  font-weight: 850;
}

.reminder-tab small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.reminder-tab.is-active {
  border-color: rgba(22, 63, 61, 0.18);
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 27, 26, 0.08);
}

.reminder-page-stack {
  display: grid;
  gap: 16px;
}

.reminder-channel-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 27, 26, 0.08);
}

.reminder-channel-card[hidden] {
  display: none;
}

.reminder-channel-client {
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, rgba(47, 95, 159, 0.06), #fff 40%);
}

.reminder-channel-barber {
  border-top: 4px solid var(--gold);
  background: linear-gradient(180deg, rgba(185, 144, 59, 0.08), #fff 40%);
}

.reminder-channel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.reminder-add-button {
  flex: 0 0 auto;
  margin-top: 0;
}

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

.reminder-builder-header h3 {
  margin-bottom: 4px;
}

.reminder-help {
  max-width: 48ch;
  margin-bottom: 0;
}

.reminder-add-button {
  flex: 0 0 auto;
  margin-top: 2px;
}

.reminder-list {
  display: grid;
  gap: 12px;
}

.reminder-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.reminder-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dce4e1;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fcfefe, #f8fbfa);
}

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

.reminder-card-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--teal-strong);
}

.reminder-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.reminder-card-body {
  display: grid;
  gap: 12px;
}

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

.reminder-fields-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reminder-fields select,
.reminder-fields input {
  min-height: 42px;
}

.reminder-mode-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.reminder-inline-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.reminder-save-state.reminder-saving {
  color: #7d5f0d;
  background: rgba(185, 144, 59, 0.16);
}

.reminder-save-state.reminder-error {
  color: #7d2638;
  background: rgba(143, 49, 65, 0.14);
}

.reminder-save-state.reminder-saved {
  color: #16423c;
  background: rgba(22, 63, 61, 0.12);
}

.booking-reminder-text {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.3;
}

.barber-options {
  display: grid;
  gap: 10px;
}

.barber-option {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.barber-option:hover {
  border-color: rgba(22, 63, 61, 0.38);
  background: #fbfdfc;
}

.barber-option.is-selected {
  border-color: var(--teal);
  background: #f4fbf8;
  box-shadow: 0 0 0 3px rgba(22, 63, 61, 0.1);
}

.barber-card-photo,
.barber-auto-icon,
.roster-photo,
.admin-calendar-avatar,
.manager-info-photo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 52px;
}

.barber-auto-icon,
.barber-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-strong);
  background: #edf4f2;
  font-weight: 900;
}

.barber-auto-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.barber-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.barber-copy strong {
  min-width: 0;
  color: var(--teal-strong);
  line-height: 1.1;
}

.barber-copy span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.18;
}

.empty-state {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 650;
}

.source-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.client-pill,
.source-client_app {
  color: #103c74;
  background: rgba(47, 95, 159, 0.14);
}

.admin-pill,
.source-barber_admin {
  color: #5f310c;
  background: rgba(185, 144, 59, 0.18);
}

.source-ai_agent_phone {
  color: #0e4a47;
  background: rgba(22, 124, 116, 0.16);
}

.source-support_agent {
  color: #723042;
  background: rgba(184, 95, 67, 0.18);
}

.status-pill {
  color: #16423c;
  background: rgba(22, 63, 61, 0.12);
}

.status-cancelled {
  color: #7d2638;
  background: rgba(143, 49, 65, 0.14);
}

.status-warning {
  color: #73510f;
  background: rgba(185, 144, 59, 0.2);
}

.status-present {
  color: #0f5b45;
  background: rgba(22, 124, 84, 0.16);
}

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

.booking-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.booking-card strong {
  font-size: 1rem;
}

.booking-card-meta {
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
}

.availability-table-wrap,
.booking-table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  color: #4d5753;
  font-size: 0.74rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.availability-table input[type="time"] {
  min-height: 38px;
  padding: 0 8px;
}

.day-cell {
  min-width: 92px;
  font-weight: 850;
}

.open-toggle {
  width: 22px;
  min-height: 22px;
  accent-color: var(--teal);
}

.break-inputs {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(92px, 1fr);
  gap: 8px;
}

.block-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0 12px;
}

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

.blocked-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fbfa;
  color: #35403c;
  padding: 0 6px 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.blocked-chip button {
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--rose);
  padding: 0 7px;
  font-weight: 900;
}

.blocked-chip button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.request-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.request-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfa;
  padding: 12px;
}

.request-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.request-card-top div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.request-card-top strong {
  color: var(--teal-strong);
  line-height: 1.12;
}

.request-card-top span:not(.status-pill),
.request-decision,
.request-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.request-summary p strong {
  color: var(--teal-strong);
}

.request-change-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-change-list li {
  display: grid;
  gap: 3px;
  border-left: 3px solid rgba(22, 63, 61, 0.24);
  padding-left: 9px;
}

.request-change-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.request-change-list strong {
  color: #27312e;
  font-size: 0.86rem;
  line-height: 1.3;
}

.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.request-status-pending {
  color: #5f310c;
  background: rgba(185, 144, 59, 0.18);
}

.request-status-approved {
  color: #16423c;
  background: rgba(22, 63, 61, 0.12);
}

.request-status-rejected {
  color: #7d2638;
  background: rgba(143, 49, 65, 0.14);
}

.bookings-panel {
  margin-top: 0;
}

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

.inline-filter {
  min-width: 132px;
}

.inline-filter input,
.inline-filter select {
  min-height: 42px;
}

.booking-search-field {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.booking-search-control {
  position: relative;
  display: flex;
  align-items: center;
}

.booking-search-control input {
  padding-right: 44px;
}

.booking-search-clear {
  position: absolute;
  right: 6px;
  width: 30px;
  min-height: 30px;
  height: 30px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.booking-search-clear:hover {
  background: #eef2f0;
  color: var(--teal-strong);
}

.booking-result-meta {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.booking-table {
  min-width: 960px;
}

.booking-table td {
  font-size: 0.92rem;
}

.calendar-page {
  background:
    linear-gradient(180deg, #1d2422 0, #1d2422 188px, #eef2f0 188px),
    #eef2f0;
}

.calendar-phone-app {
  width: min(calc(100% - 28px), 1180px);
  min-height: calc(100svh - 28px);
}

.calendar-page .admin-app-top {
  padding-right: 22px;
  padding-left: 22px;
}

.calendar-panel {
  background: #fff;
}

.calendar-page .calendar-panel {
  min-height: calc(100svh - 248px);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.calendar-panel-heading {
  align-items: start;
  gap: 10px;
}

.calendar-week-summary {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  text-align: right;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 42px 42px minmax(150px, 1fr) auto 42px;
  gap: 8px;
  align-items: end;
}

.calendar-nav-button,
.calendar-search-button {
  width: 42px;
  height: 42px;
  border-color: rgba(22, 63, 61, 0.18);
  background: #fff;
}

.calendar-today-button {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.calendar-scope-field,
.calendar-date-field {
  display: grid;
  gap: 5px;
}

.calendar-scope-field span,
.calendar-date-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-scope-field select,
.calendar-date-field input {
  min-height: 42px;
}

.calendar-grid-wrap {
  display: grid;
  gap: 12px;
  width: 100%;
}

.booking-search-page {
  background: var(--paper);
}

.booking-search-page .mobile-section {
  background: #fff;
}

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

.booking-search-form label {
  display: grid;
  gap: 6px;
}

.booking-search-form label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.booking-search-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-search-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.booking-search-results {
  display: grid;
  gap: 12px;
}

.booking-search-result {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(22, 63, 61, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.booking-search-result-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.booking-search-result-head h3 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.booking-id-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.booking-search-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.booking-search-result-grid div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.booking-search-result-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-search-result-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.booking-search-result-actions {
  display: flex;
  justify-content: flex-end;
}

.calendar-grid-meta {
  display: grid;
  gap: 8px;
}

.calendar-scroll-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.calendar-day-jump {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.calendar-day-jump-button {
  appearance: none;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(22, 63, 61, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfefd, #f4f8f6);
  padding: 10px 11px;
  color: var(--teal-strong);
  text-align: left;
}

.calendar-day-jump-button:focus-visible {
  outline: 2px solid rgba(22, 63, 61, 0.38);
  outline-offset: 2px;
}

.calendar-day-jump-button strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.calendar-day-jump-button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.calendar-day-jump-button.is-active {
  border-color: rgba(22, 63, 61, 0.28);
  background: linear-gradient(180deg, #e8f3ef, #dcece7);
  box-shadow: 0 10px 24px rgba(20, 27, 26, 0.1);
}

.calendar-day-jump-button.is-today {
  box-shadow: inset 0 3px 0 var(--teal);
}

.calendar-day-jump-button.is-closed small {
  color: var(--rose);
}

.calendar-grid-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(21, 29, 28, 0.1);
  scroll-behavior: smooth;
}

.calendar-grid-scroll::-webkit-scrollbar,
.calendar-day-jump::-webkit-scrollbar {
  height: 10px;
}

.calendar-grid-scroll::-webkit-scrollbar-thumb,
.calendar-day-jump::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(104, 112, 109, 0.28);
  background-clip: padding-box;
}

.calendar-board {
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(136px, 1fr));
  grid-template-rows: 68px minmax(288px, calc(var(--calendar-hours) * 48px));
  min-width: 1024px;
  background: #fff;
}

.calendar-hours-1 { --calendar-hours: 1; --calendar-slots: 12; }
.calendar-hours-2 { --calendar-hours: 2; --calendar-slots: 24; }
.calendar-hours-3 { --calendar-hours: 3; --calendar-slots: 36; }
.calendar-hours-4 { --calendar-hours: 4; --calendar-slots: 48; }
.calendar-hours-5 { --calendar-hours: 5; --calendar-slots: 60; }
.calendar-hours-6 { --calendar-hours: 6; --calendar-slots: 72; }
.calendar-hours-7 { --calendar-hours: 7; --calendar-slots: 84; }
.calendar-hours-8 { --calendar-hours: 8; --calendar-slots: 96; }
.calendar-hours-9 { --calendar-hours: 9; --calendar-slots: 108; }
.calendar-hours-10 { --calendar-hours: 10; --calendar-slots: 120; }
.calendar-hours-11 { --calendar-hours: 11; --calendar-slots: 132; }
.calendar-hours-12 { --calendar-hours: 12; --calendar-slots: 144; }
.calendar-hours-13 { --calendar-hours: 13; --calendar-slots: 156; }
.calendar-hours-14 { --calendar-hours: 14; --calendar-slots: 168; }
.calendar-hours-15 { --calendar-hours: 15; --calendar-slots: 180; }
.calendar-hours-16 { --calendar-hours: 16; --calendar-slots: 192; }
.calendar-hours-17 { --calendar-hours: 17; --calendar-slots: 204; }
.calendar-hours-18 { --calendar-hours: 18; --calendar-slots: 216; }
.calendar-hours-19 { --calendar-hours: 19; --calendar-slots: 228; }
.calendar-hours-20 { --calendar-hours: 20; --calendar-slots: 240; }
.calendar-hours-21 { --calendar-hours: 21; --calendar-slots: 252; }
.calendar-hours-22 { --calendar-hours: 22; --calendar-slots: 264; }
.calendar-hours-23 { --calendar-hours: 23; --calendar-slots: 276; }
.calendar-hours-24 { --calendar-hours: 24; --calendar-slots: 288; }

.calendar-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  border-right: 1px solid #d7dfdb;
  border-bottom: 1px solid #cfd8d4;
  background: #f8fbfa;
  padding: 10px;
}

.calendar-corner span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  border-right: 1px solid #dfe6e3;
  border-bottom: 1px solid #cfd8d4;
  background: linear-gradient(180deg, #fbfdfc, #f2f6f4);
  padding: 10px;
  text-align: center;
}

.calendar-board > .calendar-day-heading:nth-child(8) {
  border-right: 0;
}

.calendar-day-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-day-heading strong {
  color: var(--teal-strong);
  font-size: 1rem;
  line-height: 1.1;
}

.calendar-day-heading small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
}

.calendar-day-heading.is-today {
  background: linear-gradient(180deg, #e8f3ef, #dcece7);
  box-shadow: inset 0 3px 0 var(--teal);
}

.calendar-day-heading.is-closed {
  background: linear-gradient(180deg, #f8f5f5, #f1eeee);
}

.calendar-time-body {
  position: sticky;
  left: 0;
  z-index: 4;
  height: calc(var(--calendar-hours) * 48px);
  min-height: calc(var(--calendar-hours) * 48px);
  border-right: 1px solid #d7dfdb;
  background: #fbfdfc;
}

.calendar-day-body {
  position: relative;
  min-width: 0;
  height: calc(var(--calendar-hours) * 48px);
  min-height: calc(var(--calendar-hours) * 48px);
  overflow: hidden;
  border-right: 1px solid #dfe6e3;
  background:
    linear-gradient(90deg, rgba(22, 63, 61, 0.028), transparent 18px),
    repeating-linear-gradient(180deg, #fff 0 47px, #edf1ef 47px 48px);
}

.calendar-day-body:last-child {
  border-right: 0;
}

.calendar-day-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(var(--calendar-slots), 4px);
}

.calendar-day-body.is-closed {
  background:
    repeating-linear-gradient(-45deg, rgba(143, 49, 65, 0.045) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(180deg, #fbf9f9 0 47px, #eee8e8 47px 48px);
}

.calendar-day-body.is-drop-target {
  background:
    linear-gradient(90deg, rgba(22, 63, 61, 0.07), transparent 24px),
    repeating-linear-gradient(180deg, #fbfffe 0 47px, #dbece7 47px 48px);
}

.calendar-day-body.is-invalid-drop {
  background:
    linear-gradient(90deg, rgba(143, 49, 65, 0.08), transparent 24px),
    repeating-linear-gradient(180deg, #fffafa 0 47px, #f2d9df 47px 48px);
}

.calendar-time-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  color: var(--muted);
  padding: 6px 8px 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.calendar-hour-row {
  height: 48px;
  border-bottom: 1px solid #edf1ef;
}

.calendar-hour-row:last-child {
  border-bottom: 0;
}

.calendar-booking {
  appearance: none;
  position: relative;
  grid-column: 1;
  justify-self: start;
  align-self: stretch;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid rgba(22, 63, 61, 0.34);
  border-left: 4px solid var(--teal);
  border-radius: 5px;
  background: linear-gradient(180deg, #f1faf7, #e6f3ef);
  color: var(--teal-strong);
  padding: 5px 7px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(21, 29, 28, 0.11);
}

.calendar-booking.is-draggable {
  cursor: grab;
}

.calendar-booking.is-dragging {
  cursor: grabbing;
  opacity: 0.45;
  transform: scale(0.985);
}

.calendar-drop-preview {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 32px;
  width: calc(100% - 14px);
  margin-left: 7px;
  overflow: hidden;
  border: 1px dashed rgba(22, 63, 61, 0.72);
  border-radius: 5px;
  background: rgba(22, 63, 61, 0.12);
  color: var(--teal-strong);
  padding: 5px 7px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}

.calendar-drop-preview.is-invalid {
  border-color: rgba(143, 49, 65, 0.76);
  background: rgba(143, 49, 65, 0.12);
  color: var(--rose);
}

.calendar-booking.is-short {
  gap: 1px;
  min-height: 34px;
  padding: 3px 6px;
}

.calendar-booking.is-compact {
  min-height: 40px;
  padding: 4px 7px;
}

.calendar-booking:focus-visible {
  outline: 2px solid rgba(22, 63, 61, 0.56);
  outline-offset: 2px;
}

.calendar-booking.cols-1 {
  width: calc(100% - 14px);
  margin-left: 7px;
}

.calendar-booking.cols-2 {
  width: calc((100% - 19px) / 2);
}

.calendar-booking.cols-2.col-0 {
  margin-left: 7px;
}

.calendar-booking.cols-2.col-1 {
  margin-left: calc(12px + ((100% - 19px) / 2));
}

.calendar-booking.cols-3 {
  width: calc((100% - 24px) / 3);
}

.calendar-booking.cols-3.col-0 {
  margin-left: 7px;
}

.calendar-booking.cols-3.col-1 {
  margin-left: calc(12px + ((100% - 24px) / 3));
}

.calendar-booking.cols-3.col-2 {
  margin-left: calc(17px + (((100% - 24px) / 3) * 2));
}

.calendar-booking.cols-4 {
  width: calc((100% - 29px) / 4);
}

.calendar-booking.cols-4.col-0 {
  margin-left: 7px;
}

.calendar-booking.cols-4.col-1 {
  margin-left: calc(12px + ((100% - 29px) / 4));
}

.calendar-booking.cols-4.col-2 {
  margin-left: calc(17px + (((100% - 29px) / 4) * 2));
}

.calendar-booking.cols-4.col-3 {
  margin-left: calc(22px + (((100% - 29px) / 4) * 3));
}

.calendar-booking strong,
.calendar-booking span,
.calendar-booking small,
.calendar-booking em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-booking strong {
  font-size: 0.72rem;
  line-height: 1.14;
}

.calendar-booking span {
  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1.12;
}

.calendar-booking.is-short strong {
  font-size: 0.68rem;
  line-height: 1.1;
}

.calendar-booking.is-short span {
  font-size: 0.61rem;
  line-height: 1.1;
}

.calendar-booking.is-roomy {
  justify-content: flex-start;
}

.calendar-booking.is-roomy span {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.calendar-booking small {
  color: var(--teal);
  font-size: 0.67rem;
  font-weight: 900;
}

.calendar-booking em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 750;
}

.calendar-unavailable-block {
  position: relative;
  grid-column: 1;
  align-self: stretch;
  justify-self: stretch;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(104, 112, 109, 0.12);
  border-bottom: 1px solid rgba(104, 112, 109, 0.12);
  background:
    repeating-linear-gradient(-45deg, rgba(104, 112, 109, 0.065) 0 7px, transparent 7px 14px),
    rgba(246, 248, 247, 0.74);
}

.calendar-unavailable-block span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.calendar-break-block {
  z-index: 2;
  border-top: 1px solid rgba(185, 144, 59, 0.28);
  border-bottom: 1px solid rgba(185, 144, 59, 0.28);
  background:
    repeating-linear-gradient(-45deg, rgba(185, 144, 59, 0.12) 0 8px, transparent 8px 16px),
    rgba(255, 248, 226, 0.92);
}

.calendar-break-block span {
  border: 1px solid rgba(185, 144, 59, 0.28);
  border-radius: 999px;
  background: #fff8e2;
  color: #7a5a16;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-closed-block {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: start center;
  padding-top: 18px;
  color: var(--rose);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-closed-block span {
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-now-line {
  position: relative;
  grid-column: 1;
  align-self: start;
  justify-self: stretch;
  z-index: 4;
  height: 0;
  border-top: 2px solid var(--rose);
}

.calendar-now-line span {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.calendar-detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-items: end;
  justify-items: center;
  pointer-events: none;
}

.calendar-detail-sheet[hidden] {
  display: none !important;
}

.calendar-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 19, 18, 0.42);
  pointer-events: auto;
}

.calendar-detail-card {
  position: relative;
  width: min(100%, 430px);
  max-height: min(78vh, 680px);
  overflow-y: auto;
  pointer-events: auto;
  border-radius: 24px 24px 0 0;
  background: #fdfefe;
  box-shadow: 0 -20px 60px rgba(12, 19, 18, 0.24);
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
}

.calendar-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-detail-head h3 {
  margin-bottom: 0;
  color: var(--teal-strong);
}

.calendar-detail-body {
  display: grid;
  gap: 10px;
}

.calendar-detail-row,
.calendar-detail-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(217, 223, 220, 0.92);
  border-radius: 14px;
  background: #fff;
  padding: 12px 13px;
}

.calendar-detail-row span,
.calendar-detail-note span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-detail-row strong {
  color: var(--teal-strong);
  font-size: 0.9rem;
  line-height: 1.3;
}

.calendar-detail-note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.calendar-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.calendar-detail-actions .secondary-action,
.calendar-detail-actions .danger-action {
  flex: 1 1 118px;
}

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

.client-cell span {
  color: var(--muted);
  font-size: 0.83rem;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

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

.chatbot-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 25;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: calc(100vw - 36px);
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(15, 48, 46, 0.18);
  border-radius: 999px;
  color: #fff;
  background: var(--teal-strong);
  box-shadow: 0 16px 32px rgba(15, 48, 46, 0.22);
  font-size: 0.92rem;
  font-weight: 850;
}

.chatbot-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.chatbot-launcher svg,
.chatbot-head svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-panel,
.chatbot-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(380px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 108px));
  overflow: hidden;
  border: 1px solid rgba(22, 63, 61, 0.14);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(21, 29, 28, 0.18);
}

.chatbot-head,
.chatbot-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.chatbot-head strong,
.chatbot-head span,
.chatbot-page-header h1,
.chatbot-page-header p {
  display: block;
  margin: 0;
}

.chatbot-head strong,
.chatbot-page-header h1 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.chatbot-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.chatbot-empty {
  display: grid;
  gap: 4px;
  margin: auto 0;
  padding: 18px;
  border: 1px dashed #cbd8d3;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.chatbot-empty strong {
  color: var(--ink);
}

.chatbot-message {
  display: grid;
  gap: 4px;
  max-width: 86%;
}

.chatbot-message span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.chatbot-message p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chatbot-message-assistant {
  align-self: flex-start;
}

.chatbot-message-assistant p {
  border: 1px solid var(--line);
  background: #fff;
}

.chatbot-message-user {
  align-self: flex-end;
  justify-items: end;
}

.chatbot-message-user p {
  color: #fff;
  background: var(--teal);
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chatbot-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
}

.chatbot-form .primary-action {
  min-height: 42px;
  padding-inline: 14px;
}

.chatbot-status {
  min-height: 20px;
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chatbot-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.chatbot-page {
  width: min(760px, 100%);
  height: min(760px, calc(100vh - 32px));
}

.chatbot-page-header {
  justify-content: flex-start;
}

.chatbot-page-header .secondary-action {
  min-height: 38px;
}

.chatbot-page-header h1 {
  font-size: clamp(1.25rem, 4vw, 1.8rem);
}

.chatbot-page-messages {
  padding: 16px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background: var(--teal-strong);
  color: #fff;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-weight: 750;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .header-row,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .table-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 360px;
  }

  .header-content {
    width: min(100% - 24px, 1180px);
    padding-top: 42px;
  }

  .workspace {
    width: min(100% - 24px, 1180px);
  }

  .two-col,
  .block-form {
    grid-template-columns: 1fr;
  }

  .reminder-builder-header,
  .reminder-fields-two-col {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .reminder-segmented {
    grid-template-columns: 1fr;
  }

  .reminder-channel-header,
  .reminder-center-heading {
    flex-direction: column;
  }

  .reminder-center-actions,
  .reminder-channel-actions {
    justify-content: flex-start;
  }

  .service-option {
    grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto) minmax(72px, auto);
  }

  .service-option .service-cell:last-child {
    justify-self: end;
  }

  .panel {
    padding: 18px;
  }

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

  .table-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .table-actions .secondary-action,
  .table-actions .danger-action {
    width: 100%;
  }

  .google-connect {
    align-items: flex-start;
    flex-direction: column;
  }

  .google-signin-slot {
    justify-content: flex-start;
    width: min(280px, 100%);
    flex-basis: auto;
  }
}

.admin-app-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, #1d2422 0, #1d2422 220px, #dce2df 220px),
    #dce2df;
}

.admin-phone-app {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 80px rgba(0, 0, 0, 0.32);
}

.admin-app-top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid rgba(217, 223, 220, 0.82);
  background: rgba(246, 248, 247, 0.96);
  backdrop-filter: blur(16px);
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-center {
  position: relative;
}

.notification-toggle {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  padding: 0 4px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

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

.notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(340px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 140px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 48px rgba(17, 24, 22, 0.22);
  padding: 10px;
}

.notification-popover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 2px 2px 10px;
  margin-bottom: 8px;
}

.notification-popover-heading strong {
  color: var(--teal-strong);
  font-size: 0.94rem;
}

.notification-popover-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  border-radius: var(--radius);
  padding: 10px 6px;
}

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

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.notification-request .notification-dot {
  background: var(--gold);
}

.notification-approved .notification-dot {
  background: var(--teal);
}

.notification-rejected .notification-dot {
  background: var(--rose);
}

.notification-item strong {
  display: block;
  color: var(--teal-strong);
  font-size: 0.86rem;
  line-height: 1.18;
}

.notification-item p {
  margin: 4px 0;
  color: #3d4743;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.notification-item small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.notification-empty {
  min-height: 48px;
  padding: 8px 4px;
}

.admin-phone-app h1 {
  max-width: none;
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.admin-phone-app h2 {
  font-size: 1.08rem;
}

.admin-phone-app .section-label {
  margin-bottom: 4px;
}

.admin-identity {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-calendar-strip {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.admin-calendar-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-calendar-strip strong {
  display: block;
  margin-top: 2px;
  color: var(--teal-strong);
  line-height: 1.1;
}

.admin-calendar-photo {
  width: 52px;
  height: 52px;
}

.calendar-scope-stack {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
}

.calendar-stack-avatar {
  position: absolute;
  top: 0;
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(20, 27, 26, 0.12);
}

.calendar-stack-avatar-0 {
  left: 0;
  z-index: 2;
}

.calendar-stack-avatar-1 {
  right: 0;
  top: 14px;
  z-index: 1;
}

.admin-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.admin-quick-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
}

.admin-quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-quick-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-strong);
  font-size: 0.96rem;
  line-height: 1.15;
}

.app-icon-button {
  width: 42px;
  min-height: 42px;
  color: var(--teal-strong);
}

.mobile-section {
  padding: 18px 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.mobile-section + .mobile-section {
  margin-top: 10px;
}

.service-admin-section {
  display: grid;
  gap: 16px;
}

.client-risk-section,
.client-detail-section {
  display: grid;
  gap: 14px;
}

.client-risk-heading {
  align-items: start;
}

.client-risk-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-risk-summary div,
.client-detail-stats div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.client-risk-summary span,
.client-detail-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-risk-summary strong,
.client-detail-stats strong {
  color: var(--teal-strong);
  font-size: 1.3rem;
}

.client-risk-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.34fr);
  gap: 10px;
}

.client-risk-list {
  display: grid;
  gap: 8px;
}

.client-risk-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.client-risk-card:hover,
.client-risk-card.is-selected {
  border-color: rgba(22, 63, 61, 0.45);
  background: #f4faf8;
}

.client-risk-main,
.client-risk-main strong,
.client-risk-main small {
  display: block;
  min-width: 0;
}

.client-risk-main small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.client-risk-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.client-admin-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.client-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.client-detail-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-detail-head h2 {
  margin: 0;
}

.client-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.client-block-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
  min-width: 0;
  max-width: 100%;
}

.client-block-panel textarea {
  resize: vertical;
}

.client-history-table-wrap {
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
}

.client-history-table {
  min-width: 680px;
}

.attendance-prompt[hidden] {
  display: none;
}

.attendance-prompt {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(18px, env(safe-area-inset-top)) 14px 18px;
}

.attendance-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 22, 0.34);
}

.attendance-prompt-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
  max-height: min(78vh, 720px);
  overflow: auto;
  border: 1px solid rgba(22, 63, 61, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(14, 28, 28, 0.22);
  padding: 16px;
}

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

.attendance-prompt-head h2 {
  margin: 0;
}

.attendance-prompt-list {
  display: grid;
  gap: 10px;
}

.attendance-prompt-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.attendance-prompt-item strong,
.attendance-prompt-item span {
  display: block;
}

.attendance-prompt-item span {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.attendance-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.service-settings-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfdfc, #f6faf8);
  padding: 14px;
}

.service-settings-intro h3,
.service-catalog-toolbar h3 {
  margin: 0 0 4px;
  color: var(--teal-strong);
  font-size: 1rem;
}

.service-settings-intro p,
.service-catalog-toolbar p {
  margin: 0;
}

.service-settings-grid {
  display: grid;
  gap: 10px;
}

.service-slot-setting {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #e1e8e4;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.service-slot-setting span,
.service-offer-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-slot-setting small {
  line-height: 1.35;
}

.service-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.service-empty-state {
  display: grid;
  gap: 4px;
  align-items: start;
  border: 1px dashed #d8e2de;
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 16px;
}

.service-empty-state strong {
  color: var(--teal-strong);
}

.service-empty-state span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.service-editor-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(21, 29, 28, 0.055);
}

.service-record-card {
  gap: 0;
}

.service-record-card.is-delete-pending {
  border-color: rgba(143, 49, 65, 0.42);
  box-shadow: 0 0 0 3px rgba(143, 49, 65, 0.08), 0 10px 24px rgba(21, 29, 28, 0.055);
}

.service-record-summary {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.service-record-main {
  min-width: 0;
}

.service-record-main h3 {
  margin: 0 0 6px;
  color: var(--teal-strong);
  font-size: 1.04rem;
}

.service-record-description {
  margin: 0;
  color: #4f5b56;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.service-metric {
  display: grid;
  gap: 2px;
  min-height: 62px;
  border: 1px solid #e1e8e4;
  border-radius: var(--radius);
  background: #f9fbfa;
  padding: 10px;
}

.service-metric strong {
  color: var(--teal-strong);
  font-size: 1.08rem;
  line-height: 1.1;
}

.service-metric small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-provider-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.service-provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-provider-chip,
.service-provider-empty {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #dde7e2;
  border-radius: 999px;
  background: #f7fbf9;
  color: var(--teal-strong);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.service-provider-chip.is-inactive,
.service-provider-empty {
  color: var(--muted);
  background: #fff;
}

.service-delete-warning {
  display: grid;
  gap: 10px;
  margin: 0 14px;
  border: 1px solid rgba(143, 49, 65, 0.25);
  border-radius: var(--radius);
  background: rgba(143, 49, 65, 0.06);
  color: #71313b;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 750;
}

.service-delete-warning .secondary-action {
  min-height: 36px;
  justify-self: start;
}

.service-editor-details {
  border-top: 1px solid var(--line);
}

.service-editor-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--teal-strong);
  font-size: 0.88rem;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.service-editor-details summary::-webkit-details-marker {
  display: none;
}

.service-editor-details summary:focus-visible {
  outline: 3px solid rgba(22, 63, 61, 0.16);
  outline-offset: -3px;
}

.service-editor-details summary .icon {
  transition: transform 140ms ease;
}

.service-editor-details[open] summary .icon {
  transform: rotate(180deg);
}

.service-editor-body {
  display: grid;
  gap: 13px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
  padding: 14px;
}

.service-create-card {
  background: linear-gradient(180deg, rgba(22, 63, 61, 0.045), #fff 34%);
  padding: 14px;
}

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

.service-editor-heading h3 {
  margin: 0 0 4px;
  color: var(--teal-strong);
  font-size: 0.98rem;
}

.service-editor-heading p {
  margin: 0;
}

.service-delete-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

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

.service-editor-fields label {
  display: grid;
  gap: 5px;
}

.service-editor-fields label:last-child {
  grid-column: 1 / -1;
}

.service-editor-fields span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-editor-fields textarea {
  min-height: 72px;
  resize: vertical;
}

.service-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.service-editor-actions .secondary-action,
.service-editor-actions .danger-action {
  min-height: 40px;
}

.service-offer-grid {
  display: grid;
  gap: 8px;
  margin-top: 7px;
}

.service-offer-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid #e2e8e5;
  border-radius: var(--radius);
  background: #f9fbfa;
  padding: 8px 10px;
  color: var(--teal-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-offer-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.service-offer-option.is-disabled {
  opacity: 0.62;
}

.admin-action-chooser {
  display: grid;
  gap: 12px;
}

.admin-choice-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.admin-choice-button:hover {
  border-color: rgba(22, 63, 61, 0.38);
  background: #fbfdfc;
  transform: translateY(-1px);
}

.admin-choice-button.is-selected {
  border-color: var(--teal);
  background: #f4fbf8;
  box-shadow: 0 0 0 3px rgba(22, 63, 61, 0.1);
}

.admin-choice-button .icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--teal-strong);
  background: #edf4f2;
}

.admin-choice-button span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-choice-button strong,
.admin-choice-button small {
  display: block;
  min-width: 0;
}

.admin-choice-button strong {
  color: var(--teal-strong);
  line-height: 1.1;
}

.admin-choice-button small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.18;
}

.admin-phone-app .panel-heading {
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
}

.admin-phone-app .slot-block {
  padding: 14px;
  margin: 14px 0;
}

.admin-phone-app .slot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-phone-app .field-grid {
  gap: 12px;
}

.admin-phone-app .service-option {
  grid-template-columns: 28px minmax(0, 1fr) minmax(68px, auto) minmax(68px, auto);
  min-height: 74px;
  padding: 10px;
}

.admin-phone-app input,
.admin-phone-app select {
  min-height: 46px;
  border-color: #dfe5e2;
  background: #fbfcfc;
}

.admin-phone-app .service-offer-option input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
}

.admin-phone-app .primary-action {
  min-height: 48px;
}

.sticky-action {
  box-shadow: 0 12px 28px rgba(15, 48, 46, 0.22);
}

.admin-phone-app .availability-table,
.admin-phone-app .booking-table {
  min-width: 900px;
}

.admin-phone-app .availability-table-wrap,
.admin-phone-app .booking-table-wrap {
  margin-right: -16px;
  padding-right: 16px;
}

.mobile-table-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}

.mobile-table-actions .booking-search-field {
  grid-column: 1 / -1;
  min-width: 0;
}

.mobile-table-actions .inline-filter:not(.booking-search-field) {
  min-width: 0;
}

.admin-phone-app .toast,
.admin-app-page .toast {
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: calc(14px + env(safe-area-inset-bottom));
}

.admin-login-screen {
  display: grid;
  align-content: center;
}

.admin-login-card {
  border-bottom: 0;
}

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

.login-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 800;
}

.barber-roster {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.roster-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfa;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.roster-card.is-current {
  border-color: rgba(22, 63, 61, 0.38);
  background: #f4fbf8;
}

.roster-button:hover {
  border-color: rgba(22, 63, 61, 0.38);
  background: #fbfdfc;
  transform: translateY(-1px);
}

.roster-card strong,
.roster-card span {
  display: block;
  min-width: 0;
}

.roster-card strong {
  color: var(--teal-strong);
  line-height: 1.1;
}

.roster-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.roster-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 3px 12px;
  margin-top: 6px;
}

.roster-card .roster-contact-list span {
  margin-top: 0;
  overflow-wrap: anywhere;
  color: #33413d;
  font-size: 0.78rem;
  font-weight: 720;
}

.request-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 2px rgba(143, 49, 65, 0.12);
}

.manager-info-panel {
  display: grid;
  gap: 10px;
}

.manager-info-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.manager-info-copy {
  display: grid;
  gap: 9px;
}

.manager-info-copy div {
  display: grid;
  gap: 3px;
}

.manager-info-copy span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.manager-info-copy strong {
  min-width: 0;
  color: var(--teal-strong);
  font-size: 0.9rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.barber-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.barber-form label:nth-child(3),
.barber-form .secondary-action {
  grid-column: 1 / -1;
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.profile-form label:nth-child(3),
.profile-form label:nth-child(6),
.profile-form .secondary-action {
  grid-column: 1 / -1;
}

@media (min-width: 431px) {
  .admin-phone-app {
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: calc(100svh - 40px);
    border-radius: 28px;
    overflow: hidden;
  }
}

@media (min-width: 900px) {
  .admin-app-page {
    padding: 24px;
    background:
      radial-gradient(circle at top left, rgba(185, 144, 59, 0.16), transparent 340px),
      linear-gradient(180deg, #1d2422 0, #1d2422 240px, #dce2df 240px),
      #dce2df;
  }

  .admin-phone-app {
    width: min(1280px, calc(100vw - 48px));
    min-height: calc(100svh - 48px);
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
  }

  .calendar-phone-app {
    width: min(1720px, calc(100vw - 48px));
  }

  .admin-app-top {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.95fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 18px;
    padding: calc(22px + env(safe-area-inset-top)) 24px 22px;
  }

  .admin-calendar-strip,
  .admin-quick-stats {
    margin-top: 0;
  }

  .admin-action-chooser {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 24px;
  }

  .admin-choice-button {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 152px;
  }

  .admin-choice-button .icon {
    width: 46px;
    height: 46px;
  }

  .mobile-section {
    border: 1px solid rgba(217, 223, 220, 0.88);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(21, 29, 28, 0.08);
  }

  .mobile-section + .mobile-section {
    margin-top: 0;
  }

  #adminBookingView,
  #adminScheduleView,
  #adminTeamView,
  #adminReminderView {
    padding: 24px;
    gap: 18px;
  }

  #adminBookingView {
    grid-template-columns: minmax(380px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  #adminScheduleView {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  #serviceCatalogSection,
  #managerBarberInfoSection,
  #adminScheduleView > .mobile-section:nth-child(3) {
    grid-column: 1 / -1;
  }

  .service-settings-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .service-editor-list {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    align-items: start;
  }

  .service-editor-card {
    align-content: start;
    gap: 12px;
  }

  .service-record-card {
    gap: 0;
  }

  .service-record-summary {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.38fr);
    align-items: start;
  }

  .service-editor-fields {
    grid-template-columns: minmax(150px, 1.2fr) minmax(82px, 0.55fr) minmax(92px, 0.6fr);
    gap: 9px;
  }

  .service-editor-fields textarea {
    min-height: 58px;
  }

  .service-offer-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }

  .service-offer-option {
    min-height: 36px;
    padding: 7px 10px;
  }

  .service-create-card {
    max-width: 760px;
  }

  .admin-phone-app .availability-table,
  .admin-phone-app .booking-table {
    min-width: 100%;
  }

  .calendar-page .calendar-panel {
    min-height: calc(100svh - 300px);
    padding: 24px;
  }

  .calendar-toolbar {
    grid-template-columns: minmax(260px, 1.15fr) 44px 44px minmax(190px, 0.8fr) auto 44px;
    gap: 12px;
  }

  .calendar-day-jump {
    grid-template-columns: repeat(7, minmax(132px, 1fr));
  }

  .calendar-board {
    grid-template-columns: 76px repeat(7, minmax(150px, 1fr));
    min-width: 1180px;
  }

  .calendar-detail-card {
    width: min(560px, calc(100vw - 48px));
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .workspace,
  .header-content {
    width: min(1440px, calc(100% - 48px));
  }

  .client-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
  }

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

@media (max-width: 760px) {
  .calendar-page .admin-app-top {
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  }

  .calendar-page .calendar-panel {
    min-height: calc(100svh - 224px);
    padding: 18px 14px 16px;
    gap: 12px;
  }

  .calendar-week-summary {
    justify-content: flex-start;
    text-align: left;
  }

  .calendar-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .calendar-scope-field,
  .calendar-date-field {
    grid-column: 1 / -1;
  }

  .calendar-scope-field {
    grid-row: 1;
  }

  .calendar-date-field {
    grid-row: 2;
  }

  .calendar-nav-button[data-calendar-week="prev"] {
    grid-column: 1;
    grid-row: 3;
  }

  .calendar-nav-button,
  .calendar-search-button,
  .calendar-today-button {
    width: 100%;
  }

  .calendar-search-button {
    grid-column: 2;
    grid-row: 3;
  }

  .calendar-today-button {
    grid-column: 3;
    grid-row: 3;
  }

  .calendar-nav-button[data-calendar-week="next"] {
    grid-column: 4;
    grid-row: 3;
  }

  .calendar-day-jump {
    grid-template-columns: repeat(7, minmax(104px, 1fr));
  }

  .calendar-board {
    grid-template-columns: 68px repeat(7, minmax(128px, 1fr));
    min-width: 964px;
  }

  .admin-calendar-strip {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 9px;
  }

  .booking-search-form,
  .booking-search-result-grid {
    grid-template-columns: 1fr;
  }

  .booking-search-result-head,
  .booking-search-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-calendar-photo,
  .calendar-scope-stack,
  .barber-card-photo,
  .barber-auto-icon,
  .roster-photo,
  .admin-calendar-avatar,
  .manager-info-photo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .calendar-stack-avatar {
    width: 34px;
    height: 34px;
  }

  .calendar-stack-avatar-1 {
    top: 12px;
  }
}

@media (max-width: 380px) {
  .calendar-scroll-hint {
    font-size: 0.76rem;
  }

  .calendar-day-jump-button {
    min-height: 58px;
    padding: 9px 10px;
  }

  .admin-phone-app .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-option,
  .admin-phone-app .service-option {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .service-option .service-cell:nth-child(3),
  .service-option .service-cell:nth-child(4) {
    grid-column: 2;
  }

  .admin-quick-stats {
    grid-template-columns: 1fr;
  }

  .barber-form,
  .profile-form,
  .service-editor-fields {
    grid-template-columns: 1fr;
  }

  .barber-option {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }
}

/* UI refresh v31: production booking/admin surfaces without changing the app contract. */
:root {
  --ink: #141816;
  --muted: #66716c;
  --paper: #eef2f0;
  --panel: #ffffff;
  --line: #dce4e0;
  --teal: #0f4a43;
  --teal-strong: #0b302d;
  --clay: #b86b4e;
  --gold: #b48a37;
  --shadow: 0 18px 48px rgba(18, 28, 25, 0.09);
  --shadow-soft: 0 8px 24px rgba(18, 28, 25, 0.07);
}

body {
  background:
    linear-gradient(180deg, rgba(15, 74, 67, 0.06), transparent 360px),
    var(--paper);
}

.panel,
.mobile-section,
.calendar-grid-scroll,
.notification-popover,
.calendar-detail-card {
  border-color: rgba(220, 228, 224, 0.94);
  box-shadow: var(--shadow-soft);
}

.site-header {
  min-height: clamp(300px, 42vh, 430px);
}

.header-shade {
  background:
    linear-gradient(90deg, rgba(7, 12, 11, 0.88), rgba(7, 12, 11, 0.58) 44%, rgba(7, 12, 11, 0.1)),
    linear-gradient(180deg, rgba(7, 12, 11, 0.12), rgba(7, 12, 11, 0.44));
}

.header-content {
  padding: clamp(58px, 8vh, 82px) 0 clamp(42px, 7vh, 72px);
}

.header-content h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}

.shop-meta {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.brand-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.brand-credit img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.workspace {
  margin-top: -38px;
}

.client-workspace {
  width: min(1320px, calc(100% - 48px));
}

.client-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
}

.booking-panel {
  padding: clamp(22px, 3vw, 34px);
}

.client-appointments-panel {
  position: sticky;
  top: 18px;
  align-self: start;
}

.panel-heading {
  margin-bottom: 18px;
}

.section-label,
label span,
.inline-filter span,
.calendar-scope-field span,
.calendar-date-field span {
  letter-spacing: 0;
}

input,
select,
textarea {
  border-color: #dfe6e2;
  background: #fbfdfc;
}

.primary-action {
  min-height: 50px;
  box-shadow: 0 12px 28px rgba(15, 74, 67, 0.18);
}

.secondary-action,
.danger-action,
.icon-button {
  background: #fff;
}

.google-connect {
  border-color: #e3e8e5;
  background: #fbfcfc;
}

.google-connect.is-connected {
  background: linear-gradient(180deg, rgba(15, 74, 67, 0.08), rgba(15, 74, 67, 0.035));
}

.service-option {
  min-height: 76px;
  border-color: #dfe7e3;
  background: #fff;
  box-shadow: none;
}

.service-option.is-selected {
  border-color: rgba(15, 74, 67, 0.42);
  background: linear-gradient(180deg, #f8fcfa, #fff);
  box-shadow: 0 0 0 3px rgba(15, 74, 67, 0.08);
}

.service-options.is-collapsed-choice .service-option {
  grid-template-columns: 38px minmax(0, 1fr) minmax(78px, auto) minmax(78px, auto);
  min-height: 70px;
  padding: 12px 14px;
}

.slot-block {
  margin: 22px 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.slot-header {
  margin-bottom: 10px;
}

.slot-grid {
  gap: 10px;
}

.slot-button {
  min-height: 54px;
  border-color: #dfe7e3;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(20, 24, 22, 0.02);
}

.slot-button span {
  font-size: 1rem;
  line-height: 1;
}

.slot-button.is-selected {
  border-color: var(--teal);
  background: linear-gradient(180deg, var(--teal), var(--teal-strong));
  box-shadow: 0 12px 24px rgba(15, 74, 67, 0.22);
}

.barber-preference {
  margin-top: 0;
  background: #f9fbfa;
}

.barber-options {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.barber-option {
  min-height: 70px;
  background: #fff;
  box-shadow: none;
}

.booking-list {
  gap: 12px;
}

.booking-card {
  box-shadow: none;
}

.empty-state {
  line-height: 1.35;
}

.calendar-page {
  background: var(--paper);
}

.calendar-page .calendar-panel {
  background: #fff;
}

.calendar-toolbar {
  align-items: end;
}

.calendar-grid-scroll {
  border-radius: var(--radius);
  box-shadow: none;
}

.calendar-board {
  background: #fff;
}

.calendar-day-heading {
  background: #fbfdfc;
}

.calendar-booking {
  border-left-width: 4px;
  border-radius: 5px;
  background: linear-gradient(180deg, #f0faf6, #e7f3ef);
  box-shadow: 0 8px 18px rgba(21, 29, 28, 0.08);
}

.admin-login-card {
  background: #fff;
}

@media (min-width: 900px) {
  .client-grid .slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .client-grid .service-options {
    grid-template-columns: 1fr;
  }

  .admin-app-page {
    padding: 0;
    background: var(--paper);
  }

  .admin-phone-app {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: var(--paper);
    box-shadow: none;
  }

  .admin-login-screen {
    width: min(520px, calc(100% - 40px));
    min-height: auto;
    margin: 8vh auto;
    overflow: hidden;
    border: 1px solid rgba(220, 228, 224, 0.94);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .admin-login-card {
    padding: 30px;
  }

  .admin-app-top {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.85fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 22px;
    padding: calc(18px + env(safe-area-inset-top)) 28px 18px;
    border-bottom: 0;
    background: #0c1413;
    color: #fff;
    backdrop-filter: none;
  }

  .admin-app-top h1,
  .admin-calendar-strip strong,
  .admin-quick-stats strong {
    color: #fff;
  }

  .admin-app-top .section-label {
    color: #d18b68;
  }

  .admin-identity,
  .admin-calendar-strip span,
  .admin-quick-stats span {
    color: rgba(255, 255, 255, 0.68);
  }

  .admin-calendar-strip,
  .admin-quick-stats div {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
  }

  .app-icon-button {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .app-icon-button:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .admin-action-chooser {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 28px;
  }

  .admin-choice-button {
    border-color: #dfe7e3;
    box-shadow: none;
  }

  .mobile-section {
    border-radius: 10px;
    box-shadow: none;
  }

  #adminBookingView,
  #adminScheduleView,
  #adminTeamView,
  #adminReminderView {
    padding: 28px;
  }

  .calendar-phone-app {
    width: 100%;
  }

  .calendar-page .admin-app-top {
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 0.9fr) minmax(300px, 0.75fr);
  }

  .calendar-page .calendar-panel {
    min-height: calc(100svh - 170px);
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 28px;
    box-shadow: none;
  }

  .calendar-panel-heading {
    align-items: center;
  }

  .calendar-toolbar {
    grid-template-columns: minmax(260px, 340px) 44px 44px minmax(180px, 230px) auto 44px;
    max-width: 980px;
  }

  .calendar-day-jump {
    grid-template-columns: repeat(7, minmax(128px, 1fr));
  }

  .calendar-board {
    grid-template-columns: 76px repeat(7, minmax(158px, 1fr));
    min-width: 1240px;
  }
}

@media (max-width: 980px) {
  .client-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .client-appointments-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 290px;
  }

  .header-content {
    width: min(100% - 24px, 1180px);
    padding-top: 48px;
  }

  .header-content h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }

  .workspace,
  .client-workspace {
    width: min(100% - 20px, 1180px);
    margin-top: -34px;
  }

  .booking-panel,
  .panel {
    padding: 18px;
  }

  .client-account-gate {
    padding: 14px;
  }

  .client-account-options,
  .client-verification-panel {
    grid-template-columns: 1fr;
  }

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

  .google-signin-slot,
  #clientGoogleButton,
  .google-signin-slot > div,
  .google-signin-slot [role="button"],
  #clientGoogleButton > div,
  #clientGoogleButton [role="button"],
  .google-signin-slot iframe,
  #clientGoogleButton iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

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

  .client-appointments-panel {
    position: static;
  }

  .service-option,
  .service-options.is-collapsed-choice .service-option,
  .admin-phone-app .service-option {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .service-option .service-cell:nth-child(3),
  .service-option .service-cell:nth-child(4) {
    grid-column: 2;
  }

  .service-option .service-cell,
  .service-option .service-cell:last-child {
    justify-self: stretch;
  }

  .service-option .service-cell span,
  .service-option .service-cell strong {
    text-align: left;
  }

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

  .barber-options {
    grid-template-columns: 1fr;
  }

  .chatbot-widget {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .chatbot-launcher {
    width: 100%;
    justify-content: center;
  }

  .chatbot-panel {
    display: none;
  }

  .chatbot-page-shell {
    padding: 0;
  }

  .chatbot-page {
    width: 100%;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .chatbot-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .chatbot-form .primary-action {
    width: 100%;
  }
}

/* Client account gate refresh: service first, then Google or manual account creation. */
.client-account-gate.google-connect {
  align-items: stretch;
  justify-content: stretch;
  gap: 14px;
  border-color: #dfe8e4;
  background: linear-gradient(180deg, #fbfdfc, #f6faf8);
}

.client-account-gate.google-connect.is-connected {
  border-color: rgba(15, 74, 67, 0.28);
  background: linear-gradient(180deg, rgba(15, 74, 67, 0.07), rgba(15, 74, 67, 0.03));
}

.client-account-gate .google-signin-slot,
.client-account-gate #clientGoogleButton {
  justify-content: flex-start;
}

.client-account-gate.is-connected .client-account-options,
.client-account-gate.is-pending .client-account-options {
  display: none;
}

.booking-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.booking-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #7b8682;
  font-size: 0.75rem;
}

.booking-progress li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 34px;
  width: calc(100% - 30px);
  height: 2px;
  background: #e3e8e6;
  content: "";
}

.booking-progress li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #d9e1dd;
  border-radius: 50%;
  background: #fff;
  color: #66716d;
  font-weight: 800;
}

.booking-progress li > strong {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-right: 4px;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-progress li.is-active {
  color: var(--teal);
}

.booking-progress li.is-active > span {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 74, 67, 0.1);
  color: var(--teal);
}

.booking-progress li.is-complete {
  color: var(--teal);
}

.booking-progress li.is-complete > span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.booking-progress li.is-complete::after {
  background: rgba(15, 74, 67, 0.55);
}

.client-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  margin: 0 0 20px;
  border: 1px solid rgba(185, 144, 59, 0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 248, 226, 0.96), rgba(255, 253, 246, 0.98));
}

.client-edit-banner[hidden] {
  display: none;
}

.client-edit-banner > div {
  display: grid;
  gap: 3px;
}

.client-edit-banner strong {
  color: #554312;
}

.client-edit-banner span {
  color: #71684e;
  font-size: 0.82rem;
  line-height: 1.45;
}

.client-edit-banner .secondary-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.slot-loading-state {
  position: relative;
  overflow: hidden;
}

.slot-loading-state::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  content: "";
  animation: slot-loading 1.1s ease-in-out infinite;
}

@keyframes slot-loading {
  0%, 100% { transform: translateX(-60%); opacity: 0.35; }
  50% { transform: translateX(60%); opacity: 1; }
}

@media (max-width: 680px) {
  .booking-progress {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
  }

  .booking-progress li {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
  }

  .booking-progress li:not(:last-child)::after {
    top: 14px;
    left: calc(50% + 15px);
    width: calc(100% - 30px);
  }

  .booking-progress li > strong {
    width: 100%;
    padding: 0;
    font-size: 0.68rem;
  }

  .client-edit-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .client-edit-banner .secondary-action {
    width: 100%;
  }

  .client-account-options,
  .client-verification-panel,
  .client-manual-grid {
    grid-template-columns: 1fr;
  }

  .client-risk-summary,
  .client-detail-stats,
  .client-risk-toolbar,
  .client-risk-card,
  .attendance-prompt-item {
    grid-template-columns: 1fr;
  }

  .client-risk-badges,
  .attendance-prompt-actions {
    justify-content: flex-start;
  }

  .attendance-prompt-card {
    max-height: 86vh;
  }

  .attendance-prompt-actions .secondary-action,
  .attendance-prompt-actions .danger-action {
    width: 100%;
  }

  .client-history-table-wrap {
    overflow-x: visible;
  }

  .admin-phone-app .client-history-table {
    min-width: 0;
  }

  .admin-phone-app .client-history-table thead {
    display: none;
  }

  .admin-phone-app .client-history-table,
  .admin-phone-app .client-history-table tbody,
  .admin-phone-app .client-history-table tr,
  .admin-phone-app .client-history-table td {
    display: block;
    width: 100%;
  }

  .admin-phone-app .client-history-table tr {
    border: 1px solid #d8e3df;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fbfdfc;
  }

  .admin-phone-app .client-history-table td {
    border: 0;
    display: grid;
    grid-template-columns: minmax(92px, 38%) 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
  }

  .admin-phone-app .client-history-table td::before {
    content: attr(data-label);
    color: #53635d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
  }
}
