:root {
  --ink: #202124;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --sage: #3f6f5f;
  --rose: #b65c70;
  --gold: #b88434;
  --blue: #426b93;
  --shadow: 0 16px 40px rgba(32, 33, 36, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 800;
}

.account-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-pill.is-live {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.account-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.header-logout {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  color: #fff;
  background: var(--rose);
  border: 1px solid var(--rose);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.topbar h1,
.topbar p,
h2,
p {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.eyebrow {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.is-hidden {
  display: none !important;
}

.project-linked-field {
  display: none;
}

.live-session-bar {
  display: none;
}

.live-return-button {
  display: none;
}

.tab,
.form-actions button,
.card-actions button,
.name-chips button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.tab.is-active,
.form-actions button:first-child,
.card-actions button:first-child {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.tab:disabled,
.form-actions button:disabled,
.booking-client-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tab:not(:disabled):hover,
.form-actions button:not(:disabled):hover,
.card-actions button:not(:disabled):hover,
.name-chips button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.12);
}

.tab:not(:disabled):active,
.form-actions button:not(:disabled):active,
.card-actions button:not(:disabled):active,
.name-chips button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(32, 33, 36, 0.1);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.mobile-app-bar {
  display: none;
}

.mobile-mode-shell {
  display: none;
}

.app-mode-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(260px, 100%);
  padding: 4px;
  border-radius: 999px;
  background: #e9eaee;
  border: 1px solid #d7d9df;
}

.app-mode-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.app-mode-toggle label {
  position: relative;
  z-index: 2;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #5f6368;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  transition: color 160ms ease;
}

.app-mode-slider {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

#modeClient:checked ~ label[for="modeClient"],
#modeStylist:checked ~ label[for="modeStylist"] {
  color: #111827;
}

#modeStylist:checked ~ .app-mode-slider {
  transform: translateX(100%);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 620px);
  gap: 28px;
  align-items: stretch;
  min-height: 300px;
  padding: clamp(28px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.hero-brand-band {
  display: none;
}

.home-scroll-cue {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 850;
}

.hero-actions .secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-image-card {
  overflow: hidden;
  display: grid;
  align-content: end;
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef1f5;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-image-card img {
  object-position: center center;
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 33, 36, 0), rgba(32, 33, 36, 0.42));
}

.hero-image-card div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin: 0 16px 16px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(32, 33, 36, 0.56);
  border-radius: 8px;
}

.hero-image-card strong {
  font-size: 1.25rem;
}

.hero-image-card span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.hero-copy h2 {
  max-width: 760px;
}

.hero-headline-stack {
  display: grid;
  gap: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-word {
  display: block;
  letter-spacing: 0;
}

.hero-word-primary {
  font-size: clamp(2.25rem, 5.8vw, 5.05rem);
}

.hero-word-secondary {
  font-size: clamp(2.05rem, 5.35vw, 4.65rem);
}

.hero-word-tertiary {
  font-size: clamp(1.95rem, 4.95vw, 4.2rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: center;
}

.hero-panel.compact {
  align-content: stretch;
}

.hero-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel strong {
  font-size: 2.3rem;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 700;
}

.view {
  display: none;
  padding-top: 0;
}

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

.role-picker {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.role-picker > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.role-picker label {
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--ink);
  font-weight: 750;
}

.role-picker input {
  width: auto;
  min-height: auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-top: 5px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.section-note {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.5;
}

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

#stylistsView .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

#stylistsView .section-head .toolbar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

#stylistsView .section-head .toolbar input,
#stylistsView .section-head .toolbar select {
  width: 100%;
  max-width: none;
}

.portfolio-profile {
  display: grid;
  grid-template-columns: minmax(132px, 178px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 26px);
  align-items: center;
  margin: 28px 0 18px;
  padding: 24px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.portfolio-avatar {
  width: clamp(118px, 15vw, 161px);
  height: clamp(118px, 15vw, 161px);
  overflow: hidden;
  border-radius: 50%;
  background: #eef1f5;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(32, 33, 36, 0.11);
  position: relative;
  top: clamp(-14px, -1.5vw, 1px);
  justify-self: center;
}

.portfolio-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portfolio-avatar span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  font-size: 1.25rem;
}

.portfolio-avatar.is-clickable {
  cursor: pointer;
}

.portfolio-avatar.is-clickable:hover,
.portfolio-avatar.is-clickable:focus-visible,
.avatar-upload-button:hover .portfolio-avatar,
.avatar-upload-button:focus-visible .portfolio-avatar {
  box-shadow: 0 0 0 3px rgba(63, 111, 95, 0.2), 0 10px 26px rgba(32, 33, 36, 0.14);
}

.portfolio-avatar.is-clickable::after {
  content: "Edit image";
  position: absolute;
  inset: auto 8px 8px;
  display: grid;
  place-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(32, 33, 36, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.portfolio-avatar.is-clickable:hover::after,
.portfolio-avatar.is-clickable:focus-visible::after,
.avatar-upload-button:hover .portfolio-avatar::after,
.avatar-upload-button:focus-visible .portfolio-avatar::after {
  opacity: 1;
}

.dashboard-avatar {
  margin-bottom: 18px;
}

.dashboard-avatar .portfolio-avatar {
  width: 86px;
  height: 86px;
  top: 0;
}

.avatar-upload-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.avatar-upload-button strong,
.avatar-upload-button small {
  display: block;
}

.avatar-upload-button strong {
  margin-bottom: 4px;
  font-size: 1rem;
}

.avatar-upload-button small {
  color: var(--muted);
  line-height: 1.4;
}

.portfolio-profile-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.portfolio-profile-copy h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.portfolio-person-name {
  color: var(--sage) !important;
  font-weight: 850;
}

.portfolio-profile-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.profile-tags span,
.profile-tags a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #3d4450;
  background: #f3f6f4;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.profile-tags a {
  color: var(--sage);
  background: #fff;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.client-directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: -8px 0 16px;
}

.client-directory-tools label {
  min-width: 0;
}

.client-directory-tools input {
  width: 100%;
}

.client-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.client-filter-button.is-filtered {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.client-filter-grid button.is-active {
  border-color: rgba(63, 111, 95, 0.34);
  background: #eef6f2;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
}

body:not(.is-signed-in) .client-member-tabs {
  display: none;
}

body:not(.is-signed-in) .cart-member-note {
  display: none;
}

body:not(.is-signed-in) .shop-member-note {
  display: none;
}

body:not(.is-signed-in) .home-scroll-feed {
  max-width: none;
}

body:not(.is-signed-in) .home-scroll-feed > :not(.hero-band) {
  width: min(760px, 100%);
  justify-self: center;
}

body:not(.is-signed-in) .home-scroll-feed .hero-band {
  width: min(1120px, 100%);
  justify-self: center;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.feature-strip article {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-strip strong {
  font-size: 1rem;
}

.feature-strip span {
  color: var(--muted);
  line-height: 1.4;
}

.home-scroll-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 2px 0 22px;
  margin: 0 auto 20px;
  max-width: 760px;
}

.home-scroll-feed .style-card,
.home-scroll-feed .product-card,
.stream-video-card,
.stream-image-card {
  width: 100%;
}

.home-scroll-feed .card-media {
  position: relative;
  gap: 0;
  background: #202124;
}

.home-scroll-feed .style-card.is-clickable-card .card-media::after {
  content: "Tap to view";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 52, 39, 0.86);
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.18);
  font-size: 0.74rem;
  font-weight: 950;
  pointer-events: none;
}

.home-scroll-feed .image-slot {
  background: #202124;
}

.home-scroll-feed .image-slot img {
  object-fit: cover;
}

.home-feed-product {
  border: 1px solid rgba(184, 132, 52, 0.45);
}

.stream-video-card {
  position: relative;
  display: grid;
  min-height: clamp(360px, 66vw, 520px);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #202124;
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.12);
  cursor: pointer;
}

.stream-image-card {
  position: relative;
  display: grid;
  min-height: clamp(360px, 66vw, 520px);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #202124;
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.12);
  cursor: pointer;
}

.stream-video-card:hover,
.stream-video-card:focus-visible,
.stream-image-card:hover,
.stream-image-card:focus-visible {
  outline: none;
  box-shadow: 0 14px 36px rgba(32, 33, 36, 0.18);
}

.stream-video-card img,
.stream-image-card img,
.stream-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.stream-before-after-card {
  grid-template-rows: 1fr;
}

.stream-before-after-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stream-split-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #dfe5eb;
}

.stream-split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-split-image span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(32, 33, 36, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.stream-video-card::after,
.stream-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 33, 36, 0.06), rgba(32, 33, 36, 0.82));
  pointer-events: none;
}

.stream-video-card::before,
.stream-image-card::before {
  content: none;
}

.stream-video-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 100%;
  padding: 18px;
  pointer-events: none;
}

.stream-video-card.has-embed .stream-video-overlay {
  align-content: start;
  min-height: auto;
  padding: 12px;
}

.stream-video-card.has-embed::after {
  background: linear-gradient(180deg, rgba(32, 33, 36, 0.54), rgba(32, 33, 36, 0.02) 42%, rgba(32, 33, 36, 0.18));
}

.stream-video-card.has-embed .stream-video-overlay strong,
.stream-video-card.has-embed .stream-video-overlay em {
  display: none;
}

.video-fallback-button {
  pointer-events: auto;
  place-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(32, 33, 36, 0.58);
  backdrop-filter: blur(8px);
}

.stream-action-rail {
  position: absolute;
  top: 46%;
  right: 16px;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  gap: 14px;
  justify-items: center;
  pointer-events: auto;
}

.stream-rail-button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-height: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 52, 39, 0.88);
  box-shadow: 0 10px 22px rgba(32, 33, 36, 0.26);
  backdrop-filter: blur(8px);
}

.stream-rail-button i {
  font-size: 1.32rem;
}

.stream-avatar-stack {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  width: 76px;
  height: 76px;
}

.stream-avatar-action {
  width: 66px;
  height: 66px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: visible;
  padding: 3px;
  background: #fff;
}

.stream-avatar-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
}

.stream-avatar-frame img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-avatar-link-action {
  position: absolute;
  right: 0;
  bottom: 2px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.32);
  font-size: 0.95rem;
  font-weight: 950;
}

.stream-avatar-link-action i {
  font-size: 0.96rem;
}

.stream-avatar-link-action.is-requested {
  background: var(--gold);
}

.stream-avatar-link-action.is-linked {
  background: var(--blue);
}

.stream-avatar-link-action.is-self {
  background: var(--sage);
}

.stream-rail-button[data-stream-style-info] {
  color: #fff;
  background: rgba(31, 52, 39, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.stream-rail-button[data-stream-style-bookmark].is-active,
.stream-rail-button[data-stream-style-comment].is-active {
  color: #fff;
  background: rgba(184, 132, 52, 0.95);
}

.stream-rail-button[data-stream-style-info] i,
.stream-rail-button[data-stream-style-info] svg,
.stream-rail-button[data-stream-style-info] .svg-inline--fa {
  width: 1.32rem;
  height: 1.32rem;
  font-size: 1.32rem;
  line-height: 1;
  filter: none;
}

.share-client-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.share-client-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-client-actions button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.share-client-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.12);
}

.share-client-actions button.secondary {
  color: var(--sage);
  background: #fff;
}

.share-client-actions button:disabled {
  color: var(--muted);
  background: #eef1f5;
  border-color: var(--line);
  cursor: default;
  opacity: 0.82;
}

