/* BookMyCalendar dashboard */
:root {
	--bg: #f6f6f8;
	--surface: #ffffff;
	--surface-2: #f9f9fb;
	--ink: #0e1236;
	--ink-2: #4b5563;
	--muted: #6b7280;
	--line: #e7e7ec;
	--line-2: #d9d9e0;
	--accent: #6d3fee;
	--accent-ink: #4a2bd0;
	--accent-soft: #f0ebff;
	--side: #0b0f3a;
	--side-ink: #b7bcc4;
	--good: #0f8a5f;
	--good-soft: #e3f6ee;
	--warn: #b25e00;
	--warn-soft: #fff1dc;
	--bad: #c9302c;
	--bad-soft: #fde9e8;
	--info: #1f6fd6;
	--info-soft: #e5f0fe;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05);
	--shadow-lg: 0 20px 48px -12px rgba(16, 24, 40, .25);
	--hour: 72px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }

/* Boot */
.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); border-color: #c5c5cf; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #26303a; border-color: #26303a; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: #f3b8b5; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(13, 22, 25, .06); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.btn svg, .icon { width: 18px; height: 18px; flex: none; }
.btn-sm svg { width: 16px; height: 16px; }

/* Forms */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field > small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea, select.input {
	width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea, textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-sm { height: 34px !important; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; pointer-events: none; }
.search input { padding-left: 38px !important; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

/* Auth */
body.auth { background: radial-gradient(1200px 600px at 10% -10%, #ece8ff, transparent), var(--bg); }
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 64px 16px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; justify-content: center; margin-bottom: 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card > .muted { margin: 0 0 20px; }
.auth-card .alert { margin-bottom: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; }

/* Layout */
.layout { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.sidebar { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; padding: 4px 8px 20px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font-weight: 500; color: var(--side-ink); transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a svg { width: 19px; height: 19px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b7480; padding: 16px 10px 6px; }
.side-foot { margin-top: auto; padding-top: 16px; }
.plan-card { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 12px; font-size: 12px; }
.plan-card strong { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }
.plan-card a { color: #b8abff; font-weight: 600; display: inline-block; margin-top: 6px; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .biz { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.topbar .search { width: 320px; max-width: 40vw; }
.topbar .search input { height: 38px; background: var(--surface-2); border-radius: 999px; }
.menu-toggle { display: none; }
.content { flex: 1; overflow: auto; }
.page { padding: 28px 32px 96px; max-width: 1360px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; background: var(--accent); flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.soft { background: var(--accent-soft); color: var(--accent-ink); }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 60; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 14px; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.search-results { left: 0; right: auto; width: 100%; max-height: 360px; overflow: auto; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { flex: 1; }
.card-body { padding: 16px 20px; }
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-main { grid-template-columns: 2fr 1fr; }
.kpi { padding: 18px 20px; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; font-weight: 600; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.link { cursor: pointer; }
.list-item.link:hover { background: var(--surface-2); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-chip { width: 48px; text-align: center; flex: none; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 0; }
.date-chip b { display: block; font-size: 17px; line-height: 1.1; }
.date-chip span { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 32px; height: 32px; color: var(--line-2); display: block; margin: 0 auto 8px; }

.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; }
.bar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 999px; background: var(--accent); }
.meter { height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.meter > div { height: 100%; background: var(--accent); border-radius: 999px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.st-booked { background: var(--info-soft); color: var(--info); border-color: transparent; }
.st-arrived { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.st-started { background: #e6f7f5; color: #0b7a6e; border-color: transparent; }
.st-completed { background: var(--good-soft); color: var(--good); border-color: transparent; }
.st-no_show, .st-cancelled { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge-plan { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.link { cursor: pointer; }
.table tr.link:hover td { background: var(--surface-2); }
.table .cell-user { display: flex; align-items: center; gap: 10px; }
.table tfoot td { font-weight: 700; background: var(--surface-2); }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }

/* Tabs & segmented */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 10px 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex-shrink: 0; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Chart */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.card-flex { display: flex; flex-direction: column; }
.card-flex > .card-body { flex: 1; display: flex; flex-direction: column; }
.chart-fill { flex: 1; min-height: 240px; }
.chart-fill svg { position: absolute; inset: 0; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .bar { fill: var(--accent); transition: opacity .1s; }
.chart .bar.dim { opacity: .45; }
.chart .hit { fill: transparent; cursor: default; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; z-index: 5; }
.tip b { display: block; font-size: 13px; }

/* Drawer & modal */
.overlay { position: fixed; inset: 0; background: rgba(13, 22, 25, .4); z-index: 80; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.overlay-modal { z-index: 92; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw; background: var(--surface); z-index: 90; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer-foot { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .btn { flex: 1; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 440px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 16px; z-index: 95; box-shadow: var(--shadow-lg); animation: fade .15s; }
.modal-body { padding: 24px; }
.modal-body h2 { margin-bottom: 8px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 24px; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-weight: 500; box-shadow: var(--shadow-lg); animation: fade .2s; display: flex; align-items: center; gap: 8px; }
.toast.error { background: var(--bad); }

/* Detail blocks */
.detail { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 10px 14px; font-size: 14px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; font-weight: 500; }
.appt-hero { border-radius: 12px; padding: 16px; margin-bottom: 18px; border-left: 4px solid; }
.status-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pills button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.status-pills button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 22px 0 10px; }
.client-pick { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.pick-list { border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; max-height: 240px; overflow: auto; }
.pick-list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; cursor: pointer; }
.pick-list button:last-child { border-bottom: 0; }
.pick-list button:hover { background: var(--surface-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.hours-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .times { display: flex; align-items: center; gap: 8px; }
.hours-row select { height: 36px; width: auto; min-width: 100px; }
.checklist { display: grid; gap: 2px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.checklist label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.checklist label:hover { background: var(--surface-2); }
.checklist .grp { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 8px 4px; }

/* Calendar */
.cal-page { display: flex; flex-direction: column; height: 100%; }
.cal-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cal-toolbar .date-label { font-weight: 700; font-size: 16px; min-width: 190px; }
.cal-toolbar select.input { height: 40px; width: auto; border-radius: 999px; padding: 0 14px; }
.cal-toolbar input[type=date] { height: 40px; border-radius: 999px; width: 150px; }
.cal-scroll { flex: 1; overflow: auto; position: relative; background: var(--surface); }
.cal-grid { display: grid; min-width: 100%; position: relative; }
.cal-head { position: sticky; top: 0; z-index: 20; display: grid; background: var(--surface); border-bottom: 1px solid var(--line); }
.cal-head .corner { position: sticky; left: 0; background: var(--surface); z-index: 2; }
.cal-colhead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-left: 1px solid var(--line); min-width: 0; }
.cal-colhead .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-colhead .s { font-size: 12px; color: var(--muted); }
.cal-colhead.today .n { color: var(--accent-ink); }
.cal-body { display: grid; position: relative; }
.cal-times { position: sticky; left: 0; z-index: 10; background: var(--surface); border-right: 1px solid var(--line); }
.cal-times div { height: var(--hour); font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.cal-times div:first-child { visibility: hidden; }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to bottom, #f1f1f4 1px, transparent 1px); background-size: 100% var(--hour), 100% calc(var(--hour) / 2); cursor: pointer; }
.cal-col .off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f4f4f7 0 6px, #ececf1 6px 7px); pointer-events: none; }
.cal-col .hover-slot { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 600; padding: 2px 6px; pointer-events: none; display: none; }
.cal-col:hover .hover-slot { display: block; }
.appt { position: absolute; border-radius: 8px; padding: 4px 8px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; border: 1px solid rgba(13, 22, 25, .08); border-left: 4px solid rgba(13, 22, 25, .25); color: var(--ink); z-index: 2; transition: box-shadow .15s; user-select: none; }
.appt:hover { box-shadow: 0 4px 14px rgba(16, 24, 40, .18); z-index: 4; }
.appt .t { font-weight: 600; font-size: 11px; opacity: .8; font-variant-numeric: tabular-nums; }
.appt .c { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt .sv { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.appt { container-type: inline-size; }
.appt-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.appt-top > .t, .appt-top > .c { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-pills { display: flex; gap: 3px; flex: none; margin-left: auto; }
.appt .pill { display: inline-flex; align-items: center; gap: 3px; height: 16px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.appt .pill svg { width: 10px; height: 10px; }
.appt .pill-paid { background: var(--good); color: #fff; }
@container (max-width: 150px) { .appt .pill-paid { display: none; } }
@container (max-width: 110px) { .appt-pills { display: none; } }
.appt.st-cancelled, .appt.st-no_show { opacity: .55; text-decoration: line-through; }
.appt.st-completed { filter: saturate(.7); }
.appt.dragging { opacity: .85; box-shadow: var(--shadow-lg); z-index: 30; cursor: grabbing; }
.block { position: absolute; left: 2px; right: 2px; border-radius: 8px; background: repeating-linear-gradient(135deg, #e9e9ee 0 8px, #dfdfe6 8px 9px); color: var(--ink-2); font-size: 12px; padding: 4px 8px; font-weight: 600; z-index: 1; cursor: pointer; overflow: hidden; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: #e5484d; z-index: 8; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; display: none; }
.cal-times + .cal-col .now-line::before { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }

/* Catalogue */
.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.cat-nav { position: sticky; top: 0; }
.cat-nav button { display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; text-align: left; }
.cat-nav button:hover { background: rgba(13,22,25,.05); }
.cat-nav button.active { background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); font-weight: 600; }
.cat-nav .count { margin-left: auto; color: var(--muted); font-size: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; border: 1px solid rgba(0,0,0,.08); }
.svc-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.svc-row:last-child { border-bottom: 0; }
.svc-row:hover { background: var(--surface-2); }
.svc-row .bar { width: 4px; align-self: stretch; border-radius: 4px; }
.svc-row .grow { flex: 1; min-width: 0; }
.svc-row .name { font-weight: 600; }
.svc-row.inactive { opacity: .55; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.member { padding: 20px; cursor: pointer; transition: box-shadow .15s; }
.member:hover { box-shadow: 0 6px 20px rgba(16,24,40,.08); }
.member .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.shift-table td, .shift-table th { text-align: center; }
.shift-table td:first-child, .shift-table th:first-child { text-align: left; }
.shift { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.shift.off { background: transparent; color: var(--muted); font-weight: 500; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 24px; position: relative; display: flex; flex-direction: column; }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .price { font-size: 32px; font-weight: 700; margin: 12px 0 2px; letter-spacing: -.02em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--good); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.plan .ribbon { position: absolute; top: 16px; right: 16px; }

.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.heat div { border-radius: 8px; padding: 10px 6px; text-align: center; font-size: 12px; }

/* Responsive */
@media (max-width: 1100px) {
	.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.cols-main, .cols-3 { grid-template-columns: 1fr; }
	.plans { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
	.layout.nav-open .sidebar { transform: none; }
	.layout.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 65; }
	.menu-toggle { display: inline-flex; }
	.topbar { padding: 0 16px; }
	.topbar .search { display: none; }
	.page { padding: 20px 16px 40px; }
	.cat-layout { grid-template-columns: 1fr; }
	.cat-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
	.cat-nav button { width: auto; white-space: nowrap; }
	.cols-2, .grid-2, .grid-3 { grid-template-columns: 1fr; }
	.hide-sm { display: none !important; }
	.cal-toolbar .date-label { min-width: 0; width: 100%; order: -1; }
}
@media (max-width: 520px) {
	.cols-4 { grid-template-columns: 1fr 1fr; }
	.kpi .value { font-size: 21px; }
	.drawer { width: 100vw; }
}

/* Booking page images (settings) */
.biz-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; display: block; border: 1px solid var(--line); }
.cover-drop, .logo-drop { position: relative; border: 2px dashed var(--line-2); background: var(--surface-2) center / cover no-repeat; cursor: pointer; display: grid; place-items: center; text-align: center; color: var(--muted); transition: border-color .15s, background-color .15s; overflow: hidden; }
.cover-drop { aspect-ratio: 16 / 5; border-radius: 12px; padding: 12px; }
.cover-drop b { display: block; color: var(--ink); margin-top: 6px; }
.cover-drop small { display: block; font-size: 12px; margin-top: 2px; }
.cover-drop svg { width: 26px; height: 26px; }
.logo-drop { width: 96px; height: 96px; border-radius: 20px; font-weight: 700; font-size: 26px; flex: none; }
.cover-drop.has-img, .logo-drop.has-img { border-style: solid; border-color: var(--line); }
.cover-drop:hover, .logo-drop:hover, .dragover { border-color: var(--accent) !important; background-color: var(--accent-soft); }
.uploading { pointer-events: none; }
.uploading::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .7); }
.uploading .spinner { position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -14px; z-index: 1; }

/* Feature request button */
.fr-btn { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 8px 24px rgba(16, 24, 40, .25); transition: transform .15s, background .15s; }
.fr-btn:hover { background: #26303a; transform: translateY(-1px); }
.fr-btn svg { width: 18px; height: 18px; color: #ffd66b; }
@media (max-width: 860px) {
	.fr-btn { width: 48px; height: 48px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
	.fr-btn span { display: none; }
}

/* Leave */
.lv-holiday { background: var(--info-soft); color: var(--info); border-color: transparent; }
.lv-sick { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.lv-personal { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.lv-training { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.lv-other { background: var(--surface-2); color: var(--ink-2); }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; }
.card.attention { border-color: #f3b8b5; }
.card.attention > .card-head { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius) var(--radius) 0 0; align-items: flex-start; }
.card.attention > .card-head h3 { color: var(--bad); }
.card.attention > .card-head .muted { color: #9b3a36; }
.card.attention .list-item { flex-wrap: wrap; }
.status-pills .pill { display: inline-block; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.status-pills .pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.leave-block { position: absolute; left: 2px; right: 2px; border-radius: 8px; background: repeating-linear-gradient(135deg, #fdecea 0 8px, #fadcd9 8px 9px); border: 1px dashed #efaaa6; color: var(--bad); font-size: 12px; padding: 6px 8px; z-index: 1; cursor: pointer; overflow: hidden; }
.leave-block b { display: block; }
.leave-block span { display: block; color: #9b3a36; font-size: 11px; }
.appt.clash { box-shadow: 0 0 0 2px var(--bad); }
.leave-chip { display: inline-block; background: var(--bad-soft); color: var(--bad); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
a.alert { text-decoration: none; }
a.alert svg { width: 16px; height: 16px; }

/* Radio choice cards */
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.choice b { display: block; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Profile photos */
.avatar { overflow: hidden; }
.avatar.has-photo { background: var(--surface-2); padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 88px; height: 88px; font-size: 28px; }
.photo-edit { display: flex; align-items: center; gap: 18px; }
.photo-edit small { display: block; margin-top: 8px; font-size: 12px; max-width: 260px; }
.photo-drop { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.photo-drop:hover .avatar { filter: brightness(.9); }
.photo-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 3px solid var(--surface); }
.photo-cam svg { width: 14px; height: 14px; }
#stPhoto.uploading, #myPhoto.uploading { opacity: .5; pointer-events: none; }

/* BookMyCalendar logo */
.sidebar .brand { padding: 6px 8px 22px; }
.sidebar .brand img { display: block; height: 34px; width: auto; max-width: 100%; }
.auth-brand img { display: block; height: 48px; width: auto; margin: 0 auto; }

/* Move confirmation */
.move-sum { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.move-sum > div { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.move-sum > div:last-child { border-color: var(--accent); background: var(--accent-soft); }
.move-sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
.move-sum .changed { font-weight: 700; color: var(--accent-ink); }
.move-arrow { color: var(--muted); display: grid; place-items: center; }
@media (max-width: 480px) { .move-sum { grid-template-columns: 1fr; } .move-arrow { transform: rotate(90deg); } }

/* Integrations */
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 8px; }
.integ { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.integ h3 { margin: 6px 0 0; }
.integ p { margin: 0; }
.integ .btn { margin-top: auto; }
.integ .integ-note a { color: var(--accent-ink); font-weight: 600; }
.integ-top { display: flex; align-items: flex-start; justify-content: space-between; }
.integ-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.integ-icon svg { width: 22px; height: 22px; }
.integ-soon { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tone-blue { background: #e8f0fe; color: #1a56db; }
.tone-green { background: #e7f6ec; color: #16803c; }
.tone-sky { background: #e6f4fb; color: #0369a1; }
.tone-red { background: #fdecec; color: #c0262d; }
.tone-teal { background: #e6f7f5; color: #0b7a6e; }

/* Email settings rows and "email the client" checkboxes */
.switch-row { align-items: center; justify-content: space-between; }
.switch-row:has(input:checked) { border-color: var(--line-2); box-shadow: none; background: none; }
.switch-row .switch input { margin: 0; }
.notify-check { align-items: flex-start; line-height: 1.45; }
.notify-check input { margin-top: 2px; flex: none; }
.notify-check > span { overflow-wrap: anywhere; }

/* A switch row with its options inside the same box */
.choice-group { border: 1px solid var(--line-2); border-radius: 12px; }
.choice-group > .choice { border: 0; box-shadow: none; }
.choice-group .rem-when { margin: 0 16px 16px; padding-top: 14px; border-top: 1px solid var(--line); max-width: none; }
.choice-group .rem-when select { max-width: 260px; }

/* Quick-pick cancellation reasons */
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.reason-chips button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.reason-chips button:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

/* Day view with more than 7 team members: visible horizontal scrollbar */
.cal-scroll.cal-wide { scrollbar-width: thin; }
.cal-scroll.cal-wide .cal-head .corner { box-shadow: 1px 0 0 var(--line); }

/* Team member removal: bookings to sort out */
.sb-list .list-item { align-items: center; }
.sb-done { width: 56px; height: 56px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: inline-grid; place-items: center; }
.sb-done svg { width: 28px; height: 28px; }

/* Move-all preview */
.move-plan { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.move-plan li { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.move-plan li:last-child { border-bottom: 0; }
.move-plan .small { margin-top: 3px; }
.pill-same, .pill-new, .pill-none { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.pill-same { background: var(--good-soft); color: var(--good); }
.pill-new { background: var(--info-soft); color: var(--info); }
.pill-none { background: var(--bad-soft); color: var(--bad); }

/* "Review >" link inside an alert: keep the chevron on the text's centre line */
.alert-cta { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.alert-cta .icon { width: 16px; height: 16px; flex: none; }

/* Booking reference */
.ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: .02em; }
.ref-copy { height: 26px; padding: 0 6px; vertical-align: middle; }
.ref-copy .icon { width: 14px; height: 14px; }
.search-results .grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.search-results button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; }
.search-results button:hover { background: var(--surface-2); }
.search-results button > .icon { position: static; transform: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); flex: none; }

/* Searchable industry picker */
.combo { position: relative; }
.combo-box { position: relative; }
.combo-box .combo-input { padding-right: 60px; text-overflow: ellipsis; }
.combo-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.combo-clear { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.combo-clear:hover { background: var(--line); color: var(--ink); }
.combo-clear[hidden] { display: none; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 264px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
.combo-list[hidden] { display: none; }
.combo-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.combo-list li.active { background: var(--accent-soft); }
.combo-list li[aria-selected=true] { font-weight: 600; color: var(--accent-ink); }
.combo-list li.combo-empty { color: var(--muted); cursor: default; justify-content: center; padding: 14px 10px; }

/* Account pages (log in, forgot / reset password) */
.alert-success { background: var(--good-soft); color: var(--good); }
.auth-card .field > span.row-between { display: flex; justify-content: space-between; align-items: baseline; }
.forgot-link { font-weight: 500; font-size: 12.5px; color: var(--accent-ink); }
.forgot-link:hover { text-decoration: underline; }
.auth-foot { text-align: center; margin: 18px 0 0; font-size: 13px; }
.auth-foot a { color: var(--accent-ink); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
.auth-card .btn-block { margin-top: 4px; }

/* Activity log */
.log { list-style: none; margin: 0; padding: 0; }
.log li { position: relative; display: flex; gap: 12px; padding: 0 0 14px 0; font-size: 13px; }
.log li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.log li:last-child::before { display: none; }
.log-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.log li.log-status .log-dot { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.log li.log-paid .log-dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.log li.log-deleted .log-dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

.code-input { font-size: 26px !important; letter-spacing: .4em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; height: 56px !important; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Onboarding (after sign-up) */
.onb-wrap { max-width: 560px; margin: 0 auto; padding: 40px 16px 64px; }
.onb-wrap.onb-wide { max-width: 1040px; }
.onb-steps { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.onb-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.onb-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 12px; }
.onb-steps li.done span { background: var(--good); color: #fff; }
.onb-steps li.now { color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.onb-steps li.now span { background: var(--accent); color: #fff; }
.onb-card { max-width: 560px; margin: 0 auto; }
.onb-card textarea { min-height: 76px; }
.slug-row { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.slug-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.slug-prefix { display: flex; align-items: center; padding: 0 10px 0 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; border-right: 1px solid var(--line); }
.slug-row input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; min-width: 0; }
#slugHint.ok { color: var(--good); font-weight: 600; }
#slugHint.bad { color: var(--bad); font-weight: 600; }
.onb-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.onb-head h1 { font-size: 30px; margin-bottom: 8px; }
.onb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.onb-plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px; box-shadow: var(--shadow); }
.onb-plan h2 { font-size: 20px; }
.onb-plan .muted { margin: 0; min-height: 40px; }
.onb-plan.pop { border: 2px solid var(--accent); box-shadow: 0 24px 48px -28px rgba(80, 40, 200, .5); }
.onb-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.onb-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 12px; }
.onb-price b { font-size: 38px; letter-spacing: -.03em; line-height: 1; }
.onb-price span { color: var(--muted); }
.onb-plan ul { list-style: none; margin: 0 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; font-size: 14px; }
.onb-plan li { display: flex; gap: 10px; align-items: flex-start; }
.onb-plan li svg { flex: none; margin-top: 2px; color: #fff; background: var(--good); border-radius: 50%; padding: 3px; width: 18px; height: 18px; }
.onb-plan.pop li svg { background: var(--accent); }
.onb-skip { text-align: center; margin-top: 26px; }
.onb-skip .link-btn { font-size: 15px; }
.onb-skip p { margin: 8px 0 0; }
@media (max-width: 900px) { .onb-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .onb-plan .muted { min-height: 0; } }

/* Free trial countdown */
.trial-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 13px; white-space: nowrap; border: 1px solid transparent; }
.trial-chip:hover { border-color: var(--accent); }
.trial-chip .icon { width: 15px; height: 15px; }
.trial-chip.urgent { background: var(--warn-soft); color: var(--warn); }
.trial-meter { margin-top: 8px; }
.trial-meter #trialText { display: block; color: #d9d2ff; font-weight: 600; margin-bottom: 6px; }
.trial-meter .meter { height: 6px; background: rgba(255, 255, 255, .14); border-radius: 999px; overflow: hidden; }
.trial-meter .meter div { height: 100%; background: linear-gradient(90deg, #3e40e8, #e01fcf); border-radius: 999px; }
.trial-note { display: flex; gap: 10px; align-items: flex-start; }
.trial-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 1180px) { .trial-chip span { display: none; } .trial-chip { padding: 0 10px; } }

/* Trial ended banner */
.trial-banner { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--bad-soft); color: var(--bad); font-size: 13.5px; border-bottom: 1px solid rgba(201, 48, 44, .18); }
.trial-banner.hide { display: none; }
.trial-banner .icon { flex: none; width: 18px; height: 18px; }
.trial-banner .grow { flex: 1; min-width: 0; line-height: 1.45; }
.trial-banner b { font-weight: 700; }
.trial-banner .btn { flex: none; }
@media (max-width: 700px) { .trial-banner { flex-wrap: wrap; } .trial-banner .btn { width: 100%; } }

/* Billing */
.pm-card { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.pm-card .icon { width: 20px; height: 20px; }
@media (max-width: 760px) { .bill-grid { grid-template-columns: 1fr !important; } }

/* Cancel / banners */
.btn-danger-text { color: var(--bad) !important; }
.btn-danger-text:hover { background: var(--bad-soft) !important; }
.trial-banner.info { background: var(--info-soft); color: var(--info); border-bottom-color: rgba(31, 111, 214, .18); }

/* Pay an invoice */
.pay-box { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px; margin: 4px 0 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.pay-box b { font-size: 28px; letter-spacing: -.02em; color: var(--ink); }

/* Help centre */
.help-search { position: relative; max-width: 560px; margin-bottom: 20px; }
.help-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.help-search input { width: 100%; padding-left: 38px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.help-cat { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.help-cat:hover { border-color: var(--accent); box-shadow: 0 4px 16px -6px rgba(109, 63, 238, .35); }
.help-cat h3 { margin: 6px 0 0; font-size: 16px; }
.help-cat p { margin: 0; flex: 1; }
.help-list { overflow: hidden; }
.help-list a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.help-list a:last-child { border-bottom: 0; }
.help-list a:hover { background: var(--surface-2); }
.help-list a > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help-list .icon { color: var(--muted); flex-shrink: 0; }
.help-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.help-crumbs a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.help-crumbs .icon { width: 12px; height: 12px; }
.help-article { max-width: 720px; }
.help-article h1 { margin: 0 0 6px; font-size: 24px; }
.help-lead { margin: 0 0 18px; font-size: 15px; }
.help-article p { line-height: 1.6; margin: 0 0 12px; }
.help-steps { margin: 0 0 14px; padding-left: 22px; line-height: 1.6; }
.help-steps li { margin-bottom: 6px; padding-left: 4px; }
.help-tip { display: flex; gap: 10px; background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 14px; line-height: 1.55; color: var(--ink); }
.help-tip .icon { color: var(--accent-ink); flex-shrink: 0; margin-top: 2px; }
.help-go { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.help-more { max-width: 720px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.help-more a { color: var(--accent-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

.help-shot { margin: 6px 0 18px; }
.help-shot img { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; width: auto; height: auto; }
.help-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.help-legend li { display: flex; gap: 10px; align-items: flex-start; }
.help-legend span { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #e8590c; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

.help-shot-img { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); line-height: 0; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.help-back { margin: 0 0 10px -8px; }

/* Finished bookings that still need a status */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f5a524; color: #1b1300; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge.hide { display: none; }
.attn { margin-bottom: 16px; border-color: #f5d9a3; box-shadow: 0 0 0 3px rgba(245, 165, 36, .12); }
.attn .card-head { align-items: flex-start; }
.attn-title { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.attn-title h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.attn-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; }
.attn-ic .icon { width: 18px; height: 18px; }
.attn-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f5a524; color: #1b1300; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
.attn-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.attn-row:last-child { border-bottom: 0; }
.attn-info { flex: 1; min-width: 220px; }
.attn-info.link { cursor: pointer; }
.attn-info .title { font-weight: 600; }
.attn-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.attn-more { padding: 8px 20px 12px; border-top: 1px solid var(--line); text-align: center; }
.appt.needs-update { box-shadow: inset 0 0 0 2px #f5a524; }
.nav-badge.nav-badge-red { background: var(--bad); color: #fff; }
.ns-sub { margin-top: 10px; display: grid; gap: 8px; }
.ns-sub label.ns-when { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ns-sub .ns-custom { display: flex; gap: 8px; margin-left: 24px; }
.ns-sub .ns-custom input { width: auto; }
.choice.ns-choice:not(:has(> input:checked)) { border-color: var(--line-2); box-shadow: none; background: none; }
.ns-sub.hide { display: none; }
.impact { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.impact li::marker { color: var(--muted); }
.leave-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; color: var(--accent-ink, #3b3bbd); }
.leave-note .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
