:root {
  color-scheme: light;
  --background: #f8f3ef;
  --surface: #fffdfb;
  --brand-accent: #d6493e;
  --accent: #c43d34;
  --accent-dark: #bd3c33;
  --text: #3c2f2c;
  --muted: #786b67;
  --line: #e5d9d3;
  --soft-accent: #f4d9d4;
  --success: #4f765c;
  --shadow: 0 16px 45px rgba(60, 47, 44, 0.11);
  font-family: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(214, 73, 62, 0.12), transparent 26rem),
    var(--background);
}

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

.phone-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow: hidden;
  background: rgba(248, 243, 239, 0.94);
}

.phone-shell.has-quick-cart {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.phone-shell.is-loading .cart-button,
.phone-shell.is-loading #cabinet-entry-button { visibility: hidden; }

.booking-loading {
  min-height: calc(100svh - 130px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.booking-loading-mark {
  width: 52px;
  height: 52px;
  display: block;
}
.booking-loading-mark img { display: block; width: 100%; height: 100%; }
.booking-loading p { margin: 0; font-size: 14px; }

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
  display: grid;
  /* Inner screens reserve one compact slot for Back. On root screens that
     slot disappears, so the brand aligns with the page content. */
  grid-template-columns: 40px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 8px;
  background: rgba(248, 243, 239, 0.91);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 217, 211, 0.75);
}

.brand, .icon-button, .cart-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  padding: 0;
  font-weight: 700;
  text-align: left;
  min-width: 0;
}

.brand-name { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }

.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
}

/* `height:100%` on a grid-item <img> doesn't reliably resolve against an
   auto-sized grid track — the browser falls back to the image's own
   aspect ratio, stretching a non-square photo into an oval instead of
   cropping it into the circle. `position:absolute` inside a
   `position:relative;overflow:hidden` box sizes against the parent's
   real pixel box instead, regardless of source aspect ratio. Same fix as
   prototypes/employees, see memory `avatar-percent-height-in-grid`. */
.brand-mark img,
.master-avatar img,
.master-profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.icon-button:hover { background: var(--surface); }
.is-hidden { visibility: hidden; pointer-events: none; }

#back-button { grid-column: 1; grid-row: 1; justify-self: start; }
#cart-button, #cabinet-entry-button { grid-column: 3; grid-row: 1; justify-self: end; }
.topbar.is-root { grid-template-columns: minmax(0, 1fr) 96px; }
.topbar.is-root #back-button { display: none; }
.topbar.is-root .brand { grid-column: 1; }
.topbar.is-root #cart-button,
.topbar.is-root #cabinet-entry-button { grid-column: 2; }
#cabinet-entry-button {
  width: auto;
  min-width: 68px;
  padding: 0 4px;
  border-radius: 14px;
  white-space: nowrap;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.cart-button strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
}

.screen { display: none; animation: enter 0.22s ease-out; }
.screen.is-active { display: block; }

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(26px, 7vw, 34px); line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: 18px; }
p { color: var(--muted); line-height: 1.55; }

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero { padding: 22px 2px 12px; }
.hero p:last-child, .screen-heading p:last-child { max-width: 390px; }
.screen-heading { padding: 14px 2px 8px; }
.review-heading { padding-top: 20px; }
.review-heading h1 { margin-bottom: 6px; }
[data-screen="review"] { padding-bottom: 132px; }

.location-card, .start-card, .promo-card, .list-card, .summary-panel,
.appointment-card, .channel-picker, .hold-timer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.location-card {
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  text-align: left;
  cursor: pointer;
}

