/* Orbitrix Booking & Scheduling demo */
:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --surface-3: #eff3f0;
  --ink: #0d1b16;
  --ink-2: #33423c;
  --muted: #6b7a74;
  --line: #e2e8e4;
  --line-2: #edf1ee;
  --brand: #0f7a5c;
  --brand-2: #14a37a;
  --brand-soft: #e5f4ed;
  --brand-ink: #0a5a44;
  --obx: #4338ca;
  --obx-2: #6366f1;
  --obx-soft: #eef0ff;
  --obx-dark: #0b0d1f;
  --danger: #d23f3f;
  --danger-soft: #fdeded;
  --warn: #b87a12;
  --warn-soft: #fbf3e1;
  --info: #2f66d0;
  --info-soft: #eaf1fd;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(13, 27, 22, .06), 0 1px 1px rgba(13, 27, 22, .03);
  --sh-2: 0 10px 30px -12px rgba(13, 27, 22, .22), 0 2px 6px rgba(13, 27, 22, .05);
  --sh-3: 0 30px 70px -24px rgba(13, 27, 22, .45), 0 6px 18px rgba(13, 27, 22, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.has-modal { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 650; font-size: 14.5px;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 122, 92, .65), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { background: #0c6b50; }
.btn-obx { background: linear-gradient(135deg, var(--obx-2), var(--obx)); color: #fff; box-shadow: 0 10px 24px -10px rgba(67, 56, 202, .7); }
.btn-obx:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: #d8efe4; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger.armed { background: var(--danger); color: #fff; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s, transform .15s; white-space: nowrap;
}
.chip:active { transform: scale(.96); }
.chip:hover { box-shadow: inset 0 0 0 1px #cdd6d1; }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand)); }
.chip.is-on .dot { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill .ico { width: 13px; height: 13px; }
.pill.st-upcoming { background: var(--info-soft); color: var(--info); }
.pill.st-inprogress { background: var(--warn-soft); color: var(--warn); }
.pill.st-completed { background: var(--brand-soft); color: var(--brand-ink); }
.pill.st-cancelled, .pill.st-noshow { background: var(--danger-soft); color: var(--danger); }
.pill.t-confirm { background: var(--brand-soft); color: var(--brand-ink); }
.pill.t-24h { background: var(--info-soft); color: var(--info); }
.pill.t-2h { background: #f1ecff; color: #6a4bd1; }
.pill.t-thanks { background: #fdf0f5; color: #c2407a; }
.pill.t-cancel { background: var(--danger-soft); color: var(--danger); }
.pill.t-reply { background: var(--surface-3); color: var(--ink-2); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c, var(--brand)) 16%, white); color: color-mix(in srgb, var(--c, var(--brand)) 80%, black);
  font-weight: 750; font-size: 13px; letter-spacing: .02em;
}
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }

/* ------------------------------------------------ Orbitrix bar */
.obx-bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(11, 13, 31, .94); color: #e7e9ff;
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.embed .obx-bar { display: none; }
.obx-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.obx-mark { width: 30px; height: 30px; flex: none; }
.obx-brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.obx-brand b { font-size: 15px; letter-spacing: -.01em; color: #fff; }
.obx-brand small { font-size: 11.5px; color: #a3a8d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obx-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.obx-btn, .obx-cta {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px;
  font-size: 13px; font-weight: 650; transition: background .2s, transform .15s, filter .2s;
}
.obx-btn { color: #d9dcff; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.obx-btn:hover { background: rgba(255,255,255,.13); }
.obx-btn.spin .ico { animation: spin .6s var(--ease); }
.obx-cta { color: #fff; background: linear-gradient(135deg, #7c7ff5, var(--obx)); box-shadow: 0 6px 18px -6px rgba(99, 102, 241, .8); }
.obx-cta:hover { filter: brightness(1.08); }
.obx-btn:active, .obx-cta:active { transform: scale(.96); }
.obx-cta .short { display: none; }
.obx-btn .ico, .obx-cta .ico { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .obx-brand small { display: none; }
  .obx-btn span { display: none; }
  .obx-btn { width: 36px; padding: 0; justify-content: center; }
  .obx-cta .long { display: none; }
  .obx-cta .short { display: inline; }
}

/* ------------------------------------------------ toasts */
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; max-width: calc(100vw - 32px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; max-width: 400px;
  background: rgba(13, 27, 22, .94); color: #eef5f1; box-shadow: var(--sh-3); font-size: 14px;
  animation: toastIn .45s var(--spring) both; backdrop-filter: blur(8px);
}
.toast.out { animation: toastOut .3s var(--ease) both; }
.toast b { color: #fff; }
.toast-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(20, 163, 122, .25); color: #5be0b3; flex: none; }
.toast.obx .toast-ico { background: rgba(99,102,241,.25); color: #a5b4fc; }
.toast.warn .toast-ico { background: rgba(232, 163, 40, .22); color: #f5c463; }
.toast-ico .ico { width: 16px; height: 16px; }
.toast-act { margin-left: 4px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-weight: 650; font-size: 13px; white-space: nowrap; }
.toast-act:hover { background: rgba(255,255,255,.2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; } .toast { max-width: none; } }
.page-book .toasts { bottom: 16px; }

/* ------------------------------------------------ modals */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 17, 14, .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease); }
.modal {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface);
  border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 28px; opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .3s var(--ease), transform .4s var(--spring);
}
.modal-wrap.in .modal-backdrop { opacity: 1; }
.modal-wrap.in .modal { opacity: 1; transform: none; }
.modal-wrap.out .modal { transition-duration: .22s; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s; z-index: 2; }
.modal-x:hover { background: var(--surface-3); color: var(--ink); }
.v-drawer { place-items: stretch end; padding: 0; }
.v-drawer .modal { width: min(440px, 100%); height: 100%; max-height: none; border-radius: 0; transform: translateX(40px); }
.v-wide .modal { width: min(720px, 100%); }
@media (max-width: 640px) {
  .modal-wrap { place-items: end stretch; padding: 0; }
  .modal, .v-drawer .modal { width: 100%; height: auto; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(40px); padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); }
  .modal::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
}

.fv { text-align: left; }
.fv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--obx-soft); color: var(--obx); font-weight: 700; font-size: 12.5px; }
.fv-badge .ico { width: 14px; height: 14px; }
.fv-title { margin: 14px 0 6px; font-size: 22px; }
.fv-text { color: var(--ink-2); }
.fv-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.fv-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.fv-list .ico { width: 16px; height: 16px; color: var(--brand); }
.fv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fv-actions .btn { flex: 1 1 auto; }

/* ------------------------------------------------ launcher */
.page-home { background: radial-gradient(1200px 600px at 80% -10%, #e3e6ff 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #def3ea 0%, transparent 55%), var(--bg); min-height: 100vh; }
.home { max-width: 1080px; margin: 0 auto; padding: 56px 16px 40px; }
.home-hero { text-align: center; max-width: 720px; margin: 0 auto 40px; animation: rise .7s var(--ease) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; color: var(--obx); }
.eyebrow .ico { width: 14px; height: 14px; }
.home-hero h1 { font-size: clamp(32px, 6vw, 54px); margin: 18px 0 14px; letter-spacing: -.035em; }
.home-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand) 10%, var(--obx-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); }
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--sh-2); transition: transform .35s var(--spring), box-shadow .3s var(--ease); animation: rise .7s var(--ease) both; overflow: hidden;
}
.home-card:nth-child(2) { animation-delay: .07s; } .home-card:nth-child(3) { animation-delay: .14s; }
.home-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.home-card .hc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.home-card.featured .hc-ico { background: var(--obx-soft); color: var(--obx); }
.home-card .hc-ico .ico { width: 22px; height: 22px; }
.home-card h3 { font-size: 18px; margin-top: 6px; }
.home-card p { color: var(--muted); font-size: 14px; flex: 1; }
.home-card .hc-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); font-size: 14px; }
.home-card.featured .hc-go { color: var(--obx); }
.home-card .hc-go .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.home-card:hover .hc-go .ico { transform: translateX(4px); }
.home-card .tag { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--obx); color: #fff; }
.home-biz { margin: 28px auto 0; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); max-width: 720px; animation: rise .7s .2s var(--ease) both; }
.home-biz p { font-size: 14px; color: var(--ink-2); }
.home-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; animation: rise .7s .26s var(--ease) both; }
.home-copy { text-align: center; margin-top: 36px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .home-cards { grid-template-columns: 1fr; } .home { padding-top: 36px; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.biz-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(140deg, #19b483, #0b6a4f); box-shadow: 0 8px 18px -8px rgba(15, 122, 92, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.biz-logo .ico { width: 22px; height: 22px; }

/* ------------------------------------------------ booking page */
.page-book { background: linear-gradient(180deg, #e9f3ee 0, var(--bg) 340px); min-height: 100vh; }
.embed .page-book, html.embed body.page-book { background: var(--bg); }
.book { max-width: 520px; margin: 0 auto; padding: 0 16px 40px; }
.biz-hero { padding: 22px 0 8px; }
.biz-top { display: flex; gap: 14px; align-items: center; }
.biz-top h1 { font-size: 21px; }
.biz-top .tagline { font-size: 13.5px; color: var(--muted); }
.biz-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.biz-meta span { display: inline-flex; align-items: center; gap: 6px; }
.biz-meta .ico { width: 15px; height: 15px; color: var(--muted); }
.biz-meta .stars { color: #e3a008; }
.biz-meta .stars .ico { color: #e3a008; fill: #e3a008; }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px rgba(20,163,122,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(20,163,122,0); } }

.stepper { display: flex; gap: 6px; margin: 18px 0 16px; }
.stepper .s { flex: 1; display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 650; color: var(--muted); }
.stepper .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.stepper .bar::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.stepper .s.done .bar::after, .stepper .s.on .bar::after { transform: scaleX(1); }
.stepper .s.on { color: var(--ink); }

.book-view { position: relative; }
.enter-fwd { animation: enterFwd .45s var(--ease) both; }
.enter-back { animation: enterBack .45s var(--ease) both; }
@keyframes enterFwd { from { opacity: 0; transform: translateX(26px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-26px); } }

.step-head { margin-bottom: 14px; }
.step-head h2 { font-size: 22px; }
.step-head p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; }
.scroll-x::-webkit-scrollbar { display: none; }

.svc-list { display: grid; gap: 10px; margin-top: 14px; }
.svc-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: var(--r); background: var(--surface); text-align: left;
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); transition: transform .25s var(--spring), box-shadow .25s var(--ease);
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.svc-card:active { transform: scale(.98); }
.svc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.svc-ico.cat-barber { background: var(--info-soft); color: var(--info); }
.svc-ico.cat-nails { background: #fdeef4; color: #c8457f; }
.svc-ico.cat-spa { background: var(--warn-soft); color: var(--warn); }
.svc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-name { font-weight: 700; font-size: 15px; }
.svc-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-price { font-weight: 750; font-size: 15px; }
.svc-card .ico.go { color: var(--muted); width: 16px; height: 16px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; color: var(--muted); margin-bottom: 12px; padding: 4px 0; transition: color .2s; }
.back-link:hover { color: var(--ink); }
.back-link .ico { width: 16px; height: 16px; }
.picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.picked .svc-ico { width: 38px; height: 38px; }
.picked .p-main { flex: 1; min-width: 0; }
.picked .p-main b { display: block; font-size: 14.5px; }
.picked .p-main span { font-size: 13px; color: var(--muted); }
.link-btn { font-weight: 700; font-size: 13.5px; color: var(--brand); padding: 6px 4px; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label .count { text-transform: none; letter-spacing: 0; font-weight: 650; color: var(--brand); font-size: 13px; }

.staff-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 82px; padding: 12px 8px 10px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; transition: box-shadow .2s, background .2s, transform .2s var(--spring); }
.staff-opt:active { transform: scale(.96); }
.staff-opt b { font-size: 13px; white-space: nowrap; }
.staff-opt small { font-size: 11px; color: var(--muted); margin-top: -4px; white-space: nowrap; }
.staff-opt.is-on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.staff-opt .avatar.any { background: var(--ink); color: #fff; }
.staff-opt .avatar.any .ico { width: 16px; height: 16px; }

.day-opt { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 10px 6px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; transition: box-shadow .2s, background .2s, color .2s, transform .2s var(--spring); }
.day-opt:active { transform: scale(.95); }
.day-opt .dow { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day-opt .dnum { font-size: 20px; font-weight: 750; line-height: 1.25; }
.day-opt .dav { font-size: 11px; font-weight: 650; color: var(--brand); white-space: nowrap; }
.day-opt.full { opacity: .5; }
.day-opt.full .dav { color: var(--muted); }
.day-opt.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.day-opt.is-on .dow, .day-opt.is-on .dav { color: rgba(255,255,255,.75); }

.slot-group { margin-bottom: 14px; }
.slot-group h4 { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.slot-group h4 .ico { width: 15px; height: 15px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  height: 46px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14.5px;
  transition: transform .2s var(--spring), box-shadow .2s, background .2s, color .2s, opacity .35s, filter .35s; animation: pop .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 14ms);
}
.slot:hover { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand-ink); }
.slot:active { transform: scale(.94); }
.slot.is-on { background: var(--brand); color: #fff; box-shadow: none; }
.slot.vanish { opacity: 0; transform: scale(.7); filter: blur(2px); pointer-events: none; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.empty { padding: 26px 18px; text-align: center; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.assure { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.assure .ico { color: var(--brand); }

.summary { padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); display: grid; gap: 12px; }
.sum-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.sum-row .ico { width: 17px; height: 17px; color: var(--muted); }
.sum-row b { font-weight: 700; }
.sum-row .r { margin-left: auto; font-weight: 750; }
.sum-sep { height: 1px; background: var(--line-2); }

.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input {
  height: 50px; width: 100%; padding: 0 14px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; transition: box-shadow .2s; outline: none;
}
.input:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.field.err .input { box-shadow: inset 0 0 0 2px var(--danger); animation: shake .35s; }
.field .msg { font-size: 12.5px; color: var(--danger); font-weight: 600; min-height: 0; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.fill-demo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--obx); padding: 6px 10px; border-radius: 8px; background: var(--obx-soft); }
.fill-demo .ico { width: 14px; height: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: box-shadow .2s, background .2s; }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c7d1cb; flex: none; transition: box-shadow .25s var(--spring); }
.pay-opt.is-on { box-shadow: inset 0 0 0 2px var(--brand); background: #f6fbf8; }
.pay-opt.is-on .radio { box-shadow: inset 0 0 0 6px var(--brand); }
.pay-opt .pm { flex: 1; min-width: 0; }
.pay-opt .pm b { display: block; font-size: 14.5px; }
.pay-opt .pm span { font-size: 12.5px; color: var(--muted); }
.pay-logo { height: 26px; min-width: 46px; padding: 0 8px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.pay-logo.gcash { background: #2a6df4; }
.pay-logo.maya { background: #111; color: #4ff0a0; }
.pay-logo.cash { background: var(--surface-3); color: var(--ink-2); }

.conflict { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--warn-soft); color: #6b4706; margin-bottom: 14px; animation: shake .4s, rise .4s var(--ease); }
.conflict > .ico { color: var(--warn); margin-top: 2px; }
.conflict b { display: block; color: #4d3304; }
.conflict .alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.conflict .alts .chip { height: 34px; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }

.done { text-align: center; padding-top: 8px; }
.check-anim { width: 84px; height: 84px; margin: 6px auto 16px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 16px 40px -14px rgba(15, 122, 92, .8); animation: popIn .6s var(--spring) both; position: relative; }
.check-anim::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--brand-2); opacity: 0; animation: ring 1.2s .3s var(--ease) both; }
.check-anim svg { width: 42px; height: 42px; }
.check-anim path { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .35s var(--ease) forwards; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { opacity: .8; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }
.done h2 { font-size: 26px; }
.done .sub { color: var(--muted); margin-top: 4px; }
.speed { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--obx-soft); color: var(--obx); font-weight: 700; font-size: 13px; animation: rise .5s .6s var(--ease) both; }
.speed .ico { width: 14px; height: 14px; }
.done .summary { text-align: left; margin-top: 20px; animation: rise .5s .45s var(--ease) both; }
.sms-card { margin-top: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); text-align: left; animation: rise .5s .6s var(--ease) both; }
.sms-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
.sms-head .ico { width: 15px; height: 15px; color: var(--brand); }
.bubble { white-space: pre-line; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-3); font-size: 14px; color: var(--ink); line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; }
.bubble.in { background: var(--brand); color: #fff; border-radius: 18px 18px 6px 18px; margin-left: auto; width: fit-content; }
.page-book { overflow-x: clip; }
.done-actions .btn { min-width: 0; padding: 0 10px; }
.done-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; animation: rise .5s .7s var(--ease) both; }
.obx-card { margin-top: 26px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(140deg, #14163a, #0b0d1f); color: #d9dcff; text-align: left; display: flex; gap: 14px; align-items: center; animation: rise .5s .8s var(--ease) both; box-shadow: var(--sh-2); }
.obx-card .obx-mark { width: 38px; height: 38px; }
.obx-card b { color: #fff; display: block; font-size: 15px; }
.obx-card p { font-size: 13px; }
.obx-card .btn { margin-left: auto; flex: none; }
@media (max-width: 420px) { .obx-card { flex-wrap: wrap; } .obx-card .btn { width: 100%; } }
.book-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.book-foot .obx-mark { width: 16px; height: 16px; }
.book-foot a { font-weight: 700; color: var(--obx); }

.paysheet { text-align: center; }
.paysheet .pay-logo { display: inline-grid; height: 34px; font-size: 14px; padding: 0 14px; margin-bottom: 12px; }
.paysheet h3 { font-size: 15px; color: var(--muted); font-weight: 650; }
.paysheet .amt { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0; }
.paysheet .to { font-size: 14px; color: var(--ink-2); }
.paysheet .demo-note { display: inline-flex; gap: 6px; align-items: center; margin: 14px 0 18px; font-size: 12.5px; font-weight: 650; color: var(--warn); background: var(--warn-soft); padding: 6px 10px; border-radius: 8px; }
.paysheet .demo-note .ico { width: 14px; height: 14px; }
.paysheet .paid { color: var(--brand); font-weight: 750; display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; animation: pop .3s var(--spring); }

/* ------------------------------------------------ owner dashboard */
.page-owner { min-height: 100vh; }
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 57px); }
.embed .app { min-height: 100vh; }
.side { position: sticky; top: 57px; height: calc(100vh - 57px); display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.embed .side { top: 0; height: 100vh; }
.side-biz { display: flex; gap: 11px; align-items: center; padding: 4px 6px 16px; }
.side-biz .biz-logo { width: 38px; height: 38px; border-radius: 12px; }
.side-biz b { display: block; font-size: 14.5px; line-height: 1.2; }
.side-biz span { font-size: 12px; color: var(--muted); }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; font-weight: 650; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; text-align: left; }
.nav-item:hover { background: var(--surface-3); }
.nav-item.is-on { background: var(--brand-soft); color: var(--brand-ink); }
.nav-item.is-on .ico { color: var(--brand); }
.nav-item .ico { color: var(--muted); }
.nav-item .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; animation: popIn .4s var(--spring); }
.badge[hidden] { display: none !important; }
.nav-item .lk { margin-left: auto; width: 14px; height: 14px; color: #b3bdb8; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9aa7a1; font-weight: 700; padding: 16px 12px 6px; }
.side-foot { margin-top: auto; padding: 14px; border-radius: var(--r); background: linear-gradient(140deg, #14163a, #0b0d1f); color: #c9ccf5; font-size: 12.5px; }
.side-foot b { color: #fff; display: block; font-size: 13.5px; margin: 8px 0 2px; }
.side-foot .obx-mark { width: 26px; height: 26px; }
.side-foot .btn { margin-top: 10px; width: 100%; height: 36px; font-size: 13px; }

.main { min-width: 0; padding: 22px 24px 40px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.topbar h1 { font-size: 24px; }
.topbar .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.clock-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.clock-chip .ico { width: 15px; height: 15px; color: var(--muted); }
.clock-chip.ahead { background: var(--obx-soft); box-shadow: inset 0 0 0 1px #d8dcff; color: var(--obx); }
.clock-chip.ahead .ico { color: var(--obx); }
.clock-chip .back { font-weight: 750; text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.clock-chip.flash { animation: flash 1s var(--ease); }
@keyframes flash { 30% { box-shadow: inset 0 0 0 2px var(--obx-2), 0 0 0 6px rgba(99,102,241,.15); } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); animation: rise .5s var(--ease) both; min-width: 0; }
.kpi:nth-child(2) { animation-delay: .05s; } .kpi:nth-child(3) { animation-delay: .1s; } .kpi:nth-child(4) { animation-delay: .15s; }
.kpi .k-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.kpi .k-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.kpi .k-ico .ico { width: 15px; height: 15px; }
.kpi:nth-child(2) .k-ico { background: var(--warn-soft); color: var(--warn); }
.kpi:nth-child(3) .k-ico { background: var(--obx-soft); color: var(--obx); }
.kpi:nth-child(4) .k-ico { background: var(--info-soft); color: var(--info); }
.kpi .k-val { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; line-height: 1.1; }
.kpi .k-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.04); box-shadow: var(--sh-2), inset 0 0 0 2px var(--brand-2); } }

.tab { display: none; }
.tab.is-on { display: block; animation: rise .4s var(--ease) both; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tb-left, .tb-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, transform .15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.date-label { font-weight: 750; font-size: 15px; margin: 0 6px; white-space: nowrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); position: relative; }
.seg button { position: relative; z-index: 1; height: 30px; padding: 0 14px; border-radius: 8px; font-weight: 650; font-size: 13.5px; color: var(--muted); transition: color .25s; }
.seg button.is-on { color: var(--ink); }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 8px; background: var(--surface); box-shadow: var(--sh-1); transition: left .35s var(--spring), width .35s var(--spring); }
.staff-filter { margin-bottom: 12px; }
.staff-filter .scroll-x { margin: 0; padding: 2px 0 4px; }

.cal-card { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); overflow: hidden; }
.cal-scroll { overflow: auto; max-height: calc(100vh - 330px); min-height: 420px; position: relative; overscroll-behavior: contain; }
.embed .cal-scroll { max-height: calc(100vh - 280px); }
.cal { --slot: 34px; --gut: 58px; display: grid; grid-template-columns: var(--gut) repeat(var(--cols), minmax(var(--colmin, 150px), 1fr)); min-width: min-content; }
.cal-h { position: sticky; top: 0; z-index: 6; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 10px 10px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.cal-h.corner { position: sticky; left: 0; z-index: 8; }
.cal-h .h-txt { min-width: 0; }
.cal-h b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-h small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cal-h.today b { color: var(--brand); }
.cal-h .dnum { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 14px; flex: none; background: var(--surface-3); }
.cal-h.today .dnum { background: var(--brand); color: #fff; }
.cal-gut { position: sticky; left: 0; z-index: 5; background: var(--surface); border-right: 1px solid var(--line-2); }
.cal-gut span { position: absolute; right: 8px; font-size: 11.5px; color: var(--muted); transform: translateY(-50%); white-space: nowrap; font-weight: 600; }
.cal-col { position: relative; border-right: 1px solid var(--line-2); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot) * 2 - 1px), var(--line-2) calc(var(--slot) * 2 - 1px), var(--line-2) calc(var(--slot) * 2)), repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot) - 1px), #f6f8f7 calc(var(--slot) - 1px), #f6f8f7 var(--slot)); cursor: copy; }
.cal-col.today { background-color: #fbfdfc; }
.cal-col .past { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(-45deg, rgba(13,27,22,.018) 0 6px, transparent 6px 12px); pointer-events: none; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 4; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.bk {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 5px 8px 5px 10px; border-radius: 9px; overflow: hidden; text-align: left;
  background: color-mix(in srgb, var(--c) 13%, white); color: color-mix(in srgb, var(--c) 72%, black); font-size: 12px; line-height: 1.3;
  box-shadow: inset 3px 0 0 var(--c), 0 1px 2px rgba(0,0,0,.04); transition: transform .2s var(--spring), box-shadow .2s, filter .2s; cursor: pointer; min-width: 0;
}
.bk:hover { transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--c), var(--sh-2); z-index: 3; }
.bk .bk-time { font-weight: 650; opacity: .85; font-size: 11.5px; white-space: nowrap; }
.bk .bk-name { font-weight: 750; font-size: 12.5px; color: color-mix(in srgb, var(--c) 45%, black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk .bk-svc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.bk .bk-flags { position: absolute; right: 6px; top: 5px; display: flex; gap: 3px; }
.bk .bk-flags i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.8); color: var(--c); font-style: normal; font-size: 10px; font-weight: 800; }
.bk .bk-flags .ico { width: 10px; height: 10px; stroke-width: 3; }
.bk.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.bk.short .bk-svc, .bk.short .bk-flags { display: none; }
.bk.st-completed, .bk.st-inprogress.past { filter: saturate(.55); opacity: .78; }
.bk.st-cancelled { opacity: .45; text-decoration: line-through; background: repeating-linear-gradient(-45deg, #fff 0 5px, #f5f5f5 5px 10px); box-shadow: inset 3px 0 0 #bbb; color: #777; }
.bk.st-noshow { opacity: .6; box-shadow: inset 3px 0 0 var(--danger); }
.bk.is-new { animation: bkIn .8s var(--spring) both, glow 2.4s .6s ease-out 2; z-index: 4; }
@keyframes bkIn { from { opacity: 0; transform: scale(.6) translateY(-10px); } }
@keyframes glow { 0% { box-shadow: inset 3px 0 0 var(--c), 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 70% { box-shadow: inset 3px 0 0 var(--c), 0 0 0 10px transparent; } 100% { box-shadow: inset 3px 0 0 var(--c), 0 0 0 0 transparent; } }
.week .bk { padding: 4px 5px 4px 7px; font-size: 11px; }
.week .bk .bk-svc, .week .bk .bk-flags { display: none; }
.week .bk .bk-name { font-size: 11px; }
.week .bk .bk-time { font-size: 10.5px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-style: normal; font-size: 10px; font-weight: 800; }
.cal-legend i .ico { width: 10px; height: 10px; stroke-width: 3; }

/* drawer */
.drw-head { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.drw-head h3 { font-size: 20px; }
.drw-head a { font-size: 14px; color: var(--muted); }
.drw-status { margin: 14px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 10px 12px; margin: 18px 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; }
.drw-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); margin: 20px 0 10px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.tl li::before { content: ''; position: absolute; left: 12px; top: 24px; bottom: 0; width: 2px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
.tl .tl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.tl .tl-dot .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.tl li.sent .tl-dot, .tl li.received .tl-dot { background: var(--brand-soft); color: var(--brand); }
.tl li.skipped { opacity: .55; }
.tl b { font-size: 13.5px; display: block; }
.tl span { font-size: 12.5px; color: var(--muted); }
.drw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }

/* reminders */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rule { padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rule .r-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rule .when { font-weight: 750; font-size: 14px; }
.rule .what { font-size: 12.5px; color: var(--muted); }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--brand); position: relative; flex: none; }
.switch::after { content: ''; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.rem-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.rem-list { display: grid; gap: 10px; }
.rem { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); display: grid; gap: 10px; animation: rise .4s var(--ease) both; }
.rem.is-new { animation: remIn .7s var(--spring) both; box-shadow: var(--sh-2), inset 0 0 0 2px var(--brand-2); }
@keyframes remIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.rem-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rem-who { flex: 1; min-width: 0; }
.rem-who b { display: block; font-size: 14px; }
.rem-who span { font-size: 12.5px; color: var(--muted); }
.rem .bubble { max-width: 560px; }
.rem.in .bubble { margin-left: 0; }
.rem-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.rem-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rem-meta .ico { width: 14px; height: 14px; }
.rem-meta .ok { color: var(--brand); font-weight: 650; }
.rem-meta .sch { color: var(--obx); font-weight: 650; }
.rem-meta .skip { color: var(--danger); font-weight: 650; }
.more-wrap { text-align: center; margin-top: 14px; }

.bottom-nav { display: none; }

/* rush simulation */
.rush h3 { font-size: 21px; padding-right: 36px; }
.rush > p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.rush-slot { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-3); font-weight: 700; font-size: 13.5px; }
.rush-slot .ico { width: 15px; height: 15px; color: var(--muted); }
.rush-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 14px; }
.rush-card { padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; transition: box-shadow .4s, background .4s; min-width: 0; }
.rush-card .rc-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.rush-card .rc-top div { min-width: 0; }
.rush-card b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rush-card small { color: var(--muted); font-size: 12px; }
.rc-state { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; min-height: 24px; color: var(--muted); }
.rc-state .dotty { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c4cdc8; border-top-color: var(--ink-2); animation: spin .7s linear infinite; }
.rush-card.win { background: #f2fbf7; box-shadow: inset 0 0 0 2px var(--brand-2); }
.rush-card.win .rc-state { color: var(--brand); }
.rush-card.lose { background: #fffaf0; box-shadow: inset 0 0 0 2px #edc77b; }
.rush-card.lose .rc-state { color: var(--warn); }
.rc-alts { font-size: 12.5px; color: var(--ink-2); }
.rc-alts .chip { height: 28px; padding: 0 10px; font-size: 12px; margin: 6px 6px 0 0; pointer-events: none; }
.rush-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.rush-note.show { opacity: 1; transform: none; }
.rush-note .ico { color: var(--brand); margin-top: 1px; }
@media (max-width: 520px) { .rush-grid { grid-template-columns: 1fr; } }

/* owner responsive */
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 901px) and (max-width: 1240px) {
  .side { width: auto; }
  .app { grid-template-columns: 208px minmax(0, 1fr); }
  .main { padding: 18px 18px 30px; }
  .kpi { padding: 12px 14px; }
  .kpi .k-val { font-size: 22px; margin-top: 6px; }
  .kpi .k-sub { font-size: 11.5px; }
  .kpi .k-top { font-size: 12px; }
  .kpi .k-ico { width: 24px; height: 24px; }
}
.embed .topbar { margin-bottom: 12px; }
.embed .topbar .sub { display: none; }
.embed .kpis { margin-bottom: 12px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .topbar h1 { font-size: 21px; }
  .kpi { padding: 13px; }
  .kpi .k-val { font-size: 23px; }
  .cal-scroll { max-height: 64vh; min-height: 360px; }
  .cal { --colmin: 128px; --gut: 50px; }
  .cal.week { --colmin: 92px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .bottom-nav button, .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11.5px; font-weight: 650; color: var(--muted); border-radius: 10px; position: relative; }
  .bottom-nav .is-on { color: var(--brand); }
  .bottom-nav .ico { width: 21px; height: 21px; }
  .bottom-nav .badge { position: absolute; top: 2px; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10.5px; display: grid; place-items: center; }
  .hide-m { display: none !important; }
}
.show-s { display: none; }
@media (max-width: 560px) {
  .show-s { display: inline; }
  .hide-s { display: none; }
  .topbar { margin-bottom: 12px; gap: 10px; }
  .topbar .sub { display: none; }
  .top-actions { width: 100%; flex-wrap: nowrap; }
  .clock-chip { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
  .clock-chip > span { overflow: hidden; text-overflow: ellipsis; }
  .top-actions .btn { flex: none; }
  .kpis { gap: 8px; margin-bottom: 12px; }
  .kpi { padding: 10px 12px; border-radius: 16px; }
  .kpi .k-top { font-size: 11.5px; gap: 6px; }
  .kpi .k-ico { width: 22px; height: 22px; border-radius: 7px; }
  .kpi .k-ico .ico { width: 12px; height: 12px; }
  .kpi .k-val { font-size: 20px; margin-top: 4px; }
  .kpi .k-sub { font-size: 11px; }
  .toolbar { gap: 8px; }
  .toolbar .tb-left { width: 100%; flex-wrap: nowrap; }
  .toolbar .tb-right { width: 100%; flex-wrap: nowrap; }
  .toolbar .tb-right .btn { flex: 1; min-width: 0; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule { padding: 12px; }
  .date-label { font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .kv { grid-template-columns: 96px 1fr; }
}

.more-list { display: grid; gap: 6px; margin-top: 14px; }
.more-list button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 650; text-align: left; background: var(--surface-2); }
.more-list .lk { margin-left: auto; color: #b3bdb8; width: 15px; height: 15px; }

/* ------------------------------------------------ live split view */
.page-live { background: radial-gradient(1000px 500px at 20% 0%, #e2f3eb 0, transparent 60%), radial-gradient(900px 500px at 100% 0%, #e6e8ff 0, transparent 60%), var(--bg); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.live { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 18px 22px 20px; }
.live-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.live-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; white-space: nowrap; }
.live-label .ico { width: 16px; height: 16px; color: var(--muted); }
.live-label .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulseR 1.6s infinite; }
@keyframes pulseR { 0% { box-shadow: 0 0 0 0 rgba(210,63,63,.5); } 70% { box-shadow: 0 0 0 7px rgba(210,63,63,0); } 100% { box-shadow: 0 0 0 0 rgba(210,63,63,0); } }
.phone { position: relative; height: 100%; max-height: 800px; aspect-ratio: 390 / 820; min-width: 352px; border-radius: 46px; padding: 12px; background: #0d1015; box-shadow: var(--sh-3), inset 0 0 0 2px #2a2f38; animation: rise .6s var(--ease) both; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #0d1015; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 35px; background: var(--bg); display: block; }
.browser { flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: rise .6s .08s var(--ease) both; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #eef1ef; border-bottom: 1px solid var(--line); flex: none; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.browser-bar .dots i:nth-child(2) { background: #ffbd2e; } .browser-bar .dots i:nth-child(3) { background: #28c941; }
.browser-bar .url { flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.browser-bar .url .ico { width: 12px; height: 12px; }
.browser iframe { flex: 1; width: 100%; border: 0; display: block; }
.live-tabs { display: none; }
@media (max-width: 1000px) {
  .page-live { height: auto; min-height: 100vh; overflow: visible; }
  .live { grid-template-columns: 1fr; padding: 12px 16px 20px; }
  .live-tabs { display: flex; margin: 12px 16px 0; }
  .live-tabs.seg { display: flex; }
  .live-tabs button { flex: 1; }
  .live-pane { display: none; }
  .live-pane.is-on { display: flex; }
  .phone { height: calc(100vh - 150px); max-height: 760px; margin: 0 auto; }
  .browser { height: calc(100vh - 150px); flex: none; }
}
@media (max-width: 520px) {
  .live { padding: 10px 10px 16px; }
  .phone { aspect-ratio: auto; width: 100%; border-radius: 30px; padding: 8px; }
  .phone::before { display: none; }
  .phone iframe { border-radius: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
