:root{
 --pro-green:#0d382b;--pro-green-2:#176a4c;--pro-bg:#f4f5f2;--pro-surface:#fbfcfa;
 --pro-white:#fff;--pro-text:#14211b;--pro-muted:#6b746f;--pro-line:#dfe4df;
 --pro-red:#d93025;--pro-yellow:#a36b00;--pro-blue:#1769aa;--pro-gold:#a67c2e;
 --pro-radius-card:18px;--pro-radius-sheet:24px;--pro-radius-control:14px;
 --pro-header-h:58px;--pro-control-h:48px;--pro-tap-min:44px;--pro-editor-wide:640px;--pro-calendar-wide:760px;
 --pro-overlay:rgba(9,20,16,.58);--pro-dialog-overlay:rgba(9,20,16,.58);--pro-blur:18px;
 --pro-ease:cubic-bezier(.2,.8,.2,1);--pro-fast:180ms;--pro-normal:260ms;
}
.pro-ui-lock{overflow:hidden!important;overscroll-behavior:none}
.pro-ui-overlay{position:fixed;inset:0;z-index:99990;background:var(--pro-overlay);opacity:0;pointer-events:none;transition:opacity var(--pro-fast) ease}
.pro-ui-overlay.is-open{opacity:1;pointer-events:auto}
.pro-ui-sheet{position:fixed;z-index:99991;left:50%;bottom:0;width:min(520px,100%);max-height:min(88dvh,880px);display:flex;flex-direction:column;background:var(--pro-surface);color:var(--pro-text);border-radius:var(--pro-radius-sheet) var(--pro-radius-sheet) 0 0;transform:translate(-50%,105%);transition:transform var(--pro-normal) var(--pro-ease);box-shadow:0 -18px 50px rgba(0,0,0,.14);overflow:hidden}
.pro-ui-sheet.is-open{transform:translate(-50%,0)}
.pro-ui-grabber{width:36px;height:5px;border-radius:999px;background:#c7ccc8;margin:7px auto -7px;flex:0 0 auto}
.pro-ui-header{height:var(--pro-header-h);min-height:var(--pro-header-h);display:grid;grid-template-columns:96px 1fr 96px;align-items:center;padding:0 12px;border-bottom:1px solid var(--pro-line);background:rgba(251,252,250,.94);backdrop-filter:blur(var(--pro-blur));-webkit-backdrop-filter:blur(var(--pro-blur));position:sticky;top:0;z-index:4}
.pro-ui-title{text-align:center;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pro-ui-back,.pro-ui-close{min-width:var(--pro-tap-min);min-height:var(--pro-tap-min);border:0;background:none;color:var(--pro-green);font:inherit;cursor:pointer}
.pro-ui-back{text-align:left;font-size:16px}.pro-ui-back[hidden]{visibility:hidden;display:block}
.pro-ui-close{text-align:right;font-size:28px;line-height:1}
.pro-ui-content{overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:16px;flex:1}
.pro-ui-actions{position:sticky;bottom:0;display:flex;gap:9px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--pro-line);background:rgba(249,250,248,.96);backdrop-filter:blur(var(--pro-blur));z-index:3}
.pro-ui-btn{min-height:var(--pro-control-h);border-radius:var(--pro-radius-control);padding:0 16px;font:inherit;font-weight:800;border:1px solid #cfd6d1;background:#fff;color:var(--pro-text);touch-action:manipulation}
.pro-ui-btn.primary{background:var(--pro-green);border-color:var(--pro-green);color:#fff}.pro-ui-btn.danger{background:var(--pro-red);border-color:var(--pro-red);color:#fff}
.pro-ui-toast{position:fixed;z-index:100010;left:50%;top:calc(env(safe-area-inset-top) + 18px);max-width:min(90vw,430px);transform:translate(-50%,-18px);opacity:0;pointer-events:none;background:#17231e;color:#fff;padding:11px 16px;border-radius:999px;font:700 14px/1.25 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,Arial,sans-serif;transition:all var(--pro-fast) ease;text-align:center}
.pro-ui-toast.is-open{opacity:1;transform:translate(-50%,0)}
.pro-ui-loading{position:fixed;z-index:100020;inset:0;display:none;align-items:center;justify-content:center;background:rgba(251,252,250,.78);backdrop-filter:blur(8px)}
.pro-ui-loading.is-open{display:flex}.pro-ui-loading-box{min-width:180px;max-width:80vw;background:#fff;border:1px solid var(--pro-line);border-radius:18px;padding:18px;text-align:center;box-shadow:0 14px 45px rgba(0,0,0,.12);font:700 15px/1.35 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,Arial,sans-serif}
/* Loading is feedback, not a second modal or an uncloseable history entry. */
.pro-ui-loading{inset:auto;top:calc(env(safe-area-inset-top,0px) + 68px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);background:transparent;backdrop-filter:none;pointer-events:none}
.pro-ui-loading .pro-ui-loading-box{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;padding:12px 16px;background:var(--pm-surface,#fff);color:var(--pm-text,#14211b);text-align:left}
.pro-ui-loading .pro-ui-spinner{flex:0 0 20px;width:20px;height:20px;margin:0;border-top-color:var(--pm-link,#176a4c)}
.pro-ui-spinner{width:24px;height:24px;margin:0 auto 10px;border:3px solid #dfe4df;border-top-color:var(--pro-green);border-radius:50%;animation:prospin .75s linear infinite}@keyframes prospin{to{transform:rotate(360deg)}}
.pro-ui-danger-text{color:var(--pro-red)!important}.pro-ui-draft{color:var(--pro-yellow)!important}.pro-ui-published{color:var(--pro-green-2)!important}.pro-ui-international{color:var(--pro-blue)!important}
@media(min-width:700px){
 .pro-ui-sheet{left:50%;bottom:auto;top:50%;width:min(620px,calc(100vw - 48px));max-height:min(82vh,820px);border-radius:var(--pro-radius-sheet);transform:translate(-50%,-46%) scale(.985);opacity:0;pointer-events:none}
 .pro-ui-sheet.is-open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
 .pro-ui-grabber{display:none}
}
@media(prefers-reduced-motion:reduce){.pro-ui-sheet,.pro-ui-overlay,.pro-ui-toast{transition:none}.pro-ui-spinner{animation-duration:1.4s}}
/* Shared master geometry. Adapters retain module positioning and event handlers. */
:root{--pro-close-size:44px;--pro-close-icon:20px;--pro-modal-radius:24px;--pro-modal-shadow:0 20px 60px #001b2226}
html.pro-ui-modal-lock,html.pro-ui-modal-lock body{overflow:hidden!important;overscroll-behavior:none!important}
:is(body,#proamRequestDialog,#proUiSheet) .pro-ui-control-close.pro-ui-control-close.pro-ui-control-close{box-sizing:border-box!important;display:grid!important;place-items:center!important;flex:0 0 var(--pro-close-size)!important;width:var(--pro-close-size)!important;height:var(--pro-close-size)!important;min-width:var(--pro-close-size)!important;min-height:var(--pro-close-size)!important;max-width:var(--pro-close-size)!important;max-height:var(--pro-close-size)!important;padding:0!important;border:0!important;border-radius:50%!important;background:var(--pm-canvas,#eef3f0)!important;color:var(--pm-text,#173c30)!important;box-shadow:none!important;font-size:0!important;line-height:1!important;text-align:center!important;cursor:pointer}
:is(body,#proamRequestDialog,#proUiSheet) .pro-ui-control-close.pro-ui-control-close svg{display:block!important;width:var(--pro-close-icon)!important;height:var(--pro-close-icon)!important;pointer-events:none!important;margin:0!important}
.pro-ui-control-close::before,.pro-ui-control-close::after{content:none!important}.pro-ui-control-close:focus-visible{outline:2px solid var(--pm-link,#438367)!important;outline-offset:3px!important}
.pro-ui-header .pro-ui-close{justify-self:end}.pro-ui-content{min-height:0}.pro-ui-actions[hidden]{display:none!important}.pro-ui-sheet[aria-hidden=true]{visibility:hidden;pointer-events:none}.pro-ui-sheet.is-open{visibility:visible}
.pro-ui-sheet{max-height:calc(100dvh - var(--pro-safe-top,env(safe-area-inset-top,0px)) - 16px);border-radius:var(--pro-modal-radius) var(--pro-modal-radius) 0 0;box-shadow:var(--pro-modal-shadow)}
.pro-ui-header{grid-template-columns:minmax(72px,1fr) minmax(0,2fr) minmax(44px,1fr);background:var(--pm-surface,#fff);color:var(--pm-text,#14211b)}.pro-ui-content{background:var(--pm-surface,#fff);color:var(--pm-text,#14211b)}
.pro-ui-overlay{background:var(--pro-dialog-overlay)}.pro-ui-btn:disabled{opacity:.5;cursor:not-allowed}.pro-ui-btn:focus-visible{outline:2px solid var(--pm-link,#438367);outline-offset:3px}
@media(min-width:700px){.pro-ui-sheet{max-height:calc(100dvh - 48px);border-radius:var(--pro-modal-radius)}}

/* Shared entrance motion works across app templates and ordinary WordPress pages. */
@keyframes pro-page-in{from{opacity:.65}to{opacity:1}}
body{animation:pro-page-in 180ms ease-out}
@media(prefers-reduced-motion:reduce){body{animation:none}}
/* Portals are appended to body: never inherit a WordPress theme's serif font. */
:root{--pro-font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif}
.pro-ui-sheet,.pro-ui-toast,.pro-ui-loading{font-family:var(--pro-font-ui);font-size:16px;line-height:1.45;-webkit-text-size-adjust:100%}
.pro-ui-sheet input,.pro-ui-sheet select,.pro-ui-sheet textarea,.pro-ui-sheet button{font-family:inherit}
.pro-ui-actions .pro-ui-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
/* Existing Clinic/Pro-Am controllers reuse the master frame without rewriting forms. */
body .pro-ui-sheet-adapter{display:flex!important;flex-direction:column!important;position:fixed!important;left:50%!important;bottom:0!important;top:auto!important;width:min(620px,100%)!important;max-height:calc(100dvh - var(--pro-safe-top,env(safe-area-inset-top,0px)) - 16px)!important;border-radius:var(--pro-modal-radius) var(--pro-modal-radius) 0 0!important;box-shadow:var(--pro-modal-shadow)!important;overflow:hidden!important}
body .pro-ui-sheet-adapter>:is(.sheetTop,.sheetHead){flex:0 0 var(--pro-header-h);height:var(--pro-header-h)!important;min-height:var(--pro-header-h)!important;box-sizing:border-box;display:grid!important;grid-template-columns:minmax(72px,1fr) minmax(0,2fr) minmax(44px,1fr)!important;align-items:center;padding:0 12px!important;border-bottom:1px solid var(--pro-line)!important}
.pro-ui-sheet-adapter .pro-ui-control-close{justify-self:end}
body .pro-ui-sheet-adapter>:is(#sc,.sheetBody){min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;flex:1 1 auto;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
body:is(.clinic-editor,.proam-editor) .sheetBg,body:is(.clinic-list,.proam-list) .overlay{background:var(--pm-overlay,rgba(8,24,18,.48))!important}
@media(min-width:700px){body .pro-ui-sheet-adapter{top:50%!important;bottom:auto!important;width:min(620px,calc(100vw - 48px))!important;max-height:calc(100dvh - 48px)!important;border-radius:var(--pro-modal-radius)!important;transform:translate(-50%,-46%) scale(.985)!important;opacity:0;visibility:hidden;pointer-events:none}body .pro-ui-sheet-adapter:is(.open,.on){transform:translate(-50%,-50%) scale(1)!important;opacity:1;visibility:visible;pointer-events:auto}}

@media(hover:hover){.pro-ui-control-close:hover{filter:brightness(.96)}}
.pro-ui-control-close:active{opacity:.7}.pro-ui-control-close:disabled{opacity:.45;cursor:not-allowed}
html.pro-preview-lock,html.pro-preview-lock body{overflow:hidden!important;overscroll-behavior:none}
#proPreview[hidden]{display:none!important}#proPreview{position:fixed;inset:0;z-index:100100;display:grid;place-items:center;padding:max(18px,var(--pro-safe-top,env(safe-area-inset-top,0px))) 12px max(18px,env(safe-area-inset-bottom,0px));font:15px/1.4 var(--pro-font-ui);color:var(--pm-text,#17212b)}
.pro-preview-dim{position:absolute;inset:0;background:rgba(8,24,18,.48);backdrop-filter:blur(3px)}.pro-preview-panel{position:relative;display:flex;flex-direction:column;width:min(1200px,100%);height:min(82dvh,1000px);max-height:100%;min-height:0;background:var(--pm-surface,#fff);border:1px solid var(--pm-line,#e3e7ec);border-radius:24px;box-shadow:var(--pro-modal-shadow);overflow:hidden}.pro-preview-panel>header{height:60px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:8px 12px 8px 18px;border-bottom:1px solid var(--pm-line,#e3e7ec);gap:10px}.pro-preview-panel>header b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pro-preview-panel>iframe{width:100%;flex:1;min-height:0;border:0;background:white}.pro-preview-panel>p{margin:0;padding:7px 16px;font-size:12px}.pro-preview-panel>p:empty{display:none}.pro-preview-panel>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 16px;min-height:48px;border-top:1px solid var(--pm-line,#e3e7ec);font-size:12px}.pro-preview-panel>footer a{display:flex;align-items:center;min-height:36px;color:var(--pm-link,#17533e);font-weight:650;text-decoration:none}.pro-preview-panel>footer span{color:var(--pm-muted,#586474)}

/* Programmatic dialog focus must not inherit the browser's pointer focus ring. */
html[data-pro-input="pointer"] .pro-ui-control-close:focus{outline:none!important;box-shadow:none!important}
html[data-pro-input="keyboard"] .pro-ui-control-close:focus{outline:2px solid var(--pm-link,#438367)!important;outline-offset:3px!important}

/* Input modality is shared across every module, including programmatic focus
   after opening a detail and restoring the selected card on Back. Keep input
   editing feedback and keyboard focus; suppress only pointer outlines. */
html[data-pro-input="pointer"] :is(button,a,[tabindex]):focus:not(input):not(textarea):not(select):not([contenteditable="true"]){outline:none!important}
html[data-pro-input="keyboard"] :is(button,a,[tabindex]):focus-visible{outline:2px solid var(--pm-link,#24674f)!important;outline-offset:3px}
:is(button,a,[role="button"]){-webkit-tap-highlight-color:transparent}
/* One swipe component for lessons, notifications and calendar rows. */
.pro-swipe-row{position:relative;overflow:hidden;--pro-swipe-width:168px}.pro-swipe-front{position:relative;z-index:1;display:flex;align-items:stretch;background:var(--pm-surface,#fff);touch-action:pan-y;transition:transform 200ms cubic-bezier(.2,.8,.2,1)}.pro-swipe-actions{position:absolute;right:0;top:0;bottom:0;display:flex;min-width:84px}.pro-swipe-actions>*{flex:0 0 84px;width:84px;border:0;border-radius:0;background:var(--pm-link,#176b50);color:#fff!important;display:flex;align-items:center;justify-content:center;min-height:44px;font:600 13px var(--pro-font-ui);padding:10px;text-align:center;text-decoration:none;cursor:pointer}.pro-swipe-actions>.danger{background:var(--pm-red,#b42318)}.pro-swipe-row.swipe-open .pro-swipe-front{transform:translateX(calc(-1 * var(--pro-swipe-width)))}.pro-swipe-row.swipe-dragging .pro-swipe-front{transition:none}.pro-swipe-toggle{flex:0 0 36px;align-self:stretch;border:0;background:transparent;color:var(--pm-muted,#66716e);font-size:20px;padding:0;min-height:44px;cursor:pointer}.pro-swipe-toggle:focus-visible{outline:2px solid var(--pm-link,#176b50);outline-offset:-3px}@media(prefers-reduced-motion:reduce){.pro-swipe-front{transition:none}}
/* Day planning explicitly uses a centered dialog at every viewport size. */
.pro-ui-sheet.is-day-editor{bottom:auto;top:50%;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - var(--pro-safe-top,env(safe-area-inset-top,0px)) - env(safe-area-inset-bottom,0px) - 32px);border-radius:var(--pro-modal-radius);transform:translate(-50%,-48%) scale(.985);opacity:0;pointer-events:none}.pro-ui-sheet.is-day-editor.is-open{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
.pro-ui-sheet{bottom:var(--pro-viewport-bottom,0px);max-height:calc(var(--pro-viewport-height,100dvh) - var(--pro-safe-top,env(safe-area-inset-top,0px)) - 16px)}.pro-ui-sheet.is-day-editor{bottom:auto;top:calc(var(--pro-viewport-top,0px) + var(--pro-viewport-height,100dvh)/2);max-height:calc(var(--pro-viewport-height,100dvh) - var(--pro-safe-top,env(safe-area-inset-top,0px)) - env(safe-area-inset-bottom,0px) - 32px)}@media(min-width:700px){.pro-ui-sheet{bottom:auto;top:calc(var(--pro-viewport-top,0px) + var(--pro-viewport-height,100dvh)/2);max-height:calc(var(--pro-viewport-height,100dvh) - 48px)}}
/* Hidden action layers prevent colored hairlines around closed swipe rows. */
[data-swipe-row]>[data-swipe-actions]{visibility:hidden;transition:visibility 0s 200ms}[data-swipe-row]:is(.swipe-open,.swipe-dragging)>[data-swipe-actions]{visibility:visible;transition-delay:0s}@media(prefers-reduced-motion:reduce){[data-swipe-row]>[data-swipe-actions]{transition:none}}
.pro-swipe-row .pro-swipe-toggle{flex-basis:44px;width:44px;min-width:44px}
[data-swipe-row]>[data-swipe-actions]{width:max-content}[data-swipe-row].swipe-open>[data-swipe-front]{transform:translateX(calc(-1 * var(--pro-swipe-width,168px)))}[data-swipe-row].swipe-dragging>[data-swipe-front]{transition:none}

/* Shared editor header: the same Cancel/Done convention in every composer. */
.pro-ui-sheet-leading,.pro-ui-sheet-trailing{display:flex;align-items:center;min-width:0;gap:4px}.pro-ui-sheet-trailing{justify-content:flex-end}.pro-ui-sheet-leading>[hidden],.pro-ui-sheet-trailing>[hidden]{display:none!important}.pro-ui-sheet :is(#proUiLeading,#proUiHeaderActions){display:flex;align-items:center;gap:4px}
:is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) .pro-ui-header-action{appearance:none;border:0;background:transparent;box-shadow:none;min-height:44px;padding:6px 2px;font:500 15px var(--pro-font-ui);white-space:nowrap;color:var(--pm-link,#176b50);cursor:pointer}
:is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) .pro-ui-header-action.danger{color:var(--pm-red,#b42318)}:is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) .pro-ui-header-action.primary{font-weight:650}:is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) .pro-ui-header-action:disabled{color:var(--pm-muted,#69756f);opacity:.45;cursor:default}
.pro-ui-sheet[data-presentation=editor] :is(.pro-ui-header,.pro-ui-content){background:var(--pm-canvas,#f3f5f7)}.pro-ui-sheet[data-presentation=editor] .pro-ui-header{grid-template-columns:minmax(56px,1fr) minmax(0,2fr) auto;gap:8px}.pro-ui-sheet[data-presentation=editor] .pro-ui-title{font-size:15px}
/* Prevent native iOS focus zoom in all shared dialogs and module adapters. */
:is(.pro-ui-sheet,.pro-ui-sheet-adapter,.pro-ui-floating) :is(input,select,textarea){font-size:16px!important}
@media(max-width:360px){.pro-ui-sheet[data-presentation=editor] .pro-ui-header{gap:4px;padding:0 8px}.pro-ui-sheet .pro-ui-header-action{font-size:14px}.pro-ui-sheet[data-presentation=editor] .pro-ui-title{font-size:14px}}

/* A migrated legacy frame only stores its restored content node. */
body [data-pro-ui-retired]{display:none!important;pointer-events:none!important}

/* Content adapts to the room inside the shared frame, including Split View. */
:is(.pro-ui-content,.pro-ui-floating-content),body .pro-ui-sheet-adapter>:is(#sc,.sheetBody){container-type:inline-size;container-name:pro-dialog}
@media(min-width:700px){
 .pro-ui-sheet[data-presentation=editor]{width:min(var(--pro-editor-wide),calc(100vw - 48px))}
 .pro-ui-sheet[data-presentation=calendar]{width:min(var(--pro-calendar-wide),calc(100vw - 48px))}
 .pro-ui-sheet.is-day-editor{width:min(640px,calc(100vw - 48px))}
}
@media(min-width:820px){.pro-ui-sheet.is-day-editor{width:min(760px,calc(100vw - 48px))}}
/* Search is a master dialog; consumers style only the search content. */
.pro-ui-sheet:has(.pm-search){left:50%;right:auto;bottom:auto;top:calc(var(--pro-viewport-top,0px) + var(--pro-viewport-height,100dvh)/2);width:min(460px,calc(100vw - 32px));max-height:min(calc(var(--pro-viewport-height,100dvh) * .72),560px);border-radius:var(--pro-modal-radius);transform:translate(-50%,-45%);opacity:0;pointer-events:none}
.pro-ui-sheet.is-open:has(.pm-search){transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
.pro-ui-sheet:has(.pm-search) .pro-ui-grabber{display:none}
@media(min-width:700px){.pro-ui-sheet:has(.pm-search){width:min(520px,calc(100vw - 48px));max-height:min(calc(var(--pro-viewport-height,100dvh) - 48px),620px)}}
@media(hover:hover) and (pointer:fine){
 :is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) :is(.pro-ui-btn,.pro-ui-header-action):not(:disabled):hover{filter:brightness(.96)}
 :is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) :is(button,a,[role=button]):not(:disabled){cursor:pointer}
}

/* Explicit save intent, shared by every editable business form. */
:is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) .pro-ui-header-action.pro-ui-save{min-height:44px;padding:8px 14px;border:1px solid transparent;border-radius:12px;background:var(--pm-brand,#172a23);color:var(--pm-inverse,#fff);font-weight:650}
:is(.pro-ui-sheet,.pro-ui-floating,.pro-workspace) .pro-ui-header-action.pro-ui-save:disabled{background:var(--pm-disabled-surface,var(--pm-line,#dfe5e1));color:var(--pm-disabled-text,var(--pm-muted,#69756f));opacity:var(--pm-disabled-opacity,.7)}

/* Desktop swipe uses the same row and actions as touch. */
@media(hover:hover) and (pointer:fine){[data-swipe-row]>[data-swipe-front]{cursor:grab;user-select:none;-webkit-user-select:none}[data-swipe-row].swipe-dragging>[data-swipe-front]{cursor:grabbing}[data-swipe-front] :is(button,select,a:not([data-swipe-front])){cursor:pointer}[data-swipe-front] :is(input,textarea){cursor:auto}}