.share-client-actions span {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-link-preview:empty {
  display: none;
}

.video-preview-list {
  display: grid;
  gap: 8px;
}

.video-preview-list article {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.video-preview-list strong {
  color: var(--ink);
}

.video-preview-list span,
.video-preview-list small,
.direct-video-later .form-hint {
  color: var(--muted);
}

.video-preview-list small {
  overflow-wrap: anywhere;
}

.link-helper {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(63, 111, 95, 0.18);
  border-radius: 8px;
  background: #f5f8f6;
}

.link-helper strong {
  color: var(--ink);
}

.link-helper span {
  color: var(--muted);
  line-height: 1.35;
}

.stream-video-overlay .play-badge {
  place-self: start end;
}

.stream-video-overlay small,
.stream-video-overlay em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.stream-video-overlay .stream-stylist-line,
.stream-video-overlay .stream-location-line {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(32, 33, 36, 0.3);
}

.stream-video-overlay .stream-location-line {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.stream-video-overlay strong {
  max-width: 16ch;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 0.96;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.history-summary article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-summary strong {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.history-summary span {
  color: var(--muted);
  font-weight: 800;
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%) calc(100% - 20px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--blue) 50%, transparent 50%) calc(100% - 15px) 50% / 6px 6px no-repeat,
    linear-gradient(#eef3f6, #eef3f6) calc(100% - 34px) 50% / 1px 60% no-repeat,
    #fff;
  cursor: pointer;
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(66, 107, 147, 0.22);
  outline-offset: 2px;
  border-color: rgba(66, 107, 147, 0.72);
}

select:disabled,
input:disabled,
textarea:disabled {
  color: var(--muted);
  background-color: #f4f6f8;
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

.toolbar input {
  width: min(360px, 100%);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.style-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(32, 33, 36, 0.07);
}

.style-card.is-draft-style {
  border-color: rgba(184, 132, 52, 0.42);
  background: #fffaf0;
}

.style-card.is-clickable-card {
  cursor: pointer;
}

.style-card.is-clickable-card:hover,
.style-card.is-clickable-card:focus-visible {
  border-color: rgba(63, 111, 95, 0.48);
  box-shadow: 0 12px 32px rgba(32, 33, 36, 0.12);
  outline: none;
}

.linked-client-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  margin-top: 2px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

button.linked-client-badge {
  cursor: pointer;
}

.linked-client-badge.is-empty {
  border-style: dashed;
  color: var(--sage);
  background: rgba(63, 111, 95, 0.07);
}

.linked-client-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.linked-client-badge.is-empty .linked-client-avatar {
  background: var(--sage);
}

.linked-client-avatar img,
.linked-client-avatar span {
  width: 100%;
  height: 100%;
}

.linked-client-avatar img {
  display: block;
  object-fit: cover;
}

.linked-client-avatar span {
  display: grid;
  place-items: center;
}

.linked-client-badge strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-project-card {
  min-height: 100%;
  border: 2px dashed rgba(63, 111, 95, 0.36);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.add-project-card button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  min-height: 292px;
  padding: 24px;
  color: var(--ink);
  background: transparent;
  text-align: center;
}

.add-project-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.add-project-card strong {
  font-size: 1.1rem;
}

.add-project-card small {
  max-width: 220px;
  color: var(--muted);
  line-height: 1.4;
}

.project-mode-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.project-mode-chooser button {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 188px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}

.project-mode-chooser button:hover,
.project-mode-chooser button:focus-visible {
  border-color: rgba(63, 111, 95, 0.55);
  outline: none;
}

.project-mode-chooser span,
.form-step-heading span {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-mode-chooser strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.project-mode-chooser small {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.form-step-heading {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}

.form-step-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-step-heading strong {
  font-size: 1.08rem;
}

.manual-style-intro {
  padding: 16px;
  border: 1px solid rgba(63, 111, 95, 0.18);
  border-radius: 8px;
  background: #f8fbf8;
}

.manual-style-intro h3 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}

.manual-style-intro span {
  display: block;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.style-client-link-panel,
.booking-client-picker,
.booking-service-picker,
.booking-details-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.manual-style-panel {
  align-items: start;
}

.style-client-link-panel h3,
.style-client-link-panel p,
.booking-client-picker h4,
.booking-client-picker p,
.booking-service-picker h4,
.booking-service-picker p,
.booking-details-picker h4,
.booking-details-picker p {
  margin: 0;
}

.style-client-link-panel h3,
.booking-client-picker h4,
.booking-service-picker h4,
.booking-details-picker h4 {
  font-size: 1.15rem;
}

.style-client-link-panel p:not(.eyebrow),
.booking-client-picker p:not(.eyebrow),
.booking-service-picker p:not(.eyebrow),
.booking-details-picker p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.service-choice-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-choice-toggle button {
  min-height: 42px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}

.service-choice-toggle button.is-active {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.booking-service-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.booking-details-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.booking-service-summary {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid rgba(63, 111, 95, 0.2);
  border-radius: 8px;
  color: #315644;
  background: rgba(63, 111, 95, 0.08);
  font-weight: 850;
}

.booking-day-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.booking-day-preview.has-conflict {
  border-color: rgba(190, 94, 118, 0.5);
  background: rgba(190, 94, 118, 0.08);
}

.booking-day-preview .eyebrow {
  margin: 0;
}

.booking-day-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.booking-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(68, 111, 148, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 0.86rem;
}

.booking-day-chip strong {
  color: var(--blue);
}

.style-client-link-actions,
.booking-client-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-client-link-actions button,
.booking-client-actions button {
  min-height: 40px;
  border-radius: 5px;
  padding-inline: 16px;
  font-weight: 850;
}

.booking-client-mini-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  max-height: 110px;
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease, padding 220ms ease, border-color 220ms ease;
}

.booking-client-mini-card.is-collapsed {
  max-height: 0;
  margin-block: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.booking-client-mini-card.is-empty {
  border-style: dashed;
  background: #fbfcfb;
}

.booking-client-mini-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.booking-client-mini-avatar img,
.booking-client-mini-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.booking-client-mini-avatar img {
  object-fit: cover;
}

.booking-client-mini-card.is-empty .booking-client-mini-avatar {
  background: #c8d0d7;
}

.booking-client-mini-card strong,
.booking-client-mini-card small {
  display: block;
  min-width: 0;
}

.booking-client-mini-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.booking-client-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.booking-client-mini-actions button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 900;
}

.booking-client-search {
  align-self: stretch;
  max-height: 90px;
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease;
}

#clearBookingClientButton,
#importPhoneContactButton,
#styleClientAddButton {
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, min-height 220ms ease, margin 220ms ease, padding 220ms ease;
}

.booking-client-option-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease, padding 220ms ease, border-color 220ms ease;
}

.booking-client-search.is-collapsed,
.booking-client-option-list.is-collapsed,
#clearBookingClientButton.is-collapsed,
#importPhoneContactButton.is-collapsed,
#styleClientAddButton.is-collapsed {
  max-height: 0;
  margin-block: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.booking-client-search.is-collapsed {
  min-height: 0;
}

#clearBookingClientButton.is-collapsed,
#importPhoneContactButton.is-collapsed,
#styleClientAddButton.is-collapsed {
  min-height: 0;
  padding-inline: 0;
  border-color: transparent;
}

.booking-client-option-list.is-collapsed {
  overflow: hidden;
  border-color: transparent;
}

.booking-client-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.booking-client-option .booking-client-mini-avatar {
  width: 44px;
  border-radius: 8px;
}

.booking-client-option strong,
.booking-client-option small {
  display: block;
  min-width: 0;
}

.booking-client-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.booking-client-option.is-selected {
  border-color: rgba(63, 111, 95, 0.45);
  background: rgba(63, 111, 95, 0.08);
}

.booking-client-option-empty {
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.action-workflow {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.action-workflow-main,
.client-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.action-workflow h3 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
}

.action-workflow p,
.client-link-card span {
  color: var(--muted);
  line-height: 1.45;
}

.action-timer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.action-timer strong {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.action-timer span {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.action-timer-controls {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.action-timer-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  border: 1px solid var(--sage);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.action-timer-controls .secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.action-timer-controls .fa-play {
  transform: translateX(1px);
}

.action-timer-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.action-client-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(63, 111, 95, 0.18);
  border-radius: 8px;
  background: #f7faf8;
}

.action-client-card.is-empty {
  border-style: dashed;
  background: #fbfcfb;
}

.action-client-avatar {
  display: grid;
  place-items: stretch;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #edf2ef;
}

.action-client-avatar img,
.action-client-avatar span {
  width: 100%;
  height: 100%;
}

.action-client-avatar img {
  display: block;
  object-fit: cover;
}

.action-client-avatar span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.action-client-card strong,
.action-client-card span {
  display: block;
}

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

.action-client-notices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-client-notices span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #6f4d11;
  background: #fff4cf;
  font-size: 0.74rem;
  font-weight: 900;
}

.client-link-card {
  padding: 12px;
  border: 1px dashed rgba(66, 107, 147, 0.48);
  border-radius: 8px;
  background: #f7fafc;
}

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

.client-link-card span {
  word-break: break-word;
}

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

.action-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.action-steps button {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  background: #f3f6f4;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 850;
}

.action-steps button span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.action-steps button.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.action-steps button.is-active span {
  color: rgba(255, 255, 255, 0.82);
}

.action-step-focus {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(63, 111, 95, 0.28);
  border-radius: 8px;
  background: #f7faf8;
}

.action-step-focus span {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.action-step-focus strong {
  font-size: 1.05rem;
}

.action-step-focus small {
  color: var(--muted);
  line-height: 1.4;
}

.action-step-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.action-step-buttons button {
  min-height: 38px;
  padding: 0 14px;
}

.action-step-buttons button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-step-buttons .secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.action-workflow .action-steps,
.action-workflow .action-step-focus {
  display: none;
}

.live-stage-guide {
  display: grid;
  gap: 10px;
}

.live-stage-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.live-stage-tabs button {
  min-height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-stage-tabs button.is-active {
  color: #fff;
  background: var(--sage);
  box-shadow: 0 8px 18px rgba(63, 111, 95, 0.22);
}

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

.stage-task-list {
  display: grid;
  gap: 7px;
}

.stage-task-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #375242;
  background: #eef7f3;
  font-size: 0.86rem;
  font-weight: 850;
}

.stage-task-list input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--sage);
}

.stage-next-row {
  display: flex;
  justify-content: flex-end;
}

.stage-next-row button,
.product-picker-row button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.86rem;
  font-weight: 950;
}

.product-reminder {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(184, 132, 52, 0.42);
  border-radius: 8px;
  background: #fff9ea;
}

.product-reminder strong {
  color: #6f4d11;
}

.product-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-selected-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.live-selected-products button,
.live-selected-products span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #315644;
  background: rgba(63, 111, 95, 0.12);
  font-size: 0.8rem;
  font-weight: 900;
}

.live-selected-products span {
  color: var(--muted);
  background: rgba(100, 112, 138, 0.08);
}

.live-session-media {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(216, 222, 232, 0.78);
  border-radius: 8px;
  background: #fbfcfb;
}

.live-session-media > strong {
  font-size: 0.92rem;
}

.live-media-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.live-media-row .empty-state {
  grid-column: 1 / -1;
  min-height: 86px;
  padding: 18px;
}

.live-media-tile {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2ef;
  animation: liveMediaPop 180ms ease both;
}

.live-media-tile.is-removed::after {
  content: "hidden";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(32, 33, 36, 0.38);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.live-media-tile img,
.live-media-tile video,
.live-media-video-placeholder {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.live-media-video-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sage));
  font-size: 1.3rem;
  font-weight: 950;
}

.live-media-tile.is-removed img,
.live-media-tile.is-removed video,
.live-media-tile.is-removed .live-media-video-placeholder {
  filter: grayscale(1);
  opacity: 0.28;
}

.live-media-tile span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(32, 33, 36, 0.78);
  font-size: 0.7rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

.live-media-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: #fff;
  background: rgba(32, 33, 36, 0.72);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(32, 33, 36, 0.18);
}

.live-media-tile.is-removed .live-media-remove {
  background: var(--sage);
}

@keyframes liveMediaPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.stage-task-list label.is-active-task {
  outline: 2px solid rgba(68, 111, 148, 0.36);
  background: #eaf3fb;
}

.save-auto-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.post-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(216, 222, 232, 0.8);
  border-radius: 12px;
  background: #f8faf8;
}

.post-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--sage);
  border: 1px solid var(--sage);
  font-size: 0.95rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(63, 111, 95, 0.16);
}

