/* Shared, native-window inspired title bars for Smart PV dialogs. */
.profile-card[role="dialog"]{scrollbar-gutter:auto!important;overflow-x:clip!important}
.profile-card[role="dialog"]>h2[id$="Title"]{position:sticky;top:calc(-1 * clamp(20px,3vw,34px));z-index:12;display:flex;align-items:center;min-height:62px;margin:calc(-1 * clamp(20px,3vw,34px)) calc(-1 * clamp(20px,3vw,34px)) 1rem!important;padding:1rem 70px .9rem clamp(20px,3vw,34px)!important;border:0;border-bottom:1px solid #244f40;border-radius:20px 20px 0 0;background:linear-gradient(110deg,#245b48,#34765a);box-shadow:0 3px 10px rgba(18,55,38,.14);color:#fff!important;font-size:1.12rem;line-height:1.25}
.profile-card[role="dialog"]>.profile-close,.profile-card[role="dialog"]>.modal-icon-close{position:absolute;top:0;right:0;z-index:20;display:grid;place-items:center;width:54px;height:62px;min-width:54px;min-height:62px;margin:0!important;padding:0!important;border:0!important;border-left:1px solid rgba(255,255,255,.26)!important;border-radius:0 20px 0 0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;font-size:0!important}
.profile-card[role="dialog"]>.profile-close::after{content:"×";color:currentColor;font:400 24px/1 "Segoe UI",Arial,sans-serif}
.profile-card[role="dialog"]>.profile-close svg{display:none}
.profile-card[role="dialog"]>.profile-close svg,.profile-card[role="dialog"]>.modal-icon-close svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.profile-card[role="dialog"]>.profile-close:hover,.profile-card[role="dialog"]>.modal-icon-close:hover{border-left-color:#e81123!important;background:#e81123!important;color:#fff!important}
.profile-card[role="dialog"]>.modal-heading{position:sticky;top:calc(-1 * clamp(20px,3vw,34px));z-index:12;display:flex;align-items:center;min-height:68px;gap:1rem;margin:calc(-1 * clamp(20px,3vw,34px)) calc(-1 * clamp(20px,3vw,34px)) 1rem!important;padding:.75rem 70px .65rem clamp(20px,3vw,34px)!important;border:0;border-bottom:1px solid #244f40;border-radius:20px 20px 0 0;background:linear-gradient(110deg,#245b48,#34765a);box-shadow:0 3px 10px rgba(18,55,38,.14)}
.profile-card[role="dialog"]>.modal-heading>div{min-width:0}
.profile-card[role="dialog"]>.modal-heading h2,.profile-card[role="dialog"]>.modal-heading .eyebrow,.profile-card[role="dialog"]>.modal-heading p{color:#fff!important}
.profile-card[role="dialog"]>.modal-heading h2{margin:.12rem 0!important;font-size:1.1rem}
.profile-card[role="dialog"]>.modal-heading p:not(.eyebrow){margin:.15rem 0 0;opacity:.84}
.profile-card[role="dialog"]>.modal-heading .eyebrow{margin:0;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;opacity:.78}
.profile-card[role="dialog"]>.modal-heading>.modal-icon-close,.profile-card[role="dialog"]>.modal-heading>button.secondary{position:absolute;top:0;right:0;z-index:20;display:grid;place-items:center;width:54px;height:100%;min-width:54px;min-height:0;margin:0!important;padding:0!important;border:0!important;border-left:1px solid rgba(255,255,255,.26)!important;border-radius:0 20px 0 0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;font-size:0!important}
.profile-card[role="dialog"]>.modal-heading>.modal-icon-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.profile-card[role="dialog"]>.modal-heading>.modal-icon-close:hover,.profile-card[role="dialog"]>.modal-heading>button.secondary:hover{background:#e81123!important;color:#fff!important}
.profile-card[role="dialog"]>.business-detail-brand{position:sticky;top:-28px;z-index:12;margin:-28px -28px 1rem;padding:18px 74px 14px 28px;border-bottom:1px solid #244f40;border-radius:20px 20px 0 0;background:linear-gradient(110deg,#245b48,#34765a);color:#fff}
.profile-card[role="dialog"]>.business-detail-brand h2,.profile-card[role="dialog"]>.business-detail-brand p{color:#fff!important}
.profile-card[role="dialog"]>.business-detail-brand .eyebrow{opacity:.78}
.photo-crop-card[role="dialog"]{scrollbar-gutter:auto!important}
.photo-crop-card[role="dialog"]>.photo-crop-heading{position:sticky;top:0;z-index:12;margin:calc(-1 * clamp(20px,3vw,34px)) calc(-1 * clamp(20px,3vw,34px)) 1rem;padding:1rem 70px .9rem clamp(20px,3vw,34px);border-bottom:1px solid #244f40;border-radius:20px 20px 0 0;background:linear-gradient(110deg,#245b48,#34765a);color:#fff}
.photo-crop-card[role="dialog"]>.photo-crop-heading h2,.photo-crop-card[role="dialog"]>.photo-crop-heading h3{margin:.1rem 0;color:#fff}
.photo-crop-card[role="dialog"]>.photo-crop-heading .photo-crop-close{position:absolute;top:0;right:0;display:grid;place-items:center;width:54px;height:100%;border:0;border-left:1px solid rgba(255,255,255,.26);border-radius:0 20px 0 0;background:transparent;color:#fff;font-size:0}
.photo-crop-card[role="dialog"]>.photo-crop-heading .photo-crop-close:hover{background:#e81123}
@media(max-width:760px){.profile-card[role="dialog"]>h2[id$="Title"]{top:-18px;margin:-18px -18px 1rem!important;padding:.85rem 62px .85rem 18px!important;min-height:56px;border-radius:16px 16px 0 0;font-size:1rem}.profile-card[role="dialog"]>.profile-close,.profile-card[role="dialog"]>.modal-icon-close{width:48px;height:56px;min-width:48px;min-height:56px;border-radius:0 16px 0 0!important}.profile-card[role="dialog"]>.modal-heading{top:-18px;min-height:62px;margin:-18px -18px 1rem!important;padding:.65rem 62px .6rem 18px!important;border-radius:16px 16px 0 0}.profile-card[role="dialog"]>.modal-heading h2{font-size:1rem}.profile-card[role="dialog"]>.modal-heading>.modal-icon-close,.profile-card[role="dialog"]>.modal-heading>button.secondary{width:48px;min-width:48px;border-radius:0 16px 0 0!important}.profile-card[role="dialog"]>.business-detail-brand{top:-18px;margin:-18px -18px 1rem;padding:14px 66px 12px 18px;border-radius:16px 16px 0 0}.photo-crop-card[role="dialog"]>.photo-crop-heading{margin:-18px -18px 1rem;padding:.85rem 62px .85rem 18px;border-radius:16px 16px 0 0}.photo-crop-card[role="dialog"]>.photo-crop-heading .photo-crop-close{width:48px;border-radius:0 16px 0 0}}
.workshop-dialog[role="dialog"]{display:flex;flex-direction:column;overflow:hidden!important}
.workshop-dialog[role="dialog"]>.modal-heading{position:relative!important;top:auto!important;flex:0 0 auto;margin:calc(-1 * clamp(20px,3vw,34px)) calc(-1 * clamp(20px,3vw,34px)) 0!important}
.workshop-modal-scroll{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 2px 4px}
.workshop-modal-description{margin:0 0 12px;padding:10px 2px;color:#64776d;line-height:1.5}
@media(max-width:760px){.workshop-dialog[role="dialog"]>.modal-heading{margin:-18px -18px 0!important}}

/* Keep POS catalog and monograph dialogs on the shared fixed-title, scroll-body pattern. */
.pos-catalog-dialog,.monograph-dialog{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;scrollbar-gutter:auto!important}
.pos-catalog-dialog{width:min(1240px,calc(100vw - 32px));height:min(90dvh,940px);max-height:calc(100dvh - 24px)}
.pos-catalog-dialog>.modal-heading,.monograph-dialog>.modal-heading{position:relative!important;inset:auto!important;top:auto!important;z-index:3;display:flex!important;align-items:center!important;flex:0 0 auto!important;min-height:68px;margin:0!important;padding:16px 72px 15px 24px!important;border:0!important;border-bottom:1px solid #244f40!important;border-radius:20px 20px 0 0!important;background:linear-gradient(110deg,#245b48,#34765a)!important;color:#fff!important;box-shadow:0 3px 10px rgba(18,55,38,.14)}
.pos-catalog-dialog>.modal-heading h2,.monograph-dialog>.modal-heading h2{margin:0!important;color:#fff!important;font-size:1.12rem!important;line-height:1.25}
.pos-catalog-dialog>.modal-heading .eyebrow{margin:0 0 .22rem;color:#d9eee1;font-size:.7rem}
.pos-catalog-dialog>.modal-heading>.modal-icon-close,.monograph-dialog>.modal-heading>.modal-icon-close{position:absolute!important;top:0!important;right:0!important;display:grid!important;place-items:center!important;width:54px!important;height:100%!important;min-width:54px!important;min-height:100%!important;margin:0!important;padding:0!important;border:0!important;border-left:1px solid rgba(255,255,255,.26)!important;border-radius:0 20px 0 0!important;background:transparent!important;color:#fff!important;box-shadow:none!important}
.pos-catalog-dialog>.modal-heading>.modal-icon-close:hover,.monograph-dialog>.modal-heading>.modal-icon-close:hover{background:#e81123!important;color:#fff!important}
.pos-catalog-body,.monograph-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px 24px 24px}
.pos-catalog-dialog .pos-catalog-intro,.monograph-description{margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important;color:#64776d!important;line-height:1.5}
.monograph-body>.monograph-catalog{margin-top:0}
@media(max-width:700px){.pos-catalog-dialog{width:calc(100vw - 20px);height:min(92dvh,940px);max-height:calc(100dvh - 20px)}.pos-catalog-dialog>.modal-heading,.monograph-dialog>.modal-heading{min-height:60px;padding:14px 62px 13px 16px!important;border-radius:16px 16px 0 0!important}.pos-catalog-dialog>.modal-heading>.modal-icon-close,.monograph-dialog>.modal-heading>.modal-icon-close{width:48px!important;min-width:48px!important;border-radius:0 16px 0 0!important}.pos-catalog-body,.monograph-body{padding:14px 15px 18px}}

/* Final specificity correction: the #pos rules must not collapse dialog title bars. */
#pos .pos-catalog-dialog>.modal-heading,.monograph-dialog>.modal-heading{box-sizing:border-box!important;display:flex!important;position:relative!important;inset:auto!important;top:auto!important;flex:0 0 68px!important;height:68px!important;min-height:68px!important;max-height:68px!important;align-items:center!important;overflow:visible!important;margin:0!important;padding:0 72px 0 24px!important;border:0!important;border-bottom:1px solid #244f40!important;border-radius:20px 20px 0 0!important;background:linear-gradient(110deg,#245b48,#34765a)!important;color:#fff!important}
#pos .pos-catalog-dialog>.modal-heading>div,.monograph-dialog>.modal-heading>div{display:block!important;position:static!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important}
#pos .pos-catalog-dialog>.modal-heading h2,.monograph-dialog>.modal-heading h2{display:block!important;position:static!important;margin:0!important;padding:0!important;overflow:visible!important;color:#fff!important;font-size:1.12rem!important;line-height:1.3!important;transform:none!important}
#pos .pos-catalog-dialog>.modal-heading>.modal-icon-close,.monograph-dialog>.modal-heading>.modal-icon-close{position:absolute!important;inset:0 0 0 auto!important;display:grid!important;place-items:center!important;flex:0 0 54px!important;width:54px!important;height:68px!important;min-width:54px!important;min-height:68px!important;max-height:68px!important;padding:0!important;margin:0!important;overflow:visible!important;border:0!important;border-left:1px solid rgba(255,255,255,.26)!important;border-radius:0 20px 0 0!important;background:transparent!important;color:#fff!important;opacity:1!important;visibility:visible!important}
#pos .pos-catalog-dialog>.modal-heading>.modal-icon-close svg,.monograph-dialog>.modal-heading>.modal-icon-close svg{display:block!important;width:17px!important;height:17px!important;opacity:1!important;visibility:visible!important;fill:none!important;stroke:#fff!important;stroke-width:2!important;stroke-linecap:round!important}
@media(max-width:700px){#pos .pos-catalog-dialog>.modal-heading,.monograph-dialog>.modal-heading{flex-basis:60px!important;height:60px!important;min-height:60px!important;max-height:60px!important;padding:0 62px 0 16px!important;border-radius:16px 16px 0 0!important}#pos .pos-catalog-dialog>.modal-heading>.modal-icon-close,.monograph-dialog>.modal-heading>.modal-icon-close{flex-basis:48px!important;width:48px!important;height:60px!important;min-width:48px!important;min-height:60px!important;max-height:60px!important;border-radius:0 16px 0 0!important}}

/* Override the generic dialog heading's negative sticky margins for POS tools. */
.profile-card[role="dialog"].pos-catalog-dialog>.modal-heading,.profile-card[role="dialog"].monograph-dialog>.modal-heading{position:relative!important;inset:auto!important;top:auto!important;margin:0!important;transform:none!important}
.profile-card[role="dialog"].pos-catalog-dialog>.modal-heading>div,.profile-card[role="dialog"].monograph-dialog>.modal-heading>div{margin:0!important;padding:0!important;transform:none!important}
.profile-card[role="dialog"].pos-catalog-dialog>.modal-heading h2,.profile-card[role="dialog"].monograph-dialog>.modal-heading h2{position:static!important;margin:0!important;padding:0!important;transform:none!important}
.profile-card[role="dialog"].pos-catalog-dialog>.modal-heading>.modal-icon-close,.profile-card[role="dialog"].monograph-dialog>.modal-heading>.modal-icon-close{position:absolute!important;top:0!important;right:0!important;margin:0!important;transform:none!important}

/* Calculator uses the same edge-to-edge native window chrome as all dialogs. */
.profile-card[role="dialog"].quick-calculator-dialog>.modal-heading{box-sizing:border-box!important;position:relative!important;inset:auto!important;top:auto!important;flex:0 0 68px!important;height:68px!important;min-height:68px!important;max-height:68px!important;align-items:center!important;margin:calc(-1 * clamp(20px,3vw,34px)) calc(-1 * clamp(20px,3vw,34px)) 1rem!important;padding:0 70px 0 clamp(20px,3vw,34px)!important;border-radius:20px 20px 0 0!important;background:linear-gradient(110deg,#245b48,#34765a)!important}
.profile-card[role="dialog"].quick-calculator-dialog>.modal-heading>div{min-width:0!important;margin:0!important;padding:0!important}
.profile-card[role="dialog"].quick-calculator-dialog>.modal-heading h2{display:block!important;margin:0!important;line-height:1.3!important;color:#fff!important;font-size:1.1rem!important;white-space:nowrap}
.profile-card[role="dialog"].quick-calculator-dialog>.modal-heading>.modal-icon-close{position:absolute!important;inset:0 0 0 auto!important;width:54px!important;height:68px!important;min-width:54px!important;min-height:68px!important;max-height:68px!important;border-radius:0 20px 0 0!important}
.profile-card[role="dialog"].quick-calculator-dialog>.quick-calculator-body{flex:1 1 auto!important}
@media(max-width:700px){.profile-card[role="dialog"].quick-calculator-dialog>.modal-heading{flex-basis:60px!important;height:60px!important;min-height:60px!important;max-height:60px!important;margin:-18px -18px 1rem!important;padding:0 62px 0 18px!important;border-radius:16px 16px 0 0!important}.profile-card[role="dialog"].quick-calculator-dialog>.modal-heading>.modal-icon-close{width:48px!important;height:60px!important;min-width:48px!important;min-height:60px!important;max-height:60px!important;border-radius:0 16px 0 0!important}}

/* ID-scoped override wins over calculator-local spacing so its bar reaches the dialog edges. */
#quickCalculatorModal .profile-card[role="dialog"].quick-calculator-dialog>.modal-heading{margin:calc(-1 * clamp(20px,3vw,34px)) calc(-1 * clamp(20px,3vw,34px)) 1rem!important;padding:0 70px 0 clamp(20px,3vw,34px)!important;border-radius:20px 20px 0 0!important}
@media(max-width:700px){#quickCalculatorModal .profile-card[role="dialog"].quick-calculator-dialog>.modal-heading{margin:-18px -18px 1rem!important;padding:0 62px 0 18px!important;border-radius:16px 16px 0 0!important}}
