/* R6.16.92 visual closure: robust process manager, template studio and notification safety panel */
.r61689-process-manager-backdrop{overflow:auto!important;place-items:center!important;padding:16px!important}
.r61689-process-manager{width:min(1500px,calc(100vw - 32px))!important;max-width:none!important;height:min(940px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;min-width:0!important}
.r61689-pm-head,.r61689-pm-guide,.r61689-pm-foot{flex:0 0 auto;min-width:0}
.r61689-pm-head>div,.r61689-pm-pane,.r61689-pm-process-pane,.r61689-pm-categories{min-width:0!important}
.r61689-pm-body{grid-template-columns:minmax(390px,.9fr) minmax(0,1.1fr)!important;gap:12px!important;padding:12px!important;overflow:hidden!important;min-width:0!important}
.r61689-pm-pane{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;min-width:0!important}
.r61689-pm-category-form{grid-template-columns:minmax(135px,.65fr) minmax(0,1fr)!important;align-items:stretch!important}
.r61689-pm-category-form .actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}
.r61689-pm-process-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;min-width:0}
.r61689-pm-process-form label,.r61689-pm-process-form input,.r61689-pm-process-form select{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box}
.r61689-pm-submit{flex-wrap:wrap!important;align-items:center!important}
.r61689-pm-submit span{min-width:220px;flex:1 1 260px;overflow-wrap:anywhere}
.r61689-pm-submit .btn{flex:0 0 auto;white-space:nowrap}
.r61689-pm-major-button>*{min-width:0}.r61689-pm-major-button strong,.r61689-pm-process strong,.r61689-selected-path strong{overflow-wrap:anywhere;word-break:break-word}
.r61689-pm-process{min-width:0}.r61689-pm-process>div{min-width:0;flex:1 1 auto}.r61689-pm-process>.badge{flex:0 0 auto;white-space:nowrap}
.r61689-pm-foot{flex-wrap:wrap}.r61689-pm-foot>[data-pm-message]{flex:1 1 520px}.r61689-pm-foot>.btn{margin-left:auto}