.post-actions button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.manual-save-actions button.secondary,
.manual-save-actions button.secondary:first-child {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.manual-save-actions button.secondary:not(:disabled):hover {
  background: #f7faf8;
}

.manual-save-actions button:not(.secondary) {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
  box-shadow: 0 10px 20px rgba(63, 111, 95, 0.16);
}

.post-actions i {
  font-size: 1rem;
}

.billing-next-panel {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px dashed rgba(68, 111, 148, 0.34);
  border-radius: 8px;
  color: #365571;
  background: #eef5fb;
}

.billing-next-panel h3,
.billing-next-panel p {
  margin: 0;
}

.live-product-picker-sheet,
.live-billing-sheet {
  gap: 14px;
}

.live-camera-sheet {
  gap: 14px;
}

.live-camera-frame {
  position: relative;
  width: 100%;
  height: min(44vh, 360px);
  min-height: 250px;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f4f2;
}

.live-camera-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #111;
}

.live-camera-frame canvas[hidden] {
  display: none !important;
}

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

.live-camera-actions button {
  min-height: 46px;
}

.live-camera-actions #captureLivePhotoButton,
.live-camera-actions #stopLiveVideoButton {
  color: #fff;
  background: var(--sage);
}

.live-camera-actions #startLiveVideoButton.is-recording,
.live-camera-actions #stopLiveVideoButton {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.live-media-preview-sheet {
  gap: 14px;
}

.live-media-preview-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101113;
}

.live-media-preview-frame img,
.live-media-preview-frame video,
.live-media-large-placeholder {
  display: block;
  width: 100%;
  max-height: min(58vh, 560px);
  object-fit: contain;
  background: #101113;
}

.live-media-preview-frame img {
  min-height: 260px;
}

.live-media-preview-frame video {
  min-height: 260px;
}

.live-media-large-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 950;
}

.live-media-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.live-media-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #315644;
  background: rgba(63, 111, 95, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.live-media-preview-nav,
.live-media-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.live-media-preview-actions {
  grid-template-columns: 1fr 1fr 0.8fr;
}

.live-media-preview-nav button,
.live-media-preview-actions button {
  min-height: 44px;
  border-radius: 9px;
  font-weight: 950;
}

.live-media-preview-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.live-media-preview-actions button {
  color: #fff;
  background: var(--sage);
}

.live-media-preview-actions button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.live-product-picker-sheet input[type="search"] {
  min-height: 42px;
  padding-inline: 12px;
}

.live-product-results {
  display: grid;
  gap: 8px;
}

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

.live-product-option strong,
.live-product-option span,
.live-billing-summary strong,
.live-billing-summary span {
  display: block;
}

.live-product-option span,
.live-billing-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.live-product-option button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 900;
}

.live-billing-summary {
  padding: 10px;
  border: 1px solid rgba(63, 111, 95, 0.18);
  border-radius: 8px;
  background: #f7faf8;
}

.live-billing-form {
  box-shadow: none;
}

.billing-copy-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(63, 111, 95, 0.22);
  border-radius: 8px;
  background: #f7faf8;
}

.billing-copy-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: pre-line;
}

.style-billing-row {
  align-items: center;
}

.style-billing-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.style-billing-row-actions button {
  min-height: 38px;
  border-radius: 8px;
}

.style-billing-status {
  text-transform: none;
}

.style-billing-status.is-unpaid,
.style-billing-status.is-deposit_paid,
.style-billing-status.is-partial {
  color: #1f3427;
  background: #f5df9c;
}

.style-billing-status.is-paid {
  color: #fff;
  background: var(--sage);
}

.style-billing-status.is-waived {
  color: var(--ink);
  background: #e7ecf1;
}

.billing-detail-card {
  display: grid;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 14px;
  border: 1px solid rgba(63, 111, 95, 0.24);
  border-radius: 8px;
  background: #f7faf8;
}

.billing-detail-card h4,
.billing-detail-card p {
  margin: 0;
}

.billing-detail-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.billing-detail-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-detail-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-detail-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.billing-detail-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
}

.client-history-billing-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(63, 111, 95, 0.24);
  border-radius: 8px;
  background: #f7faf8;
}

.client-history-billing-card h3,
.client-history-billing-card p {
  margin: 0;
}

.client-history-billing-card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin: 0;
}

.client-history-billing-card dl div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-history-billing-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-history-billing-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 950;
}

.client-history-billing-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
}

.billing-pay-copy-button {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
  box-shadow: 0 8px 18px rgba(63, 111, 95, 0.2);
}

.billing-pay-copy-button:hover,
.billing-pay-copy-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(63, 111, 95, 0.26);
}

.work-form.is-action-guided {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.action-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-controls button,
.client-link-card button,
.qr-scanner button:not(.client-avatar-button):not(.book-choice-grid button) {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 850;
}

.action-controls .secondary,
.client-link-card .secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.action-workflow.is-running {
  border-color: rgba(63, 111, 95, 0.44);
  box-shadow: 0 16px 40px rgba(63, 111, 95, 0.14);
}

.qr-scanner {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 5vw, 36px);
  background: var(--paper);
}

.qr-scanner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.qr-scanner video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #202124;
}

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

.client-avatar-picker {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
}

.client-avatar-button {
  display: grid;
  place-items: center;
  position: relative;
  width: 124px;
  aspect-ratio: 1;
  min-height: 124px;
  overflow: visible;
  border: 2px solid #d7dce2;
  border-radius: 50%;
  color: var(--sage);
  background: #fff;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(32, 33, 36, 0.08);
}

.client-avatar-button span,
.client-avatar-button img {
  width: 100%;
  height: 100%;
}

.client-avatar-button span {
  display: block;
  overflow: hidden;
  border-radius: 50%;
}

.client-avatar-button img {
  display: block;
  object-fit: cover;
}

.client-avatar-picker > span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.phone-contact-shortcut {
  width: 100%;
  min-height: 44px;
}

.client-avatar-button span.is-default img,
#clientQrManualAvatarPreview.is-default img {
  filter: grayscale(0.5);
  opacity: 0.5;
}

.client-avatar-button span.is-default::after,
#clientQrManualAvatarPreview.is-default::after {
  content: "+";
  position: absolute;
  right: -2px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(32, 33, 36, 0.16);
}

.client-detail-edit-sheet .client-avatar-button span.is-default::after {
  right: -10px;
  bottom: 14px;
}

.image-crop-sheet {
  gap: 16px;
}

.existing-photo-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.existing-photo-preview img {
  width: 96px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
}

.existing-photo-preview div {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.existing-photo-preview strong {
  color: var(--ink);
}

.existing-photo-preview button {
  min-height: 34px;
  padding: 0 12px;
}

.crop-stage {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

#imageCropCanvas {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#imageCropCanvas:active {
  cursor: grabbing;
}

#imageCropDialog.is-style-crop #imageCropCanvas {
  width: min(100%, 320px);
  max-height: min(62dvh, 568px);
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 28px rgba(32, 33, 36, 0.12);
}

#imageCropDialog.is-style-crop .crop-stage {
  background:
    linear-gradient(90deg, rgba(31, 52, 39, 0.08) 0 1px, transparent 1px) center / 33.333% 100%,
    linear-gradient(180deg, rgba(31, 52, 39, 0.08) 0 1px, transparent 1px) center / 100% 33.333%,
    #f8fafc;
}

.qr-fallback-toggle {
  justify-self: start;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.qr-manual-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(68, 111, 148, 0.34);
  border-radius: 8px;
  background: #f8fafc;
}

.manual-qr-choice {
  display: none;
  margin-top: 2px;
}

#clientQrDialog.is-manual-entry .manual-qr-choice {
  display: grid;
}

.qr-scanner .manual-qr-choice button {
  min-height: 82px;
  padding: 14px 46px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.qr-scanner .manual-qr-choice button span {
  color: var(--muted);
}

.qr-confirm {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(63, 111, 95, 0.38);
  border-radius: 8px;
  background: #f3f8f5;
}

.qr-confirm strong {
  font-size: 1.12rem;
}

.qr-next-prompt {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.qr-appointment-handoff {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(63, 111, 95, 0.24);
  border-radius: 8px;
  background: #fff;
}

.qr-handoff-head,
.qr-handoff-list article {
  display: grid;
  gap: 3px;
}

.qr-handoff-head span,
.qr-handoff-list strong {
  color: var(--ink);
  font-weight: 950;
}

.qr-handoff-list {
  display: grid;
  gap: 8px;
}

.qr-handoff-list article,
.qr-appointment-button {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  text-align: left;
}

.qr-appointment-button {
  width: 100%;
  min-height: 0;
  color: var(--ink);
}

.qr-handoff-list article.is-today {
  gap: 8px;
  border-color: rgba(63, 111, 95, 0.42);
  background: #f3f8f5;
}

.qr-handoff-list article.is-today button {
  justify-self: start;
  color: #fff;
  background: var(--sage);
}

.qr-handoff-list article span,
.qr-appointment-button span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.qr-confirm span,
.client-qr-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  word-break: break-word;
}

.client-profile-qr {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 5vw, 36px);
  background: var(--paper);
}

.stylist-qr-hub {
  min-width: min(460px, calc(100vw - 28px));
}

.qr-hub-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f7f4;
}

.qr-hub-toggle button {
  min-height: 42px;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 950;
}

.qr-hub-toggle button.is-active {
  color: #fff;
  background: var(--sage);
}

.stylist-invite-preview,
.stylist-scan-preview {
  display: grid;
  gap: 10px;
  min-height: 354px;
}

.stylist-invite-preview.is-hidden,
.stylist-scan-preview.is-hidden {
  display: block;
  visibility: hidden;
}

.scan-preview-button {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(68, 111, 148, 0.32);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(68, 111, 148, 0.08), rgba(63, 111, 95, 0.1)),
    #fff;
  text-align: center;
}

.scan-preview-button strong {
  font-size: 1.28rem;
}

.scan-preview-button span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.qr-hub-panel {
  display: grid;
  gap: 12px;
}

.stylist-invite-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(63, 111, 95, 0.28);
  border-radius: 8px;
  background: #f7faf8;
  text-align: center;
}

.stylist-invite-qr-card img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.stylist-invite-qr-card span {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.client-profile-qr h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.client-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.client-qr-card img {
  width: min(260px, 78vw);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-qr-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  word-break: break-word;
}

.card-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 250px;
  background: #e9edf2;
}

.card-media.is-single {
  grid-template-columns: 1fr;
}

.image-slot {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-media.is-single .image-slot img {
  object-fit: cover;
}

.share-page .card-media {
  height: auto;
  min-height: 260px;
  gap: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff !important;
}

.share-page .image-slot {
  min-height: 260px;
  overflow: hidden;
  background: #eef1f5;
}

.share-page .card-media:not(.is-single) .image-slot:first-child {
  border-radius: 5px 0 0 5px !important;
}

.share-page .card-media:not(.is-single) .image-slot:nth-child(2) {
  border-radius: 0 5px 5px 0 !important;
}

.share-page .card-media.is-single .image-slot {
  border-radius: 5px !important;
}

.share-page .image-slot img {
  object-fit: contain;
  border-radius: inherit;
}

.share-page .card-media.is-single .image-slot img {
  object-fit: cover;
}

.share-media-footer {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
  background: transparent;
}

.share-media-footer .share-client-actions {
  margin: 0;
}

.share-media-footer .share-client-actions > div {
  display: grid;
  grid-template-columns: 1fr;
}

.share-media-footer .share-client-actions button {
  width: 100%;
}

.share-media-meta-row {
  display: grid;
  gap: 6px;
  padding: 0 4px 2px;
}

.share-media-footer .pill {
  justify-self: start;
  margin-top: 0;
}

.share-media-footer .meta {
  margin: 0;
}

.image-slot span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(32, 33, 36, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
}

.placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(63, 111, 95, 0.16), rgba(182, 92, 112, 0.13)),
    #f2f4f1;
  text-align: center;
  font-weight: 800;
}

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

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

