@profitstudio/booking-engine 0.0.0-stage → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +562 -0
  2. package/LICENSE +21 -0
  3. package/README.md +18 -2
  4. package/THIRD_PARTY_NOTICES.md +41 -0
  5. package/bin/booking-engine.mjs +575 -0
  6. package/bin/connect.mjs +408 -0
  7. package/bin/photos.mjs +82 -0
  8. package/dist/admin/BookingAdmin.d.ts +22 -0
  9. package/dist/admin/BookingAdmin.js +337 -0
  10. package/dist/admin/admin.css +1423 -0
  11. package/dist/admin/alerts.d.ts +10 -0
  12. package/dist/admin/alerts.js +11 -0
  13. package/dist/admin/booking-detail.d.ts +37 -0
  14. package/dist/admin/booking-detail.js +149 -0
  15. package/dist/admin/content-inputs.d.ts +15 -0
  16. package/dist/admin/content-inputs.js +105 -0
  17. package/dist/admin/context.d.ts +37 -0
  18. package/dist/admin/context.js +8 -0
  19. package/dist/admin/drawer.d.ts +14 -0
  20. package/dist/admin/drawer.js +56 -0
  21. package/dist/admin/feedback.d.ts +32 -0
  22. package/dist/admin/feedback.js +70 -0
  23. package/dist/admin/fields.d.ts +27 -0
  24. package/dist/admin/fields.js +146 -0
  25. package/dist/admin/fonts/OFL-Geist-Mono.txt +93 -0
  26. package/dist/admin/fonts/OFL-Geist.txt +93 -0
  27. package/dist/admin/fonts/geist-latin-wght-normal.woff2 +0 -0
  28. package/dist/admin/fonts/geist-mono-latin-wght-normal.woff2 +0 -0
  29. package/dist/admin/icons.d.ts +66 -0
  30. package/dist/admin/icons.js +72 -0
  31. package/dist/admin/image-upload.d.ts +58 -0
  32. package/dist/admin/image-upload.js +111 -0
  33. package/dist/admin/index.d.ts +6 -0
  34. package/dist/admin/index.js +6 -0
  35. package/dist/admin/lucide.generated.d.ts +521 -0
  36. package/dist/admin/lucide.generated.js +76 -0
  37. package/dist/admin/sections/BookingsSection.d.ts +1 -0
  38. package/dist/admin/sections/BookingsSection.js +137 -0
  39. package/dist/admin/sections/EmailSection.d.ts +8 -0
  40. package/dist/admin/sections/EmailSection.js +182 -0
  41. package/dist/admin/sections/HoursSection.d.ts +1 -0
  42. package/dist/admin/sections/HoursSection.js +110 -0
  43. package/dist/admin/sections/OverviewSection.d.ts +1 -0
  44. package/dist/admin/sections/OverviewSection.js +427 -0
  45. package/dist/admin/sections/ServicesSection.d.ts +1 -0
  46. package/dist/admin/sections/ServicesSection.js +236 -0
  47. package/dist/admin/sections/SettingsSection.d.ts +10 -0
  48. package/dist/admin/sections/SettingsSection.js +96 -0
  49. package/dist/admin/sections/WebsiteSection.d.ts +1 -0
  50. package/dist/admin/sections/WebsiteSection.js +228 -0
  51. package/dist/admin/sections.d.ts +22 -0
  52. package/dist/admin/sections.js +29 -0
  53. package/dist/admin/setup.d.ts +1 -0
  54. package/dist/admin/setup.js +45 -0
  55. package/dist/admin/today.d.ts +43 -0
  56. package/dist/admin/today.js +115 -0
  57. package/dist/admin/ui.d.ts +134 -0
  58. package/dist/admin/ui.js +220 -0
  59. package/dist/calendar.d.ts +64 -0
  60. package/dist/calendar.js +139 -0
  61. package/dist/client.d.ts +147 -0
  62. package/dist/client.js +507 -0
  63. package/dist/config.d.ts +25 -0
  64. package/dist/config.js +120 -0
  65. package/dist/content/image.d.ts +20 -0
  66. package/dist/content/image.js +90 -0
  67. package/dist/content/resolve.d.ts +12 -0
  68. package/dist/content/resolve.js +73 -0
  69. package/dist/content/schema.d.ts +119 -0
  70. package/dist/content/schema.js +53 -0
  71. package/dist/content/store.d.ts +48 -0
  72. package/dist/content/store.js +123 -0
  73. package/dist/content/validate.d.ts +33 -0
  74. package/dist/content/validate.js +177 -0
  75. package/dist/errors.d.ts +19 -0
  76. package/dist/errors.js +94 -0
  77. package/dist/generated/manifest.d.ts +6 -0
  78. package/dist/generated/manifest.js +7 -0
  79. package/dist/index.d.ts +20 -0
  80. package/dist/index.js +20 -0
  81. package/dist/presets/hair-salon.d.ts +8 -0
  82. package/dist/presets/hair-salon.js +94 -0
  83. package/dist/presets/index.d.ts +5 -0
  84. package/dist/presets/index.js +6 -0
  85. package/dist/preview.d.ts +18 -0
  86. package/dist/preview.js +134 -0
  87. package/dist/semver.d.ts +16 -0
  88. package/dist/semver.js +55 -0
  89. package/dist/time.d.ts +31 -0
  90. package/dist/time.js +138 -0
  91. package/dist/types.d.ts +477 -0
  92. package/dist/types.js +3 -0
  93. package/dist/vite.d.ts +52 -0
  94. package/dist/vite.js +150 -0
  95. package/docs/BUILD-A-SITE.md +203 -0
  96. package/docs/EMAIL-SETUP.md +224 -0
  97. package/docs/INTEGRATION.md +1109 -0
  98. package/engine.manifest.json +90 -0
  99. package/functions/booking-mailer/deno.json +6 -0
  100. package/functions/booking-mailer/index.ts +44 -0
  101. package/functions/booking-mailer/mailer.js +156 -0
  102. package/functions/booking-mailer/providers/index.js +42 -0
  103. package/functions/booking-mailer/providers/resend.js +75 -0
  104. package/functions/booking-mailer/templates.js +345 -0
  105. package/migrations/0001_core.sql +1673 -0
  106. package/migrations/0002_security_hardening.sql +711 -0
  107. package/migrations/0003_private_definers_and_holds.sql +808 -0
  108. package/migrations/0004_verified_requests.sql +1702 -0
  109. package/migrations/0005_scoped_mailer_credential.sql +347 -0
  110. package/migrations/0006_trusted_client_ip.sql +56 -0
  111. package/migrations/0007_site_content.sql +380 -0
  112. package/migrations/0008_service_images_opening_times.sql +328 -0
  113. package/package.json +85 -4
  114. package/templates/BOOKING_ENGINE.md +61 -0
