/* V67: shared public/member presentation. Intentionally scoped, never A/B/C. */
.salon-ui {
  --salon-font-increase: 0px;
  --salon-paper: #f7f3eb;
  --salon-ink: #191919;
  --salon-muted: #77736d;
  --salon-line: #e7dfd3;
  --salon-nav: calc(64px + env(safe-area-inset-bottom, 0px));
  color: var(--salon-ink);
  background: var(--salon-paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: calc(14px + var(--salon-font-increase, 0px));
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
.salon-ui *, .salon-ui *::before, .salon-ui *::after { box-sizing: border-box; }
.salon-ui button, .salon-ui input { font-family: inherit; font-size: calc(14px + var(--salon-font-increase, 0px)); }
.salon-ui button { touch-action: manipulation; cursor: pointer; font-weight: 500; }
.salon-ui button:disabled { cursor: default; }
.salon-ui button:focus-visible, .salon-ui a:focus-visible, .salon-ui summary:focus-visible { outline: 2px solid #625a4f; outline-offset: 3px; }
.salon-ui h1, .salon-ui h2, .salon-ui h3, .salon-ui p { margin: 0; }
.salon-ui .salon-icon { width: 22px; height: 22px; flex: 0 0 22px; vertical-align: middle; }
.salon-ui .salon-header {
  display: flex; align-items: center; justify-content: flex-start; gap: 4px;
  min-height: 56px; padding: 0 20px; margin: 0; border-bottom: 1px solid var(--salon-line);
  background: var(--salon-paper); flex-shrink: 0;
}
.salon-ui .salon-wordmark { font-size: calc(15px + var(--salon-font-increase, 0px)); font-weight: 600; min-width: 0; overflow-wrap: normal; line-height: 1.3; }
.salon-ui .salon-language { white-space: nowrap; flex-shrink: 0; min-height: 44px; min-width: 64px; padding: 0; border: 0; border-radius: 0; color: var(--salon-muted); background: none; font-size: calc(12px + var(--salon-font-increase, 0px)); box-shadow: none; }
.salon-ui .salon-language [aria-current] { color: var(--salon-ink); }
.salon-ui .salon-theme-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--salon-muted); box-shadow: none; }
.salon-ui .salon-theme-toggle .salon-icon { width: 18px; height: 18px; }
.salon-ui .salon-text-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--salon-muted); box-shadow: none; }
.salon-ui .salon-text-toggle .salon-icon { width: 22px; height: 22px; }
.salon-ui .salon-text-toggle[aria-pressed="true"] { color: var(--salon-ink); background: color-mix(in srgb, var(--salon-ink) 6%, transparent); }
html[data-salon-text-size="large"] .salon-ui { --salon-font-increase: 2px; }
.salon-ui .salon-page-title { display: flex; align-items: center; min-height: 48px; gap: 8px; margin: 0; padding: 0 20px; }
.salon-ui .salon-page-title h1 { font-size: calc(20px + var(--salon-font-increase, 0px)); line-height: 1.3; font-weight: 600; text-align: left; }
.salon-ui .salon-page-title button { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-left: -12px; padding: 0; background: none; border: 0; border-radius: 0; color: inherit; box-shadow: none; }
.salon-ui .salon-page-title h1::after { display: none; }
.salon-ui .salon-home-account { height: 48px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 20px; color: var(--salon-muted); }
.salon-ui .salon-home-account button { border: 0; background: none; padding: 0; min-height: 44px; min-width: 36px; color: inherit; }
.site-phone.salon-ui { width: min(100%, 430px); max-width: 430px; border: 0; border-radius: 0; padding: env(safe-area-inset-top, 0px) 0 calc(var(--salon-nav) + 16px); box-shadow: none; overflow: visible; }
.salon-ui .site-bottom-nav, .salon-ui .d-bottom-nav {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  width: min(100vw, 430px); max-width: 430px; height: var(--salon-nav); min-height: var(--salon-nav);
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 40;
  padding: 0 0 env(safe-area-inset-bottom, 0px); margin: 0;
  background: #fffefc; border: 0; border-top: 1px solid var(--salon-line); border-radius: 0; box-shadow: none;
}
.salon-ui .site-bottom-nav button, .salon-ui .d-bottom-nav button {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  min-width: 0; min-height: 60px; padding: 6px 2px; border: 0; border-radius: 0;
  background: transparent; color: var(--salon-muted); font-size: calc(12px + var(--salon-font-increase, 0px)); line-height: 1.2; font-weight: 400; box-shadow: none;
}
.salon-ui .site-bottom-nav button.active, .salon-ui .d-bottom-nav button.active { color: var(--salon-ink); background: none; font-weight: 600; }
.salon-ui .site-bottom-nav span { font-size: calc(12px + var(--salon-font-increase, 0px)); overflow-wrap: anywhere; }
.salon-ui .site-hero-image { position: relative; width: calc(100% - 40px); aspect-ratio: 16 / 9; height: auto; min-height: 0; margin: 0 20px 12px; border: 0; border-radius: 12px; overflow: hidden; }
.salon-ui .site-hero-image .site-hero-img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.salon-ui .hero-arrow { width: 32px; height: 32px; min-height: 32px; border: 0; background: #ffffffb8; color: #191919; font-size: calc(24px + var(--salon-font-increase, 0px)); border-radius: 50%; }
.salon-ui .hero-arrow.left { left: 8px; } .salon-ui .hero-arrow.right { right: 8px; }
.salon-ui .dots { bottom: 10px; gap: 6px; }
.salon-ui .dots button { min-width: 7px; width: 7px; min-height: 7px; height: 7px; padding: 0; border: 0; }
.salon-ui .dots button.active { width: 16px; }
.salon-ui .news-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 20px; padding: 0; border-bottom: 1px solid var(--salon-line); }
.salon-ui .news-tabs button { min-width: 0; min-height: 48px; padding: 5px 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--salon-muted); font-size: calc(12px + var(--salon-font-increase, 0px)); font-weight: 400; }
.salon-ui .news-tabs button.active { background: none; color: var(--salon-ink); border-bottom-color: var(--salon-ink); font-weight: 600; }
.salon-ui .news-list { display: grid; gap: 0; padding: 0 20px; margin: 0; }
.salon-ui .news-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 88px; margin: 0; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--salon-line); border-radius: 0; box-shadow: none; }
.salon-ui .news-card .thumb-img, .salon-ui .news-card .news-thumb { width: 64px; height: 64px; min-height: 0; border-radius: 8px; overflow: hidden; }
.salon-ui .news-card img { width: 100%; height: 100%; object-fit: cover; }
.salon-ui .news-card h3 { font-size: calc(15px + var(--salon-font-increase, 0px)); line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; color: var(--salon-ink); }
.site-phone.salon-ui .news-title-block { min-height: 0; }
.salon-ui .salon-whatsapp { position: fixed; bottom: calc(var(--salon-nav) + 16px); right: max(20px, calc((100vw - 430px) / 2 + 20px)); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #25d366; color: white; z-index: 35; box-shadow: 0 3px 10px #0002; }
.salon-ui .salon-whatsapp .salon-icon { width: 32px; height: 32px; }
/* V70: only articles scroll. Other pages retain their original document scroll. */
.site-body.salon-home-screen { height: 100%; overflow: hidden; overscroll-behavior-y: none; }
.salon-home-screen .site-shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.site-phone.salon-ui.salon-home-fixed { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding-bottom: var(--salon-nav); }
.salon-home-fixed > :is(.salon-header,.salon-home-account,.news-tabs) { flex-shrink: 0; }
.salon-home-fixed > .site-hero-image { flex: 0 1 auto; touch-action: pan-y pinch-zoom; user-select: none; }
.salon-home-fixed > .site-hero-image img { -webkit-user-drag: none; }
.salon-home-fixed > .news-list { display: block; flex: 1 1 0; min-height: 64px; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y pinch-zoom; padding-bottom: 0; scroll-padding-bottom: 80px; }
.salon-home-fixed > .news-list::after { content:""; display:block; height:80px; }
.salon-home-fixed > .news-list:focus-visible { outline: 2px solid var(--salon-muted); outline-offset: -2px; }
.salon-ui .salon-app-header { padding-left: 12px; padding-right: 12px; gap: 2px; }
.salon-app-header .salon-wordmark { flex: 1; }
.salon-ui .salon-app-tool { display: grid; place-items: center; position: relative; flex: 0 0 44px; width: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; color: var(--salon-muted); background: none; box-shadow: none; }
.salon-ui .salon-app-tool[hidden] { display: none; }
.salon-app-tool.has-unread::after { content:""; position:absolute; width:6px; height:6px; top:9px; right:9px; border-radius:50%; background:#b84439; }
.salon-app-dialog { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding:24px; border:1px solid var(--salon-line); border-radius:20px; margin:auto; box-shadow:0 16px 80px #0002; overflow:auto; }
.salon-app-dialog::backdrop { background:#0005; }
.salon-app-dialog h2 { font-size:20px; margin:0 0 16px; }
.salon-app-dialog p { white-space:pre-wrap; overflow-wrap:anywhere; }
.salon-app-dialog .salon-app-close { display:block; width:100%; min-height:48px; margin-top:24px; border:0; border-radius:10px; background:var(--salon-ink); color:var(--salon-paper); }
@media (max-width:349px) {
  .salon-ui .salon-app-header { flex-wrap:wrap; }
  .salon-app-header .salon-wordmark { flex-basis:calc(100% - 70px); }
  .salon-app-header .salon-theme-toggle { margin-left:auto; }
}
@media (max-height:420px) {
  .salon-home-fixed > .site-hero-image { max-height:44px; margin-bottom:4px; }
  .salon-home-fixed > .salon-home-account { height:44px; }
  .salon-home-fixed > .news-tabs button { min-height:44px; }
}
.salon-ui .brand-section { width: calc(100% - 40px); max-width: calc(100% - 40px); min-width: 0; margin: 0 20px; padding: 0; min-height: 0; border-radius: 12px; background: transparent; }
.salon-ui .brand-video-frame { width: 100%; max-width: 100%; min-width: 0; min-height: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.salon-ui .brand-video-player, .salon-ui .brand-video-placeholder { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #eee8df; }
.salon-ui .brand-story-card { min-height: 0; background: none; border: 0; box-shadow: none; }
.salon-ui .brand-story-card:empty, .salon-ui .stylist-video-card:empty { display: none; }
.salon-ui .brand-floating-action { position: static; transform: none; margin: 16px 0; }
.salon-ui .stylist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 20px 16px; }
.salon-ui .stylist-card { display: flex; flex-direction: column; min-width: 0; gap: 6px; margin: 0; padding: 6px; border: 1px solid var(--salon-line); border-radius: 10px; background: #fffefc; box-shadow: none; }
.salon-ui .salon-profile-link { width: 100%; min-width: 0; border: 0; background: none; padding: 0; color: inherit; }
.salon-ui .stylist-card .stylist-photo { width: 100%; height: auto; aspect-ratio: 1; margin: 0; border: 0; border-radius: 6px; background: #ede9e3; }
.salon-ui .stylist-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.salon-ui .stylist-card h2 { font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 500; line-height: 1.3; margin: 8px 0 2px; overflow-wrap: anywhere; }
.salon-ui .stylist-card .button-row { display: block; margin: auto 0 0; padding: 0; }
.salon-ui .stylist-card .button-row button { width: 100%; min-width: 0; min-height: 44px; padding: 5px 2px; font-size: calc(13px + var(--salon-font-increase, 0px)); font-weight: 500; border: 1px solid var(--salon-line); border-radius: 6px; background: transparent; color: inherit; }
.salon-ui .stylist-profile-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 170px; gap: 16px; align-items: start; margin: 0 20px 16px; padding: 12px; border: 1px solid var(--salon-line); border-radius: 12px; background: #fffefc; }
.salon-ui .stylist-profile-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.salon-ui .profile-photo { width: 96px; height: 96px; min-height: 0; border-radius: 10px; }
.salon-ui .stylist-social-panel, .salon-ui .stylist-bio-panel { border: 0; padding: 0; min-height: 0; background: none; }
.salon-ui .stylist-bio-panel { max-height: 100%; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-width: thin; }
.salon-ui .stylist-bio-panel p { font-size: calc(14px + var(--salon-font-increase, 0px)); margin: 0; overflow-wrap: anywhere; }
.salon-ui .stylist-social-panel > p { display: none; }
.salon-ui .social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.salon-ui .social-icon-button { border: 0; padding: 4px; min-width: 44px; min-height: 44px; background: none; }
.salon-ui .stylist-social-panel .social-row { display: flex; justify-content: center; margin: 0; gap: 0; }
.salon-ui .stylist-social-panel .social-row .social-icon-button { width: 44px; height: 44px; min-width: 44px; padding: 8px; flex: 0 0 44px; justify-content: center; gap: 0; }
.salon-ui .stylist-social-panel .social-row .social-icon-button[hidden] { display: none; }
.salon-ui .stylist-social-panel .social-brand-icon { flex: 0 0 28px; }
.salon-ui .stylist-social-panel .social-icon-button small { display: none; }
.salon-ui .social-brand-icon svg { width: 28px; height: 28px; }
.salon-ui .stylist-video-card { margin: 0 20px; padding: 0; border: 0; background: none; box-shadow: none; }
.salon-ui .profile-video-frame { width: 100%; height: auto; max-height: 50vh; min-height: 0; border-radius: 12px; }
.salon-ui .safe-floating-action { position: sticky; display: block; width: calc(100% - 40px); min-height: 44px; margin: 20px; left: auto; right: auto; bottom: calc(var(--salon-nav) + 8px); transform: none; background: #191919; color: white; border: 0; border-radius: 10px; font-size: calc(14px + var(--salon-font-increase, 0px)); }
.salon-ui .price-list { margin: 0 20px; display: grid; gap: 12px; }
.salon-ui .price-category { border: 1px solid var(--salon-line); border-radius: 12px; padding: 14px; background: #fffefc; }
.salon-ui .price-category h2 { font-size: calc(16px + var(--salon-font-increase, 0px)); }
.salon-ui .price-item { gap: 12px; padding: 12px 0; border-color: var(--salon-line); }
.salon-ui .price-item strong { font-size: calc(14px + var(--salon-font-increase, 0px)); }
.salon-ui .price-item p, .salon-ui .gst-note { font-size: calc(12px + var(--salon-font-increase, 0px)); color: var(--salon-muted); }
.salon-ui .gst-note { margin: 16px 20px; }

/* All returned time slots stay in the DOM; compact instead of clipping them. */
.site-phone.salon-ui.booking-page { --salon-booking-action: 72px; padding-bottom: calc(var(--salon-nav) + var(--salon-booking-action) + 16px); }
.site-phone.salon-ui .booking-flow { display: grid; gap: 12px; padding: 0 20px; margin: 0; }
.salon-ui .booking-flow button { color: var(--salon-ink); font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 500; min-height: 44px; border: 1px solid var(--salon-line); border-radius: 8px; background: #fffefc; padding: 8px; }
.salon-ui .booking-flow .salon-booking-person { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 8px 12px; min-width: 0; }
.salon-ui .salon-booking-person strong { font-size: calc(15px + var(--salon-font-increase, 0px)); font-weight: 600; }
.salon-ui .salon-booking-person span { font-size: calc(12px + var(--salon-font-increase, 0px)); color: var(--salon-muted); overflow-wrap: anywhere; }
.salon-ui .booking-flow h2 { font-size: calc(16px + var(--salon-font-increase, 0px)); font-weight: 600; }
.salon-ui .booking-card { margin: 0; padding: 12px; border: 1px solid var(--salon-line); border-radius: 12px; box-shadow: none; }
.salon-ui .booking-category { margin: 10px 0 0; border-radius: 8px; border-color: var(--salon-line); }
.salon-ui .booking-category-head { padding: 8px 10px; }
.salon-ui .booking-cat-icon { color: inherit; font-size: calc(18px + var(--salon-font-increase, 0px)); width: 20px; }
.salon-ui .booking-service-list { padding: 8px; }
.salon-ui .booking-service-row { padding: 8px; min-height: 52px; gap: 8px; border-radius: 8px; background: none; }
.salon-ui .booking-service-row strong { font-size: calc(14px + var(--salon-font-increase, 0px)); }
.salon-ui .booking-service-row p { font-size: calc(12px + var(--salon-font-increase, 0px)); color: var(--salon-muted); }
.salon-ui .booking-service-row button { min-width: 60px; }
.salon-ui .selected-strip { min-height: 0; padding: 10px; border-color: var(--salon-line); border-radius: 8px; background: none; color: var(--salon-ink); }
.salon-ui .selected-strip strong { font-size: calc(12px + var(--salon-font-increase, 0px)); font-weight: 500; }
.salon-ui .selected-chips { gap: 6px; margin-top: 6px; }
.salon-ui .selected-chips span { padding: 4px 8px; font-size: calc(12px + var(--salon-font-increase, 0px)); font-weight: 400; border-radius: 6px; border-color: var(--salon-line); }
.salon-ui .month-row { display: flex; gap: 8px; justify-content: space-between; }
.salon-ui .month-row button { padding: 0 10px; }
.salon-ui .date-strip { gap: 4px; padding: 0; scroll-padding: 0; scrollbar-width: none; scroll-snap-type: none; scroll-behavior: auto; }
.salon-ui .date-strip::-webkit-scrollbar { display: none; }
.salon-ui .date-strip button { flex: 0 0 calc((100% - 24px) / 7); min-width: 0; min-height: 48px; padding: 5px 0; border-radius: 8px; box-shadow: none; scroll-snap-align: none; }
.salon-ui .date-strip strong, .salon-ui .date-strip small { display: block; }
.salon-ui .date-strip strong { font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 500; }
.salon-ui .date-strip small { font-size: calc(10px + var(--salon-font-increase, 0px)); margin-top: 2px; }
.salon-ui .salon-time-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.salon-ui .salon-time-heading details { font-size: calc(12px + var(--salon-font-increase, 0px)); max-width: 68%; color: var(--salon-muted); }
.salon-ui .salon-time-heading summary { min-height: 30px; display: flex; align-items: center; justify-content: flex-end; cursor: pointer; }
.salon-ui .salon-time-heading details p { padding: 8px; border: 1px solid var(--salon-line); background: white; border-radius: 8px; }
.salon-ui .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.salon-ui .time-slot { min-height: 44px; height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; padding: 3px; }
.salon-ui .time-slot strong { font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 500; }
.salon-ui .time-slot small { font-size: calc(10px + var(--salon-font-increase, 0px)); line-height: 1.1; }
.salon-ui .booking-flow button.active, .salon-ui .booking-flow button.selected, .salon-ui .booking-flow button.dark { background: #191919; border-color: #191919; color: white; box-shadow: none; }
.salon-ui .booking-flow .time-slot.booked { background: #e9edf3; color: #52637b; border-color: #d6dde8; }
.salon-ui .booking-flow .time-slot.rest { background: #efeeeb; color: #8a8782; }
.salon-ui .notice-card { padding: 10px; margin: 8px 0; font-size: calc(12px + var(--salon-font-increase, 0px)); min-height: 0; }
/* V69: one invariant action row above navigation, independent of flowing content. */
.site-phone.salon-ui .booking-bottom-bar { position: fixed; left: 50%; bottom: var(--salon-nav); transform: translateX(-50%); width: min(100vw, 430px); max-width: 430px; height: var(--salon-booking-action); z-index: 39; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 20px; border: 0; margin: 0; background: var(--salon-paper); box-shadow: none; }
.salon-ui .booking-bottom-bar button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; height: 48px; min-height: 48px; padding: 8px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; scroll-margin-bottom: calc(var(--salon-nav) + 12px); }
/* V70: reuse the very same fixed action row for the stylist's original booking link. */
.site-phone.salon-ui.salon-profile-page { --salon-booking-action: 0px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--salon-nav) + var(--salon-booking-action) + 16px); }
.site-phone.salon-ui.salon-profile-bookable { --salon-booking-action: 72px; }
.salon-profile-page > :is(.salon-header,.salon-page-title,.stylist-profile-card) { flex-shrink: 0; }
.salon-profile-page.salon-profile-video > .stylist-video-card { position: relative; flex: 1 0 240px; min-height: 240px; }
.salon-ui.salon-profile-page.salon-profile-video .profile-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: contain; background: #111; }
.salon-ui .salon-profile-actions .safe-floating-action { position: static; inset: auto; transform: none; margin: 0; width: 100%; max-width: none; min-width: 0; height: 48px; min-height: 48px; padding: 8px; border-radius: 8px; font-weight: 500; box-shadow: none; }
.salon-ui.salon-profile-page .stylist-video-card { scroll-margin-bottom: calc(var(--salon-nav) + var(--salon-booking-action) + 16px); }
.salon-ui .booking-selection-summary { padding: 8px 10px; border: 1px solid var(--salon-line); border-radius: 8px; font-size: calc(12px + var(--salon-font-increase, 0px)); color: var(--salon-muted); }
.salon-ui .booking-send-hint { text-align: center; color: var(--salon-muted); font-size: calc(12px + var(--salon-font-increase, 0px)); }
.salon-ui .booking-flow :is(.booking-service-row, .time-slot, .booking-selection-summary, .booking-send-hint) { scroll-margin-bottom: calc(var(--salon-nav) + var(--salon-booking-action) + 16px); }
.salon-ui .notice-card.error { display: grid; gap: 8px; }
.salon-ui .booking-summary { padding: 0 14px; margin: 0; gap: 0; border: 1px solid var(--salon-line); border-radius: 12px; background: #fffefc; box-shadow: none; }
.salon-ui .summary-line { display: grid; grid-template-columns: minmax(65px, 1fr) minmax(0, 2fr); gap: 12px; align-items: center; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--salon-line); border-radius: 0; background: none; }
.salon-ui .summary-line:last-child { border-bottom: 0; }
.salon-ui .summary-line span { font-size: calc(12px + var(--salon-font-increase, 0px)); font-weight: 400; color: var(--salon-muted); }
.salon-ui .summary-line strong { font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.salon-ui .month-picker { width: min(430px, 100%); max-height: 85dvh; overflow-y: auto; padding: 16px; font-size: calc(14px + var(--salon-font-increase, 0px)); }
.salon-ui .month-picker-head { grid-template-columns: 1fr 1fr 1fr; }

/* D guest auth and member workspace use exactly the same header, not nested chrome. */
.d-app-shell.salon-ui.salon-site-layer { position: fixed; inset: 0; margin: 0 auto; transform: none; width: min(100vw, 430px); max-width: 430px; height: 100dvh !important; min-height: 0 !important; padding: 0; z-index: 100; }
.d-app-shell.salon-ui.salon-site-layer .d-home-view, .d-app-shell.salon-ui .d-site-frame { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; display: block; }
.d-app-shell.salon-ui.d-fullscreen-layer { display: flex; flex-direction: column; background: var(--salon-paper); padding: env(safe-area-inset-top, 0px) 0 0; box-shadow: 0 0 0 100vmax #efede8; }
.d-app-shell.salon-ui.d-fullscreen-layer .d-page { flex: 1; min-height: 0; height: auto; width: 100%; overflow-y: auto; padding: 0 20px 20px; background: var(--salon-paper); }
.d-app-shell.salon-ui .d-page > .salon-page-title { margin: 0 -20px 12px; }
.d-app-shell.salon-ui.d-fullscreen-layer > nav { position: relative; left: auto; right: auto; bottom: auto; transform: none; flex-shrink: 0; width: 100%; max-width: none; height: var(--salon-nav); min-height: var(--salon-nav); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 1; }
.d-app-shell.salon-ui .salon-public-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.d-app-shell.salon-ui .d-member-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-app-shell.salon-ui .mobile-card { padding: 14px; margin: 0 0 16px; border: 1px solid var(--salon-line); border-radius: 12px; background: #fffefc; box-shadow: none; }
.d-app-shell.salon-ui .mobile-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.d-app-shell.salon-ui .mobile-card-head strong { font-size: calc(16px + var(--salon-font-increase, 0px)); font-weight: 600; }
.d-app-shell.salon-ui .mobile-card-head button { background: none; border: 0; min-height: 44px; padding: 0; font-size: calc(12px + var(--salon-font-increase, 0px)); color: var(--salon-muted); }
.d-app-shell.salon-ui .mobile-card-head > span { font-size: calc(10px + var(--salon-font-increase, 0px)); font-weight: 400; color: var(--salon-muted); }
.d-app-shell.salon-ui .d-auth-card { margin: 0; padding: 20px 0 0; background: none; border: 0; border-radius: 0; display: grid; gap: 20px; }
.d-app-shell.salon-ui .d-auth-card label { display: grid; gap: 8px; margin: 0; font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 400; }
.d-app-shell.salon-ui .d-auth-card input:not([type=checkbox]) { width: 100%; min-width: 0; height: 44px; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid var(--salon-line); border-radius: 8px; background: #fffefc; color: var(--salon-ink); font-size: calc(16px + var(--salon-font-increase, 0px)); font-weight: 400; box-shadow: none; }
.d-app-shell.salon-ui .d-auth-card input:disabled { color: var(--salon-muted); background: #eeebe6; }
.d-app-shell.salon-ui .salon-password-field { position: relative; display: block; }
.d-app-shell.salon-ui .salon-password-field input { padding-right: 46px !important; }
.d-app-shell.salon-ui .salon-password-field button { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--salon-muted); }
.d-app-shell.salon-ui .salon-login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-app-shell.salon-ui .d-auth-card .d-remember-row { display: flex; align-items: center; gap: 8px; font-size: calc(12px + var(--salon-font-increase, 0px)); min-height: 44px; }
.d-app-shell.salon-ui .d-remember-row input { width: 18px; height: 18px; min-height: 18px; accent-color: #191919; }
.d-app-shell.salon-ui .salon-login-options button { border: 0; background: none; padding: 0; min-height: 44px; font-size: calc(12px + var(--salon-font-increase, 0px)); color: inherit; }
.d-app-shell.salon-ui .d-auth-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.d-app-shell.salon-ui .primary-action { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--salon-line); border-radius: 8px; background: #fffefc; color: var(--salon-ink); font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 500; box-shadow: none; }
.d-app-shell.salon-ui .primary-action.dark { background: #191919; color: #fff; border-color: #191919; }
.d-app-shell.salon-ui .d-auth-card .primary-action { border-radius: 8px; font-weight: 500; min-height: 44px; }
.d-app-shell.salon-ui .salon-login-options button { font-weight: 400; }
.d-app-shell.salon-ui .d-otp-wait { padding: 10px; min-height: 0; margin: 0; font-size: calc(12px + var(--salon-font-increase, 0px)); }
.d-app-shell.salon-ui .d-otp-wait span, .d-app-shell.salon-ui .d-otp-wait strong { font-size: calc(12px + var(--salon-font-increase, 0px)); }
.d-app-shell.salon-ui .d-book-guide { background: none; border: 0; padding: 0; }
.d-app-shell.salon-ui .d-book-guide .d-guide-primary { font-size: calc(14px + var(--salon-font-increase, 0px)); font-weight: 500; color: inherit; }
.d-app-shell.salon-ui .d-booking-item { padding: 12px 0; border: 0; border-top: 1px solid var(--salon-line); border-radius: 0; gap: 12px; background: none; }
.d-app-shell.salon-ui .d-booking-item strong { font-size: calc(16px + var(--salon-font-increase, 0px)); font-weight: 600; }
.d-app-shell.salon-ui .d-booking-item span { font-size: calc(14px + var(--salon-font-increase, 0px)); margin-top: 6px; }
.d-app-shell.salon-ui .d-booking-item small { font-size: calc(12px + var(--salon-font-increase, 0px)); margin-top: 4px; color: var(--salon-muted); }
.d-app-shell.salon-ui .d-booking-item button { min-width: 76px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--salon-line); border-radius: 8px; font-size: calc(12px + var(--salon-font-increase, 0px)); background: none; }
.d-app-shell.salon-ui .mobile-empty { font-size: calc(14px + var(--salon-font-increase, 0px)); padding: 14px 0; }
.d-app-shell.salon-ui .d-settings-item { padding: 14px; border-color: var(--salon-line); background: #fffefc; }
.d-app-shell.salon-ui .d-settings-copy strong { font-size: calc(14px + var(--salon-font-increase, 0px)); }
.d-app-shell.salon-ui .d-settings-copy small { font-size: calc(12px + var(--salon-font-increase, 0px)); }
.d-app-shell.salon-ui .d-settings-value { font-size: calc(14px + var(--salon-font-increase, 0px)); }
.d-app-shell.salon-ui .d-settings-icon { width: 24px; height: 24px; background: none; }
.d-app-shell.salon-ui .d-settings-list { min-height: 0; }
.d-app-shell.salon-ui .d-mine-page { display: flex; flex-direction: column; gap: 0; }
.d-app-shell.salon-ui .d-mine-page .d-settings-list { flex: 1; }
.d-app-shell.salon-ui .d-settings-item { color: var(--salon-ink); grid-template-columns: 24px minmax(0, 1fr) auto 18px; }
@media (max-height: 740px) {
  .salon-ui .salon-header { min-height: 48px; }
  .salon-ui .salon-page-title { min-height: 44px; }
  .site-phone.salon-ui .booking-flow { gap: 8px; }
  .salon-ui .time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .salon-ui .booking-flow .salon-booking-person { padding: 5px 10px; }
  .salon-ui .salon-time-heading { margin-bottom: 4px; }
}
@media (max-width: 359px) {
  .salon-ui .salon-header { padding-left: 16px; padding-right: 16px; gap: 4px; }
  .salon-ui .salon-wordmark { font-size: calc(14px + var(--salon-font-increase, 0px)); }
  .salon-ui .stylist-grid { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .salon-ui .stylist-card h2 { font-size: calc(12px + var(--salon-font-increase, 0px)); }
}

/* Night reading appearance changes only colours, never layout or actions. */
html[data-salon-theme="dark"] .salon-ui { --salon-paper: #191a1b; --salon-ink: #f1ede6; --salon-muted: #aaa69e; --salon-line: #3b3a37; color-scheme: dark; }
html[data-salon-theme="dark"] .site-body { background: #111213; }
html[data-salon-theme="dark"] .salon-ui :is(.site-bottom-nav, .d-bottom-nav, .stylist-card, .stylist-profile-card, .price-category, .booking-card, .booking-summary, .summary-line, .mobile-card, .d-settings-item, .booking-service-row, .month-picker) { background: #222426; color: var(--salon-ink); }
html[data-salon-theme="dark"] .salon-ui .booking-flow button:not(.active):not(.selected):not(.dark):not(.booked):not(.rest) { background: #222426; color: var(--salon-ink); }
html[data-salon-theme="dark"] .salon-ui :is(.booking-flow button.dark, .booking-flow button.active, .booking-flow button.selected, .primary-action.dark, .safe-floating-action) { background: #eee8df; border-color: #eee8df; color: #191919; }
html[data-salon-theme="dark"] .salon-ui .booking-flow .time-slot.booked { background: #303d4b; color: #bdccdf; border-color: #526172; }
html[data-salon-theme="dark"] .salon-ui .booking-flow .time-slot.rest { background: #2c2c2b; color: #96928b; }
html[data-salon-theme="dark"] .salon-ui .d-auth-card input:not([type=checkbox]) { background: #222426; color: var(--salon-ink); }
html[data-salon-theme="dark"] .salon-ui .d-auth-card input:disabled { background: #2c2c2b; }
html[data-salon-theme="dark"] .salon-ui :is(.d-auth-card, .d-book-guide, .brand-story-card) { background: none; }
html[data-salon-theme="dark"] .salon-ui .salon-time-heading details p { background: #222426; }
html[data-salon-theme="dark"] .d-app-shell.salon-ui.d-fullscreen-layer { box-shadow: 0 0 0 100vmax #111213; }
html[data-salon-theme="dark"] .salon-ui .d-booking-item button { color: var(--salon-ink) !important; }
html[data-salon-theme="dark"] .salon-ui .d-remember-row { color: var(--salon-ink); }
html[data-salon-theme="dark"] .d-app-shell.salon-ui .d-auth-card .primary-action { background: #222426; color: var(--salon-ink); border-color: var(--salon-line); }
html[data-salon-theme="dark"] .d-app-shell.salon-ui .d-auth-card .primary-action.dark { background: #eee8df; color: #191919; border-color: #eee8df; }
html[data-salon-theme="dark"] .salon-ui .d-otp-wait { background: #2c3035; border-color: var(--salon-line); color: var(--salon-ink); }
html[data-salon-theme="dark"] .salon-ui .d-otp-wait span { color: var(--salon-ink); }
/* Article reading is mounted outside the phone shell. No admin selectors. */
html[data-salon-theme="dark"] .site-body :is(.news-detail-sheet, .news-detail-content, .news-detail-actions) { background: #222426; color: #f1ede6; }
html[data-salon-theme="dark"] .site-body .news-detail-content :is(h1, h2, h3, p, li) { color: #f1ede6 !important; }
html[data-salon-theme="dark"] .site-body :is(.news-detail-summary, .news-detail-tags span) { background: #30302d; color: #f1ede6; }