.card-title-row h3 {
  margin: 0;
  font-size: 1.08rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  align-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.client-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #36556e;
  background: #edf5fb;
  border: 1px solid rgba(65, 111, 148, 0.18);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.client-status-pill.is-upcoming {
  color: #315644;
  background: rgba(63, 111, 95, 0.12);
  border-color: rgba(63, 111, 95, 0.24);
}

.client-status-pill.is-alert {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.client-status-pill.is-pending {
  color: #6f4d11;
  background: #fff4cf;
  border-color: rgba(184, 132, 52, 0.28);
}

.client-status-pill.is-quiet {
  color: var(--muted);
  background: #f4f6f5;
  border-color: var(--line);
}

.client-review-warning {
  color: var(--rose);
  font-weight: 900;
}

.notes {
  color: #3d4450;
  line-height: 1.45;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #3d4450;
  background: #f3f6f4;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.summary-chip.is-rating {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.social-list a {
  color: var(--sage);
  font-weight: 800;
  text-decoration: none;
}

.video-strip-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.video-strip-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.video-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
  justify-content: start;
  gap: 10px;
}

.video-strip.is-single {
  grid-template-columns: minmax(180px, 260px);
  justify-content: center;
}

.video-strip.is-single.is-tiktok {
  grid-template-columns: minmax(240px, 325px);
}

.video-thumb {
  position: relative;
  display: grid;
  width: min(100%, 220px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #111;
  text-decoration: none;
}

.video-strip.is-single .video-thumb {
  width: 100%;
}

.video-thumb.has-player.is-tiktok {
  width: min(100%, 325px);
  height: clamp(640px, 78vh, 780px);
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 0 0 1px #fff inset;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
  overflow: hidden;
}

.video-thumb.has-player.is-tiktok iframe {
  inset: 0 -1px 0 0;
  width: calc(100% + 2px);
  max-width: none;
}

.video-thumb.has-player::after,
.video-thumb.has-player strong,
.video-thumb.has-player small {
  display: none;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 33, 36, 0.08), rgba(32, 33, 36, 0.84));
}

.video-thumb strong,
.video-thumb small,
.play-badge {
  position: relative;
  z-index: 1;
}

.video-thumb strong {
  align-self: end;
  margin: auto 10px 2px;
  font-size: 0.92rem;
}

.video-thumb small {
  margin: 0 10px 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.play-badge {
  place-self: start end;
  margin: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-inbox-button {
  position: relative;
}

.button-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.stylist-link-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--sage);
  background: #eef7f3;
  font-weight: 800;
  font-size: 0.84rem;
}

.stylist-link-note.is-requested {
  color: var(--blue);
  background: #edf4fb;
}

.stylist-link-badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stylist-link-badge.is-requested {
  background: var(--blue);
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  border: 1px solid var(--sage);
  font-weight: 750;
  text-decoration: none;
}

.button-link.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

#bookingsView.is-adding-appointment .booking-status-summary,
#bookingsView.is-adding-appointment .booking-empty-notice {
  display: none;
}

#bookingsView.is-adding-appointment .shop-layout {
  grid-template-columns: minmax(0, 780px);
}

.booking-form-panel {
  width: 100%;
}

.product-grid,
.mini-product-grid,
.terms-grid,
.picker-grid {
  display: grid;
  gap: 12px;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

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

.product-card,
.term-card,
.picker-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(32, 33, 36, 0.07);
}

.product-card.is-compact {
  box-shadow: none;
}

.product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f7f4;
}

.product-card.is-compact .product-image {
  aspect-ratio: 1 / 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px dashed rgba(63, 111, 95, 0.34);
  border-radius: 8px;
  background: #f5f7f4;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.form-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.label-title {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.fa-solid {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  font-style: normal;
  line-height: 1;
}

.label-title .fa-solid,
.product-form-section-head .fa-solid {
  width: 18px;
  color: var(--sage);
  font-size: 0.92rem;
}

.fa-box-open::before { content: "□"; }
.fa-layer-group::before { content: "▦"; }
.fa-tags::before { content: "#"; }
.fa-align-left::before { content: "≡"; }
.fa-coins::before { content: "$"; }
.fa-store::before { content: "⌂"; }
.fa-receipt::before { content: "▤"; }
.fa-tag::before { content: "◇"; }
.fa-percent::before { content: "%"; }
.fa-hand-holding-dollar::before { content: "$"; }
.fa-boxes-stacked::before { content: "▣"; }
.fa-image::before { content: "▧"; }
.fa-shop::before { content: "⌂"; }
.fa-arrow-left::before { content: "←"; }

.product-form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.product-form-section.is-compact-section {
  grid-template-columns: minmax(0, 1fr);
}

.product-image-section {
  grid-template-columns: minmax(0, 0.86fr) minmax(140px, 0.42fr);
  align-items: stretch;
}

.product-form-section-head {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.cart-line-item {
  align-items: center;
}

.cart-variant-picker {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-variant-picker select {
  width: min(320px, 100%);
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
  text-transform: none;
}

.variant-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.variant-chip-list span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-variant-list {
  margin-top: 6px;
}

.stock-warning {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #7a4b11;
  background: rgba(184, 132, 52, 0.14);
  font-weight: 900;
}

.product-form-section-head h4 {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  font-size: 0.98rem;
}

.product-upload-control {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 142px;
  padding: 14px;
  border: 1px dashed rgba(63, 111, 95, 0.36);
  border-radius: 8px;
  background: #fff;
}

.product-upload-control input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.product-upload-control > span {
  color: var(--ink);
  font-weight: 900;
}

.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--sage);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 950;
  cursor: help;
}

.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: min(260px, 72vw);
  padding: 9px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.profit-preview {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 111, 95, 0.28);
  border-radius: 8px;
  background: #f5faf7;
}

.profit-preview span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profit-preview strong {
  color: var(--sage);
  font-size: 1.2rem;
}

.profit-preview small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-discount-line {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: line-through;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.recommended-products {
  display: grid;
  gap: 9px;
}

.recommended-products h4 {
  margin: 0;
  font-size: 0.94rem;
}

.terms-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.term-card {
  padding: 16px;
}

.term-card h3 {
  margin: 0 0 8px;
}

.term-card p {
  color: var(--muted);
  line-height: 1.5;
}

.product-picker {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-picker legend {
  padding: 0 6px;
  font-weight: 800;
}

.picker-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.picker-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.picker-item input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.picker-item strong,
.picker-item small {
  display: block;
}

.picker-item small {
  color: var(--muted);
  margin-top: 3px;
}

.dictionary-layout {
  display: grid;
  gap: 24px;
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-view-as-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(65, 94, 126, 0.3);
  border-radius: 8px;
  color: var(--ink);
  background: #eef5ff;
  box-shadow: 0 8px 22px rgba(65, 94, 126, 0.12);
}

.admin-view-as-banner div {
  display: grid;
  gap: 2px;
}

.admin-view-as-banner strong {
  font-weight: 900;
}

.admin-view-as-banner span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-view-as-banner button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.admin-stat {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(32, 33, 36, 0.06);
  color: inherit;
  text-align: left;
}

.admin-stat.is-clickable {
  cursor: pointer;
}

.admin-stat.is-clickable:hover {
  border-color: rgba(63, 111, 95, 0.42);
  box-shadow: 0 12px 32px rgba(63, 111, 95, 0.12);
}

.admin-stat strong {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.admin-stat span {
  color: var(--muted);
  font-weight: 800;
}

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

.admin-product-manager {
  scroll-margin-top: 24px;
}

.admin-product-manager.is-highlighted {
  border-color: rgba(63, 111, 95, 0.52);
  box-shadow: 0 12px 34px rgba(63, 111, 95, 0.14);
}

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

.panel-title-row h3 {
  margin: 0;
}

.admin-product-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 10px;
  margin-bottom: 12px;
}

.admin-product-tools input,
.admin-product-tools select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background-color: #fff;
  font: inherit;
  font-weight: 800;
  appearance: none;
}

.admin-product-tools select {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-product-thumb {
  display: grid;
  place-items: center;
  width: 100px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f4;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-product-row.is-hidden-product {
  opacity: 0.74;
  background: #f7f7f5;
}

.admin-product-row em {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-product-row.is-hidden-product em {
  background: var(--muted);
}

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

.admin-product-actions button,
.admin-product-actions .button-link {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.button-link.secondary {
  color: var(--ink);
  background: #edf2f0;
}

.admin-grid .wide {
  grid-column: 1 / -1;
}

.admin-user-roles-panel .admin-member-row {
  grid-template-columns: 64px minmax(260px, 1fr) minmax(420px, auto);
}

.admin-user-roles-panel .admin-member-actions {
  align-content: center;
}

.monitor-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.monitor-panel h3 {
  margin: 0 0 14px;
}

.activity-feed,
.leaderboard,
.comment-list {
  display: grid;
  gap: 10px;
}

.activity-item,
.leaderboard-item,
.comment-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.comment-item.is-stylist-reply {
  background: #f3f8f5;
  border-color: rgba(63, 111, 95, 0.28);
}

.comment-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #eef1f5;
  border: 1px solid var(--line);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-avatar span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff !important;
  background: var(--blue);
  font-weight: 900;
  font-size: 0.8rem;
}

.comment-item .comment-avatar span {
  color: #fff !important;
}

.comment-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-item strong,
.comment-item strong {
  display: block;
}

.activity-item span,
.leaderboard-item span,
.comment-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.stylist-home {
  display: grid;
  gap: 16px;
}

.stylist-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.top-menu-section {
  margin-bottom: 14px;
}

.stylist-mode-tabs button {
  position: relative;
  min-height: 34px;
  padding: 0;
  color: var(--rose);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stylist-mode-tabs button.is-active {
  color: var(--ink);
}

.top-menu-section.stylist-mode-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.top-menu-section.stylist-mode-tabs button.has-badge {
  padding-right: 30px;
}

.top-menu-section.stylist-mode-tabs button.has-badge::before {
  content: attr(data-badge-count);
  position: absolute;
  top: -2px;
  right: 4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.leaderboard-item.checklist-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.leaderboard-item.checklist-row span {
  grid-column: 1;
}

.leaderboard-item.checklist-row em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--slate);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.leaderboard-item.checklist-row.is-ok em {
  background: var(--sage);
}

.leaderboard-item.checklist-row.is-warn em {
  background: var(--rose);
}

.stylist-home-profile {
  margin-top: 0;
}

.stylist-home-tools,
.client-notice-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stylist-home-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.stylist-client-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.stylist-client-filters button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.stylist-client-filters button.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.client-preview-card .card-media {
  grid-template-columns: 1fr;
  height: 320px;
}

.client-preview-card .image-slot img {
  object-fit: cover;
}

.stylist-home-tools input,
.client-notice-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.stylist-home-tools button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 850;
}

.client-notice-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 850;
}

.notice-cost-box {
  padding: 10px 12px;
  border: 1px solid rgba(184, 132, 52, 0.34);
  border-radius: 8px;
  color: #5b4623;
  background: rgba(184, 132, 52, 0.1);
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 800;
}

.client-bulk-panel {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-bulk-panel.has-selection {
  display: flex;
}

.client-bulk-panel strong {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.client-bulk-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.client-bulk-buttons button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
}

.client-bulk-buttons button.danger {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.client-bulk-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.client-link-requests {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(65, 111, 148, 0.28);
  border-radius: 8px;
  background: #f3f8fd;
}

.client-link-requests.is-pulsing {
  animation: linkRequestPulse 1s ease-in-out 5;
}

@keyframes linkRequestPulse {
  0%,
  100% {
    border-color: rgba(65, 111, 148, 0.28);
    background: #f3f8fd;
    box-shadow: none;
    transform: scale(1);
  }
  45% {
    border-color: var(--rose);
    background: #fff4f7;
    box-shadow:
      0 0 0 4px rgba(190, 86, 109, 0.18),
      0 14px 32px rgba(190, 86, 109, 0.18);
    transform: scale(1.01);
  }
}

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

.client-link-request-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(65, 111, 148, 0.22);
  border-radius: 8px;
  background: #fff;
}

.client-link-request-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.client-link-request-main .directory-avatar {
  width: 54px;
  height: 54px;
  aspect-ratio: 1 / 1;
}

.client-link-request-card strong,
.client-link-request-card span {
  display: block;
}

.client-link-request-card span,
.client-link-request-card p {
  color: var(--muted);
  line-height: 1.35;
}

.notice-card {
  display: grid;
  gap: 8px;
  min-height: 220px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(184, 132, 52, 0.36);
  border-radius: 8px;
  background: #fff8ea;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.07);
}

.notice-card h3 {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
}

.notice-card p {
  color: var(--ink);
  line-height: 1.5;
}

.notice-card small {
  color: var(--muted);
  font-weight: 800;
}

.client-detail-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(63, 111, 95, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

dialog.client-detail-panel {
  position: relative;
  width: min(760px, calc(100% - 28px));
  margin: auto;
  padding: 18px;
  align-content: start;
}

dialog.client-detail-panel:not([open]) {
  display: none;
}

dialog.client-detail-panel[open] {
  display: grid;
  grid-auto-rows: max-content;
}

.client-detail-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.client-detail-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 46px;
}

.client-detail-head h3 {
  margin: 2px 0 4px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.client-detail-avatar-button {
  display: grid;
  place-items: stretch;
  width: 72px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: #f2f4f2;
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.08);
  cursor: pointer;
}

.client-detail-avatar-button span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.client-detail-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-detail-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-detail-summary article.is-clickable {
  cursor: pointer;
  background: #fff8ea;
  border-color: rgba(184, 132, 52, 0.34);
}

.client-detail-summary article.is-clickable span::after {
  content: " tap to unlock";
  color: #b85c74;
}

.client-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-detail-actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 850;
}

.client-detail-actions .secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.client-detail-actions .whatsapp-action {
  color: #1f6f4d;
  background: #eef8f3;
  border: 1px solid rgba(31, 143, 95, 0.32);
}

.card-actions .whatsapp-action {
  color: #fff;
  background: #1f8f5f;
  border-color: #1f8f5f;
}

.client-detail-edit-sheet {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 40px;
}

.client-detail-edit-sheet h3 {
  margin: -6px 0 2px;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.client-detail-edit-sheet .client-private-form {
  padding: 16px;
  border: 1px dashed rgba(77, 119, 161, 0.32);
  background: #fbfdff;
}

.client-detail-edit-sheet .client-avatar-picker {
  margin: -2px 0 14px;
}

.client-detail-edit-sheet .client-private-form .client-avatar-button {
  display: grid;
  place-items: center;
  width: 124px;
  min-height: 124px;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: visible;
  border: 2px solid #d7dce2;
  border-radius: 50%;
  color: var(--sage);
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 33, 36, 0.08);
}

.client-detail-edit-sheet .client-private-form .client-avatar-button span {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 50%;
}

.client-detail-edit-sheet .client-private-form .client-avatar-button img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.client-private-preview,
.client-private-form,
.client-contact-prompt {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.client-contact-prompt {
  border-color: rgba(184, 132, 52, 0.34);
  background: rgba(184, 132, 52, 0.1);
  color: #5b4623;
}

.client-contact-prompt span {
  line-height: 1.35;
}

.client-private-preview p {
  color: var(--muted);
  line-height: 1.45;
}

.private-note-lock {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed rgba(59, 80, 69, 0.28);
  border-radius: 8px;
  background: #fff;
}

.private-note-lock span {
  color: var(--muted);
  font-size: 0.88rem;
}

.client-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #315644;
  background: rgba(63, 111, 95, 0.11);
  font-size: 0.76rem;
  font-weight: 900;
}

.client-flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-flag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 0.76rem;
  font-weight: 900;
}

.client-private-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 850;
}

.client-private-details {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-private-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.client-private-details summary::-webkit-details-marker {
  display: none;
}

.client-private-details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.client-private-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.client-private-details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.client-private-details summary span,
.client-private-details summary small {
  display: block;
}

.client-private-details summary small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-align: right;
}

.client-private-details-body {
  display: grid;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.client-private-details[open] .client-private-details-body {
  animation: privateDetailsOpen 220ms ease both;
}

@keyframes privateDetailsOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
    clip-path: inset(0 0 100% 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

.client-flag-picker {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-flag-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 850;
}

.client-flag-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
}

.client-flag-picker input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.client-private-form input,
.client-private-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.client-private-form button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 850;
}

.client-detail-section {
  display: grid;
  gap: 10px;
}

.client-detail-section h4 {
  margin: 0;
  font-size: 1rem;
}

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

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

.client-history-thumb {
  display: grid;
  place-items: center;
  width: 70px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eef3ef;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.client-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-history-item p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.client-history-item button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
}

.directory-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.07);
}