@@ -0,0 +1,1423 @@
1
+ /* Booking Engine admin dashboard — "Studio". One dashboard for every business
2
+ the engine serves; everything is scoped to .pbe-admin so it never styles the
3
+ public website.
4
+
5
+ BRAND CONTRACT (since 2.0.0-alpha.9): the accent is the only brand hook.
6
+ A site sets, per appearance, on the dashboard root:
7
+ --pbe-accent the business colour (≥ 4.5:1 against the dashboard's
8
+ surfaces in that mode: near-white in light, near-black in dark)
9
+ --pbe-accent-text text on top of the accent (≥ 4.5:1 on it)
10
+ e.g. `:root .pbe-admin[data-mode='light'] { --pbe-accent: #8a4420; --pbe-accent-text: #fff; }`.
11
+ Every tint, hover and focus colour is derived from them here. All other
12
+ variables are internal (--_*) and may change in any release.
13
+
14
+ Contrast (WCAG 2): every text tier is ≥ 4.5:1 on every surface of its mode;
15
+ control boundaries ≥ 3:1; status pills ≥ 5.7:1. Values are listed per token. */
16
+
17
+ /* ------------------------------------------------------------------ fonts */
18
+ /* Geist and Geist Mono (SIL Open Font Licence, ./fonts/OFL-*.txt), shipped in
19
+ the package; the names are the dashboard's own so nothing reaches the site. */
20
+ @font-face {
21
+ font-family: 'PBE Geist';
22
+ font-style: normal;
23
+ font-weight: 100 900;
24
+ font-display: swap;
25
+ src: url('./fonts/geist-latin-wght-normal.woff2') format('woff2');
26
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
27
+ }
28
+ @font-face {
29
+ font-family: 'PBE Geist Mono';
30
+ font-style: normal;
31
+ font-weight: 100 900;
32
+ font-display: swap;
33
+ src: url('./fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
34
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
35
+ }
36
+
37
+ /* ----------------------------------------------------------------- tokens */
38
+ /* Zero specificity (:where), so a site's `:root .pbe-admin[data-mode=…]`
39
+ accent always wins whatever the stylesheet order. */
40
+ :where(.pbe-admin) {
41
+ color-scheme: light;
42
+ /* Public brand hooks — default: a neutral graphite ink. */
43
+ --pbe-accent: #1d1d21; /* 16.1:1 on the canvas */
44
+ --pbe-accent-text: #ffffff; /* 16.8:1 on the accent */
45
+
46
+ --_font: 'PBE Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
47
+ --_mono: 'PBE Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
48
+
49
+ /* Light — a crisp neutral with its own steps (not an inversion of dark). */
50
+ --_frame: #f1f1f3; /* sidebar and the frame around the canvas */
51
+ --_canvas: #fafafb; /* the working surface */
52
+ --_raised: #ffffff; /* cards */
53
+ --_raised-2: #f6f6f8; /* nested surfaces, hovered cards */
54
+ --_overlay: #ffffff; /* drawers, dialogs, menus, toasts */
55
+ --_sunken: #f1f1f3; /* tracks, segmented controls */
56
+ --_hover: rgba(24, 24, 27, 0.045);
57
+ --_press: rgba(24, 24, 27, 0.08);
58
+ --_line: #ececef; /* separators */
59
+ --_line-2: #e3e3e7; /* card borders */
60
+ --_control: #8a8a94; /* control boundaries: 3.4:1 on white, 3.0:1 on the frame */
61
+ --_hl: none; /* top highlight on raised surfaces (dark only) */
62
+ --_text: #18181b; /* 17.7:1 on white */
63
+ --_text-2: #51515a; /* 7.9:1 */
64
+ --_text-3: #686872; /* 5.5:1 on white, 4.9:1 on the frame */
65
+ --_text-off: #b4b4bc; /* disabled / decorative only */
66
+ --_shadow-card: 0 1px 2px rgba(24, 24, 27, 0.04), 0 1px 1px rgba(24, 24, 27, 0.02);
67
+ --_shadow-pop: 0 0 0 1px rgba(24, 24, 27, 0.07), 0 18px 40px -14px rgba(24, 24, 27, 0.25), 0 4px 10px -2px rgba(24, 24, 27, 0.07);
68
+ --_scrim: rgba(24, 24, 27, 0.28);
69
+ --_chart-ink: #c2c2ca;
70
+ --_chart-ink-strong: #8f8f99;
71
+ --_chart-grid: #e8e8ec;
72
+ --_chart-closed: #d6d6dc;
73
+ --_lane: #f5f5f7;
74
+
75
+ /* Status — fixed, never brand-derived; each also has a shape. dot · pill · text */
76
+ --_st-pending: #b27900; --_st-pending-bg: #fdf3d8; --_st-pending-tx: #7f5300; /* 6.1:1 */
77
+ --_st-confirmed: #25874f; --_st-confirmed-bg: #e5f4ea; --_st-confirmed-tx: #1a6b3f; /* 5.7:1 */
78
+ --_st-completed: #71717a; --_st-completed-bg: #f0f0f2; --_st-completed-tx: #4a4a52; /* 7.7:1 */
79
+ --_st-cancelled: #7e7e88; --_st-cancelled-bg: #f3f3f5; --_st-cancelled-tx: #57575f; /* 6.5:1 */
80
+ --_st-noshow: #d92d20; --_st-noshow-bg: #fdebe9; --_st-noshow-tx: #b42318; /* 5.7:1 */
81
+ --_st-expired: #977126; --_st-expired-bg: #f6f0e3; --_st-expired-tx: #6b521e; /* 6.5:1 */
82
+ --_danger: #c4321f; --_danger-bg: #fdebe9; --_danger-tx: #b42318; --_on-danger: #ffffff;
83
+ --_ok: #25874f; --_ok-bg: #e5f4ea; --_ok-tx: #1a6b3f;
84
+ --_warn: #b27900; --_warn-bg: #fdf3d8; --_warn-tx: #7f5300;
85
+ --_info: #1f4fb0; --_info-bg: #eaf1fd; --_info-tx: #1f4fb0;
86
+
87
+ /* Shape, rhythm, motion */
88
+ --_r-xs: 4px;
89
+ --_r-sm: 8px; /* buttons, inputs */
90
+ --_r-md: 10px; /* navigation items, list rows, menus */
91
+ --_r-lg: 12px; /* cards */
92
+ --_r-xl: 16px; /* the canvas, panels, sheets */
93
+ --_control-h: 36px;
94
+ --_control-h-sm: 30px;
95
+ --_control-h-lg: 40px;
96
+ --_sidebar-w: 248px;
97
+ --_ease: cubic-bezier(0.2, 0, 0, 1);
98
+ --_t1: 120ms;
99
+ --_t2: 180ms;
100
+ --_t3: 240ms;
101
+ }
102
+ :where(.pbe-admin[data-mode='dark']) {
103
+ color-scheme: dark;
104
+ --pbe-accent: #ececef; /* 16.0:1 on the canvas */
105
+ --pbe-accent-text: #141417; /* 15.6:1 on the accent */
106
+
107
+ /* Dark — layered near-blacks; each step is visible on its own. */
108
+ --_frame: #0a0a0c;
109
+ --_canvas: #111114;
110
+ --_raised: #18181c;
111
+ --_raised-2: #202025;
112
+ --_overlay: #1c1c21;
113
+ --_sunken: #0d0d10;
114
+ --_hover: rgba(255, 255, 255, 0.05);
115
+ --_press: rgba(255, 255, 255, 0.08);
116
+ --_line: rgba(255, 255, 255, 0.07);
117
+ --_line-2: rgba(255, 255, 255, 0.1);
118
+ --_control: #6a6a75; /* 3.3:1 on cards, 3.0:1 on inputs */
119
+ --_hl: inset 0 1px 0 rgba(255, 255, 255, 0.045);
120
+ --_text: #ededf0; /* 15.2:1 on cards */
121
+ --_text-2: #b0b0ba; /* 8.2:1 */
122
+ --_text-3: #8e8e99; /* 5.5:1 on cards, 5.0:1 on inputs */
123
+ --_text-off: #55555e;
124
+ --_shadow-card: none;
125
+ --_shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 48px -12px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.35);
126
+ --_scrim: rgba(0, 0, 0, 0.55);
127
+ --_chart-ink: #3f3f47;
128
+ --_chart-ink-strong: #6e6e79;
129
+ --_chart-grid: rgba(255, 255, 255, 0.07);
130
+ --_chart-closed: #2e2e35;
131
+ --_lane: #141418;
132
+
133
+ --_st-pending: #f0c159; --_st-pending-bg: color-mix(in srgb, #f0c159 12%, transparent); --_st-pending-tx: #f3cd76; /* 9.1:1 */
134
+ --_st-confirmed: #5fcf8f; --_st-confirmed-bg: color-mix(in srgb, #5fcf8f 11%, transparent); --_st-confirmed-tx: #7ad9a2; /* 8.4:1 */
135
+ --_st-completed: #a1a1aa; --_st-completed-bg: rgba(255, 255, 255, 0.07); --_st-completed-tx: #c8c8d0; /* 9.6:1 */
136
+ --_st-cancelled: #85858f; --_st-cancelled-bg: rgba(255, 255, 255, 0.06); --_st-cancelled-tx: #aeaeb8; /* 7.5:1 */
137
+ --_st-noshow: #f47b6e; --_st-noshow-bg: color-mix(in srgb, #f47b6e 12%, transparent); --_st-noshow-tx: #f89a90; /* 7.1:1 */
138
+ --_st-expired: #c49a52; --_st-expired-bg: color-mix(in srgb, #c49a52 10%, transparent); --_st-expired-tx: #d6b373; /* 7.6:1 */
139
+ --_danger: #f47b6e; --_danger-bg: color-mix(in srgb, #f47b6e 10%, transparent); --_danger-tx: #f89a90; --_on-danger: #1f0805;
140
+ --_ok: #5fcf8f; --_ok-bg: color-mix(in srgb, #5fcf8f 10%, transparent); --_ok-tx: #7ad9a2;
141
+ --_warn: #f0c159; --_warn-bg: color-mix(in srgb, #f0c159 10%, transparent); --_warn-tx: #f3cd76;
142
+ --_info: #8ab4f8; --_info-bg: color-mix(in srgb, #8ab4f8 10%, transparent); --_info-tx: #a9c7fa;
143
+ }
144
+ /* Derived from the brand hooks (re-evaluated on every element, so a site's
145
+ per-mode accent flows into all of them). */
146
+ .pbe-admin {
147
+ --_accent: var(--pbe-accent);
148
+ --_on-accent: var(--pbe-accent-text);
149
+ --_accent-ink: var(--pbe-accent); /* the accent used as text or a thin mark on a surface */
150
+ --_accent-hover: color-mix(in oklab, var(--pbe-accent) 86%, #000);
151
+ --_accent-soft: color-mix(in oklab, var(--pbe-accent) 7%, var(--_raised));
152
+ --_accent-tint: color-mix(in oklab, var(--pbe-accent) 11%, var(--_raised));
153
+ --_accent-line: color-mix(in oklab, var(--pbe-accent) 32%, var(--_line-2));
154
+ --_focus-ring: 0 0 0 2px var(--_canvas), 0 0 0 4px var(--_accent-ink);
155
+ }
156
+ .pbe-admin[data-mode='dark'] {
157
+ --_accent-hover: color-mix(in oklab, var(--pbe-accent) 86%, #fff);
158
+ --_accent-soft: color-mix(in oklab, var(--pbe-accent) 8%, var(--_raised));
159
+ --_accent-tint: color-mix(in oklab, var(--pbe-accent) 13%, var(--_raised));
160
+ --_accent-line: color-mix(in oklab, var(--pbe-accent) 38%, var(--_line-2));
161
+ }
162
+ /* A site that set one accent for both appearances still gets legible accent
163
+ text: the lightness is clamped per mode where the browser can do it. */
164
+ @supports (color: oklch(from red l c h)) {
165
+ .pbe-admin { --_accent-ink: oklch(from var(--pbe-accent) min(l, 0.52) c h); }
166
+ .pbe-admin[data-mode='dark'] { --_accent-ink: oklch(from var(--pbe-accent) max(l, 0.72) c h); }
167
+ }
168
+
169
+ /* ------------------------------------------------------------------- base */
170
+ :where(body:has(> * > .pbe-admin)) { margin: 0; }
171
+ :where(html:has(.pbe-admin[data-mode='dark'])) { color-scheme: dark; background: #0a0a0c; }
172
+ :where(html:has(.pbe-admin[data-mode='light'])) { background: #f1f1f3; }
173
+ .pbe-admin {
174
+ min-height: 100vh;
175
+ background: var(--_frame);
176
+ color: var(--_text);
177
+ font: 400 14px/1.5 var(--_font);
178
+ letter-spacing: -0.006em;
179
+ -webkit-font-smoothing: antialiased;
180
+ -moz-osx-font-smoothing: grayscale;
181
+ text-rendering: optimizeLegibility;
182
+ /* Touch: no grey browser flash; pressed states are the dashboard's own. */
183
+ -webkit-tap-highlight-color: transparent;
184
+ }
185
+ .pbe-admin *, .pbe-admin *::before, .pbe-admin *::after { box-sizing: border-box; }
186
+ .pbe-admin :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre, fieldset) { margin: 0; }
187
+ .pbe-admin :where(ul, ol) { padding: 0; list-style: none; }
188
+ .pbe-admin :where(h1, h2, h3) { font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; color: var(--_text); }
189
+ .pbe-admin :where(button, input, select, textarea) { font: inherit; letter-spacing: inherit; color: inherit; }
190
+ .pbe-admin :where(a) { color: var(--_accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
191
+ .pbe-admin :where(code, kbd, samp) { font-family: var(--_mono); font-size: 0.9em; letter-spacing: 0; }
192
+ .pbe-admin :where(b, strong) { font-weight: 600; }
193
+ .pbe-admin [hidden] { display: none !important; }
194
+ .pbe-admin :focus { outline: none; }
195
+ .pbe-admin :focus-visible { outline: none; box-shadow: var(--_focus-ring); }
196
+ .pbe-admin ::selection { background: color-mix(in oklab, var(--_accent-ink) 24%, transparent); }
197
+ .pbe-icon { flex: none; display: block; }
198
+ .pbe-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
199
+ .pbe-tnum { font-variant-numeric: tabular-nums; }
200
+ .pbe-mono { font-family: var(--_mono); font-size: 12.5px; letter-spacing: 0.02em; }
201
+ .pbe-muted { color: var(--_text-3); }
202
+ .pbe-small { font-size: 13px; }
203
+ .pbe-push { margin-left: auto; }
204
+ .pbe-nowrap { white-space: nowrap; }
205
+
206
+ /* ------------------------------------------------------------------ shell */
207
+ .pbe-app { display: grid; grid-template-columns: var(--_sidebar-w) minmax(0, 1fr); align-items: start; }
208
+ .pbe-skip {
209
+ position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--_r-sm);
210
+ background: var(--_overlay); color: var(--_text) !important; box-shadow: var(--_shadow-pop); text-decoration: none; font-weight: 500;
211
+ }
212
+ .pbe-skip:focus { top: 12px; }
213
+
214
+ /* Sidebar */
215
+ .pbe-sidebar {
216
+ position: sticky; top: 0; height: 100vh; min-height: 0; display: flex; flex-direction: column; gap: 6px;
217
+ padding: 12px 12px 12px 14px; overflow-y: auto; scrollbar-width: thin;
218
+ }
219
+ .pbe-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px; }
220
+ .pbe-monogram {
221
+ width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px;
222
+ background: var(--_accent); color: var(--_on-accent); font-size: 12px; font-weight: 650; letter-spacing: 0.02em;
223
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.22);
224
+ }
225
+ .pbe-business { min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
226
+ .pbe-search-launch {
227
+ margin: 6px 0 10px; height: var(--_control-h); display: flex; align-items: center; gap: 9px; padding: 0 6px 0 11px; width: 100%;
228
+ border-radius: var(--_r-sm); border: 1px solid var(--_line-2); background: var(--_raised); box-shadow: var(--_hl), var(--_shadow-card);
229
+ color: var(--_text-3); cursor: pointer; text-align: left; font-size: 14px;
230
+ }
231
+ .pbe-search-launch span { flex: 1; }
232
+ @media (hover: hover) { .pbe-search-launch:hover { border-color: var(--_control); color: var(--_text-2); } }
233
+ .pbe-kbd {
234
+ display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: var(--_r-xs);
235
+ border: 1px solid var(--_line-2); background: var(--_canvas); color: var(--_text-3); font: 500 11px/1 var(--_font); letter-spacing: 0.02em;
236
+ }
237
+ .pbe-nav { display: flex; flex-direction: column; gap: 2px; }
238
+ .pbe-nav-label { margin: 18px 0 6px; padding: 0 10px; font-size: 12px; font-weight: 500; color: var(--_text-3); }
239
+ .pbe-nav-list { display: flex; flex-direction: column; gap: 2px; }
240
+ .pbe-nav-item {
241
+ position: relative; display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 0 10px 0 11px; border-radius: var(--_r-md);
242
+ color: var(--_text-2) !important; text-decoration: none; font-size: 14px; font-weight: 500;
243
+ }
244
+ .pbe-nav-item .pbe-icon { color: var(--_text-3); }
245
+ @media (hover: hover) { .pbe-nav-item:hover { background: var(--_hover); color: var(--_text) !important; } }
246
+ .pbe-nav-item[aria-current='page'] { background: var(--_raised); color: var(--_text) !important; box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl), var(--_shadow-card); }
247
+ .pbe-nav-item[aria-current='page'] .pbe-icon { color: var(--_accent-ink); }
248
+ .pbe-nav-item[aria-current='page']::before {
249
+ content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--_accent-ink);
250
+ }
251
+ .pbe-nav-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
252
+ .pbe-nav-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--_text-3); }
253
+ .pbe-count {
254
+ min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
255
+ background: var(--_st-pending-bg); color: var(--_st-pending-tx); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1;
256
+ }
257
+ .pbe-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
258
+ .pbe-site-link {
259
+ display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 0 10px 0 11px; border-radius: var(--_r-md);
260
+ color: var(--_text-2) !important; text-decoration: none; font-weight: 500;
261
+ }
262
+ .pbe-site-link .pbe-icon { color: var(--_text-3); }
263
+ @media (hover: hover) { .pbe-site-link:hover { background: var(--_hover); color: var(--_text) !important; } }
264
+ .pbe-account { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0 6px; border-top: 1px solid var(--_line); }
265
+ .pbe-account > .pbe-icon { color: var(--_text-3); }
266
+ .pbe-account-email { flex: 1; min-width: 0; font-size: 13px; color: var(--_text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
267
+
268
+ /* Appearance switch */
269
+ .pbe-appearance {
270
+ display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; height: 34px;
271
+ border-radius: var(--_r-md); background: var(--_sunken); border: 1px solid var(--_line-2);
272
+ }
273
+ .pbe-appearance button {
274
+ border: 0; background: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
275
+ font-size: 12px; font-weight: 500; color: var(--_text-3); cursor: pointer; padding: 0 6px;
276
+ }
277
+ @media (hover: hover) { .pbe-appearance button:hover { color: var(--_text); } }
278
+ .pbe-appearance button[aria-pressed='true'] { background: var(--_raised); color: var(--_text); box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl), var(--_shadow-card); }
279
+ .pbe-appearance-label { display: none; }
280
+
281
+ /* Canvas */
282
+ .pbe-canvas {
283
+ min-width: 0; min-height: calc(100vh - 16px); margin: 8px 8px 8px 0; display: flex; flex-direction: column;
284
+ background: var(--_canvas); border: 1px solid var(--_line-2); border-radius: var(--_r-xl); box-shadow: var(--_shadow-card);
285
+ overflow: clip;
286
+ }
287
+ .pbe-topbar {
288
+ position: sticky; top: 0; z-index: 20; height: 56px; flex: none; display: flex; align-items: center; gap: 12px;
289
+ padding: 0 16px 0 24px; background: color-mix(in srgb, var(--_canvas) 88%, transparent); border-bottom: 1px solid var(--_line);
290
+ -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
291
+ }
292
+ .pbe-crumb { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--_text); min-width: 0; }
293
+ .pbe-crumb .pbe-icon { color: var(--_text-3); }
294
+ .pbe-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
295
+ .pbe-chip {
296
+ height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 15px;
297
+ background: var(--_raised); border: 1px solid var(--_line-2); color: var(--_text-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap;
298
+ }
299
+ .pbe-chip .pbe-icon { color: var(--_text-3); }
300
+ .pbe-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px 36px 56px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
301
+ .pbe-main:focus { outline: none; }
302
+ .pbe-footer { text-align: center; color: var(--_text-3); font-size: 12px; padding: 0 0 20px; }
303
+ .pbe-mobilebar, .pbe-tabbar, .pbe-scrim { display: none; }
304
+
305
+ /* Page structure */
306
+ .pbe-page { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
307
+ .pbe-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
308
+ .pbe-page-head > div:first-child { min-width: 0; }
309
+ .pbe-eyebrow { font-size: 13px; font-weight: 500; color: var(--_text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
310
+ .pbe-page-title { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
311
+ .pbe-page-sub { margin-top: 8px; font-size: 14px; color: var(--_text-3); max-width: 68ch; }
312
+ .pbe-page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
313
+ .pbe-section-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
314
+ .pbe-section-sub { margin-top: 4px; font-size: 14px; color: var(--_text-3); max-width: 68ch; }
315
+ .pbe-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
316
+ .pbe-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
317
+ .pbe-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
318
+ .pbe-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
319
+
320
+ /* ------------------------------------------------------------------ cards */
321
+ .pbe-card {
322
+ background: var(--_raised); border: 1px solid var(--_line-2); border-radius: var(--_r-lg);
323
+ box-shadow: var(--_hl), var(--_shadow-card); min-width: 0;
324
+ }
325
+ .pbe-card--pad { padding: 20px; }
326
+ .pbe-card-head { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 16px 20px; min-height: 56px; }
327
+ .pbe-card-head--rule { border-bottom: 1px solid var(--_line); }
328
+ .pbe-card-title { font-size: 16px; font-weight: 600; letter-spacing: -0.018em; display: flex; align-items: center; gap: 8px; }
329
+ .pbe-card-sub { font-size: 13px; color: var(--_text-3); }
330
+ .pbe-card-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
331
+ .pbe-card-body { padding: 0 20px 20px; }
332
+ .pbe-card-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--_line); font-size: 13px; color: var(--_text-3); }
333
+
334
+ /* ---------------------------------------------------------------- buttons */
335
+ .pbe-button {
336
+ position: relative; height: var(--_control-h); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
337
+ padding: 0 14px; border-radius: var(--_r-sm); border: 1px solid var(--_control); background: var(--_raised); color: var(--_text) !important;
338
+ font-size: 14px; font-weight: 500; letter-spacing: -0.008em; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
339
+ box-shadow: var(--_hl), var(--_shadow-card); user-select: none;
340
+ }
341
+ @media (hover: hover) { .pbe-button:hover { background: var(--_raised-2); } }
342
+ .pbe-button:active { background: color-mix(in oklab, var(--_raised-2) 80%, var(--_text) 4%); }
343
+ .pbe-button .pbe-icon { color: var(--_text-2); }
344
+ .pbe-button--primary { background: var(--_accent); border-color: transparent; color: var(--_on-accent) !important; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(0, 0, 0, 0.16); }
345
+ .pbe-button--primary .pbe-icon { color: inherit; }
346
+ @media (hover: hover) { .pbe-button--primary:hover { background: var(--_accent-hover); } }
347
+ .pbe-button--quiet { border-color: transparent; background: none; box-shadow: none; color: var(--_text-2) !important; }
348
+ @media (hover: hover) { .pbe-button--quiet:hover { background: var(--_hover); color: var(--_text) !important; } }
349
+ .pbe-button--danger { background: var(--_danger); border-color: transparent; color: var(--_on-danger) !important; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16); }
350
+ .pbe-button--danger .pbe-icon { color: inherit; }
351
+ @media (hover: hover) { .pbe-button--danger:hover { background: color-mix(in oklab, var(--_danger) 88%, var(--_text)); } }
352
+ .pbe-button--danger-quiet { color: var(--_danger-tx) !important; }
353
+ .pbe-button--danger-quiet .pbe-icon { color: inherit; }
354
+ @media (hover: hover) { .pbe-button--danger-quiet:hover { background: var(--_danger-bg); border-color: color-mix(in oklab, var(--_danger) 45%, var(--_control)); } }
355
+ .pbe-button--sm { height: var(--_control-h-sm); padding: 0 10px; font-size: 13px; gap: 6px; border-radius: 7px; }
356
+ .pbe-button--lg { height: var(--_control-h-lg); padding: 0 18px; font-size: 14px; }
357
+ .pbe-button--block { width: 100%; }
358
+ .pbe-button--quiet.pbe-button--danger-text { color: var(--_danger-tx) !important; align-self: center; }
359
+ @media (hover: hover) { .pbe-button--quiet.pbe-button--danger-text:hover { background: var(--_danger-bg); } }
360
+ .pbe-button:disabled, .pbe-button[aria-disabled='true']:not([aria-busy='true']) { opacity: 0.5; cursor: not-allowed; }
361
+ .pbe-button--primary:disabled, .pbe-button--danger:disabled {
362
+ opacity: 1; background: var(--_raised-2); border-color: var(--_line-2); color: var(--_text-3) !important; box-shadow: none;
363
+ }
364
+ .pbe-button[aria-busy='true'] { cursor: progress; color: transparent !important; }
365
+ .pbe-button[aria-busy='true'] > :not(.pbe-spinner) { visibility: hidden; }
366
+ .pbe-spinner {
367
+ position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
368
+ border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor;
369
+ }
370
+ .pbe-button[aria-busy='true'] .pbe-spinner { color: var(--_text); }
371
+ .pbe-button--primary[aria-busy='true'] .pbe-spinner { color: var(--_on-accent); }
372
+ .pbe-button--danger[aria-busy='true'] .pbe-spinner { color: var(--_on-danger); }
373
+ .pbe-icon-button {
374
+ width: var(--_control-h); height: var(--_control-h); flex: none; display: inline-grid; place-items: center; padding: 0;
375
+ border: 1px solid transparent; border-radius: var(--_r-sm); background: none; color: var(--_text-3); cursor: pointer;
376
+ }
377
+ @media (hover: hover) { .pbe-icon-button:hover:not(:disabled) { background: var(--_hover); color: var(--_text); } }
378
+ .pbe-icon-button:disabled { opacity: 0.35; cursor: not-allowed; }
379
+ .pbe-icon-button--bordered { border-color: var(--_control); background: var(--_raised); color: var(--_text-2); box-shadow: var(--_hl); }
380
+ .pbe-icon-button--sm { width: var(--_control-h-sm); height: var(--_control-h-sm); }
381
+ .pbe-link-button {
382
+ display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; margin: -2px -4px; border: 0; background: none; border-radius: 6px;
383
+ color: var(--_accent-ink); font-weight: 500; cursor: pointer; text-decoration: none; text-align: left;
384
+ }
385
+ @media (hover: hover) { .pbe-link-button:hover { text-decoration: underline; text-underline-offset: 3px; } }
386
+ .pbe-link-button--quiet { color: var(--_text-2); }
387
+ .pbe-link-button--quiet .pbe-icon { color: var(--_text-3); }
388
+ .pbe-link-button--danger { color: var(--_danger-tx); }
389
+
390
+ /* --------------------------------------------------------- status and tags */
391
+ .pbe-badge {
392
+ height: 24px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px 0 8px; border-radius: 12px;
393
+ font-size: 12.5px; font-weight: 500; white-space: nowrap; letter-spacing: -0.004em; line-height: 1;
394
+ }
395
+ .pbe-badge-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
396
+ .pbe-badge--pending { background: var(--_st-pending-bg); color: var(--_st-pending-tx); }
397
+ .pbe-badge--pending .pbe-badge-dot { border: 2px solid var(--_st-pending); }
398
+ .pbe-badge--confirmed { background: var(--_st-confirmed-bg); color: var(--_st-confirmed-tx); }
399
+ .pbe-badge--confirmed .pbe-badge-dot { background: var(--_st-confirmed); }
400
+ .pbe-badge--completed { background: var(--_st-completed-bg); color: var(--_st-completed-tx); }
401
+ .pbe-badge--completed .pbe-badge-dot { background: var(--_st-completed); box-shadow: inset 0 0 0 2px var(--_st-completed-bg); outline: 1.5px solid var(--_st-completed); outline-offset: -1.5px; }
402
+ .pbe-badge--cancelled { background: var(--_st-cancelled-bg); color: var(--_st-cancelled-tx); }
403
+ .pbe-badge--cancelled .pbe-badge-dot { border-radius: 1px; height: 2px; background: var(--_st-cancelled); }
404
+ .pbe-badge--no_show { background: var(--_st-noshow-bg); color: var(--_st-noshow-tx); }
405
+ .pbe-badge--no_show .pbe-badge-dot { border-radius: 2px; background: var(--_st-noshow); transform: rotate(45deg) scale(0.82); }
406
+ .pbe-badge--expired { background: var(--_st-expired-bg); color: var(--_st-expired-tx); }
407
+ .pbe-badge--expired .pbe-badge-dot { border: 1.75px dashed var(--_st-expired); }
408
+ .pbe-badge--neutral { background: var(--_st-completed-bg); color: var(--_text-2); }
409
+ .pbe-badge--ok { background: var(--_ok-bg); color: var(--_ok-tx); }
410
+ .pbe-badge--ok .pbe-badge-dot { background: var(--_ok); }
411
+ .pbe-badge--warn { background: var(--_warn-bg); color: var(--_warn-tx); }
412
+ .pbe-badge--warn .pbe-badge-dot { border: 2px solid var(--_warn); }
413
+ .pbe-badge--danger { background: var(--_danger-bg); color: var(--_danger-tx); }
414
+ .pbe-badge--danger .pbe-badge-dot { background: var(--_danger); }
415
+ .pbe-tag {
416
+ display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; white-space: nowrap;
417
+ border: 1px solid var(--_line-2); background: var(--_raised-2); color: var(--_text-2); font-size: 12px; font-weight: 500;
418
+ }
419
+ .pbe-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--_text-off); }
420
+ .pbe-dot--ok { background: var(--_ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--_ok) 18%, transparent); }
421
+ .pbe-dot--bad { background: var(--_danger); box-shadow: 0 0 0 3px color-mix(in oklab, var(--_danger) 18%, transparent); }
422
+ .pbe-dot--warn { background: var(--_warn); box-shadow: 0 0 0 3px color-mix(in oklab, var(--_warn) 18%, transparent); }
423
+ .pbe-dot--off { background: none; box-shadow: inset 0 0 0 1.5px var(--_text-3); }
424
+
425
+ /* ---------------------------------------------------------------- notices */
426
+ .pbe-notice {
427
+ display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--_r-md); border: 1px solid;
428
+ font-size: 14px; line-height: 1.5; color: var(--_text);
429
+ }
430
+ .pbe-notice > .pbe-icon { margin-top: 2px; }
431
+ .pbe-notice-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
432
+ .pbe-notice-body strong { font-weight: 600; }
433
+ .pbe-notice--info { background: var(--_info-bg); border-color: color-mix(in oklab, var(--_info) 28%, transparent); }
434
+ .pbe-notice--info > .pbe-icon { color: var(--_info-tx); }
435
+ .pbe-notice--success { background: var(--_ok-bg); border-color: color-mix(in oklab, var(--_ok) 30%, transparent); }
436
+ .pbe-notice--success > .pbe-icon { color: var(--_ok-tx); }
437
+ .pbe-notice--warning { background: var(--_warn-bg); border-color: color-mix(in oklab, var(--_warn) 35%, transparent); }
438
+ .pbe-notice--warning > .pbe-icon { color: var(--_warn-tx); }
439
+ .pbe-notice--error { background: var(--_danger-bg); border-color: color-mix(in oklab, var(--_danger) 35%, transparent); }
440
+ .pbe-notice--error > .pbe-icon { color: var(--_danger-tx); }
441
+ .pbe-banner { border-radius: var(--_r-lg); padding: 14px 16px; }
442
+
443
+ /* ------------------------------------------------------------------ forms */
444
+ .pbe-form { display: flex; flex-direction: column; gap: 20px; }
445
+ .pbe-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
446
+ .pbe-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
447
+ .pbe-field > label, .pbe-label { font-size: 14px; font-weight: 500; color: var(--_text); }
448
+ .pbe-admin :where(input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='number'],
449
+ input[type='date'], input[type='time'], input[type='search'], input[type='url'], input:not([type]), select, textarea) {
450
+ width: 100%; min-height: var(--_control-h); padding: 0 12px; border: 1px solid var(--_control); border-radius: var(--_r-sm);
451
+ background: var(--_raised); color: var(--_text); font-size: 14px; line-height: 1.4;
452
+ box-shadow: var(--_hl); transition: border-color var(--_t1) var(--_ease), box-shadow var(--_t1) var(--_ease);
453
+ }
454
+ .pbe-admin[data-mode='dark'] :where(input, select, textarea) { background-color: var(--_raised-2); }
455
+ .pbe-admin :where(input[type='date'], input[type='time']) { font-variant-numeric: tabular-nums; }
456
+ .pbe-admin :where(textarea) { padding: 10px 12px; min-height: 92px; resize: vertical; line-height: 1.5; }
457
+ .pbe-admin :where(select) {
458
+ appearance: none; padding-right: 36px; cursor: pointer;
459
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23686872' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
460
+ background-repeat: no-repeat; background-position: right 11px center;
461
+ }
462
+ .pbe-admin[data-mode='dark'] :where(select) {
463
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e99' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
464
+ }
465
+ .pbe-admin :where(input, select, textarea)::placeholder { color: var(--_text-3); opacity: 1; }
466
+ @media (hover: hover) { .pbe-admin :where(input, select, textarea):hover:not(:disabled) { border-color: color-mix(in oklab, var(--_control) 70%, var(--_text)); } }
467
+ .pbe-admin :where(input, select, textarea):focus-visible { border-color: var(--_accent-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--_accent-ink) 22%, transparent); }
468
+ .pbe-admin :where(input[type='time']) { width: auto; }
469
+ .pbe-admin :where(input[type='checkbox'], input[type='radio']) { accent-color: var(--_accent); width: 18px; height: 18px; margin: 0; cursor: pointer; }
470
+ .pbe-field--error :where(input, select, textarea), .pbe-admin :where(input, select, textarea)[aria-invalid='true'] {
471
+ border-color: var(--_danger); box-shadow: 0 0 0 3px color-mix(in oklab, var(--_danger) 16%, transparent);
472
+ }
473
+ .pbe-help { font-size: 13px; line-height: 1.5; color: var(--_text-3); font-weight: 400; }
474
+ .pbe-field-error { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--_danger-tx); font-weight: 500; }
475
+ .pbe-field-error .pbe-icon { margin-top: 1px; }
476
+ .pbe-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
477
+ .pbe-inline > select { flex: 1 1 260px; width: auto; }
478
+
479
+ /* Switch: a real checkbox (role="switch"), drawn with gradients. */
480
+ .pbe-admin input.pbe-switch {
481
+ appearance: none; flex: none; width: 38px; height: 22px; margin: 0; border-radius: 11px; cursor: pointer; border: 0;
482
+ background: radial-gradient(circle closest-side, #fff 92%, transparent 100%) 3px 50% / 16px 16px no-repeat, var(--_control);
483
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
484
+ transition: background-position var(--_t2) var(--_ease), background-color var(--_t2) var(--_ease);
485
+ }
486
+ .pbe-admin input.pbe-switch:checked { background-color: var(--_accent); background-position: calc(100% - 3px) 50%, 0 0; }
487
+ .pbe-admin[data-mode='dark'] input.pbe-switch:checked { background-image: radial-gradient(circle closest-side, var(--_on-accent) 92%, transparent 100%); }
488
+ .pbe-admin input.pbe-switch:disabled { opacity: 0.45; cursor: not-allowed; }
489
+ .pbe-switch-row { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
490
+ .pbe-switch-row .pbe-switch { margin-top: 1px; }
491
+ .pbe-switch-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
492
+ .pbe-switch-label { font-weight: 500; color: var(--_text); }
493
+ .pbe-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
494
+ .pbe-check input { margin-top: 2px; }
495
+
496
+ /* Settings rows: label and help on the left, the control on the right. */
497
+ .pbe-settings { padding: 0; }
498
+ .pbe-setting {
499
+ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 8px 32px; align-items: start; padding: 20px 24px;
500
+ border-top: 1px solid var(--_line);
501
+ }
502
+ .pbe-setting:first-child { border-top: 0; }
503
+ .pbe-setting--switch { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
504
+ .pbe-setting-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
505
+ .pbe-setting-text label, .pbe-setting-label { font-size: 14px; font-weight: 500; color: var(--_text); cursor: pointer; }
506
+ .pbe-setting-control { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
507
+ .pbe-settings-foot {
508
+ display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--_line);
509
+ background: color-mix(in oklab, var(--_raised) 60%, var(--_canvas)); border-radius: 0 0 var(--_r-lg) var(--_r-lg);
510
+ }
511
+ .pbe-settings-state { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--_text-3); }
512
+ .pbe-settings-error { padding: 16px 24px 0; }
513
+ .pbe-card-form { padding: 20px; }
514
+ .pbe-card-details { margin: 0 20px 20px; }
515
+ .pbe-test-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
516
+ .pbe-test-field { flex: 1 1 280px; min-width: 0; }
517
+ .pbe-test-action { padding-bottom: 27px; }
518
+
519
+ /* Segmented control (tabs that switch a view) */
520
+ .pbe-segmented {
521
+ display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: var(--_control-h); max-width: 100%;
522
+ border-radius: var(--_r-md); background: var(--_sunken); border: 1px solid var(--_line-2); overflow-x: auto; scrollbar-width: none;
523
+ }
524
+ .pbe-segmented::-webkit-scrollbar { display: none; }
525
+ .pbe-tab {
526
+ height: 100%; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 7px; background: none;
527
+ color: var(--_text-2); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
528
+ }
529
+ @media (hover: hover) { .pbe-tab:hover { color: var(--_text); } }
530
+ .pbe-tab[aria-selected='true'] { background: var(--_raised); color: var(--_text); box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl), 0 1px 2px rgba(0, 0, 0, 0.08); }
531
+ .pbe-tab .pbe-count { height: 18px; min-width: 20px; font-size: 11.5px; }
532
+
533
+ /* Search field */
534
+ .pbe-search { position: relative; display: flex; align-items: center; min-width: 0; }
535
+ .pbe-search > .pbe-icon { position: absolute; left: 11px; color: var(--_text-3); pointer-events: none; }
536
+ .pbe-admin .pbe-search input { padding-left: 36px; padding-right: 36px; }
537
+ .pbe-search .pbe-icon-button { position: absolute; right: 3px; width: 30px; height: 30px; }
538
+ .pbe-admin .pbe-search input::-webkit-search-cancel-button { display: none; }
539
+
540
+ /* ----------------------------------------------------------------- tables */
541
+ .pbe-table-wrap { min-width: 0; }
542
+ .pbe-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
543
+ .pbe-table th {
544
+ height: 38px; padding: 0 14px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--_text-3); white-space: nowrap;
545
+ border-bottom: 1px solid var(--_line);
546
+ }
547
+ .pbe-table td { padding: 12px 14px; border-bottom: 1px solid var(--_line); vertical-align: middle; }
548
+ .pbe-table tbody tr:last-child td { border-bottom: 0; }
549
+ .pbe-table .pbe-num { text-align: right; font-variant-numeric: tabular-nums; }
550
+ .pbe-table--card { background: var(--_raised); border: 1px solid var(--_line-2); border-radius: var(--_r-lg); box-shadow: var(--_hl), var(--_shadow-card); overflow: hidden; }
551
+ .pbe-table--card thead th { background: color-mix(in oklab, var(--_raised) 55%, var(--_canvas)); }
552
+ .pbe-table--card th:first-child, .pbe-table--card td:first-child { padding-left: 20px; }
553
+ .pbe-table--card th:last-child, .pbe-table--card td:last-child { padding-right: 20px; }
554
+ @media (hover: hover) { .pbe-table tbody tr:hover td { background: var(--_hover); } }
555
+ .pbe-row-muted td { color: var(--_text-3); }
556
+ .pbe-cell-actions { text-align: right; width: 1%; white-space: nowrap; }
557
+ .pbe-cell-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
558
+ .pbe-cell-main > strong { font-weight: 500; color: var(--_text); }
559
+ .pbe-cell-sub { font-size: 13px; color: var(--_text-3); }
560
+ .pbe-table-more { align-self: flex-start; }
561
+
562
+ /* ----------------------------------------------------------- empty, loading */
563
+ .pbe-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 24px; }
564
+ .pbe-empty-icon {
565
+ width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
566
+ background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl); color: var(--_text-2);
567
+ }
568
+ .pbe-empty-title { font-size: 15px; font-weight: 600; color: var(--_text); letter-spacing: -0.012em; }
569
+ .pbe-empty-text { font-size: 14px; color: var(--_text-3); max-width: 46ch; }
570
+ .pbe-empty-action { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
571
+ .pbe-empty--card { border: 1px dashed var(--_control); border-radius: var(--_r-lg); background: color-mix(in oklab, var(--_raised) 50%, var(--_canvas)); }
572
+ .pbe-empty--compact { padding: 20px 16px; }
573
+ .pbe-skeleton { display: flex; flex-direction: column; gap: 12px; }
574
+ .pbe-sk {
575
+ display: block; height: 10px; border-radius: 5px;
576
+ background: linear-gradient(90deg, var(--_raised-2) 0%, color-mix(in oklab, var(--_raised-2) 55%, var(--_control)) 50%, var(--_raised-2) 100%);
577
+ background-size: 200% 100%;
578
+ }
579
+ .pbe-sk--title { height: 14px; width: 40%; }
580
+ .pbe-sk--value { height: 30px; width: 46%; border-radius: 8px; }
581
+ .pbe-sk-row { display: grid; grid-template-columns: 90px 1.4fr 1fr 80px 100px; gap: 20px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--_line); }
582
+ .pbe-sk-row:first-child { border-top: 0; }
583
+ .pbe-sk-row .pbe-sk:nth-child(2n) { width: 72%; }
584
+ .pbe-sk-card { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 148px; }
585
+
586
+ /* Meter and hold ring */
587
+ .pbe-meter { position: relative; height: 6px; border-radius: 3px; overflow: hidden; background: color-mix(in oklab, var(--_accent) 14%, var(--_raised-2)); }
588
+ .pbe-meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--_accent); }
589
+ .pbe-ring { flex: none; transform: rotate(-90deg); }
590
+ .pbe-ring circle { fill: none; stroke-width: 3; }
591
+ .pbe-ring--sm circle { stroke-width: 2.5; }
592
+ .pbe-ring-track { stroke: color-mix(in oklab, var(--_st-pending) 22%, transparent); }
593
+ .pbe-ring-value { stroke: var(--_st-pending); stroke-linecap: round; }
594
+ .pbe-ring--soon .pbe-ring-value { stroke: var(--_danger); }
595
+ .pbe-ring--ended .pbe-ring-track { stroke: var(--_st-expired); stroke-dasharray: 3 3.3; }
596
+ .pbe-ring--accent .pbe-ring-track { stroke: color-mix(in oklab, var(--_accent-ink) 22%, transparent); }
597
+ .pbe-ring--accent .pbe-ring-value { stroke: var(--_accent-ink); }
598
+
599
+ /* ------------------------------------------------- overlays: drawer, dialog */
600
+ .pbe-scrim-layer { position: fixed; inset: 0; z-index: 60; background: var(--_scrim); }
601
+ .pbe-admin dialog {
602
+ padding: 0; border: 0; color: var(--_text); background: var(--_overlay); max-width: none; max-height: none;
603
+ font: inherit; letter-spacing: inherit;
604
+ }
605
+ .pbe-admin dialog::backdrop { background: var(--_scrim); }
606
+ .pbe-admin dialog.pbe-dialog {
607
+ width: min(460px, calc(100vw - 32px)); border-radius: 16px; box-shadow: var(--_shadow-pop); padding: 24px 24px 20px; margin: auto;
608
+ }
609
+ .pbe-dialog-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
610
+ .pbe-dialog-body { margin-top: 8px; color: var(--_text-2); font-size: 14px; line-height: 1.55; }
611
+ .pbe-dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
612
+
613
+ .pbe-drawer {
614
+ display: flex; flex-direction: column; min-height: 0; background: var(--_overlay); color: var(--_text);
615
+ }
616
+ .pbe-admin dialog.pbe-drawer {
617
+ position: fixed; inset: 8px 8px 8px auto; margin: 0; width: min(440px, calc(100vw - 16px)); height: auto; max-height: calc(100vh - 16px);
618
+ border-radius: var(--_r-xl); box-shadow: var(--_shadow-pop); overflow: hidden;
619
+ }
620
+ .pbe-admin dialog.pbe-drawer[open] { display: flex; }
621
+ .pbe-drawer--docked {
622
+ position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: hidden; border-radius: var(--_r-xl);
623
+ border: 1px solid var(--_line-2); box-shadow: var(--_hl), 0 24px 48px -28px rgba(0, 0, 0, 0.6);
624
+ }
625
+ .pbe-admin[data-mode='light'] .pbe-drawer--docked { background: var(--_raised); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 24px 48px -30px rgba(24, 24, 27, 0.3); }
626
+ .pbe-drawer-bar { flex: none; height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 22px; border-bottom: 1px solid var(--_line); }
627
+ .pbe-drawer-kind { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; color: var(--_text-2); }
628
+ .pbe-drawer-heading { font-size: 16px; font-weight: 600; letter-spacing: -0.018em; }
629
+ .pbe-drawer-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
630
+ .pbe-drawer-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
631
+ .pbe-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 20px; overscroll-behavior: contain; }
632
+ .pbe-drawer-title { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; overflow-wrap: anywhere; }
633
+ .pbe-drawer-foot { flex: none; padding: 14px 24px 18px; border-top: 1px solid var(--_line); display: flex; flex-direction: column; gap: 10px; }
634
+ .pbe-drawer-foot-note { font-size: 13px; color: var(--_text-3); }
635
+ .pbe-drawer-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
636
+ .pbe-drawer-actions .pbe-button { height: var(--_control-h-lg); }
637
+ .pbe-drawer-actions--weighted { grid-template-columns: 1fr 1.45fr; grid-auto-flow: row; }
638
+
639
+ /* --------------------------------------------------------------- toasts */
640
+ .pbe-toasts {
641
+ position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column-reverse; gap: 8px;
642
+ width: min(420px, calc(100vw - 32px)); pointer-events: none;
643
+ }
644
+ .pbe-toast {
645
+ pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 12px 8px 12px 14px; border-radius: 12px;
646
+ background: var(--_overlay); box-shadow: var(--_shadow-pop); font-size: 14px; color: var(--_text);
647
+ }
648
+ .pbe-toast-icon { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; margin-top: -1px; }
649
+ .pbe-toast--success .pbe-toast-icon { background: var(--_ok-bg); color: var(--_ok-tx); }
650
+ .pbe-toast--error .pbe-toast-icon { background: var(--_danger-bg); color: var(--_danger-tx); }
651
+ .pbe-toast--info .pbe-toast-icon { background: var(--_info-bg); color: var(--_info-tx); }
652
+ .pbe-toast-text { flex: 1; min-width: 0; padding-top: 1px; }
653
+ .pbe-toast-title { display: block; font-weight: 500; }
654
+ .pbe-toast-detail { display: block; margin-top: 1px; color: var(--_text-3); font-size: 13px; }
655
+ .pbe-toast .pbe-icon-button { width: 28px; height: 28px; margin: -3px 0 -3px 0; }
656
+
657
+ /* ================================================================= Today */
658
+ .pbe-health { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font-size: 13px; color: var(--_text-2); }
659
+ .pbe-health-item {
660
+ display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; border: 0; background: none; padding: 4px 6px; margin: -4px -6px;
661
+ border-radius: 6px; color: inherit; cursor: pointer; font-size: inherit;
662
+ }
663
+ @media (hover: hover) { .pbe-health-item:hover { color: var(--_text); background: var(--_hover); } }
664
+ .pbe-health-item .pbe-muted { margin-left: -3px; }
665
+
666
+ /* The requests waiting for an answer: the one emphasised panel on the page.
667
+ The accent tint, the count and the countdowns carry the urgency; the most
668
+ urgent few show as compact rows, the rest are one "Show all" away. */
669
+ .pbe-urgent {
670
+ border-radius: var(--_r-xl); background: var(--_accent-soft); border: 1px solid var(--_accent-line); padding: 6px;
671
+ box-shadow: var(--_hl);
672
+ }
673
+ .pbe-urgent-head { display: flex; align-items: center; gap: 10px 14px; padding: 10px 10px 12px 12px; }
674
+ .pbe-urgent-number {
675
+ flex: none; min-width: 34px; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; text-align: center;
676
+ color: var(--_accent-ink); font-variant-numeric: tabular-nums;
677
+ }
678
+ .pbe-urgent-text { flex: 1; min-width: 0; }
679
+ .pbe-urgent-title { font-size: 16px; font-weight: 600; letter-spacing: -0.016em; }
680
+ .pbe-urgent-sub { margin-top: 2px; font-size: 13px; color: var(--_text-2); }
681
+ .pbe-urgent-sub b { color: var(--_text); font-weight: 500; }
682
+ .pbe-urgent-ended { color: var(--_st-expired-tx); font-weight: 500; }
683
+ .pbe-urgent-link { flex: none; }
684
+ .pbe-requests { overflow: hidden; background: var(--_raised); border: 1px solid var(--_line-2); border-radius: 11px; box-shadow: var(--_hl), var(--_shadow-card); }
685
+ /* One request, one line: countdown, who, what, when, the answers. The whole
686
+ row opens the booking (its name is the button; the answers sit above it). */
687
+ .pbe-request {
688
+ position: relative; display: grid; align-items: center; column-gap: 16px; row-gap: 2px; min-height: 52px; padding: 8px 12px 8px 14px;
689
+ grid-template-columns: 24px 128px minmax(96px, 1fr) minmax(120px, 1.25fr) 172px auto;
690
+ grid-template-areas: 'ring hold name svc when actions';
691
+ }
692
+ .pbe-request + .pbe-request { border-top: 1px solid var(--_line); }
693
+ .pbe-request > .pbe-ring { grid-area: ring; }
694
+ .pbe-request-hold { grid-area: hold; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
695
+ .pbe-request-left { font-size: 13.5px; font-weight: 600; color: var(--_st-pending-tx); font-variant-numeric: tabular-nums; white-space: nowrap; }
696
+ .pbe-request--soon .pbe-request-left { color: var(--_danger-tx); }
697
+ .pbe-request--ended .pbe-request-left { color: var(--_st-expired-tx); }
698
+ .pbe-request-until { display: none; font-size: 12.5px; color: var(--_text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
699
+ .pbe-request-name {
700
+ grid-area: name; justify-self: start; max-width: 100%; border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
701
+ font-weight: 500; color: var(--_text); border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
702
+ }
703
+ .pbe-request-name::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
704
+ .pbe-request-meta { display: contents; }
705
+ .pbe-request-svc { grid-area: svc; }
706
+ .pbe-request-when { grid-area: when; font-variant-numeric: tabular-nums; }
707
+ .pbe-request-svc, .pbe-request-when { min-width: 0; font-size: 13.5px; color: var(--_text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
708
+ .pbe-request-actions { grid-area: actions; position: relative; z-index: 1; display: flex; gap: 8px; justify-content: flex-end; }
709
+ .pbe-request-actions .pbe-button { min-width: 84px; }
710
+ .pbe-request-error { grid-area: error; position: relative; z-index: 1; margin: 6px 0 4px; }
711
+ .pbe-request--error { grid-template-areas: 'ring hold name svc when actions' '. error error error error error'; }
712
+ @media (hover: hover) {
713
+ .pbe-request:has(> .pbe-request-name:hover) { background: var(--_hover); }
714
+ .pbe-request-name:hover { text-decoration: underline; text-underline-offset: 3px; }
715
+ }
716
+ .pbe-request:has(> .pbe-request-name:active) { background: var(--_press); }
717
+ /* Keyboard focus outlines the whole row it opens. */
718
+ .pbe-admin .pbe-request > button.pbe-request-name:focus-visible { box-shadow: none !important; }
719
+ .pbe-request > .pbe-request-name:focus-visible::after { box-shadow: inset 0 0 0 2px var(--_accent-ink); }
720
+ .pbe-requests-more {
721
+ width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
722
+ border: 0; border-top: 1px solid var(--_line); background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--_text-2); cursor: pointer;
723
+ }
724
+ .pbe-requests-more .pbe-icon { color: var(--_text-3); }
725
+ @media (hover: hover) { .pbe-requests-more:hover { background: var(--_hover); color: var(--_text); } }
726
+ .pbe-admin .pbe-requests > button.pbe-requests-more:focus-visible { box-shadow: inset 0 0 0 2px var(--_accent-ink) !important; border-radius: 0 0 10px 10px; }
727
+ .pbe-urgent--calm { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: var(--_r-lg); background: var(--_raised); border-color: var(--_line-2); box-shadow: var(--_hl), var(--_shadow-card); }
728
+ .pbe-calm-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--_ok-bg); color: var(--_ok-tx); }
729
+ .pbe-calm-text { flex: 1; min-width: 0; }
730
+ .pbe-calm-title { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
731
+ .pbe-calm-sub { font-size: 13px; color: var(--_text-3); }
732
+
733
+ /* KPI tiles: one dominant number each. */
734
+ .pbe-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
735
+ .pbe-kpi {
736
+ position: relative; display: flex; flex-direction: column; gap: 0; min-height: 148px; padding: 18px 18px 16px 20px; text-align: left;
737
+ font: inherit; color: inherit; cursor: pointer;
738
+ background: var(--_raised); border: 1px solid var(--_line-2); border-radius: var(--_r-lg); box-shadow: var(--_hl), var(--_shadow-card);
739
+ transition: border-color var(--_t1) var(--_ease), background-color var(--_t1) var(--_ease);
740
+ }
741
+ @media (hover: hover) { .pbe-kpi:hover { border-color: color-mix(in oklab, var(--_control) 70%, var(--_line-2)); } }
742
+ .pbe-kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--_text-2); }
743
+ .pbe-kpi-label .pbe-arrow { margin-left: auto; color: var(--_text-3); opacity: 0; transition: opacity var(--_t1) var(--_ease), transform var(--_t1) var(--_ease); }
744
+ @media (hover: hover) { .pbe-kpi:hover .pbe-kpi-label .pbe-arrow { opacity: 1; transform: translate(1px, -1px); } }
745
+ .pbe-kpi:focus-visible .pbe-kpi-label .pbe-arrow { opacity: 1; transform: translate(1px, -1px); }
746
+ .pbe-kpi-row { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
747
+ .pbe-kpi-value { font-size: 40px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
748
+ .pbe-kpi-value small { font-size: 14px; font-weight: 500; letter-spacing: -0.008em; color: var(--_text-3); margin-left: 6px; }
749
+ .pbe-kpi-value .pbe-kpi-prefix { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--_text-3); margin: 0 4px 0 0; }
750
+ .pbe-kpi-value--muted { color: var(--_text-2); }
751
+ .pbe-kpi-sub { margin-top: 10px; font-size: 13px; color: var(--_text-3); min-height: 19.5px; }
752
+ .pbe-kpi-sub b { font-weight: 500; color: var(--_text-2); }
753
+ .pbe-kpi .pbe-meter { margin-top: 12px; }
754
+ .pbe-bars { display: flex; align-items: flex-end; gap: 3px; height: 38px; flex: none; padding-bottom: 1px; box-shadow: 0 1px 0 var(--_chart-grid); }
755
+ .pbe-bars > span { width: 6px; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--_chart-ink); }
756
+ .pbe-bars--wide > span { width: 11px; border-radius: 3px 3px 0 0; }
757
+ .pbe-bars > .pbe-bar--closed { height: 2px !important; border-radius: 1px; background: var(--_chart-closed); }
758
+ .pbe-bars > .pbe-bar--now { background: var(--_accent-ink); }
759
+ .pbe-bars-caption { display: block; margin-top: 6px; font-size: 11px; color: var(--_text-3); text-align: right; white-space: nowrap; }
760
+
761
+ /* Today's schedule: one lane on an hour axis. */
762
+ .pbe-schedule-legend { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--_text-3); }
763
+ .pbe-schedule-legend i { font-style: normal; }
764
+ .pbe-schedule-legend span { display: inline-flex; align-items: center; gap: 6px; }
765
+ .pbe-swatch { width: 14px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
766
+ .pbe-swatch--confirmed { background: var(--_raised-2); box-shadow: inset 3px 0 0 var(--_st-confirmed), inset 0 0 0 1px var(--_line-2); }
767
+ .pbe-swatch--request { background: var(--_st-pending-bg); border: 1px dashed var(--_st-pending); }
768
+ .pbe-swatch--open { border: 1px dashed var(--_control); }
769
+ .pbe-timeline { padding: 4px 20px 16px; }
770
+ .pbe-timeline-now-row { position: relative; height: 26px; }
771
+ .pbe-lane {
772
+ position: relative; height: 76px; border-radius: var(--_r-md); background-color: var(--_lane);
773
+ box-shadow: inset 0 0 0 1px var(--_line);
774
+ }
775
+ .pbe-lane-hour { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--_chart-grid); }
776
+ .pbe-axis { position: relative; height: 26px; }
777
+ .pbe-axis-tick { position: absolute; top: 9px; transform: translateX(-50%); font-size: 11.5px; color: var(--_text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
778
+ .pbe-axis-tick--first { transform: none; }
779
+ .pbe-axis-tick--last { transform: translateX(-100%); }
780
+ .pbe-block {
781
+ position: absolute; top: 7px; bottom: 7px; min-width: 6px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
782
+ padding: 0 8px 0 12px; overflow: hidden; border: 0; border-radius: 8px; text-align: left; cursor: pointer; font: inherit; color: var(--_text);
783
+ background: var(--_raised); box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl), var(--_shadow-card);
784
+ }
785
+ .pbe-block::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--_st-confirmed); }
786
+ .pbe-block b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
787
+ .pbe-block span { font-size: 12px; color: var(--_text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
788
+ /* Appointment blocks are buttons: they show it (pointer, hover, a focus ring above their neighbours). */
789
+ @media (hover: hover) {
790
+ button.pbe-block:hover { box-shadow: inset 0 0 0 1px var(--_control), var(--_hl), 0 3px 10px -4px rgba(0, 0, 0, 0.28); }
791
+ button.pbe-block--past:hover { background: var(--_raised); }
792
+ button.pbe-block--pending:hover { outline-style: solid; box-shadow: inset 0 0 0 1px var(--_st-pending), 0 3px 10px -4px rgba(0, 0, 0, 0.28); }
793
+ }
794
+ button.pbe-block:focus-visible { z-index: 4; }
795
+ .pbe-block--tight { padding: 0 4px 0 9px; }
796
+ .pbe-block--open.pbe-block--tight { padding: 0 4px 0 8px; }
797
+ .pbe-block--lane2 { top: auto; height: 30px; bottom: 4px; }
798
+ .pbe-block--past { background: color-mix(in oklab, var(--_raised) 50%, var(--_lane)); box-shadow: inset 0 0 0 1px var(--_line); }
799
+ .pbe-block--past b { color: var(--_text-2); font-weight: 500; }
800
+ .pbe-block--past::before { background: color-mix(in oklab, var(--_st-confirmed) 45%, transparent); }
801
+ .pbe-block--now { box-shadow: inset 0 0 0 1.5px var(--_accent-ink), var(--_hl); }
802
+ .pbe-block--completed::before { background: var(--_st-completed); }
803
+ .pbe-block--no_show::before { background: var(--_st-noshow); }
804
+ .pbe-block--pending { background: var(--_st-pending-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--_st-pending) 70%, transparent); outline: 1px dashed var(--_st-pending); outline-offset: -1px; }
805
+ .pbe-block--pending::before { display: none; }
806
+ .pbe-block--pending b { color: var(--_st-pending-tx); }
807
+ .pbe-block--open {
808
+ cursor: default; background: var(--_lane); box-shadow: none; border: 1px dashed var(--_control); padding-left: 10px;
809
+ }
810
+ .pbe-block--open::before, .pbe-block--closed::before { display: none; }
811
+ .pbe-block--open b { font-weight: 500; color: var(--_text-2); }
812
+ .pbe-block--closed {
813
+ cursor: default; box-shadow: inset 0 0 0 1px var(--_line);
814
+ background: repeating-linear-gradient(135deg, var(--_chart-closed) 0 1px, transparent 1px 7px), var(--_lane);
815
+ }
816
+ .pbe-block--closed b { font-weight: 500; color: var(--_text-3); }
817
+ .pbe-timeline-track { position: relative; }
818
+ .pbe-now { position: absolute; top: 0; height: 102px; width: 0; z-index: 2; pointer-events: none; }
819
+ .pbe-now-label {
820
+ position: absolute; top: 0; left: 0; transform: translateX(-50%); height: 22px; padding: 0 8px; border-radius: 11px;
821
+ display: inline-flex; align-items: center; background: var(--_accent); color: var(--_on-accent); font-size: 11.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
822
+ }
823
+ .pbe-now-line { position: absolute; top: 22px; bottom: 0; left: -1px; width: 2px; border-radius: 1px; background: var(--_accent-ink); }
824
+ .pbe-now-dot { position: absolute; bottom: -4px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--_accent-ink); box-shadow: 0 0 0 2px var(--_raised); }
825
+ .pbe-day-state { display: flex; align-items: center; gap: 16px; padding: 18px 20px 20px; }
826
+ .pbe-day-state-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line-2); color: var(--_text-2); }
827
+ .pbe-day-state-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
828
+ .pbe-day-state-title { font-weight: 600; font-size: 15px; }
829
+ .pbe-day-state-sub { color: var(--_text-3); font-size: 14px; }
830
+ .pbe-agenda { display: none; }
831
+
832
+ /* Now & next */
833
+ .pbe-nownext { display: flex; flex-direction: column; }
834
+ .pbe-now-card {
835
+ margin: 0 16px; padding: 14px 16px; border-radius: var(--_r-md); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center;
836
+ background: var(--_accent-soft); box-shadow: inset 0 0 0 1px var(--_accent-line);
837
+ }
838
+ .pbe-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--_text-3); }
839
+ .pbe-now-card .pbe-kicker { color: var(--_accent-ink); }
840
+ button.pbe-now-card { border: 0; width: calc(100% - 32px); text-align: left; font: inherit; color: inherit; cursor: pointer; }
841
+ @media (hover: hover) { button.pbe-now-card:hover { background: var(--_accent-tint); } }
842
+ .pbe-now-who { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.012em; }
843
+ .pbe-now-meta { font-size: 13px; color: var(--_text-2); font-variant-numeric: tabular-nums; }
844
+ .pbe-now-left { font-size: 13px; font-weight: 500; color: var(--_text); font-variant-numeric: tabular-nums; white-space: nowrap; }
845
+ .pbe-next { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
846
+ .pbe-next-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
847
+ .pbe-next-name { margin-top: 3px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
848
+ .pbe-next-meta { font-size: 14px; color: var(--_text-2); font-variant-numeric: tabular-nums; }
849
+ .pbe-note {
850
+ display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--_r-md); background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line);
851
+ font-size: 14px; color: var(--_text-2); overflow-wrap: anywhere;
852
+ }
853
+ .pbe-note .pbe-icon { color: var(--_text-3); margin-top: 2px; }
854
+ .pbe-next-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
855
+ .pbe-next-actions .pbe-mono { margin-left: auto; color: var(--_text-3); }
856
+ .pbe-list-rows { display: flex; flex-direction: column; }
857
+ .pbe-list-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--_line); min-height: 48px; }
858
+ .pbe-list-row:first-child { border-top: 0; }
859
+ .pbe-list-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
860
+ .pbe-list-row-main > :first-child { font-weight: 500; }
861
+ .pbe-list-row-main > :nth-child(2) { font-size: 13px; color: var(--_text-3); overflow-wrap: anywhere; }
862
+ .pbe-list-row-date { width: 104px; flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
863
+ .pbe-health-card { display: none; }
864
+ button.pbe-health-row { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
865
+ .pbe-list-rows > li:first-child > .pbe-health-row { border-top: 0; }
866
+ @media (hover: hover) { button.pbe-health-row:hover { background: var(--_hover); } }
867
+ .pbe-health-row > .pbe-icon { color: var(--_text-3); }
868
+ .pbe-phone-only { display: none !important; }
869
+
870
+ /* Setup checklist */
871
+ .pbe-setup-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px 14px; flex-wrap: wrap; }
872
+ .pbe-setup-head .pbe-meter { width: 160px; }
873
+ .pbe-setup-list { padding: 0 8px 8px; }
874
+ .pbe-setup-item {
875
+ width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 44px; border-radius: var(--_r-md);
876
+ border: 0; background: none; text-align: left; cursor: pointer; color: var(--_text); font-weight: 500;
877
+ }
878
+ @media (hover: hover) { .pbe-setup-item:hover { background: var(--_hover); } }
879
+ .pbe-setup-item .pbe-arrow { margin-left: auto; color: var(--_text-3); }
880
+ .pbe-setup-item--done { cursor: default; color: var(--_text-3); font-weight: 400; }
881
+ @media (hover: hover) { .pbe-setup-item--done:hover { background: none; } }
882
+ .pbe-step-mark { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--_control); }
883
+ .pbe-setup-item--done .pbe-step-mark { background: var(--_ok-bg); color: var(--_ok-tx); box-shadow: none; }
884
+
885
+ /* ============================================================== Bookings */
886
+ .pbe-bookings { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
887
+ .pbe-main:has(> .pbe-bookings--docked) { max-width: none; }
888
+ .pbe-bookings--docked { grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; }
889
+ .pbe-toolbar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
890
+ .pbe-page-actions .pbe-search { width: 300px; }
891
+ .pbe-results-note { font-size: 13px; color: var(--_text-3); }
892
+ .pbe-btable { table-layout: auto; }
893
+ .pbe-btable th.pbe-col-time { width: 112px; }
894
+ .pbe-btable td { padding-top: 13px; padding-bottom: 13px; }
895
+ .pbe-btable tbody tr { cursor: pointer; }
896
+ .pbe-btable tr.pbe-group td, .pbe-btable tr.pbe-group th {
897
+ height: 44px; padding-top: 14px; padding-bottom: 8px; background: none; cursor: default; vertical-align: bottom;
898
+ font-size: 13px; font-weight: 600; color: var(--_text); text-align: left; border-bottom: 1px solid var(--_line);
899
+ }
900
+ @media (hover: hover) { .pbe-btable tr.pbe-group:hover td, .pbe-btable tr.pbe-group:hover th { background: none; } }
901
+ .pbe-group-meta { font-weight: 400; color: var(--_text-3); margin-left: 8px; }
902
+ .pbe-today-tag {
903
+ display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 8px; border-radius: 10px; vertical-align: 1px;
904
+ background: var(--_accent-soft); box-shadow: inset 0 0 0 1px var(--_accent-line); color: var(--_accent-ink); font-size: 11.5px; font-weight: 600;
905
+ }
906
+ .pbe-time { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
907
+ .pbe-time b { font-weight: 500; }
908
+ .pbe-time span { font-size: 13px; color: var(--_text-3); }
909
+ .pbe-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
910
+ .pbe-who-name {
911
+ align-self: flex-start; max-width: 100%; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; border-radius: 4px;
912
+ font-weight: 500; color: var(--_text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
913
+ }
914
+ @media (hover: hover) { .pbe-who-name:hover { text-decoration: underline; text-underline-offset: 3px; } }
915
+ .pbe-who-mail { font-size: 13px; color: var(--_text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
916
+ .pbe-status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
917
+ .pbe-status-note { font-size: 12.5px; color: var(--_st-pending-tx); font-variant-numeric: tabular-nums; white-space: nowrap; }
918
+ .pbe-status-note--ended { color: var(--_st-expired-tx); }
919
+ .pbe-status-note--now { color: var(--_accent-ink); }
920
+ .pbe-ref-cell { font-family: var(--_mono); font-size: 12.5px; color: var(--_text-2); letter-spacing: 0.03em; white-space: nowrap; }
921
+ .pbe-btable tr.pbe-row--past td { color: var(--_text-3); }
922
+ .pbe-btable tr.pbe-row--past .pbe-who-name, .pbe-btable tr.pbe-row--past .pbe-time b { color: var(--_text-2); }
923
+ .pbe-btable tr.pbe-row--cancelled .pbe-who-name, .pbe-btable tr.pbe-row--cancelled .pbe-svc { text-decoration: line-through; text-decoration-color: var(--_text-3); color: var(--_text-3); }
924
+ .pbe-btable tr[data-selected] td { background: var(--_accent-soft); }
925
+ .pbe-btable tr[data-selected] td:first-child { box-shadow: inset 3px 0 0 var(--_accent-ink); }
926
+ .pbe-svc { color: var(--_text-2); }
927
+ .pbe-btable td.pbe-col-svc, .pbe-btable td.pbe-col-value { white-space: nowrap; }
928
+ .pbe-bookings--docked .pbe-col-ref { display: none; }
929
+
930
+ /* Booking detail (drawer contents) */
931
+ .pbe-when {
932
+ border-radius: var(--_r-lg); background: var(--_raised); box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl), var(--_shadow-card);
933
+ display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
934
+ }
935
+ .pbe-admin[data-mode='light'] .pbe-drawer .pbe-when { background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line-2); }
936
+ .pbe-when-day { font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--_text-3); }
937
+ .pbe-when-time { font-size: 24px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.2; }
938
+ .pbe-when-dur { font-size: 13px; color: var(--_text-3); }
939
+ .pbe-when-svc { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--_line); color: var(--_text-2); }
940
+ .pbe-when-svc b { color: var(--_text); font-weight: 500; }
941
+ .pbe-hold-card {
942
+ display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--_r-lg);
943
+ background: var(--_st-pending-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--_st-pending) 32%, transparent);
944
+ }
945
+ .pbe-hold-card--ended { background: var(--_st-expired-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--_st-expired) 35%, transparent); }
946
+ .pbe-hold-card-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--_st-pending) 18%, transparent); color: var(--_st-pending-tx); }
947
+ .pbe-hold-card--ended .pbe-hold-card-icon { background: color-mix(in oklab, var(--_st-expired) 18%, transparent); color: var(--_st-expired-tx); }
948
+ .pbe-hold-card-title { font-weight: 600; font-variant-numeric: tabular-nums; }
949
+ .pbe-hold-card-title span { color: var(--_st-pending-tx); }
950
+ .pbe-hold-card--ended .pbe-hold-card-title span { color: var(--_st-expired-tx); }
951
+ .pbe-hold-card-text { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--_text-2); }
952
+ .pbe-block-title { font-size: 13px; font-weight: 500; color: var(--_text-3); margin-bottom: 8px; }
953
+ .pbe-contact { display: flex; flex-direction: column; border-radius: var(--_r-lg); box-shadow: inset 0 0 0 1px var(--_line-2); overflow: hidden; }
954
+ .pbe-contact-row {
955
+ min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: var(--_text) !important; text-decoration: none;
956
+ }
957
+ .pbe-contact-row + .pbe-contact-row { border-top: 1px solid var(--_line); }
958
+ .pbe-contact-row .pbe-icon { color: var(--_text-3); }
959
+ @media (hover: hover) { .pbe-contact-row:hover { background: var(--_hover); } }
960
+ .pbe-contact-value { flex: 1; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
961
+ .pbe-contact-action { font-size: 13px; font-weight: 500; color: var(--_text-2); }
962
+ .pbe-facts { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px 12px; font-size: 14px; }
963
+ .pbe-facts dt { color: var(--_text-3); }
964
+ .pbe-facts dd { color: var(--_text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
965
+ .pbe-facts .pbe-ok-text { color: var(--_ok-tx); }
966
+ .pbe-facts .pbe-icon-button { width: 30px; height: 30px; margin: -6px 0; }
967
+ .pbe-facts .pbe-warn-text { color: var(--_warn-tx); }
968
+ .pbe-activity { display: flex; flex-direction: column; }
969
+ .pbe-activity li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; padding-bottom: 14px; font-size: 14px; color: var(--_text-2); }
970
+ .pbe-activity li::before { content: ''; position: absolute; left: 8.5px; top: 20px; bottom: 2px; width: 1px; background: var(--_line-2); }
971
+ .pbe-activity li:last-child { padding-bottom: 0; }
972
+ .pbe-activity li:last-child::before { display: none; }
973
+ .pbe-activity b { color: var(--_text); font-weight: 500; }
974
+ .pbe-activity time { font-size: 13px; color: var(--_text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
975
+ .pbe-act-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_control); color: var(--_text-2); }
976
+ .pbe-act-dot--now { box-shadow: inset 0 0 0 2px var(--_st-pending); }
977
+ .pbe-act-dot--now::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--_st-pending); }
978
+ .pbe-act-dot--future { background: none; box-shadow: inset 0 0 0 1px var(--_line-2); }
979
+
980
+ /* ========================================================= Website editor */
981
+ .pbe-content-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 24px; align-items: start; }
982
+ .pbe-content-picker { display: none; }
983
+ .pbe-content-nav { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 2px; }
984
+ .pbe-content-nav button {
985
+ display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 0 12px; text-align: left;
986
+ border: 0; border-radius: var(--_r-md); background: none; color: var(--_text-2); font-size: 14px; font-weight: 500; cursor: pointer;
987
+ }
988
+ @media (hover: hover) { .pbe-content-nav button:hover { background: var(--_hover); color: var(--_text); } }
989
+ .pbe-content-nav button[aria-current='true'] { background: var(--_raised); color: var(--_text); box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl), var(--_shadow-card); }
990
+ .pbe-content-nav .pbe-dot { background: var(--_warn); }
991
+ .pbe-content-nav .pbe-dot--error { background: var(--_danger); }
992
+ .pbe-content-card { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 22px; }
993
+ .pbe-content-card-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--_line); }
994
+ .pbe-content-bar {
995
+ position: sticky; bottom: 12px; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 10px 16px;
996
+ background: var(--_overlay); border-radius: 14px; box-shadow: var(--_shadow-pop);
997
+ }
998
+ .pbe-content-bar-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
999
+ .pbe-status-pill { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; font-size: 14px; color: var(--_text-2); min-width: 0; }
1000
+ .pbe-status-pill--error { color: var(--_danger-tx); }
1001
+ .pbe-status-pill .pbe-dot { background: var(--_warn); }
1002
+ .pbe-status-pill .pbe-dot--error { background: var(--_danger); }
1003
+ .pbe-status-pill .pbe-dot--ok { background: var(--_ok); }
1004
+ .pbe-content-bar .pbe-notice { padding: 10px 12px; }
1005
+ .pbe-field-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 22px; }
1006
+ .pbe-field-head label, .pbe-field-head legend { font-size: 14px; font-weight: 500; color: var(--_text); padding: 0; }
1007
+ .pbe-counter { margin-left: auto; font-size: 12px; color: var(--_text-3); font-variant-numeric: tabular-nums; }
1008
+ .pbe-counter--over { color: var(--_danger-tx); font-weight: 600; }
1009
+ .pbe-reset { margin-left: auto; font-size: 13px; }
1010
+ .pbe-counter + .pbe-reset { margin-left: 4px; }
1011
+ .pbe-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
1012
+ .pbe-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
1013
+ .pbe-choice {
1014
+ display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--_r-md); cursor: pointer;
1015
+ border: 1px solid var(--_control); background: var(--_raised); box-shadow: var(--_hl);
1016
+ }
1017
+ .pbe-admin[data-mode='dark'] .pbe-choice { background: var(--_raised-2); }
1018
+ @media (hover: hover) { .pbe-choice:hover { border-color: color-mix(in oklab, var(--_control) 60%, var(--_text)); } }
1019
+ .pbe-choice:has(input:checked) { border-color: var(--_accent-ink); box-shadow: inset 0 0 0 1px var(--_accent-ink); background: var(--_accent-soft); }
1020
+ .pbe-choice:has(input:focus-visible) { box-shadow: var(--_focus-ring); }
1021
+ .pbe-choice input { margin-top: 2px; }
1022
+ .pbe-choice strong { font-weight: 500; }
1023
+ .pbe-choice > span { display: flex; flex-direction: column; gap: 2px; }
1024
+ .pbe-image-field { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
1025
+ .pbe-image-preview {
1026
+ width: 200px; aspect-ratio: 4 / 3; border-radius: var(--_r-md); overflow: hidden; display: grid; place-items: center;
1027
+ background: repeating-conic-gradient(var(--_raised-2) 0 25%, var(--_raised) 0 50%) 0 0 / 16px 16px; box-shadow: inset 0 0 0 1px var(--_line-2);
1028
+ color: var(--_text-3); font-size: 13px; text-align: center; padding: 8px;
1029
+ }
1030
+ .pbe-image-preview:has(img) { padding: 0; }
1031
+ .pbe-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
1032
+ .pbe-image-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
1033
+ .pbe-image-actions { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
1034
+ .pbe-color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
1035
+ .pbe-admin .pbe-color-row input[type='color'] {
1036
+ width: 44px; height: var(--_control-h); padding: 3px; border: 1px solid var(--_control); border-radius: var(--_r-sm); background: var(--_raised); cursor: pointer;
1037
+ }
1038
+ .pbe-admin .pbe-color-row input[type='text'] { width: 9.5rem; font-family: var(--_mono); font-size: 13px; letter-spacing: 0.02em; }
1039
+ .pbe-contrast { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
1040
+ .pbe-contrast-sample {
1041
+ height: 28px; padding: 0 10px; border-radius: 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: 13px;
1042
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
1043
+ }
1044
+ .pbe-list { display: flex; flex-direction: column; gap: 10px; }
1045
+ .pbe-list-item {
1046
+ border-radius: var(--_r-lg); padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 14px;
1047
+ background: color-mix(in oklab, var(--_raised) 45%, var(--_canvas)); box-shadow: inset 0 0 0 1px var(--_line-2);
1048
+ }
1049
+ .pbe-list-item-head { display: flex; align-items: center; gap: 4px; }
1050
+ .pbe-list-item-head strong { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1051
+ .pbe-list-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
1052
+ /* A file dragged over an image field: the frame takes the accent. */
1053
+ .pbe-image-field--over .pbe-image-preview, .pbe-photo-row--over .pbe-image-preview { box-shadow: inset 0 0 0 2px var(--_accent-ink); }
1054
+
1055
+ /* An empty image field: one button that opens the file chooser and takes a dropped file. */
1056
+ .pbe-dropzone {
1057
+ width: 100%; min-height: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
1058
+ padding: 16px; border: 1px dashed var(--_control); border-radius: var(--_r-md); text-align: center; font: inherit; cursor: pointer;
1059
+ background: color-mix(in oklab, var(--_raised) 55%, var(--_canvas)); color: var(--_text-2);
1060
+ }
1061
+ :where(.pbe-admin[data-mode='dark']) .pbe-dropzone { background: color-mix(in oklab, var(--_raised-2) 70%, var(--_overlay)); }
1062
+ @media (hover: hover) { .pbe-dropzone:hover { border-color: color-mix(in oklab, var(--_control) 55%, var(--_text)); background: var(--_raised-2); } }
1063
+ .pbe-dropzone.pbe-dropzone--over { border-style: solid; border-color: var(--_accent-ink); background: var(--_accent-soft); box-shadow: inset 0 0 0 1px var(--_accent-ink); }
1064
+ .pbe-dropzone[aria-busy='true'] { cursor: progress; }
1065
+ .pbe-dropzone-icon {
1066
+ position: relative; width: 36px; height: 36px; margin-bottom: 7px; border-radius: 10px; display: grid; place-items: center;
1067
+ background: var(--_raised); box-shadow: inset 0 0 0 1px var(--_line-2), var(--_hl), var(--_shadow-card); color: var(--_text-2);
1068
+ }
1069
+ .pbe-dropzone-icon .pbe-spinner { width: 16px; height: 16px; color: var(--_text-2); }
1070
+ .pbe-dropzone-title { font-size: 14px; font-weight: 500; color: var(--_text); }
1071
+ .pbe-dropzone-hint { font-size: 13px; color: var(--_text-3); }
1072
+
1073
+ /* ================================================================ Services */
1074
+ .pbe-svc-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
1075
+ .pbe-svc-thumb {
1076
+ position: relative; width: 40px; height: 40px; flex: none; border-radius: var(--_r-sm); overflow: hidden; display: grid; place-items: center;
1077
+ background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line-2); color: var(--_text-off);
1078
+ }
1079
+ .pbe-svc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
1080
+ .pbe-svc-thumb:has(img)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
1081
+ .pbe-svc-thumb--none { background: color-mix(in oklab, var(--_raised-2) 60%, var(--_raised)); }
1082
+ .pbe-row-muted .pbe-svc-thumb img { opacity: 0.55; }
1083
+ .pbe-photo { gap: 10px; }
1084
+ .pbe-photo-legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--_text); }
1085
+ .pbe-photo-help { margin-top: 2px; }
1086
+ .pbe-photo--error .pbe-dropzone { border-color: var(--_danger); }
1087
+ .pbe-photo-row {
1088
+ display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: 'frame actions' 'frame note';
1089
+ grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 10px; align-items: start;
1090
+ }
1091
+ .pbe-photo-row .pbe-photo-frame { grid-area: frame; width: 120px; border-radius: var(--_r-md); }
1092
+ .pbe-photo-actions { grid-area: actions; padding-top: 2px; gap: 8px; }
1093
+ .pbe-photo-note { grid-area: note; }
1094
+ .pbe-photo-state {
1095
+ display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 6px; border-radius: 10px; vertical-align: 1px;
1096
+ background: var(--_accent-soft); box-shadow: inset 0 0 0 1px var(--_accent-line); color: var(--_accent-ink); font-size: 11.5px; font-weight: 600;
1097
+ }
1098
+ .pbe-photo-undo { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: -4px; }
1099
+
1100
+ /* ===================================================== Hours & closures */
1101
+ .pbe-hours { display: flex; flex-direction: column; }
1102
+ .pbe-hours-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--_line); min-height: 64px; }
1103
+ .pbe-hours-row:first-child { border-top: 0; }
1104
+ .pbe-hours-day { font-weight: 500; }
1105
+ .pbe-hours-ranges { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
1106
+ .pbe-hours-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
1107
+ .pbe-hours-range .pbe-dash { color: var(--_text-3); }
1108
+ .pbe-hours-closed { display: inline-flex; align-items: center; gap: 8px; color: var(--_text-3); }
1109
+ .pbe-closure-form .pbe-form { padding: 20px; }
1110
+ .pbe-closures { display: flex; flex-direction: column; }
1111
+ .pbe-closure { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border-top: 1px solid var(--_line); }
1112
+ .pbe-closure:first-child { border-top: 0; }
1113
+ .pbe-closure-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line-2); color: var(--_text-2); }
1114
+ .pbe-closure-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
1115
+ .pbe-closure-text > :first-child { font-weight: 500; font-variant-numeric: tabular-nums; }
1116
+ .pbe-closure-text > :last-child { font-size: 13px; color: var(--_text-3); overflow-wrap: anywhere; }
1117
+
1118
+ /* =================================================== Email & online booking */
1119
+ .pbe-status-head { display: flex; align-items: center; gap: 14px; }
1120
+ .pbe-status-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line-2); color: var(--_text-2); }
1121
+ .pbe-status-icon--ok { background: var(--_ok-bg); color: var(--_ok-tx); box-shadow: none; }
1122
+ .pbe-status-icon--bad { background: var(--_danger-bg); color: var(--_danger-tx); box-shadow: none; }
1123
+ .pbe-status-icon--warn { background: var(--_warn-bg); color: var(--_warn-tx); box-shadow: none; }
1124
+ .pbe-stats-line { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--_text-3); }
1125
+ .pbe-stats-line b { color: var(--_text); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
1126
+ .pbe-details { border-radius: var(--_r-md); box-shadow: inset 0 0 0 1px var(--_line-2); background: color-mix(in oklab, var(--_raised) 50%, var(--_canvas)); }
1127
+ .pbe-details > summary {
1128
+ list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
1129
+ font-size: 14px; font-weight: 500; color: var(--_text-2); border-radius: var(--_r-md);
1130
+ }
1131
+ .pbe-details > summary::-webkit-details-marker { display: none; }
1132
+ .pbe-details > summary .pbe-icon { color: var(--_text-3); transition: transform var(--_t2) var(--_ease); }
1133
+ .pbe-details[open] > summary .pbe-icon { transform: rotate(180deg); }
1134
+ .pbe-details-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
1135
+ .pbe-checklist { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
1136
+ .pbe-checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--_text-2); }
1137
+ .pbe-checklist-mark { width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--_control); color: var(--_text-3); }
1138
+ .pbe-checklist .pbe-done .pbe-checklist-mark { box-shadow: none; background: var(--_ok-bg); color: var(--_ok-tx); }
1139
+ .pbe-checklist .pbe-bad .pbe-checklist-mark { box-shadow: none; background: var(--_danger-bg); color: var(--_danger-tx); }
1140
+ .pbe-admin .pbe-code {
1141
+ display: block; margin: 0; padding: 12px 14px; border-radius: var(--_r-md); overflow-x: auto;
1142
+ background: #141417; color: #e6e6ea; font: 13px/1.6 var(--_mono); letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
1143
+ }
1144
+ .pbe-admin[data-mode='dark'] .pbe-code { background: var(--_sunken); }
1145
+ .pbe-inline-code { padding: 1px 5px; border-radius: 5px; background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line); font-size: 0.88em; }
1146
+
1147
+ /* ======================================================== centred screens */
1148
+ .pbe-center { display: grid; place-items: center; padding: 32px 16px; background: var(--_frame); }
1149
+ .pbe-center-card {
1150
+ width: 100%; max-width: 420px; padding: 32px; border-radius: 18px;
1151
+ background: var(--_raised); border: 1px solid var(--_line-2); box-shadow: var(--_hl), var(--_shadow-pop);
1152
+ }
1153
+ .pbe-center-card--wide { max-width: 520px; }
1154
+ .pbe-center-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; min-height: 30px; }
1155
+ .pbe-center-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--_raised-2); box-shadow: inset 0 0 0 1px var(--_line-2); color: var(--_text-2); }
1156
+ .pbe-center-title { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
1157
+ .pbe-center-text { margin-top: 8px; color: var(--_text-2); line-height: 1.55; }
1158
+ .pbe-center-text + .pbe-center-text { margin-top: 12px; }
1159
+ .pbe-center-body { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
1160
+ .pbe-center-foot { margin-top: 20px; text-align: center; font-size: 12px; color: var(--_text-3); }
1161
+ .pbe-loading-screen { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--_text-3); }
1162
+ .pbe-loading-screen .pbe-spinner { position: static; width: 22px; height: 22px; color: var(--_text-3); }
1163
+
1164
+ /* ========================================== compact desktop (900–1199 px) */
1165
+ @media (max-width: 1199px) {
1166
+ .pbe-admin { --_sidebar-w: 220px; }
1167
+ .pbe-sidebar { padding: 10px 10px 12px 12px; }
1168
+ .pbe-nav-item[aria-current='page']::before { left: -12px; }
1169
+ .pbe-main { padding: 28px 24px 48px; }
1170
+ .pbe-split { grid-template-columns: minmax(0, 1fr); }
1171
+ .pbe-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1172
+ /* Two lines per request: countdown and hold end; name, then what and when. */
1173
+ .pbe-request {
1174
+ grid-template-columns: 24px 118px minmax(0, 1fr) auto; padding-top: 9px; padding-bottom: 9px;
1175
+ grid-template-areas: 'ring hold name actions' 'ring hold meta actions';
1176
+ }
1177
+ .pbe-request--error { grid-template-areas: 'ring hold name actions' 'ring hold meta actions' '. error error error'; }
1178
+ .pbe-request-until { display: block; }
1179
+ .pbe-request-meta { grid-area: meta; display: flex; flex-wrap: wrap; column-gap: 5px; min-width: 0; }
1180
+ .pbe-request-svc, .pbe-request-when { font-size: 13px; color: var(--_text-3); }
1181
+ .pbe-request-when::before { content: '· '; }
1182
+ .pbe-col-ref, .pbe-btable td.pbe-col-ref { display: none; }
1183
+ .pbe-content-layout { grid-template-columns: 184px minmax(0, 1fr); gap: 18px; }
1184
+ .pbe-setting { grid-template-columns: minmax(0, 1fr); gap: 12px; }
1185
+ .pbe-setting--switch { grid-template-columns: minmax(0, 1fr) auto; }
1186
+ }
1187
+
1188
+ /* ===================================== phones and small tablets (< 900 px) */
1189
+ @media (max-width: 899px) {
1190
+ .pbe-admin { --_control-h: 44px; --_control-h-sm: 40px; --_control-h-lg: 48px; }
1191
+ .pbe-app { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
1192
+ .pbe-sidebar, .pbe-topbar { display: none; }
1193
+ .pbe-mobilebar {
1194
+ position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 6px 0 14px;
1195
+ background: color-mix(in srgb, var(--_canvas) 90%, transparent); border-bottom: 1px solid var(--_line);
1196
+ -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
1197
+ }
1198
+ .pbe-mobilebar .pbe-brand { flex: 1; min-width: 0; padding: 0; gap: 10px; }
1199
+ .pbe-mobilebar .pbe-icon-button { width: 44px; height: 44px; color: var(--_text-2); border-radius: 22px; }
1200
+ .pbe-canvas { margin: 0; border: 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 60px); overflow: visible; }
1201
+ .pbe-main { padding: 20px 16px 32px; gap: 20px; }
1202
+ .pbe-footer { padding-bottom: 16px; }
1203
+ .pbe-page { gap: 20px; }
1204
+ .pbe-page-title { font-size: 30px; letter-spacing: -0.035em; }
1205
+ .pbe-page-head { align-items: flex-start; }
1206
+ .pbe-page-actions { width: 100%; }
1207
+ .pbe-page-actions > .pbe-button, .pbe-page-actions > .pbe-search { flex: 1 1 auto; }
1208
+
1209
+ /* Bottom tab bar (Today, Bookings, Website, Services, More) and the More sheet. */
1210
+ .pbe-tabbar {
1211
+ display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
1212
+ background: var(--_frame); border-top: 1px solid var(--_line-2); padding-bottom: env(safe-area-inset-bottom);
1213
+ }
1214
+ .pbe-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px; }
1215
+ .pbe-tab-link {
1216
+ position: relative; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
1217
+ border: 0; background: none; padding: 0; cursor: pointer; text-decoration: none; color: var(--_text-3) !important; font-size: 11.5px; font-weight: 500;
1218
+ border-radius: 12px;
1219
+ }
1220
+ .pbe-tab-icon { width: 54px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
1221
+ .pbe-tab-link[aria-current='page'], .pbe-tab-link[aria-expanded='true'], .pbe-tab-link--within { color: var(--_text) !important; }
1222
+ .pbe-tab-link[aria-current='page'] .pbe-tab-icon, .pbe-tab-link[aria-expanded='true'] .pbe-tab-icon, .pbe-tab-link--within .pbe-tab-icon {
1223
+ background: var(--_accent-soft); color: var(--_accent-ink); box-shadow: inset 0 0 0 1px var(--_accent-line);
1224
+ }
1225
+ .pbe-tab-badge {
1226
+ position: absolute; top: 3px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
1227
+ display: grid; place-items: center; background: var(--_st-pending); color: #241800; font-size: 11px; font-weight: 700;
1228
+ box-shadow: 0 0 0 2px var(--_frame); font-variant-numeric: tabular-nums;
1229
+ }
1230
+ .pbe-sheet {
1231
+ display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 140px); overflow-y: auto;
1232
+ padding: 10px 12px 12px; border-bottom: 1px solid var(--_line-2); border-radius: 20px 20px 0 0; background: var(--_overlay);
1233
+ box-shadow: 0 -24px 48px -20px rgba(0, 0, 0, 0.35);
1234
+ }
1235
+ .pbe-sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--_line-2); margin: 0 auto 6px; }
1236
+ .pbe-sheet .pbe-nav-item { min-height: 48px; font-size: 15px; padding: 0 12px; }
1237
+ .pbe-sheet .pbe-nav-item[aria-current='page']::before { display: none; }
1238
+ .pbe-sheet-section { padding: 10px 4px 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--_line); margin-top: 6px; }
1239
+ .pbe-sheet .pbe-appearance { height: 44px; }
1240
+ .pbe-sheet .pbe-appearance-label { display: inline; }
1241
+ .pbe-sheet .pbe-account { border-top: 0; padding-top: 0; }
1242
+ .pbe-sheet .pbe-account .pbe-icon-button { width: 44px; height: 44px; }
1243
+ .pbe-scrim { display: block; position: fixed; inset: 0; z-index: 65; border: 0; padding: 0; background: var(--_scrim); cursor: default; }
1244
+ .pbe-toasts { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; }
1245
+
1246
+ /* Today */
1247
+ .pbe-phone-only { display: revert !important; }
1248
+ .pbe-desktop-only { display: none !important; }
1249
+ .pbe-health { display: none; }
1250
+ .pbe-health-card { display: block; }
1251
+ .pbe-urgent-head { flex-wrap: wrap; align-items: flex-start; column-gap: 10px; padding: 8px 6px 12px 8px; }
1252
+ .pbe-urgent-number { min-width: 0; font-size: 28px; }
1253
+ .pbe-urgent-text { flex-basis: calc(100% - 44px); padding-top: 3px; }
1254
+ .pbe-urgent-link { margin-left: 44px; }
1255
+ .pbe-urgent-head .pbe-button, .pbe-requests-more { min-height: 44px; height: auto; }
1256
+ .pbe-urgent--calm { flex-wrap: wrap; align-items: flex-start; padding: 14px; row-gap: 6px; }
1257
+ .pbe-urgent--calm .pbe-calm-text { flex: 1 1 calc(100% - 48px); }
1258
+ .pbe-urgent--calm .pbe-button { margin-left: 40px; }
1259
+ /* A compact card per request: who and the countdown, what and when, the answers. Tapping it opens every detail. */
1260
+ .pbe-request {
1261
+ grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name hold' 'meta meta' 'actions actions';
1262
+ column-gap: 12px; row-gap: 3px; padding: 12px 14px 14px;
1263
+ }
1264
+ .pbe-request--error { grid-template-areas: 'name hold' 'meta meta' 'error error' 'actions actions'; }
1265
+ .pbe-request > .pbe-ring, .pbe-request-until { display: none; }
1266
+ .pbe-request-hold { align-items: flex-end; }
1267
+ .pbe-request-left { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; background: var(--_st-pending-bg); }
1268
+ .pbe-request--soon .pbe-request-left { background: var(--_danger-bg); }
1269
+ .pbe-request--ended .pbe-request-left { background: var(--_st-expired-bg); }
1270
+ .pbe-request-name { font-size: 15px; }
1271
+ .pbe-request-meta { grid-area: meta; display: flex; flex-wrap: wrap; column-gap: 5px; min-width: 0; }
1272
+ .pbe-request-svc, .pbe-request-when { font-size: 13.5px; color: var(--_text-2); }
1273
+ .pbe-request-when::before { content: '· '; }
1274
+ .pbe-request-actions { margin-top: 9px; display: grid; grid-template-columns: 1fr 1.35fr; }
1275
+ .pbe-request-actions .pbe-button { height: var(--_control-h); min-width: 0; font-size: 14px; }
1276
+ .pbe-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
1277
+ .pbe-kpi { min-height: 0; padding: 14px 14px 14px 16px; }
1278
+ .pbe-kpi-value { font-size: 32px; }
1279
+ .pbe-kpi-row { padding-top: 10px; }
1280
+ .pbe-kpi-viz { display: none; }
1281
+ .pbe-kpi-sub { margin-top: 6px; font-size: 12.5px; }
1282
+ .pbe-kpi-label .pbe-arrow { display: none; }
1283
+ .pbe-timeline { display: none; }
1284
+ .pbe-schedule-legend { display: none; }
1285
+ .pbe-agenda { display: flex; flex-direction: column; }
1286
+ .pbe-agenda-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--_line); min-height: 56px; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
1287
+ .pbe-agenda-row:first-child { border-top: 0; }
1288
+ .pbe-agenda-time { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
1289
+ .pbe-agenda-time span { display: block; font-weight: 400; font-size: 12px; color: var(--_text-3); }
1290
+ .pbe-agenda-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
1291
+ .pbe-agenda-main > :first-child { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1292
+ .pbe-agenda-main > :last-child { font-size: 13px; color: var(--_text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1293
+ .pbe-agenda-row--past { opacity: 0.6; }
1294
+ .pbe-agenda-row--now { background: var(--_accent-soft); box-shadow: inset 3px 0 0 var(--_accent-ink); }
1295
+
1296
+ /* Bookings: the table becomes a list; details open in a full-height sheet. */
1297
+ .pbe-toolbar .pbe-segmented { width: 100%; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
1298
+ .pbe-toolbar .pbe-tab { height: 40px; justify-content: center; }
1299
+ .pbe-page-actions .pbe-search { width: 100%; }
1300
+ .pbe-btable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
1301
+ .pbe-btable, .pbe-btable tbody { display: block; }
1302
+ .pbe-btable tbody tr:not(.pbe-group) {
1303
+ display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: 'time who status' 'time svc status';
1304
+ column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--_line);
1305
+ }
1306
+ .pbe-btable td { display: block; padding: 0 !important; border: 0; min-width: 0; }
1307
+ .pbe-btable td.pbe-col-time { grid-area: time; align-self: start; }
1308
+ .pbe-btable td.pbe-col-who { grid-area: who; }
1309
+ .pbe-btable td.pbe-col-svc { grid-area: svc; font-size: 13px; }
1310
+ .pbe-btable td.pbe-col-value { display: none; }
1311
+ .pbe-btable td.pbe-col-status { grid-area: status; }
1312
+ .pbe-btable .pbe-who-mail { display: none; }
1313
+ .pbe-btable .pbe-status-cell { align-items: flex-end; }
1314
+ .pbe-btable tbody tr.pbe-brow:active, .pbe-agenda-row:active, .pbe-setup-item:active, button.pbe-health-row:active { background: var(--_press); }
1315
+ /* A narrow window with a mouse: the row, not each cell, takes the hover. */
1316
+ @media (hover: hover) { .pbe-btable tbody tr.pbe-brow:hover { background: var(--_hover); } .pbe-btable tbody tr.pbe-brow:hover td { background: none; } }
1317
+ .pbe-btable tr[data-selected] { background: var(--_accent-soft); box-shadow: inset 3px 0 0 var(--_accent-ink); }
1318
+ .pbe-btable tr[data-selected] td, .pbe-btable tr[data-selected] td:first-child { background: none; box-shadow: none; }
1319
+ .pbe-btable tr.pbe-group { display: block; }
1320
+ .pbe-btable tr.pbe-group th, .pbe-btable tr.pbe-group td { display: block; height: auto; padding: 16px 16px 8px !important; }
1321
+ .pbe-table--card th:first-child, .pbe-table--card td:first-child { padding-left: 16px; }
1322
+ .pbe-admin dialog.pbe-drawer { inset: 0; width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; }
1323
+ .pbe-drawer-bar { height: 60px; padding: 0 6px 0 16px; }
1324
+ .pbe-drawer-body { padding: 18px 16px 24px; }
1325
+ .pbe-drawer-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
1326
+ .pbe-facts { grid-template-columns: 104px minmax(0, 1fr); }
1327
+
1328
+ /* Forms and sections */
1329
+ .pbe-grid-2 { grid-template-columns: minmax(0, 1fr); }
1330
+ .pbe-setting { padding: 16px; }
1331
+ .pbe-settings-foot { padding: 12px 16px; }
1332
+ .pbe-settings-foot .pbe-button { flex: 1 1 auto; }
1333
+ .pbe-card-head { padding: 14px 16px; }
1334
+ .pbe-card-body { padding: 0 16px 16px; }
1335
+ .pbe-card--pad { padding: 16px; }
1336
+ .pbe-card-form { padding: 16px; }
1337
+ .pbe-card-details { margin: 0 16px 16px; }
1338
+ .pbe-settings-error { padding: 16px 16px 0; }
1339
+ .pbe-test-action { padding-bottom: 0; width: 100%; }
1340
+ .pbe-test-action .pbe-button { width: 100%; }
1341
+ .pbe-card-foot { padding: 12px 16px; }
1342
+ .pbe-content-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
1343
+ .pbe-content-picker { display: flex; flex-direction: column; gap: 8px; }
1344
+ .pbe-content-nav { display: none; }
1345
+ .pbe-content-card { padding: 18px 16px 22px; }
1346
+ .pbe-content-bar { bottom: calc(84px + env(safe-area-inset-bottom)); padding: 10px; }
1347
+ .pbe-content-bar .pbe-status-pill { flex-basis: 100%; font-size: 13px; }
1348
+ .pbe-content-bar-row .pbe-button { flex: 1 1 auto; padding: 0 12px; }
1349
+ .pbe-image-field { grid-template-columns: minmax(0, 1fr); }
1350
+ .pbe-photo-row { grid-template-areas: 'frame actions' 'note note'; grid-template-rows: auto; }
1351
+ .pbe-photo-actions { flex-direction: column; align-items: flex-start; }
1352
+ .pbe-photo-actions .pbe-button, .pbe-photo-undo .pbe-button { height: var(--_control-h); }
1353
+ .pbe-image-preview { width: 100%; max-width: 360px; }
1354
+ .pbe-hours-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
1355
+ .pbe-hours-ranges { grid-column: 1 / -1; grid-row: 2; }
1356
+ .pbe-closure { padding: 12px 12px 12px 16px; }
1357
+ .pbe-table--card thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
1358
+ .pbe-table--card:not(.pbe-btable), .pbe-table--card:not(.pbe-btable) tbody { display: block; }
1359
+ .pbe-table--card:not(.pbe-btable) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 14px 16px; border-bottom: 1px solid var(--_line); }
1360
+ .pbe-table--card:not(.pbe-btable) tbody tr:last-child { border-bottom: 0; }
1361
+ .pbe-table--card:not(.pbe-btable) td { display: block; padding: 0 !important; border: 0; min-width: 0; overflow-wrap: anywhere; }
1362
+ .pbe-table--card:not(.pbe-btable) td:first-child { grid-column: 1 / -1; margin-bottom: 2px; }
1363
+ .pbe-table--card:not(.pbe-btable) td:not(:first-child):not(.pbe-cell-actions) { grid-column: 1; color: var(--_text-2); font-size: 13px; }
1364
+ .pbe-table--card:not(.pbe-btable) .pbe-cell-actions { grid-column: 2; grid-row: 2 / span 3; align-self: center; width: auto; }
1365
+ /* Services: the details line up under the name, beside the photo tile. */
1366
+ .pbe-svc-table td:not(:first-child):not(.pbe-cell-actions) { margin-left: 54px; }
1367
+ .pbe-center-card { padding: 24px 20px; }
1368
+ }
1369
+ @media (max-width: 380px) {
1370
+ .pbe-main { padding-left: 12px; padding-right: 12px; }
1371
+ .pbe-kpis { grid-template-columns: minmax(0, 1fr); }
1372
+ .pbe-kpi-value { font-size: 30px; }
1373
+ .pbe-request-actions { grid-template-columns: 1fr 1fr; }
1374
+ .pbe-btable tbody tr:not(.pbe-group) { grid-template-columns: 70px minmax(0, 1fr); grid-template-areas: 'time who' 'time svc' 'time status'; }
1375
+ .pbe-btable .pbe-time span { display: none; }
1376
+ .pbe-btable .pbe-status-cell { align-items: flex-start; margin-top: 4px; }
1377
+ .pbe-urgent-number { font-size: 26px; }
1378
+ .pbe-tab-icon { width: 46px; }
1379
+ .pbe-facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
1380
+ .pbe-facts dd { margin-bottom: 8px; }
1381
+ }
1382
+
1383
+ /* ----------------------------------------------------------------- motion */
1384
+ @media (prefers-reduced-motion: no-preference) {
1385
+ .pbe-button, .pbe-icon-button, .pbe-nav-item, .pbe-tab, .pbe-appearance button, .pbe-site-link, .pbe-link-button,
1386
+ .pbe-table td, .pbe-content-nav button, .pbe-setup-item, .pbe-search-launch, .pbe-contact-row, .pbe-choice, .pbe-block, .pbe-tab-icon {
1387
+ transition: background-color var(--_t1) var(--_ease), color var(--_t1) var(--_ease), border-color var(--_t1) var(--_ease), box-shadow var(--_t1) var(--_ease);
1388
+ }
1389
+ .pbe-button:active:not(:disabled) { transform: translateY(0.5px); }
1390
+ .pbe-spinner { animation: pbe-spin 0.7s linear infinite; }
1391
+ .pbe-sk { animation: pbe-shimmer 1.4s linear infinite; }
1392
+ .pbe-ring-value { transition: stroke-dashoffset 600ms var(--_ease); }
1393
+ .pbe-request:not(.pbe-request--ended) .pbe-ring { animation: pbe-breathe 2.8s var(--_ease) infinite; }
1394
+ .pbe-now-dot { animation: pbe-now 2.4s var(--_ease) infinite; }
1395
+ .pbe-block:not(.pbe-block--open):not(.pbe-block--closed) { animation: pbe-wipe var(--_t3) var(--_ease) backwards; animation-delay: calc(var(--d, 0) * 1ms); }
1396
+ .pbe-drawer--docked, .pbe-admin dialog.pbe-drawer[open] { animation: pbe-drawer var(--_t3) var(--_ease) both; }
1397
+ .pbe-admin dialog.pbe-dialog[open] { animation: pbe-pop var(--_t2) var(--_ease) both; }
1398
+ .pbe-admin dialog::backdrop { animation: pbe-fade var(--_t2) var(--_ease) both; }
1399
+ .pbe-toast { animation: pbe-pop var(--_t2) var(--_ease) both; }
1400
+ .pbe-sheet { animation: pbe-sheet var(--_t3) var(--_ease) both; }
1401
+ .pbe-scrim { animation: pbe-fade var(--_t2) var(--_ease) both; }
1402
+ .pbe-kpi-value, .pbe-urgent-number { animation: pbe-rise var(--_t3) var(--_ease) both; }
1403
+ }
1404
+ @media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
1405
+ .pbe-admin dialog.pbe-drawer[open] { animation-name: pbe-sheet; }
1406
+ }
1407
+ @keyframes pbe-spin { to { transform: rotate(360deg); } }
1408
+ @keyframes pbe-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
1409
+ @keyframes pbe-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
1410
+ @keyframes pbe-now { 0%, 100% { box-shadow: 0 0 0 2px var(--_raised), 0 0 0 2px color-mix(in oklab, var(--_accent-ink) 35%, transparent); } 50% { box-shadow: 0 0 0 2px var(--_raised), 0 0 0 7px transparent; } }
1411
+ @keyframes pbe-wipe { from { clip-path: inset(0 100% 0 0 round 8px); } to { clip-path: inset(0 0 0 0 round 8px); } }
1412
+ @keyframes pbe-drawer { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
1413
+ @keyframes pbe-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
1414
+ @keyframes pbe-pop { from { transform: translateY(4px) scale(0.985); opacity: 0; } to { transform: none; opacity: 1; } }
1415
+ @keyframes pbe-fade { from { opacity: 0; } to { opacity: 1; } }
1416
+ @keyframes pbe-rise { from { transform: translateY(3px); opacity: 0; } to { transform: none; opacity: 1; } }
1417
+ @media (prefers-reduced-motion: reduce) {
1418
+ .pbe-admin *, .pbe-admin *::before, .pbe-admin *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
1419
+ }
1420
+
1421
+ /* One focus ring, in the accent, always on top of component shadows. Text
1422
+ fields have their own (an accent border and a soft ring). */
1423
+ .pbe-admin :is(a, button, summary, [tabindex], input[type='checkbox'], input[type='color']):focus-visible { box-shadow: var(--_focus-ring) !important; }