:root {
  --ink: #2c2622;
  --muted: #81736b;
  --paper: #f7efe7;
  --panel: #fffdf9;
  --soft: #f3ece5;
  --line: #eadbd0;
  --rose: #b77769;
  --rose-deep: #8d3348;
  --gold: #d8bd72;
  --green: #69c770;
  --shadow: 0 24px 70px rgba(32, 23, 19, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(48, 35, 30, 0.62) 0%, rgba(48, 35, 30, 0.36) 48%, rgba(48, 35, 30, 0.16) 100%),
    url("aesthetic-studio-real.jpg") center / cover no-repeat;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100svh;
  padding: 26px;
}

.install-banner {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 45;
  width: min(440px, calc(100% - 20px));
  transform: translateX(-50%);
}

.install-banner-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(234, 219, 208, 0.88);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(32, 23, 19, 0.16);
  backdrop-filter: blur(12px);
}

.install-banner-inner > svg {
  width: 22px;
  height: 22px;
  color: var(--rose-deep);
}

.install-banner strong,
.install-banner small {
  display: block;
}

.install-banner strong {
  font-size: 0.82rem;
  line-height: 1.1;
}

.install-banner small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 750;
}

.install-action,
.install-close {
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.install-action {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--rose-deep);
  font-size: 0.74rem;
}

.install-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #f8f4ef;
}

.install-close svg {
  width: 16px;
  height: 16px;
}

.landing-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: end;
  gap: 34px;
  width: min(1120px, 100%);
  height: min(680px, calc(100svh - 52px));
  color: #fffaf4;
  overflow: hidden;
}

.landing-hero {
  align-self: stretch;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 15px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 5vw, 58px) 0;
}

.landing-logo {
  width: 118px;
  height: 118px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #faf4ee;
  border: 1px solid rgba(255, 246, 239, 0.48);
  border-radius: 50%;
  box-shadow: 0 16px 44px rgba(16, 10, 8, 0.28);
}