.compact-location {
  width: 100%;
  min-height: 44px;
  padding: 4px 2px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.compact-location .location-icon { width: 30px; height: 30px; border-radius: 10px; }
.compact-location small, .compact-location strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-location small { margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.compact-location > span:last-child { color: var(--accent); font-size: 12px; font-weight: 700; }

.master-shortcut {
  width: 100%;
  min-height: 72px;
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: transparent;
  text-align: left;
}
.master-shortcut > span:first-child { color: var(--accent); font-size: 22px; }
.master-shortcut strong, .master-shortcut small { display: block; }
.master-shortcut small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.master-shortcut.compact { min-height: 62px; margin-bottom: 12px; background: rgba(255, 253, 251, 0.55); }

.booking-mood { height: 244px; margin-top: 8px; position: relative; overflow: hidden; border-radius: 26px; background: #e7d7ce; }
.booking-mood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 23, 21, 0.58), rgba(31, 23, 21, 0.06) 72%); pointer-events: none; }
.booking-mood > img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 48%; }
.booking-mood-copy { position: absolute; z-index: 1; top: 22px; left: 20px; max-width: 55%; color: white; }
.booking-mood-copy p { margin-bottom: 8px; color: rgba(255, 255, 255, 0.82); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.booking-mood-copy h1 { margin: 0; color: white; font-size: clamp(27px, 8vw, 38px); font-weight: 400; line-height: 1.08; letter-spacing: -1.2px; }
.mood-offer { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; min-height: 60px; padding: 9px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 0; border-radius: 16px; color: var(--text); background: rgba(255, 253, 251, 0.94); box-shadow: 0 10px 30px rgba(45, 34, 31, 0.17); text-align: left; backdrop-filter: blur(12px); }
.mood-offer[hidden] { display: none; }
.mood-offer strong, .mood-offer small { display: block; }
.mood-offer strong { font-size: 14px; }
.mood-offer small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.mood-offer > span:last-child { min-height: 44px; display: grid; place-items: center; color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.catalog-heading { margin-top: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.catalog-heading .eyebrow { margin-bottom: 4px; }
.catalog-heading h2 { margin: 0; font-size: 22px; }
.master-link { min-height: 44px; padding: 6px 0; display: flex; align-items: center; gap: 6px; border: 0; color: var(--accent); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }

.category-strip { display: grid; grid-auto-columns: 112px; grid-auto-flow: column; gap: 10px; overflow-x: auto; margin: 12px -20px 0; padding: 0 20px 8px; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none; }
.category-card { height: 128px; padding: 0; position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 18px; color: white; background: var(--text); scroll-snap-align: start; text-align: left; }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(31, 23, 21, 0.78)); }
.category-card > span { position: absolute; z-index: 1; right: 10px; bottom: 10px; left: 10px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.category-card > span small { display: block; margin-top: 3px; color: rgba(255,255,255,.76); font-size: 9px; font-weight: 500; }
.category-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--background); }
.category-all { padding: 14px; background: var(--accent); }
.category-all::after { display: none; }
.category-all > span { position: static; display: block; font-size: 21px; }
.category-all > span small { display: none; }
.category-all small { position: absolute; bottom: 14px; left: 14px; color: rgba(255,255,255,.78); font-size: 11px; }
.service-section-title { margin: 16px 2px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.service-section-title h2 { margin: 0; font-size: 20px; }
.service-section-title span { color: var(--muted); font-size: 11px; }

.category-heading { min-height: 128px; margin: 8px 0 20px; position: relative; overflow: hidden; border-radius: 24px; color: white; background: var(--text); }
.category-heading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 23, 21, .74), rgba(31, 23, 21, .18)); }
.category-heading img { width: 100%; height: 128px; object-fit: cover; }
.category-heading > div { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; }
.category-heading .eyebrow { color: rgba(255,255,255,.78); }
.category-heading h1 { margin: 0; color: white; font-size: 27px; }
.master-catalog-context { margin-bottom: 18px; }
.master-catalog-context[hidden], #category-heading[hidden], #category-results[hidden] { display: none; }
.selected-master-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 11px 12px 11px 15px; border: 1px solid var(--line); border-radius: 18px; background: #fffdfb; }
.selected-master-context span { min-width: 0; }
.selected-master-context small, .selected-master-context strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-master-context small { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.selected-master-context strong { font-size: 15px; }
.selected-master-context button { min-width: 82px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--soft); color: var(--accent); font: 700 12px Montserrat, sans-serif; }
.master-catalog-context .catalog-heading { margin-top: 18px; }
.master-all-services { width: 100%; min-height: 48px; margin-top: 4px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--text); font: 600 13px Montserrat, sans-serif; text-align: left; }
.master-all-services::after { content: "→"; float: right; color: var(--accent); }

