/* Shared anchored popover: the same frame for a contact picker and calendar card. */
html.pro-ui-float-lock,html.pro-ui-float-lock body{overflow:hidden!important;overscroll-behavior:none!important}
.pro-ui-float-dim{position:fixed;inset:0;z-index:100060;background:var(--pro-dialog-overlay,rgba(9,20,16,.58));box-sizing:border-box;padding-top:var(--pro-safe-top,env(safe-area-inset-top,0px));padding-bottom:env(safe-area-inset-bottom,0px);touch-action:none}
.pro-ui-floating{position:fixed;z-index:100061;box-sizing:border-box;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--pm-surface,#fff);color:var(--pm-text,#17212b);border:1px solid var(--pm-line,#dfe5e1);border-radius:20px;box-shadow:0 16px 50px #10251e33;font:16px/1.45 var(--pro-font-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);overflow:visible;-webkit-text-size-adjust:100%;isolation:isolate}
.pro-ui-floating[hidden],.pro-ui-float-dim[hidden]{display:none!important}
.pro-ui-float-dim[data-tone=strong]{background:var(--pro-dialog-overlay,rgba(9,20,16,.58))}
.pro-ui-float-origin{position:fixed;z-index:100061;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--pm-accent,#d4f34a);color:var(--pm-on-accent,#172a23);box-shadow:0 0 0 5px #ffffff24,0 6px 20px #0003;pointer-events:none}
.pro-ui-float-origin[hidden]{display:none!important}.pro-ui-float-origin svg{display:block;width:25px;height:25px}
.pro-ui-floating::before{content:none;position:absolute;box-sizing:border-box;width:14px;height:14px;background:var(--pm-surface,#fff);transform:rotate(45deg);pointer-events:none;z-index:-1}
.pro-ui-floating.has-arrow::before{content:''}
.pro-ui-floating[data-side=below]::before{top:-8px;left:calc(var(--pro-float-arrow,50%) - 7px);border-top:1px solid var(--pm-line,#dfe5e1);border-left:1px solid var(--pm-line,#dfe5e1)}
.pro-ui-floating[data-side=above]::before{bottom:-8px;left:calc(var(--pro-float-arrow,50%) - 7px);border-bottom:1px solid var(--pm-line,#dfe5e1);border-right:1px solid var(--pm-line,#dfe5e1)}
.pro-ui-floating[data-side=right]::before{left:-8px;top:calc(var(--pro-float-arrow,50%) - 7px);border-bottom:1px solid var(--pm-line,#dfe5e1);border-left:1px solid var(--pm-line,#dfe5e1)}
.pro-ui-floating[data-side=left]::before{right:-8px;top:calc(var(--pro-float-arrow,50%) - 7px);border-top:1px solid var(--pm-line,#dfe5e1);border-right:1px solid var(--pm-line,#dfe5e1)}
.pro-ui-floating>header{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;min-height:60px;box-sizing:border-box;gap:12px;padding:8px 10px 8px 16px;border-bottom:1px solid var(--pm-line,#dfe5e1);position:relative;background:inherit;border-radius:20px 20px 0 0;z-index:1}
.pro-ui-floating>header>b{min-width:0;overflow:hidden;overflow-wrap:anywhere;font-size:16px;font-weight:700;line-height:1.3}
.pro-ui-floating>header>b{flex:1}
.pro-ui-floating-leading,.pro-ui-floating-header-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.pro-ui-floating-leading[hidden],.pro-ui-floating-header-actions[hidden]{display:none!important}
.pro-ui-floating .pro-ui-header-action{appearance:none;border:0;background:transparent;box-shadow:none;min-height:44px;padding:6px 2px;font:inherit;font-size:15px;font-weight:500;white-space:nowrap;color:var(--pm-link,#176b50);cursor:pointer}
.pro-ui-floating .pro-ui-header-action.danger{color:var(--pm-red,#b42318)}
.pro-ui-floating .pro-ui-header-action.primary{color:var(--pm-link,#176b50);font-weight:650}
.pro-ui-floating .pro-ui-header-action:disabled{color:var(--pm-muted,#69756f);opacity:.45;cursor:default}
.pro-ui-floating[data-presentation=summary]>header>b{font-size:19px;letter-spacing:-.3px}
.pro-ui-floating[data-presentation=editor]>header{gap:8px;padding-left:12px;background:var(--pm-canvas,#f3f5f7)}
.pro-ui-floating[data-presentation=editor]>header>b{text-align:center;font-size:15px}
.pro-ui-floating[data-presentation=editor]>.pro-ui-floating-content{background:var(--pm-canvas,#f3f5f7)}
@media(max-width:360px){.pro-ui-floating[data-presentation=editor]>header{gap:5px;padding-left:8px;padding-right:6px}.pro-ui-floating .pro-ui-header-action{font-size:14px}.pro-ui-floating[data-presentation=editor]>header>b{font-size:14px}.pro-ui-floating[data-presentation=summary]>header>b{font-size:17px}}
.pro-ui-floating>header>.pro-ui-floating-close{flex-shrink:0!important}
.pro-ui-floating-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;padding:12px;border-radius:0 0 20px 20px;touch-action:pan-y}
.pro-ui-floating-content :is(input,select,textarea,button){font-family:inherit}
.pro-ui-floating-content input:where(:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden],[type=button],[type=submit],[type=reset])){box-sizing:border-box;width:100%;min-height:44px;font-size:16px;border:1px solid var(--pm-line,#dfe5e1);border-radius:12px;padding:10px;background:var(--pm-canvas,#f3f5f6);color:inherit}
.pro-ui-floating-content input:is([type=checkbox],[type=radio]){flex-shrink:0}
:where(.pro-ui-floating-content button){color:inherit}
.pro-ui-floating-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 12px max(10px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--pm-line,#dfe5e1);background:inherit;border-radius:0 0 20px 20px}
.pro-ui-floating-actions[hidden]{display:none!important}
.pro-ui-floating-actions>.pro-ui-btn{flex:1;min-height:44px}
.pro-ui-floating.has-actions>.pro-ui-floating-content{border-radius:0}
.pro-ui-floating-content :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--pm-link,#176b50);outline-offset:-3px}
@media(prefers-reduced-motion:reduce){.pro-ui-floating,.pro-ui-float-dim{scroll-behavior:auto}}

/* Fade the shared frame without changing its measured anchor geometry. */
@keyframes pro-float-open{from{opacity:0}to{opacity:1}}
.pro-ui-floating:not([hidden]),.pro-ui-float-dim:not([hidden]){animation:pro-float-open 170ms ease-out}
@media(prefers-reduced-motion:reduce){.pro-ui-floating,.pro-ui-float-dim{animation:none!important}}

/* The compact creation bubble unfolds from the measured +, without allowing
   animation transforms to change the placement measurements in the controller. */
.pro-ui-floating[data-presentation=catalog]>header{min-height:52px;padding:4px 8px 4px 16px;border-bottom:0;gap:8px}
.pro-ui-floating[data-presentation=catalog]>header>b{font-size:15px;font-weight:650;letter-spacing:-.2px}
.pro-ui-floating[data-presentation=catalog]>.pro-ui-floating-content{padding:4px 10px 12px;scrollbar-gutter:auto}
.pro-ui-floating[data-presentation=catalog]{transform-origin:var(--pro-float-origin-x,50%) var(--pro-float-origin-y,100%);animation:none}
.pro-ui-floating[data-presentation=catalog]:not(.is-positioned){opacity:0}
@keyframes pro-catalog-unfold{from{opacity:0;transform:scale(.35,.84)}to{opacity:1;transform:none}}
.pro-ui-floating[data-presentation=catalog].is-positioned{animation:pro-catalog-unfold 240ms cubic-bezier(.2,.8,.2,1)}
@media(prefers-reduced-motion:reduce){.pro-ui-floating[data-presentation=catalog]{animation:none!important;transform:none!important}}

/* Existing event editor nodes keep their IDs, listeners and scroll position. */
.pro-ui-floating.has-mounted-content>.pro-ui-floating-content{display:flex;flex-direction:column;overflow:hidden;padding:0}
.pro-ui-floating-content>.pro-ui-mounted-content{flex:1 1 auto;min-height:0;max-height:none;height:auto;width:100%;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}

/* Legacy confirmation actions retain the master sizing in editor portals. */
.pro-ui-floating-content button.confirm{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;padding:12px 16px;border:0;border-radius:14px;background:#b42318;color:#fff;font:650 16px/1.35 var(--pro-font-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);cursor:pointer}
.pro-ui-floating-content button.confirm:disabled{opacity:.55;cursor:default}
