/* =====================================================================
   Lumière — modern app components.
   Bold sans display (Bricolage Grotesque), soft layered surfaces,
   grouped rounded lists, pill buttons, tinted status chips.
   Loaded last on every page.
   ===================================================================== */
:root {
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --tint: color-mix(in srgb, var(--primary) 10%, var(--panel));
  --tint-strong: color-mix(in srgb, var(--primary) 16%, var(--panel));
}

/* ---------- Type: modern display ---------- */
.view-head h2, .login-card h1, .auth-brand h1, .picker-brand h1, .hello, .screen-head h2,
.profile-hero h2, .cal-title, .brand, .brand-name, .la-name, .la-line, .next-when, .stat .num,
.svc-price, .sheet-head strong, .modal-box h2, .pm-hero h2 {
  font-family: var(--display); font-variation-settings: normal; letter-spacing: -0.02em;
}
.view-head h2, .hello, .screen-head h2 { font-weight: 700; }
.view-head h2 { font-size: 30px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand-name { font-weight: 700; }
.login-card h1, .auth-brand h1 { font-weight: 800; font-size: 34px; letter-spacing: -0.035em; }
.la-line { font-weight: 700 !important; letter-spacing: -0.035em !important; line-height: 1 !important; }
.la-name { font-weight: 700; }
.cal-title { font-weight: 600; font-size: 20px; }
.cal-dayhead .cd-num, .m-day b { font-family: var(--display); font-weight: 600; }

/* ---------- Surfaces: soft panels, no borders, no drop shadows ---------- */
.panel, .table-wrap, .form-grid, .cal-week, .pf-card {
  background: var(--panel); border: none; box-shadow: none; border-radius: var(--r-lg);
}
.panel { padding: 22px 24px; }
.panel h3, .content > .view > h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 14px; font-family: var(--display); letter-spacing: -0.01em; }
.content > .view > h3 { margin-top: 32px; }
.split { gap: 18px; margin-top: 18px; }
.view > .panel + .panel, .view > .panel + .split, .view > .stats + .panel { margin-top: 18px; }
.form-grid { padding: 24px; }
.table-wrap { overflow: hidden; }

/* ---------- Stats: chunky numbers on soft tiles; first tile carries the brand ---------- */
.stats { gap: 12px; margin-bottom: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--panel); border: none; box-shadow: none; border-radius: var(--r-lg); padding: 20px 22px; }
.stat::before { display: none; }
.stat .num { font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.stat .lbl { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-top: 10px; }
.stats > .stat:first-child { background: var(--primary); }
.stats > .stat:first-child .num, .stats > .stat:first-child .lbl { color: #fff; }
.stats > .stat:first-child .lbl { opacity: .85; }
.stat.ok .num { color: var(--ok); }
.stat.warn .num { color: var(--warn); }
.stat.bad .num { color: var(--danger); }
.stat.accent:not(:first-child) .num { color: var(--primary-ink); }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px; border: none; background: var(--tint); color: var(--primary-ink);
  padding: 10px 18px; font-weight: 650; font-size: 13.5px; box-shadow: none;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--tint-strong); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary, .btn-primary:hover { background: var(--primary); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); color: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 16%, var(--panel)); }
.btn-block { padding-top: 13px; padding-bottom: 13px; font-size: 14.5px; }
.topbar .btn-ghost { color: var(--text-2); }

/* ---------- Status chips: soft tint + dot ---------- */
.pill {
  border-radius: 999px; padding: 4px 10px 4px 9px; font-size: 12px; font-weight: 650;
  display: inline-flex; align-items: center; gap: 6px; filter: none !important;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill .ic { display: none; }
.pill.pending { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: var(--warn-ink); }
.pill.confirmed, .pill.completed { background: color-mix(in srgb, var(--ok) 13%, var(--panel)); color: var(--ok); }
.pill.scheduled, .pill.newest { background: var(--tint); color: var(--primary-ink); }
.pill.cancelled { background: var(--hover); color: var(--muted); }
.pill.no-show, .pill.conflict { background: color-mix(in srgb, var(--danger) 12%, var(--panel)); color: var(--danger); }
.pill.proposed { background: color-mix(in srgb, #6f4fb0 13%, var(--panel)); color: #6f4fb0; }
.pill.admin, .pill.stylist, .pill.receptionist, .pill.platform { background: var(--hover); color: var(--text-2); }
.pill.admin::before, .pill.stylist::before, .pill.receptionist::before, .pill.platform::before { display: none; }
.badge { border-radius: 999px; padding: 5px 12px; font-weight: 600; }
#userBadge { background: var(--panel); color: var(--ink); }

/* ---------- Booking requests: a grouped list ---------- */
#dashRequests { margin: 0; padding: 0; }
.req-list { gap: 0; }
.req-card, .req-card.new {
  background: transparent; border: none; border-radius: 0; box-shadow: none;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.req-card:last-child { border-bottom: none; }
.req-avatar { background: var(--tint); color: var(--primary-ink); border: none; width: 42px; height: 42px; font-weight: 700; font-size: 13px; }
.req-name { font-size: 15.5px; font-weight: 700; }
.req-chip { background: var(--hover); border: none; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--text-2); }
.req-nb { background: transparent; border: none; padding: 0; font-size: 12.5px; }
.req-neighbours { gap: 4px 14px; }
.req-actions { gap: 8px; }
.req-actions .btn { padding: 10px 14px; font-size: 13.5px; border-radius: 999px; }
.req-actions .req-resched { background: var(--hover); color: var(--ink); border: none; }
.req-actions .btn:not(.btn-primary):not(.req-resched) { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); color: var(--danger); border: none; }

/* ---------- Grouped lists (mini lists, tables, clients) ---------- */
.mini-list { gap: 0; background: var(--panel-2); border-radius: var(--r-md); overflow: hidden; }
.mini-item { background: transparent; border: none; border-radius: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: none; }
th { background: transparent; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 14px 18px; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--panel-2); }
.empty { font-style: normal; color: var(--muted); padding: 16px 4px; }

.client-card { background: var(--panel); border: none; border-radius: var(--r-md); box-shadow: none; transition: background-color .15s ease; }
.client-card:hover { background: var(--panel-2); }
.client-avatar { background: var(--tint) !important; color: var(--primary-ink) !important; border: none; font-weight: 700; }

/* ---------- Navigation ---------- */
.sidebar { background: var(--bg); border-right: none; padding: 18px 14px; }
.sidebar button { border-radius: 12px; padding: 10px 14px; color: var(--text-2); }
.sidebar button:hover { background: var(--panel); color: var(--ink); }
.sidebar button.active, .sidebar button.active:hover { background: var(--panel); color: var(--ink); box-shadow: none; font-weight: 700; }
.sidebar button.active .ic { color: var(--primary-ink); }
.nav-badge { background: var(--primary); }
.topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: none; }
.content { background: var(--bg); }
@media (max-width: 900px) {
  #bottomNav { background: color-mix(in srgb, var(--panel) 94%, transparent); border-top: none; box-shadow: 0 -1px 0 var(--line); }
  .bnav-item.active { color: var(--primary-ink); background: transparent; }
  .bnav-item.active .ni { background: var(--tint) !important; border-radius: 999px !important; padding: 4px 16px !important; }
  .drawer-item.active { background: var(--tint); color: var(--ink); box-shadow: none; }
}

/* Segmented tabs */
.feed-tabs { background: var(--hover); padding: 4px; border-radius: 999px; gap: 2px; }
.feed-tabs button { border-radius: 999px; padding: 7px 16px; font-weight: 650; color: var(--muted); }
.feed-tabs button.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Inputs ---------- */
.input { border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid transparent; padding: 11px 14px; }
.input:hover { border-color: var(--line-strong); }
.input:focus { background: var(--panel); border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }

