/* Salon 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); }
/* (fitsuggest retired: gap chips + gap-notice replace it) */
.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; border: 0; 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: 92px; }
  .bottom-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 4px calc(14px + env(safe-area-inset-bottom)); }
  .btab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; padding: 8px 2px; border-radius: 10px; }
  .btab .bico { font-size: 24px; 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; flex-wrap: wrap;
  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);
  max-width: 100%; overflow: hidden;
}
.bookbar .cf-turnstile { flex-shrink: 1; min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
  .bookbar { gap: 8px; padding: 10px; }
  .bookbar .cf-turnstile { order: 10; width: 100%; display: flex; justify-content: center; }
}
.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; }
/* Day view: kebab menu on hover + drag-drop */
.tl-block { position: absolute; cursor: grab; }
.tl-block .kebab { display: none; position: absolute; top: 2px; right: 2px; z-index: 10;
  background: rgba(255,255,255,.95); border: 1px solid #ddd; border-radius: 6px;
  width: 28px; height: 28px; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.tl-block:hover .kebab { display: block; }
.tl-block.dragging { opacity: .5; cursor: grabbing; }
.res-col-body.drag-over, .tl-col-body.drag-over { background: #fff0f5; outline: 2px dashed #d63384; outline-offset: -2px; }
/* Resizable day columns */
.res-col-head { position: relative; }
.col-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 10; }
.col-resize:hover { background: rgba(214,51,132,.2); }
.res-col.resizing { user-select: none; }
.tl-block.blocked { background: repeating-linear-gradient(45deg, #eceff3 0, #eceff3 8px, #dde3e9 8px, #dde3e9 16px); }
.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: 7px 9px; cursor: pointer; overflow: hidden; }
.tl-block .tlb-time { font-weight: 800; font-size: 12px; }
.tl-block .tlb-name { font-weight: 800; font-size: 13px; line-height: 1.25; color: #2b2b2b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block .tlb-svc { font-size: 12px; font-weight: 500; color: #555; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block .tlb-meta { font-size: 10.5px; color: #999; margin-top: 1px; 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; }
/* Day summary strip: compact, classy pill above the appointment cards. */
.day-sum { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 2px 10px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #fdf2f6, #fbe3ec); border: 1px solid #f0c2d4; box-shadow: 0 2px 8px rgba(190, 24, 93, .06); }
.ds-item { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.ds-item b { font-size: 13px; font-weight: 800; color: #5b2b3a; }
.ds-item i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a37686; }
.ds-sep { width: 1px; height: 14px; background: #e9b9cb; flex: none; }
.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; }
.dur-tag { display: inline-block; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.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; }
.res-gutter .tl-hour-lbl { left: 0; right: 4px; text-align: right; }
.res-col { flex: 1 1 0; min-width: 0; border-right: 1px solid #e8c4d1; display: flex; flex-direction: column; }
.res-col-head { position: sticky; top: 0; z-index: 5; height: 44px; min-height: 44px; 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; min-height: 0; background: #fff; }
.rch-init { display: none; }
/* Day view: drag column headers to reorder techs. */
.res-grid .res-col-head { cursor: grab; }
.col-grip { color: #c8a3b2; font-size: 10px; letter-spacing: -3px; margin-left: 2px; cursor: grab; }
.res-col.col-dragging { opacity: .45; }
@media (max-width: 700px) { .col-grip { display: none; } }
/* Weekly day off: column tint + OFF pill (day view / turn queue). */
.rch-off { font-size: 8.5px; font-weight: 800; color: #fff; background: #9aa7b0; border-radius: 6px; padding: 1px 5px; margin-left: 4px; }
.res-col.col-off .res-col-body { background-image: repeating-linear-gradient(45deg, rgba(90, 100, 110, .05) 0, rgba(90, 100, 110, .05) 10px, transparent 10px, transparent 20px); }
.tq-status.off { color: #8a97a3; }
.tq-item.tq-off { opacity: .55; }
@media (max-width: 700px) { .rch-off { display: none; } }
/* Hover detail card (pointer devices): full appointment info, month-view style. */
#tlTip { position: fixed; z-index: 9990; width: 248px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #f0cfda; border-radius: 12px; box-shadow: 0 10px 30px rgba(90, 30, 50, .22); padding: 10px 12px; font-size: 12px; line-height: 1.45; color: #333; pointer-events: none; opacity: 0; transition: opacity .1s ease; }
#tlTip.on { opacity: 1; }
#tlTip .tt-name { font-weight: 800; font-size: 13px; color: #2b2b2b; }
#tlTip .tt-sub { color: #a34d68; font-weight: 700; }
#tlTip .tt-row { margin-top: 3px; }
#tlTip .tt-mut { color: #888; }
#tlTip .tt-svc { margin-top: 5px; border-top: 1px dashed #f0cfda; padding-top: 5px; }
#tlTip .tt-svc div { display: flex; justify-content: space-between; gap: 8px; }
#tlTip .tt-note { margin-top: 5px; font-style: italic; color: #666; }
.tt-compact { display: none; }
.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; }
}

/* Phones: day-grid type was sized for desktop columns. Scale appointment
   and block text, hour labels and the gutter down to the narrow columns.
   Desktop and landscape tablets keep the original sizes. */
@media (max-width: 700px) {
  body.cal-day .res-gutter { flex-basis: 40px; }
  body.cal-day .res-gutter .tl-hour-lbl { font-size: 9px; right: 3px; }
  .res-grid .tl-block { padding: 2px 4px; border-radius: 6px; }
  .res-grid .tl-block .tlb-time { font-size: 4.5px; white-space: nowrap; }
  .res-grid .tl-block .tlb-name { font-size: 9px; line-height: 1.15; }
  .res-grid .tl-block .tlb-svc { font-size: 8px; line-height: 1.2; }
  .res-grid .tl-block .tlb-meta { font-size: 4.5px; }
  .res-grid .tl-block .tlb-badge { font-size: 8px; padding: 0 4px; }
  .res-grid .tlb-ico { font-size: 8.5px; }
  .res-grid .tlb-icons { top: 1px; right: 2px; gap: 2px; }
  .res-grid .res-col-head { font-size: 11px; height: 36px; min-height: 36px; padding: 3px 5px; }
  .res-grid .tt-full { display: none; }
  .res-grid .tt-compact { display: inline; }
  .res-grid .rch-full { display: none; }
  .res-grid .rch-init { display: inline; }
  .res-grid .tl-block.blocked .tlb-svc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* 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: 1.5px solid #e8a0b4; border-radius: 10px; padding: 10px 12px; background: #fdf2f5; }
.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; }
/* Fully booked but open: tappable -> waitlist. Dotted underline distinguishes
   it from greyed-out closed days while keeping it visibly clickable. */
.dc-day.dc-full { text-decoration: underline dotted; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.dc-day.dc-full.dc-sel { text-decoration-color: #fff; }

/* Free-gaps panel (public booking): what's actually free when the day is full. */
.gaps-panel { margin: 12px 0 4px; padding: 14px 14px 12px; border-radius: 16px; background: linear-gradient(135deg, #fff7fa 0%, #fdeef4 60%, #fbe3ee 100%); border: 1px solid #f3c6da; box-shadow: 0 4px 14px rgba(190,24,93,.08); text-align: left; }
.gaps-title { font-size: 14.5px; font-weight: 800; color: #5b2b3a; margin-bottom: 10px; }
.gaps-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #ece7ea; margin-bottom: 10px; }
.gaps-bar i { display: block; height: 100%; min-width: 2px; }
.gb-busy { background: #e0d9de; }
.gb-free { background: linear-gradient(90deg, #f9a8c9, #f0619b); }
.gaps-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gap-chip { display: inline-flex; align-items: baseline; gap: 6px; background: #fff; border: 1.5px solid #f3c6da; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-family: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.gap-chip:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(190,24,93,.12); border-color: #e88bb0; }
.gap-chip.sel { border-color: #f0619b; box-shadow: 0 0 0 2px rgba(240,97,155,.25); }
.gap-chip b { font-size: 13.5px; color: #5b2b3a; }
.gap-chip i { font-style: normal; font-size: 11.5px; font-weight: 700; color: #c25083; }
.gaps-hint { font-size: 12.5px; color: #a37686; }
/* Compact fit notice (Tight-day style): appears when a gap chip is tapped. */
.gap-notice { background: #fff8e6; border: 1px solid #f0d98a; border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: 14px; color: #5b4a1f; }
.gap-notice .fs-btn { display: inline-block; margin-top: 8px; background: #f43f5e; color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* 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; }
.noshow-note .policy-check { margin: 10px 0 2px; align-items: flex-start; font-size: 14px; }
.noshow-note .policy-check input { margin-top: 1px; flex: none; }

/* ---- 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; } }

/* ---- 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: auto; max-width: 92vw; object-fit: contain; 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: 24px; text-align: center; color: var(--pink-dark); }
.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: 15px; font-weight: 600; 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 { aspect-ratio: 4/5; max-height: 84vh; max-width: 620px; margin: 0 auto; border-radius: 0 0 20px 20px; }
}
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 img.logo-full { object-fit: contain; } /* Curvy Nails: logo slide must fit, not crop */
.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: var(--pink-dark); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.32); padding: 15px 44px; font-size: 18px; }
.hero-book:hover { background: #93354f; }
.hero-cap h1 { margin: 0 0 4px; font-size: 26px; }
.hero-cap p { margin: 0 0 14px; font-size: 14px; opacity: .93; }
.sarrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.75); color: #5b2b3a;
  font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.sarrow.prev { left: 10px; }
.sarrow.next { right: 10px; }
.sarrow:active { background: #fff; }
.hmenu { max-width: 720px; margin: 0 auto; padding: 20px 16px 4px; }
.hmenu h2 { margin: 0 0 12px; font-size: 24px; text-align: center; color: var(--pink-dark); }
.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; position: relative; }
.gcard img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; border-radius: 11px 11px 0 0; }
.gr-phone { font-size: 13px; color: #888; margin-top: 2px; }
.gr-phone a { color: #888; text-decoration: none; }
.gr-phone a:hover { color: #d63384; text-decoration: underline; }
.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; }
.hgift { max-width: 720px; margin: 0 auto; padding: 30px 16px 34px; text-align: center; border-top: 1px solid var(--line); }
.hgift h2 { margin: 0 0 8px; font-size: 20px; }
.hgift p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.hgift .btn { background: var(--pink-dark); color: #fff; padding: 14px 36px; font-size: 16px; }
.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; }
.note-tag { font-size: 14px; vertical-align: -1px; }
.linklike { background: none; border: none; padding: 0; color: #a34d6b; text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Blocked-time card (GlossGenius style) in month-view day list. */
.blk-row { display: flex; gap: 12px; align-items: flex-start; background: #ece7e9; border-radius: 14px; padding: 14px; margin: 10px 0; }
.blk-ico { width: 48px; height: 48px; border-radius: 12px; background: #d9d2d5; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.blk-main { flex: 1; min-width: 0; }
.blk-l1 { font-size: 17px; }
.blk-sub { color: #8a7a80; font-size: 14px; margin-top: 2px; }
.blk-when { margin-top: 10px; font-size: 15px; }
.blk-art { font-size: 15px; color: #5b4a50; }
.blk-side { position: relative; flex: none; }
/* Slim one-line blocked row (calendar day view): icon + title + time. */
.blk-row.slim { align-items: center; padding: 8px 12px; margin: 8px 0; gap: 10px; }
.blk-row.slim .blk-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
.blk-row.slim .blk-main { display: flex; align-items: baseline; gap: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.blk-row.slim .blk-main b { overflow: hidden; text-overflow: ellipsis; }
.blk-row.slim .blk-when { margin-top: 0; font-size: 13px; color: #8a7a80; flex: none; }
/* Waiting list inside the calendar day view: amber rows stand out from pink appts. */
.wl-day-sec { margin: 14px 0 6px; }
.wl-day-head { font-weight: 800; font-size: 14px; color: #92400e; margin-bottom: 8px; }
.wl-day-count { display: inline-block; background: #d97706; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.wl-day-row { display: flex; align-items: center; gap: 10px; background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.wl-day-row.offered { background: #eff6ff; border-color: #93c5fd; }
.wl-day-ico { font-size: 18px; flex: none; }
.wl-day-main { flex: 1; min-width: 0; }
.wl-day-l1 { font-size: 14px; }
.wl-day-sub { font-size: 12px; color: #78716c; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-day-badge { display: inline-block; background: #dbeafe; color: #1d4ed8; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.wl-day-act { flex: none; }
.mcard.noimg { padding: 12px 0 8px; }

/* Compact homepage service list. */
.svc-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.svc-list li { padding: 12px 14px; border-bottom: 1px solid var(--pink-soft); }
.svc-list li:last-child { border-bottom: 0; }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.svc-top b { font-size: 16px; }
.svc-price { color: #fff; background: var(--pink-dark); font-weight: 700; font-size: 13.5px; white-space: nowrap; padding: 4px 12px; border-radius: 999px; }
.svc-desc { color: var(--muted); font-size: 13px; display: block; margin-top: 3px; line-height: 1.4; }

/* ===== Landing redesign: warm salon trend (scoped to .landing) ===== */
.landing { background: #faf6f1; color: #3d2e26; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.landing h1, .landing h2 { font-family: 'Playfair Display', Georgia, serif; }
.eyebrow { text-align: center; text-transform: uppercase; letter-spacing: 3px; font-size: 11px; font-weight: 700; color: var(--pink-dark); margin-bottom: 6px; }
.eyebrow.light { color: rgba(255,255,255,.85); }
.landing .hero-cap { padding: 60px 20px 26px; gap: 8px; }
.landing .hero-cap h1 { font-size: 44px; line-height: 1.1; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.landing .hero-cap p { font-size: 16px; margin: 0 0 12px; opacity: .95; font-style: italic; font-family: 'Playfair Display', Georgia, serif; }
.landing .hero-book { margin-top: 6px; }
.landing .hmenu, .landing .haddons { max-width: 720px; margin: 0 auto; padding: 36px 16px 8px; }
.landing .hmenu h2, .landing .haddons h2, .landing .hreviews h2 { font-size: 32px; color: #3d2e26; margin: 0 0 16px; }
.landing .svc-list, .landing .addon-list { border: 1px solid #e9dcc8; box-shadow: 0 4px 18px rgba(61,46,38,.06); }
.landing .svc-list li { border-bottom: 1px solid #f3eadd; padding: 14px 16px; }
.landing .svc-top b { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 600; }
.landing .svc-price { background: var(--pink-dark); }
.landing .svc-desc { color: #8a7a6e; }
.landing .addon-list li { border-bottom: 1px solid #f3eadd; }
.landing .addon-list li b { color: var(--pink-dark); }
.landing .hinfo { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; padding: 28px 16px; }
.landing .hi-card { background: #fff; border: 1px solid #e9dcc8; border-radius: 14px; padding: 16px; box-shadow: 0 4px 18px rgba(61,46,38,.06); }
.landing .hi-card b { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; display: block; margin-bottom: 6px; }
.landing .hreviews { max-width: 720px; margin: 0 auto; padding: 12px 16px 40px; text-align: center; }
.landing .rev-sum .big { font-family: 'Playfair Display', Georgia, serif; }
.landing footer.site { color: #8a7a6e; }

.landing .hend-book { text-align: center; padding: 40px 16px 48px; background: #fff; border-top: 1px solid #e9dcc8; }
.landing .hend-book h2 { font-size: 30px; margin: 0 0 18px; color: #3d2e26; }

body.sheet-open .fab { display: none; }

.note-tl { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.note-item { background: #fffdf5; border: 1px solid #e9dcc8; border-left: 3px solid var(--pink-dark); border-radius: 8px; padding: 8px 12px; }
.note-when { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.note-text { font-size: 14px; line-height: 1.5; white-space: pre-wrap; }

/* ---- Notifications (GlossGenius-style list + edit) ---- */
.nlist { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.nrow { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid #f0e6ea; text-decoration: none; color: inherit; }
.nrow:last-child { border-bottom: 0; }
.nname { font-weight: 600; font-size: 15px; }
.nchev { font-size: 22px; color: #b89aa5; line-height: 1; }
.nseg { display: flex; background: #eee7ea; border-radius: 999px; padding: 4px; margin: 10px 0 14px; }
.nseg button { flex: 1; border: 0; background: transparent; border-radius: 999px;
  padding: 10px; font-size: 15px; font-weight: 600; color: #7a5a64; cursor: pointer; }
.nseg button.on { background: #3a3a3c; color: #fff; }
.nswitch { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; }
.nswitch input[type=checkbox] { width: 52px; height: 30px; appearance: none; -webkit-appearance: none;
  background: #d8cdd2; border-radius: 999px; position: relative; cursor: pointer; flex: none;
  transition: background .15s; margin: 0; }
.nswitch input[type=checkbox]:checked { background: #d6336c; }
.nswitch input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.nswitch input[type=checkbox]:checked::after { left: 25px; }
.nswitch input[type=checkbox]:disabled { opacity: .6; cursor: default; }
.npreview { background: #f7f4f5; border-radius: 12px; padding: 14px; margin: 4px 0 12px;
  pointer-events: none; }
.npreview-subj { font-weight: 700; margin-bottom: 10px; padding-bottom: 10px;
  border-bottom: 1px solid #e8dee2; }
.npreview-sms { font-size: 15px; line-height: 1.6; }

/* ---- Salon v1: tech bills ---- */
.pill{display:inline-block;font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px;background:#eef0f3;color:#555;white-space:nowrap}
.pill.ok{background:#dff5e3;color:#1e7e34}
.pill.warn{background:#fff3cd;color:#856404}
.nav-badge{display:inline-block;background:#d63384;color:#fff;font-size:10px;font-weight:700;border-radius:999px;min-width:18px;height:18px;line-height:18px;text-align:center;padding:0 5px;margin-left:5px;vertical-align:2px}
.bill-row{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}

/* Visit badge on day blocks */
.tlb-visit { display: inline-block; font-size: 10px; font-weight: 700; background: #e8f4fd; color: #2980b9; padding: 1px 7px; border-radius: 10px; margin-left: 4px; vertical-align: 1px; }
.tlb-visit.new { background: #e8f8e8; color: #27ae60; }

/* Group badge */
.tlb-group { display: inline-block; font-size: 10px; font-weight: 700; background: #fff3cd; color: #856404; padding: 1px 7px; border-radius: 10px; margin-left: 4px; vertical-align: 1px; }

/* Walk-in modal availability plan */
.wi-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 4px; border-bottom: 1px solid #f3e4ec; font-size: 14px; }
.wi-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.wi-now { background: #d4edda; color: #155724; }
.wi-wait { background: #fff3cd; color: #856404; }
.wi-no { background: #f8d7da; color: #721c24; }
.wi-sum { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.wi-err { background: #f8d7da; color: #721c24; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }

/* Unassigned strip: horizontal cards below the day timeline */
.unassigned-strip { margin-top: 12px; border: 2px dashed #d7c3cd; border-radius: 14px; background: #fdf7fa; }
.unassigned-strip.drag-over { border-color: #d63384; background: #fce8f1; }
.unassigned-head { padding: 10px 14px 2px; font-weight: 800; font-size: 15px; color: #5b2b3a; }
.unassigned-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 12px 14px; min-height: 60px; }
.unassigned-chips.drag-over { background: #fce8f1; border-radius: 10px; }
.tl-block.chip { position: relative; width: 230px; flex: 0 0 auto; min-height: 96px; }
.wi-next { background: #cce5ff; color: #004085; }

/* Walk-in modal: per-person service rows + assigned tech chip */
.wi-person{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.wi-pname{flex:none;min-width:92px;font-weight:700;font-size:14px}
.wi-psvc{flex:1;min-width:0;padding:8px;border:1px solid #e5c6d4;border-radius:10px;font-size:14px;background:#fff}
.wi-tech{display:inline-block;color:#fff;font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;margin-left:6px;vertical-align:1px}
/* Day view turn bar: fair rotation at a glance */
.turnbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:10px 0}
.turnbar .tb-label{font-size:12px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.4px}
.turnbar .tb-tech{display:flex;align-items:center;gap:6px;border:1px solid #eee;border-radius:999px;padding:4px 10px 4px 5px;font-size:13px;font-weight:600;background:#fafafa}
.turnbar .tb-dot{width:18px;height:18px;border-radius:50%;flex:none}
.turnbar .tb-count{background:#f3e4ec;color:#8e2f5c;font-size:11.5px;font-weight:700;border-radius:999px;padding:1px 8px}
.turnbar .tb-next{border-color:#d63384;background:#fdf0f5}
.turnbar .tb-next .tb-count{background:#d63384;color:#fff}

/* ---- "more" overflow menu on the schedule toolbar ---- */
.sb-more { position: relative; }
.sb-more-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); min-width: 200px; z-index: 600; padding: 6px; }
.sb-more-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: #444; }
.sb-more-row:hover { background: #fdf0f5; }
.sb-more-row .sound-btn { width: 34px; height: 34px; font-size: 16px; flex: none; }

/* ---- day view: turn queue + timeline flex ---- */
.day-flex { display: flex; gap: 10px; align-items: stretch; height: calc(100vh - 165px); min-height: 400px; }
.day-flex .res-scroll { flex: 1; min-width: 0; display: flex; }
.turnqueue { flex: 0 0 178px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; position: sticky; top: 10px; max-height: 82vh; overflow-y: auto; }
.tq-head { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #999; margin: 2px 2px 6px; }
.tq-item { display: flex; gap: 6px; align-items: flex-start; padding: 6px 4px; border-radius: 8px; border-bottom: 1px solid #f3f4f6; }
.tq-item:last-child { border-bottom: none; }
.tq-item.tq-next { background: #fdf0f5; border: 1px solid #f5c2d8; }
.tq-rank { font-size: 16px; font-weight: 800; color: #c9c9c9; min-width: 24px; }
.tq-item.tq-next .tq-rank { color: #d63384; }
.tq-dot { width: 10px; height: 10px; border-radius: 999px; margin-top: 4px; flex: none; }
.tq-info { min-width: 0; }
.tq-name { font-size: 13px; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-nextbadge { display: inline-block; background: #d63384; color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 6px; margin-left: 4px; vertical-align: 2px; }
.tq-sub { font-size: 11px; color: #888; margin-top: 2px; }
.tq-status { font-weight: 700; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.tq-status.ready { background: #d4edda; color: #155724; }
.tq-status.busy { background: #ffe3c2; color: #8a4b00; }

/* ---- unassigned column: walk-in chips (compact, shrink when many) ---- */
.res-col-unassigned .res-col-head { background: #f8f9fa; }
.wu-chips { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.wu-chips .tl-block.chip { width: 100%; flex: none; min-height: 0; }
.wu-chips.wu-dense .tl-block.chip { padding: 4px 6px; }
.wu-chips.wu-dense .tlb-time { font-size: 10px; }
.wu-chips.wu-dense .tlb-name { font-size: 11px; }
.wu-chips.wu-dense .tlb-svc { display: none; }
.wu-chips.wu-dense .tlb-price { font-size: 10px; }
.wu-chips.wu-xdense .tl-block.chip { padding: 2px 6px; }
.wu-chips.wu-xdense .tlb-time, .wu-chips.wu-xdense .tlb-price, .wu-chips.wu-xdense .tlb-icons { display: none; }
.wu-chips.wu-xdense .tlb-name { font-size: 10.5px; }

/* ---- Day view: full-width schedule, spacious cells, no separate fullscreen mode ---- */
/* The day timeline uses the whole viewport width by default. */
body.cal-day .wrap { max-width: 1920px; padding-left: 12px; padding-right: 12px; }
body.cal-day .tl-block .tlb-name { font-size: 12.5px; line-height: 1.35; }
body.cal-day .tl-block .tlb-svc { font-size: 12px; }
body.cal-day .tl-block .tlb-meta { font-size: 10.5px; }
body.cal-day .res-col-head { font-size: 16px; }
body.cal-day .tl-hour-lbl { font-size: 14px; }
/* Use the whole screen first; scrollbars only if content truly overflows. */
body.cal-day .res-scroll { max-height: none; overflow-x: auto; overflow-y: visible; }
body.cal-day .res-grid { min-width: 0; }
body.cal-day .res-col { flex: 1 1 0; min-width: 170px; max-width: none; }
body.cal-day .res-col-unassigned { flex: 0 1 200px; min-width: 180px; }
body.cal-day .turnqueue { flex-basis: 200px; }
@media (max-width: 900px) {
  body.cal-day .res-grid { min-width: max-content; }
  body.cal-day .res-col { flex: 1 0 220px; min-width: 220px; }
}
body.cal-day .tq-name { font-size: 16px; }
body.cal-day .tq-sub { font-size: 13px; }
body.cal-day .tq-rank { font-size: 24px; }
@media (max-width: 640px) {
  .turnqueue { flex-basis: 148px; }
}

/* ---- pointer-events drag: allow vertical touch scroll, horizontal drag ---- */
.tl-block[draggable="true"] { touch-action: pan-y; cursor: grab; }

/* ---- Day view: compact date navigator in the toolbar (week strip removed) ---- */
.day-nav { font-size: 18px; font-weight: 800; color: #d63384; text-decoration: none; padding: 6px 8px; line-height: 1; }
.day-nav:hover { opacity: .7; }
.day-label { font-size: 16px; font-weight: 800; color: #333; white-space: nowrap; padding: 0 2px; }
/* Tighter day-view header so the appointment grid gets max space. */
body.cal-day .sched-bar { padding-top: 8px; padding-bottom: 8px; }

/* ---- Tech column kebab + dashboard modal ---- */
.col-kebab { display: none; background: none; border: none; font-size: 16px; font-weight: 800; color: #999; cursor: pointer; padding: 2px 6px; border-radius: 6px; line-height: 1; margin-left: auto; }
.res-col-head:hover .col-kebab { display: inline-block; }
.col-kebab:hover { background: #f0e6ea; color: #d63384; }
.td-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f3f3f3; font-size: 14px; }
.td-row:last-of-type { border-bottom: none; }
.td-row span { color: #666; }

/* ---- Artist dropdown (replaces card picker) ---- */
.artist-dropdown { width: 100%; padding: 14px 12px; font-size: 16px; font-weight: 600; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: #333; cursor: pointer; appearance: auto; }
.artist-dropdown:focus { border-color: var(--pink); outline: none; }

/* ---- Tech drag to reorder ---- */
.oart-drag { cursor: grab; color: #bbb; font-size: 16px; letter-spacing: -2px; padding: 4px 6px; user-select: none; }
.oart-drag:active { cursor: grabbing; }
.oart-list li[draggable="true"].dragging { opacity: 0.4; }
.oart-list li.drag-over { outline: 2px dashed #d63384; outline-offset: -2px; }

/* ---- Day view fit-to-screen: turn strip on top, whole day fits viewport ---- */
body.cal-day .day-flex { flex-direction: column; }
body.cal-day .day-flex .res-scroll { min-height: 0; }
body.cal-day .turnqueue { flex: 0 0 auto; display: flex; flex-direction: row; align-items: stretch; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; position: static; max-height: none; }
body.cal-day .turnqueue .tq-head { display: flex; align-items: center; margin: 0; padding: 0 2px; flex: none; }
body.cal-day .turnqueue .tq-item { flex: 1 1 0; min-width: 128px; align-items: center; border: 1px solid #f3f4f6; border-radius: 10px; padding: 6px 8px; }
body.cal-day .turnqueue .tq-item.tq-next { border-color: #f5c2d8; }
body.cal-day .turnqueue .tq-rank { font-size: 18px; min-width: 20px; }
body.cal-day .turnqueue .tq-name { font-size: 14px; }
body.cal-day .turnqueue .tq-sub { font-size: 11px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.cal-day .turnqueue .tq-dot { margin-top: 0; }
body.cal-day .res-scroll { overflow: hidden; }
body.cal-day .res-grid { min-width: 0; width: 100%; height: 100%; }
body.cal-day .res-col { flex: 1 1 0; min-width: 0; }
body.cal-day .res-col-unassigned { flex: 0.8 1 0; min-width: 0; }
body.cal-day .col-resize { display: none; }
@media (max-width: 900px) {
  body.cal-day .res-grid { min-width: 0; }
  body.cal-day .res-col { flex: 1 1 0; min-width: 0; }
  body.cal-day .res-col-unassigned { flex: 0.8 1 0; min-width: 0; }
}

/* ---- Day view compact header: slimmer toolbar, turn strip, column heads ---- */
body.cal-day .sched-bar { padding-top: 4px; padding-bottom: 4px; margin: 6px 0 4px; }
body.cal-day .gg-hamb { width: 32px; height: 32px; font-size: 16px; }
body.cal-day .gg-view, body.cal-day .gg-month { height: 32px; font-size: 13px; }
body.cal-day #walkinBtn { padding: 5px 14px !important; font-size: 14px; }
body.cal-day .sound-btn { width: 30px; height: 30px; font-size: 14px; }
body.cal-day .day-label { font-size: 15px; }
body.cal-day .day-nav { font-size: 16px; padding: 4px 6px; }
body.cal-day .day-flex { gap: 6px; }
body.cal-day .turnqueue { padding: 5px 8px; gap: 6px; }
body.cal-day .turnqueue .tq-item { padding: 4px 8px; }
body.cal-day .turnqueue .tq-rank { font-size: 15px; min-width: 18px; }
body.cal-day .turnqueue .tq-name { font-size: 13px; }
body.cal-day .turnqueue .tq-sub { margin-top: 0; }
body.cal-day .turnqueue .tq-nextbadge { padding: 1px 5px; }
body.cal-day .res-col-head { height: 34px; min-height: 34px; font-size: 14px; padding: 2px 8px; }

/* Off-duty techs yield width: half share when they still have bookings,
   a slim strip when the day is empty for them. */
.res-grid .res-col.col-off { flex: .5 1 0; }
.res-grid .res-col.col-off-empty { flex: .16 1 0; min-width: 46px; }
.res-grid .res-col.col-off-empty .rch-full,
.res-grid .res-col.col-off-empty .rch-off,
.res-grid .res-col.col-off-empty .col-grip { display: none; }
.res-grid .res-col.col-off-empty .rch-init { display: inline; }
@media (max-width: 700px) {
  .res-grid .res-col.col-off { flex: .6 1 0; }
  .res-grid .res-col.col-off-empty { flex: .3 1 0; min-width: 30px; }
}

/* Edit form: per-service artist rows. */
.e-line-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.e-line-name { flex: 1 1 auto; font-size: 13px; min-width: 0; }
.e_line_sel { flex: 0 0 auto; max-width: 160px; }

/* Today jump button (calendar toolbar): filled when already on today. */
.today-btn { display: inline-flex; align-items: center; padding: 7px 14px; border: 2px solid #d63384; border-radius: 10px; color: #d63384; font-weight: 700; font-size: 14px; text-decoration: none; background: #fff; }
.today-btn.on { background: #d63384; color: #fff; }

/* iPad/iOS keyboard: dvh tracks the visual viewport, so the modal shrinks
   above the keyboard instead of hiding behind it (vh fallback above). */
.modal-back { height: 100dvh; }
.modal { max-height: calc(100dvh - 12px); }
@media (min-width: 600px) { .modal { max-height: calc(100dvh - 40px); } }
/* Split-ticket segments on the day grid. */
.tl-block.is-seg { outline: 2px dashed rgba(0,0,0,.28); outline-offset: -2px; }
/* Detail pane per-service tech select. */
.d_line_sel { margin-top: 6px; max-width: 180px; font-size: 13px; }

/* Detail pane per-tech timing select. */
.d_line_mode { margin-top: 6px; margin-left: 6px; max-width: 118px; font-size: 13px; }

/* Phones (portrait + landscape): day-grid text matches the hour timeline.
   Hour labels and block time/name all sit at 14px, the client name bold
   at the same size. Blocks get real room by letting the grid grow tall
   and scroll inside its frame instead of being squeezed into the
   viewport (which clipped the name line entirely). Desktop untouched. */
@media (max-width: 980px) {
  body.cal-day .day-flex { height: auto; min-height: 0; }
  body.cal-day .res-scroll { max-height: calc(100dvh - 170px); overflow-y: auto; }
  .res-gutter-body, .res-col-body { min-height: 1140px; }
  body.cal-day .res-gutter { flex-basis: 54px; }
  body.cal-day .res-gutter .tl-hour-lbl { font-size: 14px; right: 4px; }
  .res-grid .tl-block { padding: 3px 6px; border-radius: 8px; }
  .res-grid .tl-block .tlb-time { font-size: 14px; white-space: nowrap; }
  .res-grid .tl-block .tlb-name { font-size: 14px; font-weight: 800; line-height: 1.2; }
  .res-grid .tl-block .tlb-svc { font-size: 12px; line-height: 1.25; }
  .res-grid .tl-block .tlb-meta { font-size: 11px; }
  .res-grid .tl-block .tlb-badge { font-size: 10px; padding: 1px 6px; }
  .res-grid .tlb-ico { font-size: 11px; }
}

/* Day-grid block content: client first name + services lead, the time
   line is small. The JS density ladder (d1/d2/d3 in calendar.php) hides
   or shrinks lines until everything fits inside the block, so text is
   never sliced mid-line at any grid scale. */
.res-grid .tl-block { display: flex; flex-direction: column; padding: 4px 6px; }
.res-grid .tl-block .tlb-name { font-size: 13px; font-weight: 800; line-height: 1.2; color: #2b2b2b; }
.res-grid .tl-block .tlb-svc { font-size: 11.5px; font-weight: 500; line-height: 1.2; color: #555; }
.res-grid .tl-block .tlb-time { font-size: 10.5px; font-weight: 600; line-height: 1.2; color: #7a6672; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.res-grid .tl-block.d1 .tlb-time { display: none; }
.res-grid .tl-block.d2 { padding: 2px 5px; }
.res-grid .tl-block.d2 .tlb-name { font-size: 11.5px; }
.res-grid .tl-block.d2 .tlb-svc { font-size: 10.5px; }
.res-grid .tl-block.d2 .tlb-icons { display: none; }
.res-grid .tl-block.d3 .tlb-svc { display: none; }
#unassignedChips .tl-block { display: flex; flex-direction: column; }
#unassignedChips .tl-block.d1 .tlb-meta { display: none; }
#unassignedChips .tl-block.d2 .tlb-name { font-size: 11.5px; }
#unassignedChips .tl-block.d2 .tlb-svc { font-size: 10.5px; }
#unassignedChips .tl-block.d3 .tlb-svc { display: none; }
@media (max-width: 980px) {
  .res-grid .tl-block .tlb-time { font-size: 10.5px; }
  .res-grid .tl-block .tlb-name { font-size: 13px; }
  .res-grid .tl-block .tlb-svc { font-size: 11.5px; }
}

/* Block text fit v2: the flex lines never shrink (that squashed glyphs
   and beheaded the name), the type scales down smoothly via --sc until
   it fits, and services wrap to use the block's full width. */
.res-grid .tl-block { --sc: 1; justify-content: center; }
.res-grid .tl-block > div { flex: none; }
.res-grid .tl-block .tlb-name { font-size: calc(13px * var(--sc)); }
.res-grid .tl-block .tlb-svc { font-size: calc(11.5px * var(--sc)); white-space: normal; }
.res-grid .tl-block .tlb-time { font-size: calc(10.5px * var(--sc)); }
.res-grid .tl-block.d1 { justify-content: flex-start; }
.res-grid .tl-block.d2 { flex-direction: row; align-items: center; gap: 6px; justify-content: flex-start; }
.res-grid .tl-block.d2 .tlb-name { font-size: calc(13px * var(--sc)); white-space: nowrap; }
.res-grid .tl-block.d2 .tlb-svc { font-size: calc(11.5px * var(--sc)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-grid .tl-block.d2 .tlb-icons { display: none; }
#unassignedChips .tl-block { --sc: 1; }
#unassignedChips .tl-block > div { flex: none; }
#unassignedChips .tl-block .tlb-name { font-size: calc(13px * var(--sc)); }
#unassignedChips .tl-block .tlb-svc { font-size: calc(12px * var(--sc)); white-space: normal; }
#unassignedChips .tl-block .tlb-meta { font-size: calc(10.5px * var(--sc)); }
@media (max-width: 980px) {
  .res-grid .tl-block .tlb-name { font-size: calc(13px * var(--sc)); }
  .res-grid .tl-block .tlb-svc { font-size: calc(11.5px * var(--sc)); }
  .res-grid .tl-block .tlb-time { font-size: calc(10.5px * var(--sc)); }
}

/* Block layout v3 (Hai 22/10): services own the left (one per line),
   right side stacks time in/out on top and the client name below it. */
.res-grid .tl-block { flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 6px; }
.res-grid .tl-block .tlb-svcs { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.res-grid .tl-block .tlb-svc { font-size: calc(11.5px * var(--sc)); white-space: normal; }
.res-grid .tl-block .tlb-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.res-grid .tl-block .tlb-time { display: flex; flex-direction: column; font-size: calc(10px * var(--sc)); line-height: 1.25; color: #44403c; font-weight: 600; white-space: nowrap; }
.res-grid .tl-block .tlb-name { font-size: calc(11px * var(--sc)); margin-top: 3px; white-space: nowrap; }
.res-grid .tl-block.d1 .tlb-time { display: none; }
.res-grid .tl-block.d2 { align-items: center; }
.res-grid .tl-block.d2 .tlb-side { order: -1; }
.res-grid .tl-block.d2 .tlb-time { display: none; }
.res-grid .tl-block.d2 .tlb-name { margin-top: 0; font-size: calc(12px * var(--sc)); }
.res-grid .tl-block.d2 .tlb-svcs .tlb-svc:nth-child(n+2) { display: none; }
.res-grid .tl-block.d2 .tlb-svcs .tlb-svc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) {
  .res-grid .tl-block .tlb-svc { font-size: calc(11.5px * var(--sc)); }
  .res-grid .tl-block .tlb-time { font-size: calc(10px * var(--sc)); }
  .res-grid .tl-block .tlb-name { font-size: calc(11px * var(--sc)); }
}
.res-grid .tl-block.has-icons .tlb-side { padding-top: 15px; }

/* Side column children keep their natural height (never compressed),
   so the fit logic sees the true size and shrinks the type instead. */
.res-grid .tl-block .tlb-side > div { flex: none; }
.res-grid .tl-block .tlb-time > span { flex: none; display: block; }
.res-grid .tl-block .tlb-svcs > div { flex: none; }
.res-grid .tl-block .tlb-time { line-height: 1.15; }
.res-grid .tl-block .tlb-name { margin-top: 1px; }

/* Time in-out is a single line (Hai 22/10). */
.res-grid .tl-block .tlb-time { display: block; white-space: nowrap; }

/* Group booking (fix131): guest count pills + per-guest cards. */
.guests-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.guests-label { font-weight: 700; font-size: 14px; }
.guests-pills { display: flex; gap: 6px; }
.gpill { width: 38px; height: 38px; border-radius: 999px; border: 2px solid #e5cdd8; background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; color: #7a4a61; }
.gpill.on { background: #d63384; border-color: #d63384; color: #fff; }
.gcard { border: 1.5px solid #eed7e2; border-radius: 14px; padding: 12px; margin-bottom: 12px; background: #fff7fa; }
.gcard-head { margin-bottom: 8px; font-size: 15px; }
.gcard .gname { width: 100%; margin-bottom: 10px; }
.gsvcs { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.gsvc { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.gsvc:hover { background: #fbeef4; }
.gsvc.is-addon { padding-left: 22px; font-size: 13px; color: #6b5560; }
.gsvc-meta { margin-left: auto; color: #a08a92; font-size: 12px; white-space: nowrap; }
.gcard .gartist { width: 100%; }

/* Soonest group openings: one-tap picks (fix132). */
.soonest-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.soonest-btn { border: 2px solid #d63384; color: #d63384; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.soonest-btn.selected { background: #d63384; color: #fff; }

/* Client lookup popup on the owner create form phone field */
.phone-wrap{position:relative}
.client-pop{position:absolute;top:100%;left:0;min-width:270px;max-width:92vw;background:#fff;border:1px solid #ecc9d9;border-radius:12px;box-shadow:0 14px 34px rgba(90,30,55,.20);padding:5px;z-index:70;margin-top:4px}
.client-pop .cp-item{display:block;width:100%;text-align:left;background:none;border:none;padding:9px 10px;border-radius:8px;cursor:pointer;font:inherit}
.client-pop .cp-item:hover,.client-pop .cp-item.hot{background:#fdf2f7}
.client-pop .cp-name{font-weight:700;color:#5b2b3a}
.client-pop .cp-sub{font-size:12.5px;color:#977;margin-top:1px}
.client-pop .cp-none{padding:9px 10px;font-size:13px;color:#977}

/* Phone day view, definitive pass (fix136, Hai 22/10): the fit-to-screen
   height chain (height:100% + overflow hidden + %-positioned blocks)
   collapses unpredictably on phones - tall in portrait, a thin strip
   in landscape, content sometimes missing. On phones the grid becomes
   a plain scroll box with fixed geometry instead: definite frame
   height, columns get a real minimum width with horizontal scroll,
   the day is always 1140px tall with vertical scroll, and block
   content stacks in one column (time, name, services) using the full
   column width. Desktop (>980px) is untouched. */
@media (max-width: 1250px), (max-height: 620px) {
  body.cal-day .day-flex { height: auto; min-height: 0; }
  body.cal-day .day-flex .res-scroll {
    flex: none; width: 100%; display: block;
    height: calc(100dvh - 178px); max-height: none;
    overflow-x: auto; overflow-y: auto;
  }
  body.cal-day .res-grid {
    height: auto; min-height: 1140px; width: max-content; min-width: 100%;
    align-items: stretch;
  }
  body.cal-day .res-col { flex: 0 0 122px; min-width: 122px; max-width: none; }
  body.cal-day .res-col-unassigned { flex: 0 0 122px; min-width: 122px; }
  body.cal-day .res-gutter { flex: 0 0 54px; }
  .res-gutter-body, .res-col-body { min-height: 1140px; }
  /* Stacked block content: time, then name, then services. */
  .res-grid .tl-block {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 1px; padding: 3px 5px;
  }
  .res-grid .tl-block .tlb-side {
    order: -1; align-items: flex-start; text-align: left; padding-top: 0;
    width: 100%; min-width: 0;
  }
  .res-grid .tl-block .tlb-time {
    display: block; white-space: nowrap; font-size: calc(10.5px * var(--sc));
    line-height: 1.2; color: #7a6672; font-weight: 600;
  }
  .res-grid .tl-block .tlb-name {
    white-space: normal; font-size: calc(12.5px * var(--sc)); font-weight: 800;
    line-height: 1.2; margin-top: 1px;
  }
  .res-grid .tl-block.has-icons .tlb-name { padding-right: 15px; }
  .res-grid .tl-block .tlb-svcs { width: 100%; min-width: 0; }
  .res-grid .tl-block .tlb-svc {
    white-space: normal; font-size: calc(11px * var(--sc)); line-height: 1.25;
  }
  .res-grid .tl-block.d2 { flex-direction: column; align-items: stretch; }
  .res-grid .tl-block.d2 .tlb-side { order: -1; }
  .res-grid .tl-block.d2 .tlb-name { white-space: normal; }
}

/* iPhone Duo fit (fix138, Hai 23/10): the Duo reports ~466 CSS px
   folded and ~890-1010 unfolded, so it lives in the scroll-mode band
   above - but the unfolded screen deserves more than phone geometry.
   In the 721-1250 band: the top menu becomes ONE slim scrollable row
   instead of wrapping into two rows that eat the short screen, day
   columns widen to 168px, and turn-strip cards get real room. The
   short-screen clause in the scroll-mode query also covers unfolded
   landscape (~626px tall) and regular iPhone landscape. */
@media (min-width: 721px) and (max-width: 1250px) {
  .owner-nav .nav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .owner-nav .nav-links::-webkit-scrollbar { display: none; }
  .owner-nav a, .owner-nav .lang-switch { white-space: nowrap; }
  body.cal-day .res-col { flex-basis: 168px; min-width: 168px; }
  body.cal-day .res-col-unassigned { flex-basis: 168px; min-width: 168px; }
  body.cal-day .turnqueue .tq-item { min-width: 150px; }
}
