/* Aria Nail Art booking - mobile-first */
:root {
  --pink: #c98a9d;
  --pink-dark: #a96b7e;
  --pink-soft: #f9eef1;
  --ink: #3a2e33;
  --muted: #8a7a81;
  --line: #efdde3;
  --bg: #fffafb;
  --card: #ffffff;
  --green: #2e7d4f;
  --amber: #b97f1f;
  --red: #b23a3a;
  --radius: 14px;
}
* { box-sizing: border-box; }
/* native [hidden] must win over component display rules (.btn, .chip, ...) */
[hidden] { display: none !important; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
header.brand { text-align: center; padding: 18px 12px 6px; }
header.brand h1 { margin: 0; font-size: 24px; letter-spacing: 1px; color: var(--pink-dark); }
header.brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
h2.step-title { font-size: 20px; margin: 18px 0 4px; }
p.step-sub { color: var(--muted); margin: 0 0 14px; font-size: 14px; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 0; overflow: hidden; cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.svc .thumb {
  height: 92px; background: var(--pink-soft); display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--pink); font-weight: 700;
}
.svc .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc .meta { padding: 10px 12px; }
.svc .name { font-weight: 600; font-size: 14px; display: block; }
.svc .sub { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.svc .price { color: var(--pink-dark); font-weight: 700; font-size: 14px; display: block; margin-top: 4px; }
.svc.selected { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-soft); }
.svc.selected .meta { background: var(--pink-soft); }

.summary-bar {
  position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 18px -16px -48px; z-index: 5;
}
.summary-bar .totals { font-size: 14px; }
.summary-bar .totals b { font-size: 18px; color: var(--pink-dark); }
.btn {
  display: inline-block; border: none; border-radius: 999px; padding: 11px 22px;
  background: var(--pink); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; text-align: center;
}
.btn:disabled { background: #d9c3cb; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--pink-dark); border: 2px solid var(--pink); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.danger { background: var(--red); }
.btnrow { display: flex; gap: 10px; margin-top: 18px; }
.btnrow .btn { flex: 1; }

input[type="date"], input[type="text"], input[type="tel"], input[type="email"],
input[type="number"], input[type="time"], input[type="password"], select, textarea {
  width: 100%; padding: 11px 14px; font-size: 16px; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); }
label.f { display: block; font-weight: 600; margin: 10px 0 6px; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.slot {
  border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 4px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; font-family: inherit; color: var(--ink);
}
.slot.selected { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dark); }
.no-slots { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--muted); margin-top: 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.pending { background: #fdf3e0; color: var(--amber); }
.badge.confirmed { background: #e6f4ea; color: var(--green); }
.badge.cancelled, .badge.no_show { background: #fbe7e7; color: var(--red); }
.badge.completed { background: #eef0f2; color: #5a6b76; }

.notice { border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; font-size: 15px; }
.notice.ok { background: #e6f4ea; color: #1e5c37; }
.notice.warn { background: #fdf3e0; color: #7a5a12; }
.notice.err { background: #fbe7e7; color: #7c2626; }

footer.site { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 12px 8px; }

/* Owner panel */
.owner-nav { background: var(--pink-dark); padding: 10px 14px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.owner-nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.owner-nav a:hover, .owner-nav a.on { background: rgba(255,255,255,.22); }
.owner-nav .sp { flex: 1; }
.owner-nav .lang-switch { color: #fff; font-size: 14px; font-weight: 600; padding: 8px 4px; white-space: nowrap; }
.owner-nav .lang-switch a { padding: 4px 6px; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.admin th, table.admin td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.admin th { background: var(--pink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--pink-dark); }
.appt { border-left: 4px solid var(--pink); }
.appt.pending { border-color: var(--amber); }
.appt.confirmed { border-color: var(--green); }
.appt.cancelled, .appt.no_show { opacity: .65; border-color: var(--red); }
.inline-form { display: inline; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
.checkrow { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 15px; }
.checkrow input { width: 20px; height: 20px; }
.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
@media (max-width: 480px) { .svc-pick { grid-template-columns: 1fr; } }
.login-card { max-width: 380px; margin: 60px auto; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Owner day calendar (GlossGenius style) */
.cal-grid { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin: 12px 0 24px; }
.cal-gutter { width: 62px; flex: none; background: #fff; }
.cal-glabel { font-size: 11px; color: var(--muted); text-align: right; padding: 6px 8px 0 0; border-top: 1px solid var(--line); box-sizing: border-box; white-space: nowrap; }
.cal-glabel:first-child { border-top: none; }
.cal-day { position: relative; flex: 1; min-width: 0; }
.cal-hour { border-top: 1px solid var(--line); box-sizing: border-box; }
.cal-hour:first-child { border-top: none; }
.cal-block { position: absolute; left: 6px; right: 6px; width: auto; border-radius: 10px; padding: 5px 8px; font-size: 13px; line-height: 1.35; overflow: hidden; border: 2px solid #ccc; background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: inherit; display: block; }
.cal-block .cb-time { font-weight: 700; font-size: 12px; }
.cal-block .cb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block .cb-svc { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block.pending { border-color: var(--amber); background: #fffdf4; }
.cal-block.confirmed { border-color: var(--green); background: #f2faf5; }
.cal-block.cancelled, .cal-block.no_show { border-color: var(--red); background: #fdf2f2; opacity: .7; }
.cal-block.completed { border-color: #9aa7b0; background: #f3f5f6; }
.cal-block.blocked { border-color: #9aa7b0; background: repeating-linear-gradient(45deg, #f1f3f5, #f1f3f5 8px, #e8edf1 8px, #e8edf1 16px); cursor: default; }
.modal-back { position: fixed; inset: 0; background: rgba(40, 25, 30, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal-back[hidden] { display: none; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 18px 26px; }
@media (min-width: 600px) { .modal-back { align-items: center; padding: 20px; } .modal { border-radius: 18px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-x { border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

/* GlossGenius-style month calendar (owner) - compact */
.mcal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0; }
.mcal-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; }
.mcal-head b { font-size: 14px; }
.mcal-head .btn.small { padding: 5px 12px; font-size: 15px; line-height: 1.2; }
.mcal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--muted); font-size: 10.5px; font-weight: 700; padding: 6px 0 2px; border-top: 1px solid var(--line); }
.mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 2px 8px 8px; }
.mday { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 40px; background: #faf5f8; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mday.dim { opacity: .35; }
.mday.closed { opacity: .45; background: transparent; }
.mday.closed .mnum { color: #a9a9b2; }
.mdots i.red { background: #e5486f; }
.mnum { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; border-radius: 50%; }
.mday.sel .mnum { background: var(--pink); color: #fff; }
.mdots { display: flex; gap: 2px; height: 6px; align-items: center; justify-content: center; }
.mdots i { width: 5px; height: 5px; border-radius: 50%; display: block; }

/* Artist filter tabs */
.artist-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 4px; padding: 2px 2px 8px; }
.atab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.atab.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dark); }
.adot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }

/* Appointment cards */
.appt-card { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 10px 0; cursor: pointer; align-items: flex-start; }
.appt-card.blocked { cursor: default; background: #fafbfc; }
.ac-avatar { width: 46px; height: 46px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.ac-main { flex: 1; min-width: 0; }
.ac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-name { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-svc { display: flex; gap: 9px; margin-top: 5px; font-size: 14px; align-items: stretch; }
.ac-bar { width: 4px; border-radius: 2px; flex: none; }
.ac-svc span:last-child { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ac-when { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ac-artist { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.ac-side { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; flex: none; }
.ac-price { font-weight: 700; font-size: 16px; }
.qa-form { margin: 0; }

/* Artist management rows (settings) */
.artist-row { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.artist-row input[type="color"] { width: 44px; height: 40px; padding: 2px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.artist-row input[type="text"] { flex: 1; min-width: 140px; }
.artist-row .checkrow { margin: 0; }
/* Staff profiles (owner settings) */
.staff-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 10px 0; }
.staff-card .f { margin: 8px 0 0; }
.staff-top { display: flex; gap: 10px; align-items: center; }
.staff-top input[type="color"] { width: 44px; height: 40px; padding: 2px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 auto; }
.staff-top .checkrow { margin: 0; white-space: nowrap; }
.staff-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 640px) { .staff-grid { grid-template-columns: 1fr 1fr; } }
.staff-new { border-style: dashed; background: transparent; }
/* Staff dashboard */
.staff-summary { display: flex; gap: 18px; margin: 10px 0; font-size: 15px; color: var(--muted); }
.staff-summary b { color: var(--ink); font-size: 19px; }
.staff-appt { margin: 10px 0; }
.staff-appt-top { display: flex; align-items: center; justify-content: space-between; }
.staff-appt-name { font-weight: 800; font-size: 16px; margin-top: 4px; }
.checklist { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.checklist .checkrow { margin: 2px 0; }
/* Floating + button (GlossGenius style) */
.fab { position: fixed; right: 18px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: 34px; line-height: 1; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.28); z-index: 60; }
.fab:active { transform: scale(.96); }
/* Bottom sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70;
  display: flex; align-items: flex-end; justify-content: center; }
.sheet-back[hidden] { display: none; }
.sheet { background: var(--card); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0;
  padding: 10px 18px 26px; max-height: 88vh; overflow-y: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h3 { margin: 8px 0; font-size: 19px; }
.sheet-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 6px;
  background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 16.5px; font-weight: 600;
  color: var(--ink); cursor: pointer; text-align: left; }
.sheet-opt:last-child { border-bottom: 0; }
.sheet-ico { font-size: 22px; width: 30px; text-align: center; }
.sheet-form .f { margin: 10px 0 0; }
.sheet-form .btnrow { margin-top: 14px; }
.sheet-form .kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet-form .kv .k { color: var(--muted); }

/* Bottom tab bar (owner, mobile only) */
.bottom-tabs { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .bottom-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .btab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 2px; border-radius: 10px; }
  .btab .bico { font-size: 21px; line-height: 1.2; }
  .btab.on { color: var(--pink-dark); }
}

/* ---- compact one-page booking ---- */
.brand.slim { padding: 18px 16px 10px; }
.brand.slim h1 { font-size: 24px; margin: 0; }
.brand.slim p { margin: 4px 0 0; font-size: 13px; }
.card-t { margin: 0 0 8px; font-size: 16px; }
.daterow input[type=date] { width: 100%; max-width: 260px; }

.msel { position: relative; }
.msel-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 15px; color: var(--ink); cursor: pointer;
}
.msel-btn:active { border-color: var(--pink); }
.msel-caret { color: var(--muted); }
.msel-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  max-height: 320px; overflow-y: auto; box-shadow: 0 12px 32px rgba(169,107,126,.18);
}
.msel-opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--pink-soft);
}
.msel-opt:last-child { border-bottom: 0; }
.msel-opt input { width: 18px; height: 18px; accent-color: var(--pink-dark); flex-shrink: 0; }
.msel-name { flex: 1; }
.msel-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.picked { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.picked:empty { margin-top: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 12px;
  background: var(--pink-soft); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.chip .x { font-size: 16px; line-height: 1; color: var(--pink-dark); }

.bookbar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin: 14px 0;
  box-shadow: 0 -6px 24px rgba(169,107,126,.12);
}
.bookbar .totals { font-size: 13px; color: var(--muted); }
.bookbar .totals b { display: block; font-size: 20px; color: var(--pink-dark); }
.bookbar .btn { margin: 0; flex-shrink: 0; }

/* View toggle (Day / Month) */
.view-toggle { display: flex; gap: 8px; margin: 12px 0 4px; }
.view-toggle a { padding: 8px 22px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; background: #fff; }
.view-toggle a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 7-day strip shared by day & week views (GlossGenius style). */
.wk-strip { display: flex; align-items: stretch; margin: 10px 0 6px; }
.wk-nav { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--pink-dark); text-decoration: none; min-height: 64px; }
.wk-days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); }
.wk-day { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); padding: 4px 0 2px; border-radius: 12px; }
.wk-dow { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.wk-num { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; border-radius: 50%; }
.wk-day.sel .wk-num { background: var(--pink); color: #fff; }
.wk-day.closed { opacity: .4; }
.wk-dot { height: 8px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.wk-dot i { width: 6px; height: 6px; border-radius: 50%; background: #e5486f; display: block; }

/* Single-column day timeline + 7-column week timeline. */
.tl-col.single { flex: 1 1 auto; min-width: 0; }
.week-grid .tl-col.wk-col { flex: 1 1 0; min-width: 0; }
.week-grid .tl-col.wk-col.closedday .tl-col-body { background: #f3f4f6; }
.tl-block.mini { padding: 3px 4px; border-radius: 6px; }
.tl-block.mini .tlb-time { font-size: 9.5px; }
.tl-block.mini .tlb-name { font-size: 10.5px; }
.tl-block.mini .tlb-svc { font-size: 9px; }
.tl-block.mini .tlb-icons { top: 2px; right: 3px; }
.tl-block.mini .tlb-ico { font-size: 9px; }
.tl-block.blocked { background: #e9edf1; }
.tl-block.blocked .tlb-svc { color: var(--muted); white-space: normal; }
.tlb-icons { position: absolute; top: 4px; right: 6px; display: flex; gap: 4px; }
.tlb-ico { font-size: 12px; line-height: 1; }
.tl-now-t { position: absolute; left: -48px; top: -11px; background: #1c1c1e; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* GlossGenius-style day timeline: time gutter + one column per artist */
.daynav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.daynav b { font-size: 16px; }
.tl-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tl-grid { display: flex; align-items: stretch; min-width: 100%; }
.tl-gutter { flex: 0 0 62px; position: relative; border-right: 1px solid var(--line); background: var(--bg); }
.tl-hour-lbl { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.tl-col { flex: 1 0 168px; min-width: 168px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.tl-col:last-child { border-right: 0; }
.tl-col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--pink-soft); font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.tl-col-head .count { margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; padding: 1px 9px; color: var(--muted); font-weight: 700; }
.tl-col-body { position: relative; background: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, var(--line) 59px, var(--line) 60px); }
.tl-block { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 5px 7px; cursor: pointer; overflow: hidden; }
.tl-block .tlb-time { font-weight: 800; font-size: 12px; }
.tl-block .tlb-name { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block .tlb-svc { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlb-badge { font-size: 10px; padding: 1px 7px; margin-top: 3px; display: inline-block; }
.tl-now { position: absolute; left: 0; right: 0; height: 2px; background: #e05252; z-index: 2; }
.tl-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e05252; }

/* Artist name label pill on appointment cards */
.artist-pill { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; border: 1.5px solid; background: #fff; }
.artist-pill.ghost { color: var(--muted); border-color: var(--line); background: var(--bg); }

/* Sub-tabs (e.g. Artists page: Active / Inactive / Add) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.tabs a { text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; background: #fff; }
.tabs a.on { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---- booking wizard ---- */
.steps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 14px; }
.steps li { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 8px 2px; border-bottom: 3px solid var(--line); cursor: default; }
.steps li .snum { display: inline-flex; width: 20px; height: 20px; border-radius: 50%;
  background: var(--line); color: #fff; align-items: center; justify-content: center;
  font-size: 11px; margin-right: 4px; vertical-align: 1px; }
.steps li.on { color: var(--ink); border-color: var(--pink); }
.steps li.on .snum { background: var(--pink); }
.steps li.done { color: var(--pink-dark); cursor: pointer; }
.steps li.done .snum { background: var(--pink-dark); }
.artist-pick { display: grid; gap: 10px; }
.apick { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font-size: 15px; width: 100%; }
.apick.on { border-color: var(--pink); background: var(--pink-soft); }
.adot.big { width: 30px; height: 30px; }
.apick small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.wstep[hidden] { display: none; }
.form-err { background: #fdecec; border: 1px solid #f3b8b8; color: #a33; border-radius: 10px;
  padding: 12px; margin-top: 12px; font-size: 14px; }
.bk-summary { background: var(--pink-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.sumrow { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.sumrow span { color: var(--muted); }
@media (max-width: 480px) {
  .steps li .slabel { display: none; }
  .steps li .snum { margin-right: 0; }
}

/* ---- GlossGenius-style staff day view ---- */
.gl-title { font-size: 28px; margin: 18px 0 12px; }
.gl-daynav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.gl-daynav b { font-size: 17px; }
.gl-arrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--pink);
  color: var(--pink-dark); display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; text-decoration: none; background: #fff; flex: none; }
.gl-arrow:active { background: var(--pink-soft); }
.gl-today { text-align: center; margin: 2px 0 6px; }
.gl-today a { color: var(--pink-dark); font-size: 14px; font-weight: 700; }
.gl-stats { display: flex; gap: 20px; margin: 10px 0 14px; font-size: 16px; color: var(--muted); }
.gl-stats b { color: var(--ink); font-size: 21px; margin-right: 5px; }
.gl-empty { border: 1px solid var(--line); border-radius: 14px; padding: 24px; font-size: 16px; background: #fff; }

/* ---- GlossGenius-style empty day panel (owner month view) ---- */
.gl-empty-day { text-align: center; color: var(--muted); font-size: 17px; padding: 70px 20px; }

/* ---- unified Schedule page ---- */
.sched-head { display: flex; align-items: center; justify-content: space-between; }
.sound-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }
.sound-btn.off { opacity: .45; }
.kpi-strip { display: flex; gap: 10px; margin: 10px 0 4px; }
.kpi { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-align: center; }
.kpi b { display: block; font-size: 22px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.alert b { color: var(--red); }
.inbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 4px 12px 10px; }
.inbox summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; }
.inbox summary::-webkit-details-marker { display: none; }
.inbox summary .count { display: inline-block; min-width: 24px; text-align: center; background: var(--red); color: #fff; border-radius: 999px; font-size: 13px; padding: 1px 7px; margin-left: 6px; }
.sch-group { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; }
.sch-group span { font-weight: 800; font-size: 15px; }
.sch-group i { font-style: normal; font-size: 12px; color: var(--muted); background: #f3e7eb; border-radius: 999px; padding: 1px 8px; }
.sch-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.now-div { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--red); font-size: 12px; font-weight: 700; }
.now-div::before, .now-div::after { content: ""; flex: 1; height: 2px; background: var(--red); opacity: .6; }
.now-div span { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 10px; }
.sch-row { position: relative; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 10px 0; cursor: pointer; }
.sch-row:hover { border-color: var(--pink); }
.sch-row.past { opacity: .6; }
.sch-row.ob { background: #fff5f5; border-color: #f3c3c3; }
.gr-photo { width: 60px; height: 60px; border-radius: 16px; color: #fff; font-weight: 700; font-size: 24px; display: flex; align-items: center; justify-content: center; flex: none; }
.gr-main { flex: 1; min-width: 0; }
.gr-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gr-l1 b { font-size: 19px; }
.gr-svc { display: flex; align-items: center; gap: 9px; margin-top: 6px; color: #4a4a52; font-size: 15px; }
.gr-bar { width: 5px; align-self: stretch; min-height: 22px; border-radius: 3px; flex: none; }
.gr-svc span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gr-when { color: var(--muted); font-size: 13.5px; margin-top: 7px; }
.gr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.gr-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.gr-side .inline-form { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge.ob { background: #fde8e8; color: var(--red); }
.badge.unas { background: #fdf3e0; color: var(--amber); }
.kebab { flex: none; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.kebab:hover { background: #f6eef1; color: var(--ink); }
.kebab-menu { position: absolute; right: 8px; top: 40px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); min-width: 190px; padding: 6px; }
.kbtn { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; font-size: 15px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.kbtn:hover { background: var(--pink-soft); }
.kbtn.danger { color: var(--red); }
.kform { margin: 0; }
.slot.busy { background: #fde8e8; border-color: var(--red); color: var(--red); }
.toasts { position: fixed; top: 14px; right: 14px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 360px); }
.toast { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--pink); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 12px 14px; font-size: 14px; }
.toast.new { border-left-color: var(--green); }
.toast.cancel { border-left-color: var(--red); }
.toast.resched { border-left-color: var(--amber); }
.toast-x { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); margin-left: auto; }
.newdata { display: flex; align-items: center; gap: 10px; background: #eef7f0; border: 1px solid #bfe0c8; border-radius: 12px; padding: 8px 12px; margin: 8px 0; font-size: 14px; }
#apptModal .view-toggle a { font-size: 14px; padding: 8px 10px; }
@media (max-width: 640px) {
  .gr-photo { width: 52px; height: 52px; font-size: 20px; border-radius: 14px; }
  .gr-l1 b { font-size: 17px; }
  .gr-price { font-size: 14px; }
}

/* ---- compact employee list ---- */
.emp-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.emp-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; flex-wrap: wrap; }
.emp-row:hover { border-color: var(--pink); }
.emp-main { flex: 1; min-width: 0; }
.emp-main b { display: block; font-size: 16px; }
.emp-row .chev { font-size: 22px; color: var(--muted); transition: transform .15s; }
.emp-row.open .chev { transform: rotate(90deg); }
.emp-detail { flex-basis: 100%; cursor: default; }
.artist-search { width: 100%; margin: 0 0 10px; }

/* ---- desktop: calmer type scale for the schedule ---- */
@media (min-width: 900px) {
  .kpi b { font-size: 18px; }
  .kpi span { font-size: 11px; }
  .sch-group { margin: 12px 0 4px; }
  .sch-group span { font-size: 13.5px; }
  .sch-group i { font-size: 11px; }
  .sch-row { padding: 12px 14px; gap: 12px; }
  .gr-l1 b { font-size: 16px; }
  .gr-svc { font-size: 13.5px; }
  .gr-when { font-size: 12.5px; }
  .gr-price { font-size: 14px; }
  .mday { min-height: 40px; gap: 1px; border-radius: 10px; }
  .mnum { font-size: 12.5px; width: 24px; height: 24px; }
  .mcal-grid { gap: 5px; padding: 2px 8px 8px; }
  .mcal-head { padding: 8px 10px; }
  .mcal-head b { font-size: 14px; }
  .tl-block .tlb-time { font-size: 11px; }
  .tl-block .tlb-name { font-size: 11.5px; }
  .tl-block .tlb-svc { font-size: 10.5px; }
}

/* ---- pay settings fieldset ---- */
.pay-fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0 4px; }
.pay-fieldset legend { font-weight: 800; font-size: 14px; padding: 0 6px; }
.pay-fieldset select, .pay-fieldset input[type="number"] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.pay-table td.num, .pay-table th.num { text-align: right; white-space: nowrap; }
.pay-total td { font-weight: 800; }
.staff-tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.staff-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; font-size: 14px; }
.staff-tabs a.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.profile-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.profile-photo.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--pink-soft); color: var(--pink); font-size: 36px; font-weight: 800; }

/* ---- Resource grid: owner day view, one column per staff (full-bleed) ---- */
.res-scroll { overflow: auto; border: 1px solid #f3d9e2; border-radius: 14px; background: #fff; max-height: calc(100vh - 240px); }
.res-grid { display: flex; min-width: max-content; align-items: stretch; }
.res-gutter { position: sticky; left: 0; z-index: 6; flex: 0 0 54px; background: #fff; border-right: 1px solid #f3d9e2; padding-top: 35px; }
.res-gutter .tl-hour-lbl { left: 0; right: 4px; text-align: right; }
.res-col { flex: 1 0 172px; min-width: 172px; max-width: 280px; border-right: 1px solid #f7e3ea; display: flex; flex-direction: column; }
.res-col-head { position: sticky; top: 0; z-index: 5; min-height: 35px; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #fdf3f6; border-bottom: 1px solid #f3d9e2; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; }
.res-col-body { position: relative; flex: 1; background-image: repeating-linear-gradient(to bottom, transparent 0 29px, #fbeef3 29px 30px, transparent 30px 59px, #f4d5e1 59px 60px); background-size: 100% 60px; }
.tl-block.res { margin: 1px; }
.tl-block.res.pend { border: 1.5px dashed #b76b82; }
.tl-block.res .tlb-price { font-weight: 800; font-size: 11.5px; }
.tl-block.res .tlb-icons { position: absolute; top: 2px; right: 4px; }
@media (max-width: 700px) {
  .res-col { flex-basis: 150px; min-width: 150px; }
}

/* Compact schedule toolbar: one slim row, everything on demand. */
.sched-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.seg { display: inline-flex; background: #eef0f3; border-radius: 999px; padding: 2px; }
.seg a { padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.sb-select { font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); max-width: 150px; }
.sb-spacer { flex: 1 1 auto; }
.stats-panel { margin: 0 0 8px; }
.stats-panel .kpi-strip { margin: 0; }
.stats-row { display: flex; justify-content: flex-end; margin-top: 6px; }
/* Slim week strip: it is day navigation, not content. */
.wk-strip { margin: 4px 0 4px; }
.wk-nav { min-height: 50px; font-size: 20px; width: 36px; }
.wk-day { padding: 2px 0 1px; }
.wk-num { width: 30px; height: 30px; font-size: 14px; }
.wk-dow { font-size: 10px; margin-bottom: 2px; }

/* SMS opt-in disclosure box (public booking, GlossGenius-style). */
.checkrow.sms-optin { align-items: flex-start; border: none; border-radius: 0; padding: 4px 0 0; background: none; }
.checkrow.sms-optin input { margin-top: 2px; flex: none; }
.checkrow.sms-optin span { display: block; font-size: 13px; }
.checkrow.sms-optin small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: #8a7a81; }
.checkrow.sms-optin small a { color: #a34d6e; }

/* Simple public legal pages. */
.legal { max-width: 720px; margin: 0 auto; padding: 28px 18px 60px; }
.legal h1 { font-size: 24px; margin: 0 0 6px; }
.legal .updated { color: #8a7a81; font-size: 13px; margin-bottom: 18px; }
.legal h2 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: #3d3438; }
.legal ul { padding-left: 20px; }

/* GlossGenius-style vertical time list (public booking). */
.slot-list { margin-top: 10px; max-height: 340px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.slot-row {
  display: block; width: 100%; background: none; border: none;
  border-bottom: 1px solid var(--line); padding: 13px 8px;
  font-size: 14px; font-weight: 500; text-align: center; cursor: pointer;
  font-family: inherit; color: var(--ink);
}
.slot-row.selected { background: var(--pink); color: #fff; border-radius: 6px; font-weight: 700; }

/* Inline date-picker calendar (public booking, Step 2). */
.datecal { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; max-width: 340px; margin: 0 auto; }
.dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dc-head b { font-size: 15px; }
.dc-nav { border: none; background: none; font-size: 24px; line-height: 1; color: var(--pink-dark); cursor: pointer; padding: 2px 10px; border-radius: 8px; font-family: inherit; }
.dc-nav:hover:not(:disabled) { background: var(--pink-soft); }
.dc-nav:disabled { opacity: .25; cursor: default; }
.dc-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.dc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dc-day { aspect-ratio: 1/1; border: none; background: none; border-radius: 50%; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit; padding: 0; }
.dc-day:hover:not(:disabled) { background: var(--pink-soft); }
.dc-day.dc-sel { background: var(--pink); color: #fff; }
.dc-day.dc-off { color: #c9c9d2; cursor: default; }
.dc-day.dc-loading { color: #e2e2e8; }

/* No-show policy notice (public booking, info step). */
.noshow-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fdf3e7; border: 1px solid #f0d9b5; font-size: 13px; line-height: 1.5; color: #6b4a1f; }
.noshow-note b { color: #8a5a17; }

/* ---- no-show confirm modal (public booking) ---- */
.ns-modal { position: fixed; inset: 0; z-index: 300; background: rgba(70,35,48,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ns-modal[hidden] { display: none; }
.ns-box { background: #fff; border-radius: 16px; padding: 22px; max-width: 380px; width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,.2); }
.ns-box h3 { margin: 0 0 10px; font-size: 18px; }
.ns-text { font-size: 14px; line-height: 1.65; color: var(--ink); margin: 0 0 18px; }
.ns-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- owner nav: hamburger on mobile ---- */
.hamb { display: none; background: none; border: none; color: #fff; font-size: 26px; line-height: 1; padding: 8px 10px; cursor: pointer; }
.owner-nav .nav-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; flex: 1; }
@media (max-width: 720px) {
  .owner-nav { position: relative; }
  .hamb { display: block; }
  .owner-nav .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--pink-dark); flex-direction: column; align-items: stretch; padding: 6px 10px 12px; z-index: 100; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
  .owner-nav.open .nav-links { display: flex; }
  .owner-nav .nav-links a, .owner-nav .nav-links .lang-switch { padding: 10px 12px; }
  .owner-nav .nav-links .sp { display: none; }
}

/* ---- GG-compact owner schedule (v14): slim bars, smaller controls, fewer buttons ---- */
.owner-nav { padding: 6px 10px; }
.owner-nav a { padding: 6px 9px; font-size: 13px; border-radius: 7px; }
.owner-nav .lang-switch { font-size: 13px; padding: 6px 4px; }
.hamb { font-size: 22px; padding: 6px 8px; }

.sched-bar { gap: 6px; margin: 8px 0 6px; }
.seg a { padding: 4px 11px; font-size: 12px; }
.sb-select { font-size: 12px; padding: 5px 6px; }
.sound-btn { width: 34px; height: 34px; font-size: 16px; }
@media (max-width: 767px) { #fsToggle { display: none; } }

.mcal-head { padding: 6px 8px; }
.mcal-head b { font-size: 13px; }
.mcal-head .btn.small { padding: 3px 10px; font-size: 13px; }
.mcal-dow { font-size: 10px; padding: 4px 0 2px; }
.mcal-grid { gap: 4px; padding: 2px 6px 6px; }
.mday { min-height: 34px; border-radius: 8px; }
.mnum { font-size: 11.5px; width: 22px; height: 22px; }

.day-h { margin: 12px 0 4px; font-size: 16px; }
.sch-group { margin: 10px 0 4px; }
.sch-group span { font-size: 13.5px; }
.sch-row { padding: 10px 12px; gap: 10px; border-radius: 14px; margin: 8px 0; }
.gr-photo { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
.gr-l1 b { font-size: 16px; }
.gr-svc { font-size: 13.5px; margin-top: 4px; gap: 7px; }
.gr-when { font-size: 12.5px; margin-top: 5px; }
.gr-price { font-size: 14px; }
.gr-side { gap: 6px; }
.kebab { font-size: 18px; padding: 2px 6px; }
.inbox { margin: 8px 0; }
.inbox summary { padding: 8px 0; font-size: 14px; }

.fab { width: 52px; height: 52px; font-size: 28px; right: 14px; bottom: 86px; }
@media (min-width: 768px) { .fab { bottom: 22px; } }
.btab .bico { font-size: 18px; }
.btab { font-size: 10px; padding: 3px 2px; }

/* ---- v16: GG-style compact schedule header ---- */
.gg-bar { row-gap: 6px; }
.gg-left { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.gg-hamb { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.gg-month { flex: 0 1 auto; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; padding: 0 4px; max-width: 108px; cursor: pointer; }
.gg-view { flex: 0 1 auto; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; padding: 0 4px; max-width: 96px; cursor: pointer; }
/* ---- v16: completed appointments are easy to spot ---- */
.badge.completed { background: #e6f4ea; color: var(--green); }
.sch-row.is-done { background: #f4faf6; border-color: #c9e6d4; }
.done-tick { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; margin-left: 6px; vertical-align: 1px; }

/* ============ public landing page ============ */
body.landing { background: #feefea; }
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(254,239,234,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #f0d9d3; }
.logo { height: 92px; width: 352px; max-width: 92vw; object-fit: cover; object-position: center; display: block; }
.logo-full { width: 100%; height: 100%; object-fit: contain; display: block; background: #feefea; }
.site-head .sh-in { max-width: 1024px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.site-head .sh-in.sh-center { justify-content: center; flex-direction: column; gap: 1px; }
.tagline { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: .2px; }
.scrolldown { display: inline-block; background: none; border: 0; color: #fff; cursor: pointer; animation: bob 1.8s ease-in-out infinite; padding: 8px; line-height: 0; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.scrolldown:hover { opacity: .8; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.mcard { cursor: default; }
.mdesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; margin-top: 2px; color: var(--muted); line-height: 1.35; }
.haddons { max-width: 720px; margin: 0 auto; padding: 20px 16px 4px; }
.haddons h2 { margin: 0 0 10px; font-size: 20px; text-align: center; }
.addon-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.addon-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid #f6e3ea; }
.addon-list li:last-child { border-bottom: none; }
.addon-list li b { color: var(--pink); white-space: nowrap; }
.hbook { max-width: 720px; margin: 0 auto; padding: 26px 16px 34px; text-align: center; }
.hbook .btn.big { width: 100%; max-width: 440px; }
.site-head b { font-size: 17px; letter-spacing: .3px; }
.btn.big { padding: 13px 36px; font-size: 16px; }
.hero { position: relative; max-width: 720px; margin: 0 auto; }
.slides { position: relative; overflow: hidden; aspect-ratio: 4/5; max-height: 80vh; background: #feefea; }
@media (min-width: 721px) {
  .hero { max-width: none; }
  .slides { display: flex; gap: 8px; aspect-ratio: auto; height: auto; max-height: none; }
  .slides .slide { position: relative; inset: auto; flex: 1 1 0; min-width: 0; opacity: 1; aspect-ratio: 4/5; max-height: 60vh; }
  .slides .slide:nth-child(n+6) { display: none; }
}
body.modal-lock { overflow: hidden; }
.booksec.modal-open { display: flex; position: fixed; inset: 0; z-index: 150; background: rgba(43,25,32,.55); margin: 0; max-width: none; padding: 16px 12px; overflow-y: auto; align-items: flex-start; justify-content: center; }
.booksec.modal-open .wrap { background: #fff; border-radius: 16px; width: 100%; max-width: 680px; margin: auto 0; padding: 20px 18px 26px; position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.book-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: #7a4a5a; padding: 0 0 2px; }
.book-close:hover { background: #f7ecec; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; background: linear-gradient(135deg,#f5e3ea,#e2bccc); color: #7a4a5a; text-align: center; padding: 24px; }
.slide-ph span { font-size: 22px; font-weight: 800; }
.slide-ph small { font-size: 14px; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 36px 20px 14px; background: linear-gradient(transparent, rgba(43,20,29,.74)); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-book { background: rgba(255,255,255,.94); color: #5b2b3a; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.hero-book:hover { background: #fff; }
.hero-cap h1 { margin: 0 0 4px; font-size: 26px; }
.hero-cap p { margin: 0 0 14px; font-size: 14px; opacity: .93; }
.dots { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 7px; margin: 0; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; }
.dots button.on { background: #fff; }
.hmenu { max-width: 720px; margin: 0 auto; padding: 20px 16px 4px; }
.hmenu h2 { margin: 0 0 12px; font-size: 20px; text-align: center; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.mcard { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); padding: 0 0 8px; height: 100%; box-sizing: border-box; }
.mimg { flex: none; display: block; width: 100%; aspect-ratio: 4/3; background: #efe4e9; overflow: hidden; border-radius: 0; }
.mimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mimg.ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#f3dfe6,#e0b8c6); }
.mimg.ph span { font-size: 22px; font-weight: 800; color: #a06a7e; }
.mbody { display: flex; flex-direction: column; padding: 8px 10px 0; min-width: 0; flex: 1; }
.mbody b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.3; min-height: 2.6em; }
.mfoot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; }
.mfoot .pricetag { margin-top: 0; }
.mbody small { color: var(--muted); font-size: 12px; display: block; margin-top: 1px; }
.mdesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; margin-top: 2px; color: var(--muted); line-height: 1.35; }
.pricetag { position: relative; display: inline-block; font-size: 12px; font-weight: 700; background: var(--pink-dark); color: #fff; padding: 2px 9px 2px 15px; border-radius: 4px; margin-top: 4px; white-space: nowrap; }
.pricetag::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: #fff; border-radius: 50%; }
.mdur { font-size: 12px; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.hinfo { max-width: 1024px; margin: 26px auto 0; padding: 26px 16px 40px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .hinfo { grid-template-columns: repeat(3, 1fr); } }
.hi-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.hi-card b { display: block; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.hi-card a, .hi-card span { display: block; font-size: 15px; color: var(--ink); text-decoration: none; margin: 4px 0; line-height: 1.5; }
/* booking wizard: add-ons section */
.addon-sect { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.addon-t { display: block; font-size: 14px; margin-bottom: 8px; }
.addon-t span { font-weight: 400; color: var(--muted); font-size: 12px; }
.addon-list { display: grid; gap: 6px; }
@media (min-width: 640px) { .addon-list { grid-template-columns: repeat(2, 1fr); } }
.addon-opt { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.addon-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.addon-opt input { width: 17px; height: 17px; accent-color: var(--pink-dark); flex: none; }
.addon-name { flex: 1; }
.addon-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.hrate { max-width: 720px; margin: 0 auto; padding: 22px 16px; text-align: center; }
.hrate h2 { margin: 0 0 6px; font-size: 20px; }
.hrate p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.booksec { max-width: 720px; margin: 0 auto; padding: 6px 0 26px; }
.booksec[hidden] { display: none; }
.book-t { text-align: center; margin: 16px 0 6px; font-size: 22px; }

/* ============ owner gallery manager ============ */
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 760px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.gcard img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.gcard-menubtn { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.94); color: #5b3a44; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 0 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.gcard-menubtn:hover { background: #fff; }
.gcard-menu { position: absolute; top: 44px; right: 6px; z-index: 6; background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); min-width: 158px; padding: 4px; }
.gcard-menu > button, .gcard-menu form > button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font-size: 14px; border-radius: 7px; cursor: pointer; color: #3d2b31; }
.gcard-menu > button:hover, .gcard-menu form > button:hover { background: #f7ecec; }
.gcard-menu form { margin: 0; }
.gcard-menu .danger { color: #c0392b; }
.gcard .gmeta { padding: 8px 10px; display: grid; gap: 6px; }
.gcard .gname { font-size: 11px; color: var(--muted); word-break: break-all; }
.gcard select { width: 100%; font-size: 13px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.gcard .gdel { width: 100%; }

/* ============ appointment modal: single primary + overflow menu ============ */
#mActions { align-items: stretch; }
#mActions .mprimary { flex: 1; display: flex; }
#mActions .mprimary .btn { flex: 1; }
.moremenu { position: relative; display: flex; }
.moremenu-list { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 80; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); min-width: 210px; padding: 6px; }
.moremenu-list[hidden] { display: none; }
.moremenu-list .kform { margin: 0; }

/* ============ public review form ============ */
.rev-wrap { max-width: 520px; margin: 0 auto; padding: 26px 18px 44px; text-align: center; }
.rev-logo { margin: 0 auto 12px; }
.rev-wrap h2 { margin: 0 0 6px; font-size: 22px; }
.rev-form { text-align: left; margin-top: 18px; display: grid; gap: 12px; }
.rev-form .btn.big { width: 100%; }
.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 2px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 42px; line-height: 1; color: #dcc3cc; cursor: pointer; padding: 0 2px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #e8a020; }

/* ============ homepage reviews section ============ */
.hreviews { max-width: 720px; margin: 0 auto; padding: 22px 16px; text-align: center; }
.hreviews h2 { margin: 0 0 10px; font-size: 20px; }
.rev-sum { margin-bottom: 16px; }
.rev-sum .big { font-size: 46px; font-weight: 800; line-height: 1; }
.rev-stars { color: #e8a020; font-size: 20px; letter-spacing: 3px; margin: 4px 0; }
.rev-sum small { color: var(--muted); font-size: 13px; }
.rev-cards { display: grid; gap: 10px; text-align: left; margin-bottom: 18px; }
@media (min-width: 640px) { .rev-cards { grid-template-columns: 1fr 1fr; } }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.rcard .rs { color: #e8a020; letter-spacing: 2px; font-size: 14px; }
.rcard p { font-size: 14px; margin: 8px 0; }
.rcard .who { font-size: 12.5px; color: var(--muted); }
.hreviews .cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gcard details { padding: 8px 10px; }
.gcard summary { cursor: pointer; font-size: 13px; font-weight: 600; }

/* Gallery dropzone (owner) */
.dropzone{border:2px dashed var(--line);border-radius:var(--radius);padding:30px 16px;text-align:center;cursor:pointer;background:var(--card);transition:border-color .15s,background .15s}
.dropzone.over{border-color:var(--pink);background:var(--pink-soft)}
/* Crop modal (owner gallery) */
.cmodal{position:fixed;inset:0;z-index:200;background:rgba(43,20,29,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.cmodal[hidden]{display:none!important}
.cmodal-box{background:#fff;border-radius:16px;max-width:600px;width:100%;max-height:94vh;overflow:auto;padding:16px}
.cmodal-imgwrap{max-height:58vh;overflow:hidden;background:#1d1d1f;border-radius:10px;touch-action:none}
.cmodal-imgwrap img{max-width:100%;display:block}
.cmodal-tools{display:flex;gap:8px;align-items:center;margin:10px 0 2px}
.cmodal-tools button{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:22px;line-height:1;cursor:pointer;flex:none}
.cmodal-hint{font-size:12px;color:var(--muted)}
.cmodal-ratios{display:flex;gap:8px;margin:10px 0 12px}
.cmodal-ratios button{flex:1;padding:9px 4px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-size:13px}
.cmodal-ratios button.on{border-color:var(--pink);background:var(--pink-soft);font-weight:700}
/* Pixieset-style upload queue (owner gallery) */
.upqueue{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.upqueue[hidden]{display:none}
.uq-item{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.uq-thumb{width:52px;height:52px;object-fit:cover;border-radius:8px;background:#f3e6ec;flex:none}
.uq-meta{flex:1;min-width:0}
.uq-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uq-bar{height:6px;background:#f3e6ec;border-radius:3px;margin-top:6px;overflow:hidden}
.uq-bar i{display:block;height:100%;width:0;background:var(--pink);border-radius:3px;transition:width .15s}
.uq-status{font-size:12px;color:var(--muted);white-space:nowrap;flex:none}
.uq-status.done{color:#1e7e34;font-weight:700}
.uq-status.err{color:#c0392b;font-weight:700}
.uq-debug{font-size:10px;color:#999;margin-top:4px;word-break:break-all}
.gcard-broken{margin-top:6px;font-size:12px;color:#c0392b;background:#fdecea;border:1px solid #f5c6cb;border-radius:8px;padding:6px 8px}
.dz-title{font-weight:700;margin:0 0 4px;color:var(--ink)}
.dz-sub{color:var(--muted);font-size:13px;margin:0}

/* v36: gallery badges, business hours rows, service thumb picker */
.gbadge { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: rgba(90,90,90,.85); color: #fff; pointer-events: none; }
.gbadge.on { background: rgba(190,90,120,.92); }
.hours-rows { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.hrow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.hday { width: 92px; font-weight: 600; flex: none; }
.hrow input[type=time] { font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.hrow input[type=time]:disabled { opacity: .4; }
.hdash { color: var(--muted); }
.hclosed { margin-left: auto; white-space: nowrap; }
.thumbcell { text-align: center; min-width: 110px; }
.thumbprev { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 0 auto 6px; }
.thumb-none { display: block; font-size: 20px; color: var(--muted); margin-bottom: 6px; }
.gal-toolbar { display: flex; align-items: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.bulkcheck { position: absolute; top: 8px; left: 34px; z-index: 3; width: 22px; height: 22px; accent-color: var(--pink-dark); cursor: pointer; }
.gal-grid.selecting .bulkcheck { display: block !important; }
.thumbbtns { display: flex; flex-direction: column; gap: 4px; }
.btn.small { font-size: 12px; padding: 4px 10px; }
.tpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; margin-bottom: 12px; }
.tpick { border: 2px solid transparent; border-radius: 10px; padding: 0; cursor: pointer; background: none; overflow: hidden; }
.tpick:hover { border-color: var(--rose); }
.tpick img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
@media (max-width: 560px) {
  .hday { width: 76px; font-size: 14px; }
  .hrow { gap: 6px; padding: 6px 8px; }
  .hrow input[type=time] { font-size: 14px; padding: 5px 4px; }
}

/* inspiration photos (booking) */
.inspo-prev { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.inspo-thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid #e8c9d4; }
.inspo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inspo-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }

/* checkout modal */
.co-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.co-row label { flex: 1; font-size: 15px; }
.co-row .cur { font-size: 15px; color: #8a6d7b; }
.co-row input[type=text], .co-row input[type=number] { width: 110px; font-size: 16px; padding: 8px 10px; border: 1px solid #e0c6d2; border-radius: 10px; }
.co-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; padding-top: 10px; border-top: 1px dashed #e0c6d2; font-size: 17px; }
.co-total b { font-size: 22px; }
.co-note { font-size: 13px; color: #8a6d7b; margin: 4px 0 0; }
/* owner: customer inspiration photos in appointment detail */
/* lightbox for customer inspiration photos */
.mphotos { display: flex; gap: 8px; flex-wrap: wrap; }
.mphotos-btn { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; width: 88px; height: 88px; }
.mphotos-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photobox { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; }
.photobox[hidden] { display: none; }
.photobox-bg { position: absolute; inset: 0; background: rgba(20,8,12,.85); }
.photobox-img { position: relative; max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.photobox-x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #5b2b3a; font-size: 24px; line-height: 1; cursor: pointer; }
.ph-tag { font-size: 14px; vertical-align: -1px; }