.landing-kicker {
  margin: 0;
  color: #f5d4c8;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.landing-copy {
  width: min(560px, 100%);
  margin: 0;
  color: rgba(255, 250, 244, 0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.5;
  font-weight: 650;
}

.landing-cta,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.landing-cta {
  min-width: 220px;
  padding: 0 22px;
  color: #fff;
  background: var(--rose-deep);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.landing-cta:hover,
.landing-secondary:hover {
  transform: translateY(-2px);
}

.landing-cta:hover {
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
}

.landing-cta svg,
.landing-secondary svg {
  width: 19px;
  height: 19px;
}

.landing-cta span,
.landing-secondary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-info {
  display: grid;
  gap: 12px;
  align-content: end;
  width: 100%;
  min-width: 0;
  padding-bottom: clamp(28px, 5vw, 58px);
}

.landing-info-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 94px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(18, 12, 10, 0.2);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.landing-info-item:hover {
  box-shadow: 0 22px 48px rgba(18, 12, 10, 0.26);
  transform: translateY(-2px);
}

.landing-info-item svg {
  width: 23px;
  height: 23px;
  color: var(--rose-deep);
}

.landing-info-item small,
.landing-info-item em {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  font-style: normal;
  font-weight: 800;
}

.landing-info-item strong {
  display: block;
  margin: 3px 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.profile-photo-wrap {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.16);
}

.profile-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: var(--rose-deep);
  border: 2px solid #fffdf9;
  border-radius: 50%;
}

.profile-badge svg {
  width: 10px;
  height: 10px;
  color: #fff;
}

.landing-secondary {
  width: 100%;
  padding: 0 18px;
  color: var(--ink);
  background: #fffdf9;
}

.admin-footer-link {
  position: absolute;
  right: 0;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: rgba(255, 250, 244, 0.72);
  background: rgba(22, 16, 14, 0.16);
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.admin-footer-link:hover {
  color: #fffaf4;
  background: rgba(22, 16, 14, 0.28);
  transform: translateY(-1px);
}

.admin-footer-link svg {
  width: 14px;
  height: 14px;
}

.reschedule-view {
  display: grid;
  place-items: center;
  width: min(560px, 100%);
  height: min(680px, calc(100svh - 52px));
}

.reschedule-card {
  display: grid;
  gap: 13px;
  width: min(520px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: clamp(20px, 5vw, 32px);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(234, 219, 208, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.reschedule-logo {
  width: 88px;
  height: 88px;
  justify-self: center;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.reschedule-card > small {
  color: var(--rose-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reschedule-card h1 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.15rem);
  line-height: 1.05;
}

.reschedule-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 750;
}

.reschedule-details {
  display: grid;
  gap: 8px;
  text-align: left;
}

.reschedule-details div {
  padding: 11px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reschedule-details dt {
  margin: 0;
}

.reschedule-details dd {
  min-height: 0;
  padding: 0;
  border: 0;
}

.reschedule-note {
  padding: 10px;
  background: #fff6d8;
  border: 1px solid #ead280;
  border-radius: 8px;
}

.reschedule-actions {
  display: grid;
  gap: 9px;
}

.confirmation-view {
  width: min(540px, calc(100vw - 24px));
  height: min(620px, calc(100svh - 52px));
  max-width: 100vw;
  overflow: hidden;
}

.confirmation-card {
  width: min(500px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: none;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf7f2 100%);
}

.confirmation-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: left;
}

.confirmation-brand .reschedule-logo {
  width: 74px;
  height: 74px;
}

.confirmation-brand span {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--rose-deep);
  background: #fbf2ec;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.confirmation-brand svg {
  width: 16px;
  height: 16px;
}

.confirmation-copy {
  display: grid;
  gap: 6px;
  text-align: left;
}

.confirmation-copy small {
  color: var(--rose-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.confirmation-copy h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4.8vw, 2.12rem);
  line-height: 1.02;
}

.confirmation-copy p {
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 750;
}

.confirmation-details {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.confirmation-details div {
  min-width: 0;
  overflow: hidden;
  min-height: 78px;
  padding: 12px;
}

.confirmation-details div:first-child {
  grid-column: 1 / -1;
  min-height: 70px;
  background: #fffaf6;
}

.confirmation-details div:last-child {
  grid-column: 1 / -1;
  min-height: 64px;
}

.confirmation-details dt {
  display: block;
  margin: 0 0 4px;
  font-size: 0.66rem;
}

.confirmation-details dd {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.18;
}

.confirmation-card .primary-action {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
}

.confirmation-whatsapp-link {
  justify-self: center;
  min-height: 30px;
  max-width: 100%;
  font-size: 0.76rem;
  text-align: center;
  text-decoration: none;
}

.confirmation-card .confirmation-whatsapp-link {
  justify-self: center !important;
  margin-inline: auto;
}

.admin-view {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(43, 34, 30, 0.62);
  backdrop-filter: blur(10px);
}

.admin-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(760px, calc(100svh - 44px));
  overflow: hidden;
  color: var(--ink);
  background: #fffdf9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-header small {
  color: var(--rose-deep);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-header h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.admin-login,
.admin-schedule {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.admin-login {
  display: grid;
  align-content: center;
  gap: 14px;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.admin-login p,
.admin-toolbar p,
.admin-blocks p,
.admin-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
}

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

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-toolbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-logout {
  color: var(--muted);
}

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-tab {
  min-height: 38px;
  color: var(--muted);
  background: #f8f4ef;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-tab.is-active {
  color: #fff;
  background: var(--rose-deep);
}

.whatsapp-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: #7f5c12;
  background: #fff6d8;
  border: 1px solid #ead280;
  border-radius: 8px;
}

.whatsapp-status-card.is-ready {
  color: #276735;
  background: #e8f6ea;
  border-color: #bde2c4;
}

.whatsapp-status-card svg {
  width: 20px;
  height: 20px;
}

.whatsapp-status-card strong,
.whatsapp-status-card small {
  display: block;
}

.whatsapp-status-card strong {
  font-size: 0.86rem;
}

.whatsapp-status-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-section-panel {
  display: none;
}

.admin-section-panel:not(.is-active) {
  display: none !important;
}

.admin-section-panel.is-active {
  display: grid;
  gap: 12px;
}

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

.admin-dashboard,
.admin-bookings,
.admin-client-history,
.admin-client-blocks {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.admin-stat-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stat-card span,
.admin-stat-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-stat-card strong {
  align-self: center;
  font-size: 1.35rem;
  line-height: 1;
}

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

.today-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 9px;
  min-height: 98px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.today-summary-card svg {
  grid-row: span 3;
  width: 22px;
  height: 22px;
  color: var(--rose-deep);
}

.today-summary-card span,
.today-summary-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.today-summary-card strong {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-filter-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: #f8f4ef;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-filter-button.is-active {
  color: #fff;
  background: var(--rose-deep);
}

.admin-booking-list,
.admin-client-history-list {
  display: grid;
  gap: 9px;
}

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

.admin-booking-item > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-booking-item strong,
.admin-booking-item span,
.admin-booking-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-booking-item span,
.admin-booking-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-booking-item .reschedule-status-line {
  color: var(--rose-deep);
}

.admin-booking-item .internal-note-line {
  color: #7a5c48;
  background: #fff5e8;
  border: 1px solid #ead8bd;
  border-radius: 6px;
  padding: 5px 7px;
}

.booking-status {
  min-height: 30px;
  padding: 7px 10px;
  color: var(--muted);
  background: #f8f4ef;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.status-completed {
  color: #276735;
  background: #e8f6ea;
}

.status-cancelled,
.status-no_show {
  color: #8d3348;
  background: #f8e8ed;
}

.booking-actions {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.booking-actions .text-action {
  min-height: 36px;
  padding: 0 10px;
  background: #f8f4ef;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.booking-action-main {
  color: #276735;
  background: #eaf7ee !important;
  border-color: #c9e5d1 !important;
}

.booking-action-edit {
  color: #7c2740;
  background: #fff1f5 !important;
  border-color: #ebc8d3 !important;
}

.booking-action-cancel {
  color: var(--rose-deep);
  background: #fff3f5 !important;
  border-color: #efd2d9 !important;
}

.booking-more-toggle {
  gap: 5px;
  color: var(--ink);
}

.booking-more-toggle svg {
  width: 16px;
  height: 16px;
}

.booking-more-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
  gap: 7px;
  width: min(300px, calc(100vw - 36px));
  padding: 9px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(57, 39, 33, 0.16);
}

.booking-more-menu[hidden] {
  display: none;
}

.booking-more-menu .text-action {
  justify-content: center;
  min-height: 38px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.booking-actions .danger {
  color: var(--rose-deep);
}

.client-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-history-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-history-card span,
.client-history-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.client-history-card strong,
.client-history-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-tag {
  min-height: 30px;
  padding: 7px 10px;
  color: var(--muted);
  background: #f8f4ef;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.tag-good {
  color: #276735;
  background: #e8f6ea;
}

.tag-no_show,
.tag-attention {
  color: var(--rose-deep);
  background: #f8e8ed;
}

.admin-services {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.admin-section-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.add-service-button {
  padding: 0 12px;
  color: var(--rose-deep);
  background: #fff;
  border: 1px solid rgba(141, 51, 72, 0.18);
  box-shadow: 0 8px 18px rgba(96, 70, 55, 0.08);
}

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

.admin-service-item {
  display: grid;
  grid-template-columns: 86px minmax(180px, 1.5fr) minmax(90px, .7fr) minmax(90px, .7fr) 42px;
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-service-active {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
}

.admin-service-active input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--rose-deep);
}

.admin-service-name input,
.admin-service-item input[type="number"] {
  min-height: 40px;
  padding: 8px 10px;
}

.admin-remove-service {
  color: var(--rose-deep);
  background: #f8f4ef;
}

.admin-day {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f8f4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-day-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.92rem;
}

.admin-day-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--rose-deep);
}

.admin-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.admin-periods label {
  min-width: 0;
  font-size: 0.72rem;
}

.admin-periods input {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 0.86rem;
}

.admin-blocks {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-blocks h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.block-date-form {
  display: grid;
  grid-template-columns: minmax(0, 210px) auto;
  gap: 10px;
}

.block-date-form input {
  min-width: 0;
  max-width: 210px;
}

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

.client-block-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 9px;
}

.client-register-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(140px, 1fr) minmax(160px, 1.2fr) auto;
  gap: 9px;
}

.client-register-form input,
.client-block-form input {
  min-height: 40px;
  padding: 8px 10px;
}

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

.registered-client-stat {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.registered-client-stat span,
.registered-client-stat small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.registered-client-stat strong {
  align-self: center;
  font-size: 1.22rem;
  line-height: 1;
}

.client-search-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

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

.registered-client-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.registered-client-card:hover {
  border-color: #dfc5ba;
  box-shadow: 0 10px 24px rgba(87, 61, 52, 0.08);
  transform: translateY(-1px);
}

.registered-client-card > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.registered-client-card strong,
.registered-client-card span,
.registered-client-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registered-client-card span,
.registered-client-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.registered-client-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.registered-client-next {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff9f4;
  border: 1px solid #ead6cb;
  border-radius: 8px;
}

.registered-client-next svg {
  width: 17px;
  height: 17px;
  color: var(--rose-deep);
}

.registered-client-next > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: visible;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.18;
  text-overflow: clip;
  font-weight: 800;
  white-space: normal;
}

.registered-client-next strong {
  overflow: visible;
  color: var(--rose-deep);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: normal;
}

.registered-client-next em {
  width: fit-content;
  margin-top: 2px;
  padding: 3px 7px;
  color: #276735;
  background: #eaf7ee;
  border: 1px solid #c9e5d1;
  border-radius: 999px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.registered-client-metrics span {
  width: fit-content;
  padding: 5px 8px;
  color: var(--ink);
  background: #f8f4ef;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.registered-client-metrics strong {
  margin-right: 3px;
  color: var(--rose-deep);
  font-size: inherit;
}

.registered-client-badge {
  width: fit-content;
  padding: 4px 8px;
  color: #7e2d46;
  background: #f6e8e1;
  border: 1px solid #ead0c6;
  border-radius: 999px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

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

.registered-client-schedule {
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: var(--rose-deep);
  box-shadow: 0 8px 20px rgba(141, 51, 72, 0.14);
}

.registered-client-confirm {
  min-height: 38px;
  padding: 0 12px;
  color: #276735;
  background: #eaf7ee;
  border: 1px solid #c9e5d1;
}

.registered-client-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  color: #276735;
  background: #eaf7ee;
  border: 1px solid #c9e5d1;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.registered-client-confirmed svg {
  width: 15px;
  height: 15px;
}

.registered-client-schedule:hover {
  transform: translateY(-1px);
}

.client-history-modal-card {
  width: min(620px, 100%);
}

.client-history-modal-list {
  display: grid;
  gap: 9px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding-right: 3px;
}

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

.client-service-history-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-service-history-actions {
  justify-items: end;
}

.client-service-history-item strong,
.client-service-history-item span,
.client-service-history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-service-history-item span,
.client-service-history-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.client-service-history-item em {
  justify-self: end;
  width: fit-content;
  padding: 4px 8px;
  color: var(--rose-deep);
  background: #f7eae5;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.client-service-history-item.status-completed em {
  color: #2f6f47;
  background: #e8f6ed;
}

.client-service-history-item.status-cancelled em,
.client-service-history-item.status-no_show em {
  color: #9b2f3d;
  background: #f8e7e9;
}

.client-history-edit-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: #7c2740;
  background: #fff1f5;
  border: 1px solid #ebc8d3;
}

.client-history-edit-booking svg {
  width: 15px;
  height: 15px;
}

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

.blocked-chip,
.blocked-client-chip,
.empty-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.blocked-chip svg {
  width: 14px;
  height: 14px;
  color: var(--rose-deep);
}

.blocked-client-chip {
  min-height: 42px;
  padding: 7px 10px;
}

.blocked-client-chip span,
.blocked-client-chip em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.blocked-client-chip svg {
  width: 14px;
  height: 14px;
  color: var(--rose-deep);
}

.app-card {
  display: grid;
  grid-template-columns: 270px minmax(420px, 1fr) 300px;
  width: min(1120px, 100%);
  height: min(680px, calc(100svh - 52px));
  overflow: hidden;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.side-panel,
.flow-panel,
.summary-panel {
  min-height: 0;
}

.side-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 24px;
  background: #f4f1ee;
  border-right: 1px solid var(--line);
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.step-dot {
  width: 7px;
  height: 7px;
  background: #d9d2cc;
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.step-dot.is-active,
.step-dot.is-done {
  background: #6a6560;
}

.step-dot.is-active {
  transform: scale(1.25);
}

.side-center {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.side-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #faf4ee;
  border: 1px solid rgba(183, 119, 105, 0.32);
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(57, 39, 33, 0.12);
}

.side-center h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.side-center p,
.help-link {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.help-link {
  justify-self: center;
  text-align: center;
  font-weight: 700;
}

.flow-panel {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 56px;
  background: #fff;
}

.flow-header,
.flow-footer {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.flow-header {
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
}

.flow-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.flow-footer {
  position: relative;
  z-index: 3;
  justify-content: flex-end;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.icon-action,
.text-action,
.primary-action,
.calendar-day,
.time-option,
.service-card,
.pay-option {
  border: 0;
  border-radius: 6px;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: transparent;
}

.icon-action:disabled {
  color: #c9c0b8;
  cursor: default;
}

.icon-action svg,
.text-action svg {
  width: 18px;
  height: 18px;
}

.primary-action {
  min-width: 172px;
  min-height: 42px;
  padding: 0 22px;
  color: #fff;
  background: var(--rose-deep);
  font-weight: 800;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.primary-action:not(:disabled):hover {
  box-shadow: 0 10px 24px rgba(141, 51, 72, 0.22);
  transform: translateY(-1px);
}

.step {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 0;
  padding: 18px 34px 12px;
  overflow: hidden;
}

.step-active {
  display: grid;
}

#stepSchedule {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.month-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.month-bar strong {
  font-size: 1.18rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: #4f4945;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.text-action:last-child {
  justify-self: end;
}

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

.weekday {
  color: #a1968e;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 90%;
  min-height: 36px;
  color: #aeb7cc;
  background: #f5f6fb;
  font-weight: 800;
  transition: background-color 170ms ease, color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.calendar-day:not(:disabled):hover {
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.12);
  transform: translateY(-1px);
}

.calendar-day::after {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 3px;
  content: "";
  background: transparent;
  border-radius: 99px;
}

.calendar-day.has-slots::after {
  background: var(--green);
}

.calendar-day.is-today {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.calendar-day.is-selected {
  color: #fff;
  background: var(--ink);
}

.calendar-day.is-disabled,
.calendar-day.is-outside {
  color: #d0d6e5;
  background: #f7f7f9;
}

.time-block {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  align-content: start;
  text-align: center;
}

.time-block p {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 4px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #d7c5ba transparent;
}

.time-grid::-webkit-scrollbar {
  width: 6px;
}

.time-grid::-webkit-scrollbar-thumb {
  background: #d7c5ba;
  border-radius: 999px;
}

.time-option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--ink);
  background: #f0f0f0;
  font-weight: 850;
  transition: background-color 170ms ease, color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.time-option:hover {
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.1);
  transform: translateY(-1px);
}

.time-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-option.is-selected,
.time-option:has(input:checked) {
  color: #fff;
  background: var(--rose-deep);
}

.soft-note {
  grid-column: 1 / -1;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  border-radius: 6px;
  font-weight: 700;
}

#stepService {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

#stepService::before,
#stepService::after {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 2;
  height: 28px;
  content: "";
  pointer-events: none;
}

#stepService::before {
  top: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0));
}

#stepService::after {
  bottom: 0;
  background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 8px 14px 0;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #d7c5ba transparent;
}

.service-grid::-webkit-scrollbar {
  width: 7px;
}

.service-grid::-webkit-scrollbar-track {
  background: transparent;
}

.service-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d9b6bd, #c7b3a8);
  border-radius: 999px;
}

.service-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 6px;
  min-height: 90px;
  padding: 13px 16px;
  color: var(--ink);
  text-align: left;
  background: #f8f4ef;
  border: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.service-card:hover {
  box-shadow: 0 12px 26px rgba(44, 38, 34, 0.1);
  transform: translateY(-2px);
}

.service-card span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.service-card strong {
  color: var(--rose-deep);
  font-size: 1.18rem;
  line-height: 1.1;
}

.service-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-card.is-selected {
  background: #fff;
  border-color: var(--rose);
  box-shadow: inset 0 0 0 2px rgba(183, 119, 105, 0.18);
}

#stepDetails {
  align-content: center;
}

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

.manual-time-label small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.3;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

textarea {
  min-height: 78px;
  resize: none;
}

input[type="date"],
input[type="time"] {
  min-width: 0;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

input:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(183, 119, 105, 0.16);
}

.pay-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pix-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  color: #6f4f10;
  background: #fff3c4;
  border: 1px solid #ead280;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 850;
}

