:root {
  --paper: #f8f3eb;
  --panel: #fffdf9;
  --ink: #090909;
  --muted: #71695f;
  --line: #e8d8c4;
  --accent: #2176d9;
  --gold: #f4c56f;
  --coffee: #5a3825;
  --coffee2: #b98b56;
  --ok: #1d8d5a;
  --bad: #c84630;
  --warn: #ad741b;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f0ede8;
  color: var(--ink, #090909);
}

body.site-body {
  display: flex;
  justify-content: center;
}

body.login-mode .app-shell,
body.login-mode .modal-backdrop {
  display: none;
}

body.company-login-mode .company-shell {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f5f1ea;
}

body:not(.login-mode) .login-screen:not(#company-login-screen) {
  display: none;
}

body:not(.company-login-mode) #company-login-screen {
  display: none;
}

.login-card {
  width: min(100%, 460px);
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: 0 18px 50px rgba(28, 18, 8, 0.12);
}

.login-logo {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

.login-card h1 {
  margin: 0;
  font-size: 36px;
}

.login-card p {
  margin: 0;
  color: var(--muted, #71695f);
  line-height: 1.5;
}

.login-card label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.login-card input {
  min-height: 50px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 18px;
  background: white;
}

.login-message {
  min-height: 24px;
  color: var(--muted, #71695f);
  font-weight: 800;
}

.login-message.error {
  color: var(--bad, #c84630);
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.company-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.side-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #101010;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark small,
.side-note span {
  display: block;
  color: #c9c1b8;
  margin-top: 4px;
}

.brand-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold, #f4c56f);
}

.side-link {
  border: 1px solid #3a3a3a;
  background: transparent;
  color: white;
  border-radius: 8px;
  min-height: 46px;
  text-align: left;
  padding: 0 14px;
  font-weight: 700;
}

.side-link.active {
  background: white;
  color: #111;
}

.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.side-note {
  margin-top: auto;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.6;
}

.main-stage {
  min-width: 0;
  padding: 0 24px 40px;
  display: flex;
  justify-content: center;
}

.route {
  display: none;
}

.route.active {
  display: block;
}

.phone-frame {
  width: min(100%, 760px);
  min-height: 100vh;
  background: var(--paper, #f8f3eb);
  padding: 28px 26px 112px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.desktop-route {
  width: min(100%, 1280px);
  padding: 28px 0;
}

.admin-database-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.admin-panel-card,
.company-panel-card {
  background: var(--panel, #fffdf9);
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 24px;
}

.admin-reply-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-reply-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 14px;
  font: inherit;
  line-height: 1.6;
}

.admin-reply-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.admin-reply-actions button,
.admin-reply-rule button {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  background: white;
}

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

.admin-reply-rule {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.admin-reply-rule strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f72ff;
  color: white;
}

.admin-reply-rule p {
  margin: 0;
  line-height: 1.6;
}

.admin-reply-rule button {
  padding: 0;
  color: #cf3b3b;
  font-size: 22px;
}

.admin-booking-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.admin-phone-preview {
  overflow: hidden;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.admin-mobile-list-head.static {
  position: static;
}

.admin-reply-textarea.small {
  min-height: 96px;
}

.admin-booking-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-booking-row-actions button {
  border: 1px solid #d5e2f2;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  background: white;
  font-weight: 800;
}

.admin-appointment-card.occupied .admin-appointment-summary strong,
.admin-appointment-card.occupied .admin-appointment-summary b {
  color: #8a4b00;
}

.admin-panel-card h2,
.company-panel-card h2 {
  margin: 6px 0 10px;
  font-size: 28px;
}

.admin-panel-card p,
.company-panel-card p {
  color: var(--muted, #71695f);
  line-height: 1.55;
}

.company-data-map {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.company-data-row {
  display: grid;
  grid-template-columns: 64px 1.2fr 1.2fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffaf3;
}

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

.admin-quick-grid button {
  min-height: 58px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: var(--panel, #fffdf9);
  font-weight: 900;
}

.company-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-role-card {
  min-height: 120px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffaf3;
}

.company-role-card strong {
  font-size: 22px;
}

.company-role-card span {
  color: var(--muted, #71695f);
  line-height: 1.5;
}

.company-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line, #e8d8c4);
  border-radius: 8px;
  color: var(--muted, #71695f);
  background: #fffaf3;
}

.a-console {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
}

.company-kpi-grid,
.a-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.company-kpi {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 16px;
  background: #fffaf3;
}

.company-kpi span {
  display: block;
  color: var(--muted, #71695f);
  margin-bottom: 8px;
}

.company-kpi strong {
  font-size: 28px;
}

.a-toolbar {
  margin: 0;
}

.a-panel {
  display: grid;
  gap: 18px;
}

.action-card {
  text-align: left;
}

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

.form-grid label,
.wide-label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.form-grid input,
.form-grid select,
.wide-label textarea,
.editable-row input,
.company-edit-table input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: #111;
}

.wide-label textarea {
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

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

.editable-row {
  display: grid;
  grid-template-columns: 1fr 1fr 120px 140px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf3;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #111;
}

.check-line input,
.company-edit-table input[type="checkbox"],
.editable-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.company-edit-table {
  padding: 0;
  background: white;
}

.company-edit-table table {
  min-width: 1050px;
}

.company-edit-table th,
.company-edit-table td {
  background: white;
  vertical-align: middle;
}

.company-edit-table input {
  min-width: 96px;
}

.row-actions-tight {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 180px;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.action-row button,
.a-toolbar button {
  min-height: 46px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 0 18px;
  background: white;
  font-weight: 900;
}

.action-row button.primary-action,
.a-toolbar button.primary-action {
  border-color: var(--theme-accent, #111);
  background: var(--theme-accent, #111);
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12);
}

.action-row button.primary-action:hover,
.a-toolbar button.primary-action:hover {
  filter: brightness(0.94);
}

.site-phone .primary-action,
.site-phone .wide-button,
.site-phone .booking-page button.dark,
.site-phone .booking-bottom-bar button.dark {
  background: var(--theme-accent, #111);
  border-color: var(--theme-accent, #111);
  color: #fff;
}

.site-phone .pill-button,
.site-phone .bottom-nav button.active,
.site-phone .date-strip button.active,
.site-phone .month-row button.active {
  border-color: var(--theme-primary, #2176d9);
  color: var(--theme-accent, #111);
}

.a-panel {
  border-top: 4px solid var(--theme-primary, transparent);
}

.a-console .notice-card,
.a-console .form-grid,
.a-console .company-edit-table,
.a-console .stylist-design-popup {
  background-color: color-mix(in srgb, var(--theme-secondary, #fffaf3) 42%, #fff 58%);
}

.edit-save-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px 16px;
}

.edit-save-strip strong,
.edit-save-strip span {
  display: block;
}

.edit-save-strip span {
  margin-top: 4px;
  color: var(--muted, #71695f);
  line-height: 1.45;
}

.edit-save-strip button {
  flex: 0 0 auto;
  min-height: 46px;
  border: 1px solid #111;
  border-radius: 8px;
  padding: 0 18px;
  background: #111;
  color: white;
  font-weight: 900;
}

.notice-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 16px;
  background: #fffaf3;
}

.notice-card span {
  color: var(--muted, #71695f);
  line-height: 1.55;
}

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

.news-preview-card {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

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

.mini-news {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line, #e8d8c4);
  padding-top: 10px;
  margin-top: 10px;
}

.mini-news span {
  color: var(--muted, #71695f);
}

.side-link:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.top-bar.single {
  justify-content: flex-end;
}

.pill-button,
.toolbar button,
.toolbar input,
.news-tabs button,
.step-tabs button {
  border: 1px solid var(--line, #e8d8c4);
  background: var(--panel, #fffdf9);
  color: var(--ink, #090909);
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
}

.admin-mobile-body {
  margin: 0;
  background: #eef3fb;
  color: #101828;
}

.admin-mobile-app {
  min-height: 100vh;
  background: #f7f9fd;
}

.admin-mobile-login {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 40;
  background: rgba(245, 248, 252, 0.92);
  padding: 24px;
}

.admin-mobile-login.active {
  display: grid;
}

.admin-mobile-login-card {
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(30, 64, 175, 0.16);
}

.admin-mobile-login-card h1,
.admin-mobile-login-card p {
  margin: 0;
}

.admin-mobile-login-card input,
.admin-whatsapp-panel input,
.admin-whatsapp-panel textarea {
  border: 1px solid #d5e2f2;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 12px;
  font: inherit;
}

.admin-mobile-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1976ff;
  color: white;
  font-size: 28px;
  font-weight: 900;
}

.admin-mobile-page {
  display: none;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f8fbff;
}

.admin-mobile-page.active {
  display: block;
}

.admin-mobile-top,
.admin-mobile-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 18px;
  background: white;
  border-bottom: 1px solid #e8eef6;
}

.admin-mobile-top button,
.admin-mobile-list-head button {
  border: 1px solid #d7e4f3;
  background: white;
  border-radius: 8px;
  min-width: 48px;
  min-height: 42px;
  font-weight: 800;
}

.admin-mobile-brand {
  display: grid;
  justify-items: center;
  gap: 2px;
  line-height: 1.1;
}

.admin-mobile-brand span {
  color: #1976ff;
  font-size: 30px;
  font-weight: 900;
}

.admin-mobile-brand small {
  color: #475467;
  font-size: 12px;
}

.admin-mobile-hero {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
  align-items: center;
  min-height: 260px;
  padding: 32px 24px;
  background:
    linear-gradient(120deg, rgba(239, 247, 255, 0.95), rgba(225, 239, 255, 0.82)),
    radial-gradient(circle at 80% 38%, rgba(25, 118, 255, 0.22), transparent 34%);
}

.admin-mobile-hero h1 {
  margin: 0;
  color: #061536;
  font-size: 38px;
  line-height: 1.18;
}

.admin-mobile-hero h1 span {
  color: #1673ff;
}

.admin-mobile-hero p {
  margin: 18px 0 0;
  color: #344054;
  line-height: 1.7;
}

.admin-mobile-robot {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #ddecff);
  color: #1976ff;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(25, 118, 255, 0.22);
}

.admin-mobile-section,
.admin-mobile-advantage,
.admin-mobile-buy {
  margin: 18px;
}

.admin-mobile-section h2,
.admin-mobile-advantage h2,
.admin-mobile-buy h2 {
  margin: 0 0 8px;
}

.admin-mobile-section > p {
  margin: 0 0 14px;
  color: #475467;
}

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

.admin-mobile-feature-grid article,
.admin-mobile-advantage,
.admin-mobile-buy,
.admin-appointment-card,
.admin-mobile-empty {
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.admin-mobile-feature-grid article {
  min-height: 112px;
  padding: 12px 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 6px;
}

.admin-mobile-feature-grid span {
  color: #1976ff;
  font-size: 28px;
}

.admin-mobile-feature-grid strong {
  font-size: 15px;
}

.admin-mobile-feature-grid p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.admin-mobile-advantage {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-mobile-advantage div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #475467;
}

.admin-mobile-buy {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #f4f9ff;
}

.admin-mobile-shield {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e0efff;
  color: #1976ff;
  font-size: 34px;
  font-weight: 900;
}

.admin-mobile-footer {
  background: #2467d8;
  color: white;
  text-align: center;
  padding: 18px;
  line-height: 1.7;
}

.admin-whatsapp-float {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 22px;
  z-index: 20;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 18px;
  color: white;
  background: #0fbf61;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 191, 97, 0.26);
}

.admin-whatsapp-panel {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 86px;
  z-index: 21;
  width: min(calc(100vw - 36px), 360px);
  display: grid;
  gap: 10px;
  background: white;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
}

.admin-whatsapp-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-whatsapp-panel header button {
  border: 0;
  background: transparent;
  font-size: 24px;
}

.admin-whatsapp-panel textarea {
  min-height: 100px;
  padding-top: 12px;
}

.admin-mobile-list-head {
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-mobile-list-head h1 {
  margin: 0;
  font-size: 24px;
}

.admin-appointment-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-appointment-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr 32px;
  gap: 14px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 18px;
  text-align: left;
}

.admin-appointment-summary strong {
  color: #2362b5;
  font-size: 24px;
  line-height: 1.2;
}

.admin-appointment-summary b,
.admin-appointment-summary small {
  display: block;
}

.admin-appointment-summary b {
  font-size: 22px;
  margin-bottom: 8px;
}

.admin-appointment-summary small {
  color: #667085;
  font-size: 17px;
}

.admin-appointment-summary em {
  font-style: normal;
  font-size: 30px;
}

.admin-appointment-detail {
  display: none;
  margin: 0 18px 18px 124px;
  padding: 18px;
  border-radius: 8px;
  background: #f6f9ff;
  line-height: 1.8;
}

.admin-appointment-card.open .admin-appointment-detail {
  display: block;
}

.admin-appointment-detail p {
  margin: 8px 0;
}

.admin-mobile-count,
.admin-mobile-empty {
  text-align: center;
  color: #667085;
  line-height: 1.8;
  padding: 18px;
}

@media (max-width: 760px) {
  .admin-reply-layout {
    grid-template-columns: 1fr;
  }

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

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

  .admin-appointment-detail {
    margin-left: 18px;
  }
}

.hero {
  border-radius: 30px;
  min-height: 310px;
  padding: 44px 44px;
  color: white;
  background: linear-gradient(120deg, var(--coffee, #5a3825), var(--coffee2, #b98b56));
  position: relative;
  overflow: hidden;
}

.clean-hero {
  aspect-ratio: 16 / 9;
  min-height: unset;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.05;
  margin: 6px 0 14px;
}

.hero p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
  color: #ffe1a5;
}

.primary-action,
.floating-action,
.settings-grid button,
.modal .action-button {
  border: 0;
  background: #111;
  color: white;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 28px;
  font-weight: 900;
}

.hero .primary-action {
  background: var(--gold, #f4c56f);
  color: #111;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: white;
  color: #111;
  font-size: 28px;
  font-weight: 900;
}

.hero-arrow.left {
  left: 18px;
}

.hero-arrow.right {
  right: 18px;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dots button {
  width: 18px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.dots button.active {
  width: 32px;
  background: white;
}

.news-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 16px;
}

.news-tabs button {
  padding: 0 10px;
  white-space: nowrap;
}

.news-tabs button.active {
  background: #111;
  color: white;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-card,
.content-card,
.image-panel,
.stylist-card,
.price-category,
.booking-box,
.table-card,
.metric-grid article {
  background: var(--panel, #fffdf9);
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
}

.news-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  padding: 16px;
  align-items: center;
}

.thumb,
.image-placeholder {
  background: linear-gradient(135deg, #d9a76b, #f4dfbb);
  border-radius: 18px;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.news-card h3,
.content-card h2,
.price-category h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.news-card p,
.content-card p,
.page-title p,
.price-category p {
  color: var(--muted, #71695f);
  font-size: 18px;
  line-height: 1.6;
}

.floating-action {
  position: fixed;
  right: max(36px, calc((100vw - 280px - 760px) / 2 + 42px));
  bottom: 104px;
  z-index: 2;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: white;
  border-top: 1px solid var(--line, #e8d8c4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  font-weight: 900;
  font-size: 18px;
  color: #7b756d;
}

.bottom-nav button.active {
  color: #111;
}

.site-phone .site-top,
.site-phone .news-tabs,
.site-phone .site-bottom-nav,
.site-phone .button-row,
.site-phone .stylist-card,
.site-phone .news-card,
.site-phone .content-card {
  min-width: 0;
}

.site-phone .site-top {
  gap: 10px;
}

.site-phone .pill-button {
  min-width: 0;
  max-width: 50%;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-phone .news-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.site-phone .news-tabs button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-phone .site-bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-phone .bottom-nav button {
  min-width: 0;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

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

.site-phone .stylist-card {
  padding: 10px;
  overflow: hidden;
}

.site-phone .stylist-photo {
  border-radius: 16px;
  aspect-ratio: 1;
}

.site-phone .stylist-card h2 {
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.site-phone .stylist-card p {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.site-phone .stylist-card .button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.site-phone .stylist-card .button-row button,
.site-phone .stylist-card .social-row button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.site-phone .safe-floating-action {
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: 96px;
  max-width: calc(min(100vw, 430px) - 28px);
}

.brand-video {
  background: linear-gradient(135deg, #29180f, #805436);
}

.brand-video-player,
.profile-media {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: #111;
}

.brand-video-player {
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-panel,
.content-card {
  padding: 26px;
  margin-top: 24px;
}

.image-placeholder.big {
  min-height: 230px;
  display: grid;
  place-items: center;
  color: #1b100b;
  font-size: 34px;
  font-weight: 900;
}

.page-title {
  margin: 22px 0;
}

.page-title h1 {
  margin: 0 0 8px;
  font-size: 38px;
}

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

.stylist-card {
  padding: 16px;
}

.stylist-photo {
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d9a76b, #9b714d);
  margin-bottom: 14px;
  overflow: hidden;
}

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

.stylist-card h2 {
  font-size: 28px;
  margin: 0;
}

.social-row,
.button-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.social-row button,
.button-row button,
.price-item button,
.slot {
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 900;
}

.button-row .dark {
  background: #111;
  color: white;
}

.price-list {
  display: grid;
  gap: 16px;
}

.price-category {
  padding: 20px;
}

.price-item {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.site-body {
  background: #f0ede8;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.site-loading,
.site-error {
  width: min(100%, 760px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--paper, #f8f3eb);
  font-size: 22px;
  font-weight: 900;
}

.site-phone {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
}

.site-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.site-hero p {
  max-width: 560px;
}

.site-date {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted, #71695f);
  font-weight: 800;
}

.site-bottom-nav {
  position: fixed;
  width: min(100%, 430px);
  left: 50%;
  transform: translateX(-50%);
}

.brand-section {
  border-radius: 30px;
  padding: 34px;
  color: white;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}

.brand-section h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.brand-section p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
  line-height: 1.6;
}

.brand-ad-card {
  min-height: 260px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 26px;
  margin-top: 24px;
  background: linear-gradient(135deg, #d4a06d, #f4dfbb);
  position: relative;
  display: flex;
  align-items: center;
}

.brand-ad-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.brand-ad-card p:not(.eyebrow) {
  max-width: 430px;
  color: #5f5144;
  line-height: 1.6;
}

.floating-brand-button {
  position: absolute;
  right: 22px;
  bottom: 22px;
  border: 0;
  background: #111;
  color: white;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 26px;
  font-weight: 900;
}

.site-price-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.site-price-chip-grid span {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fffaf3;
  font-weight: 800;
}

.stylist-profile-card {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: var(--panel, #fffdf9);
  padding: 22px;
  display: grid;
  gap: 22px;
  margin-top: 10px;
}

.stylist-profile-media {
  width: 100%;
}

.profile-media {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.soft-note {
  margin: 12px 0 0;
  color: var(--muted, #71695f);
  font-weight: 800;
}

.profile-photo {
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
}

.stylist-profile-card h1 {
  margin: 0;
  font-size: 42px;
}

.stylist-profile-card p {
  color: var(--muted, #71695f);
  font-size: 18px;
}

.company-edit-table textarea {
  width: 280px;
  min-height: 120px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}

.company-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.44);
  display: grid;
  place-items: center;
  padding: 24px;
}

.company-popup {
  width: min(100%, 980px);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: var(--panel, #fffdf9);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.popup-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.popup-title-row h3 {
  margin: 4px 0 0;
  font-size: 30px;
}

.popup-title-row button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 50%;
  background: white;
  font-size: 26px;
  font-weight: 900;
}

.stylist-price-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.stylist-price-group {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf3;
}

.stylist-price-group-head,
.stylist-price-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.stylist-price-row {
  grid-template-columns: minmax(180px, 1fr) 120px 120px auto;
  margin-top: 10px;
}

.stylist-price-group input,
.stylist-design-popup input {
  min-height: 44px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  font-weight: 800;
}

.stylist-price-group button {
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 900;
}

.stylist-design-actions {
  position: sticky;
  bottom: -24px;
  z-index: 2;
  margin: 16px -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid var(--line, #e8d8c4);
  background: var(--panel, #fffdf9);
}

.stylist-design-actions [data-action="add-price-group"] {
  margin-right: auto;
}

.stylist-design-actions .primary-action {
  min-width: 180px;
  border-color: #111;
  background: #111;
  color: white;
}

.stylist-whatsapp-popup .connection-result {
  margin-bottom: 14px;
}

.whatsapp-switch-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

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

.reply-switch {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reply-switch input {
  width: 22px;
  height: 22px;
  margin-top: 4px;
}

.reply-switch strong,
.reply-switch small {
  display: block;
}

.reply-switch small {
  margin-top: 6px;
  color: var(--muted, #71695f);
  line-height: 1.45;
}

.reply-knowledge-panel {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffdf8;
  padding: 18px;
}

.reply-knowledge-panel h3,
.reply-knowledge-panel h4 {
  margin: 0 0 10px;
}

.reply-knowledge-panel p {
  margin: 0 0 14px;
  color: var(--muted, #71695f);
  line-height: 1.55;
}

.reply-knowledge-panel textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
  padding: 14px;
  font-weight: 700;
  line-height: 1.5;
  resize: vertical;
}

.reply-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.knowledge-entry,
.reply-conflict-card {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
  padding: 14px;
  margin-bottom: 10px;
}

.knowledge-entry strong,
.knowledge-entry span,
.reply-conflict-card strong,
.reply-conflict-card span {
  display: block;
}

.knowledge-entry span,
.reply-conflict-card span {
  color: var(--muted, #71695f);
  margin-top: 6px;
  line-height: 1.5;
}

.reply-conflict-card.warn {
  border-color: #e8c889;
  background: #fff8e8;
}

.reply-conflict-card.danger {
  border-color: #e29a87;
  background: #fff1ec;
}

.reply-confirm-line {
  margin-top: 12px;
}

.company-reply-layout {
  margin-top: 18px;
}

.company-reply-rule p {
  display: grid;
  gap: 6px;
}

.company-reply-rule p b,
.company-reply-rule p span {
  display: block;
}

.company-reply-rule p span {
  color: var(--muted, #71695f);
  line-height: 1.5;
}

.company-reply-conflicts {
  margin-top: 18px;
}

.company-reply-conflicts h4 {
  margin: 0 0 10px;
}

.pending-grid {
  display: grid;
  gap: 14px;
}

.pending-config-row {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 16px;
  background: #fffdf8;
  display: grid;
  grid-template-columns: 1.2fr 140px minmax(180px, 1fr) minmax(240px, 1.4fr);
  gap: 12px;
  align-items: end;
}

.pending-config-row strong,
.pending-config-row span {
  display: block;
}

.pending-config-row span {
  color: var(--muted, #71695f);
  margin-top: 6px;
}

.pending-config-row label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.pending-config-row input,
.pending-config-row select {
  min-height: 44px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  font-weight: 800;
}

.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: var(--panel, #fffdf9);
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 18px;
}

.desktop-header.compact {
  align-items: center;
}

.desktop-header h1 {
  font-size: 42px;
  margin: 6px 0 10px;
}

.desktop-header p:not(.eyebrow) {
  color: var(--muted, #71695f);
  max-width: 760px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.toolbar input {
  min-width: 280px;
  border-radius: 8px;
}

.toolbar .active-filter {
  background: #111;
  color: white;
}

.table-card {
  overflow: auto;
  padding: 12px;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line, #e8d8c4);
  padding: 14px 10px;
  white-space: nowrap;
  background: var(--panel, #fffdf9);
}

th {
  color: #4f493f;
  font-size: 13px;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 98px;
  box-shadow: 1px 0 0 var(--line, #e8d8c4);
}

th:last-child,
td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 96px;
  box-shadow: -1px 0 0 var(--line, #e8d8c4);
}

th:first-child,
th:last-child {
  z-index: 4;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--line, #e8d8c4);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status.ok {
  color: var(--ok, #1d8d5a);
  background: #eefaf3;
}

.status.warn {
  color: var(--warn, #ad741b);
  background: #fff8e8;
}

.status.bad {
  color: var(--bad, #c84630);
  background: #fff1ef;
}

.status.idle {
  color: #777;
  background: #f2f2f2;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  padding: 8px 12px;
  background: white;
  font-weight: 800;
}

.light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #999;
}

.light.ok {
  background: var(--ok, #1d8d5a);
}

.light.warn {
  background: var(--warn, #ad741b);
}

.light.bad {
  background: var(--bad, #c84630);
}

.light.idle {
  background: #9b9b9b;
}

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

.row-actions button {
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  border-radius: 8px;
  min-height: 36px;
  font-weight: 800;
}

.table-action {
  border: 0;
  background: #111;
  color: white;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 16px;
  font-weight: 900;
}

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

.metric-grid article {
  padding: 20px;
}

.metric-grid strong {
  display: block;
  font-size: 30px;
}

.metric-grid span {
  color: var(--muted, #71695f);
}

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

.settings-grid button {
  border-radius: 8px;
  background: white;
  color: #111;
  border: 1px solid var(--line, #e8d8c4);
}

.settings-grid button.strong,
.settings-grid button:hover {
  background: #111;
  color: white;
}

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

.hidden {
  display: none;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
}

.day-column {
  background: var(--panel, #fffdf9);
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 16px;
  min-height: 220px;
}

.day-column button {
  width: 100%;
  border: 0;
  background: #111;
  color: white;
  border-radius: 8px;
  min-height: 44px;
  font-weight: 900;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.step-tabs button {
  border-radius: 8px;
  font-size: 24px;
}

.step-tabs button.active {
  background: #111;
  color: white;
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

.booking-box {
  padding: 22px;
  margin-bottom: 18px;
}

.service-row {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.service-row.selected {
  border-color: #d9a041;
  background: #fff9ee;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.slot {
  min-height: 66px;
  border-radius: 8px;
  color: var(--accent, #2176d9);
}

.slot.booked {
  background: #b8c7ff;
  color: #26356b;
}

.slot.used {
  border: 3px solid #111;
  color: #111;
}

.sticky-confirm {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 16px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 9;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  width: min(100%, 980px);
  max-height: 88vh;
  overflow: auto;
  background: var(--panel, #fffdf9);
  border-radius: 8px;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 34px;
}

.modal h2 {
  font-size: 34px;
  margin: 0 0 16px;
}

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

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-action-grid button {
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  color: #111;
  border-radius: 8px;
  min-height: 54px;
  padding: 0 12px;
  font-weight: 900;
}

.admin-action-grid button:hover {
  background: #111;
  color: white;
}

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

.log-line {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  gap: 12px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 14px;
  align-items: center;
}

.log-line span {
  color: var(--muted, #71695f);
}

.log-line em {
  color: var(--muted, #71695f);
  font-style: normal;
  text-align: right;
}

.connection-form,
.storage-form {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  background: #fffaf3;
}

.connection-section {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  background: #fffdf8;
}

.connection-section h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.connection-section > p {
  margin: 0;
  color: var(--muted, #71695f);
}

.connection-form h3,
.storage-form h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.config-field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.config-field input {
  min-height: 44px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
}

.connection-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
}

.connection-result p {
  margin: 0;
  color: var(--muted, #71695f);
}

.qr-panel {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 18px;
  margin-top: 14px;
  background: white;
}

.qr-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.qr-panel p {
  color: var(--muted, #71695f);
  line-height: 1.5;
}

.qr-box {
  min-height: 220px;
  border: 1px dashed var(--line, #e8d8c4);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background: #fffdf9;
}

.qr-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border: 12px solid white;
  box-shadow: 0 0 0 1px var(--line, #e8d8c4);
}

.frontdesk-workspace {
  display: grid;
  gap: 16px;
}

.draft-list {
  display: grid;
  gap: 12px;
}

.draft-card {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.2fr 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

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

.draft-card span {
  color: var(--muted, #71695f);
  line-height: 1.4;
}

.b-workspace,
.b-panel-head {
  display: grid;
  gap: 16px;
}

.b-panel-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.b-panel-head h3 {
  margin: 0;
  font-size: 30px;
}

.b-calendar-scroll,
.b-schedule-scroll {
  overflow-x: auto;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
}

.b-calendar-grid {
  display: grid;
  grid-template-columns: 88px repeat(var(--b-stylist-count, 3), minmax(148px, 1fr));
}

.b-calendar-cell,
.b-schedule-cell {
  min-height: 70px;
  border-right: 1px solid var(--line, #e8d8c4);
  border-bottom: 1px solid var(--line, #e8d8c4);
  padding: 10px;
  background: #fffdf9;
}

.b-calendar-head {
  min-height: 74px;
  background: #ffffff;
  font-weight: 800;
}

.b-calendar-head strong,
.b-calendar-head span,
.b-stylist-name strong,
.b-stylist-name span {
  display: block;
}

.b-calendar-head span,
.b-stylist-name span,
.b-empty-slot {
  color: var(--muted, #71695f);
  font-size: 13px;
}

.b-time-cell {
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #ffffff;
}

.b-slot-cell {
  min-height: 90px;
}

.b-empty-slot {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.b-booking-card {
  display: grid;
  gap: 4px;
  border-left: 5px solid #72c421;
  border-radius: 7px;
  background: #d8f0b9;
  padding: 8px;
  color: #202020;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.b-booking-card.cancelled {
  border-left-color: #d94a38;
  background: #f7c5c8;
}

.b-booking-card strong,
.b-booking-card span {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.b-schedule-grid {
  display: grid;
  grid-template-columns: 180px repeat(var(--b-schedule-days, 7), minmax(150px, 1fr));
  min-width: 1120px;
}

.b-stylist-name {
  background: #ffffff;
}

.b-schedule-cell.working {
  background: #e7f5d7;
  color: #257114;
  font-weight: 800;
}

.b-schedule-cell.rest {
  background: #f5f1ea;
  color: var(--muted, #71695f);
  font-weight: 800;
}

body.frontdesk-mode .b-schedule-cell input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d6dcea;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 10px;
  font-weight: 800;
}

body.frontdesk-mode .b-schedule-scroll.mase_primary .b-schedule-cell {
  cursor: default;
}

body.frontdesk-mode .b-schedule-cell.editable {
  display: grid;
  gap: 8px;
  align-content: start;
}

body.frontdesk-mode .b-schedule-cell.editable button,
body.frontdesk-mode .b-schedule-actions button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

body.frontdesk-mode .b-schedule-cell.editable.rest button {
  color: #3156f5;
}

body.frontdesk-mode .b-schedule-cell.editable.working button {
  color: #9f1239;
}

body.frontdesk-mode .b-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.frontdesk-mode .b-schedule-actions button {
  padding: 0 14px;
}

body.frontdesk-mode .b-schedule-actions .primary-action {
  background: #111;
  color: #ffffff;
  border-color: #111;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
}

.stylist-save-strip {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: 14px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 -8px 24px rgba(30, 20, 10, 0.08);
}

.stylist-display-editor {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.permission-panel {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 16px;
  background: #fffaf3;
}

.permission-panel h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.permission-panel p {
  margin: 0 0 12px;
  color: var(--muted, #71695f);
}

.stylist-avatar-editor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: end;
}

.stylist-avatar-preview {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e4bc8d, #a87a52);
  color: #111111;
  font-weight: 900;
  overflow: hidden;
}

.stylist-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.upload-inline input[type="file"] {
  min-height: auto;
  padding: 9px;
  flex: 1 1 220px;
}

.upload-inline button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line, #e8d8c4);
  background: #fffaf3;
  font-weight: 900;
}

.field-card {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 14px;
}

.field-card strong {
  display: block;
  margin-bottom: 6px;
}

body.frontdesk-mode {
  background: #f4f5f7;
}

body.frontdesk-mode .company-shell {
  grid-template-columns: 210px minmax(0, 1fr);
}

body.frontdesk-mode .side-panel {
  background: #2f55ee;
  border-right: 0;
}

body.frontdesk-mode .side-link {
  border-color: rgba(255, 255, 255, 0.14);
}

body.frontdesk-mode .side-link.active {
  background: rgba(0, 0, 0, 0.16);
  color: #ffffff;
}

body.frontdesk-mode .main-stage {
  display: block;
  padding: 28px 28px 22px;
}

body.frontdesk-mode .desktop-route {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.frontdesk-mode .desktop-header {
  display: none;
}

body.frontdesk-mode .company-panel-card {
  padding: 0;
  border: 0;
  background: transparent;
}

body.frontdesk-mode #role-panel-eyebrow,
body.frontdesk-mode #role-panel-title {
  display: none;
}

body.frontdesk-mode #role-panel-grid {
  display: block;
}

body.frontdesk-mode .b-workspace {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
}

body.frontdesk-mode .b-mase-toolbar {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 170px 42px 120px 42px 260px 42px 78px minmax(20px, 1fr) 84px 124px 116px 92px;
  gap: 12px;
  align-items: center;
}

body.frontdesk-mode .b-mase-toolbar strong {
  font-size: 20px;
}

body.frontdesk-mode .b-mode-badge {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf3ff;
  color: #2650d8;
  font-weight: 900;
  font-size: 13px;
  padding: 0 12px;
  white-space: nowrap;
}

body.frontdesk-mode .b-rule-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe5ff;
  border-radius: 10px;
  background: #f7faff;
  padding: 12px 16px;
}

body.frontdesk-mode .b-rule-strip strong {
  color: #2650d8;
}

body.frontdesk-mode .b-rule-strip span {
  color: #4d5668;
  line-height: 1.45;
}

body.frontdesk-mode .b-schedule-filter {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}

body.frontdesk-mode .b-schedule-filter label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

body.frontdesk-mode .b-schedule-filter input,
body.frontdesk-mode .b-schedule-filter select {
  min-height: 44px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  font-weight: 800;
}

body.frontdesk-mode .b-schedule-filter span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted, #71695f);
  font-weight: 800;
}

body.frontdesk-mode .b-mase-toolbar button,
body.frontdesk-mode .b-mase-toolbar select,
body.frontdesk-mode .b-legend button {
  min-height: 42px;
  border: 1px solid #e0e4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #2b3345;
  font-weight: 800;
  padding: 0 14px;
}

body.frontdesk-mode .b-date-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.frontdesk-mode .b-mase-toolbar select {
  width: 120px;
}

body.frontdesk-mode .b-icon-button {
  width: 42px;
  padding: 0;
}

body.frontdesk-mode .b-date-button {
  color: #1f4df5;
}

body.frontdesk-mode .b-today-button,
body.frontdesk-mode .b-add-button {
  background: #3156f4;
  border-color: #3156f4;
  color: #ffffff;
}

body.frontdesk-mode .b-pill-button.active {
  background: #3156f4;
  border-color: #3156f4;
  color: #ffffff;
}

body.frontdesk-mode .b-calendar-scroll,
body.frontdesk-mode .b-schedule-scroll {
  min-height: 0;
  height: calc(100vh - 172px);
  overflow: auto;
  border-radius: 12px;
  background: #ffffff;
}

body.frontdesk-mode .b-calendar-grid {
  grid-template-columns: 110px 150px repeat(var(--b-stylist-count, 3), minmax(150px, 1fr));
}

body.frontdesk-mode .b-calendar-cell {
  min-height: 92px;
  background: #ffffff;
  border-color: #e8ebf1;
}

body.frontdesk-mode .b-calendar-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 88px;
  text-align: center;
  background: #ffffff;
}

body.frontdesk-mode .b-time-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  align-content: start;
  justify-items: center;
  padding-top: 12px;
  color: #555f70;
}

body.frontdesk-mode .b-arrival-head {
  left: 110px;
  z-index: 4;
}

body.frontdesk-mode .b-time-head {
  left: 0;
  z-index: 5;
}

body.frontdesk-mode .b-avatar {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce4f4;
  color: #33415f;
  font-size: 13px;
  font-weight: 900;
}

body.frontdesk-mode .b-slot-cell {
  min-height: 92px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, rgba(232, 235, 241, 0.55) 24px);
}

body.frontdesk-mode .b-slot-available {
  background-color: #ffffff;
}

body.frontdesk-mode .b-slot-rest {
  background-color: #f1f3f6;
  background-image: repeating-linear-gradient(135deg, rgba(145, 153, 166, 0.18) 0, rgba(145, 153, 166, 0.18) 4px, transparent 4px, transparent 9px);
}

body.frontdesk-mode .b-slot-booked {
  background-color: #d8f1b9;
}

body.frontdesk-mode .b-slot-loading,
body.frontdesk-mode .b-slot-unknown {
  background-color: #f8fafc;
}

body.frontdesk-mode .b-slot-cell[data-action="b-open-slot"] {
  cursor: pointer;
}

body.frontdesk-mode .b-slot-cell[data-action="b-open-slot"]:hover {
  background-color: #f3f7ff;
  box-shadow: inset 0 0 0 2px #3156f5;
}

body.frontdesk-mode .b-arrival-slot {
  position: sticky;
  left: 110px;
  z-index: 3;
  background-color: #fffaf0;
}

body.frontdesk-mode .b-empty-slot {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  color: transparent;
  border-radius: 8px;
  font-weight: 900;
}

body.frontdesk-mode .b-slot-cell[data-action="b-open-slot"]:hover .b-empty-slot {
  color: #3156f5;
  background: rgba(49, 86, 245, 0.08);
}

body.frontdesk-mode .b-booking-card {
  border-left: 0;
  border-top: 5px solid #6cca17;
  border-radius: 7px;
  padding: 8px;
  background: #d8f1b9;
  overflow: hidden;
}

body.frontdesk-mode .b-booking-card.cancelled {
  border-top-color: #f12c4f;
  background: #f8b5c0;
}

body.frontdesk-mode .b-legend {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid #e0e4ee;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(36, 48, 78, 0.08);
}

body.frontdesk-mode .b-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d5668;
  font-weight: 700;
}

body.frontdesk-mode .b-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

body.frontdesk-mode .b-legend .not-arrived { background: #ff2d55; }
body.frontdesk-mode .b-legend .arrived { background: #11c777; }
body.frontdesk-mode .b-legend .paid { background: #7aa7ff; }
body.frontdesk-mode .b-legend .cancelled { background: #ff4d55; }
body.frontdesk-mode .b-legend .occupied { background: #7bd619; }
body.frontdesk-mode .b-legend .available { background: #ffffff; border: 1px solid #cbd5e1; }
body.frontdesk-mode .b-legend .rest { background: #d1d5db; }

body.frontdesk-mode .b-schedule-grid {
  min-width: max(1280px, calc(180px + (var(--b-schedule-days, 7) * 150px)));
}

body.frontdesk-mode .b-list-panel {
  height: calc(100vh - 172px);
  overflow: auto;
  border: 1px solid #e0e4ee;
  border-radius: 12px;
  background: #ffffff;
  padding: 18px;
}

body.frontdesk-mode .b-list-panel h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

body.frontdesk-mode .b-list-row {
  display: grid;
  grid-template-columns: 110px 1.2fr 1fr 1.3fr 120px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #e8ebf1;
}

body.frontdesk-mode .b-add-modal {
  width: min(760px, calc(100vw - 40px));
}

@media (max-width: 980px) {
  .app-shell,
  .company-shell {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-mark,
  .side-note {
    grid-column: 1 / -1;
  }

  .main-stage {
    padding: 0;
  }

  .floating-action {
    right: 26px;
  }

  .metric-grid,
  .settings-grid,
  .week-grid,
  .admin-database-strip,
  .admin-quick-grid,
  .company-role-grid,
  .company-kpi-grid,
  .a-summary-grid,
  .news-preview-grid,
  .reply-switch-grid,
  .reply-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-data-row {
    grid-template-columns: 56px 1fr;
  }
}

@media (max-width: 620px) {
  .admin-database-strip {
    grid-template-columns: 1fr;
  }

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

  .reply-switch-grid,
  .reply-preview-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    padding: 22px 16px 100px;
  }

  .hero {
    border-radius: 24px;
    padding: 34px 22px;
  }

  .hero h1,
  .desktop-header h1,
  .page-title h1 {
    font-size: 32px;
  }

  .news-tabs,
  .stylist-grid,
  .slot-grid,
    .modal-grid,
    .config-grid,
    .admin-action-grid,
    .company-role-grid,
    .company-kpi-grid,
    .a-summary-grid,
    .form-grid,
    .editable-row,
    .news-preview-grid,
    .log-line,
    .pending-config-row,
    .stylist-price-group-head,
    .stylist-price-row,
    .draft-card {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 92px 1fr;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }
}

.site-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #e0b27d, #9d734c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.brand-story-card {
  position: relative;
  min-height: 260px;
}

.brand-floating-action {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 112px;
  min-height: 72px;
  border-radius: 999px;
  border: 0;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.soft-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted, #71695f);
  font-weight: 800;
}

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

.portfolio-tile {
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, #e7bb84, #f7dfb9);
  overflow: hidden;
}

.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gst-note {
  margin: 18px 0 84px;
  color: var(--muted, #71695f);
  font-size: 13px;
  text-align: left;
}

.safe-floating-action {
  right: max(24px, calc((100vw - 720px) / 2 + 24px));
  bottom: 88px;
}

.booking-flow {
  display: grid;
  gap: 18px;
  padding-bottom: 116px;
}

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

.booking-tabs button,
.month-row button,
.booking-bottom-bar button,
.month-picker button,
.booking-page button {
  min-height: 58px;
  border-radius: 20px;
  border: 1px solid var(--line, #e8d8c4);
  background: #ffffff;
  color: #1976d2;
  font-weight: 900;
  font-size: 18px;
}

.booking-tabs button.active,
.month-row button.active,
.booking-bottom-bar button.dark,
.month-picker button.active,
.booking-page button.dark,
.time-slot.selected {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.booking-card {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 24px;
  background: #ffffff;
  padding: 22px;
}

.selected-strip {
  border: 1px solid #efc26b;
  border-radius: 18px;
  background: #fff6e5;
  color: #8a5a19;
  padding: 14px 18px;
}

.booking-category {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
}

.booking-category-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 0;
  background: #ffffff;
  padding: 16px 18px;
  text-align: left;
}

.booking-category-head strong,
.booking-service-row strong {
  font-size: 20px;
}

.booking-service-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line, #e8d8c4);
  padding: 14px;
}

.booking-category:not(.open) .booking-service-list {
  display: none;
}

.booking-service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 18px;
  background: #fffdf8;
  padding: 14px;
}

.booking-service-row button,
.booking-service-row button.selected {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  background: #ffffff;
  padding: 12px 16px;
  font-weight: 900;
}

.booking-service-row button.selected {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-chips span,
.summary-line {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fffdf8;
  font-weight: 800;
}

.booking-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  align-items: center;
  margin: 0 -22px -116px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line, #e8d8c4);
}

.month-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
}

.date-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.date-chip,
.date-strip button {
  min-width: 82px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 22px;
  background: #ffffff;
  padding: 12px 10px;
  color: #1976d2;
  font-weight: 900;
}

.date-chip.active,
.date-strip button.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.booking-time-section h1 {
  margin: 10px 0;
  font-size: 42px;
}

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

.time-slot {
  min-height: 58px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 16px;
  background: #ffffff;
  color: #1976d2;
  font-weight: 900;
}

.time-slot.booked {
  background: #b7c8f5;
  border-color: #7f96dc;
  color: #23335f;
}

.time-slot.rest {
  background: #eeeeee;
  color: #909090;
}

.time-slot small {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.booking-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, 0.35);
}

.month-picker {
  width: min(720px, 100%);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  padding: 22px;
}

.month-picker-head {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 10px;
  align-items: center;
  text-align: center;
}

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

.wide-button {
  width: 100%;
}

.booking-summary {
  display: grid;
  gap: 12px;
}

.summary-line {
  border-radius: 18px;
  display: grid;
  gap: 4px;
}

.summary-line span {
  color: var(--muted, #71695f);
}

.site-phone.booking-page {
  width: min(100%, 430px);
  padding-bottom: 190px;
}

.site-phone.booking-page .site-bottom-nav {
  width: min(100%, 430px);
}

.site-phone.booking-page .booking-flow {
  padding-bottom: 190px;
}

.site-phone.booking-page .booking-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 86px;
  width: min(100%, 430px);
  transform: translateX(-50%);
  margin: 0;
  padding: 16px 22px;
}

@media (max-width: 620px) {
  .booking-tabs,
  .month-row,
  .booking-bottom-bar {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .safe-floating-action {
    right: 18px;
  }
}

@media (max-width: 980px) {
  body.frontdesk-mode .company-shell {
    grid-template-columns: 210px minmax(980px, 1fr);
  }

  body.frontdesk-mode .side-panel {
    position: sticky;
    height: 100vh;
    display: flex;
  }

  body.frontdesk-mode .main-stage {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .site-phone {
    width: min(100%, 430px);
    padding: 16px 12px 104px;
  }

  .site-phone .site-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .site-phone .pill-button {
    max-width: none;
    min-height: 40px;
    font-size: 13px;
  }

  .site-phone .site-hero-image {
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }

  .site-phone .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .site-phone .hero-arrow.left {
    left: 10px;
  }

  .site-phone .hero-arrow.right {
    right: 10px;
  }

  .site-phone .news-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-phone .stylist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-phone .news-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .site-phone .site-bottom-nav,
  .site-phone.booking-page .site-bottom-nav,
  .site-phone.booking-page .booking-bottom-bar {
    width: min(100%, 430px);
  }

  .site-phone .safe-floating-action {
    right: max(14px, calc((100vw - 430px) / 2 + 14px));
  }
}

body.mobile-role-mode {
  background: #f0ede8;
}

body.mobile-role-mode .company-shell {
  width: min(100vw, 430px);
  min-width: 320px;
  min-height: 100vh;
  margin: 0 auto;
  display: block;
  background: var(--paper, #f8f3eb);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.mobile-role-mode .side-panel {
  display: none;
}

body.mobile-role-mode .brand-mark {
  margin-bottom: 8px;
}

body.mobile-role-mode .brand-dot {
  width: 48px;
  height: 48px;
}

body.mobile-role-mode .side-link {
  min-height: 48px;
  font-size: 18px;
}

body.mobile-role-mode .main-stage {
  display: block;
  padding: 0;
}

body.mobile-role-mode .desktop-route {
  width: 100%;
  padding: 0;
}

body.mobile-role-mode .desktop-header {
  display: none;
}

body.mobile-role-mode .company-panel-card {
  border: 0;
  border-radius: 0;
  padding: 18px;
  background: var(--paper, #f8f3eb);
}

body.mobile-role-mode #role-panel-eyebrow {
  font-size: 12px;
  color: var(--muted, #71695f);
}

body.mobile-role-mode #role-panel-title {
  font-size: 26px;
  margin-bottom: 14px;
}

body.mobile-role-mode .company-role-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.mobile-role-mode .company-role-card {
  min-height: 110px;
  padding: 18px;
}

body.mobile-role-mode .company-role-card strong {
  font-size: 20px;
}

body.mobile-role-mode .company-role-card span {
  font-size: 15px;
}

body.mobile-role-mode .mobile-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body:not(.mobile-role-mode) .mobile-workspace {
  max-width: 430px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body:not(.mobile-role-mode) .mobile-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:not(.mobile-role-mode) .mobile-card,
body:not(.mobile-role-mode) .mobile-kpi-row article {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffaf3;
  padding: 16px;
}

body:not(.mobile-role-mode) .mobile-card {
  display: grid;
  gap: 12px;
}

body:not(.mobile-role-mode) .mobile-card label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

body:not(.mobile-role-mode) .mobile-card input,
body:not(.mobile-role-mode) .mobile-card select,
body:not(.mobile-role-mode) .mobile-card textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

body:not(.mobile-role-mode) .mobile-list,
body:not(.mobile-role-mode) .mobile-slot-box,
body:not(.mobile-role-mode) .mobile-card {
  display: grid;
  gap: 10px;
}

body:not(.mobile-role-mode) .mobile-list-item,
body:not(.mobile-role-mode) .mobile-empty,
body:not(.mobile-role-mode) .schedule-chip {
  border: 1px solid rgba(224, 199, 162, 0.85);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

body:not(.mobile-role-mode) .mobile-schedule-grid,
body:not(.mobile-role-mode) .mobile-slot-grid,
body:not(.mobile-role-mode) .mobile-action-row,
body:not(.mobile-role-mode) .mobile-social-grid,
body:not(.mobile-role-mode) .mobile-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.mobile-role-mode .mobile-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.mobile-role-mode .mobile-kpi-row article,
body.mobile-role-mode .mobile-card {
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: #fffaf3;
  padding: 16px;
}

body.mobile-role-mode .mobile-kpi-row span,
body.mobile-role-mode .mobile-card span,
body.mobile-role-mode .mobile-list-item small {
  color: var(--muted, #71695f);
  line-height: 1.45;
}

body.mobile-role-mode .mobile-kpi-row strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

body.mobile-role-mode .mobile-card {
  display: grid;
  gap: 12px;
}

body.mobile-role-mode .mobile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.mobile-role-mode .mobile-card-head strong,
body.mobile-role-mode .mobile-card > strong {
  font-size: 20px;
}

body.mobile-role-mode .mobile-card button,
body.mobile-role-mode .mobile-card .primary-action {
  min-height: 46px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  background: white;
  padding: 0 16px;
  font-weight: 900;
}

body.mobile-role-mode .mobile-card .primary-action {
  border-color: #111;
  background: #111;
  color: white;
}

body.mobile-role-mode .mobile-card .primary-action:disabled {
  opacity: 0.45;
}

body.mobile-role-mode .mobile-card label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

body.mobile-role-mode .mobile-card input,
body.mobile-role-mode .mobile-card select,
body.mobile-role-mode .mobile-card textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

body.mobile-role-mode .mobile-card textarea {
  min-height: 104px;
  resize: vertical;
}

body.mobile-role-mode .mobile-social-grid,
body.mobile-role-mode .mobile-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.mobile-role-mode .mobile-schedule-grid,
body.mobile-role-mode .mobile-slot-grid,
body.mobile-role-mode .mobile-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.mobile-role-mode .schedule-chip {
  border: 1px solid rgba(224, 199, 162, 0.85);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

body.mobile-role-mode .schedule-chip strong,
body.mobile-role-mode .schedule-chip span {
  display: block;
}

body.mobile-role-mode .mobile-slot-box {
  display: grid;
  gap: 10px;
}

body.mobile-role-mode .mobile-slot-grid button,
body.mobile-role-mode .mobile-action-row button {
  min-height: 40px;
  border-radius: 8px;
}

body.mobile-role-mode .mobile-list {
  display: grid;
  gap: 10px;
}

body.mobile-role-mode .mobile-list-item,
body.mobile-role-mode .mobile-empty {
  border: 1px solid rgba(224, 199, 162, 0.85);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

body.mobile-role-mode .mobile-list-item strong,
body.mobile-role-mode .mobile-list-item span,
body.mobile-role-mode .mobile-list-item small {
  display: block;
}

.c-app-shell {
  width: min(100%, 430px);
  min-height: calc(100vh - 28px);
  margin: 0 auto;
  background: #fff;
  color: #1f1f29;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 24, 52, 0.08);
  padding-bottom: 74px;
}

body:not(.mobile-role-mode) .c-app-shell {
  border: 1px solid rgba(224, 199, 162, 0.85);
  border-radius: 8px;
  min-height: 760px;
}

.c-purple-head {
  background: #6652f0;
  color: white;
  padding: 24px 16px 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.c-purple-head strong {
  display: block;
  font-size: 27px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.c-purple-head button,
.c-head-actions button {
  color: white;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.c-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.c-day-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 14px 16px;
  background: #fff;
  border-bottom: 1px solid #edf0f7;
}

.c-day-strip button {
  min-width: 66px;
  min-height: 76px;
  border: 1px solid #e5e7ef;
  border-radius: 12px;
  background: white;
  display: grid;
  place-items: center;
  color: #222;
  font-weight: 800;
  flex: 0 0 auto;
}

.c-day-strip button.today {
  border-color: #7a68ff;
  background: #f3f1ff;
  color: #4f3ee7;
}

.c-day-strip button.active {
  background: #6652f0;
  border-color: #6652f0;
  color: white;
}

.c-day-strip span,
.c-day-strip small {
  color: inherit;
  opacity: 0.75;
}

.c-calendar-scroll {
  height: calc(100vh - 250px);
  min-height: 520px;
  overflow: auto;
  background: #f8f9fd;
}

.c-single-calendar {
  display: grid;
  grid-template-columns: var(--c-time-width, 58px) var(--c-staff-width, 126px) minmax(180px, 1fr);
  min-width: calc(var(--c-time-width, 58px) + var(--c-staff-width, 126px) + 220px);
  background: white;
}

.c-single-calendar.no-arrival {
  grid-template-columns: var(--c-time-width, 58px) minmax(220px, 1fr);
}

.c-single-calendar .c-cal-head,
.c-time-cell,
.c-slot-cell,
.c-empty-cell {
  border-right: 1px solid #dfe4f0;
  border-bottom: 1px solid #dfe4f0;
}

.c-cal-head {
  height: 74px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  background: #fbfcff;
}

.c-time-cell {
  min-height: 96px;
  display: grid;
  place-items: start center;
  padding-top: 16px;
  color: #555966;
  font-size: 20px;
  font-weight: 800;
}

.c-slot-cell {
  min-height: 96px;
  padding: 8px;
  background-image: linear-gradient(to bottom, transparent 0, transparent 23px, #eef1f6 24px);
  background-size: 100% 24px;
}

.c-empty-cell {
  width: 100%;
  min-height: 96px;
  border-top: 0;
  border-left: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.18);
  font-size: 22px;
}

.c-empty-cell.arrival {
  background: #fbfcff;
}

.c-mase-slot {
  width: 100%;
  min-height: 82px;
  border-radius: 8px;
  border: 1px solid #d8dde9;
  background: #eef1f5;
  color: #626b7a;
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 4px;
  font-weight: 900;
}

.c-mase-slot.booked,
.c-mase-slot.blocked {
  background: #d8f1bb;
  border-color: #b8df95;
  color: #285a13;
  box-shadow: inset 0 7px 0 #5bc800;
}

.c-mase-slot.rest,
.c-mase-slot.loading {
  background: #f1f2f4;
  color: #8b929d;
}

.c-mase-slot.error {
  background: #fff0f0;
  border-color: #f0b3b3;
  color: #b42318;
}

.c-mase-slot span {
  font-size: 13px;
}

.c-no-slots {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-weight: 900;
  background: #fff;
  border-bottom: 1px solid #dfe4f0;
}

.c-availability-note {
  margin: 10px 14px 84px;
  border: 1px solid #dbe7ff;
  background: #f5f9ff;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 4px;
  color: #345078;
}

.c-availability-note.ok {
  border-color: #bae6cd;
  background: #f0fdf4;
  color: #166534;
}

.c-availability-note.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

.c-availability-note.loading {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.c-booking-card {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #f8b9c4;
  color: #1e1e1e;
  text-align: left;
  padding: 6px 8px 10px;
  display: grid;
  gap: 3px;
  box-shadow: inset 0 7px 0 #f3274e;
  font-weight: 800;
}

.c-booking-card.hold {
  background: #d8f1bb;
  box-shadow: inset 0 7px 0 #5bc800;
}

.c-booking-card b {
  font-size: 17px;
}

.c-booking-card span,
.c-booking-card small {
  display: block;
  color: #444;
}

.c-float-add {
  position: absolute;
  right: 18px;
  bottom: 92px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: #6652f0;
  color: white;
  font-size: 34px;
  box-shadow: 0 10px 22px rgba(56, 42, 183, 0.3);
}

.c-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  border-top: 1px solid #e9ecf3;
  background: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.c-bottom-nav button {
  border: 0;
  background: transparent;
  color: #7b8190;
  font-weight: 900;
  font-size: 15px;
}

.c-bottom-nav button.active {
  color: #6652f0;
}

.c-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 10;
  display: grid;
  align-items: end;
}

.c-bottom-sheet {
  background: white;
  border-radius: 22px 22px 0 0;
  padding: 18px 20px 28px;
  min-height: 270px;
}

.c-bottom-sheet.display {
  display: grid;
  gap: 16px;
}

.c-sheet-actions,
.c-sheet-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 900;
}

.c-sheet-actions button,
.c-sheet-title button {
  border: 0;
  background: transparent;
  color: #6652f0;
  font: inherit;
  font-weight: 900;
}

.c-picker-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.c-picker-columns select,
.c-bottom-sheet input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #e0e4ef;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
}

.c-bottom-sheet label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.c-bottom-sheet input[type="range"] {
  min-height: auto;
  padding: 0;
}

.c-switch-line {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.c-simple-page {
  min-height: 620px;
  padding: 24px 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.c-salary-frame {
  width: 100%;
  height: 610px;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  background: white;
}

.c-attendance-page {
  min-height: 690px;
  background: #f8f9fd;
  padding-bottom: 72px;
}

.c-att-head {
  height: 132px;
  padding: 42px 24px 0;
  background: #6652f0;
  color: white;
  font-size: 26px;
  font-weight: 900;
}

.c-staff-card {
  margin: -22px 16px 16px;
  border-radius: 8px;
  background: white;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(60, 60, 100, 0.08);
}

.c-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #efc387;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
}

.c-staff-card strong,
.c-staff-card span {
  display: block;
}

.c-staff-card strong {
  font-size: 24px;
}

.c-staff-card span,
.c-wifi-line,
.c-clock-panel p {
  color: #6f7380;
}

.c-wifi-line {
  padding: 0 16px 12px;
}

.c-clock-panel {
  margin: 0 16px;
  border-radius: 8px;
  background: white;
  padding: 16px;
  min-height: 430px;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.c-clock-times {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.c-clock-times article {
  background: #f3f4f9;
  padding: 16px;
  min-height: 104px;
}

.c-clock-times b,
.c-clock-times strong,
.c-clock-times span {
  display: block;
  color: #090909;
}

.c-clock-times strong {
  font-size: 24px;
}

.c-clock-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0;
}
.c-clock-button {
  width: 130px;
  height: 130px;
  border: 0;
  border-radius: 50%;
  background: #6652f0;
  color: white;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1.3;
}
.c-clock-button.done {
  background: #1d8d5a;
}
.c-clock-button:active {
  opacity: 0.8;
}

.c-att-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  height: 62px;
  background: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #edf0f7;
}

.c-att-tabs button {
  border: 0;
  background: transparent;
  color: #7b8190;
  font-weight: 900;
}

.c-att-tabs button.active {
  color: #6652f0;
}

.c-stat-list {
  margin: 0 16px;
  border-radius: 8px;
  background: white;
  padding: 6px 20px;
}

.c-stat-list div {
  min-height: 62px;
  border-bottom: 1px solid #eef0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.c-attendance-page .mobile-schedule-grid {
  margin: 0 16px;
  background: white;
  border-radius: 8px;
  padding: 16px;
}

.c-social-card {
  gap: 14px;
}

.c-social-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  align-items: center;
}

.c-social-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  white-space: nowrap;
}

.c-social-check input {
  width: 20px !important;
  min-height: 20px !important;
  height: 20px;
}

.c-social-row > input {
  min-height: 44px;
}

.c-logout-button {
  min-height: 52px;
  border: 1px solid #e0e4ef;
  border-radius: 999px;
  background: white;
  color: #444;
  font: inherit;
  font-weight: 900;
}

.c-booking-sheet {
  min-height: 300px;
}

.c-booking-detail {
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 6px;
  background: #fbfcff;
}

.c-booking-detail strong {
  font-size: 22px;
}

.c-booking-detail span,
.c-booking-detail small,
.c-booking-detail em {
  color: #555966;
  font-style: normal;
  font-weight: 800;
}

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

.c-status-grid button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #6652f0;
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.c-status-grid button:nth-child(3),
.c-status-grid button:nth-child(4) {
  background: #101010;
}

.c-salary-summary small {
  color: #7b8190;
  font-weight: 800;
}


.d-app-shell {
  width: min(100%, 430px);
  min-height: calc(100vh - 28px);
  margin: 0 auto;
  background: #fff;
  color: #24242c;
  position: relative;
  overflow: hidden;
  padding-bottom: 88px;
  box-shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
}

body:not(.mobile-role-mode) .d-app-shell {
  border: 1px solid rgba(224, 199, 162, 0.85);
  border-radius: 8px;
  min-height: 760px;
}

.d-home-view {
  position: relative;
  height: calc(100vh - 116px);
  min-height: 650px;
  background: #fff;
}

.d-app-shell.site-expanded {
  padding-bottom: 0;
}

.d-app-shell.site-expanded .d-bottom-nav {
  display: none;
}

.d-app-shell.site-expanded .d-home-view {
  height: calc(100vh - 28px);
}

.d-site-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.d-enter-site {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  min-width: 210px;
  min-height: 72px;
  border: 0;
  border-radius: 8px;
  background: #eeeeee;
  color: #8b8b8b;
  font: inherit;
  font-size: 21px;
  font-weight: 900;
}

.d-page {
  min-height: 640px;
  padding: 18px 14px 96px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: #fff;
}

.d-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.d-bottom-nav button {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font: inherit;
  font-weight: 900;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
}

.d-bottom-nav button span {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.d-bottom-nav button.active {
  color: #2b2b2b;
}

.d-booking-list {
  display: grid;
  gap: 10px;
}

.d-booking-item {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
}

.d-booking-item strong,
.d-booking-item span,
.d-booking-item small {
  display: block;
}

.d-booking-item span,
.d-booking-item small {
  color: #666;
  margin-top: 4px;
}

.d-booking-item button,
.d-language-row button,
.d-logout-card {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.d-booking-item button {
  min-height: 42px;
  padding: 0 14px;
  background: #111;
  color: #fff;
}

.d-language-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.d-language-row button {
  min-height: 54px;
  background: #f2f2f2;
  color: #555;
}

.d-language-row button.active {
  background: #111;
  color: #fff;
}

.d-logout-card {
  width: min(220px, 80%);
  min-height: 72px;
  justify-self: center;
  margin: 120px 0 220px;
  background: #eeeeee;
  color: #8b8b8b;
  font-size: 21px;
}

.d-install-card {
  border: 1px solid #ead8be;
  border-radius: 8px;
  padding: 14px;
  background: #fffaf2;
  display: grid;
  gap: 6px;
}

.d-install-card strong {
  font-size: 18px;
  font-weight: 950;
}

.d-install-card span,
.d-auth-card p {
  color: #666;
  font-weight: 700;
  line-height: 1.55;
}

.d-auth-card {
  display: grid;
  gap: 14px;
}

.d-auth-card .mobile-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.d-auth-card .mobile-card-head button {
  min-height: 44px;
  border: 1px solid #ead8be;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 900;
}

.d-auth-card label {
  display: grid;
  gap: 8px;
  font-weight: 950;
}

.d-auth-card input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #ead8be;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
  box-sizing: border-box;
  background: #fff;
}

.d-auth-card input:disabled {
  background: #eeeeee;
  color: #777;
  border-color: #dddddd;
}

.d-otp-wait {
  border: 1px solid #d8e3ff;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f5f8ff;
  display: grid;
  gap: 5px;
}

.d-otp-wait strong {
  font-weight: 950;
  color: #1f62c9;
}

.d-otp-wait span {
  color: #666;
  font-weight: 800;
  line-height: 1.45;
}

.d-otp-wait.success {
  background: #effaf2;
  border-color: #8bd59d;
}

.d-otp-wait.success strong {
  color: #18823a;
}

.d-otp-wait.failed {
  background: #fff1ef;
  border-color: #ec9b8e;
}

.d-otp-wait.failed strong {
  color: #c53927;
}

.d-auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.d-auth-actions .primary-action {
  min-height: 56px;
  border-radius: 999px;
}

.d-auth-actions .primary-action.dark {
  background: #101010;
  color: #fff;
}

.d-login-float {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 190px;
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: rgba(238, 238, 238, 0.95);
  color: #8b8b8b;
  font: inherit;
  font-size: 20px;
  font-weight: 950;
}


body.mobile-role-mode .d-app-shell {
  min-height: calc(100vh - 28px);
  height: calc(100vh - 28px);
}

body.mobile-role-mode .d-home-view {
  height: calc(100vh - 116px);
  min-height: 0;
  padding-bottom: 0;
}

body.mobile-role-mode .d-page {
  min-height: calc(100vh - 116px);
  padding-bottom: 104px;
  overflow-y: auto;
}

body.mobile-role-mode .d-bottom-nav {
  position: absolute;
  z-index: 30;
}

.d-icon {
  width: 30px;
  height: 30px;
  display: grid !important;
  place-items: center;
  color: currentColor;
}

.d-icon::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  background: currentColor;
  opacity: .92;
}

.d-icon-home::before {
  clip-path: polygon(50% 8%, 88% 38%, 82% 38%, 82% 88%, 58% 88%, 58% 62%, 42% 62%, 42% 88%, 18% 88%, 18% 38%, 12% 38%);
}

.d-icon-calendar::before {
  border-radius: 5px;
  clip-path: polygon(12% 16%, 25% 16%, 25% 5%, 36% 5%, 36% 16%, 64% 16%, 64% 5%, 75% 5%, 75% 16%, 88% 16%, 88% 90%, 12% 90%);
}

.d-icon-user::before {
  border-radius: 50%;
  box-shadow: 0 14px 0 -5px currentColor;
  transform: translateY(-5px);
}


body.mobile-role-mode .d-bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  z-index: 80;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

body.mobile-role-mode .d-app-shell.site-expanded .d-bottom-nav {
  display: none;
}

body.mobile-role-mode .d-bottom-nav.d-bottom-fixed-patch {
  display: grid;
}

/* Booking month date strip must scroll inside the phone frame without widening it. */
.site-phone .date-strip {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 6px;
}

.site-phone .date-strip button {
  flex: 0 0 82px;
  scroll-snap-align: start;
}

.booking-bottom-bar button:disabled,
.booking-bottom-bar button[disabled],
.booking-bottom-bar button.dark:disabled,
.booking-bottom-bar button.dark[disabled] {
  background: #d8d8d8;
  border-color: #d8d8d8;
  color: #888;
  cursor: not-allowed;
  opacity: 1;
}
.action-row button:empty,
.button-row button:empty,
.upload-inline button:empty,
.b-schedule-actions button:empty {
  min-width: 120px;
  color: #111111;
}

/* Safety net: action buttons must never render as blank. Icon/date grid buttons are excluded. */
.action-row button:empty:not(.c-empty-cell)::after,
.button-row button:empty:not(.c-empty-cell)::after,
.upload-inline button:empty:not(.c-empty-cell)::after,
.b-schedule-actions button:empty:not(.c-empty-cell)::after {
  content: "操作";
}
.upload-inline button[data-action="upload-file"]:empty::after {
  content: "上传";
}
button[data-action="create-stylist-whatsapp-qr"]:empty::after,
button[data-whatsapp-qr="create"]:empty::after {
  content: "生成二维码";
}
button[data-action="check-stylist-whatsapp"]:empty::after,
button[data-whatsapp-qr="confirm"]:empty::after {
  content: "检查扫码状态";
}
button[data-action="disconnect-stylist-whatsapp"]:empty::after {
  content: "断开连接";
}
button[data-action="save-stylist-whatsapp"]:empty::after {
  content: "保存 WhatsApp 设置";
}


/* ===== 四大展示页统一字体 & 布局优化 ===== */
/* 基准：与发型师页面(.site-phone .stylist-card)字体对齐
   - 正文/描述  ≥ 13px
   - 中等标题   14–16px
   - 大标题/分类 18px（同 .site-phone .stylist-card h2）
   - 辅助小字   12px（仅次要信息）
   宽度优先，绝不压窄字体 */

/* ── 滚动容器 ─────────────────────────────── */
.site-phone .site-scroll-area {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 12px;
}

/* ── 首页：fit screen，不滚动 ─────────────── */
.site-phone.page-home {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-phone.page-home .site-scroll-area {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 6px;
  padding: 0 12px 4px;
}

/* Hero 图 16:9 */
.site-hero-image {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
}

/* 首页新闻 tabs */
.site-phone.page-home .news-tabs {
  flex-shrink: 0;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
}
.site-phone.page-home .news-tabs button {
  padding: 5px 10px;
  font-size: 12px;   /* tab 小字可接受 */
  min-height: 32px;
}

/* 新闻列表 fill 剩余空间 */
.site-phone.page-home .news-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.site-phone.page-home .news-card {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  gap: 8px;
}
/* 新闻字体 — 对齐发型师 p (13px) */
.site-phone.page-home .news-card h3 {
  font-size: 14px;
  margin: 0 0 3px;
  line-height: 1.25;
}
.site-phone.page-home .news-card p {
  font-size: 13px;      /* 原 11px → 修正 */
  margin: 0;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-phone.page-home .news-card .thumb {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.site-phone.page-home .site-date {
  font-size: 12px;      /* 原 10px → 修正 */
}

/* ── 品牌页：视频 16:9 ───────────────────── */
.brand-video-player,
.brand-video {
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
}

/* ── 价目表：宽、正常字号、翻页 ─────────── */
/* 分类标题 — 对齐 stylist-card h2 (18px) */
.site-phone .price-category {
  padding: 14px 16px;
}
.site-phone .price-category h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.2;
}
/* 项目行 */
.site-phone .price-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--line, #e8d8c4);
}
.site-phone .price-item:last-child {
  border-bottom: none;
}
.site-phone .price-item strong {
  font-size: 14px;
  display: block;
  line-height: 1.3;
}
.site-phone .price-item p {
  font-size: 13px;      /* 原 12px → 修正 */
  margin: 2px 0 0;
  color: var(--muted, #71695f);
}

/* 翻页动画 */
.price-book {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.price-page-content {
  transform-origin: left center;
}
.price-book.flip-out .price-page-content {
  animation: price-flip-out 0.3s ease-in forwards;
}
.price-book.flip-in .price-page-content {
  animation: price-flip-in 0.35s ease-out forwards;
}
@keyframes price-flip-out {
  from { transform: rotateY(0deg); opacity: 1; }
  to   { transform: rotateY(-75deg); opacity: 0; }
}
@keyframes price-flip-in {
  from { transform: rotateY(75deg); opacity: 0; }
  to   { transform: rotateY(0deg); opacity: 1; }
}

/* 翻页控制条 */
.price-page-header {
  padding: 6px 0 2px;
}
.price-page-header p {
  font-size: 13px;
  color: var(--muted, #71695f);
  margin: 0;
}
.price-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 800;
}
.price-nav-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line, #e8d8c4);
  background: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}
.price-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── 预约页：左服务 | 右日期时间 ────────── */
.site-phone.booking-page .site-scroll-area {
  overflow: hidden;
  padding: 0 8px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.site-phone.booking-page .booking-flow {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 6px;
  padding-bottom: 6px;
}

/* 两列分割 */
.booking-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 左面板：选服务 */
.booking-panel-left {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 右面板：选日期时间 */
.booking-panel-right {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 面板标题 — 对齐 stylist-card h2 */
.booking-panel-left h2,
.booking-panel-right h2 {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.2;
  flex-shrink: 0;
}

/* 类别折叠头 */
.booking-panel-left .booking-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line, #e8d8c4);
  padding: 6px 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  gap: 4px;
}

/* 服务行 */
.booking-panel-left .booking-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line, #f0e8dd);
}
.booking-panel-left .booking-service-row:last-child {
  border-bottom: none;
}
.booking-panel-left .booking-service-row .service-info {
  flex: 1;
  min-width: 0;
}
.booking-panel-left .booking-service-row strong {
  font-size: 13px;
  font-weight: 800;
  display: block;
  line-height: 1.25;
  word-break: break-word;
}
.booking-panel-left .booking-service-row p {
  font-size: 12px;    /* 价格+时长 次要信息 */
  margin: 2px 0 0;
  color: var(--muted, #71695f);
}
.booking-panel-left .booking-service-row button {
  font-size: 14px;
  font-weight: 900;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.booking-panel-left .booking-service-row.selected button {
  background: #111;
  color: white;
  border-color: #111;
}

/* 右面板月份行 */
.booking-panel-right .month-row {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.booking-panel-right .month-row button {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  cursor: pointer;
  white-space: nowrap;
}

/* 日期条 — 竖向列表 */
.date-strip-vertical {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  max-height: 160px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.date-strip-vertical .date-btn {
  width: 100%;
  min-height: 32px;
  font-size: 12px;
  text-align: left;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.date-strip-vertical .date-btn.active {
  background: #111;
  color: white;
  border-color: #111;
}

/* 时间格子 */
.booking-panel-right .time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex-shrink: 0;
}
.booking-panel-right .slot {
  min-height: 34px;
  font-size: 12px;
  padding: 3px 4px;
  border-radius: 8px;
}
.panel-hint {
  font-size: 13px;
  color: var(--muted, #71695f);
  margin: 0;
  line-height: 1.3;
}

/* 已选条 */
.site-phone.booking-page .selected-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px;
  flex-shrink: 0;
}
.site-phone.booking-page .selected-strip strong {
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-phone.booking-page .selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.site-phone.booking-page .selected-chips span {
  font-size: 12px;
  background: var(--card-bg, #faf7f3);
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* 底部确认栏 */
.booking-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
  flex-shrink: 0;
}
.booking-time-hint {
  font-size: 13px;
  color: var(--muted, #71695f);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-bottom-bar .dark {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #111;
  color: white;
  border: none;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  cursor: pointer;
}
.booking-bottom-bar .dark:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.booking-bottom-bar .back-btn {
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: 1px solid var(--line, #e8d8c4);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 42px;
  cursor: pointer;
}


.site-phone.booking-page .booking-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* 第一行：选择项目 + 选择日期 并排 */
.site-phone.booking-page .booking-tabs-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.site-phone.booking-page .booking-tabs-top button {
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid var(--line, #e8d8c4);
  background: white;
  cursor: pointer;
}
.site-phone.booking-page .booking-tabs-top button.active {
  background: #111;
  color: white;
  border-color: #111;
}
/* 第二行：确认信息 全宽蓝色 */
.site-phone.booking-page .booking-tab-confirm {
  width: 100%;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  background: #1a3a6b;
  color: white;
  cursor: pointer;
}
.site-phone.booking-page .booking-tab-confirm.active {
  background: #0f2548;
}