.client-select {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.client-select input {
  width: auto;
  min-height: auto;
}

.directory-avatar {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f5;
}

.directory-avatar img,
.directory-avatar span {
  width: 100%;
  height: 100%;
}

.directory-avatar img {
  display: block;
  object-fit: cover;
}

.directory-avatar span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.client-directory-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.client-card-hero {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px;
  color: #fff;
  background: var(--sage);
}

.client-card-hero .client-select {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: auto;
  min-width: 0;
  color: transparent;
}

.client-card-hero .client-select span {
  display: none;
}

.client-card-hero .client-select input {
  width: 16px;
  min-height: 16px;
  border-radius: 4px;
  accent-color: var(--sage);
}

.client-card-hero .directory-avatar {
  width: 90px;
  height: 108px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: #eef1f5;
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.14);
}

.client-card-hero .directory-avatar span {
  color: #fff;
  background: var(--blue);
}

.client-card-title {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-right: 30px;
}

.client-card-title h3 {
  margin: 0;
  color: #fff;
  line-height: 1.05;
}

.client-card-title .meta {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.client-card-title .meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-card-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.client-card-counts .pill {
  min-height: 26px;
  color: var(--blue);
  background: #eef4f8;
}

.client-card-status {
  display: grid;
  gap: 8px;
  padding: 14px 14px 5px;
  color: #fff;
  background: #d4e3f2;
}

.client-card-status .client-status-pills {
  margin: 0;
}

.client-card-status .client-status-pill {
  border-color: rgba(255, 255, 255, 0.38);
}

.client-card-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 850;
}

.client-card-context:empty {
  display: none;
}