.pix-tip[hidden] {
  display: none;
}

.pix-tip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  color: var(--ink);
  background: #f8f4ef;
  text-align: left;
  font-weight: 850;
  transition: background-color 170ms ease, color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.pay-option:hover {
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.1);
  transform: translateY(-1px);
}

.pay-option svg {
  width: 20px;
  height: 20px;
  color: var(--rose-deep);
  flex: 0 0 auto;
}

.pay-option span {
  display: grid;
  gap: 2px;
}

.pay-option small {
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0.82;
}

.pay-option.is-selected {
  color: #fff;
  background: var(--rose-deep);
}

.pay-option.is-selected svg {
  color: #fff;
}

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

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(43, 34, 30, 0.58);
  backdrop-filter: blur(10px);
}

.pix-modal-card {
  display: grid;
  gap: 12px;
  width: min(460px, 100%);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.pix-modal-card small {
  color: var(--rose-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pix-modal-card h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.reschedule-admin-card {
  width: min(500px, 100%);
}

.client-schedule-admin-card,
.booking-edit-admin-card {
  gap: 16px;
  width: min(660px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 0;
  background: #fffaf7;
}

.client-schedule-admin-card header,
.booking-edit-admin-card header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #fffaf7 0%, #f7eee9 100%);
  border-bottom: 1px solid var(--line);
}

.client-schedule-admin-card header h2,
.booking-edit-admin-card header h2 {
  font-size: 1.34rem;
}

.client-schedule-admin-card > label,
.booking-edit-admin-card > label,
.client-schedule-admin-card > .form-message,
.booking-edit-admin-card > .form-message,
.client-schedule-admin-card > .primary-action,
.booking-edit-admin-card > .primary-action,
.booking-edit-admin-card > .booking-edit-row,
.client-schedule-admin-card > .reschedule-admin-summary {
  margin-inline: 18px;
}

.booking-edit-admin-card > .reschedule-admin-summary {
  margin-inline: 18px;
}

.client-schedule-admin-card > label,
.booking-edit-admin-card > label,
.booking-edit-row > label {
  padding: 12px;
  background: #fff;
  border: 1px solid #eadbd0;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(87, 61, 52, 0.05);
}

.client-schedule-admin-card .reschedule-admin-summary,
.booking-edit-admin-card .reschedule-admin-summary {
  min-height: 46px;
  display: grid;
  place-items: center start;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7ebe6;
  border: 1px solid #ead0c6;
  border-radius: 10px;
}

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

.client-schedule-admin-card select,
.client-schedule-admin-card input,
.client-schedule-admin-card textarea,
.booking-edit-admin-card select,
.booking-edit-admin-card input,
.booking-edit-admin-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffaf7;
  border: 1px solid #e5d3c8;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
}

.client-schedule-admin-card textarea,
.booking-edit-admin-card textarea {
  min-height: 92px;
  padding-block: 12px;
  resize: vertical;
}

.client-schedule-admin-card #clientScheduleTimeSelect,
.booking-edit-admin-card #bookingEditTimeSelect {
  color: #7e2d46;
  background: #fff5f2;
  border-color: #dfbfba;
}

.client-schedule-admin-card .primary-action,
.booking-edit-admin-card .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  margin-bottom: 0;
}