/* notification security quick-start */
.r61692-security-alert{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin:0 0 14px;padding:14px 16px;border:1px solid #d9ddff;border-radius:14px;background:linear-gradient(135deg,#f7f8ff,#fff)}
.r61692-security-alert h3{margin:0 0 5px;font-size:16px}.r61692-security-alert p{margin:0;color:var(--muted,#667085);font-size:12px;line-height:1.55}
.r61692-security-alert .r61692-security-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.r61692-security-alert .r61692-security-meta span{padding:4px 8px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:11px;font-weight:650}
.r61692-security-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.r61692-security-actions form{margin:0}.r61692-security-actions .btn{white-space:nowrap}
.r61692-security-alert.is-ready{border-color:#b7e4cb;background:linear-gradient(135deg,#f3fbf7,#fff)}.r61692-security-alert.is-ready .r61692-security-meta span{background:#e8f7ee;color:#147a43}

/* template studio: prevent chrome collisions and keep preview readable */
.r61627-template-closure .template-studio-toolbar{min-width:0;gap:10px;flex-wrap:wrap!important;align-items:center!important}
.r61627-template-closure .template-toolbar-identity{min-width:280px;flex:1 1 420px}.r61627-template-closure .template-toolbar-identity>div{min-width:0}.r61627-template-closure .template-toolbar-title{min-width:0;flex-wrap:wrap}.r61627-template-closure .template-toolbar-title h2{min-width:0;overflow-wrap:anywhere}
.r61627-template-closure .template-toolbar-actions{min-width:0;flex:1 1 620px;justify-content:flex-end;flex-wrap:wrap!important}.r61627-template-closure .template-toolbar-control{min-width:105px}.r61627-template-closure .template-toolbar-sample{min-width:210px;max-width:330px}.r61627-template-closure .template-toolbar-control select{min-width:0;max-width:100%}
.r61691-template-brand-link{min-width:0;flex-wrap:wrap!important}.r61691-template-brand-current{min-width:0!important;flex:0 1 auto!important;flex-wrap:wrap;justify-content:flex-end}.r61691-template-brand-current b{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r61691-template-brand-current img{display:block!important;flex:0 0 auto}
.r61692-template-standard{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 10px;padding:10px 12px;border:1px solid #d9ddff;border-radius:12px;background:#fbfbff}.r61692-template-standard.is-ok{border-color:#b7e4cb;background:#f7fcf9}.r61692-template-standard>div:first-child{min-width:0;flex:1 1 420px}.r61692-template-standard strong{display:block;margin-bottom:3px}.r61692-template-standard p{margin:0;font-size:12px;color:var(--muted,#667085);line-height:1.5}.r61692-template-standard .standard-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.r61692-template-standard .standard-tags span{padding:3px 7px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:10px}.r61692-template-standard.is-ok .standard-tags span{background:#e9f7ef;color:#147a43}
.r61627-template-closure .template-studio-shell{min-width:0;max-width:100%;grid-template-columns:minmax(72px,92px) minmax(300px,var(--template-editor-pane,360px)) 8px minmax(0,1fr)!important}
.r61627-template-closure .template-studio-nav,.r61627-template-closure .template-studio-editor,.r61627-template-closure .template-preview-panel,.r61627-template-closure .template-live-canvas{min-width:0!important}
.r61627-template-closure .template-preview-panel{overflow:hidden}.r61627-template-closure .template-preview-toolbar{min-width:0;flex-wrap:wrap!important;gap:7px!important}.r61627-template-closure .template-preview-toolbar>*{min-width:0}
.r61627-template-closure .template-live-canvas{overflow:auto!important;scrollbar-gutter:stable}.r61627-template-closure .template-live-sheet{transform-origin:top left}.r61627-template-closure .template-live-table-wrap{overflow:visible!important;max-width:none!important}.r61627-template-closure .template-live-table{table-layout:fixed!important;width:100%!important}.r61627-template-closure .template-live-table th,.r61627-template-closure .template-live-table td{line-height:1.25!important;vertical-align:middle!important;overflow-wrap:anywhere!important;word-break:break-word!important;hyphens:auto}
.r61627-template-closure .template-live-table th{font-weight:700}.r61627-template-closure .template-live-sheet.is-wide-table .template-live-table{font-size:10px!important}.r61627-template-closure .template-live-sheet.is-ultra-wide-table .template-live-table{font-size:9px!important}.r61627-template-closure .template-live-sheet.is-ultra-wide-table .template-live-table th,.r61627-template-closure .template-live-sheet.is-ultra-wide-table .template-live-table td{padding:4px 3px!important}
.r61627-template-closure .template-company-logo-img,.r61627-template-closure .template-live-logo img{display:block;object-fit:contain!important;max-width:100%;max-height:100%}

@media(max-width:1180px){
 .r61689-process-manager{width:calc(100vw - 20px)!important;height:calc(100dvh - 20px)!important}.r61689-pm-body{grid-template-columns:minmax(290px,.75fr) minmax(0,1.25fr)!important}
 .r61627-template-closure .template-studio-shell{grid-template-columns:76px minmax(280px,330px) 6px minmax(0,1fr)!important}
 .r61627-template-closure .template-toolbar-actions{justify-content:flex-start}
}
@media(max-width:900px){
 .r61689-process-manager-backdrop{padding:0!important}.r61689-process-manager{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.r61689-pm-body{grid-template-columns:1fr!important;overflow:auto!important}.r61689-pm-pane{overflow:visible!important}.r61689-pm-process-form{grid-template-columns:1fr!important}.r61689-pm-process-form .span-2{grid-column:auto!important}
 .r61692-security-alert{grid-template-columns:1fr}.r61692-security-actions{justify-content:flex-start}
 .r61627-template-closure .template-studio-shell{display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;grid-template-areas:'nav editor' 'nav preview'!important}.r61627-template-closure .template-studio-nav{grid-area:nav}.r61627-template-closure .template-studio-editor{grid-area:editor}.r61627-template-closure .template-studio-splitter{display:none!important}.r61627-template-closure .template-preview-panel{grid-area:preview;min-height:620px}
}