.location-card small, .location-card strong { display: block; }
.location-card small { margin-bottom: 4px; color: var(--muted); }
.location-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--accent);
  background: var(--soft-accent);
}
.location-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.start-grid { display: grid; gap: 14px; margin: 18px 0; }
.start-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 26px;
  text-align: left;
  cursor: pointer;
}
.start-card strong, .start-card small, .start-card span { display: block; }
.start-card strong { margin: 18px 0 7px; font-size: 22px; }
.start-card small { min-height: 38px; color: var(--muted); line-height: 1.45; }
.start-card .card-link { margin-top: 18px; color: var(--accent); font-weight: 700; }
.start-icon { font-size: 30px; color: var(--accent); }
.accent-card { color: white; background: var(--accent); border-color: var(--accent); }
.accent-card small, .accent-card .card-link, .accent-card .start-icon { color: white; }

.promo-card { margin-top: 16px; padding: 20px; border-radius: 24px; box-shadow: none; }
.promo-card p { margin-bottom: 0; }
.pill { display: inline-block; padding: 6px 9px; border-radius: 99px; color: var(--accent); background: var(--soft-accent); font-size: 11px; font-weight: 700; }

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.search-block { display: block; margin-top: 12px; color: var(--text); font-size: 16px; font-weight: 600; }
.search-block > span:first-child { display: block; margin: 0 2px 7px; }
.search-block .search-field { margin-top: 0; font-weight: 400; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
#global-search-results[hidden] { display: none; }
.empty-search { padding: 16px 4px; }
.stack { display: grid; gap: 10px; margin: 8px 0 20px; }
.list-card { padding: 17px; border-radius: 20px; box-shadow: 0 8px 24px rgba(60, 47, 44, 0.07); }
.list-card header { display: flex; justify-content: space-between; gap: 12px; }
.list-card h2 { margin-bottom: 5px; }
.list-card p { margin-bottom: 12px; font-size: 13px; }
.branch-description { white-space: pre-line; }
.branch-card { text-align: left; }
.branch-card header { align-items: center; }
.branch-card header > div { min-width: 0; }
.branch-card h2 { line-height: 1.3; }
.branch-card p { margin-bottom: 8px; }
.branch-selected { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-weight: 700; }
.branch-arrow { color: var(--muted); font-size: 24px; }
.service-card { min-height: 122px; padding: 10px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 13px; }
.service-card.is-selected { border-color: var(--accent); box-shadow: 0 8px 24px rgba(196, 61, 52, 0.13); }
.service-image { width: 92px; height: 102px; border-radius: 14px; object-fit: cover; background: var(--soft-accent); }
.service-image-placeholder { display: grid; place-items: center; color: var(--accent); font-size: 34px; font-weight: 600; }
.service-copy { min-width: 0; display: flex; flex-direction: column; }
.service-card header { align-items: start; }
.service-card header > div { min-width: 0; }
.service-card h2 { margin-bottom: 4px; font-size: 16px; line-height: 1.25; }
.service-card p { display: -webkit-box; overflow: hidden; margin-bottom: 6px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.service-card footer { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.service-card footer > div { min-width: 0; }
.service-card .price, .service-duration { display: block; }
.service-card .price { font-size: 15px; }
.service-duration { margin-top: 2px; color: var(--muted); font-size: 11px; }
.service-card .small-button { width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 22px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.meta { padding: 6px 9px; border-radius: 99px; color: var(--muted); background: var(--background); font-size: 11px; }
.price { color: var(--text); font-size: 16px; white-space: nowrap; }

.master-card { width: 100%; min-height: 104px; padding: 14px; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; color: var(--text); text-align: left; cursor: pointer; }
.master-profile-avatar { width: 76px; height: 76px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 22px; color: var(--accent); background: var(--soft-accent); font-size: 20px; font-weight: 600; }
.master-profile-avatar img { border-radius: 22px; }
.master-copy { min-width: 0; display: grid; gap: 4px; }
.master-copy > strong { font-size: 17px; line-height: 1.2; }
.master-copy > small { color: var(--muted); font-size: 13px; }
.master-copy > span { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.master-rating { color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.master-arrow { color: var(--muted); font-size: 24px; }

.primary-button, .secondary-button, .text-button, .small-button {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
}
.primary-button { min-height: 54px; padding: 15px 18px; color: white; background: var(--accent); }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { min-height: 50px; padding: 13px 16px; color: var(--accent); background: var(--soft-accent); }
.text-button { padding: 12px; color: var(--accent); background: transparent; }
.small-button { padding: 10px 13px; color: white; background: var(--text); }
.small-button.is-added { color: var(--success); background: #e3efe6; }
.full-width { width: 100%; }

.cart-item {
  min-height: 108px;
  padding: 10px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}
.cart-item-image { width: 78px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--soft-accent); }
.cart-item-copy { min-width: 0; }
.cart-item-copy h2 { margin: 0 0 7px; font-size: 17px; line-height: 1.25; }
.cart-item-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.cart-remove {
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  align-self: center;
  border: 1px solid rgba(196, 61, 52, 0.26);
  border-radius: 50%;
  background: var(--soft-accent);
  cursor: pointer;
}
.cart-remove span::before, .cart-remove span::after {
  content: "";
  width: 15px;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--accent);
}
.cart-remove span::before { transform: translate(-50%, -50%) rotate(45deg); }
.cart-remove span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cart-remove:hover { border-color: var(--accent); background: #f0cbc6; }
.summary-panel { margin: 16px 0; padding: 18px; border-radius: 21px; box-shadow: none; }
.summary-panel div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-panel small { display: block; margin-top: 11px; color: var(--muted); line-height: 1.5; }

.notice-card, .parameter-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.notice-card p { margin: 6px 0 0; font-size: 13px; }
.parameter-service-heading { margin: 4px 2px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.parameter-service-heading:first-child { margin-top: 0; }
.parameter-card legend { padding: 0 5px; font-weight: 700; }
.option-row { min-height: 48px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; cursor: pointer; }
.option-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.option-row span, .option-row strong, .option-row small { display: block; }
.option-row small { margin-top: 3px; color: var(--muted); }

.date-strip { display: flex; gap: 8px; margin: 8px 0 12px; padding-bottom: 6px; overflow-x: auto; }
.date-strip button { min-width: 88px; min-height: 58px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.date-strip small, .date-strip strong { display: block; }
.date-strip strong { margin-top: 4px; font-size: 13px; }
.date-strip .is-selected { color: white; background: var(--accent); border-color: var(--accent); }
/* Moves the whole 14-day window instead of scrolling within it — a client
   asking for a date past the window had no way to reach it at all. */
.date-strip .date-window-chip { min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); background: transparent; }
.date-strip .date-window-chip span { font-size: 18px; line-height: 1; }
.date-strip .date-window-chip small { font-size: 11px; }
.slot-service-summary { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slot-service-summary strong, .slot-service-summary span { display: block; }
.slot-service-summary strong { font-size: 15px; }
.slot-service-summary span { flex: 0 0 auto; color: var(--muted); font-size: 12px; text-align: right; }
.slot-master-choice { margin-bottom: 14px; }
.slot-master-choice h2 { margin: 0 0 9px; font-size: 16px; }
.slot-master-picker { display: flex; gap: 8px; padding-bottom: 5px; overflow-x: auto; }
.slot-master-option { min-width: 196px; min-height: 58px; padding: 9px 11px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: var(--surface); text-align: left; }
.slot-master-option.is-selected { border: 2px solid var(--accent); padding: 8px 10px; background: var(--soft-accent); }
.slot-master-option strong, .slot-master-option small { display: block; }
.slot-master-option strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.slot-master-option small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.slot-master-option .master-avatar, .slot-master-any { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-weight: 700; }
.slot-status { min-height: 24px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.slot-incomplete-note { margin: -4px 0 10px; color: var(--muted); font-size: 12px; }
.day-period { padding: 8px 0 12px; border-top: 1px solid var(--line); }
.period-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.period-icon { width: 18px; height: 18px; display: block; position: relative; color: var(--accent); }
.period-icon-sun::before { content: ""; width: 8px; height: 8px; position: absolute; inset: 5px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 0 -7px 0 -3px currentColor, 0 7px 0 -3px currentColor, 7px 0 0 -3px currentColor, -7px 0 0 -3px currentColor; }
.period-icon-moon::before { content: ""; width: 12px; height: 12px; position: absolute; inset: 2px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; transform: rotate(35deg); }
.period-heading h2 { margin: 0; font-size: 16px; }
.master-avatar { display: grid; flex: 0 0 36px; height: 36px; place-items: center; position: relative; overflow: hidden; border-radius: 50%; color: white; background: var(--accent); font-size: 11px; font-weight: 700; }
.slot-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Compact chips fit 3-4 per row instead of 2, so a busy master's morning is a
   couple of rows rather than a screenful. */
.master-slot-card .slot-times { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.slot-time-button { min-height: 58px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--background); cursor: pointer; }
.slot-time-button strong, .slot-time-button small { display: block; }
.slot-time-button strong { font-size: 15px; white-space: nowrap; }
.slot-time-button small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.slot-time-button span { display: block; margin-top: 4px; overflow: hidden; color: var(--text); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.slot-time-button.is-compact { min-height: 44px; padding: 8px 4px; }
.slot-time-button.is-compact strong { font-size: 14px; }
.slot-time-button.is-selected { outline: 2px solid var(--accent); border-color: var(--accent); background: var(--soft-accent); }
.slot-collapse-top { min-height: 44px; justify-self: end; margin: -8px 0 0; padding-right: 0; }
.slot-list-actions { display: grid; gap: 2px; padding: 8px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.master-slot-card { text-align: left; }
.master-slot-card .day-period:last-of-type { padding-bottom: 4px; }
/* `.list-card header` sets space-between for the master header; the period
   headers nested inside are also <header>, so without this they push
   "Утро/День/Вечер" to the far edge, away from their own icon. */
.master-slot-card .period-heading { justify-content: flex-start; }
.master-slot-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.master-slot-who > div { min-width: 0; }
/* The master's name is the identifier of the whole card — wrap it rather than
   cutting it to "Виноградова…", which makes two colleagues indistinguishable. */
.master-slot-who h2 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.master-slot-who p { margin: 2px 0 0; font-size: 12px; }
.master-slot-terms { flex: 0 0 auto; text-align: right; }
.master-slot-terms strong { display: block; font-size: 14px; white-space: nowrap; }
.master-slot-terms span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
/* An hour holding more times says so in words: "+3" beats a folded corner,
   which is a convention the client has to be taught first. It stays quiet —
   filled in the accent colour it out-shouted the times themselves, and the
   accent belongs to what the client picks, not to a secondary note. */
.slot-hour { position: relative; }
.slot-hour .slot-time-button { width: 100%; }
.slot-time-button.has-more { display: flex; align-items: center; justify-content: center; gap: 5px; }
.slot-hour-more { color: var(--muted); font-size: 11px; font-weight: 600; }
.slot-time-button.has-more.is-open { border-color: var(--accent); background: var(--soft-accent); }
.slot-time-button.has-more.is-open .slot-hour-more { color: var(--accent); }
.master-slot-period + .master-slot-period { margin-top: 12px; }
.master-slot-period-label { margin: 0 0 7px 2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
/* Opening over the row keeps every other hour its own size: as an in-flow cell
   it stretched the whole grid row, leaving tall empty boxes beside it. */
.slot-hour-popover { width: 100%; display: grid; position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; gap: 4px; padding: 5px; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 28px rgba(60, 47, 44, 0.18); }
.slot-hour-popover .slot-time-button { background: var(--background); }
.slot-period-filter { display: flex; gap: 8px; margin-bottom: 10px; padding-bottom: 4px; overflow-x: auto; }
.slot-period-filter:empty { display: none; }
.slot-period-chip { min-height: 40px; padding: 8px 14px; display: flex; flex: 0 0 auto; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface); font-size: 14px; white-space: nowrap; }
.slot-period-chip small { color: var(--muted); font-size: 11px; }
.slot-period-chip.is-selected { color: white; background: var(--accent); border-color: var(--accent); }
.slot-period-chip.is-selected small { color: rgba(255, 255, 255, 0.78); }

button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #3c2f2c; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: 0.52; }

.appointment-card { padding: 21px; border-radius: 26px; }
.appointment-card h2 { font-size: 23px; }
.appointment-card dl { margin: 18px 0 0; display: grid; gap: 12px; }
.appointment-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.appointment-card dt { color: var(--muted); font-size: 14px; }
.appointment-card dd { margin: 0; font-size: 16px; font-weight: 600; }
.hold-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--success); font-size: 13px; font-weight: 600; }
.review-summary {
  margin: 8px 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.review-summary p { margin-bottom: 0; }
.review-date { color: var(--muted); font-size: 14px; text-transform: capitalize; }
.review-time { margin-top: 2px; color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; }
.review-service { margin-top: 16px; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.35; }
.review-meta { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.review-totals { margin-top: 16px; padding-top: 13px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.review-totals span { color: var(--muted); }
.review-totals strong { text-align: right; }
.compact { margin-bottom: 18px; box-shadow: none; }
.field-label { display: grid; gap: 8px; margin: 16px 0; font-weight: 600; }
.field-label small { color: var(--muted); font-weight: 400; }
.field-label textarea { min-height: 86px; padding: 14px; resize: vertical; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.field-label input, .field-label select { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: inherit; }
.check-row { min-height: 44px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; margin: 0; font-size: 15px; line-height: 1.35; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.check-row span, .check-row strong, .check-row small { display: block; }
.check-row a { color: var(--accent); }
.check-row-main { font-size: 15px; font-weight: 600; }
.consent-details { margin-top: -2px; }
.check-row-child { min-height: 44px; grid-template-columns: 18px 1fr; gap: 8px; color: var(--muted); font-size: 14px; }
.check-row-child input { width: 16px; height: 16px; accent-color: var(--muted); }
.check-row-child a { display: inline; color: inherit; text-decoration-color: #aa9c98; text-underline-offset: 2px; }
.check-row-child .consent-optional { display: inline; margin-left: 3px; color: #8c807c; font-size: 11px; white-space: nowrap; }
.consent-group { margin: 8px 0 10px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.consent-group legend { float: left; width: 100%; margin: 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.consent-group legend + .check-row { clear: both; }
.consent-error { margin: 8px 4px; color: var(--accent); font-size: 14px; font-weight: 600; }
.wish-field { margin: 8px 0 12px; }
.wish-field summary { min-height: 44px; display: flex; align-items: center; color: var(--accent); font-weight: 700; cursor: pointer; }
.cabinet-consents { margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.cabinet-consents h2 { margin: 0 0 8px; font-size: 17px; }
.cabinet-consents p { margin: 0 0 12px; font-size: 14px; }
.cabinet-consents .check-row { margin-bottom: 0; }
.channel-picker { margin: 16px 0 10px; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-radius: 20px; box-shadow: none; }
.channel-picker h2 { grid-column: 1 / -1; margin-bottom: 2px; font-size: 16px; }
.channel { width: 100%; min-height: 58px; padding: 10px 12px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; background: transparent; text-align: left; }
.channel span { color: var(--muted); font-size: 12px; }
.channel.is-selected { border-color: var(--accent); background: var(--soft-accent); }
.review-submit-bar {
  width: min(100%, 480px);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: linear-gradient(to top, var(--background) 76%, rgba(248, 243, 239, 0));
}
.review-submit-bar .primary-button { min-height: 54px; }
.review-submit-bar p { margin: 6px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
[data-screen="review"][data-review-editing="true"] .review-submit-bar,
[data-screen="review"]:has(input[type="text"]:focus, textarea:focus) .review-submit-bar {
  width: 100%;
  padding: 10px 0 0;
  position: static;
  transform: none;
  background: transparent;
}

.centered-state { min-height: calc(100vh - 150px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.state-icon { display: grid; width: 76px; height: 76px; margin-bottom: 22px; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: 34px; }
.hold-timer { width: 100%; margin: 12px 0 18px; padding: 15px; border-radius: 16px; box-shadow: none; }
.success-burst { margin: 24px auto -16px; position: relative; z-index: 2; width: fit-content; padding: 9px 18px; border-radius: 99px; color: white; background: var(--success); font-weight: 700; transform: rotate(-3deg); }
.share-card { padding-top: 38px; background: linear-gradient(145deg, #fffdfb, #f3dfda); }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.action-grid button { min-height: 70px; padding: 12px; display: grid; gap: 6px; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-size: 15px; font-weight: 600; }
.action-grid span { font-size: 21px; }
.candidate-list { display: grid; gap: 8px; margin: 4px 0 14px; }
.candidate-list button { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--background); color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; }
.candidate-list button:disabled { opacity: 0.5; cursor: not-allowed; }
.screen[data-screen="cabinet"] { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
#cabinet-overview[hidden], #cabinet-detail[hidden] { display: none; }
.cabinet-welcome { margin: 4px 0 16px; }
.cabinet-welcome .eyebrow { margin-bottom: 4px; }
.cabinet-welcome h1 { margin: 0; font-size: clamp(25px, 7vw, 31px); line-height: 1.15; letter-spacing: -0.035em; }
.cabinet-balance {
  margin-bottom: 24px;
  padding: 18px 20px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(196, 61, 52, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, #fffdfb 20%, #f4d9d4);
}
.cabinet-balance span { color: var(--accent); font-size: 14px; font-weight: 700; }
.cabinet-balance strong { font-size: 27px; letter-spacing: -0.04em; }
.cabinet-balance small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.cabinet-section-heading { margin: 0 0 10px; }
.cabinet-section-heading .eyebrow { margin-bottom: 3px; }
.cabinet-section-heading h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.cabinet-next { margin-bottom: 12px; }
.cabinet-empty-copy { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cabinet-main-actions { display: grid; gap: 10px; margin-bottom: 26px; }
.cabinet-chat-button {
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.cabinet-chat-button:disabled { cursor: wait; opacity: 0.65; }
.cabinet-chat-button > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.cabinet-chat-button strong { font-size: 16px; line-height: 1.3; }
.cabinet-chat-button small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.cabinet-chat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: var(--soft-accent); }
.cabinet-chat-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }
.cabinet-chat-arrow { color: var(--accent); font-size: 25px; text-align: right; }
.cabinet-branch-dialog {
  width: min(calc(100% - 24px), 440px);
  max-height: min(82vh, 680px);
  margin: auto auto 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(60, 47, 44, 0.24);
}
.cabinet-branch-dialog::backdrop { background: rgba(60, 47, 44, 0.42); backdrop-filter: blur(2px); }
.cabinet-branch-dialog-card { max-height: min(82vh, 680px); padding: 20px; overflow-y: auto; }
.cabinet-branch-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cabinet-branch-dialog h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.25; }
.cabinet-branch-dialog-card > p { margin: 10px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cabinet-branch-dialog-card > .promotion-terms { white-space: pre-line; color: var(--ink); }
.dialog-close { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 14px; color: var(--text); background: var(--background); font-size: 28px; line-height: 1; cursor: pointer; }
.cabinet-chat-branches { display: grid; gap: 8px; }
.cabinet-chat-branches button {
  width: 100%;
  min-height: 64px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--background);
  text-align: left;
  cursor: pointer;
}
.cabinet-chat-branches button:disabled { cursor: wait; opacity: 0.6; }
.cabinet-chat-branches button > span:first-child { min-width: 0; display: grid; gap: 3px; }
.cabinet-chat-branches strong { font-size: 16px; line-height: 1.3; }
.cabinet-chat-branches small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.cabinet-chat-branches button > span:last-child { color: var(--accent); font-size: 25px; }
.cabinet-repeat { display: grid; gap: 8px; margin-bottom: 28px; }
.cabinet-repeat button {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.cabinet-repeat button > span { font-size: 16px; font-weight: 700; }
.cabinet-repeat button strong { flex: 0 0 auto; color: var(--accent); font-size: 14px; }
.booking-list { display: grid; gap: 24px; margin: 0 0 22px; }
.cabinet-booking-section { display: grid; gap: 10px; }
.cabinet-booking-row {
  width: 100%;
  min-height: 118px;
  padding: 10px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.cabinet-next .cabinet-booking-row {
  padding: 10px;
  border-color: rgba(196, 61, 52, 0.34);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(196, 61, 52, 0.11);
}
.cabinet-booking-image { width: 82px; height: 98px; overflow: hidden; border-radius: 14px; background: var(--soft-accent); }
.cabinet-booking-image img { width: 100%; height: 100%; object-fit: cover; }
.cabinet-booking-copy { min-width: 0; display: grid; gap: 5px; }
.cabinet-booking-copy > strong { font-size: 17px; line-height: 1.3; }
.cabinet-booking-copy > span:not(.cabinet-booking-status) { font-size: 16px; line-height: 1.35; }
.cabinet-booking-copy > small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.cabinet-booking-status {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 99px;
  color: #345b41;
  background: #e1eee5;
  font-size: 12px;
  font-weight: 700;
}
.cabinet-booking-status.status-cancelled_by_client,
.cabinet-booking-status.status-cancelled_by_salon,
.cabinet-booking-status.status-no_show { color: #685b57; background: #eee8e4; }
.cabinet-booking-row.is-cancelled { background: rgba(255, 253, 251, 0.66); }
.cabinet-row-arrow { color: var(--accent); font-size: 25px; text-align: right; }
.cabinet-more, .cabinet-cancelled { display: grid; gap: 10px; }
.cabinet-more summary, .cabinet-cancelled summary {
  min-height: 48px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cabinet-cancelled { padding-top: 4px; border-top: 1px solid var(--line); }
.cabinet-consents { margin-top: 28px; }
.cabinet-logout {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
/* `display: grid` above wins over the browser's own [hidden]{display:none}
   at equal specificity (author beats UA stylesheet regardless of source
   order) — element.hidden = true silently does nothing without this.
   Found before for .quick-cart (see its own [hidden] rule above), missed
   here when the cabinet screen was built; found for real 25/08/2026: the
   list and the single-booking detail/actions rendered on top of each
   other instead of one replacing the other. */
.action-grid[hidden], .candidate-list[hidden], .booking-list[hidden], .cabinet-repeat[hidden] { display: none; }
.booking-list .empty-note { padding: 18px; text-align: center; color: var(--muted); font-size: 16px; }
.reschedule-note { margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }
.prototype-note { margin-top: 18px; text-align: center; font-size: 11px; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translate(-50%, 20px); width: min(calc(100% - 40px), 420px); padding: 13px 16px; border-radius: 15px; color: white; background: var(--text); opacity: 0; pointer-events: none; transition: 0.2s; font-size: 13px; text-align: center; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.quick-cart {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.97);
  box-shadow: 0 -12px 32px rgba(60, 47, 44, 0.12);
  backdrop-filter: blur(14px);
}

.quick-cart[hidden] { display: none; }
.quick-cart-summary { min-width: 0; }
.quick-cart-summary span, .quick-cart-summary strong { display: block; }
.quick-cart-summary span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quick-cart-summary strong { margin-top: 3px; font-size: 16px; }
.quick-cart .primary-button { min-height: 50px; padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; line-height: 1.25; }
.quick-cart .primary-button span { font-size: 18px; font-weight: 400; }
.phone-shell.has-quick-cart .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 410px) {
  .topbar { padding-right: 20px; padding-left: 20px; }
  .cart-label { display: none; }
  .cart-button strong { min-width: 30px; height: 30px; }
  .booking-progress li { font-size: 0; }
  .booking-progress li::after { display: block; }
  .booking-progress li:last-child::after { display: none; }
}

@media (max-width: 359px) {
  .phone-shell { padding-right: 14px; padding-left: 14px; }
  .topbar { padding-right: 14px; padding-left: 14px; }
  .quick-cart { grid-template-columns: minmax(0, 1fr) 140px; padding-right: 14px; padding-left: 14px; }
  .list-card header { flex-wrap: wrap; }
  .price { width: 100%; }
  .service-card footer { align-items: stretch; flex-direction: column; }
  .service-card footer .small-button { width: 100%; }
  .cart-label { display: none; }
  .cart-item { grid-template-columns: 68px minmax(0, 1fr) 44px; gap: 9px; }
  .cart-item-image { width: 68px; height: 78px; }
  .cabinet-booking-row { grid-template-columns: 70px minmax(0, 1fr) 16px; gap: 8px; }
  .cabinet-booking-image { width: 70px; height: 88px; }
}

@media (min-width: 700px) {
  body { padding: 28px 0; }
  .phone-shell { min-height: calc(100vh - 56px); border-radius: 34px; box-shadow: 0 30px 80px rgba(60, 47, 44, 0.18); }
  .topbar { top: 28px; border-radius: 34px 34px 0 0; }
}

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

/* Client-authored wishes stay readable without interpreting their markup. */
.client-comment{display:block;margin:16px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;text-align:left}.client-comment>strong,.client-comment>span{display:block}.client-comment>strong{margin-bottom:4px}#client-wish-hint{font-size:16px;line-height:1.5;color:var(--ink,#3c2f2c)}

/* Keep category navigation explicit for mouse users, without covering cards. */
.category-scroll-controls { display: none; }
@media (any-pointer: fine) {
  .category-scroll-controls:not([hidden]) { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
  .category-scroll-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 24px; cursor: pointer; }
  .category-scroll-button:disabled { opacity: .35; cursor: default; }
  .category-scroll-button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
}
/* Focus follows the rounded field, rather than drawing a rectangle inside it. */
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search-field input:focus-visible { outline: none; }