.client-schedule-admin-card .form-message,
.booking-edit-admin-card .form-message {
  margin-bottom: 18px;
}

.next-booking-prompt-card {
  width: min(520px, 100%);
  gap: 16px;
  background: #fffaf7;
}

.next-booking-prompt-card .reschedule-admin-summary {
  min-height: 48px;
  display: grid;
  place-items: center start;
  padding: 12px;
  color: var(--ink);
  background: #f7ebe6;
  border: 1px solid #ead0c6;
  border-radius: 10px;
}

.next-booking-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.55;
}

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

.next-booking-actions .primary-action,
.next-booking-actions .text-action {
  min-height: 48px;
}

@media (max-width: 560px) {
  .next-booking-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .admin-view {
    padding: 28px;
  }

  .admin-card {
    width: min(1540px, calc(100vw - 64px));
    height: min(900px, calc(100svh - 56px));
    max-height: none;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(32, 23, 19, 0.34);
  }

  .admin-header {
    min-height: 84px;
    padding: 18px 28px;
    background:
      linear-gradient(90deg, rgba(255, 253, 249, 0.98), rgba(248, 244, 239, 0.96)),
      #fffdf9;
  }

  .admin-header h2 {
    font-size: 1.46rem;
  }

  .admin-login,
  .admin-schedule {
    padding: 22px;
  }

  .admin-schedule {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "toolbar main"
      "tabs main";
    align-content: stretch;
    gap: 14px 18px;
    min-height: 0;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(251, 248, 245, 0.64), rgba(255, 253, 249, 0.96)),
      #fffdf9;
  }

  .admin-toolbar {
    grid-area: toolbar;
    align-items: stretch;
    flex-direction: column;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .admin-toolbar > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .admin-toolbar .text-action,
  .admin-toolbar .primary-action {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .admin-tabs {
    grid-area: tabs;
    position: static;
    align-content: start;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 9px;
    border-radius: 12px;
  }

  .admin-tab {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 46px;
    padding-inline: 16px;
    text-align: left;
    font-size: 0.88rem;
  }

  .admin-section-panel.is-active {
    grid-area: main;
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
  }

  .admin-dashboard,
  .admin-bookings,
  .admin-client-history,
  .admin-client-blocks,
  .admin-services,
  .admin-blocks {
    padding: 16px;
    border-radius: 12px;
  }

  .admin-stats,
  .admin-today-summary {
    gap: 12px;
  }

  .admin-stat-card,
  .today-summary-card {
    min-height: 96px;
    padding: 14px;
    border-radius: 10px;
  }

  .admin-stat-card strong {
    font-size: 1.42rem;
  }

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

  .admin-filter-bar {
    padding: 10px;
    gap: 10px;
  }

  .admin-filter-button {
    min-height: 38px;
    padding-inline: 16px;
  }

  .admin-booking-item {
    grid-template-columns: minmax(280px, 1fr) auto minmax(300px, auto);
    gap: 14px;
    padding: 15px 16px;
    border-radius: 10px;
  }

  .booking-actions {
    gap: 9px;
  }

  .booking-actions .text-action {
    min-height: 40px;
    padding: 0 13px;
  }

  .admin-service-item,
  .registered-client-card,
  .client-history-card,
  .client-service-history-item {
    border-radius: 10px;
  }

  .client-register-form,
  .client-block-form {
    gap: 12px;
  }
}

.reschedule-admin-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.reschedule-admin-card select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #eadbd0;
  border-radius: 6px;
  font-weight: 800;
}