/* ---------- Calendar ---------- */
.cal-week { overflow: hidden; }
.cal-dayrow { background: var(--panel); }
.cal-event { border: none; border-left: 4px solid var(--primary); border-radius: 8px; box-shadow: none; padding: 4px 7px; }
.cal-dayhead.today .cd-num { background: var(--primary); color: #fff; border-radius: 999px; display: inline-block; min-width: 38px; padding: 0 6px; }
.cal-dayhead.today { box-shadow: none; }

/* ---------- Modal ---------- */
.modal-box { border-radius: 24px; border: none; box-shadow: 0 30px 80px rgba(0,0,0,.22); }

/* ---------- Sign-in ---------- */
.login-aside::after, .auth-aside::after { display: none !important; }
.login-card .logo { background: var(--tint); color: var(--primary-ink); border-radius: 14px; border: none; }
.google-btn { border-radius: 999px; background: var(--panel); border: 1px solid var(--line-strong); color: var(--ink); }
.google-btn:hover { background: var(--hover); }
.nearby { border: none; border-radius: var(--r-lg); background: var(--panel); }
@media (min-width: 980px) {
  .login-aside, .auth-aside {
    background:
      radial-gradient(120% 80% at 0% 100%, color-mix(in srgb, var(--primary) 60%, #fff) 0%, transparent 55%),
      color-mix(in srgb, var(--primary) 85%, var(--deep)) !important;
  }
}

/* ---------- Pickers ---------- */
.theme-opt { border-radius: var(--r-md); border: 2px solid transparent; background: var(--panel-2); }
.theme-opt.sel { border-color: var(--primary); box-shadow: none; }
.theme-swatch, .bg-swatch { border-radius: 10px; }

/* ===================== Client portal ===================== */
.card { background: var(--panel); border: none; border-radius: var(--r-lg); padding: 6px 18px; }
.section-title { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 28px 0 12px; text-transform: none; }
.hello { font-size: 34px; }
.mini, .visit {
  background: var(--panel); border: none; border-radius: 0; padding: 15px 18px; margin: 0;
  border-bottom: 1px solid var(--line);
}
main .mini-list { background: var(--panel); border-radius: var(--r-lg); }
.mini-list .mini:last-child, .mini-list .visit:last-child { border-bottom: none; }
#homeUpcoming > .mini, #homeRecent > .mini { border-radius: var(--r-lg); border-bottom: none; }
.mini-title { font-weight: 700; }

/* Next appointment: the one bold block */
.next-card {
  border-radius: 24px; padding: 24px; color: #fff; position: relative; overflow: hidden; box-shadow: none;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--primary) 55%, #fff) 0%, transparent 50%),
    var(--primary);
}
.next-card::after { display: none; }
.next-label { font-size: 13px; font-weight: 600; opacity: .85; }
.next-when { font-size: 34px; font-weight: 700; margin: 6px 0; letter-spacing: -0.035em; }
.next-row { border-top: 1px solid rgba(255,255,255,.25); }
.next-card .cancel-link { color: #fff; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }

.quick { gap: 10px; }
.quick-btn { background: var(--panel); border: none; border-radius: var(--r-md); padding: 15px; font-weight: 650; }
.quick-btn:hover { background: var(--panel-2); }
.quick-btn .ic { color: var(--primary-ink); }

/* Services: selectable rows inside one rounded panel */
.svc-list { gap: 0; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }
.svc { background: transparent; border: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; box-shadow: none !important; }
.svc:last-child { border-bottom: none; }
.svc:hover { background: var(--panel-2); }
.svc.sel { background: var(--tint); }
.svc.sel .svc-name::after { content: "✓"; margin-left: 8px; color: var(--primary-ink); }
.svc-price { font-weight: 700; font-size: 18px; }
@media (min-width: 900px) { .svc-list { grid-template-columns: 1fr; } }

.chip-btn { border: none; background: var(--panel); border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.chip-btn.sel { background: var(--primary); color: #fff; }
.slot-btn { border: none; background: var(--panel); border-radius: 12px; padding: 11px 4px; font-weight: 600; }
.slot-btn:hover { background: var(--tint); }
.slot-btn.sel { background: var(--primary); color: #fff; }
.slot-btn:disabled { background: transparent; text-decoration: line-through; opacity: .35; }

.star, .rated { color: #f2a93b; }
.occ { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: var(--warn-ink); border: none; padding: 2px 9px; border-radius: 999px; }

.bell { background: var(--panel); border: none; }
.avatar { background: var(--tint); color: var(--primary-ink); border: none; }
.brand-logo { border-radius: 12px; font-family: var(--display); font-weight: 800; }
.profile-hero h2 { font-weight: 700; }
.kv-row b { font-weight: 650; }

.auth-tabs { background: var(--hover); padding: 4px; border-radius: 999px; }
.auth-nearby { border-top: none !important; background: var(--panel-2); border-radius: var(--r-md) !important; padding: 16px !important; }
.picker-card { background: var(--panel-2); border: none; border-radius: var(--r-md); }
.picker-avatar { border-radius: 12px; }

.top { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: none; }
@media (min-width: 900px) {
  .ctabs { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: none; padding-top: 4px; padding-bottom: 8px; }
  .ctabs button { border-bottom: none !important; border-radius: 999px; padding: 9px 16px; }
  .ctabs button.active { background: var(--panel); color: var(--ink); }
  .ctabs button.active .ic { color: var(--primary-ink); }
}
@media (max-width: 899px) {
  .ctabs { background: color-mix(in srgb, var(--panel) 94%, transparent); border-top: none; box-shadow: 0 -1px 0 var(--line); }
  .ctabs button.active { color: var(--primary-ink); }
  .ctabs button.active .ic { background: var(--tint) !important; border-radius: 999px !important; padding: 4px 16px !important; box-shadow: none !important; }
}
.avatar, .bell { border: none !important; box-shadow: none !important; }

/* ---------- Sign-in on phones: plum header like the desktop, light page below ---------- */
@media (max-width: 979px) {
  .login-screen { justify-content: flex-start; padding: 0 0 36px; gap: 0; }
  .auth-screen { flex-direction: column; justify-content: flex-start; align-items: center; padding: 0 0 40px; }
  .login-aside, .auth-aside {
    display: flex; flex-direction: column; gap: 22px; align-self: stretch; width: 100%;
    padding: 30px 24px 34px; color: #f6eef3;
    border-radius: 0 0 28px 28px;
    background:
      radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--primary) 60%, #fff) 0%, transparent 60%),
      color-mix(in srgb, var(--primary) 85%, var(--deep));
  }
  .login-aside .la-name, .auth-aside .la-name { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
  .login-aside .la-line, .auth-aside .la-line {
    margin: 0; max-width: 12ch; font-family: var(--display); font-weight: 800;
    font-size: 36px; line-height: 1.04; letter-spacing: -0.035em;
  }
  .login-aside .la-foot, .auth-aside .la-foot { display: none; }
  .login-card { width: 100%; max-width: 440px; margin-top: 4px; padding: 26px 24px 8px; background: transparent; border: none; box-shadow: none; }
  .login-card .logo { display: none; }
  .nearby { width: auto; align-self: stretch; margin: 18px 16px 0; max-width: none; }
  .auth-box { margin: 0; max-width: 440px; padding: 26px 24px 0; background: transparent; border: none; box-shadow: none; }
  .auth-brand .brand-logo { display: none; }
}
@media (min-width: 441px) and (max-width: 979px) { .nearby { width: 400px; align-self: center; } }

/* ---------- Sign-in pages always use the Skedilla look (plum on light) ----------
   A business's own theme only applies once someone is signed in. */
.login-screen, .auth-screen {
  color-scheme: light;
  --primary: #7a2e5c; --primary-dark: #5c2045; --primary-ink: #7a2e5c; --deep: #1b1020;
  --bg: #f5f4f7; --panel: #ffffff; --panel-2: #faf9fb; --line: #e6e2ea; --line-strong: #d6d0dd; --hover: #f2eff5;
  --text: #221b26; --ink: #221b26; --text-2: #4a4250; --muted: #6e6577; --faint: #8a8393;
  --danger: #b3362d; --ok: #2c7a55; --warn: #a86400; --warn-ink: #8a5200; --info: #0e6b80;
  --tint: color-mix(in srgb, #7a2e5c 10%, #ffffff); --tint-strong: color-mix(in srgb, #7a2e5c 16%, #ffffff);
  --shadow: 0 1px 2px rgba(34,27,38,.06), 0 8px 24px rgba(34,27,38,.08);
  background: var(--bg); color: var(--text);
}
html[data-mode="dark"] .login-screen select.input,
html[data-mode="dark"] .auth-screen select.input { color-scheme: light; background-color: var(--panel-2); color: var(--ink); }
html[data-mode="dark"] .login-screen .login-aside,
html[data-mode="dark"] .auth-screen .auth-aside {
  background:
    radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--primary) 60%, #fff) 0%, transparent 60%),
    color-mix(in srgb, var(--primary) 85%, var(--deep));
}

/* =====================================================================
   Sign-in redesign (staff + client). Plum hero, floating card.
   ===================================================================== */
.la-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.la-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
.la-mark svg { width: 18px; height: 18px; }
.la-mid { position: relative; z-index: 1; }
.la-line em { font-style: normal; color: #f7cfe2; }
.la-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.la-chips li {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fbeef5;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.login-aside::before, .auth-aside::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16); pointer-events: none;
  box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 76px rgba(255,255,255,.025);
}
.login-aside, .auth-aside { position: relative; overflow: hidden; }
@media (min-width: 980px) {
  .login-aside::before, .auth-aside::before { width: 520px; height: 520px; right: -180px; top: auto; bottom: -180px; }
  .login-card .pw-hint, .login-card .client-link { text-align: left; }
}

/* Shared form polish inside the sign-in pages */
.login-screen .input, .auth-screen .input {
  height: 52px; border-radius: 14px; border: 1.5px solid #ebe5ef; background-color: #faf8fb;
  font-size: 15.5px; padding: 0 16px; color: var(--ink); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.login-screen .input:focus, .auth-screen .input:focus {
  background-color: #fff; border-color: #7a2e5c; box-shadow: 0 0 0 4px rgba(122,46,92,.12);
}
.login-screen .input::placeholder, .auth-screen .input::placeholder { color: #a39aab; }
.login-screen select.input { padding-right: 40px; }
.login-screen .btn-primary, .auth-screen .btn-primary {
  height: 54px; padding: 0 18px; border: none; border-radius: 16px; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  background: linear-gradient(135deg, #93406f 0%, #7a2e5c 45%, #5f1f47 100%);
  box-shadow: 0 14px 26px -10px rgba(122,46,92,.6), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s;
}
.login-screen .btn-primary:hover, .auth-screen .btn-primary:hover { filter: brightness(1.06); }
.login-screen .btn-primary:active, .auth-screen .btn-primary:active { transform: scale(.985); }
.login-screen .google-btn, .auth-screen .google-btn {
  height: 52px; border-radius: 16px; border: 1.5px solid #ebe5ef; background: #fff; font-weight: 650; font-size: 15px;
}
.login-screen .google-btn:hover, .auth-screen .google-btn:hover { background: #faf8fb; border-color: #ddd4e2; }
.login-screen .auth-divider, .auth-screen .auth-divider { color: #a39aab; }
.login-card label, .auth-form label { font-size: 13px; font-weight: 650; color: #3a3140; }
.login-card .pw-hint {
  display: inline-flex; gap: 4px; margin-top: 16px; padding: 7px 12px; border-radius: 10px;
  background: #f6f1f5; color: #6e6577; font-size: 12.5px;
}
.login-card .client-link { margin-top: 14px; font-size: 13.5px; color: #6e6577; }
.login-card .client-link a { color: #7a2e5c; font-weight: 700; text-decoration: none; }
.login-card .client-link a:hover { text-decoration: underline; }
.auth-screen .auth-tabs { background: #f3eef4; padding: 5px; border-radius: 16px; border: none; }
.auth-screen .auth-tabs button { height: 42px; border-radius: 12px; font-weight: 650; color: #6e6577; border: none !important; }
.auth-screen .auth-tabs button.active { background: #fff; color: #221b26; box-shadow: 0 2px 8px rgba(34,27,38,.08); }

/* Phones and tablets: plum hero with the card floating over it */
@media (max-width: 979px) {
  .login-screen, .auth-screen { background: #f6f3f7; }
  .login-aside, .auth-aside {
    padding: 22px 24px 96px; border-radius: 0 0 36px 36px; gap: 0;
    background:
      radial-gradient(70% 55% at 100% 0%, rgba(255,255,255,.14) 0%, transparent 60%),
      radial-gradient(90% 75% at 0% 100%, rgba(240,170,205,.45) 0%, transparent 62%),
      linear-gradient(160deg, #8d3669 0%, #6a2452 50%, #3d1233 100%) !important;
  }
  .login-aside .la-name, .auth-aside .la-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
  .login-aside .la-line, .auth-aside .la-line { margin-top: 30px; max-width: 13ch; font-size: 38px; color: #fff; }
  .login-card, .auth-box {
    position: relative; z-index: 2; align-self: center;
    width: calc(100% - 32px); max-width: 440px; margin: -64px 0 0;
    background: #fff; border: none; border-radius: 28px; padding: 28px 22px 24px;
    box-shadow: 0 1px 2px rgba(34,27,38,.05), 0 28px 60px -18px rgba(74,20,54,.35);
  }
  .login-card h1, .auth-brand h1 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 4px; }
  .login-card > .muted, .auth-brand .muted-sm { font-size: 14.5px; color: #6e6577; }
  .login-card form { margin-top: 22px; }
  .login-card label { margin-bottom: 7px; }
  .login-card .btn-primary { margin-top: 20px !important; }
  .auth-brand { margin-bottom: 20px; }
  .nearby {
    align-self: center; width: calc(100% - 32px) !important; max-width: 440px; margin: 16px 0 0;
    border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(34,27,38,.04), 0 10px 30px -14px rgba(74,20,54,.18);
    padding: 18px;
  }
  .auth-nearby { background: #faf8fb !important; border-radius: 20px !important; }
}
.la-line em { display: block; }
@media (max-width: 979px) {
  .login-aside, .auth-aside, .login-card, .auth-box, .nearby { flex-shrink: 0; }
}

/* ---------- One sign-in page: Log in / Sign up switch and sign-up form ---------- */
.login-screen .auth-tabs { display: flex; margin: 22px 0 4px; background: #f3eef4; padding: 5px; border-radius: 16px; }
.login-screen .auth-tabs button {
  flex: 1; height: 42px; border: none; border-radius: 12px; background: transparent; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 650; color: #6e6577; transition: background .15s, color .15s, box-shadow .15s;
}
.login-screen .auth-tabs button.active { background: #fff; color: #221b26; box-shadow: 0 2px 8px rgba(34,27,38,.08); }
.login-card form { margin-top: 18px; }
.login-card label { display: block; }
.su-form { display: flex; flex-direction: column; }
.su-form label { margin: 14px 0 7px; }
.su-form > label:first-of-type { margin-top: 14px; }
.su-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.su-row label { margin: 0 0 7px; }
.su-form .opt { font-weight: 400; color: #8a8393; }
.su-form .btn-primary { margin-top: 20px !important; }
.su-form .btn-ghost { margin-top: 10px; height: 48px; border-radius: 14px; color: #7a2e5c; font-weight: 650; background: transparent; border: none; }
.su-form .btn-ghost:hover { background: #f6f1f5; }
.su-form .su-note { font-size: 12.5px; color: #8a8393; margin-top: 6px; }
.login-card #staffLoginMsg { font-size: 13.5px; font-weight: 600; }
.login-card .pw-hint { display: block; line-height: 1.5; }
.login-card .pw-hint.hidden { display: none; }

/* ---------- Phones: the sign-in page fits on one screen, no scrolling ---------- */
@media (max-width: 979px) {
  .login-screen { min-height: 100dvh; padding-bottom: 12px; }
  .login-screen .login-aside { padding: 16px 22px 62px; border-radius: 0 0 30px 30px; }
  .login-screen .la-mark { width: 32px; height: 32px; border-radius: 10px; }
  .login-screen .la-mark svg { width: 16px; height: 16px; }
  .login-screen .login-aside .la-name { font-size: 17px; }
  .login-screen .login-aside .la-line { margin-top: 16px; font-size: 29px; line-height: 1.06; max-width: none; }
  .login-screen .la-chips { margin-top: 12px; gap: 6px; flex-wrap: nowrap; }
  .login-screen .la-chips li { padding: 4px 10px; font-size: 11.5px; white-space: nowrap; }
  .login-screen .login-card { margin-top: -44px; padding: 20px 18px 16px; border-radius: 24px; }
  .login-screen .login-card .logo { display: none; }
  .login-screen .login-card h1 { font-size: 23px; margin: 0; }
  .login-screen .login-card > .muted { font-size: 13.5px; margin-top: 2px; }
  .login-screen .auth-tabs { margin: 12px 0 0; padding: 4px; border-radius: 14px; }
  .login-screen .auth-tabs button { height: 36px; font-size: 14px; border-radius: 10px; }
  .login-screen .login-card form { margin-top: 10px; }
  .login-screen .login-card label { margin-bottom: 5px; font-size: 12.5px; }
  .login-screen #loginForm label[for="loginPass"] { margin-top: 10px !important; }
  .login-screen .input { height: 44px; border-radius: 12px; font-size: 15px; }
  .login-screen .login-card .btn-primary { height: 46px; margin-top: 12px !important; border-radius: 14px; font-size: 15.5px; }
  .login-screen .login-card .auth-divider { margin: 10px 0 8px; }
  .login-screen .google-btn { height: 44px; border-radius: 14px; font-size: 14.5px; }
  .login-screen .login-card .pw-hint { margin-top: 10px; padding: 6px 10px; font-size: 11.5px; line-height: 1.4; }
  .login-screen #staffLoginMsg { margin: 8px 0 0; font-size: 13px; }
  .login-screen .nearby { margin-top: 10px; padding: 10px 14px; border-radius: 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
  .login-screen .nearby-head { display: contents; }
  .login-screen .nearby-head strong { font-size: 13.5px; }
  .login-screen .nearby-head .btn { padding: 6px 12px; font-size: 12.5px; }
  .login-screen .nearby-list { grid-column: 1 / -1; }
  .login-screen .nearby-list:has(> .nb-intro) { display: none; }
  .login-screen #salonSignupBtn {
    grid-column: 1 / -1; margin: 0 !important; padding: 2px 0 0; height: auto; background: none; border: none; box-shadow: none;
    justify-content: flex-start; width: auto; font-size: 12.5px; font-weight: 650; color: #7a2e5c; text-align: left;
  }
  /* Sign up is longer: give it a slimmer header */
  .login-screen.signing-up .la-mid { display: none; }
  .login-screen.signing-up .login-aside { padding-bottom: 56px; }
  .login-screen .su-form label { margin: 8px 0 5px; }
  .login-screen .su-row label { margin: 0 0 5px; }
  .login-screen .su-form .btn-primary { margin-top: 12px !important; }
  .login-screen .su-form .btn-ghost { margin-top: 4px; height: 38px; }
  .login-screen .su-form .su-note { margin: 2px 0 0; font-size: 11.5px; }
}
.su-row-gap { margin-top: 14px; }
@media (max-width: 979px) {
  .login-screen .su-row-gap { margin-top: 8px; }
  .login-screen.signing-up .nearby, .login-screen.signing-up .su-note { display: none; }
  .login-screen.signing-up .login-card > .muted { display: none; }
}
/* Short phones (e.g. iPhone SE): tighten further so it still fits */
@media (max-width: 979px) and (max-height: 740px) {
  .login-screen .login-aside { padding: 12px 22px 52px; }
  .login-screen .la-chips { display: none; }
  .login-screen .login-aside .la-line { margin-top: 10px; font-size: 25px; }
  .login-screen .login-card { margin-top: -38px; padding: 16px 16px 14px; }
  .login-screen .login-card h1 { font-size: 21px; }
  .login-screen .login-card > .muted { display: none; }
  .login-screen .auth-tabs { margin-top: 10px; }
  .login-screen .auth-tabs button { height: 34px; }
  .login-screen .input { height: 40px; }
  .login-screen .login-card .btn-primary { height: 42px; }
  .login-screen .google-btn { height: 40px; }
  .login-screen .login-card .auth-divider { margin: 8px 0 6px; }
  .login-screen .login-card .pw-hint { margin-top: 8px; font-size: 11px; }
  .login-screen .nearby { margin-top: 8px; padding: 8px 12px; }
  .login-screen.signing-up .la-line { display: none; }
}

/* "Own a business?" link (replaces the Salons near you box) */
.login-card .biz-link { margin-top: 12px; font-size: 13px; color: #6e6577; }
.login-card .link-btn { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: #7a2e5c; cursor: pointer; }
.login-card .link-btn:hover { text-decoration: underline; }
.login-screen.signing-up .biz-link { display: none; }
@media (max-width: 979px) { .login-card .biz-link { margin-top: 10px; font-size: 12.5px; } }

/* "Download for Windows" button on the sign-in page (desktop only) */
.la-download {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 20px 12px 16px;
  border-radius: 16px; background: #fff; color: #5f1f47; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); transition: transform .15s ease, box-shadow .15s ease;
}
.la-download:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(0,0,0,.5); }
.la-download svg { width: 22px; height: 22px; flex: none; color: #7a2e5c; }
.la-download span { display: flex; flex-direction: column; line-height: 1.2; }
.la-download strong { font-size: 15px; font-weight: 700; color: #221b26; }
.la-download small { font-size: 12px; color: #6e6577; margin-top: 2px; }
.la-download.hidden { display: none; }
@media (max-width: 979px) { .la-download { display: none !important; } }
.la-dl-help { margin-top: 14px; max-width: 420px; color: rgba(246,238,243,.85); font-size: 13px; line-height: 1.5; }
.la-dl-help.hidden { display: none; }
.la-dl-help summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.la-dl-help summary::-webkit-details-marker { display: none; }
.la-dl-help summary::before { content: "ⓘ"; font-size: 14px; opacity: .85; }
.la-dl-help[open] { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; }
.la-dl-help p { margin: 8px 0 6px; }
.la-dl-help ol { margin: 0; padding-left: 18px; }
.la-dl-help li { margin: 3px 0; }
.la-dl-help b { color: #fff; }
@media (max-width: 979px) { .la-dl-help { display: none !important; } }

/* =====================================================================
   App redesign (signed-in screens). Matches the plum sign-in look:
   gradient sidebar, greeting banner, soft raised cards, pill navigation.
   Uses each business's own --primary, so custom themes still apply.
   ===================================================================== */
:root {
  --grad: linear-gradient(135deg, color-mix(in srgb, var(--primary) 88%, #fff) 0%, var(--primary) 45%, color-mix(in srgb, var(--primary) 72%, #000) 100%);
  --grad-deep:
    radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--primary) 55%, #fff) 0%, transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--primary) 92%, #fff) 0%, color-mix(in srgb, var(--primary) 80%, #000) 55%, color-mix(in srgb, var(--primary) 45%, #000) 100%);
  --card-shadow: 0 1px 2px rgba(34,27,38,.04), 0 12px 32px -16px rgba(34,27,38,.16);
}
html[data-mode="dark"] { --card-shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.55); }

/* ---- Top bar ---- */
.app-shell .topbar { height: 64px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
.app-shell .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px var(--primary); flex: none; }
.brand-mark svg { width: 17px; height: 17px; }
.app-shell .brand-sub { border-left: 1px solid var(--line-strong); }
#userBadge { background: var(--panel); border: none; box-shadow: var(--card-shadow); color: var(--ink); padding: 7px 14px; }
.topbar .btn-ghost { border-radius: 999px; }

/* ---- Sidebar: floating plum panel ---- */
@media (min-width: 901px) {
  .app-shell .sidebar {
    width: 232px; flex-basis: 232px; top: 76px; height: calc(100vh - 92px); margin: 12px 0 16px 16px; padding: 14px 12px;
    border-radius: 26px; background: var(--grad-deep); border: none; position: sticky; overflow: hidden auto;
    box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--primary) 70%, #000);
  }
  .app-shell .sidebar::after {
    content: ""; position: absolute; right: -110px; bottom: -110px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025);
  }
  .app-shell .sidebar button {
    position: relative; z-index: 1; width: 100%; padding: 11px 14px; margin-bottom: 4px; border-radius: 14px;
    color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 600; background: transparent;
  }
  .app-shell .sidebar button .ic { color: rgba(255,255,255,.75); }
  .app-shell .sidebar button:hover { background: rgba(255,255,255,.12); color: #fff; }
  .app-shell .sidebar button.active, .app-shell .sidebar button.active:hover {
    background: #fff; color: color-mix(in srgb, var(--primary) 80%, #000); font-weight: 700; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5);
  }
  .app-shell .sidebar button.active .ic { color: var(--primary); }
  .app-shell .sidebar .nav-badge, .app-shell .sidebar button .count { background: #fff; color: var(--primary); }
  .app-shell .content { padding: 20px 36px 72px 28px; }
}

/* ---- Dashboard greeting banner ---- */
#view-dashboard > .view-head { display: none; }
.dash-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 34px; margin-bottom: 18px; border-radius: 28px; color: #fff; background: var(--grad-deep);
  box-shadow: 0 26px 54px -26px color-mix(in srgb, var(--primary) 75%, #000);
}
.dash-hero::after {
  content: ""; position: absolute; right: -120px; top: -150px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 0 44px rgba(255,255,255,.04), 0 0 0 96px rgba(255,255,255,.028);
}
.dh-text, .dh-actions { position: relative; z-index: 1; }
.dh-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.dash-hero h2 { margin: 14px 0 6px; font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.dash-hero p { margin: 0; font-size: 15.5px; color: rgba(255,255,255,.84); }
.dash-hero p b { color: #fff; }
.dh-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: none; border-radius: 999px; background: #fff; color: color-mix(in srgb, var(--primary) 80%, #000); font-weight: 700; font-size: 14.5px; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); white-space: nowrap; }
.dh-btn:hover { background: #fff; transform: translateY(-1px); }
.dh-btn .ic { width: 17px; height: 17px; color: var(--primary); }

/* ---- Stat cards ---- */
.stats { gap: 16px; }
.stat, .stat.accent:first-child {
  position: relative; background: var(--panel); border-radius: 24px; padding: 20px 22px 20px; box-shadow: var(--card-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat:hover { transform: translateY(-2px); }
.stat .num, .stat.accent:first-child .num { font-size: 40px; font-weight: 800; color: var(--ink); margin-top: 16px; }
.stat .lbl, .stat.accent:first-child .lbl { color: var(--muted); font-weight: 600; margin-top: 6px; }
.stat-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--primary-ink); }
.stat-ic .ic { width: 20px; height: 20px; }
.stat.warn .stat-ic { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: var(--warn); }
.stat.ok .stat-ic { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); color: var(--ok); }
.stat.warn .num { color: var(--ink); } .stat.ok .num { color: var(--ink); }

/* ---- Cards, tables, lists ---- */
.panel, .table-wrap, .form-grid, .cal-week, .pf-card { border-radius: 24px; border: none; box-shadow: var(--card-shadow); }
.panel { padding: 24px 26px; }
.panel .table-wrap { box-shadow: none; border-radius: 16px; background: var(--panel-2); }
.panel h3, .content > .view > h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.view-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; }
table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }
.req-card, .req-card.new { padding: 18px 0; }
.req-avatar { width: 46px; height: 46px; background: var(--grad); color: #fff; font-size: 14px; box-shadow: 0 8px 16px -10px var(--primary); }
.req-chip { background: var(--tint); color: var(--primary-ink); font-weight: 600; }
.empty { border-radius: 16px; }

/* ---- Buttons and inputs ---- */
.btn { border-radius: 999px; font-weight: 650; }
.btn-primary { background: var(--grad); border: none; box-shadow: 0 10px 22px -12px var(--primary), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.07); }
.app-shell .input, .modal-box .input { border-radius: 14px; }
.app-shell .input:focus, .modal-box .input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.modal-box { border-radius: 28px; }
.badge.live { border: none; }

/* ---- Phones and tablets: plum header, floating pill navigation ---- */
@media (max-width: 900px) {
  .app-shell .topbar { height: auto; min-height: 60px; padding: 10px 16px; background: var(--grad-deep); backdrop-filter: none; border-radius: 0 0 24px 24px; }
  .app-shell .brand, .app-shell .brand-sub { color: #fff; }
  .app-shell .brand-sub { display: none; }
  .app-shell .brand-mark { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); box-shadow: none; }
  .app-shell .topbar .btn-ghost { color: rgba(255,255,255,.9); }
  .app-shell .topbar .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
  #userBadge { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; font-size: 12px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #syncBtn { display: none; }
  .app-shell .content { padding: 16px 14px 120px; }
  .dash-hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; border-radius: 24px; gap: 16px; }
  .dash-hero h2 { font-size: 28px; }
  .dash-hero p { font-size: 14.5px; }
  .dh-btn { height: 42px; }
  .stats { gap: 12px; }
  .stat, .stat.accent:first-child { padding: 16px; border-radius: 20px; }
  .stat .num, .stat.accent:first-child .num { font-size: 30px; margin-top: 12px; }
  .stat-ic { width: 36px; height: 36px; border-radius: 12px; }
  .panel { padding: 18px 16px; border-radius: 22px; }
  #bottomNav {
    left: 12px; right: 12px; bottom: 12px; width: auto; border-radius: 26px; padding: 8px 6px; border: none;
    background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: saturate(1.5) blur(16px);
    box-shadow: 0 18px 40px -14px rgba(34,27,38,.4), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  }
  .bnav-item { border-radius: 18px; }
  .bnav-item.active { color: var(--primary-ink); }
  .bnav-item.active .ni { background: var(--grad) !important; color: #fff; border-radius: 999px; padding: 5px 16px !important; box-shadow: 0 8px 16px -8px var(--primary); }
  .bnav-item.active .ni .ic { color: #fff; }
}

/* ---- Client app ---- */
.app .top, .menu-top { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
.app .brand-logo, .menu-top .brand-logo { background: var(--grad); color: #fff; border-radius: 13px; box-shadow: 0 8px 18px -8px var(--primary); }
.hello { font-size: 36px; font-weight: 800; letter-spacing: -0.035em; }
.quick-btn { border: none; border-radius: 18px; box-shadow: var(--card-shadow); font-weight: 700; padding: 15px; }
.app .card, .menu-main .card, .picker-card { border-radius: 22px; box-shadow: var(--card-shadow); }
.app .avatar, .menu-top .avatar { background: var(--tint); color: var(--primary-ink); font-weight: 800; }
@media (max-width: 899px) {
  .ctabs, .menu-tabs {
    left: 12px !important; right: 12px !important; bottom: 12px !important; width: auto !important; border-radius: 26px; padding: 8px 6px !important; border: none !important;
    background: color-mix(in srgb, var(--panel) 92%, transparent) !important; backdrop-filter: saturate(1.5) blur(16px);
    box-shadow: 0 18px 40px -14px rgba(34,27,38,.4), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent) !important;
  }
  .ctabs button.active .ic, .menu-tabs button.active .ic { background: var(--grad) !important; color: #fff !important; border-radius: 999px !important; padding: 5px 16px !important; box-shadow: 0 8px 16px -8px var(--primary) !important; }
  .app main { padding-bottom: 124px; }
}

/* =====================================================================
   Layout and ease-of-use pass: every page, desktop and phone.
   ===================================================================== */
/* Keyboard focus is always visible */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.input:focus-visible { outline: none; }

/* Friendlier empty states */
.empty, .big-empty {
  text-align: center; padding: 26px 16px; color: var(--muted); font-size: 14px;
  background: var(--panel-2); border: 1.5px dashed var(--line-strong); border-radius: 18px;
}

/* Tables: calmer rows, clear hover, plain bold names */
.table-wrap table td { padding-top: 14px; padding-bottom: 14px; }
.table-wrap tbody tr { transition: background .12s; }
.table-wrap tbody tr:hover { background: var(--panel-2); }
.table-wrap td a, .table-wrap td .link { text-decoration: none; font-weight: 700; color: var(--ink); }
.table-wrap td a:hover, .table-wrap td .link:hover { color: var(--primary-ink); }

/* Feed reads like a timeline, not a full-width table */
#view-feed { max-width: 760px !important; }
.feed-card { border: none; border-radius: 22px; padding: 18px 20px; box-shadow: var(--card-shadow); }
.feed-media { border-radius: 16px; overflow: hidden; }
.feed-tabs button { min-height: 36px; }

/* Forms: clearer labels, comfortable fields */
.form-grid label, .modal-box label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.app-shell .input, .modal-box .input { min-height: 44px; }
.inline-form .btn-primary { min-height: 44px; }
.view-head .toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Analytics: an even grid of numbers */
@media (min-width: 1100px) { #view-analytics .stats { grid-template-columns: repeat(5, 1fr); } }

/* Messages pop up clear of the menu */
.toast { border-radius: 999px; padding: 12px 20px; font-weight: 600; box-shadow: 0 16px 36px -12px rgba(0,0,0,.45); }

@media (max-width: 900px) {
  /* 16px text in fields stops phones zooming in when you tap them */
  .app-shell .input, .modal-box .input, .app .input, .menu-main .input { font-size: 16px; min-height: 48px; }
  /* Bigger tap targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; padding: 8px 14px; }
  .toast { top: auto; bottom: 104px; max-width: calc(100vw - 32px); }
  .view-head { flex-wrap: wrap; gap: 10px; }
  .view-head h2 { font-size: 30px; }

  /* Pop-ups slide up from the bottom, easy to reach with a thumb */
  .modal { align-items: flex-end !important; padding: 0 !important; }
  .modal .modal-box {
    width: 100% !important; max-width: none !important; margin: 0; max-height: 90dvh; overflow-y: auto;
    border-radius: 28px 28px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom));
    animation: sheetUp .22s ease-out;
  }
  .modal .modal-box::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 12px; }
  .modal .form-grid { grid-template-columns: 1fr !important; }
  .modal .form-grid .span-2 { grid-column: auto; }

  /* Three small numbers side by side */
  #view-clientrequests .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #view-clientrequests .stat { padding: 14px 12px; }

  /* Services and Team: each row becomes a card instead of a cut-off table */
  #serviceList, #staffList { background: transparent; box-shadow: none; overflow: visible; }
  #serviceList table, #staffList table, #serviceList tbody, #staffList tbody { display: block; width: 100%; }
  #serviceList thead, #staffList thead { display: none; }
  #serviceList tr, #staffList tr {
    display: grid; align-items: center; gap: 6px 10px; padding: 16px; margin-bottom: 10px;
    background: var(--panel); border-radius: 20px; box-shadow: var(--card-shadow);
  }
  #serviceList td, #staffList td { display: block; padding: 0 !important; border: none !important; }
  #serviceList tr { grid-template-columns: auto auto 1fr auto; }
  #serviceList td:nth-child(1) { grid-column: 1 / 4; font-size: 16px; }
  #serviceList td:nth-child(2), #serviceList td:nth-child(3) { grid-row: 2; color: var(--muted); font-size: 14px; }
  #serviceList td:nth-child(3) { font-weight: 700; color: var(--ink); }
  #serviceList td:nth-child(2)::after { content: "·"; margin-left: 10px; color: var(--faint); }
  #serviceList td:nth-child(4) { grid-column: 4; grid-row: 1 / 3; }
  #staffList tr { grid-template-columns: 1fr auto auto; }
  #staffList td:nth-child(1) { font-size: 16px; }
  #staffList td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  #staffList td:nth-child(4) { grid-column: 3; grid-row: 1; }
  #staffList .staff-email { max-width: none; width: 100%; }
  #staffList td:nth-child(3)::before { content: "Sign-in email"; display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin: 4px 0 5px; }

  /* Other wide tables scroll sideways smoothly instead of squashing */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Slide-out menu */
  #drawer { border-radius: 28px 0 0 28px; padding: 18px 14px; }
  .drawer-item { min-height: 50px; border-radius: 16px; font-size: 16px; font-weight: 600; }
  .drawer-item.active { background: var(--grad) !important; color: #fff !important; box-shadow: 0 10px 20px -12px var(--primary) !important; }
  .drawer-item.active .ic { color: #fff; }
  .drawer-close { min-height: 48px; border-radius: 999px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---- Client app ---- */
.app .screen-head h2, .menu-main .screen-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; }
.app .section-title { font-size: 18px; font-weight: 800; }
.app .btn, .menu-main .btn { min-height: 44px; }
.app .btn-sm, .menu-main .btn-sm { min-height: 38px; }
.app .feed-tabs button { min-height: 38px; padding: 8px 18px; }
@media (min-width: 900px) {
  .app .ctabs button { min-height: 42px; font-weight: 650; }
  .app .ctabs button.active { box-shadow: var(--card-shadow); }
}
@media (max-width: 900px) {
  #serviceList table, #staffList table { min-width: 0 !important; table-layout: auto; }
  #serviceList tr, #staffList tr { width: 100%; box-sizing: border-box; }
  #staffList td:nth-child(2) { grid-column: 2; grid-row: 1; }
}

/* =====================================================================
   Client app on desktop: side menu and wide pages, like a desktop app.
   ===================================================================== */
@media (min-width: 1000px) {
  .app, .menu-screen { max-width: none !important; width: 100%; display: block !important; padding-left: 264px; min-height: 100vh; }
  .menu-screen { overflow-y: auto; }

  /* Side menu */
  .app > .ctabs, .menu-screen > .ctabs {
    position: fixed !important; left: 16px !important; top: 16px !important; bottom: 16px !important; right: auto !important;
    width: 232px !important; max-width: none; margin: 0; z-index: 30;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px;
    padding: 86px 12px 14px !important; border: none !important; border-radius: 26px; overflow: hidden;
    background: var(--grad-deep) !important; backdrop-filter: none;
    box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--primary) 70%, #000) !important;
  }
  .app > .ctabs::before, .menu-screen > .ctabs::before {
    content: "Skedilla"; position: absolute; left: 22px; top: 26px; padding-left: 46px; line-height: 34px;
    font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
    background: no-repeat left center / 34px 34px url("/logo-mark.png");
  }
  .app > .ctabs::after, .menu-screen > .ctabs::after {
    content: ""; position: absolute; right: -110px; bottom: -110px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025);
  }
  .app > .ctabs button, .menu-screen > .ctabs button {
    position: relative; z-index: 1; flex: 0 0 auto !important; flex-direction: row !important; justify-content: flex-start; gap: 12px !important;
    width: 100%; min-height: 46px; padding: 11px 14px !important; border: none !important; border-radius: 14px !important;
    background: transparent !important; color: rgba(255,255,255,.84) !important; font-size: 15px !important; font-weight: 600; box-shadow: none !important;
  }
  .app > .ctabs button .ic, .menu-screen > .ctabs button .ic { width: 19px !important; height: 19px !important; padding: 0 !important; background: none !important; box-shadow: none !important; color: rgba(255,255,255,.78) !important; border-radius: 0 !important; }
  .app > .ctabs button:hover, .menu-screen > .ctabs button:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
  .app > .ctabs button.active, .menu-screen > .ctabs button.active {
    background: #fff !important; color: color-mix(in srgb, var(--primary) 80%, #000) !important; font-weight: 700; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5) !important;
  }
  .app > .ctabs button.active .ic, .menu-screen > .ctabs button.active .ic { color: var(--primary) !important; }

  /* Top bar and page area */
  .app .top, .menu-screen .menu-top { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 40px 0 20px !important; border: none; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
  .app .top .brand-name { font-size: 19px; }
  .app main, .menu-screen .menu-main { max-width: 1180px !important; width: auto; margin: 0 !important; padding: 12px 40px 64px 20px !important; }
  .app .hello, .app .screen-head h2, .menu-main .screen-head h2 { font-size: 38px; }

  /* Two-column pages */
  .d-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
  .d-cols > .d-main > .section-title:first-child, .d-cols > .d-side > .section-title:first-child { margin-top: 0; }
  .d-side { position: sticky; top: 92px; }
  #screen-home .d-side, .d-panel { background: var(--panel); border-radius: 26px; padding: 24px; box-shadow: var(--card-shadow); }
  #screen-home .d-side .mini, #screen-home .d-side .card { box-shadow: none; }
  #screen-home .next-when { font-size: 40px; }
  #screen-home .quick-btn { padding: 18px; font-size: 15.5px; }
  .d-panel .btn-primary { min-height: 52px; font-size: 16px; }
  .d-panel .slot-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
  #screen-book .svc-list { grid-template-columns: 1fr 1fr; gap: 12px; }

  .d-profile { grid-template-columns: 340px minmax(0, 1fr); }
  .d-profile .profile-hero { background: var(--grad-deep); color: #fff; border-radius: 26px; padding: 40px 24px; margin: 0; box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--primary) 70%, #000); }
  .d-profile .profile-hero h2 { color: #fff; }
  .d-profile .profile-hero .muted-sm { color: rgba(255,255,255,.8); }
  .d-profile .profile-hero .avatar { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28) !important; }
  .d-profile .d-main .btn-block { max-width: 320px; }
  .d-profile .card { padding: 10px 24px; }

  #screen-feed, #screen-visits { max-width: 780px; }
  #screen-visits #visitsList { background: var(--panel); border-radius: 24px; box-shadow: var(--card-shadow); overflow: hidden; }
  .menu-main .menu-view { max-width: 780px; }

  /* Pop-ups sit in the middle of the page area */
  .sheet { padding-left: 264px; }
}
@media (min-width: 1000px) {
  .d-profile .d-main .btn-block { display: flex; width: 100%; max-width: 320px; }
}
@media (min-width: 1000px) {
  #screen-home .d-cols { grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr); }
  #screen-home .d-side { position: static; }
}
@media (min-width: 1000px) { .d-profile .d-main .btn-block { justify-content: center; } }

/* ---- App admin pages ---- */
#view-platform > .view-head, #platformTabs { display: none; }
#view-platform .stats { grid-template-columns: repeat(4, 1fr); }
#view-platform .stat .num { font-size: 34px; white-space: nowrap; }
#view-platform .split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
#view-platform .mini-item { padding: 12px 0; }
#view-platform .toolbar, #platformBody > .row, #platformBody > div:first-child:not(.dash-hero):not(.stats) { margin-bottom: 14px; }
.ana-bars { gap: 3px; height: 180px; }
.ana-bar-wrap { min-width: 0; }
.ana-bar { border-radius: 6px 6px 0 0; background: var(--grad); opacity: 1; }
.ana-x { width: 0; display: flex; justify-content: center; overflow: visible; }
@media (max-width: 900px) {
  #view-platform .stats { grid-template-columns: repeat(2, 1fr); }
  #view-platform .stat .num { font-size: 26px; }
  #view-platform .split { grid-template-columns: 1fr; }
  .ana-bars { gap: 2px; height: 150px; }
  .ana-x { font-size: 8px; }
}
#view-platform .stat:first-child { background: var(--panel); }
#view-platform .stat:first-child .num { color: var(--ink); }
#view-platform .stat:first-child .lbl { color: var(--muted); }

/* =====================================================================
   Side bar: square, fixed to the left edge from the very top, no scrolling.
   The Skedilla logo sits at the top of it.
   ===================================================================== */
@media (min-width: 901px) {
  .app-shell .sidebar {
    position: fixed !important; left: 0; top: 0; bottom: 0; height: auto !important; width: 244px !important; flex-basis: auto;
    margin: 0 !important; padding: 88px 14px 18px !important; border-radius: 0 !important; overflow: hidden !important; z-index: 25;
    box-shadow: none !important;
  }
  .app-shell .layout { padding-left: 244px; }
  .app-shell .topbar { padding-left: 272px !important; }
  .app-shell .topbar .brand { position: fixed; left: 22px; top: 18px; z-index: 30; color: #fff; flex-direction: row; align-items: center; pointer-events: none; }
  .app-shell .topbar .brand .brand-mark { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); box-shadow: none; }
  .app-shell .topbar .brand-sub {
    position: fixed; left: 272px; top: 0; height: 64px; display: flex; align-items: center; margin: 0; padding: 0; border: none;
    font-size: 15px; font-weight: 650; color: var(--ink);
  }
  .app-shell .content { padding-left: 32px; }

  /* Client app on desktop: the same square bar */
  .app > .ctabs, .menu-screen > .ctabs { left: 0 !important; top: 0 !important; bottom: 0 !important; width: 244px !important; border-radius: 0 !important; box-shadow: none !important; }
}
@media (min-width: 1000px) {
  .app, .menu-screen { padding-left: 264px; }
}

/* ---- App admin: search, category filter, category settings ---- */
.pf-toolbar.pf-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.pf-search #pfBizSearch { flex: 1 1 260px; max-width: 420px; }
.pf-search #pfBizCat { flex: 0 0 auto; min-width: 180px; }
.pf-grow { flex: 1; }
#pfClientSearch { flex: 1 1 280px; max-width: 460px; }
.pf-cat-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--tint); color: var(--primary-ink); vertical-align: middle; }
.pf-card .pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.pf-cat-set { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.pf-cat-set select { min-height: 38px !important; min-width: 170px; }
.pf-cat-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pf-cat-form .input { flex: 1 1 240px; max-width: 360px; }
#view-platform #platformBody > .view-head { display: flex; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) {
  .pf-search #pfBizSearch, .pf-search #pfBizCat, #pfClientSearch { flex: 1 1 100%; max-width: none; }
  .pf-grow { display: none; }
  #bottomNav .bnav-item em { font-size: 10.5px; }
}
@media (min-width: 901px) {
  /* Logo lives at the top of the side bar; the top bar shows which business (or "App admin") you're in. */
  .app-shell .sidebar::before {
    content: "Skedilla"; position: absolute; left: 22px; top: 24px; padding-left: 46px; line-height: 34px; z-index: 1;
    font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
    background: no-repeat left center / 34px 34px url("/logo-mark.png");
  }
  .app-shell .topbar .brand { position: static; pointer-events: auto; font-size: 0; gap: 0; color: var(--ink); }
  .app-shell .topbar .brand .brand-mark { display: none; }
  .app-shell .topbar .brand-sub { position: static; height: auto; display: inline; font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; padding: 0; border: none; letter-spacing: -0.01em; }
}

/* ---- Passwords: account button, team password buttons ---- */
#userBadge { cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
#userBadge:hover { filter: brightness(.97); }
.staff-actions { white-space: nowrap; }
.staff-actions .btn, .staff-actions .pill { margin-left: 6px; }
#newPwForm label:first-child { margin-top: 18px; }
@media (max-width: 900px) {
  #staffList td.staff-actions { grid-column: 1 / -1 !important; grid-row: 3 !important; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; white-space: normal; }
  #staffList td.staff-actions .btn, #staffList td.staff-actions .pill { margin-left: 0; }
}
.pf-notes { margin: 0 0 16px; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.pf-notes b { color: var(--ink); word-break: break-all; }
.forgot-row { margin: 12px 0 0; text-align: center; font-size: 13.5px; }
.pf-backup-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-file { cursor: pointer; }
@media (max-width: 979px) { .login-screen .forgot-row { margin-top: 8px; font-size: 13px; } }

/* ---- App admin: site preview pop-up ---- */
body.pv-open { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(27,16,32,.62); backdrop-filter: blur(6px); }
.pv.hidden { display: none; }
.pv-box { width: min(1500px, 100%); height: min(960px, 100%); display: flex; flex-direction: column; background: #efeaf1; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); }
.pv-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px 12px 22px; background: #fff; border-bottom: 1px solid #e6e2ea; }
.pv-title { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #221b26; }
.pv-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: #4a4250; }
.pv-field select { min-height: 38px !important; min-width: 170px; }
.pv-seg button { min-height: 34px; }
.pv-seg button.active { background: var(--grad) !important; color: #fff !important; }
.pv-grow { flex: 1; }
.pv-note { font-size: 12.5px; color: #6e6577; }
.pv-close { width: 40px; height: 40px; border-radius: 50%; font-size: 16px; padding: 0; }
.pv-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 16px;
  background: radial-gradient(80% 70% at 50% 0%, #f7f3f8 0%, #e7e0ea 100%); }
.pv-device { transform-origin: center center; flex: none; background: #fff; }
.pv-device iframe { width: 100%; height: 100%; border: 0; display: block; background: #f5f4f7; }
.pv-desktop { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(34,27,38,.5), 0 0 0 1px rgba(34,27,38,.08); }
.pv-phone { box-sizing: content-box; border: 12px solid #1b1020; border-radius: 46px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(34,27,38,.6); }
.pf-row-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pf-row-actions .btn .ic { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.dh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .pv { padding: 0; }
  .pv-box { border-radius: 0; height: 100%; }
  .pv-bar { gap: 8px; padding: 10px 12px; }
  .pv-note, .pv-title { display: none; }
  .pv-field select { min-width: 130px; }
}
.pv-stage { position: relative; display: block; }
.pv-device { position: absolute; left: 50%; top: 50%; transform-origin: center center; }

/* =====================================================================
   Business home page: schedule timeline on the left, actions on the right.
   ===================================================================== */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 18px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-grid .panel { margin: 0 !important; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { margin: 0 !important; display: flex; align-items: center; gap: 8px; }
.count-pill { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; font-family: var(--font); letter-spacing: 0; }
.count-pill.hidden { display: none; }
.dash-more { margin-top: 12px; background: var(--tint); color: var(--primary-ink); border: none; font-weight: 700; }
.dash-more:hover { background: var(--tint-strong); }
.dash-side .req-actions { grid-template-columns: 1fr 1fr 1fr; }
.dash-side .req-card { padding: 16px 0; }
.dash-side .req-card:first-child { padding-top: 0; }

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-btn { display: flex; align-items: center; gap: 10px; padding: 12px; border: none; border-radius: 16px; background: var(--panel-2); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; transition: background .12s, transform .12s; }
.qa-btn:hover { background: var(--tint); transform: translateY(-1px); }
.qa-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; box-shadow: 0 8px 16px -10px var(--primary); }
.qa-ic .ic { width: 18px; height: 18px; }

.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 58px 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 16px; cursor: pointer; transition: background .12s; }
.tl-item:hover { background: var(--panel-2); }
.tl-time { text-align: right; line-height: 1.2; }
.tl-time b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.tl-time span { font-size: 12px; color: var(--faint); }
.tl-rail { position: relative; align-self: stretch; }
.tl-rail::before { content: ""; position: absolute; left: 7px; top: -12px; bottom: -12px; width: 2px; background: var(--line); }
.tl-item:first-child .tl-rail::before { top: 50%; } .tl-item:last-child .tl-rail::before { bottom: 50%; }
.tl-rail i { position: absolute; left: 1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.tl-name { font-weight: 700; font-size: 15px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item.past { opacity: .55; }
.tl-item.now { background: var(--tint); }
.tl-item.now .tl-rail i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 30%, transparent); }
.tl-item.next { background: var(--panel-2); }
#dashSchedule .tl { max-height: 560px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }

.team-list { display: flex; flex-direction: column; gap: 4px; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.team-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.team-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.team-id b { font-size: 14.5px; color: var(--ink); } .team-id span { font-size: 12.5px; color: var(--muted); }
#dashUpcoming .mini-item { align-items: center; }
.up-when { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.up-when b { display: block; color: var(--ink); font-size: 13.5px; }
@media (max-width: 1180px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .tl-item { grid-template-columns: 50px 14px minmax(0, 1fr); padding: 10px 4px; }
  .tl-item > .pill { grid-column: 3; justify-self: start; }
  #dashSchedule .tl { max-height: none; }
}

/* =====================================================================
   Calendar (desktop): one toolbar, Day view per stylist, Week view, own scroll area.
   ===================================================================== */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-nav { display: inline-flex; gap: 6px; }
.cal-nav .btn { background: var(--panel); box-shadow: var(--card-shadow); border: none; min-height: 40px; }
.cal-arrow { width: 40px; padding: 0 !important; font-size: 20px !important; line-height: 1; }
.cal-bar .cal-title { margin: 0 0 0 8px; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.cal-grow { flex: 1; }
.cal-seg { background: var(--panel); box-shadow: var(--card-shadow); padding: 4px; }
.cal-seg button { min-height: 32px; padding: 6px 18px; }
.cal-seg button.active { background: var(--grad) !important; color: #fff !important; box-shadow: none; }
.cal-bar #calStaff { min-height: 40px !important; border: none; background-color: var(--panel); box-shadow: var(--card-shadow); border-radius: 999px; padding-left: 16px; }
.cal-bar #calHoliday, .cal-bar #calBook { min-height: 40px; padding: 0 16px; }
.cal-bar #calHoliday { background: var(--panel); box-shadow: var(--card-shadow); border: none; }
.cal-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-sub .cal-hint { margin: 0; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }

.cal-week { border: none; border-radius: 24px; box-shadow: var(--card-shadow); background: var(--panel); overflow: hidden; }
.cal-scroll { max-height: calc(100vh - 232px); min-height: 420px; overflow: auto; overscroll-behavior: contain; }
.cal-dayrow { position: sticky; top: 0; z-index: 6; background: var(--panel); border-bottom: 1px solid var(--line); min-width: min-content; }
.cal-body { min-width: min-content; padding-top: 10px; }
.cal-dayrow .cal-gutter { position: sticky; left: 0; background: var(--panel); z-index: 2; border-right: 1px solid var(--line); }
.cal-body .cal-gutter { position: sticky; left: 0; z-index: 5; background: var(--panel); height: auto; }
.cal-dayhead { padding: 12px 8px; border-right: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.cal-dayhead:hover { background: var(--panel-2); }
.cal-dayhead .cd-dow { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cal-dayhead .cd-num { font-size: 22px; font-weight: 800; }
.cal-dayhead .cd-count { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.cal-person { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; cursor: default; }
.cal-person:hover { background: var(--panel); }
.cp-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.cp-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cp-id b { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-id span { font-size: 12px; color: var(--muted); }
.cal-person.away .cp-av { filter: grayscale(1); opacity: .6; }
.cal-hourlabel { right: 10px; font-size: 12px; font-weight: 600; color: var(--faint); }
.cal-nowlabel { position: absolute; right: 6px; transform: translateY(-50%); padding: 2px 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; z-index: 2; }
.cal-col { border-right: 1px solid var(--line); cursor: copy; }
.cal-col:hover { background-color: color-mix(in srgb, var(--primary) 2.5%, var(--panel)); }
.cal-col.today { background-color: color-mix(in srgb, var(--primary) 4%, var(--panel)); }
.cal-col.away { background-image: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--muted) 9%, transparent) 10px 20px); }
.cal-awaynote { position: absolute; left: 0; right: 0; top: 16px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.cal-line { border-top: 1px solid var(--line); }
.cal-line.half { border-top-style: dashed; opacity: .55; }
.cal-now { height: 2px; background: var(--danger); }
.cal-event, .cal-event.completed, .cal-event.checked-in, .cal-event.in-progress, .cal-event.no-show {
  background: color-mix(in srgb, var(--ev) 13%, var(--panel)) !important; border: none !important; border-left: 4px solid var(--ev) !important;
  border-radius: 10px; padding: 5px 8px; box-shadow: 0 1px 2px rgba(34,27,38,.06); cursor: pointer; overflow: hidden; transition: box-shadow .12s, transform .12s;
}
.cal-event:hover { box-shadow: 0 8px 20px -6px rgba(34,27,38,.28) !important; transform: translateY(-1px); z-index: 4; filter: none; }
.cal-event .ce-time { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--ev) 70%, #000) !important; }
.cal-event .ce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); display: inline-block; }
.cal-event .ce-name { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event .ce-meta { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.short { padding: 2px 8px; display: flex; align-items: center; }
.cal-event.short .ce-line { gap: 6px; width: 100%; }
.cal-event.short .ce-name { font-size: 12px; }
.cal-event.pending { border-left-style: dashed !important; }
.cal-event.no-show { opacity: .6; }
.cal-event .ce-status { display: none; }
.cal-ghost { border-radius: 10px; }
.cal-week.cal-day .cal-event .ce-name { font-size: 13.5px; }
@media (max-width: 900px) {
  .cal-bar { gap: 8px; }
  .cal-bar .cal-title { order: -1; flex: 1 1 100%; margin: 0 0 2px; font-size: 26px; }
  .cal-seg, .cal-legend, .cal-grow { display: none; }
  .cal-scroll { max-height: none; overflow: visible; }
}
/* Booking requests sit in the narrower side column: stack the buttons under the details. */
.dash-side .req-card { display: block !important; }
.dash-side .req-card > .req-actions { margin-top: 12px; }
.dash-side .req-actions .btn { padding: 9px 6px; font-size: 13px; }
#dashRequests { max-height: none !important; overflow: visible !important; }

/* ---- Calendar: week grid as before, easier to read ---- */
#view-calendar .view-head { align-items: center; margin-bottom: 10px; }
.cal-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-tools .btn, .cal-tools #calStaff { min-height: 40px !important; }
.cal-tools .btn:not(.btn-primary), .cal-tools #calStaff { background-color: var(--panel); border: none; box-shadow: var(--card-shadow); }
.cal-tools #calStaff { border-radius: 999px; padding-left: 16px; }
.cal-tools #calHoliday, .cal-tools #calBook { padding: 0 16px; }
#view-calendar > .cal-title { margin: 0 0 6px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.cal-week.cal-week .cal-dayhead { cursor: default; text-align: center; }
.cal-week.cal-week .cal-dayhead:hover { background: var(--panel); }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; }
.cal-legend i.lg-dot { width: 8px; height: 8px; border-radius: 50%; }
.cal-legend .lg-sep { width: 1px; height: 14px; background: var(--line-strong); }
.cal-legend .lg-staff { font-weight: 600; color: var(--ink); }
/* Bigger, calmer text inside each booking */
.cal-week.cal-week .cal-event { padding: 5px 8px 5px 9px; border-radius: 9px; }
.cal-week.cal-week .cal-event .ce-name { font-size: 13px; line-height: 1.25; }
.cal-week.cal-week .cal-event .ce-time { font-size: 11.5px; font-weight: 700; }
.cal-week.cal-week .cal-event .ce-meta { font-size: 11.5px; }
.cal-week.cal-week .cal-event.short .ce-name { font-size: 12.5px; }
.cal-week.cal-week .cal-col.weekend { background-color: var(--panel-2); }
.cal-scroll { max-height: calc(100vh - 250px); }

/* ---- Calendar: 3-day view (roomy), full-width calendar ---- */
.content > #view-calendar { max-width: none; }
.cal-tools .cal-seg { background: var(--panel); box-shadow: var(--card-shadow); padding: 4px; }
.cal-tools .cal-seg button { min-height: 32px; padding: 6px 16px; }
.cal-m-3day .cal-dayhead { padding: 14px 10px 10px; text-align: center; cursor: default; }
.cal-m-3day .cal-dayhead:hover { background: var(--panel); }
.cal-m-3day .cal-dayhead .cd-dow { font-size: 13.5px; }
.cal-m-3day .cal-dayhead .cd-num { font-size: 28px; }
.cal-m-3day .cal-dayhead .cd-count { font-size: 12.5px; }
.cd-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 10px -10px -10px; border-top: 1px solid var(--line); }
.cd-lanes span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2); border-right: 1px dashed var(--line); }
.cd-lanes span:last-child { border-right: none; }
.cd-lanes i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.cal-lane { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line); pointer-events: none; }
.cal-m-3day .cal-event { padding: 6px 10px; border-radius: 11px; }
.cal-m-3day .cal-event .ce-name { font-size: 14px; }
.cal-m-3day .cal-event .ce-time { font-size: 12px; }
.cal-m-3day .cal-event .ce-meta { font-size: 12px; }
.cal-m-3day .cal-event.short .ce-name { font-size: 13px; }

/* ---- Calendar: one-day view + go-to-date picker ---- */
.cal-pick { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--panel); box-shadow: var(--card-shadow); color: var(--primary); cursor: pointer; }
.cal-pick .ic { width: 17px; height: 17px; flex: none; }
.cal-pick input { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); outline: none; cursor: pointer; min-width: 0; }
.cal-pick:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.cal-m-day .cal-person { padding: 16px 18px; justify-content: center; }
.cal-m-day .cp-av { width: 44px; height: 44px; font-size: 14.5px; }
.cal-m-day .cp-id b { font-size: 16px; }
.cal-m-day .cp-id span { font-size: 13px; }
.cal-m-day .cal-event { padding: 7px 12px; border-radius: 11px; }
.cal-m-day .cal-event .ce-name { font-size: 15px; }
.cal-m-day .cal-event .ce-time, .cal-m-day .cal-event .ce-meta { font-size: 12.5px; }

/* ---- Calendar 2: week planner board ---- */
.content > #view-calendar2 { max-width: none; }
#view-calendar2 > .cal-title { margin: 0 0 6px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
#cal2Body { overflow-x: auto; border-radius: 22px; box-shadow: var(--card-shadow); background: var(--panel); }
.c2-board { display: grid; min-width: 1200px; }
.c2-corner, .c2-head { position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 2; }
.c2-head { display: flex; align-items: baseline; gap: 8px; padding: 14px 14px 12px; border-left: 1px solid var(--line); }
.c2-head span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.c2-head b { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; }
.c2-head em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.c2-head.today { background: color-mix(in srgb, var(--primary) 8%, var(--panel)); box-shadow: inset 0 3px 0 var(--primary); }
.c2-head.today span, .c2-head.today b { color: var(--primary); }
.c2-who { position: sticky; left: 0; z-index: 1; background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px; border-top: 1px solid var(--line); }
.c2-who b { font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.c2-who em { font-style: normal; font-size: 12px; color: var(--muted); }
.c2-board > .c2-who:nth-child(9) { border-top: none; }
.c2-cell { display: flex; flex-direction: column; gap: 7px; padding: 10px; min-height: 150px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.c2-cell.today { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.c2-cell.away { background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--ink) 5%, transparent) 9px 18px); }
.c2-away { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 2px 0; }
.c2-card { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 8px 10px 9px 12px; border: 0; border-left: 4px solid var(--ev); border-radius: 11px; background: color-mix(in srgb, var(--ev) 11%, var(--panel)); cursor: pointer; font: inherit; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.c2-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(40, 20, 35, .12); }
.c2-card b { font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-time { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--ev); }
.c2-time em { font-style: normal; font-weight: 600; color: var(--muted); }
.c2-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #2f7d57; }
.c2-card.pending .c2-dot, .c2-card.requested .c2-dot { background: #c98a1b; }
.c2-card.completed { opacity: .72; }
.c2-svc { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-add { margin-top: auto; padding: 7px; border: 1.5px dashed var(--line); border-radius: 10px; background: transparent; color: var(--primary); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; opacity: 0; transition: opacity .12s; }
.c2-cell:hover .c2-add, .c2-add:focus-visible, .c2-add.show { opacity: 1; }
.c2-add.show { opacity: .55; }
.c2-add:hover { opacity: 1 !important; background: color-mix(in srgb, var(--primary) 7%, transparent); border-color: var(--primary); }
.c2-list { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.c2-day { display: flex; flex-direction: column; gap: 7px; }
.c2-day header { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px 2px; }
.c2-day header b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.c2-day header span { font-size: 13px; color: var(--muted); }
.c2-day header em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.c2-day.today header b { color: var(--primary); }
.c2-none { font-size: 13px; color: var(--muted); padding: 4px 2px; }
.c2-day .c2-add { opacity: 1; }
.c2-board { min-width: 1052px; }
.c2-head { flex-wrap: wrap; row-gap: 4px; padding: 12px 12px 10px; }
.c2-head em { margin-left: 0; flex: 1 1 100%; }
.c2-add { margin-top: 0; }
.c2-cell { padding: 8px; }
.c2-time { white-space: nowrap; }
.c2-time em { overflow: hidden; text-overflow: clip; }

/* Calendar 2: add-booking button in free gaps between bookings */
.c2-gap { display: flex; align-items: center; gap: 5px; width: 100%; padding: 5px 9px; border: 1.5px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: 9px; background: transparent; color: var(--primary); font: inherit; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; cursor: pointer; transition: background .12s, border-color .12s; }
.c2-gap b { font-size: 14px; line-height: 1; }
.c2-gap em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--muted); }
.c2-gap:hover, .c2-gap:focus-visible { background: color-mix(in srgb, var(--primary) 9%, transparent); border-color: var(--primary); }

/* ---- Revenue chart (business analytics + app admin) ---- */
.rc { display: flex; gap: 10px; margin-top: 14px; }
.rc-y { display: flex; flex-direction: column; justify-content: space-between; height: 220px; margin-top: -7px; font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-main { flex: 1; min-width: 0; }
.rc-plot { position: relative; height: 206px; }
.rc-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.rc-grid i { display: block; height: 0; border-top: 1px dashed var(--line); }
.rc-grid i:last-child { border-top: 1.5px solid var(--line-strong, var(--line)); }
.rc-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 5px; }
.rc-col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.rc-bar { width: 100%; max-width: 30px; border-radius: 7px 7px 2px 2px; background: color-mix(in srgb, var(--primary) 55%, var(--panel)); transition: background .12s; }
.rc-bar.peak { background: var(--primary); }
.rc-bar.zero { height: 3px !important; border-radius: 2px; background: var(--line); }
.rc-col:hover .rc-bar:not(.zero), .rc-col:focus .rc-bar:not(.zero) { background: var(--primary); }
.rc-col:hover::before, .rc-col:focus::before { content: ""; position: absolute; inset: 0 -2px; border-radius: 8px; background: color-mix(in srgb, var(--primary) 6%, transparent); }
.rc-tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11.5px; white-space: nowrap; z-index: 5; pointer-events: none; box-shadow: 0 8px 20px rgba(30, 15, 25, .25); }
.rc-tip b { font-size: 13.5px; color: #fff; }
.rc-col:hover .rc-tip, .rc-col:focus .rc-tip { display: flex; }
.rc-col:first-child .rc-tip { left: 0; transform: none; }
.rc-col:last-child .rc-tip { left: auto; right: 0; transform: none; }
.rc-x { display: flex; gap: 5px; margin-top: 8px; height: 16px; }
.rc-x span { position: relative; flex: 1 1 0; min-width: 0; }
.rc-x em { position: absolute; left: 0; top: 0; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rc-many .rc-bars, .rc-many .rc-x { gap: 2px; }
.rc-many .rc-bar { border-radius: 3px 3px 1px 1px; }
.rc + .ana-legend { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.rc + .ana-legend span { font-weight: 700; color: var(--ink); }
@media (max-width: 720px) { .rc-y { height: 180px; font-size: 10.5px; } .rc-plot { height: 166px; } .rc-bars, .rc-x { gap: 2px; } .rc-bar { border-radius: 4px 4px 1px 1px; } }

/* ---- Colour choice (business Settings + app admin Settings) ---- */
.colour-panel { margin: 22px 0; }
.colour-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.colour-opt { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--panel); cursor: pointer; font: inherit; text-align: left; transition: border-color .12s, transform .12s; }
.colour-opt:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.colour-opt.sel { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.colour-sw { display: flex; height: 62px; border-radius: 10px; overflow: hidden; }
.colour-sw i { display: block; }
.colour-sw i:nth-child(1) { flex: 3; background: linear-gradient(165deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 55%, #000)); }
.colour-sw i:nth-child(2) { flex: 1; background: color-mix(in srgb, var(--c) 55%, #fff); }
.colour-sw i:nth-child(3) { flex: 1; background: color-mix(in srgb, var(--c) 12%, #fff); }
.colour-name { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; color: var(--ink); padding: 0 2px; }
.colour-name svg { width: 16px; height: 16px; color: var(--primary); }
@media (max-width: 720px) { .colour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .colour-sw { height: 48px; } }

/* ---- Team invitations ---- */
.invite-panel { margin: 22px 0; }
.invite-form { display: flex; gap: 10px; flex-wrap: wrap; }
.invite-form input { flex: 1 1 260px; }
.invite-form select { flex: 0 0 170px; }
.inv-state { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--hover); color: var(--text-2); white-space: nowrap; }
.inv-state.accepted { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); color: var(--ok); }
.inv-state.declined { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); color: var(--danger); }
.ti-card { text-align: center; padding: 28px 24px 20px; max-width: 420px; }
.ti-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, var(--panel)); color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ti-title { margin: 14px 0 8px; font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.ti-text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.ti-msg { min-height: 0; font-size: 13px; color: var(--danger); margin-bottom: 8px; }
.ti-later { margin-top: 12px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; }

/* ---- Team: extra access ---- */
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.acc-row:hover { border-color: var(--line-strong); }
.acc-row:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--panel)); }
.acc-row.fixed { cursor: default; opacity: .7; border-color: var(--line); background: var(--panel-2); }
.acc-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.acc-row span { display: flex; flex-direction: column; }
.acc-row b { font-size: 14.5px; color: var(--ink); }
.acc-row em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.acc-n { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; }
.acc-group { display: flex; flex-direction: column; gap: 6px; }
.acc-parts { display: flex; flex-direction: column; gap: 6px; margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.acc-row.sub { padding: 9px 12px; border-radius: 12px; }
.acc-row.sub b { font-size: 13.5px; }
.acc-row.sub em { font-size: 12px; }
.acc-row.sub input { width: 18px; height: 18px; }
#modalBox:has(#accForm) { max-height: 92vh; overflow-y: auto; }
.appt-cancel { margin-left: 8px; padding: 4px 10px; min-height: 0; font-size: 12px; }
.acc-parts.shut { display: none; }
/* Buttons a team member hasn't been given are hidden */
html.no-req-decide #view-clientrequests .req-actions, html.no-req-decide #clientSignupPanel .req-actions { display: none; }
html.no-ana-export #anaExport { display: none; }
html.no-svc-add .svc-add-bit { display: none; }
html.no-svc-remove #serviceList .btn-danger { display: none; }
html.no-set-details #salonForm { display: none; }
html.no-set-codes .set-codes-bit { display: none; }

/* ---- Team: roles ---- */
.role-pick { min-width: 150px; height: 40px; padding-top: 0; padding-bottom: 0; }
.role-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.role-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.role-switch i { position: relative; width: 40px; height: 23px; border-radius: 999px; background: var(--line-strong); transition: background .15s; flex: none; }
.role-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.role-switch input:checked + i { background: var(--primary); }
.role-switch input:checked + i::after { transform: translateX(17px); }
.role-switch input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
.role-note { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
/* client app: role under the name on the "who with" buttons */
.chip-btn:has(.chip-role) { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; height: auto; padding-top: 8px; padding-bottom: 8px; text-align: left; }
.chip-role { font-size: 11px; font-weight: 600; opacity: .72; letter-spacing: .02em; }

/* ---- Booking pop-up ---- */
.ap-card { border: 1px solid var(--line); border-left: 5px solid var(--ev); border-radius: 16px; padding: 16px 18px; background: var(--panel-2); }
.ap-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ap-name { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.ap-svc { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.ap-rows { display: grid; gap: 7px; }
.ap-rows > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; font-size: 14px; }
.ap-rows span { color: var(--muted); }
.ap-rows b { color: var(--ink); font-weight: 650; }
.ap-rows .ap-warn b { color: var(--danger); }
.ap-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ap-acts .btn { display: inline-flex; align-items: center; gap: 7px; }
.ap-acts .btn svg { width: 16px; height: 16px; }
.ap-acts .btn-ghost { margin-left: auto; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; cursor: pointer; }
.consent-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.cf-consent { font-style: normal; font-size: 12px; color: var(--muted); }
html.no-book-add #calBook, html.no-book-add #clientBox .pm-head .btn, html.no-book-add #clientBox button[onclick^="openBooking"] { display: none; }

/* ---- App admin: store numbers + Support tab ---- */
.store-id { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 7px; background: var(--hover); color: var(--text-2); font: 700 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; vertical-align: 2px; }
.content:has(#supWrap) > #view-platform, #view-platform:has(#supWrap) { max-width: none; }
.sup-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.sup-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); flex: 1 1 190px; min-width: 0; }
.sup-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.sup-toggles .feed-tabs { background: var(--hover); padding: 4px; }
.sup-toggles .feed-tabs button { min-height: 34px; padding: 6px 14px; white-space: nowrap; }
.sup-row #supOpen { height: 44px; padding: 0 26px; }
.sup-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 14px 10px 18px; border-radius: 14px 14px 0 0; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 650; }
.sup-banner.fix { background: #b3362d; }
.sup-banner .btn { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.sup-stage { border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; background: #e9e6ee; }
.sup-banner.fix + .sup-stage { border-color: #b3362d; }
.sup-stage iframe { display: block; width: 100%; height: calc(100vh - 150px); min-height: 620px; border: 0; background: #fff; }
.sup-stage.mobile { display: grid; place-items: center; padding: 22px 0; }
.sup-stage.mobile iframe { width: 390px; height: 780px; min-height: 0; border-radius: 30px; box-shadow: 0 20px 50px -18px rgba(30,15,25,.5), 0 0 0 9px #1c1620; }
.sup-banner { scroll-margin-top: 78px; }
.sup-stage iframe { height: calc(100vh - 210px); }
.sup-find { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sup-find input { flex: 1 1 320px; max-width: 460px; }

/* ---- Settings: sharing earnings with Skedilla ---- */
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.share-opt { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--panel); text-align: left; font: inherit; cursor: pointer; transition: border-color .12s, transform .12s; }
.share-opt:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.share-opt.sel { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--panel)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.share-opt b { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--ink); }
.share-opt b svg { width: 17px; height: 17px; color: var(--primary); }
.share-opt span { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 720px) { .share-grid { grid-template-columns: 1fr; } }
.share-lock { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fbf4e6; border: 1px solid #ecd9ae; color: #8a5200; font-size: 13.5px; font-weight: 600; }
.share-grid.locked .share-opt { cursor: not-allowed; opacity: .6; transform: none; }
.share-grid.locked .share-opt.sel { opacity: 1; }
.stat.stat-text .num { font-size: 22px; line-height: 1.25; }

/* ---- Products ---- */
html.no-prod-add .prod-add-bit { display: none; }
html.no-prod-remove #productList .btn-danger { display: none; }
#productList tr.prod-off td:first-child, #productList tr.prod-off td:nth-child(2) { opacity: .5; }
#productOrders .mini-item { cursor: pointer; }
.ap-rows .ap-buy b em { font-style: normal; font-weight: 800; color: var(--primary); margin-left: 6px; }
/* client app: the fold-away product picker on the booking page */
.prod-box { margin-top: 18px; border-radius: 18px; background: var(--panel); box-shadow: var(--card-shadow); overflow: hidden; }
.prod-box > summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; }
.prod-box > summary::-webkit-details-marker { display: none; }
.prod-sum-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.prod-sum-main b { font-size: 15.5px; color: var(--ink); }
.prod-sum-main em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.prod-box.has .prod-sum-main em { color: var(--primary); font-weight: 650; }
.prod-sum-total { font-weight: 800; color: var(--primary); }
.prod-chev { width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin: 0 4px 4px 0; flex: none; }
.prod-box[open] .prod-chev { transform: rotate(-135deg); margin: 4px 4px 0 0; }
.prod-list { border-top: 1px solid var(--line); }
.prod-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.prod-row.on { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod-info b { font-size: 14.5px; color: var(--ink); }
.prod-info span { font-size: 12.5px; color: var(--muted); }
.prod-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.prod-qty { display: flex; align-items: center; gap: 2px; flex: none; }
.prod-qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--hover); color: var(--ink); font: 700 18px/1 inherit; cursor: pointer; }
.prod-qty button:disabled { opacity: .35; cursor: default; }
.prod-qty button:last-child { background: var(--primary); color: #fff; }
.prod-qty i { min-width: 24px; text-align: center; font-style: normal; font-weight: 800; color: var(--ink); }
.prod-foot { padding: 10px 18px 14px; margin: 0; }
.next-buy { margin-top: 6px; font-size: 13px; font-weight: 600; opacity: .9; }

/* ---- Settings: sounds ---- */
.sound-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sound-row > span:first-child { display: flex; flex-direction: column; }
.sound-row b { font-size: 14.5px; color: var(--ink); }
.sound-row em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.sound-row.dim { opacity: .5; cursor: default; }
.sound-try { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.sound-try .btn { display: inline-flex; align-items: center; gap: 7px; }
.sound-try .btn svg { width: 15px; height: 15px; }
.ap-demo { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: #fbf4e6; border: 1px solid #ecd9ae; color: #8a5200; font-size: 13px; font-weight: 600; }

/* ---- "Anyone available" on the client booking page ---- */
.chip-btn.chip-any { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; height: auto; padding-top: 8px; padding-bottom: 8px; text-align: left; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 35%, transparent); }
.chip-btn.chip-any.sel { box-shadow: none; }
.ap-any { font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 6px; }

/* Phone: Accept / Decline sit under the person's details instead of running off the edge */
@media (max-width: 640px) {
  .mini-item:has(> .req-actions) { flex-wrap: wrap; }
  .mini-item > .req-actions { width: 100%; grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .mini-item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
}

/* Booking rules panel */
.rule-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line, rgba(0,0,0,.08)); flex-wrap: wrap; }
.rule-row:first-child { border-top: 0; padding-top: 0; }
.rule-name { display: grid; gap: 3px; min-width: 220px; flex: 1; }
.rule-name span { font-size: 13px; color: var(--muted); }
.day-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.day-chip { min-width: 52px; padding: 9px 12px; border-radius: 999px; border: 1.5px solid var(--line, rgba(0,0,0,.12)); background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; text-decoration: line-through; }
.day-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }
.rule-select { max-width: 300px; }
/* Team page: "Clients can book" switch under the role */
.book-switch { display: flex; margin-top: 8px; font-size: 12.5px; }
/* Service editor: who does this service */
.svc-who { display: grid; gap: 4px; }
.svc-who-list { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.svc-who-list label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
/* Phone: products as cards instead of a squeezed table */
@media (max-width: 640px) {
  #productList table, #productList tbody { display: block; width: 100%; min-width: 0; }
  #productList td:nth-child(2) { font-weight: 700; }
  #productList thead { display: none; }
  #productList tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
  #productList td { display: block; padding: 0; border: 0; }
  #productList td:nth-child(3) { grid-column: 1; }
  #productList td:nth-child(4) { grid-column: 2; grid-row: 2; }
}

/* QR code panel and the "you're joining" note on the sign-in page */
.qr-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr-box { padding: 10px; background: #fff; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 16px; line-height: 0; }
.qr-box svg { display: block; width: 200px; height: 200px; }
.qr-side { flex: 1; min-width: 240px; display: grid; gap: 14px; }
.qr-steps { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.qr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qr-reset { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.join-banner { display: grid; gap: 2px; padding: 12px 14px; margin: 0 0 14px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, var(--panel, #fff)); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); text-align: left; }
.join-banner b { color: var(--primary); font-size: 15px; }
.join-banner span { font-size: 13.5px; color: var(--muted); }

/* Booking requests page */
.req-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.req-page .req-card { background: var(--panel, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 18px; padding: 16px; display: block; }
.req-page .req-card.new { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.req-page .req-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.req-page .req-actions .btn { padding: 10px 6px; font-size: 13px; width: 100%; }
.req-new-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 0 14px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, var(--panel, #fff)); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); font-size: 14.5px; }
.req-new-note svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.nav-badge.hot { animation: badgePulse 1.4s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@media (max-width: 640px) { .req-page { grid-template-columns: 1fr; } .bnav-item { position: relative; } .bnav-item .nav-badge { position: absolute; top: 2px; right: 14%; } }
@media (prefers-reduced-motion: reduce) { .nav-badge.hot { animation: none; } }

/* Booking requests: tabs, filters and the "what happened" line */
.req-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.req-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line, rgba(0,0,0,.1)); background: var(--panel, #fff); color: var(--ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.req-tabs button span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 12px; text-align: center; }
.req-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.req-tabs button.on span { background: rgba(255,255,255,.22); color: #fff; }
.req-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.req-filter-bar .input { width: auto; min-width: 150px; flex: 0 1 auto; padding-top: 9px; padding-bottom: 9px; }
.req-filter-bar input[type=search] { flex: 1 1 200px; min-width: 180px; }
.req-foot { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; background: var(--hover, rgba(0,0,0,.04)); color: var(--ink); }
.req-foot svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.req-foot.ok { background: color-mix(in srgb, #2f9c7a 12%, var(--panel, #fff)); } .req-foot.ok svg { color: #23795e; }
.req-foot.no { background: color-mix(in srgb, var(--danger, #b3362d) 10%, var(--panel, #fff)); } .req-foot.no svg { color: var(--danger, #b3362d); }
.req-foot.wait { background: color-mix(in srgb, #d49a1c 14%, var(--panel, #fff)); } .req-foot.wait svg { color: #8a6208; }
@media (max-width: 640px) { .req-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .req-tabs button { flex: none; } .req-filter-bar .input { flex: 1 1 46%; min-width: 0; } .req-filter-bar input[type=search] { flex: 1 1 100%; } }

/* Rescheduled: smaller tabs for what the client said */
.req-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 12px; padding: 5px; border-radius: 14px; background: var(--hover, rgba(0,0,0,.04)); width: fit-content; max-width: 100%; }
.req-subtabs button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.req-subtabs button span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 12px; text-align: center; }
.req-subtabs button.on { background: var(--panel, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.req-subtabs button.accepted.on span { background: color-mix(in srgb, #2f9c7a 22%, transparent); color: #1c6a51; }
.req-subtabs button.declined.on span { background: color-mix(in srgb, var(--danger, #b3362d) 18%, transparent); color: var(--danger, #b3362d); }
.req-subtabs button.waiting.on span { background: color-mix(in srgb, #d49a1c 26%, transparent); color: #7a5606; }
@media (max-width: 640px) { .req-subtabs { flex-wrap: nowrap; overflow-x: auto; width: auto; } .req-subtabs button { flex: none; } }

/* Menu groups that fold out (one open at a time) */
.nav-chev { width: 15px; height: 15px; margin-left: auto; flex: none; opacity: .65; transition: transform .18s ease; }
.nav-parent.open .nav-chev { transform: rotate(90deg); }
.nav-parent .nav-badge { margin-left: auto; order: 2; } .nav-parent .nav-chev { order: 3; width: 14px; height: 14px; } .nav-parent:has(.nav-badge):not(.open) .nav-chev { margin-left: 4px; }
.nav-parent > span:not(.ni):not(.nav-badge), .nav-parent > em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sidebar button.nav-parent { gap: 8px; padding-right: 8px; letter-spacing: -.01em; }
.sidebar button.nav-parent:has(.nav-badge):not(.open) { font-size: 13.5px; padding-left: 12px; } .nav-parent .nav-badge { flex: none; }
.drawer .drawer-item.nav-parent:has(.nav-badge):not(.open) { font-size: 15px; gap: 8px; }
.nav-parent.open .nav-badge { display: none; }
.sidebar button.nav-parent.open.here, .sidebar button.nav-parent.open.here:hover { font-weight: 700; }
.nav-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .2s ease, visibility .2s; }
.nav-sub.open { grid-template-rows: 1fr; visibility: visible; }
.nav-sub > div { overflow: hidden; min-height: 0; }
.sidebar .nav-sub > div { margin-left: 22px; padding-left: 8px; border-left: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); }
.sidebar .nav-sub.open > div { margin-bottom: 6px; }
.sidebar button.nav-child { padding: 7px 12px; font-size: 13.5px; margin-bottom: 1px; border-radius: 10px; }
.sidebar button.nav-child .nav-badge { margin-left: auto; }
.nav-child[hidden] { display: none !important; }
#salonForm, #choicePanel, #qrPanel, #rulesPanel, #soundPanel, #sharePanel, #colourPanel, #inviteList { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .drawer .nav-sub > div { margin-left: 26px; padding-left: 8px; border-left: 2px solid var(--line, rgba(0,0,0,.1)); }
  .drawer .drawer-item.nav-child { min-height: 42px; font-size: 15px; font-weight: 550; }
  .drawer .drawer-item.nav-parent.active { background: var(--tint) !important; color: var(--ink) !important; box-shadow: none !important; }
  .drawer .drawer-item.nav-parent.active .ic { color: var(--primary-ink, var(--primary)); }
}
@media (prefers-reduced-motion: reduce) { .nav-sub, .nav-chev { transition: none; } }

/* Settings: support visits */
.support-visits { display: grid; gap: 2px; }
.sv-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 14px; }
.sv-row:last-child { border-bottom: 0; }
.sv-when { color: var(--muted, #6b6070); font-variant-numeric: tabular-nums; }
.sv-mode { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--hover, rgba(0,0,0,.05)); white-space: nowrap; }
.sv-mode.fix { background: color-mix(in srgb, #d49a1c 18%, var(--panel, #fff)); color: #7a5606; }
@media (max-width: 640px) { .sv-row { grid-template-columns: 1fr auto; } .sv-when { grid-column: 1 / -1; font-size: 12.5px; } }

/* ---- Skedilla logo ---- */
.la-mark, .brand-mark, .login-card .logo { background: none !important; border: none !important; box-shadow: none !important; }
.la-mark img, .brand-mark img, .login-card .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.la-name { font-style: italic; letter-spacing: -0.02em; }
.app > .ctabs::before, .menu-screen > .ctabs::before, .app-shell .sidebar::before { font-style: italic; }
.topbar .brand { font-style: italic; } .topbar .brand .brand-sub { font-style: normal; }

/* =====================================================================
   Client app: the Skedilla bar on top is the app (your places, profile);
   the business's own menu is at the bottom on phones and down the side on desktop.
   ===================================================================== */
#appBar { display: none; }
body.in-app #appBar {
  display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 60; align-items: center; gap: 8px;
  height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0 8px; box-sizing: border-box;
  background: var(--grad-deep, #5c1d45); color: #fff; box-shadow: 0 8px 20px -14px rgba(0,0,0,.6);
}
#appBar .ab-brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 19px; letter-spacing: -0.02em; }
#appBar .ab-brand img { width: 28px; height: 28px; object-fit: contain; flex: none; }
#appBar .ab-back { display: none; align-items: center; gap: 2px; flex: none; border: 0; background: rgba(255,255,255,.15); color: #fff; font: inherit; font-size: 14px; font-weight: 650; padding: 7px 12px 7px 7px; border-radius: 999px; cursor: pointer; }
#appBar .ab-back svg { width: 18px; height: 18px; }
body.in-biz #appBar .ab-back { display: inline-flex; }
body.in-biz #appBar .ab-brand span { display: none; }
#appBar .ab-links { display: none; }
#appBar .ab-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#appBar .bell { display: none; position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
#appBar .bell .ic { width: 20px; height: 20px; }
body.in-biz #appBar .bell { display: inline-flex; }
#appBar .ab-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; flex: none; }
#appBar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.in-app .app, body.in-app .menu-screen { padding-top: calc(54px + env(safe-area-inset-top)); }
body.in-app .app .top { top: calc(54px + env(safe-area-inset-top)); }
body.in-app .app .top .top-right, body.in-app #menuAvatar, body.in-app .menu-screen .menu-top, body.in-app .menu-tabs { display: none !important; }
body.in-app .menu-screen .menu-main { padding-bottom: 40px; }
.account-card .profile-hero { margin: 4px 0 14px; }
.account-card .btn-block { margin-top: 8px; }

@media (min-width: 1000px) {
  body.in-app #appBar { height: 64px; padding: 0 28px 0 22px; gap: 18px; background: var(--panel, #fff); color: var(--ink); border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); box-shadow: none; }
  #appBar .ab-brand { width: 200px; font-size: 21px; color: var(--ink); }
  #appBar .ab-brand img { width: 32px; height: 32px; }
  body.in-biz #appBar .ab-brand span { display: inline; }
  body.in-biz #appBar .ab-back { display: none; }
  #appBar .ab-links { display: flex; gap: 4px; }
  #appBar .ab-links button { border: 0; background: none; font: inherit; font-size: 15px; font-weight: 650; color: var(--muted, #6b6070); padding: 9px 14px; border-radius: 10px; cursor: pointer; }
  #appBar .ab-links button:hover { background: var(--hover, rgba(0,0,0,.05)); color: var(--ink); }
  #appBar .ab-links button.active { background: color-mix(in srgb, var(--primary) 10%, var(--panel, #fff)); color: var(--primary-ink, var(--primary)); }
  #appBar .bell { background: var(--hover, rgba(0,0,0,.05)); color: var(--ink); }
  #appBar .ab-avatar { border: 0; background: color-mix(in srgb, var(--primary) 12%, var(--panel, #fff)); color: var(--primary-ink, var(--primary)); }
  #appBar button:focus-visible { outline-color: var(--primary); }
  body.in-app .app, body.in-app .menu-screen { padding-top: 64px; }
  body.in-app .app .top { top: 64px; }
  /* the side menu belongs to the business: it starts under the bar and carries the business's name */
  body.in-app .app > .ctabs { top: 64px !important; }
  body.in-app .app > .ctabs::before { content: attr(data-biz); background: none; padding-left: 0; right: 18px; font-style: normal; font-size: 18px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* your places: a wide page with no side menu */
  body.in-app .menu-screen { padding-left: 0 !important; }
  body.in-app .menu-screen .menu-main { max-width: 1100px !important; margin: 0 auto !important; padding: 32px 40px 64px !important; }
}

/* ---------- Plans and subscriptions ---------- */
#modalBox:has(.plan-picker) { max-width: 920px; width: min(920px, calc(100vw - 32px)); }
.plan-picker { margin-bottom: 4px; }
.plan-pick-head, .bill-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bill-head h4 { margin: 0; }
.plan-pick-title, .plan-step-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.plan-step-title { margin-top: 6px; }
.plan-pick-note { font-size: 13.5px; color: var(--muted); margin-top: 3px; max-width: 46ch; }
.plan-cycle { display: inline-flex; background: var(--hover); border-radius: 999px; padding: 4px; gap: 2px; }
.plan-cycle button { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.plan-cycle button em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ok); margin-left: 4px; }
.plan-cycle button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(34,27,38,.12); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-card { position: relative; display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--text); background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; cursor: default; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.plan-card { cursor: pointer; }
button.plan-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); transform: translateY(-1px); }
.plan-card.featured { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.plan-card.chosen { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.plan-tag { position: absolute; top: -10px; right: 14px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
.plan-name { font-weight: 700; font-size: 15px; color: var(--primary-ink); }
.plan-price { margin-top: 8px; display: flex; align-items: baseline; gap: 3px; }
.plan-price b { font-size: 32px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.plan-price span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.plan-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 17px; }
.plan-team { margin-top: 12px; font-weight: 650; font-size: 13.5px; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--hover); }
.plan-feats { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 7px; font-size: 13px; flex: 1; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.plan-feats svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.plan-feats li.on svg { color: var(--ok); }
.plan-feats li.off { color: var(--faint); }
.plan-choose { display: block; text-align: center; font-weight: 700; font-size: 13.5px; padding: 9px; border-radius: 10px; background: var(--hover); color: var(--text-2); }
.plan-card.chosen .plan-choose { background: var(--primary); color: #fff; }
.plan-switch { width: 100%; justify-content: center; }
.plan-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 12%, var(--panel)); color: var(--warn-ink); font-weight: 600; font-size: 14px; }
.plan-banner.bad { background: color-mix(in srgb, var(--danger) 11%, var(--panel)); color: var(--danger); }
.plan-banner span { flex: 1; }
.plan-banner .ic, .plan-banner svg { width: 18px; height: 18px; flex: 0 0 18px; }
.plan-locked > :not(.plan-lock):not(.view-head):not(h3) { display: none !important; }
.plan-locked > .view-head .toolbar, .plan-locked > .view-head .feed-tabs { display: none !important; }
.plan-lock { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 18px; background: var(--panel); border: 1.5px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); }
.plan-lock .pl-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint, var(--hover)); color: var(--primary); flex: 0 0 44px; }
.plan-lock .pl-ic svg { width: 22px; height: 22px; }
.plan-lock .pl-text { flex: 1; display: grid; gap: 4px; }
.plan-lock .pl-text span { color: var(--muted); font-size: 14px; }
.bill-now { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: var(--hover); }
.bill-plan { font-weight: 700; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bill-line { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.bill-usage { min-width: 170px; display: grid; gap: 2px; }
.bill-usage b { font-size: 22px; color: var(--ink); line-height: 1; }
.bill-usage span { font-size: 13px; color: var(--muted); }
.bill-usage i { display: block; height: 6px; border-radius: 6px; background: var(--line); margin-top: 6px; position: relative; overflow: hidden; }
.bill-usage i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--primary); border-radius: 6px; }
.bill-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, var(--panel)); color: var(--warn-ink); font-weight: 600; font-size: 14px; }
.bill-warn.bad { background: color-mix(in srgb, var(--danger) 11%, var(--panel)); color: var(--danger); }
.bill-warn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.bill-pay { margin: 16px 0 20px; }
.bill-pay h4 { margin: 0 0 6px; }
.bill-pay p { margin: 0; color: var(--text-2); line-height: 1.5; font-size: 14px; }
.sub-filters { margin: 4px 0 10px; flex-wrap: wrap; }
.sub-table td { vertical-align: top; }
.sub-now { padding: 12px 14px; border-radius: 12px; background: var(--hover); margin-bottom: 12px; display: grid; gap: 4px; }
.sub-now .pill { margin-left: 6px; }
.sub-box { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.sub-box h4 { margin: 0 0 10px; }
.sub-pay { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 10px; }
.sub-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.sub-row .input { width: auto; flex: 1 1 200px; }
.sub-row .input.narrow { flex: 0 0 110px; }
.sub-log { display: grid; gap: 6px; font-size: 13.5px; max-height: 220px; overflow: auto; }
#modalBox:has(.sub-box) { max-width: 760px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-lock { flex-direction: column; align-items: flex-start; }
  .plan-banner { flex-wrap: wrap; }
}

/* ---------- Editing the plans ---------- */
.sub-tabs { margin: 0 0 16px; }
.pe-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pe-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; background: var(--panel); align-content: start; }
.pe-card.off { background: var(--panel-2); border-style: dashed; }
.pe-card label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pe-top { display: flex; gap: 10px; align-items: flex-end; }
.pe-name { flex: 1; }
.pe-used { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; padding-bottom: 11px; }
.pe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pe-hint { font-size: 12px; font-weight: 500; color: var(--ok); min-height: 15px; }
.pe-check { display: inline-flex !important; align-items: center; gap: 7px; font-weight: 500 !important; font-size: 13px; color: var(--text-2); }
.pe-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.pe-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pe-foot .btn { margin-left: auto; }
.pe-actions { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .pe-grid { grid-template-columns: 1fr 1fr; } .pe-list { grid-template-columns: 1fr; } }

/* ---------- Profile photos ---------- */
.has-photo { padding: 0 !important; overflow: hidden; background: var(--hover) !important; }
.has-photo > img, .chip-photo img, .badge-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; display: grid; place-items: center; background: var(--tint, var(--hover)); color: var(--primary-ink, var(--primary)); font-weight: 800; font-size: 24px; }
.avatar-lg.sq { border-radius: 18px; }
.avatar-sm { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--tint, var(--hover)); color: var(--primary-ink, var(--primary)); font-weight: 700; font-size: 11.500px; }
.team-who { display: inline-flex; align-items: center; gap: 10px; }
.acct-photo, .biz-photo-row { display: flex; gap: 16px; align-items: center; }
.biz-photo-row { margin: 4px 0 20px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.biz-photo-row.hidden { display: none; }
.badge-photo { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-block; flex: 0 0 24px; }
#userBadge { display: inline-flex; align-items: center; gap: 8px; }
#userBadge:has(.badge-photo) { padding-left: 5px; }
.chip-photo { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: inline-block; flex: 0 0 28px; vertical-align: middle; margin-right: 8px; }
.photo-btns { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
#appBar .ab-avatar.has-photo { border-width: 2px; }
