:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263a33;
  background: #f6f7f2;
  font-synthesis: none;
  font-size: 14px;
  /* The Home page palette. docs/LOOK-AND-FEEL.md: every screen is built from these. */
  --ink: #263a33;        /* main text */
  --ink-soft: #4b5049;   /* details, hints, counts */
  --ink-label: #33463a;  /* field labels and small headings */
  --ink-green: #345c4e;  /* links and text buttons */
  --brand: #53786b;      /* filled green areas, with --on-brand text */
  --on-brand: #fffdf6;
  --page: #eae4d8;
  --card: #faf8f1;
  --line: #bbbdb1;       /* card and input borders */
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.catalog-count { margin: 24px 0 12px; color: #4b5049; }
.contact-review { max-height: 45vh; overflow: auto; }
.contact-review label { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.contact-review input[type="checkbox"] { width: 22px; height: 22px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a7c857;
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  filter: brightness(0.96);
}
a {
  text-decoration: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
h3 {
  font-size: 16px;
}
p {
  color: #4b5049;
  line-height: 1.65;
}
small {
  display: block;
  color: #4b5049;
  font-size: 14px;
  margin-top: 6px;
}
strong {
  font-weight: 600;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid #e8ebe3;
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-light {
  font-weight: 400;
}
.brand-logo { width: 144px; height: 144px; object-fit: contain; border-radius: 16px; }
.business-icon { object-fit: cover; }
.app-update { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 88px; max-width: 560px; margin: auto; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: #143e35; color: white; box-shadow: 0 8px 24px #0003; }
.app-update button { flex-shrink: 0; min-height: 44px; padding: 8px 16px; border-radius: 8px; background: #d3e7a6; color: #143e35; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #143e35;
  color: #d3e7a6;
  font-size: 28px;
}
.workspace-label {
  font-size: 13px;
  letter-spacing: 1.8px;
  margin: 49px 14px 17px;
  color: #4b5049;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: none;
  padding: 15px;
  margin-bottom: 7px;
  color: #4b5049;
  text-align: left;
  font-weight: 500;
}
.nav-item span {
  width: 20px;
  font-size: 21px;
}
.nav-item.selected {
  background: #edf3e7;
  color: #284534;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}
.sidebar-bottom small {
  font-size: 14px;
}
.local-dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #86a961;
}
.main {
  margin-left: 238px;
}
header {
  height: 89px;
  border-bottom: 1px solid #e5e9df;
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.business,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.business-icon,
.owner-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9eee2;
  color: #345c4e;
}
.business-icon {
  border-radius: 9px;
  background: #fafaf6;
  border: 1px solid #e5e8df;
}
.version {
  font-size: 13px;
  letter-spacing: 1px;
  background: #f2f4ed;
  color: #4b5049;
  padding: 5px 7px;
  border-radius: 4px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #345c4e;
  font-size: 14px;
}
.connection i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #6f9b5f;
}
.connection.offline i {
  background: #bc8c39;
}
.install-button {
  border: 1px solid #e1e5d9;
  background: #fff;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: #33463a;
}
main {
  max-width: 1420px;
  margin: auto;
  padding: 32px 42px 50px;
}
.date-line {
  font-size: 14px;
  color: #4b5049;
  margin-bottom: 27px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.page-heading p:last-child {
  margin-bottom: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #345c4e;
  margin-bottom: 12px;
}
.primary,
.secondary,
.light-button {
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  background: #143e35;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}
.secondary {
  background: #edf2e7;
  color: #284534;
  display: block;
  margin: 15px 0;
}
.light-button {
  background: #e0ecbc;
  color: #254533;
}
.text-button {
  background: none;
  border: 0;
  color: #345c4e;
  font-size: 14px;
  padding: 10px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.metrics article {
  position: relative;
  background: #fff;
  border: 1px solid #e4e8de;
  border-radius: 12px;
  padding: 23px;
}
.metrics article > span {
  color: #4b5049;
  font-size: 14px;
}
.metrics h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 17px 0 6px;
  letter-spacing: -1px;
}
.metrics em {
  font-style: normal;
  font-size: 14px;
  color: #4b5049;
  letter-spacing: 0;
}
.metrics i {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f2f5eb;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #92a27a;
  font-style: normal;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 23px;
  margin-bottom: 26px;
}
.panel {
  background: #fff;
  border: 1px solid #cfd0c4;
  border-radius: 12px;
  padding: 25px;
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.section-title h2 {
  margin-bottom: 0;
}
.section-title .eyebrow {
  margin-bottom: 8px;
}
.empty {
  text-align: center;
  padding: 35px 18px;
  color: #4b5049;
}
.empty > span {
  display: block;
  font-size: 28px;
  color: #a1b38b;
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #33463a;
}
.empty p {
  font-size: 14px;
  margin-bottom: 0;
}
.empty.compact {
  padding: 28px 12px;
}
.welcome {
  border-radius: 12px;
  background: #e9eddf;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.welcome:after {
  content: "✧";
  font-size: 200px;
  position: absolute;
  right: -32px;
  bottom: -80px;
  color: #dce3cb;
  pointer-events: none;
}
.welcome > * {
  position: relative;
  z-index: 1;
}
.sparkle {
  font-size: 24px;
  margin-bottom: 23px;
  color: #345c4e;
}
.welcome h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
}
.welcome p:not(.eyebrow) {
  font-size: 14px;
  max-width: 270px;
}
.welcome button {
  margin-top: 8px;
}
.subtle {
  color: #4b5049;
  font-size: 14px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  text-align: left;
  font-size: 14px;
}
th {
  color: #4b5049;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid #edf0e7;
}
td {
  padding: 17px 10px 17px 0;
  border-bottom: 1px solid #edf0e7;
  line-height: 1.5;
}
tr:last-child td {
  border-bottom: 0;
}
.badge {
  font-size: 14px;
  background: #f0f3e8;
  color: #4b5049;
  border-radius: 5px;
  padding: 5px 9px;
  white-space: nowrap;
}
.badge.done {
  color: #347462;
  background: #e5f0e9;
}
.appointment {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #edf0e7;
}
.appointment:last-child {
  border-bottom: 0;
}
.time {
  font-size: 14px;
  width: 42px;
}
.avatar {
  display: grid;
  place-items: center;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  background: #edf0e5;
  color: #345c4e;
}
.grow {
  flex: 1;
}
.appointment strong {
  font-size: 14px;
}
.date-heading {
  margin: 25px 0 8px;
  color: #345c4e;
}
.sale-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  border: 1px solid #e3e7da;
  border-radius: 20px;
  padding: 9px 18px;
  background: #fff;
  color: #4b5049;
}
.chip.active {
  background: #143e35;
  color: #fff;
  border-color: #143e35;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  background: #fff;
  border: 1px solid #e4e8de;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  gap: 9px;
  color: #344a3e;
}
.service-icon {
  font-size: 25px;
  background: #f2f4e9;
  border-radius: 8px;
  padding: 5px 10px;
  color: #859b69;
}
.service-card small {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.service-card > span:last-child {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
  color: #4b5049;
}
.service-card b {
  font-weight: 400;
  color: #143e35;
}
.checkout h2 {
  margin-bottom: 6px;
}
.cart {
  margin: 20px 0;
}
.cart-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf0e7;
  font-size: 14px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quantity button {
  border: 1px solid #e5e9dd;
  border-radius: 5px;
  background: #f7f8f1;
  padding: 3px 7px;
}
label {
  display: block;
  color: #33463a;
  font-size: 14px;
  margin: 20px 0;
}
label span {
  color: #4b5049;
}
input,
select {
  display: block;
  width: 100%;
  background: #fbfcf8;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 7px;
  margin-top: 9px;
  color: var(--ink);
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #93b273;
  outline-offset: 1px;
}
.fine {
  font-size: 14px;
  line-height: 1.6;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5eadd;
  padding: 20px 0;
  margin-top: 25px;
}
.total strong {
  font-size: 24px;
}
.full {
  width: 100%;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-row {
  display: flex;
  gap: 14px;
}
.form-row label {
  flex: 1;
  min-width: 0;
}
dialog {
  border: 1px solid #e3e9d9;
  border-radius: 14px;
  padding: 28px;
  width: 440px;
  max-width: calc(100% - 32px);
  color: #263a33;
}
dialog::backdrop {
  background: #143e3566;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-header h2 {
  margin: 0;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #143e35;
  color: white;
  padding: 15px 23px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #143e3522;
  z-index: 5;
  max-width: 90vw;
}
.form-error {
  color: #a63838;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e5e9dd;
  padding: 21px 42px;
  color: #4b5049;
  font-size: 14px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .metrics article {
    padding: 30px;
  }
  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 15px;
  }
  .main {
    margin-left: 200px;
  }
  main {
    padding: 28px 25px;
  }
  header {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .sale-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  h1 {
    font-size: 34px;
  }
  .panel {
    padding: 20px;
  }
  .metrics {
    gap: 12px;
  }
  .metrics article {
    padding: 18px;
  }
  .metrics h2 {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    padding: 0 6px env(safe-area-inset-bottom);
    z-index: 3;
    border-top: 1px solid #e4e8de;
    border-right: 0;
    height: calc(78px + env(safe-area-inset-bottom));
  }
  .sidebar .brand,
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 78px;
    align-items: center;
  }
  .nav-item {
    flex: 0 0 25%;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 2px;
    margin: 0;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.2;
    width: 25%;
    text-align: center;
  }
  .nav-item span {
    height: 28px;
    width: 32px;
    font-size: 24px;
    text-align: center;
  }
  .main {
    margin-left: 0;
    margin-bottom: calc(94px + env(safe-area-inset-bottom));
  }
  header {
    height: 72px;
    padding: 0 18px;
  }
  .business {
    gap: 8px;
  }
  .business strong {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .version,
  .owner-avatar {
    display: none;
  }
  .header-right {
    gap: 10px;
  }
  .install-button {
    padding: 7px 9px;
    font-size: 14px;
  }
  .connection {
    font-size: 14px;
  }
  main {
    padding: 24px 18px 30px;
  }
  .date-line {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .page-heading {
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 24px;
    gap: 18px;
  }
  h1 {
    font-size: 32px;
  }
  .page-heading p:last-child {
    font-size: 14px;
  }
  .page-heading .primary {
    padding: 11px 16px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .metrics article:last-child {
    display: none;
  }
  .metrics article {
    padding: 18px 15px;
  }
  .metrics h2 {
    font-size: 25px;
    margin-top: 22px;
  }
  .metrics i {
    width: 26px;
    height: 26px;
    right: 13px;
    top: 13px;
  }
  .metrics article > span {
    font-size: 14px;
  }
  .metrics small {
    font-size: 14px;
  }
  .dashboard-grid,
  .sale-grid,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .welcome {
    padding: 24px;
  }
  .welcome h2 {
    font-size: 27px;
  }
  .sparkle {
    margin-bottom: 15px;
  }
  .welcome p:not(.eyebrow) {
    max-width: 100%;
  }
  .section-title {
    gap: 10px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title .text-button {
    font-size: 14px;
  }
  .section-title .subtle {
    display: none;
  }
  .panel {
    padding: 20px 16px;
  }
  .empty {
    padding: 34px 10px;
  }
  .appointment {
    gap: 8px;
    flex-wrap: wrap;
  }
  .appointment .text-button {
    margin-left: auto;
  }
  .appointment .avatar {
    display: none;
  }
  .toast {
    bottom: 100px;
    width: max-content;
  }
  .service-card {
    padding: 16px;
  }
  .service-card strong {
    font-size: 14px;
  }
  footer {
    padding: 18px;
    font-size: 14px;
  }
  footer span:last-child {
    display: none;
  }
  .form-row {
    gap: 8px;
  }
  .form-row input {
    padding: 10px 6px;
  }
  dialog {
    padding: 23px 18px;
  }
  .eyebrow {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Device-specific installation instructions */
.install-steps { list-style: none; padding: 0; margin: 24px 0 16px; }
.install-steps li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.install-step-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #edf3e7; color: #143e35; font-size: 25px; }
.install-steps strong { display: block; color: #263a33; }
.install-steps p { color: #33463a; font-size: 14px; margin: 6px 0 0; }
.dialog-header > button { min-width: 44px; min-height: 44px; flex-shrink: 0; }
.install-button { max-width: 145px; min-height: 44px; }
.install-button[hidden], .secondary[hidden] { display: none; }

/* Keep the current visit above the service catalogue on every screen. */
.sale-page .date-line { display: none; }
.sale-workspace { max-width: 900px; margin: auto; }
.sale-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sale-heading h1 { font-family: inherit; font-size: 34px; font-weight: 800; }
.sale-heading p { color: #4b5049; margin: 4px 0 0; }
.sale-add-item { border-radius: 28px; background: #e3ebe5; color: #3d655b; padding: 13px 18px; font-weight: 700; white-space: nowrap; min-height: 44px; }
.sale-summary { position: sticky; top: 0; z-index: 2; background: #e3ebe5; padding: 20px; border-radius: 18px; box-shadow: 0 4px 14px #143e3512; }
.sale-summary-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sale-summary-top > strong { color: #4b5049; font-size: 15px; }
.sale-summary output { font-size: clamp(24px, 5vw, 34px); font-weight: 800; color: #202923; white-space: nowrap; }
.sale-selected { list-style: none; padding: 0; margin: 14px 0; max-height: min(140px, 22vh); overflow-y: auto; }
.sale-selected li { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 16px; font-weight: 700; color: #29342d; overflow-wrap: anywhere; }
.sale-selected li > span { background: #29342d; color: white; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }
.sale-selected .sale-empty { font-size: 14px; font-weight: 400; color: #4b5049; }
.sale-payments { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sale-payment { border: 0; padding: 12px; min-height: 48px; border-radius: 14px; background: #faf7f0; color: #252b27; font-size: 19px; font-weight: 750; }
.sale-payment.selected { background: #4e756a; color: white; }
.sale-record { margin-top: 12px; min-height: 44px; }
.sale-client { margin: 18px 0 22px; padding: 0 4px; }
.sale-client label { margin: 12px 0; }
.sale-service-group { margin-bottom: 25px; }
.sale-service-group h2 { font-size: 17px; font-weight: 750; color: #33463a; margin-bottom: 12px; }
.sale-service-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #faf7f0; border-radius: 17px; padding: 18px; margin-bottom: 10px; }
.sale-service-row h3 { margin: 0; font-size: 19px; color: #262d28; overflow-wrap: anywhere; }
.sale-service-row p { color: #4b5049; margin: 6px 0 0; font-size: 14px; }
.sale-quantity { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 750; }
.sale-quantity button { border: 0; min-width: 44px; height: 44px; border-radius: 12px; font-size: 24px; background: #e9e3d8; color: #29342d; }
.sale-quantity .sale-plus { background: #4e756a; color: white; }
#sale-services { scroll-margin-top: 340px; outline: none; }
.payment-dialog { position: fixed; left: 50%; transform: translateX(-50%); margin: 0; width: 540px; padding: 0; background: #e9e3d8; max-height: 90dvh; overflow: hidden; }
.payment-heading { display: flex; align-items: center; gap: 16px; padding: 18px; background: #faf7f0; }
.payment-heading h2 { margin: 0; font-size: 22px; }
.payment-heading button { min-height: 44px; font-size: 17px; }
.payment-dialog form { display: flex; flex-direction: column; max-height: calc(90dvh - 80px); }
.payment-fields { overflow-y: auto; padding: 18px; }
.payment-overview, .payment-card { background: #faf7f0; border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.payment-overview > div { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.payment-overview span { color: #4b5049; }
.payment-overview strong { overflow-wrap: anywhere; text-align: right; }
.payment-card label { margin: 0; }
.payment-fields label { font-weight: 700; font-size: 14px; color: #4b5049; }
.payment-fields input { font-size: 19px; font-weight: 500; background: #faf7f0; min-height: 48px; }
.payment-change { display: flex; justify-content: space-between; gap: 16px; padding: 18px; border-radius: 12px; background: #dcdacf; color: #345c4e; font-size: 19px; }
.payment-footer { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); background: #e9e3d8; border-top: 1px solid #d4d2c7; flex-shrink: 0; }
.payment-footer button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; font-size: 19px; }
.payment-success { color: #345c4e; font-size: 24px; font-weight: 700; }
@media (max-width: 400px) {
  .sale-heading h1 { font-size: 29px; }
  .sale-summary { padding: 14px; }
  .sale-service-row { padding: 14px; gap: 8px; }
  .sale-service-row h3 { font-size: 16px; }
  .sale-quantity { gap: 7px; }
}

/* Appointment and client workspaces, with the same cards as the native app. */
.calendar-page .date-line { display: none; }
.calendar-page { background: #e9e3d8; }
.schedule-date { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid #bdbfb3; background: #faf7f0; }
.schedule-date > div { flex: 1; min-width: 0; }
.schedule-date strong { font-size: 20px; font-weight: 750; }
.schedule-date small { display: block; color: #4b5049; }
.schedule-date input { width: auto; max-width: 47%; margin: 0; font-size: 16px; background: #e5e3dd; padding: 12px 8px; }
.date-arrow { color: #345c4e; font-size: 30px; min-width: 32px; min-height: 44px; padding: 0; }
.schedule-toolbar { display: flex; gap: 8px; margin: 14px 0 20px; }
.schedule-toolbar button { flex: 1; min-height: 48px; padding: 10px 6px; font-weight: 750; margin: 0; }
.schedule-day h2 { color: #33463a; text-transform: uppercase; font-size: 16px; margin: 24px 4px 14px; }
.schedule-card, .schedule-empty { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 18px; border: 1px solid #bdbfb3; background: #faf7f0; margin-bottom: 14px; }
.schedule-card h3, .schedule-empty h3 { font-size: 19px; margin: 0 0 8px; overflow-wrap: anywhere; }
.schedule-card p, .schedule-empty p { color: #4b5049; margin: 6px 0; overflow-wrap: anywhere; }
.schedule-empty { align-items: center; }
.schedule-empty > span { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 48px; background: #e3ebe5; border-radius: 12px; color: #345c4e; padding: 8px; font-size: 27px; }
.schedule-time { font-size: 20px; font-weight: 750; color: #345c4e; white-space: nowrap; }
.schedule-time small { font-size: 14px; display: block; color: #4b5049; font-weight: 400; }
.schedule-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.schedule-actions a { text-decoration: none; }
.blocked-card { background: #e0ded5; }
.appointment-dialog { padding: 0; background: #e9e3d8; width: 600px; max-width: calc(100vw - 20px); max-height: 92dvh; }
.appointment-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 10px 16px; position: sticky; top: 0; background: #faf7f0; z-index: 1; border-bottom: 1px solid #c8c7bd; }
.appointment-heading h2 { margin: 0; font-size: 20px; text-align: center; }
.appointment-heading button { font-size: 16px; min-height: 44px; padding: 6px; color: #345c4e; font-weight: 650; }
.appointment-fields { padding: 18px; }
.booking-card { padding: 16px; border: 1px solid #bdbfb3; background: #faf7f0; border-radius: 18px; margin-bottom: 14px; }
.booking-card h3, .booking-card label { color: #33463a; font-size: 14px; font-weight: 750; margin: 0 0 12px; }
.booking-card p { color: #4b5049; font-size: 14px; margin: 8px 0 0; }
.booking-card select { font-size: 18px; color: #385e53; background: transparent; border: 0; border-radius: 0; padding: 8px 0; }
.booking-card input { background: #e5e3dd; min-width: 0; }
.booking-services { max-height: 190px; overflow-y: auto; margin-top: 12px; }
.service-choice { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.service-choice input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; }
.service-choice[hidden] { display: none; }
textarea { display: block; width: 100%; box-sizing: border-box; min-height: 110px; margin-top: 8px; padding: 14px; border: 1px solid #bdbfb3; border-radius: 12px; font: inherit; background: #faf7f0; resize: vertical; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .schedule-card, .schedule-empty { padding: 16px; gap: 12px; }
  .schedule-toolbar button { font-size: 13px; }
  .schedule-date { gap: 6px; padding: 10px 8px; }
  .schedule-date strong { font-size: 17px; }
  .appointment-heading h2 { font-size: 18px; }
}

/* The browser is the starting point; installing is an optional next step. */
.entry-shell { min-height: 100dvh; background: var(--page); }
.entry-header { position: static; height: auto; padding: 24px max(28px, calc((100vw - 1180px) / 2)); background: transparent; border: 0; display: flex; align-items: center; justify-content: space-between; }
.entry-logo { width: 64px; height: 64px; border-radius: 14px; }
.entry-header > span { color: #4b5049; font-size: 14px; }
.entry-main { padding: 22px 28px 48px; max-width: 1180px; margin: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.entry-story { background: #143e35; border-radius: 22px; color: #fff; padding: 40px; min-height: 590px; display: flex; flex-direction: column; justify-content: space-between; }
.entry-sparkle { display: block; color: #dce8b6; font-size: 48px; margin-bottom: 26px; }
.entry-story .eyebrow { color: #b9cea6; font-size: 13px; line-height: 1.7; }
.entry-story h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(40px, 4.5vw, 62px); line-height: 1.05; letter-spacing: -1.8px; margin-bottom: 22px; }
.entry-story p { color: #c1d1c7; }
.entry-story-top > p:last-child { max-width: 320px; }
.entry-features { margin-top: 16px; }
.entry-features > div { position: relative; padding-left: 40px; margin-top: 20px; }
.entry-features > div > span { position: absolute; left: 0; top: 0; font-size: 24px; color: #dce8b6; }
.entry-features strong { font-size: 14px; }
.entry-features p { font-size: 14px; margin: 5px 0 0; }
.entry-story .entry-story-bottom { border-top: 1px solid #ffffff24; padding-top: 20px; margin: 30px 0 0; font-size: 14px; }
.entry-card { padding: 32px 0; min-width: 0; }
.entry-card h1 { font-size: clamp(34px, 3.8vw, 44px); line-height: 1.18; margin-bottom: 20px; }
.entry-intro { font-size: 16px; margin-bottom: 30px; max-width: 390px; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; }
.google-button svg { background: #fff; border-radius: 50%; padding: 2px; width: 24px; height: 24px; }
.entry-note { font-size: 14px; text-align: center; margin: 12px 0 30px; }
.entry-divider { display: flex; align-items: center; gap: 14px; color: #4b5049; font-size: 14px; }
.entry-divider::before, .entry-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.entry-card .secondary { min-height: 46px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 650; }
.entry-card > .fine { text-align: center; }
.entry-browser-note { font-size: 14px; color: #345c4e; border-top: 1px solid var(--line); margin: 26px 0 0; padding-top: 20px; }
.entry-account { font-size: 14px; overflow-wrap: anywhere; }
.entry-status { background: #eaf0e3; border-radius: 8px; padding: 14px; color: #365c45; font-size: 14px; }
.entry-account-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.entry-account-actions .text-button { min-height: 44px; }
.entry-footer { padding: 22px 28px; justify-content: center; font-size: 14px; }
.entry-card form { margin-top: 20px; }
.entry-card label { color: var(--ink-label); font-size: 15px; font-weight: 600; }
/* 16px in a box also stops an iPhone zooming the page when the box is tapped. */
.entry-card input, .entry-card select { background: var(--card); border-radius: 12px; min-height: 48px; font-size: 16px; }
.entry-card input[type="checkbox"], .entry-card input[type="radio"] { min-height: 0; }
.entry-card .primary { min-height: 50px; font-size: 16px; font-weight: 650; }
.entry-card p { font-size: 15px; }
.entry-card p.fine, .entry-card .entry-note { font-size: 14px; }
.entry-days { border: 0; padding: 0; margin: 0 0 20px; }
.entry-days legend { font-size: 15px; font-weight: 600; color: var(--ink-label); margin-bottom: 10px; }
.entry-day-options { display: flex; gap: 8px; flex-wrap: wrap; }
.entry-day-options label { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; margin: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.entry-day-options input { width: 18px; height: 18px; margin: 0; accent-color: #143e35; }
.entry-card .entry-confirm { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.entry-confirm input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #143e35; }
.entry-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.entry-card .form-error { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .entry-main { gap: 32px; }
  .entry-story { padding: 30px; }
}
@media (max-width: 760px) {
  .entry-header { padding: 16px 22px; }
  .entry-logo { width: 56px; height: 56px; }
  .entry-header > span { font-size: 14px; }
  .entry-main { display: flex; flex-direction: column-reverse; padding: 8px 22px 32px; gap: 24px; }
  .entry-card { width: 100%; max-width: 460px; padding: 16px 0 4px; }
  .entry-card h1 { font-size: 37px; }
  .entry-story { width: 100%; max-width: 460px; min-height: 0; padding: 28px; }
  .entry-story h2 { font-size: 40px; }
  .entry-sparkle { font-size: 30px; margin-bottom: 18px; }
  .entry-story-top > p:last-child { max-width: none; }
}

/* Settings are a short menu, with each detail screen one tap away. */
.settings-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-link { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; min-height: 76px; padding: 16px; border: 1px solid #bbbdb1; border-radius: 16px; background: #faf7f0; text-align: left; color: #29342d; }
.settings-link > div, .settings-link > span:not([class]) { flex: 1; min-width: 0; }
.settings-link strong { display: block; font-size: 17px; line-height: 1.35; font-weight: 700; }
.settings-link p, .settings-link small { display: block; margin: 6px 0 0; color: #4b5049; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.settings-link-arrow, .settings-link > span:last-child:not(:first-child) { flex: 0 0 auto; color: #345c4e; font-size: 24px; }
.settings-link:hover { background: #f2efe5; }
.settings-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; margin: 0 0 16px; background: transparent; border: 0; color: #3c614e; font-size: 16px; font-weight: 600; }

@media (max-width: 760px) {
  :root { font-size: 16px; }
  input, select, textarea { font-size: 16px; }
  label { font-size: 14px; line-height: 1.5; }
  .main { min-width: 0; }
  .main > header { min-height: 80px; height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
  .main .business { flex: 1 1 140px; min-width: 140px; }
  .main .business strong { max-width: none; font-size: 16px; }
  .main .business-icon { flex-shrink: 0; }
  .main .header-right { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .main .connection { font-size: 14px; }
  .main .install-button { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .main main { padding: 22px 16px 36px; }
  .main p { font-size: 16px; }
  .main small, .main .fine { font-size: 14px; line-height: 1.5; }
  .main .eyebrow { font-size: 14px; line-height: 1.5; }
  .main .date-line { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .main .page-heading p:last-child { font-size: 16px; }
  .main .text-button { min-height: 44px; font-size: 14px; }
  .main .section-title { flex-wrap: wrap; align-items: center; gap: 12px; }
  .main .section-title h2 { font-size: 20px; }
  .main .section-title .text-button { font-size: 14px; }
  .main .panel { padding: 20px 16px; }
  .main .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .main .metrics article { min-width: 0; padding: 18px 14px; }
  .main .metrics article > span { display: block; min-height: 48px; font-size: 16px; line-height: 1.5; }
  .main .metrics h2 { font-size: clamp(24px, 7vw, 30px); line-height: 1.2; margin: 12px 0 8px; letter-spacing: -.5px; overflow-wrap: anywhere; }
  .main .metrics em { font-size: 14px; }
  .main .metrics i { display: none; }
  .main .metrics small { font-size: 14px; }
  .main .badge { font-size: 14px; }
  .main table { font-size: 16px; }
  .main th { font-size: 14px; }
  .main .service-card strong { font-size: 16px; }
  .main .schedule-time small { font-size: 14px; }
  .main .schedule-toolbar { flex-wrap: wrap; }
  .main .schedule-toolbar button { min-width: 80px; font-size: 14px; }
  .main .schedule-card > .grow, .main .sale-service-row > div:first-child { min-width: 0; }
  .main .sale-heading { flex-wrap: wrap; }
  .main .sale-summary-top { flex-wrap: wrap; }
  .main .sale-summary-top > strong { font-size: 16px; }
  .main .sale-summary output { white-space: normal; overflow-wrap: anywhere; }
  .main .sale-selected .sale-empty { font-size: 16px; }
  .main .sale-service-row p { font-size: 16px; }
  .settings-menu { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .settings-link { min-height: 74px; padding: 14px 16px; }
  .settings-link strong { font-size: 17px; }
  .main .settings-link p, .main .settings-link small { font-size: 14px; }
  .main .settings-back { min-height: 48px; font-size: 16px; }
  .main footer { font-size: 14px; line-height: 1.5; padding: 20px 16px; }
  .main .catalog-count { font-size: 14px; }
  dialog .fine, dialog small, .install-steps p { font-size: 14px; }
  .payment-fields label, .booking-card label { font-size: 14px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); font-size: 16px; line-height: 1.5; }
  .app-update { bottom: calc(96px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .nav-item { font-size: 12px; }
  .main main { padding-left: 12px; padding-right: 12px; }
  .main .metrics { gap: 10px; }
  .main .metrics article { padding: 16px 12px; }
  .main .sale-service-row { padding: 14px 12px; gap: 8px; flex-wrap: wrap; }
  .main .sale-quantity { margin-left: auto; }
}

/* A compact Home keeps everyday actions and activity close together. */
.home-page > .date-line { display: none; }
.home-hero { background: #53786b; color: #fffdf6; border-radius: 20px; padding: 24px; margin-bottom: 22px; }
.main .home-date { color: #f2f6f1; font-size: 16px; margin-bottom: 12px; }
.home-hero h1 { font-family: inherit; font-size: 30px; line-height: 1.2; font-weight: 750; letter-spacing: -.5px; margin: 0 0 18px; }
.home-start { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; background: #faf8f1; border: 0; border-radius: 14px; color: #345c4e; font-size: 20px; font-weight: 700; text-align: left; }
.home-start > span:first-child { background: #e4e8df; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
.home-start > span:last-child { margin-left: auto; font-size: 28px; }
.home-section { margin: 0 0 20px; }
.home-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.home-section-title h2 { font-family: inherit; margin: 0; font-size: 22px; font-weight: 750; line-height: 1.25; letter-spacing: -.4px; }
.home-section-title .text-button { min-height: 44px; padding: 8px 0 8px 8px; white-space: nowrap; }
.home-stats, .home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-stats article { background: #faf8f1; border: 1px solid #bbbdb1; border-radius: 16px; padding: 14px 16px; min-width: 0; }
.home-stats article > span { display: block; color: #61665d; font-size: 16px; margin-bottom: 6px; }
.home-stats strong { display: block; font-size: 26px; line-height: 1.2; letter-spacing: -.5px; overflow-wrap: anywhere; }
.home-actions button { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; min-height: 52px; padding: 12px; border: 1px solid #bbbdb1; border-radius: 12px; background: #faf8f1; color: #263a33; font-size: 16px; font-weight: 700; text-align: left; }
.home-actions button > span { color: #53786b; font-size: 22px; }
.home-actions small { flex-basis: 100%; font-weight: 400; }
.home-activity { background: #faf8f1; border: 1px solid #bbbdb1; border-radius: 16px; overflow: hidden; }
.home-activity-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px; background: transparent; border: 0; color: #263a33; text-align: left; }
.home-activity-row + .home-activity-row { border-top: 1px solid #dadacf; }
.home-activity-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #e3eae3; color: #53786b; display: grid; place-items: center; font-size: 22px; }
.home-activity-details { min-width: 0; flex: 1; }
.home-activity-details strong { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main .home-activity-details small { display: block; font-size: 14px; color: #61665d; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-activity-amount { text-align: right; flex-shrink: 0; }
.home-activity-amount strong { display: block; font-size: 17px; }
.home-activity-amount > span { color: #4b5049; font-size: 20px; }
.main .home-empty { font-size: 16px; padding: 18px 16px; margin: 0; line-height: 1.5; }
.home-upcoming .appointment { padding: 12px 0; }
@media (max-width: 760px) {
  .home-shell { background: #eae4d8; min-height: calc(100dvh - 94px - env(safe-area-inset-bottom)); }
  .main.home-shell > header { background: #53786b; border-bottom: 0; min-height: 64px; padding-bottom: 8px; }
  .home-shell .business { flex: 1 1 100px; min-width: 0; }
  .home-shell .business strong { min-width: 0; }
  .home-shell .business strong, .home-shell .connection { color: #fffdf6; }
  .home-shell .version, .home-shell .owner-avatar { display: none; }
  .home-shell .header-right .text-button { color: #fffdf6; }
  /* Every workspace page carries the Home page's green bar, so the app reads as one. */
  .main.workspace-shell:not(.sale-shell) > header { background: var(--brand); border-bottom: 0; }
  .workspace-shell:not(.sale-shell) .business strong, .workspace-shell:not(.sale-shell) .connection, .workspace-shell:not(.sale-shell) .header-right .text-button { color: var(--on-brand); }
  .workspace-shell:not(.sale-shell) .version, .workspace-shell:not(.sale-shell) .owner-avatar { display: none; }
  .main main.home-page { padding: 0 14px 8px; }
  .home-hero { margin: 0 -14px 18px; padding: 8px 18px 14px; border-radius: 0 0 24px 24px; }
  .main .home-date { margin: 0 0 8px; }
  .home-hero h1 { font-size: 26px; margin-bottom: 10px; }
  .home-section { margin-bottom: 12px; }
  .home-section-title { margin-bottom: 4px; }
  .home-section-title h2 { font-size: 20px; }
  .home-stats article { padding: 12px; }
  .home-stats strong { font-size: clamp(22px, 6vw, 26px); }
  .home-shell footer { display: none; }
}
@media (max-width: 360px) {
  .home-stats, .home-actions { gap: 8px; }
  .home-actions button { padding: 10px 8px; gap: 5px; }
  .home-actions button > span { display: none; }
  .home-activity-row { gap: 8px; padding: 10px; }
  .home-activity-icon { display: none; }
  .home-activity-details strong, .home-activity-amount strong { font-size: 16px; }
}

/* Screens inside the salon share the native app's warm, compact surface. */
.workspace-shell { --workspace-bg: #e9e3d8; --workspace-card: #faf7f0; --workspace-line: #bdbfb3; --workspace-sage: #4e756a; background: var(--workspace-bg); color: #29342d; min-height: 100dvh; font-size: 16px; }
.workspace-shell > header { background: var(--workspace-card); border-bottom-color: #cfcec2; }
.workspace-page { background: var(--workspace-bg); }
.workspace-page > .date-line { display: none; }
.workspace-page h1 { font-family: inherit; font-size: 30px; font-weight: 750; line-height: 1.2; letter-spacing: -.5px; }
.workspace-page h2 { font-weight: 700; }
.workspace-page .page-heading { margin-bottom: 20px; gap: 14px; }
.workspace-page .page-heading .eyebrow { display: none; }
.workspace-page .page-heading p { margin-bottom: 0; color: #4b5049; }
.workspace-page .panel { background: var(--workspace-card); border-color: var(--workspace-line); border-radius: 18px; padding: 20px; }
.workspace-page p, .workspace-page small { color: #4b5049; }
.workspace-page .primary { min-height: 48px; border-radius: 14px; background: var(--workspace-sage); font-weight: 700; }
.workspace-page .secondary { min-height: 48px; border: 1px solid var(--workspace-line); border-radius: 14px; background: #e3ebe5; color: #35594d; }
.workspace-page .text-button { color: var(--ink-green); font-weight: 650; }
.workspace-page input, .workspace-page select, .workspace-page textarea { border-color: var(--workspace-line); border-radius: 12px; background: var(--workspace-card); min-height: 46px; }
.workspace-page input[type="checkbox"] { min-height: 0; accent-color: var(--workspace-sage); }
.workspace-page label { color: #33463a; font-weight: 650; }
.workspace-page .badge { background: #e3ebe5; color: #345c4e; border-radius: 8px; }
.workspace-page table { margin-top: 8px; }
.workspace-page th { color: #33463a; font-weight: 650; }
.workspace-page th, .workspace-page td { border-bottom-color: #d8d8cc; }
.workspace-page .catalog-count { margin-top: 18px; }
.workspace-page .settings-back { margin-bottom: 12px; }
.settings-group { margin: 0 0 24px; }
.settings-group-title { margin: 20px 4px 12px; font-size: 16px; font-weight: 750; color: #33463a; text-transform: uppercase; letter-spacing: .3px; }
.settings-group .settings-menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid #bdbfb3; border-radius: 18px; background: #faf7f0; overflow: hidden; }
.settings-group .settings-link { min-height: 72px; border: 0; border-radius: 0; background: transparent; }
.settings-group .settings-link + .settings-link { border-top: 1px solid #d8d8cc; }
.settings-link-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: #345c4e; font-size: 24px; }
.settings-link-text, .settings-link-copy { flex: 1; min-width: 0; }
.settings-link-arrow { font-size: 26px; }
.settings-sync { margin-top: 24px; }
.workspace-page:has(.settings-group) > .page-heading { justify-content: center; text-align: center; margin-bottom: 18px; }
.workspace-page:has(.settings-group) > .page-heading p { display: none; }
.workspace-heading { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 18px; text-align: center; }
.workspace-heading h1 { margin: 0; font-size: 28px; }
.calendar-heading, .blocked-times-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.calendar-heading h1, .blocked-times-heading h1 { margin: 0; }
.calendar-back { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #345c4e; font-size: 30px; }
.calendar-date-label { min-width: 0; }
.schedule-day-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.schedule-day-heading h2 { margin: 0; }
.schedule-day-heading .text-button { margin-left: auto; }
.schedule-empty h3 { font-size: 17px; line-height: 1.3; }
.schedule-empty p { font-size: 14px; line-height: 1.5; }
.booking-service-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; color: #33463a; font-weight: 700; font-size: 14px; list-style: none; }
.booking-service-summary::-webkit-details-marker { display: none; }
.booking-service-summary::after { content: '⌄'; color: #345c4e; font-size: 22px; }
.booking-service-picker[open] .booking-service-summary::after { content: '⌃'; }
.booking-selected-services { margin: 6px 0 0; color: #385e53; font-size: 16px; line-height: 1.5; }
.booking-service-picker input[type="search"] { font-size: 16px; }
.booking-card .form-row { align-items: start; gap: 12px; }
.booking-card .form-row > label { min-width: 0; flex: 1; }
.booking-card .form-row input { width: 100%; max-width: 100%; }
.blocked-times-note { padding: 14px 16px; background: #e3ebe5; border-radius: 14px; color: #4b5049; line-height: 1.5; }
#app:has(.main) dialog:not(.payment-dialog) { background: #e9e3d8; border-color: #bdbfb3; border-radius: 18px; color: #29342d; }
#app:has(.main) dialog:not(.payment-dialog) .primary { background: #4e756a; border-radius: 14px; min-height: 48px; }
#app:has(.main) dialog:not(.payment-dialog) input, #app:has(.main) dialog:not(.payment-dialog) textarea { background: #faf7f0; border-color: #bdbfb3; border-radius: 12px; }
#app:has(.main) dialog p { color: #4b5049; }
#app:has(.main) dialog:not(.payment-dialog) label { color: var(--ink-label); font-weight: 600; }

@media (max-width: 760px) {
  .sidebar { background: #292e2a; border-top-color: #3e4b42; }
  .sidebar .nav-item { color: #dde5dd; }
  .sidebar .nav-item.selected { background: #4e756a; color: #fffdf6; }
  .workspace-shell > header { min-height: 56px; padding: 8px 14px; }
  .workspace-shell .business strong { font-size: 16px; }
  .main main.workspace-page { padding: 18px 14px 24px; }
  .workspace-page h1 { font-size: 28px; }
  .workspace-page .page-heading { margin-bottom: 18px; }
  .workspace-page .page-heading p { font-size: 14px; line-height: 1.5; }
  .workspace-page .panel { padding: 16px; }
  .workspace-shell footer { display: none; }
  .main .workspace-page .schedule-empty { padding: 16px; gap: 14px; }
  .main .workspace-page .schedule-empty p { font-size: 14px; }
  .main .workspace-page .schedule-toolbar { flex-wrap: nowrap; }
  .main .workspace-page .schedule-toolbar button { min-width: 0; padding: 10px 5px; font-size: 14px; line-height: 1.3; border-radius: 12px; }
  .schedule-date { padding: 12px 10px; gap: 8px; }
  .schedule-date strong { font-size: 19px; }
  .schedule-date .date-arrow { min-width: 28px; }
  .schedule-date input { max-width: 48%; min-width: 0; font-size: 16px; padding: 10px 4px; }
  .schedule-day { margin-top: 18px; }
  .schedule-day > h2, .schedule-day-heading { margin: 18px 4px 12px; }
  .main .workspace-page .schedule-card { padding: 16px; }
  .main .workspace-page .schedule-card p { font-size: 14px; }
  .settings-group-title { margin-top: 18px; }
  .settings-group .settings-link { padding: 12px 14px; }
  .settings-group .settings-link strong { font-size: 17px; }
  .settings-group .settings-link small { font-size: 14px; line-height: 1.4; }
  .appointment-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .appointment-heading { padding: 8px 12px; }
  .appointment-heading h2 { font-size: 18px; line-height: 1.3; }
  .appointment-fields { padding: 14px; }
  .booking-card select { min-height: 44px; font-size: 17px; }
  .booking-card p { font-size: 14px; line-height: 1.5; }
  .booking-card .form-row { gap: 10px; }
  .workspace-page > .form-row { flex-direction: column; gap: 0; }
  .workspace-page > .form-row label { margin: 8px 0; }
}
@media (max-width: 360px) {
  .main main.workspace-page { padding-left: 12px; padding-right: 12px; }
  .schedule-date { gap: 4px; padding: 10px 8px; }
  .schedule-date strong { font-size: 17px; }
  .schedule-date small { font-size: 14px; }
  .schedule-date .date-arrow { min-width: 22px; }
  .main .workspace-page .schedule-toolbar button { font-size: 13px; }
  .appointment-heading { padding-left: 10px; padding-right: 10px; }
  .appointment-heading h2 { font-size: 17px; }
  .appointment-heading button { font-size: 15px; }
}

.schedule-date .date-arrow { background: transparent; border: 0; }
.booking-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.booking-card-footer .text-button { padding: 6px 0; min-height: 44px; }
.booking-card .booking-card-footer p { margin: 0; }
@media (max-width: 760px) {
  .workspace-shell { min-height: calc(100dvh - 94px - env(safe-area-inset-bottom)); }
  .workspace-page .blocked-times-heading { flex-wrap: wrap; align-items: center; gap: 8px; }
  .blocked-times-heading > .text-button { flex-basis: 100%; padding: 6px 0; text-align: left; }
  .blocked-times-heading > h1 { flex: 1; min-width: 0; font-size: 24px; }
  .blocked-times-heading > .primary { width: 100%; }
  .workspace-page .blocked-card { flex-wrap: wrap; }
  .workspace-page .blocked-card .grow { min-width: 0; }
  .appointment-fields { padding: 12px; }
  .booking-card { padding: 12px; margin-bottom: 10px; }
  .booking-card label { margin-bottom: 6px; }
  .booking-card select { margin-bottom: 0; }
  .booking-card-footer p { font-size: 14px; }
  .booking-notes textarea { min-height: 78px; }
  .booking-datetime .form-row { flex-direction: row; }
}

/* Checkout keeps the cart above a compact, searchable service menu. */
.sale-page .sale-workspace { max-width: 960px; }
.sale-page .sale-heading { align-items: center; flex-wrap: nowrap; gap: 12px; margin-bottom: 14px; padding: 16px; border: 1px solid #bdbfb3; border-radius: 18px; background: #faf7f0; }
.sale-page .sale-heading h1 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 750; }
.sale-page .sale-heading p { display: none; }
.sale-page .sale-add-item { min-height: 44px; padding: 10px 14px; border: 1px solid #c1c7bc; border-radius: 24px; background: #e3ebe5; color: #385e53; font-size: 16px; }
.sale-page .sale-summary { padding: 16px; border: 1px solid #bfcbbf; border-radius: 18px; background: #e3ebe5; box-shadow: 0 3px 10px #29342d0b; }
.sale-page .sale-summary-top { flex-wrap: nowrap; gap: 12px; }
.sale-page .sale-summary-top > strong { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; font-weight: 650; }
.sale-page .sale-summary output { flex: 0 1 auto; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.6px; text-align: right; overflow-wrap: anywhere; }
.sale-page .sale-selected { margin: 10px 0 12px; max-height: 100px; }
.sale-page .sale-selected li { font-size: 16px; line-height: 1.35; padding: 3px 0; }
.sale-page .sale-selected .sale-empty { font-size: 14px; }
.sale-page .sale-payments { gap: 10px; }
.sale-page .sale-payment { min-height: 48px; border: 1px solid #c0c4b8; border-radius: 13px; padding: 10px; font-size: 18px; background: #faf7f0; color: #29342d; }
.sale-page .sale-payment.selected { background: #4e756a; color: #fffdf6; border-color: #4e756a; }
.sale-page .sale-record { min-height: 48px; margin-top: 10px; font-size: 16px; }
.sale-page .sale-client, .sale-page .sale-client-controls { margin: 12px 0; padding: 0; }
.sale-page .sale-customer, .sale-page [data-action="choose-sale-client"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #bdbfb3; border-radius: 14px; background: #faf7f0; color: #3f6255; text-align: left; font-size: 16px; font-weight: 650; }
.sale-page .sale-customer > span, .sale-page [data-action="choose-sale-client"] > span { min-width: 0; overflow-wrap: anywhere; }
.sale-page .sale-controls, .sale-page .sale-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr); align-items: end; gap: 12px; margin: 12px 0 16px; }
.sale-page .sale-controls label, .sale-page .sale-search-controls label { min-width: 0; margin: 0; font-size: 14px; }
.sale-page #sale-search, .sale-page #sale-category { width: 100%; min-width: 0; min-height: 48px; margin-top: 6px; padding: 12px; border: 1px solid #bdbfb3; border-radius: 14px; background: #faf7f0; color: #29342d; font-size: 16px; }
.sale-page #sale-services { scroll-margin-top: 300px; }
.sale-page .sale-service-group { margin-bottom: 18px; }
.sale-page .sale-service-group h2 { margin: 16px 4px 10px; color: #33463a; font-size: 16px; line-height: 1.3; font-weight: 750; }
.sale-page .sale-service-row { align-items: center; flex-wrap: nowrap; min-height: 78px; gap: 12px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid #bdbfb3; border-radius: 16px; background: #faf7f0; }
.sale-page .sale-service-row > div:first-child { flex: 1; min-width: 0; }
.sale-page .sale-service-row h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.sale-page .sale-service-row p { margin: 5px 0 0; font-size: 14px; line-height: 1.4; }
.sale-page .sale-quantity { gap: 8px; margin-left: auto; }
.sale-page .sale-quantity button { min-width: 44px; height: 44px; border: 1px solid #c0c4b8; border-radius: 12px; }
.sale-page .sale-quantity .sale-plus { background: #4e756a; color: #fffdf6; border-color: #4e756a; }
.sale-page .sale-quantity > span { min-width: 14px; font-size: 16px; text-align: center; }

.payment-dialog { border: 1px solid #bdbfb3; border-radius: 18px; color: #29342d; }
.payment-dialog .payment-heading { min-height: 64px; padding: 10px 16px; gap: 12px; border-bottom: 1px solid #c8c7bd; }
.payment-dialog .payment-heading h2 { flex: 1; padding-right: 48px; text-align: center; font-size: 20px; line-height: 1.25; font-weight: 750; }
.payment-dialog .payment-heading button { min-height: 44px; padding: 6px 0; color: #345c4e; font-size: 16px; font-weight: 650; }
.payment-dialog .payment-fields { padding: 16px; }
.payment-dialog .payment-overview, .payment-dialog .payment-card { padding: 14px; margin-bottom: 12px; border: 1px solid #bdbfb3; border-radius: 16px; background: #faf7f0; }
.payment-dialog .payment-overview > div { align-items: start; gap: 14px; margin: 6px 0; }
.payment-dialog .payment-overview strong { min-width: 0; font-size: 18px; line-height: 1.4; }
.payment-dialog .payment-overview span { font-size: 16px; }
.payment-dialog .payment-fields label { margin: 12px 0; font-size: 14px; line-height: 1.4; }
.payment-dialog .payment-card label:first-child { margin-top: 0; }
.payment-dialog .payment-fields input, .payment-dialog .payment-fields select { min-height: 48px; padding: 12px; border: 1px solid #bdbfb3; border-radius: 12px; background: #e5e3dd; color: #29342d; font-size: 16px; font-weight: 500; }
.payment-dialog .payment-fields textarea { min-height: 72px; padding: 12px; background: #e5e3dd; color: #29342d; font-size: 16px; font-weight: 500; line-height: 1.4; }
.payment-dialog .payment-fields textarea:focus { outline: 2px solid #93b273; outline-offset: 1px; }
.sale-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.payment-dialog .payment-fields .fine { margin: 8px 0 0; color: #4b5049; font-size: 14px; line-height: 1.5; }
.payment-dialog .payment-fields [role="status"]:empty { display: none; }
.payment-dialog .payment-change { padding: 14px; border: 1px solid #c3cabb; border-radius: 14px; background: #e3ebe5; font-size: 18px; }
.payment-dialog .payment-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
.payment-dialog .payment-footer button { min-height: 54px; padding: 14px; border-radius: 14px; background: #4e756a; font-size: 18px; white-space: normal; }
.payment-dialog .payment-footer button strong { flex-shrink: 0; }

@media (max-width: 760px) {
  .main main.sale-page { padding-top: 0; }
  .sale-page .sale-heading { margin: 0 -14px 14px; padding: 12px 14px; border-top: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .sale-page .sale-heading h1 { font-size: 28px; }
  .sale-page .sale-summary { padding: 14px; }
  .sale-page .sale-summary output { max-width: 65%; font-size: clamp(24px, 6.8vw, 30px); }
  .sale-page .sale-selected { max-height: 84px; }
  .sale-page .sale-service-row { padding: 12px 14px; gap: 10px; }
  .sale-page .sale-service-row h3 { font-size: 17px; }
  .sale-page .sale-controls, .sale-page .sale-search-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sale-page #sale-search, .sale-page #sale-category { margin-top: 4px; }
  .payment-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
  .payment-dialog .payment-heading { min-height: 60px; padding: 8px 14px; }
  .payment-dialog .payment-fields { padding: 12px; }
  .payment-dialog .payment-overview, .payment-dialog .payment-card { padding: 12px; }
}
@media (max-width: 360px) {
  .sale-page .sale-heading { margin-left: -12px; margin-right: -12px; padding: 12px; }
  .sale-page .sale-heading h1 { font-size: 26px; }
  .sale-page .sale-add-item { padding: 10px 12px; font-size: 15px; }
  .sale-page .sale-summary { padding: 12px; }
  .sale-page .sale-summary-top { gap: 8px; }
  .sale-page .sale-summary-top > strong { font-size: 15px; }
  .sale-page .sale-payment { font-size: 17px; }
  .sale-page .sale-service-row { padding: 12px; gap: 8px; }
  .sale-page .sale-quantity { gap: 6px; }
  .sale-page .sale-quantity button { min-width: 40px; height: 44px; }
  .payment-dialog .payment-heading h2 { padding-right: 32px; font-size: 18px; }
  .payment-dialog .payment-footer button { gap: 8px; font-size: 16px; }
}

/* Booking link: the Home card and the Settings screen share these controls. */
.booking-link-card { display: grid; gap: 12px; padding: 14px; background: #faf8f1; border: 1px solid #bbbdb1; border-radius: 16px; }
.booking-link-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.booking-link-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #e3eae3; color: #47614f; }
.booking-link-text { min-width: 0; }
.booking-link-url { display: block; color: #263a33; font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.booking-link-text small { display: block; margin-top: 2px; color: #61665d; font-size: 14px; }
.booking-link-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking-link-actions.single { grid-template-columns: minmax(0, 1fr); }
.booking-link-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #bbbdb1; border-radius: 12px; background: #faf8f1; color: #263a33; font-size: 16px; font-weight: 700; }
.booking-link-button svg { flex: 0 0 auto; color: #47614f; }
.booking-link-primary { border-color: #4e756a; background: #4e756a; color: #fff; }
.booking-link-primary svg { color: inherit; }
.main .booking-link-off { margin: 0; color: #4b5049; font-size: 15px; line-height: 1.5; }
.booking-link-panel > p { margin: 8px 0 0; }
.main .booking-link-label { margin: 18px 0 0; color: #33463a; font-size: 14px; font-weight: 650; }
.booking-link-field { display: flex; align-items: center; margin-top: 8px; border: 1px solid #bdbfb3; border-radius: 12px; background: #e5e3dd; }
.booking-link-value { flex: 1; min-width: 0; padding: 12px 0 12px 12px; color: #263a33; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; user-select: all; }
.booking-link-field button { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 0; background: transparent; color: #47614f; }
.booking-link-panel > .booking-link-button, .booking-link-panel > .booking-link-actions { margin-top: 10px; }
.booking-link-panel > .booking-whatsapp { margin-top: 14px; }
.booking-link-preview { justify-content: flex-start; }
.booking-link-preview span:first-of-type { flex: 1; }
.booking-link-preview span:last-child { color: #345c4e; font-size: 22px; line-height: 1; }
.main .booking-link-panel .booking-link-off { margin: 14px 0 0; }
.booking-link-panel > button.primary, .booking-link-panel > button.secondary { margin: 14px 0 0; }
.booking-message-panel, .booking-qr-panel { margin-top: 14px; }
.booking-message-panel h2 { margin: 0; font-size: 20px; }
.workspace-page .booking-message-panel h2 label { margin: 0; color: inherit; font: inherit; }
.booking-message-panel > p { margin: 6px 0 0; }
.workspace-page .booking-message-panel textarea { min-height: 96px; margin-top: 12px; background: #fffdf8; }
.booking-qr-panel { display: flex; align-items: center; gap: 16px; }
.booking-qr-panel[hidden] { display: none; }
#booking-qr { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 8px; background: #fff; image-rendering: pixelated; }
.booking-qr-panel > div { min-width: 0; }
.booking-qr-panel h2 { margin: 0 0 4px; font-size: 18px; }
.booking-qr-panel p { margin: 0 0 10px; }
.booking-qr-panel .booking-link-button { display: inline-flex; }
@media (max-width: 760px) {
  .booking-link-card { padding: 12px; }
}
@media (max-width: 360px) {
  .booking-link-actions { gap: 8px; }
  .booking-link-button { padding: 10px 8px; font-size: 15px; }
  .booking-link-url { font-size: 14px; }
  #booking-qr { flex-basis: 92px; width: 92px; height: 92px; }
}

/* Settings → Facebook & Instagram. Built from the booking link screen's parts. */
.social-panel > p { margin: 8px 0 0; }
.social-panel > .booking-link-button { width: 100%; margin-top: 14px; }
.social-panel > .text-button { display: block; margin: 10px auto 0; min-height: 44px; }
.social-panel > button.secondary, .social-panel > button.primary { margin: 14px 0 0; }
.main .social-step { color: var(--ink); font-size: 16px; line-height: 1.5; }
.social-accounts { display: grid; gap: 10px; margin: 14px 0 0; }
.social-accounts > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.social-accounts dt { color: var(--ink-label); font-size: 14px; font-weight: 600; }
.social-accounts dd { margin: 2px 0 0; color: var(--ink); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
/* Same amber as the Home "needs attention" notice. */
.main .social-warning { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #c9a15a; border-radius: 12px; background: #fbf1dc; color: #4f3a0e; font-size: 15px; line-height: 1.5; }
.social-confirm { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.main .social-confirm p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.social-confirm button { width: 100%; margin: 12px 0 0; }
.social-pick-panel { margin-top: 14px; }
.social-pick-panel h2 { margin: 0; font-size: 20px; }
.social-pick-panel fieldset { margin: 12px 0 0; padding: 0; border: 0; }
.workspace-page .social-pick-panel legend { margin: 0 0 8px; color: var(--ink-label); font-size: 14px; font-weight: 600; }
.social-page { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0 0 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.workspace-page .social-page input[type="radio"] { flex: 0 0 auto; width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--brand); }
.social-page span { display: grid; min-width: 0; }
.social-page strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.main .social-page small { color: var(--ink-soft); font-size: 14px; }
.social-page:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* Changes the salon server refused: the Home notice and the review screen. */
.attention-notice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid #c9a15a; border-radius: 14px; background: #fbf1dc; color: #4f3a0e; font-size: 15px; text-align: left; }
.attention-notice > span:first-child { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #8a6212; color: #fff; font-weight: 700; }
.attention-notice > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 600; }
.attention-notice strong { flex: 0 0 auto; text-decoration: underline; text-underline-offset: 3px; }
.attention-item { margin-top: 16px; padding-top: 16px; border-top: 1px solid #d8d8cc; }
.attention-item h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.main .attention-item p { margin: 6px 0 0; }
.main .attention-when { color: #4b5049; font-size: 14px; }
.attention-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.attention-actions .secondary { margin: 0; }
.workspace-page .attention-actions .text-button { min-height: 44px; padding: 8px 6px; color: #8c3a2c; font-size: 15px; }
#fix-sale select { min-height: 46px; }

/* Logo: the artwork has a wide empty margin, so each logo is a box that shows
   only the middle of the picture. That makes the mark fill the box. */
.logo-crop { display: block; place-items: normal; flex-shrink: 0; overflow: hidden; background: #0e1722; }
.logo-crop img { display: block; justify-self: start; width: 129.55%; max-width: none; height: 129.55%; margin: -12.6% 0 0 -15.08%; }
.brand-logo { border-radius: 22px; }
/* Header logo: large enough to read, and sized the same on every screen. */
.business-icon { width: 44px; height: 44px; border: 0; border-radius: 11px; }
@media (max-width: 760px) {
  .home-shell .business { gap: 12px; }
  .home-shell .business-icon { width: 52px; height: 52px; border-radius: 13px; }
  .home-shell .business strong { font-size: 19px; }
}

/* Dialogs sit on a solid, dark scrim so the sheet stands out from the page. */
dialog::backdrop { background: #17241fb8; backdrop-filter: blur(2px); }

/* Sell screen: compact layout matched to the iOS app, so the cart, payment
   buttons, customer, search and the first services share one phone screen. */
.sale-icon { flex: 0 0 auto; pointer-events: none; }
.sale-page .sale-heading { gap: 12px; margin-bottom: 12px; padding: 12px 16px; }
.sale-heading-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(160deg, #7c988d, #4e756a); color: #fffdf6; }
.sale-heading-text { flex: 1; min-width: 0; }
.sale-page .sale-heading h1 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; }
.sale-page .sale-heading p { display: block; margin: 1px 0 0; overflow: hidden; color: #4b5049; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.sale-page .sale-add-item { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px 8px 12px; border: 0; border-radius: 24px; background: #e3ebe5; color: #3d655b; font-size: 17px; font-weight: 750; }
.sale-page .sale-summary { padding: 12px 16px 14px; }
.sale-page .sale-summary-top > strong { color: #4f5a52; font-size: 16px; font-weight: 700; }
.sale-page .sale-summary output { font-size: 28px; line-height: 1.15; }
.sale-page .sale-selected { margin: 8px 0 0; max-height: 87px; }
.sale-page .sale-selected li { gap: 10px; padding: 2px 0; font-size: 17px; line-height: 1.45; font-weight: 600; }
.sale-page .sale-selected li > span { width: 22px; height: 22px; background: #202923; color: #fff; }
.sale-page .sale-payments { gap: 10px; margin-top: 10px; }
.sale-page .sale-payment { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 8px 10px; border: 1px solid #c3c9bd; border-radius: 13px; font-size: 18px; font-weight: 750; }
.sale-page .sale-payment:disabled { opacity: 1; border-color: #cdd5cc; background: #d8e0d9; color: #6c776f; }
.sale-page .sale-client-controls { margin: 10px 0 8px; }
.sale-page [data-action="choose-sale-client"] { justify-content: flex-start; gap: 12px; min-height: 46px; padding: 8px 12px 8px 14px; color: #3c4640; font-size: 17px; font-weight: 600; }
.sale-page [data-action="choose-sale-client"] > span { flex: 1; }
.sale-page [data-action="choose-sale-client"] > svg:first-child { color: #345c4e; }
.sale-page [data-action="choose-sale-client"] > svg:last-child { color: #4b5049; }
.sale-page .sale-search-controls { display: block; margin: 8px 0 0; }
.sale-page #sale-search { min-height: 46px; margin: 0; padding: 10px 12px 10px 44px; -webkit-appearance: none; appearance: none; background: #faf7f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d635c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") 14px center / 20px no-repeat; font-size: 17px; font-weight: 500; }
.sale-page #sale-search::placeholder { color: #6b716a; opacity: 1; }
.sale-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 0; }
.sale-page .sale-category-label { flex: 0 1 auto; min-width: 0; margin: 0; }
.sale-page #sale-category { width: auto; max-width: 100%; min-height: 44px; margin: 0; padding: 8px 8px 8px 30px; border: 0; border-radius: 10px; -webkit-appearance: none; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d655b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") 2px center / 22px no-repeat; color: #3d655b; font-size: 17px; font-weight: 750; text-overflow: ellipsis; }
.sale-page #sale-result-count { flex: 0 0 auto; margin: 0; padding-right: 4px; color: #4b5049; font-size: 15px; line-height: 1.4; }
.sale-page .sale-service-group { margin-bottom: 10px; }
.sale-page .sale-service-group h2 { margin: 8px 4px 8px; font-size: 15px; }
.sale-page .sale-service-row { min-height: 66px; gap: 10px; margin-bottom: 8px; padding: 10px 12px 10px 16px; }
.sale-page .sale-service-row h3 { font-size: 17px; line-height: 1.25; font-weight: 750; }
.sale-page .sale-service-row p { margin: 2px 0 0; color: #4b5049; font-size: 15px; line-height: 1.35; }
.sale-page .sale-quantity { gap: 8px; }
.sale-page .sale-quantity button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.sale-page .sale-quantity > span { min-width: 18px; font-size: 18px; font-weight: 800; }
@media (max-width: 760px) {
  /* The title bar takes the place of the app header, as it does in the iOS app. */
  .sale-shell > header { display: none; }
  .sale-page .sale-heading { margin: 0 -14px; padding: 10px 14px; border: 0; border-radius: 0; }
  .sale-page .sale-summary { margin: 0 -14px; padding: 12px 14px 14px; border: 0; border-radius: 0; box-shadow: 0 1px 0 #c9d2c8; }
  .sale-page .sale-summary output { max-width: 65%; font-size: clamp(24px, 7vw, 28px); }
  .sale-page .sale-client-controls { margin-top: 12px; }
}
@media (max-width: 360px) {
  .sale-page .sale-heading, .sale-page .sale-summary { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .sale-heading-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .sale-page .sale-heading h1 { font-size: 23px; }
  .sale-page .sale-add-item { padding: 8px 12px 8px 10px; font-size: 16px; }
  .sale-page .sale-payment { gap: 8px; font-size: 17px; }
  .sale-page .sale-service-row { padding: 10px 10px 10px 12px; }
  .sale-page .sale-quantity { gap: 6px; }
}

/* Payment sheet: the same sage header, cream fields and dark text as Home,
   so it reads as part of the same app and not a faded copy of it. */
.payment-dialog { border-color: #8f9a8c; color: #1f2a24; box-shadow: 0 18px 48px #0d1a1540; }
.payment-dialog .payment-heading { border-bottom: 0; background: #53786b; }
.payment-dialog .payment-heading h2 { color: #fffdf6; }
.payment-dialog .payment-heading button { color: #fffdf6; font-weight: 700; }
.payment-dialog .payment-overview, .payment-dialog .payment-card { margin-bottom: 10px; border-color: #a9ad9f; }
.payment-dialog .payment-overview > div { align-items: baseline; margin: 2px 0; }
.payment-dialog .payment-overview span { color: #4f5a52; }
.payment-dialog .payment-overview strong { color: #1f2a24; font-size: 20px; font-weight: 800; }
.payment-dialog .payment-fields label { margin: 10px 0; color: #37423a; font-weight: 700; }
.payment-dialog .payment-fields input, .payment-dialog .payment-fields select, .payment-dialog .payment-fields textarea { margin-top: 6px; border: 1px solid #7d897b; border-radius: 12px; background-color: #fffefa; color: #1f2a24; }
.payment-dialog .payment-fields input[readonly] { background-color: #eceae2; }
.payment-dialog .payment-fields input::placeholder, .payment-dialog .payment-fields textarea::placeholder { color: #666d66; opacity: 1; }
.payment-dialog .payment-fields input:focus, .payment-dialog .payment-fields select:focus, .payment-dialog .payment-fields textarea:focus { border-color: #4e756a; outline: 2px solid #4e756a; outline-offset: 1px; }
.payment-dialog .payment-fields .fine { margin-top: 6px; color: #4f5a52; }
.payment-dialog .payment-change { border-color: #9fb3a6; background: #dfe9e2; color: #2f5246; }
.payment-dialog .payment-change output { font-weight: 800; }
.payment-dialog .payment-footer { border-top-color: #b9b8ab; }
.payment-dialog .payment-footer button { background: #4e756a; color: #fffdf6; font-weight: 750; }
.payment-dialog .payment-footer button:disabled { opacity: 1; background: #c3ccc3; color: #37423a; }
.payment-dialog #payment-validation { margin: 8px 0 0; color: #37423a; font-size: 15px; line-height: 1.45; font-weight: 600; }
/* Products & Services: the catalogue list, its instant name and price boxes, and the item form. */
.workspace-page .catalog-heading { align-items: flex-start; flex-wrap: wrap; }
.catalog-add { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-add .secondary { margin: 0; }
.workspace-page .catalog-panel > input[type="search"] { margin-top: 0; background: var(--workspace-card); font-size: 17px; }
.catalog-unpriced { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 12px; padding: 10px 14px; border: 1px solid #d9a79b; border-radius: 14px; background: #f8e4df; color: #8c3a2c; font-size: 15px; font-weight: 600; text-align: left; }
.catalog-unpriced > span:first-child { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #a8382b; color: #fff; font-weight: 700; }
.catalog-unpriced > span:nth-child(2) { flex: 1; min-width: 0; }
.catalog-unpriced strong { text-decoration: underline; text-underline-offset: 3px; }
#app label.catalog-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 8px 0 0; color: #262d28; font-size: 17px; font-weight: 700; }
#app label.catalog-switch span { color: inherit; }
#app label.catalog-switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 52px; width: 52px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 16px; background: #8e8e93; cursor: pointer; transition: background .15s; }
#app label.catalog-switch input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .15s; }
#app label.catalog-switch input[type="checkbox"]:checked { background: #4e756a; }
#app label.catalog-switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
#app label.catalog-switch input[type="checkbox"]:focus-visible { outline: 2px solid #93b273; outline-offset: 2px; }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.catalog-filters label { flex: 1 1 140px; min-width: 0; margin: 0; }
.workspace-page .catalog-filters select { margin-top: 0; background: var(--workspace-card); color: #35594d; font-size: 16px; font-weight: 700; }
.workspace-page .catalog-filters .text-button { min-width: 44px; min-height: 44px; padding: 8px 6px; font-size: 15px; }
.workspace-page .catalog-hint { margin: 12px 2px 0; font-size: 14px; line-height: 1.5; }
.workspace-page .catalog-count { margin: 10px 2px 0; font-size: 14px; }
.catalog-group h2 { margin: 18px 4px 10px; color: #33463a; font-size: 16px; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-row { display: flex; align-items: center; gap: 10px; min-height: 76px; margin-bottom: 10px; padding: 10px 4px 10px 12px; border: 1px solid #bdbfb3; border-radius: 16px; background: #faf7f0; }
.catalog-row.inactive { background: #e3dfd5; }
.catalog-row.inactive .catalog-name { color: #696d68; }
.catalog-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: #e3ebe5; color: #345c4e; font-size: 18px; }
.catalog-icon.product { background: #dfe6ee; color: #46688a; }
.catalog-main { flex: 1; min-width: 0; }
.catalog-main > strong.catalog-name { display: block; color: #262d28; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-sub { display: flex; align-items: center; gap: 10px; margin-top: 2px; min-width: 0; }
.workspace-page .catalog-detail { flex: 1; min-width: 0; margin: 0; color: #4b5049; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
/* Name and price read as text until tapped: a dashed underline marks them as editable. */
.workspace-page .catalog-row input.catalog-inline { width: 100%; min-height: 40px; margin: 0; padding: 4px 8px; border: 1px solid transparent; border-bottom: 1px dashed #a9ad9f; border-radius: 8px; background: transparent; color: #262d28; font-size: 18px; font-weight: 700; text-overflow: ellipsis; }
.workspace-page .catalog-row input.catalog-inline:hover { border-color: #bdbfb3; }
.workspace-page .catalog-row input.catalog-inline:focus { border: 1px solid #4e756a; background: #fff; }
.workspace-page .catalog-row input.catalog-inline::placeholder { color: #a8382b; font-weight: 600; opacity: 1; }
.workspace-page label.catalog-price { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; margin: 0; color: #4b5049; font-size: 14px; font-weight: 650; }
.workspace-page label.catalog-price span { color: inherit; }
.workspace-page .catalog-row .catalog-price input.catalog-inline { width: 88px; min-height: 36px; font-size: 16px; font-weight: 650; }
.catalog-saved { flex: 0 0 auto; color: #2f6b4f; font-size: 14px; font-weight: 700; }
.catalog-saved.saving { color: #696d68; font-weight: 600; }
/* On a narrow phone the mark takes the place of the detail text rather than squeezing it. */
.catalog-sub:has(.catalog-saved) .catalog-detail { visibility: hidden; height: 20px; overflow: hidden; }
.catalog-open { display: grid; place-items: center; flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #4b5049; font-size: 26px; cursor: pointer; }
.catalog-flag { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: #f8e4df; color: #8c3a2c; font-size: 14px; font-weight: 650; }
.item-form label { margin: 14px 0; }
.item-form .fine { margin: -6px 0 0; }
.item-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 6px; padding: 4px; border: 0; border-radius: 12px; background: #cfd6cf; }
#app .item-kind label { position: relative; margin: 0; }
#app .item-kind label input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
#app .item-kind label span { display: grid; place-items: center; min-height: 40px; border-radius: 9px; color: #29342d; font-size: 15px; font-weight: 700; }
.item-kind input:checked + span { background: #fff; box-shadow: 0 1px 3px #0003; }
.item-kind input:focus-visible + span { outline: 2px solid #93b273; outline-offset: 1px; }
.item-kind input:disabled + span { opacity: .45; }
.item-form:has(input[name="kind"][value="product"]:checked) .item-service-only,
.item-form:not(:has(input[name="kind"][value="product"]:checked)) .item-product-only { display: none; }
.item-form .item-product-only { margin: 8px 0 0; }
.item-form textarea { min-height: 72px; }
.danger-button { display: block; width: 100%; min-height: 48px; margin-top: 8px; border: 0; background: none; color: #b03527; font-size: 17px; font-weight: 600; cursor: pointer; }
#app:has(.main) dialog:not(.payment-dialog) .primary.danger { background: #a8382b; }
#remove-item .secondary { margin: 10px 0 0; }
/* The starter pack: tick services, set your price and time on each, add them together. */
.recommended-group h3 { margin: 16px 2px 8px; color: #33463a; font-size: 14px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.recommended-row { margin-bottom: 6px; padding: 4px 12px; border: 1px solid #cfd0c4; border-radius: 13px; background: #faf7f0; }
.recommended-row[hidden], .recommended-group[hidden] { display: none; }
.recommended-row:has(input[name="pick"]:checked) { border-color: #4e756a; background: #f1f5ef; }
.recommended-row.added { opacity: .85; background: #efebe2; }
#app .recommended-row label.recommended-pick { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; color: #262d28; cursor: pointer; }
#app .recommended-row label.recommended-pick input[type="checkbox"] { flex: 0 0 24px; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; accent-color: #4e756a; }
#app .recommended-pick > span:nth-child(2) { flex: 1; min-width: 0; color: inherit; }
.recommended-pick strong { display: block; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.recommended-pick small { display: block; margin-top: 2px; color: #4b5049; font-size: 14px; line-height: 1.4; font-weight: 500; }
#app .recommended-pick .recommended-state { flex: 0 0 auto; color: #33463a; font-size: 14px; font-weight: 650; }
.recommended-yours { display: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; padding: 0 0 10px 36px; }
.recommended-row:has(input[name="pick"]:checked) .recommended-yours { display: grid; }
#app .recommended-yours label { margin: 0; color: #33463a; font-size: 14px; font-weight: 650; }
#app .recommended-yours label input { min-height: 44px; margin-top: 4px; padding: 8px 12px; background: #fff; font-size: 17px; font-weight: 650; }
/* The button stays in reach however long the list is. */
.starter-footer { position: sticky; bottom: -28px; margin: 12px -28px -28px; padding: 12px 28px 16px; border-top: 1px solid #cfd0c4; background: #e9e3d8; }
.starter-footer .primary:disabled { opacity: .55; }
.recommended-custom { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 2px; border: 0; background: none; color: #345c4e; font-size: 16px; font-weight: 700; text-align: center; cursor: pointer; }
.starter-form > .form-error { margin: 0 0 8px; }
.starter-nudge { display: flex; align-items: stretch; border: 1px solid #a9c1b5; border-radius: 16px; background: #e6efe8; overflow: hidden; }
.starter-nudge-open { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; min-height: 64px; padding: 10px 6px 10px 14px; border: 0; background: transparent; color: #24392f; text-align: left; cursor: pointer; }
.starter-nudge-open > span:first-child { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; background: #4e756a; color: #fffdf6; font-size: 17px; }
.starter-nudge-open > span:nth-child(2) { flex: 1; min-width: 0; }
.starter-nudge-open strong { display: block; font-size: 16px; line-height: 1.3; }
.starter-nudge-open small { display: block; margin-top: 2px; color: #345c4e; font-size: 14px; line-height: 1.4; }
.starter-nudge-open > span:last-child { color: #345c4e; font-size: 24px; }
.starter-nudge-close { flex: 0 0 44px; min-height: 44px; border: 0; border-left: 1px solid #c3d5ca; background: transparent; color: #345c4e; font-size: 15px; cursor: pointer; }
@media (max-width: 760px) {
  .workspace-page .catalog-heading > div:first-child { flex: 1 1 100%; }
  .catalog-add { width: 100%; }
  .catalog-add > button { flex: 1 1 150px; white-space: normal; }
  .catalog-row { gap: 8px; padding-left: 10px; }
  .catalog-icon { flex-basis: 38px; width: 38px; height: 38px; }
  /* Dialogs have less padding on a phone; the bar reaches the same edges. */
  .starter-footer { bottom: -23px; margin: 12px -18px -23px; padding: 12px 18px 14px; }
  .recommended-yours { padding-left: 0; }
}

/* Sign-up: services from the starter pack, in groups that open and close. */
.setup-services { min-width: 0; margin: 4px 0 22px; padding: 0; border: 0; }
.setup-services legend { margin-bottom: 6px; padding: 0; color: var(--ink-label); font-size: 16px; font-weight: 700; }
.setup-services > .fine { margin: 0 0 12px; }
.setup-group { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.setup-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; color: var(--ink); font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.setup-group > summary::-webkit-details-marker { display: none; }
.setup-group > summary::after { content: "›"; flex: 0 0 auto; color: var(--ink-green); font-size: 22px; line-height: 1; transition: transform .15s; }
.setup-group[open] > summary::after { transform: rotate(90deg); }
.setup-group > summary > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.setup-group > summary:focus-visible { outline: 2px solid #93b273; outline-offset: 2px; border-radius: 13px; }
.setup-count { flex: 0 0 auto; color: var(--ink-green); font-size: 14px; font-weight: 700; }
.setup-group[open] > summary { border-bottom: 1px solid #dadacf; margin-bottom: 8px; }
.setup-group > .recommended-row { margin-left: 8px; margin-right: 8px; }
.setup-group > .recommended-row:last-child { margin-bottom: 8px; }
.setup-own { padding: 4px 14px 2px; }
#app .setup-chosen { margin: 10px 2px 0; color: var(--ink); font-size: 15px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .setup-group > summary::after { transition: none; } }
/* Shown by a class as well as by :has(), which older phones do not understand. */
.setup-group .recommended-row.picked { border-color: #4e756a; background: #f1f5ef; }
.setup-group .recommended-row.picked .recommended-yours { display: grid; }
.setup-group > .form-error, .setup-own + .form-error { margin: 0 10px 10px; }