.reschedule-admin-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 800;
}

#rescheduleSendButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#rescheduleSendButton svg {
  width: 17px;
  height: 17px;
}

.pix-amount {
  min-height: 42px;
  display: grid;
  place-items: center start;
  padding: 0 12px;
  color: #6f4f10;
  background: #fff3c4;
  border: 1px solid #ead280;
  border-radius: 6px;
  font-weight: 900;
}

#pixCodeText {
  min-height: 116px;
  font-size: 0.78rem;
  line-height: 1.35;
  resize: none;
}

#pixCopyButton,
.pix-whatsapp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

#pixCopyButton svg,
.pix-whatsapp-action svg {
  width: 17px;
  height: 17px;
}

.pix-whatsapp-action[hidden] {
  display: none;
}

.pix-copy-message,
.pix-instruction {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 750;
}

.pix-copy-message {
  min-height: 18px;
  color: var(--rose-deep);
}

.summary-panel {
  padding: 24px 20px;
  background: #fff;
  border-left: 1px solid var(--line);
}

.summary-title {
  margin-bottom: 26px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.summary-title::before,
.summary-title::after {
  content: "::";
  margin: 0 6px;
  letter-spacing: 0;
}

dl {
  margin: 0;
}

dt {
  margin-top: 18px;
  color: #b5aaa1;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  min-height: 32px;
  margin: 5px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

#summaryPrice {
  font-size: 1.2rem;
}

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

@media (max-width: 980px) {
  .app-shell {
    padding: 0;
  }

  .reschedule-view {
    width: 100%;
    height: 100svh;
    padding: 12px;
  }

  .reschedule-card {
    width: 100%;
    max-height: calc(100svh - 24px);
  }

  .confirmation-view {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    overflow: hidden;
    padding: calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  }

  .confirmation-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100svh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    align-content: start;
    gap: 10px;
    padding: 28px 14px 16px;
    box-shadow: 0 18px 54px rgba(32, 23, 19, 0.22);
  }

  .confirmation-brand {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .confirmation-brand .reschedule-logo {
    width: 58px;
    height: 58px;
  }

  .confirmation-brand span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .confirmation-copy {
    gap: 5px;
  }

  .confirmation-copy small {
    font-size: 0.64rem;
  }

  .confirmation-copy h1 {
    font-size: clamp(1.48rem, 8.5vw, 2rem);
  }

  .confirmation-copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.28;
  }

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

  .confirmation-details div,
  .confirmation-details div:first-child {
    grid-column: auto;
    min-width: 0;
    overflow: hidden;
    min-height: 62px;
    padding: 9px;
  }

  .confirmation-details div:first-child {
    grid-column: 1 / -1;
  }

  .confirmation-details div:last-child {
    grid-column: 1 / -1;
    min-height: 56px;
  }

  .confirmation-details dt {
    display: block;
    font-size: 0.58rem;
  }

  .confirmation-details dd {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    line-height: 1.12;
  }

  .confirmation-card .primary-action {
    min-height: 46px;
  }

  .confirmation-whatsapp-link {
    min-height: 28px;
    font-size: 0.68rem;
  }

  .install-banner {
    top: calc(8px + env(safe-area-inset-top));
    width: min(420px, calc(100% - 18px));
  }

  .install-banner-inner {
    min-height: 54px;
    gap: 8px;
    padding: 8px;
  }

  .install-action {
    min-height: 32px;
    padding: 0 10px;
  }

  .landing-view {
    width: 100%;
    height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  }

  .landing-hero {
    align-content: center;
    width: min(100%, calc(100vw - 36px));
    padding: 0;
  }

  .landing-logo {
    width: 86px;
    height: 86px;
  }

  .landing-hero h1 {
    max-width: 100%;
    font-size: clamp(2.18rem, 10.5vw, 3.15rem);
    line-height: 0.98;
  }

  .landing-copy {
    width: min(34rem, 100%);
    font-size: 0.98rem;
  }

  .landing-cta {
    width: 100%;
  }

  .landing-info {
    width: min(100%, calc(100vw - 36px));
    padding-bottom: 34px;
  }

  .landing-info-item {
    min-height: 76px;
    padding: 12px;
  }

  .admin-footer-link {
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.68rem;
    opacity: 0.72;
  }

  .admin-view {
    padding: 0;
  }

  .admin-card {
    width: 100%;
    max-height: 100svh;
    height: 100svh;
    border-radius: 0;
  }

  .admin-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fffdf9;
    min-height: 56px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  }

  .admin-header small {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .admin-header h2 {
    margin-top: 0;
    font-size: 1.06rem;
  }

  .admin-login,
  .admin-schedule {
    padding: 10px;
  }

  .admin-schedule {
    gap: 8px;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .admin-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0 0 6px;
    background: #fffdf9;
    border-bottom: 1px solid var(--line);
  }

  .admin-toolbar p {
    display: none;
  }

  .admin-toolbar > div {
    display: grid;
    grid-template-columns: 38px 38px minmax(0, 1fr);
    gap: 6px;
  }

  .admin-card .text-action {
    width: auto;
    min-height: 38px;
    justify-content: center;
    padding: 0 10px;
    overflow: visible;
    color: var(--ink);
    background: #f8f4ef;
    border: 1px solid var(--line);
  }

  .admin-toolbar .text-action {
    position: relative;
    width: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 8px;
  }

  .admin-toolbar .text-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .admin-card .text-action svg {
    color: currentColor;
    flex: 0 0 auto;
  }

  .admin-tabs {
    top: 45px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border-radius: 8px;
  }

  .admin-tab {
    min-height: 34px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 0.7rem;
  }

  .add-service-button {
    width: 100%;
    color: var(--rose-deep);
    background: #fff;
    border-color: rgba(141, 51, 72, 0.22);
  }

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

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

  .admin-stat-card {
    min-height: 84px;
  }

  .today-summary-card {
    min-height: 82px;
  }

  .admin-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filter-button {
    padding: 0 8px;
  }

  .admin-booking-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-booking-item strong,
  .admin-booking-item span,
  .admin-booking-item small {
    white-space: normal;
  }

  .booking-status {
    justify-self: start;
  }

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

  .booking-actions .text-action {
    min-height: 38px;
    padding: 0 6px;
    font-size: 0.72rem;
  }

  .booking-more-menu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    box-shadow: none;
  }

  .booking-edit-row {
    grid-template-columns: 1fr;
  }

  .client-register-form,
  .client-block-form {
    grid-template-columns: 1fr;
  }

  .registered-client-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .registered-client-card strong,
  .registered-client-card span,
  .registered-client-card small {
    white-space: normal;
  }

  .registered-client-actions {
    justify-content: flex-end;
  }

  .client-service-history-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .client-service-history-item strong,
  .client-service-history-item span,
  .client-service-history-item small {
    white-space: normal;
  }

  .client-service-history-item em {
    justify-self: start;
  }

  .client-service-history-actions {
    justify-items: start;
  }

  .client-history-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .client-history-card strong,
  .client-history-card span {
    white-space: normal;
  }

  .admin-day {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-service-item {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .admin-service-active,
  .admin-service-name {
    grid-column: auto;
  }

  .admin-service-name input,
  .admin-service-item input[type="number"] {
    width: 100%;
    min-height: 42px;
  }

  .admin-remove-service {
    justify-self: stretch;
    width: 100%;
    min-height: 40px;
  }

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

  .admin-periods label {
    min-width: 0;
  }

  .admin-periods input,
  .block-date-form input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
  }

  .block-date-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .block-date-form .text-action {
    width: 100%;
  }

  .landing-info-item strong {
    font-size: 0.92rem;
  }

  .landing-info-item em {
    font-size: 0.7rem;
  }

  .profile-photo-wrap {
    width: 42px;
    height: 42px;
  }

  .app-card {
    width: 100%;
    height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: 88px minmax(0, 1fr) 78px;
    border-radius: 0;
  }

  .side-panel {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 0;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(180deg, #fffdf9 0%, #f7f0ea 100%);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-dots {
    position: absolute;
    top: calc(18px + env(safe-area-inset-top));
    right: 16px;
    justify-content: flex-end;
    gap: 6px;
  }

  .side-center {
    width: min(100%, 320px);
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: start;
    gap: 2px 10px;
    text-align: left;
  }

  .side-logo {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin: 0;
    box-shadow: 0 8px 20px rgba(57, 39, 33, 0.12);
  }

  .side-center h1 {
    max-width: calc(100% - 54px);
    margin: 0;
    overflow: hidden;
    font-size: 1.02rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .side-center p {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .help-link {
    display: none;
  }

  .flow-panel {
    grid-template-rows: 54px minmax(0, 1fr) 64px;
  }

  .flow-header {
    gap: 8px;
    padding: 0 12px;
    background: #fffdf9;
  }

  .flow-header h2 {
    min-width: 0;
    font-size: 0.98rem;
    text-align: center;
  }

  .flow-header .icon-action {
    width: 38px;
    height: 38px;
    background: #f8f4ef;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .flow-footer {
    align-items: center;
    padding: 7px 12px calc(9px + env(safe-area-inset-bottom));
    background: #fffdf9;
    border-top: 0;
    box-shadow: 0 -10px 24px rgba(44, 38, 34, 0.08);
  }

  .primary-action {
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
  }

  .admin-toolbar .primary-action {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .step {
    padding: 12px 16px 8px;
  }

  #stepSchedule {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
  }

  .month-bar {
    grid-template-columns: 34px 1fr 34px;
  }

  .month-bar strong {
    text-align: center;
    font-size: 1rem;
  }

  .month-bar .text-action {
    width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .month-bar .text-action svg {
    color: var(--ink);
  }

  .calendar-grid {
    gap: 6px;
    align-content: center;
  }

  .calendar-day {
    min-height: 34px;
    font-size: 0.9rem;
  }

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    scrollbar-width: none;
  }

  .time-grid::-webkit-scrollbar {
    display: none;
  }

  .time-option {
    min-height: 40px;
  }

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

  .service-card {
    min-height: 88px;
    padding: 12px;
  }

  .service-card span {
    font-size: 0.9rem;
  }

  .service-card strong {
    margin-top: 6px;
    font-size: 1.04rem;
  }

  .service-card small {
    font-size: 0.72rem;
  }

  .details-form {
    gap: 10px;
  }

  input,
  textarea {
    min-height: 44px;
  }

  textarea {
    min-height: 62px;
  }

  .pay-choice {
    gap: 8px;
  }

  .pix-tip {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .pay-option {
    min-height: 52px;
    padding: 10px;
    font-size: 0.78rem;
  }

  .summary-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    background: #fffdf9;
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: inset 0 1px 0 var(--line);
  }

  .summary-title {
    display: none;
  }

  dl {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.22fr) minmax(76px, .78fr);
    gap: 7px;
  }

  dt {
    display: none;
  }

  dd {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 54px;
    margin: 0;
    padding: 7px 8px;
    overflow: hidden;
    color: var(--ink);
    background: #f8f4ef;
    border: 0;
    border-radius: 8px;
    font-size: 0.72rem;
    line-height: 1.14;
    box-shadow: inset 0 0 0 1px rgba(234, 219, 208, 0.62);
  }

  dd::before {
    color: #a89b92;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #summaryDate::before {
    content: "Quando";
  }

  #summaryService::before {
    content: "Serviço";
  }

  #summaryPrice::before {
    content: "Total";
  }

  #summaryPayment {
    display: none;
  }

  #summaryPrice {
    color: var(--rose-deep);
    font-size: 0.86rem;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .install-banner {
    width: calc(100% - 16px);
  }

  .install-banner-inner {
    min-height: 48px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 7px;
  }

  .install-action {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .install-banner small {
    font-size: 0.62rem;
  }

  body.install-banner-visible .install-banner {
    top: calc(6px + env(safe-area-inset-top));
  }

  body.install-banner-visible .install-banner-inner {
    min-height: 42px;
  }

  body.install-banner-visible .install-banner small {
    display: none;
  }

  .landing-view {
    gap: 8px;
    padding: calc(12px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
  }

  body.install-banner-visible .landing-view {
    gap: 6px;
    padding-top: calc(58px + env(safe-area-inset-top));
  }

  .landing-logo {
    width: 68px;
    height: 68px;
  }

  body.install-banner-visible .landing-logo {
    width: 52px;
    height: 52px;
  }

  .landing-kicker {
    font-size: 0.68rem;
  }

  body.install-banner-visible .landing-kicker {
    display: none;
  }

  .landing-hero {
    width: min(100%, calc(100vw - 28px));
    gap: 10px;
  }

  .landing-hero h1 {
    font-size: 2.05rem;
  }

  body.install-banner-visible .landing-hero h1 {
    font-size: 1.84rem;
    line-height: 1;
  }

  .landing-copy {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  body.install-banner-visible .landing-copy {
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .landing-cta,
  .landing-secondary {
    min-height: 44px;
  }

  .landing-cta span,
  .landing-secondary span {
    font-size: 0;
  }

  .landing-cta span::after,
  .landing-secondary span::after {
    content: attr(data-short);
    font-size: 0.86rem;
  }

  .landing-info {
    width: min(100%, calc(100vw - 28px));
    gap: 8px;
    padding-bottom: 30px;
  }

  body.install-banner-visible .landing-info {
    padding-bottom: 20px;
  }

  .landing-info-item {
    min-height: 66px;
    gap: 10px;
    padding: 10px;
  }

  body.install-banner-visible .landing-info-item {
    min-height: 58px;
  }

  .landing-info-item small,
  .landing-info-item em {
    font-size: 0.64rem;
  }

  .landing-info-item strong {
    font-size: 0.82rem;
  }

  .profile-photo-wrap {
    width: 36px;
    height: 36px;
  }

  .profile-badge {
    width: 17px;
    height: 17px;
  }

  .admin-footer-link {
    width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .admin-footer-link svg {
    width: 13px;
    height: 13px;
  }

  .app-card {
    grid-template-rows: 70px minmax(0, 1fr) 64px;
  }

  .side-panel {
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  }

  .side-logo {
    width: 44px;
    height: 44px;
  }

  .side-center h1 {
    font-size: 0.92rem;
    max-width: calc(100% - 42px);
  }

  .step-dots {
    gap: 5px;
    top: calc(16px + env(safe-area-inset-top));
    right: 12px;
  }

  .side-center p {
    display: none;
  }

  .flow-panel {
    grid-template-rows: 42px minmax(0, 1fr) 54px;
  }

  .flow-header {
    padding: 0 8px;
  }

  .flow-header h2 {
    font-size: 0.92rem;
  }

  .flow-header .icon-action {
    width: 36px;
    height: 36px;
  }

  .flow-footer {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .step {
    padding: 8px 10px 6px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-day {
    width: 86%;
    min-height: 24px;
    font-size: 0.78rem;
  }

  .calendar-day::after {
    right: 6px;
    bottom: 3px;
    left: 6px;
    height: 2px;
  }

  .weekday {
    font-size: 0.62rem;
  }

  .time-block {
    gap: 5px;
  }

  .time-block p {
    font-size: 0.68rem;
    line-height: 1.1;
  }

  .time-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    max-height: 70px;
  }

  .time-option {
    min-height: 30px;
    font-size: 0.66rem;
  }

  .primary-action {
    min-height: 40px;
  }

  .service-card {
    min-height: 82px;
  }

  input,
  textarea {
    min-height: 40px;
    padding: 8px 10px;
  }

  textarea {
    height: 46px;
    min-height: 46px;
  }

  #stepDetails {
    align-content: stretch;
  }

  .details-form {
    gap: 6px;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .details-form::-webkit-scrollbar {
    display: none;
  }

  label {
    gap: 4px;
    font-size: 0.74rem;
  }

  .pix-tip {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .pix-tip svg {
    width: 14px;
    height: 14px;
  }

  .pay-choice {
    gap: 6px;
  }

  .pay-option {
    min-height: 40px;
    gap: 7px;
    padding: 6px 7px;
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .pay-option svg {
    width: 16px;
    height: 16px;
  }

  .pay-option small {
    font-size: 0.6rem;
  }

  .pix-modal {
    padding: 10px;
  }

  .pix-modal-card {
    gap: 8px;
    padding: 12px;
  }

  .client-schedule-admin-card {
    max-height: 92vh;
    padding: 0;
  }

  .client-schedule-admin-card header {
    padding: 14px;
  }

  .client-schedule-admin-card > label,
  .client-schedule-admin-card > .form-message,
  .client-schedule-admin-card > .primary-action,
  .client-schedule-admin-card > .reschedule-admin-summary {
    margin-inline: 12px;
  }

  .client-schedule-admin-card > label {
    padding: 10px;
  }

  .pix-modal-card h2 {
    font-size: 1rem;
  }

  .pix-amount {
    min-height: 34px;
    font-size: 0.8rem;
  }

  #pixCodeText {
    min-height: 92px;
    font-size: 0.66rem;
  }

  .pix-copy-message,
  .pix-instruction {
    font-size: 0.7rem;
  }

  .form-message {
    min-height: 14px;
    font-size: 0.72rem;
  }

  .summary-panel {
    gap: 4px;
    padding: 5px 8px;
  }

  dl {
    gap: 5px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.08fr) minmax(68px, .78fr);
  }

  dd {
    min-height: 48px;
    padding: 4px 6px;
    font-size: 0.61rem;
    line-height: 1.1;
    white-space: normal;
    text-overflow: clip;
  }

  dd::before {
    font-size: 0.5rem;
  }

  #summaryPrice {
    font-size: 0.76rem;
  }
}