.client-directory-card > .directory-body {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.client-directory-card .card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-directory-card .card-actions button {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
}

.client-directory-card .card-actions button.secondary {
  color: var(--ink);
  background: #f2f2f2;
  border-color: #e0e3e6;
}

.client-directory-card .card-actions .client-message-button {
  grid-column: 2;
}

.client-directory-card .card-actions .client-inbox-button {
  grid-column: 3;
}

.client-directory-card .card-actions .client-invite-button {
  grid-column: 1;
}

.client-account-sync {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(194, 144, 47, 0.32);
  border-radius: 8px;
  background: #fffaf0;
}

.client-account-sync-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-account-sync-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.client-account-sync-head small,
.client-account-sync-details {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.client-account-sync-details {
  display: grid;
  gap: 6px;
}

.client-account-sync-details label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.client-account-sync-details input {
  width: 18px;
  min-height: 18px;
}

.client-account-sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-account-sync-actions button {
  min-height: 36px;
  border-radius: 8px;
}

.client-account-sync-actions button:disabled {
  color: #7a8495;
  background: #e5e7eb;
  border-color: #d5dae3;
  box-shadow: none;
  cursor: not-allowed;
}

.directory-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.more-stylists-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.more-stylists-section h3 {
  margin: 0;
  font-size: 0.95rem;
}

.stylist-public-page {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.07);
}

.stylist-public-page.is-hidden {
  display: none;
}

.stylist-public-hero {
  margin: 0;
  padding-top: 0;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.rating-line span {
  color: #c2902f;
  letter-spacing: 0;
}

.rating-line strong {
  color: var(--ink);
}

.rating-line em {
  font-style: normal;
}

.rating-line.is-large {
  margin: 6px 0;
  font-size: 1rem;
}

.stylist-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stylist-trust-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.stylist-trust-grid strong {
  font-size: 1.25rem;
}

.stylist-trust-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stylist-page-section {
  display: grid;
  gap: 10px;
}

.stylist-page-section h3 {
  margin: 0;
}

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

.stylist-service-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.stylist-service-grid strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.stylist-service-grid span {
  color: var(--ink);
  font-weight: 850;
}

.stylist-service-grid .service-price-line {
  font-size: 1rem;
  line-height: 1.12;
}

.stylist-service-grid .service-detail-line {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.availability-card {
  align-content: start;
}

.availability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.availability-pills span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(63, 111, 95, 0.2);
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
}

.availability-pills span.is-off {
  color: var(--muted);
  background: #eef1f5;
  border-color: var(--line);
}

.review-write-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.review-write-form.is-hidden {
  display: none;
}

.review-write-form .form-actions {
  grid-column: 1 / -1;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.review-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.review-card p,
.review-card small {
  margin: 0;
}

.review-card small {
  color: var(--muted);
  font-weight: 800;
}

.admin-review-row {
  gap: 8px;
}

.book-choice-sheet {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 5vw, 36px);
  background: var(--paper);
}

.book-choice-sheet h2 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.book-choice-grid {
  display: grid;
  gap: 10px;
}

.book-choice-grid button {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px 46px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.book-choice-grid button.has-badge::after {
  content: attr(data-badge-count);
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.book-choice-grid strong {
  font-size: 1.08rem;
}

.book-choice-grid span {
  color: var(--muted);
  line-height: 1.35;
}

.finish-session-sheet {
  gap: 14px;
}

.finish-session-time {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(63, 111, 95, 0.18);
  border-radius: 8px;
  background: #f7faf8;
}

.finish-session-time strong {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.finish-session-time span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

#confirmFinishSessionButton:disabled {
  opacity: 0.55;
  cursor: wait;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 18px;
}

.appointment-actions button,
.appointment-client-panel button,
.booking-actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 850;
}

.appointment-actions .secondary,
.booking-actions .secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.booking-actions .reminder-action {
  color: #5b4623;
  background: rgba(184, 132, 52, 0.12);
  border-color: rgba(184, 132, 52, 0.34);
}

.booking-actions .deposit-action {
  color: #315644;
  background: rgba(63, 111, 95, 0.1);
  border-color: rgba(63, 111, 95, 0.28);
}

.booking-actions .attendance-action {
  color: #61456f;
  background: rgba(112, 82, 132, 0.1);
  border-color: rgba(112, 82, 132, 0.24);
}

.booking-actions .today-start-action {
  min-width: 132px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 8px 18px rgba(184, 89, 112, 0.22);
}

.client-appointment-row {
  border-color: rgba(63, 111, 95, 0.24);
  background: #fbfdfb;
}

.booking-message-badge,
.attendance-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.booking-message-badge {
  color: #7b3350;
  background: rgba(184, 89, 112, 0.12);
}

.attendance-status {
  color: #61456f;
  background: rgba(112, 82, 132, 0.12);
}

.booking-detail-sheet {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 5vw, 42px);
  background: var(--paper);
}

.booking-detail-sheet h2 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  line-height: 0.95;
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

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

.booking-detail-grid strong {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-proof-link {
  width: fit-content;
  font-weight: 900;
  color: var(--sage);
}

.booking-detail-actions {
  justify-content: flex-start;
}

.booking-timeline {
  display: grid;
  gap: 8px;
}

.booking-timeline h3 {
  margin: 0;
}

.booking-timeline article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.booking-timeline span {
  color: var(--muted);
  text-align: right;
}

.client-flag-suggestions {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(184, 132, 52, 0.32);
  border-radius: 8px;
  background: rgba(184, 132, 52, 0.08);
}

.client-flag-suggestions p {
  margin: 0;
  color: var(--muted);
}

.appointment-client-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(63, 111, 95, 0.3);
  border-radius: 8px;
  background: #f3f8f5;
}

.appointment-client-panel h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.booking-row {
  align-items: center;
}

.booking-empty-notice {
  margin-bottom: 14px;
}

.booking-status-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.booking-status-summary article {
  display: grid;
  gap: 2px;
  min-height: 68px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.booking-status-summary article.has-alert {
  border-color: rgba(190, 86, 109, 0.34);
  background: rgba(190, 86, 109, 0.08);
}

.booking-status-summary strong {
  font-size: 1.35rem;
  line-height: 1;
}

.booking-status-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.message-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.message-summary span {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.message-summary strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.message-contact-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.message-contact-picker h4 {
  margin: 0;
  font-size: 1rem;
}

.message-contact-picker input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.message-contact-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.message-contact-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.message-contact-list button.is-active {
  border-color: rgba(63, 111, 95, 0.5);
  background: #edf7f3;
}

.message-contact-list button > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.message-contact-list button > span.has-image {
  overflow: hidden;
  background: #eef1f5;
}

.message-contact-list button > span.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-contact-list strong,
.message-contact-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-contact-list small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.message-recipient-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.message-group-recipients {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 111, 95, 0.28);
  border-radius: 8px;
  background: #edf7f3;
}

.message-group-recipients strong {
  color: var(--sage);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.message-group-recipients div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.message-group-recipients span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #315644;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.message-item.is-unread,
.message-thread-card.is-unread {
  border-left: 3px solid var(--rose);
  background: #fff8fa;
}

.message-thread-card {
  display: grid;
  gap: 10px;
}

.message-thread-card.is-booking {
  border-color: rgba(66, 107, 147, 0.32);
}

.message-thread-open-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.message-thread-card em {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-style: normal;
  font-size: 0.72rem;
}

.message-thread-pill {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.message-thread-pill.is-comment {
  color: #fff;
  background: var(--sage);
}

.message-thread-pill.is-declined {
  color: #fff;
  background: var(--rose);
}

.message-thread-actions {
  justify-content: flex-start;
}

.message-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.message-thread-open .form-actions .link-approve-button,
.link-approve-button {
  color: #3c2f08;
  background: #f6cf5d;
  border: 1px solid rgba(184, 132, 52, 0.45);
}

.message-thread-open .form-actions .link-decline-button,
.link-decline-button {
  color: #fff;
  background: var(--rose);
  border: 1px solid var(--rose);
}

.message-thread-open .form-actions .link-approve-button:hover,
.link-approve-button:hover {
  background: #efbf32;
}

.message-thread-open .form-actions .link-decline-button:hover,
.link-decline-button:hover {
  color: #fff;
  background: #a83f58;
}

.message-thread-open {
  display: grid;
  gap: 12px;
}

.message-thread-messages {
  display: grid;
  gap: 10px;
}

.quick-reply-menu {
  position: relative;
}

.quick-reply-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.quick-reply-menu summary::-webkit-details-marker {
  display: none;
}

.quick-reply-menu[open] summary {
  border-color: rgba(63, 111, 95, 0.45);
  background: #edf7f3;
}

.quick-reply-menu div {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 12;
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(32, 33, 36, 0.16);
}

.quick-reply-menu div button {
  justify-content: flex-start;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--line);
  text-align: left;
}

.message-item.from-me {
  border-left: 3px solid var(--blue);
  background: #f6f9fc;
}

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

.booking-row > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.booking-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.booking-reminder-log {
  color: #5b4623;
  font-weight: 850;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.booking-reminder {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: #5b4623;
  background: rgba(184, 132, 52, 0.14);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.booking-reminder.today,
.booking-reminder.soon {
  color: #fff;
  background: var(--rose);
}

.booking-reminder.after {
  color: #fff;
  background: var(--blue);
}

.booking-reminder.missing {
  color: #5b4623;
  background: rgba(184, 132, 52, 0.22);
}

.deposit-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: #315644;
  background: rgba(63, 111, 95, 0.12);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.deposit-status.is-requested {
  color: #5b4623;
  background: rgba(184, 132, 52, 0.16);
}

.deposit-status.is-paid {
  color: #fff;
  background: var(--sage);
}

.deposit-status.is-waived {
  color: #fff;
  background: var(--blue);
}

.booking-row button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  font-weight: 850;
  white-space: nowrap;
}

.dictionary-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.dictionary-group h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.work-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-form.compact {
  max-width: 760px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  gap: 18px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(320px, 100%);
  gap: 8px;
  margin-bottom: 16px;
}

.auth-mode-switch button {
  min-height: 42px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
}

.auth-mode-switch button.is-active {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.auth-form {
  align-content: start;
}

.auth-form h3 {
  margin: 0;
}

.forgot-password-toggle {
  width: fit-content;
  min-height: 34px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 850;
  text-align: left;
}

.forgot-password-form {
  overflow: hidden;
  animation: forgotPasswordReveal 220ms ease both;
}

@keyframes forgotPasswordReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--rose);
  font-weight: 800;
}

.status-message:empty {
  display: none;
}

.global-status {
  display: none !important;
}

.global-status:empty,
.global-status.is-hidden {
  display: none;
}

.activity-alert {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(63, 111, 95, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(35, 45, 38, 0.16);
  backdrop-filter: blur(14px);
}

.activity-alert div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.activity-alert strong {
  font-size: 0.92rem;
}

.activity-alert span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.activity-alert button {
  min-height: 34px;
  padding: 0 12px;
}

.activity-alert-close {
  color: var(--muted);
  background: #f4f6f4;
}

.activity-alert.is-hidden {
  display: none;
}

.save-toast {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(63, 111, 95, 0.28);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(32, 33, 36, 0.16);
  backdrop-filter: blur(14px);
  animation: saveToastIn 220ms ease both;
}

.save-toast.is-hidden {
  display: none;
}

.save-toast.is-leaving {
  animation: saveToastOut 180ms ease both;
}

.save-toast span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
}

.save-toast strong {
  font-size: 0.92rem;
}

@keyframes saveToastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes saveToastOut {
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

label,
.form-field {
  display: grid;
  gap: 7px;
  color: #3f4652;
  font-weight: 750;
}

.full {
  grid-column: 1 / -1;
}

.check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check input {
  width: 20px;
  min-height: 20px;
}

.checkbox-row {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 40px;
  color: #3f4652;
  font-weight: 850;
  line-height: 1.25;
}

.checkbox-row input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--sage);
}

.checkbox-row span {
  min-width: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions .secondary,
.card-actions .secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.name-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

dialog {
  width: min(900px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(32, 33, 36, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    overlay 220ms ease allow-discrete,
    display 220ms ease allow-discrete;
}

dialog::backdrop {
  background: rgba(32, 33, 36, 0);
  transition:
    background 220ms ease,
    overlay 220ms ease allow-discrete,
    display 220ms ease allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog[open]::backdrop {
  background: rgba(32, 33, 36, 0.45);
}

dialog.is-helper-dialog.is-opening[open],
dialog.is-helper-dialog.is-closing[open] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

dialog.is-helper-dialog.is-visible[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog.is-helper-dialog[open] .book-choice-sheet,
dialog.is-helper-dialog[open] .qr-scanner,
dialog.is-helper-dialog[open].client-detail-panel > :not(.client-detail-close-button) {
  transform-origin: bottom center;
  animation: helperSheetIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

dialog.is-helper-dialog.is-closing[open] .book-choice-sheet,
dialog.is-helper-dialog.is-closing[open] .qr-scanner,
dialog.is-helper-dialog.is-closing[open].client-detail-panel > :not(.client-detail-close-button) {
  animation: helperSheetOut 180ms ease both;
}

dialog.is-helper-dialog.is-closing[open]::backdrop {
  background: rgba(32, 33, 36, 0);
}

@keyframes helperSheetIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes helperSheetOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  dialog[open]::backdrop {
    background: rgba(32, 33, 36, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.is-helper-dialog,
  dialog.is-helper-dialog .book-choice-sheet,
  dialog.is-helper-dialog .qr-scanner,
  dialog.is-helper-dialog.client-detail-panel > :not(.client-detail-close-button) {
    animation: none !important;
    transition: none !important;
  }
}

.close-button {
  position: sticky;
  top: 10px;
  left: calc(100% - 48px);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.share-page {
  padding: clamp(22px, 5vw, 48px);
  background: var(--paper);
}

.share-page h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.share-actions a,
.share-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  text-decoration: none;
  font-weight: 800;
}

.comment-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comment-box h3 {
  margin: 0;
}

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

@media (max-width: 760px) {
  body {
    padding-bottom: 86px;
  }

  .topbar {
    display: none;
  }

  .topbar,
  .section-head,
  .hero-band {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    gap: 14px;
    align-items: start;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .section-head h2 {
    margin: 7px 0 10px;
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 0.96;
  }

  .section-head .toolbar {
    width: 100%;
    display: grid;
    gap: 10px;
  }

  .section-head .toolbar input,
  .section-head .toolbar select {
    width: 100%;
  }

  main {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
    padding-bottom: 34px;
  }

  body.is-public-home main,
  body:not(.is-signed-in):has(#homeView.is-visible) main {
    width: 100%;
    padding-top: 0;
  }

  body:not(.is-signed-in):has(#homeView.is-visible) {
    overflow: hidden;
  }

  .mobile-mode-shell {
    display: grid;
    justify-items: center;
    padding: 2px 0 14px;
  }

  body:not(.is-signed-in) .mobile-mode-shell {
    display: none;
  }

  .mobile-app-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(216, 222, 232, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(32, 33, 36, 0.18);
    backdrop-filter: blur(18px);
    transition: transform 220ms ease, opacity 220ms ease;
  }

  body.is-signed-in .mobile-app-bar button.primary {
    animation: qrButtonPop 260ms cubic-bezier(0.2, 0.85, 0.22, 1) both;
  }

  @keyframes qrButtonPop {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.88);
    }

    to {
      opacity: 1;
      transform: translateY(-17px) scale(1);
    }
  }

  .mobile-app-bar::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 0;
    width: calc((100% - 40px) / 5);
    border-radius: 10px;
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(68, 111, 148, 0.22);
    opacity: 0;
    transform: translateX(0);
    transition: transform 260ms cubic-bezier(0.2, 0.85, 0.22, 1), opacity 180ms ease;
    pointer-events: none;
  }

  .mobile-app-bar.has-active-slider::before {
    opacity: 1;
    transform: translateX(calc((100% + 6px) * var(--active-mobile-index, 0)));
  }

  body.has-client-selection .mobile-app-bar {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }

  body.has-live-session .mobile-app-bar {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
  }

  .live-session-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 38;
    display: grid;
    grid-template-columns: minmax(96px, 1fr) repeat(4, 46px);
    gap: 7px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(216, 222, 232, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(32, 33, 36, 0.2);
    backdrop-filter: blur(18px);
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  body.has-live-session .live-session-bar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .live-return-button {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 42;
    display: grid;
    grid-template-columns: auto auto;
    gap: 1px 6px;
    min-width: 0;
    min-height: 36px;
    padding: 6px 10px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    color: #fff;
    background: var(--rose);
    box-shadow: 0 12px 28px rgba(186, 86, 112, 0.28);
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  body.has-live-return .live-return-button {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: liveReturnPulse 1.35s ease-in-out infinite;
  }

  .live-return-button strong {
    font-size: 0.8rem;
    letter-spacing: 0;
    line-height: 1;
  }

  .live-return-button small {
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
  }

  .live-return-button span {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
  }

  @keyframes liveReturnPulse {
    0%,
    100% {
      box-shadow: 0 12px 28px rgba(186, 86, 112, 0.28), 0 0 0 0 rgba(186, 86, 112, 0.34);
    }

    50% {
      box-shadow: 0 14px 34px rgba(186, 86, 112, 0.36), 0 0 0 8px rgba(186, 86, 112, 0);
    }
  }

  .live-session-timer {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-left: 4px;
  }

  .live-session-timer strong {
    font-size: 1.05rem;
    line-height: 1;
  }

  .live-session-timer span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .live-session-bar button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 12px;
    color: var(--ink);
    background: #f4f7f5;
    border: 1px solid var(--line);
    font-size: 1rem;
    font-weight: 950;
  }

  .live-session-bar button:disabled {
    opacity: 0.36;
    cursor: not-allowed;
  }

  .live-session-bar button.is-recording {
    color: #fff;
    background: var(--rose);
    border-color: var(--rose);
    box-shadow: 0 0 0 5px rgba(189, 83, 111, 0.16);
    animation: liveRecordingPulse 980ms ease-in-out infinite;
  }

  .live-session-bar button.finish {
    color: #fff;
    background: var(--sage);
    border-color: var(--sage);
  }

  @keyframes liveRecordingPulse {
    50% {
      transform: scale(1.06);
    }
  }

  .client-bulk-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 36;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(32, 33, 36, 0.18);
    transform: translateY(125%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .client-bulk-panel.has-selection {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .client-bulk-panel strong {
    text-align: center;
  }

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

  .client-bulk-buttons button {
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .mobile-app-bar button {
    position: relative;
    z-index: 1;
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .mobile-app-bar button.has-badge::after {
    content: attr(data-badge-count);
    position: absolute;
    top: -5px;
    right: 4px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--rose);
    font-size: 0.62rem;
    line-height: 1;
  }

  .mobile-app-bar button.is-active {
    color: #fff;
    background: transparent;
    box-shadow: none;
  }

  .mobile-app-bar button.primary {
    min-height: 54px;
    transform: translateY(-17px);
    color: #fff;
    background: var(--sage);
    box-shadow: 0 10px 22px rgba(63, 111, 95, 0.28);
  }

  body:not(.is-signed-in) .mobile-app-bar button.primary {
    transform: translateY(0);
  }

  body.has-live-menu-return .mobile-app-bar button.primary {
    animation: none;
    transform: translateY(0);
    background: var(--rose);
    box-shadow: 0 8px 20px rgba(186, 86, 112, 0.22);
  }

  .mobile-app-bar button.primary.is-active {
    background: var(--sage);
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.96),
      0 0 0 6px rgba(63, 111, 95, 0.18),
      0 12px 24px rgba(63, 111, 95, 0.3);
  }

  .mobile-app-bar button.is-ringing::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--rose);
    box-shadow: 0 0 0 0 rgba(186, 86, 112, 0.45);
    animation: appBellPulse 1.4s ease-out infinite;
  }

  @keyframes appBellPulse {
    0% {
      transform: scale(0.92);
      box-shadow: 0 0 0 0 rgba(186, 86, 112, 0.45);
    }
    70% {
      transform: scale(1.15);
      box-shadow: 0 0 0 9px rgba(186, 86, 112, 0);
    }
    100% {
      transform: scale(0.92);
      box-shadow: 0 0 0 0 rgba(186, 86, 112, 0);
    }
  }

  .tabs {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tabs.is-open {
    display: grid;
  }

  .tab {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .account-pill {
    justify-content: start;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 0 7px;
    font-size: 0.66rem;
  }

  .account-cluster {
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-logout {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .account-pill.is-anon {
    display: none;
  }

  .toolbar {
    justify-content: start;
  }

  .hero-band {
    display: grid;
    min-height: auto;
    gap: 12px;
    padding: 6px 0 24px;
  }

  .hero-image-card {
    display: none;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-copy .eyebrow {
    font-size: 0.64rem;
  }

  .hero-headline-stack {
    gap: 0;
    line-height: 0.86;
  }

  .hero-word-primary,
  .hero-word-secondary,
  .hero-word-tertiary {
    font-size: clamp(2.75rem, 13.8vw, 6.2rem);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .hero-actions button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .action-workflow {
    gap: 12px;
    margin-inline: -6px;
    padding: 14px;
    border-radius: 8px;
  }

  .project-mode-chooser {
    grid-template-columns: 1fr;
    margin-inline: -6px;
  }

  .project-mode-chooser button {
    min-height: 168px;
    padding: 18px;
  }

  .project-mode-chooser strong {
    font-size: 1.55rem;
  }

  .style-client-link-panel,
  .booking-client-picker,
  .booking-service-picker,
  .booking-details-picker,
  .booking-service-panel,
  .booking-details-fields,
  .service-choice-toggle {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .style-client-link-actions button,
  .booking-client-actions button {
    width: 100%;
  }

  .action-workflow-main,
  .client-link-card {
    display: grid;
    align-items: start;
    gap: 12px;
  }

  .action-workflow h3 {
    font-size: 1.35rem;
  }

  .action-workflow p,
  .client-link-card span {
    font-size: 0.92rem;
  }

  .action-timer {
    width: 100%;
  }

  .action-timer strong {
    font-size: 2.45rem;
  }

  .action-client-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 10px;
  }

  .action-client-avatar {
    width: 56px;
    height: 56px;
  }

  .client-link-actions,
  .action-controls {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .client-link-card button,
  .action-controls button {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .action-steps {
    display: flex;
    gap: 8px;
    margin-inline: -2px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .action-steps::-webkit-scrollbar {
    display: none;
  }

  .action-steps button {
    flex: 0 0 min(168px, 45vw);
    min-height: 58px;
    justify-items: start;
    padding: 10px 12px;
    text-align: left;
    font-size: 0.94rem;
    scroll-snap-align: start;
  }

  .action-steps button span {
    font-size: 0.72rem;
  }

  .action-step-focus {
    position: sticky;
    top: 8px;
    z-index: 4;
    gap: 7px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(63, 111, 95, 0.12);
  }

  .action-step-focus strong {
    font-size: 1.24rem;
  }

  .action-step-focus small {
    font-size: 0.95rem;
  }

  .action-step-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .action-step-buttons button {
    min-height: 46px;
    width: 100%;
  }

  dialog {
    width: min(100% - 16px, 460px);
    max-height: calc(100dvh - 18px);
    margin: auto auto 8px;
    border-radius: 16px 16px 14px 14px;
  }

  dialog.is-helper-dialog {
    max-height: calc(100dvh - 118px);
    margin: auto auto 98px;
  }

  body.has-live-session dialog.is-helper-dialog {
    margin-bottom: 98px;
  }

  .close-button {
    top: 8px;
    left: calc(100% - 50px);
    width: 40px;
    height: 40px;
  }

  .qr-scanner,
  .book-choice-sheet,
  .client-profile-qr,
  .stylist-qr-hub {
    max-height: calc(100dvh - 118px);
    overflow: auto;
    padding: 20px 18px 22px;
  }

  .live-camera-frame {
    height: min(38vh, 330px);
    min-height: 230px;
    margin-inline: 0;
  }

  .qr-scanner h2,
  .book-choice-sheet h2 {
    font-size: 1.7rem;
  }

  .book-choice-grid {
    gap: 8px;
  }

  .book-choice-grid button {
    min-height: 74px;
    padding: 13px 42px 13px 14px;
  }

  .book-choice-grid strong {
    font-size: 1rem;
  }

  .book-choice-grid span {
    font-size: 0.88rem;
  }

  .stylist-invite-preview,
  .stylist-scan-preview {
    min-height: 330px;
  }

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

  .qr-confirm .form-actions,
  .qr-scanner > .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qr-confirm button,
  .qr-scanner > .form-actions button {
    width: 100%;
    min-height: 48px;
  }

  .work-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .project-linked-field {
    display: none;
  }

  .client-detail-panel {
    padding: 14px;
  }

  .client-detail-head {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding-right: 40px;
  }

  .client-detail-avatar-button {
    width: 58px;
  }

  .client-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .client-detail-summary article {
    min-height: 64px;
    padding: 10px;
  }

  .client-detail-summary strong {
    font-size: 1.15rem;
  }

  .client-detail-summary span {
    font-size: 0.72rem;
    line-height: 1.2;
  }

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

  .client-detail-actions button {
    width: 100%;
    min-height: 46px;
  }

  .client-flag-picker {
    gap: 6px;
  }

  .client-flag-picker label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .client-history-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .client-history-thumb {
    width: 58px;
  }

  .client-history-item button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .booking-row {
    display: grid;
  }

  .booking-status-summary {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .booking-status-summary article {
    min-width: 116px;
  }

  .appointment-actions,
  .booking-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .booking-row button,
  .appointment-actions button {
    width: 100%;
    min-height: 46px;
  }

  .activity-alert {
    right: 12px;
    bottom: 96px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .activity-alert .activity-alert-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    min-height: 28px;
    padding: 0;
  }

  .activity-alert div {
    padding-right: 24px;
  }

  .save-toast {
    right: 14px;
    bottom: 104px;
  }

  .monitor-grid,
  .viewer-fields,
  .auth-grid,
  .message-layout,
  .shop-layout,
  .admin-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .message-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .message-summary span {
    min-height: 48px;
    padding: 8px;
    font-size: 0.68rem;
  }

  .message-thread-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .message-thread-actions button {
    width: 100%;
    min-height: 44px;
  }

  .quick-reply-menu summary {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .quick-reply-menu div {
    left: auto;
    right: 0;
    min-width: min(260px, calc(100vw - 36px));
  }

  .recommended-products .mini-product-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .recommended-products .product-card.is-style-recommendation {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    box-shadow: none;
  }

  .recommended-products .product-card.is-style-recommendation .product-image {
    width: 76px;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .recommended-products .product-card.is-style-recommendation .product-body {
    gap: 6px;
    padding: 8px 9px;
  }

  .recommended-products .product-card.is-style-recommendation .eyebrow {
    font-size: 0.62rem;
  }

  .recommended-products .product-card.is-style-recommendation h3 {
    font-size: 0.92rem;
    line-height: 1.08;
  }

  .recommended-products .product-card.is-style-recommendation .pill {
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .recommended-products .product-card.is-style-recommendation .meta {
    gap: 4px 8px;
    font-size: 0.72rem;
  }

  .recommended-products .product-card.is-style-recommendation .meta span:nth-child(n+4),
  .recommended-products .product-card.is-style-recommendation .product-discount-line {
    display: none;
  }

  .recommended-products .product-card.is-style-recommendation .card-actions {
    gap: 6px;
  }

  .recommended-products .product-card.is-style-recommendation .card-actions button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.76rem;
  }

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

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

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

  .product-form-section,
  .product-image-section {
    grid-template-columns: 1fr;
  }

  .admin-member-tools,
  .admin-member-review {
    grid-template-columns: 1fr;
  }

  .admin-product-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-product-thumb {
    width: 72px;
  }

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

  .admin-product-actions button,
  .admin-product-actions .button-link {
    width: 100%;
    min-height: 40px;
  }

  .admin-member-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .admin-member-avatar {
    width: 48px;
  }

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

  .admin-member-actions button,
  .admin-member-actions .button-link {
    width: 100%;
    min-height: 40px;
  }

  .admin-member-profile,
  .admin-member-profile.is-page {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-member-profile-avatar,
  .admin-member-profile.is-page .admin-member-profile-avatar {
    width: 72px;
  }

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

  .stylist-home-tools {
    grid-template-columns: 1fr;
  }

  .stylist-home-tools button {
    width: 100%;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .home-scroll-feed {
    gap: 14px;
    max-width: none;
    margin-inline: 0;
  }

  body:not(.is-signed-in) #homeView.is-visible {
    padding-top: 0;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed {
    height: calc(100dvh - 10px);
    min-height: 560px;
    overflow-y: auto;
    overflow-anchor: none;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scroll-padding: 0;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0 0 92px;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed > * {
    min-height: calc(100dvh - 92px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .hero-band {
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: none;
    justify-self: center;
    margin-inline: calc(50% - 50vw);
    min-height: calc(100dvh - 92px);
    height: -webkit-fill-available;
    align-content: start;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0 0 110px;
    border-bottom: 0;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .hero-image-card {
    display: none;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .hero-brand-band {
    display: grid;
    align-items: center;
    min-height: 124px;
    width: 100%;
    margin: 0 0 18px;
    overflow: hidden;
    background: #1f3427;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .hero-brand-band img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .hero-copy {
    justify-content: start;
    padding: 0 12px;
  }

  .home-scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 86px;
    z-index: 32;
    display: grid;
    place-items: center;
    gap: 4px;
    color: #1f3427;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0.82;
    animation: homeScrollCueFloat 1.8s ease-in-out infinite;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .home-scroll-cue i {
    color: var(--gold);
    font-size: 1rem;
  }

  .home-scroll-cue.is-hidden {
    opacity: 0;
    transform: translate(-50%, 10px);
    animation: none;
  }

  @keyframes homeScrollCueFloat {
    0%,
    100% {
      transform: translate(-50%, 0);
    }

    50% {
      transform: translate(-50%, 8px);
    }
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .style-card,
  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .product-card,
  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .notice-card {
    display: grid;
    align-content: start;
    width: min(100%, 430px);
    margin-inline: auto;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .product-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .home-feed-product .product-image {
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .home-feed-product .product-body {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
  }

  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .card-media {
    min-height: min(62dvh, 540px);
  }

  body.is-signed-in #homeView.is-visible {
    padding-top: 0;
  }

  body.is-signed-in #homeView.is-visible .home-scroll-feed {
    height: calc(100dvh - 118px);
    min-height: 520px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scroll-padding: 10px 0 12px;
    -webkit-overflow-scrolling: touch;
    padding-block: 10px 18px;
  }

  body.is-signed-in #homeView.is-visible .home-scroll-feed > * {
    min-height: calc(100dvh - 136px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.is-signed-in #homeView.is-visible .home-scroll-feed .style-card,
  body.is-signed-in #homeView.is-visible .home-scroll-feed .product-card {
    display: grid;
    align-content: start;
  }

  body.is-signed-in #homeView.is-visible .home-scroll-feed .card-media {
    min-height: min(64dvh, 560px);
  }

  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-video-overlay,
  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .stream-video-overlay {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-action-rail,
  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .stream-action-rail {
    top: 48%;
    right: 14px;
    bottom: auto;
  }

  body.is-signed-in #homeView.is-visible .home-scroll-feed .style-card.is-clickable-card .card-media::after,
  body:not(.is-signed-in) #homeView.is-visible .home-scroll-feed .style-card.is-clickable-card .card-media::after {
    top: auto;
    right: 12px;
    bottom: calc(158px + env(safe-area-inset-bottom));
  }

	  body.is-signed-in #homeView.is-visible .stream-video-card,
	  body.is-signed-in #homeView.is-visible .stream-image-card {
	    min-height: calc(100dvh - 136px);
	  }

	  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-video-card:not(.has-embed) {
	    min-height: calc(100dvh - 136px);
	    width: 100%;
	    border-radius: 0;
	  }

	  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-video-card:not(.has-embed) img {
	    object-fit: cover;
	  }

	  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-video-card.has-embed {
	    min-height: calc(100dvh - 136px);
	    width: 100%;
	    border-radius: 0;
	    background: #111;
	  }

	  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-video-card.has-embed .stream-video-player {
	    width: 100%;
	    height: 100%;
	    min-height: calc(100dvh - 136px);
	    object-fit: cover;
	    background: #111;
	  }

	  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-video-card.has-embed .stream-video-overlay {
	    position: absolute;
	    inset: 0;
	    align-content: end;
	    padding: 18px 18px calc(132px + env(safe-area-inset-bottom));
	  }

	  body.is-signed-in #homeView.is-visible .home-scroll-feed .stream-video-card.has-embed .video-fallback-button {
	    align-self: start;
	    margin-top: 72px;
	  }

	  .auth-mode-switch {
	    width: 100%;
	  }

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

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

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

  .portfolio-profile {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: 18px;
    padding-top: 16px;
  }

  .avatar-upload-button {
    grid-template-columns: 1fr;
  }

  .admin-member-row,
  .admin-member-actions {
    align-items: stretch;
    justify-content: start;
  }

  .admin-member-row {
    display: grid;
  }

  .portfolio-avatar {
    width: 104px;
    height: 104px;
    top: 0;
    justify-self: start;
  }

  .dashboard-avatar .portfolio-avatar {
    width: 72px;
    height: 72px;
  }

  .admin-grid .wide {
    grid-column: auto;
  }

  .card-media {
    height: 365px;
  }

  .style-card:not(.client-preview-card) > .card-media:not(.is-single) {
    height: 365px;
    background: #dfe5eb;
  }

  .style-card:not(.client-preview-card) > .card-media:not(.is-single) .image-slot img {
    object-fit: cover;
  }

  .style-card:not(.client-preview-card) > .card-media:not(.is-single) .image-slot:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.72);
  }
}

.admin-member-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-member-row.is-archived {
  background: #f6f7f9;
}

.admin-member-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.35fr) minmax(150px, 0.4fr) minmax(150px, 0.4fr);
  gap: 8px;
  margin-bottom: 12px;
}

.admin-member-tools input,
.admin-member-tools select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background-color: #fff;
  font: inherit;
  font-weight: 800;
  appearance: none;
}

.admin-member-tools select {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.admin-member-avatar,
.admin-member-profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #eef1f5;
}

.admin-member-avatar {
  width: 54px;
  aspect-ratio: 1 / 1;
}

.admin-member-avatar img,
.admin-member-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-member-avatar span,
.admin-member-profile-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.admin-member-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-member-row em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef1f5;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  vertical-align: middle;
}

.admin-member-row em.admin-member-status {
  color: #fff;
  background: var(--blue);
}

.admin-member-row em.admin-member-status.is-verified {
  background: var(--sage);
}

.admin-member-row em.admin-member-status.is-flagged {
  background: var(--rose);
}

.admin-member-row em.admin-member-status.is-needs_review {
  color: var(--ink);
  background: #f2df90;
}

.admin-member-row small {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-member-row small.admin-login-attempt {
  color: var(--muted);
  font-weight: 800;
}

.admin-member-row small.admin-login-attempt.is-success {
  color: var(--sage);
}

.admin-member-row small.admin-login-attempt.is-admin_reset {
  color: var(--blue);
}

.admin-member-row small.admin-login-attempt.is-failed,
.admin-member-row small.admin-login-attempt.is-archived {
  color: var(--berry);
}

.admin-member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-member-row button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
  white-space: nowrap;
}

.admin-member-row button.danger {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.admin-member-sheet {
  display: grid;
  gap: 14px;
}

.admin-member-profile {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.admin-member-profile-avatar {
  width: 84px;
  aspect-ratio: 1 / 1;
}

.admin-member-profile h2 {
  margin: 0;
}

.admin-member-profile p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.admin-member-profile.is-page {
  grid-template-columns: 112px minmax(0, 1fr);
}

.admin-member-profile.is-page .admin-member-profile-avatar {
  width: 112px;
}

.admin-member-public-page {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-member-public-page.is-hidden {
  display: none;
}

.admin-public-profile {
  margin: 0;
  padding-top: 0;
}

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

.admin-public-section h3 {
  margin: 0;
}

.admin-member-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.admin-member-review label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.admin-role-editor legend,
.admin-role-editor strong {
  width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-role-editor label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
  color: var(--ink);
  font-size: 0.86rem;
  text-transform: none;
}

.admin-role-editor input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--sage);
}

.admin-role-editor.is-locked {
  display: grid;
  color: var(--muted);
}

.admin-member-review select,
.admin-member-review textarea,
.admin-member-review input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-transform: none;
}

.admin-member-review select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.admin-member-review textarea {
  min-height: 42px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-member-review input {
  min-height: 42px;
  padding: 0 12px;
}

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

.admin-member-stats article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.admin-member-stats strong {
  font-size: 1.2rem;
}

.admin-member-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}


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

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

.settings-service-group {
  padding: 0;
  border: 0;
  background: transparent;
}

.settings-service-group > .settings-panel-head {
  display: none;
}

.settings-panel-head {
  display: grid;
  gap: 4px;
}

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

.service-settings-head button {
  min-height: 40px;
  min-width: 110px;
  border-radius: 8px;
  color: var(--ink);
  background: #d8d8d8;
  border-color: #d8d8d8;
  font-weight: 850;
}

.settings-panel-head h3,
.settings-panel-head p {
  margin: 0;
}

.settings-panel-head p {
  color: var(--muted);
  line-height: 1.45;
}

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

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

.settings-subpanel-head h4,
.settings-subpanel-head p {
  margin: 0;
}

.settings-subpanel-head h4 {
  display: none;
}

.settings-subpanel-head .eyebrow {
  color: var(--rose);
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.settings-subpanel-head button {
  min-height: 38px;
  padding-inline: 16px;
  border-radius: 0;
  color: var(--ink);
  background: #c8c8c8;
}

.settings-panel-actions {
  justify-content: flex-start;
}

.settings-panel-actions button {
  min-height: 40px;
}

.settings-subpanel > .settings-panel-actions button {
  width: 100%;
}

.map-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.map-link-actions button {
  min-height: 40px;
  border-radius: 8px;
  color: var(--ink);
  background-color: lightgrey;
  border-color: lightgrey;
}

.map-link-actions small {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.admin-email-controls {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

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

.admin-email-head strong,
.admin-email-head small,
.admin-email-head span {
  display: block;
}

.admin-email-head strong {
  font-size: 1.05rem;
}

.admin-email-head small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.admin-email-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.admin-email-log-row {
  align-items: start;
  border-left: 4px solid var(--line);
}

.admin-email-log-row.is-sent {
  border-left-color: var(--sage);
  background: #f4fbf7;
}

.admin-email-log-row.is-failed {
  border-left-color: var(--berry);
  background: #fff5f7;
}

.admin-email-log-row.is-skipped {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.admin-email-log-row span,
.admin-email-log-row small {
  display: block;
  margin-top: 4px;
}

.admin-email-status {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--muted);
  text-align: center;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.admin-email-status.is-sent {
  background: var(--sage);
}

.admin-email-status.is-failed {
  background: var(--berry);
}

.admin-email-status.is-skipped {
  color: #2a2110;
  background: var(--gold);
}

.admin-email-error {
  color: var(--berry);
  font-weight: 850;
}

.apple-toggle-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.apple-toggle-row span {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
}

.apple-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.apple-toggle-row i {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d8dde3;
  box-shadow: inset 0 0 0 1px rgba(31, 33, 38, 0.08);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.apple-toggle-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 33, 38, 0.22);
  transition: transform 0.18s ease;
}

.apple-toggle-row input:checked + i {
  background: var(--sage);
  box-shadow: inset 0 0 0 1px rgba(63, 111, 95, 0.15);
}

.apple-toggle-row input:checked + i::after {
  transform: translateX(22px);
}

.apple-toggle-row:has(input:focus-visible) {
  outline: 3px solid rgba(68, 111, 148, 0.24);
  outline-offset: 2px;
}

.service-menu-list {
  display: grid;
  gap: 14px;
  padding: 0;
}

.service-menu-item {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(110px, 0.9fr) minmax(90px, 0.7fr) minmax(110px, 0.8fr) minmax(150px, auto);
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(27, 45, 37, 0.04);
}

.service-menu-item:first-child {
  padding-top: 14px;
}

.service-menu-item label {
  min-width: 0;
}

.service-menu-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.service-menu-item button {
  min-height: 42px;
  border-radius: 8px;
}

.service-menu-item button.secondary {
  color: var(--ink);
  background: #f3f4f2;
}

.service-override-log {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(190, 94, 118, 0.2);
  border-radius: 8px;
  background: rgba(190, 94, 118, 0.07);
}

.billing-worth-note {
  display: block;
  margin-top: 8px;
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.service-override-log strong {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-override-log span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.settings-actions {
  padding: 0;
}

@media (max-width: 760px) {
  .view > .top-menu-section {
    display: none;
  }

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

  .settings-fields {
    grid-template-columns: 1fr;
  }

  .admin-email-head,
  .admin-email-toggle-grid {
    grid-template-columns: 1fr;
  }

  .admin-email-head {
    display: grid;
  }

  .admin-email-head > span {
    justify-self: start;
  }

  .settings-subpanel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .service-settings-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-subpanel-head button,
  .service-settings-head button,
  .settings-panel-actions button {
    width: 100%;
  }

  .map-link-actions {
    display: grid;
  }

  .map-link-actions button {
    width: 100%;
  }

  .service-menu-item {
    grid-template-columns: 1fr;
  }

  .service-menu-item-actions {
    justify-content: stretch;
  }

  .service-menu-item-actions button {
    flex: 1;
  }
}


.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer small {
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-footer {
    display: grid;
    justify-content: start;
  }
}


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

.share-toolbox h3 {
  margin: 0;
  font-size: 1rem;
}

.share-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
  text-decoration: none;
}

.share-icon-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  font-size: 0.7rem;
  font-weight: 950;
}

.share-icon-button.whatsapp span { background: #25d366; }
.share-icon-button.facebook span { background: #1877f2; }
.share-icon-button.twitter span { background: #202124; }
.share-icon-button.copy span { background: var(--gold); }
.share-icon-button.share-all {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}
.share-icon-button.share-all span {
  color: var(--sage);
  background: #fff;
}

@media (max-width: 760px) {
  .style-billing-row,
  .style-billing-row-actions {
    display: grid;
    justify-content: stretch;
  }

  .style-billing-row-actions button {
    width: 100%;
  }

  .client-card-hero {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .client-card-hero .directory-avatar {
    width: 82px;
    height: 98px;
  }

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

  .client-directory-card .card-actions .client-message-button,
  .client-directory-card .card-actions .client-inbox-button,
  .client-directory-card .card-actions .client-invite-button {
    grid-column: auto;
  }

  .client-directory-tools {
    grid-template-columns: minmax(0, 1fr) minmax(48px, auto);
    margin-top: -4px;
  }

  .client-filter-button span {
    display: none;
  }
}
