.pf{max-width:1320px;margin:auto;color:#16334c;padding-bottom:95px}.pf-head{background:linear-gradient(115deg,#07365f,#126b93);color:white;border-radius:22px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;gap:20px}.pf-head h2{font-size:30px;margin:7px 0}.pf-head p{margin:8px 0 0;color:#dcebf4}.pf-head small{letter-spacing:.14em}.pf-head .btn{background:#fff;color:#174565}.pf-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;margin-top:22px}.pf-layout main{min-width:0}.pf-box,.pf-card{background:white;border:1px solid #d9e5ee;border-radius:17px;padding:24px;margin-bottom:20px;box-shadow:0 8px 28px #174d7410}.pf-box h3,.pf-card h3{margin:0 0 12px}.pf-layout aside{align-self:start}.pf label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;margin:12px 0;min-width:0}.pf input:not([type=checkbox]),.pf textarea,.pf select{width:100%;max-width:100%;box-sizing:border-box;background:#fff;border:1px solid #b9cfdf;border-radius:9px;padding:12px;color:#183c58;font:inherit;min-height:46px}.pf textarea{resize:vertical}.pf input:focus,.pf select:focus,.pf textarea:focus{outline:3px solid #80c9ea;outline-offset:1px}.pf input[readonly]{background:#e9f5fc;font-weight:700}.pf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.pf-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.pf .pf-check{flex-direction:row;align-items:flex-start;font-weight:400;line-height:1.6}.pf-check input{margin-top:5px;flex:none}.pf-card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.pf-card-head small{color:#45738c}.pf-card-head h3{font-size:21px;margin-top:8px}.pf-definition{background:#f1f7fb;padding:15px 18px;border-radius:12px;line-height:1.7}.pf-definition p{margin:0 0 8px}.pf-unit{font-size:13px;font-weight:700;color:#17648a}.pf-evidence{border-top:1px solid #deebf2;padding-top:18px;margin-top:18px}.pf summary{cursor:pointer;font-weight:700;padding:12px 0}.pf fieldset{border:0;padding:0;margin:0;min-width:0}.pf fieldset:disabled input,.pf fieldset:disabled textarea,.pf fieldset:disabled select{opacity:1;color:#385268;background:#f3f6f8}.pf-footer,.form-bottom-actions{position:sticky!important;bottom:0;z-index:55;background:#fffffff5;border:1px solid #cfdeea;box-shadow:0 -8px 28px #1a4a6912;border-radius:14px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px;backdrop-filter:blur(12px)}.pf-footer .pf-actions{margin:0}.pf-intro{padding:0 4px 12px}.pf-note{background:#fff7dc;border-radius:10px;padding:14px;line-height:1.6}.pf-empty{text-align:center;padding:20px;color:#58758b}.pf-report{display:flex;flex-direction:column;gap:8px;text-align:start;width:100%;border:0;border-bottom:1px solid #e3ebf1;background:white;padding:14px 0;cursor:pointer;color:#244b68}.pf-report[hidden]{display:none}.pf-report span{font-size:12px}.pf aside details{border-top:1px solid #d9e5ee;margin-top:20px}.pf #pfAssignments{max-height:280px;overflow:auto}.pf-card{scroll-margin-top:105px}.pf .btn{white-space:normal}.pf [aria-invalid=true]{border-color:#b13d39}.editor-drawer .editor-head{position:sticky!important;top:var(--app-header-height,72px)!important;z-index:50!important;background:#fff!important;border-bottom:1px solid #d8e4ee!important;padding:14px 18px!important;box-shadow:0 4px 16px #173d5910!important}.editor-head h2{font-size:22px!important}.editor-head p{font-size:13px!important;margin:5px 0!important}.editor-drawer .form-bottom-actions{position:sticky!important;bottom:0!important}.form-bottom-actions .actions{display:flex;flex-wrap:wrap;gap:8px}.form-bottom-actions details{position:relative}.form-bottom-actions details[open]>div{position:absolute;bottom:100%;inset-inline-end:0;min-width:180px;background:#fff;box-shadow:0 4px 22px #173c5930;padding:12px;border-radius:10px}.form-bottom-actions summary{cursor:pointer;padding:10px;font-size:14px}.form-bottom-actions .btn{min-height:44px}.editor-head .form-close{display:flex;gap:10px;align-items:center}.form-save-state{font-size:13px;color:#3f6078}.editor-drawer .form-section-summary{padding:18px 20px!important}.editor-drawer .form-grid{gap:20px!important}.editor-drawer .form-section{border-radius:14px!important;box-shadow:0 4px 18px #234f7010}.editor-drawer .workflow-panel{margin:16px 0}.form-bottom-actions [data-action=save-editor-close]{display:block!important}
@media(max-width:900px){.pf-layout{grid-template-columns:1fr}.pf-layout aside{order:2}.pf-head{padding:23px}.pf-head h2{font-size:25px}}
@media(max-width:600px){.pf-grid{grid-template-columns:1fr}.pf-box,.pf-card{padding:18px}.pf-head{align-items:flex-start}.pf-card-head{flex-direction:column;gap:0}.pf-footer,.form-bottom-actions{padding:10px;flex-direction:column;gap:8px;border-radius:10px}.pf-footer .pf-actions,.form-bottom-actions>.actions{width:100%;justify-content:center}.pf-footer .btn{flex:1}.pf-footer{bottom:env(safe-area-inset-bottom,0)}.editor-drawer .editor-head{top:var(--app-header-height,68px)!important;display:flex!important;flex-direction:row!important;align-items:center!important}.editor-head h2{font-size:18px!important}.editor-head .form-close .btn{min-width:44px}.form-bottom-actions .actions>.btn{flex:1}.pf{padding-bottom:25px}}
/* Keep document scrolling as the single scroll container for sticky form controls. */
body:has(.editor-drawer),body:has(.pf){overflow:visible!important}
body:has(.editor-drawer) .main,body:has(.pf) .main{padding-bottom:110px}
.form-bottom-actions,.pf-footer{position:fixed!important;bottom:12px!important;left:var(--form-bar-left,20px);width:var(--form-bar-width,calc(100% - 40px));box-sizing:border-box;margin:0!important}
@media(max-width:600px){.form-bottom-actions,.pf-footer{bottom:0!important;border-radius:12px 12px 0 0}}
body:has(.editor-drawer) .toast-host,body:has(.pf) .toast-host{bottom:125px!important}
.form-workflow-details{margin:18px 0;padding:0 18px}
.form-workflow-details>summary{cursor:pointer;font-weight:600;padding:12px 0}
.pf fieldset:disabled [data-pf=add],.pf fieldset:disabled [data-pf=custom],.pf fieldset:disabled [data-pf=remove]{display:none}
/* 1.8.1 form presentation: schema, field keys and save bindings are unchanged. */
.editor-drawer{max-width:1100px!important;margin-inline:auto!important}
.editor-drawer .form-section{padding:0!important;margin:22px 0!important;border:1px solid #dce6ed!important;background:#fff!important;overflow:visible!important}
.editor-drawer .form-section-summary{display:flex!important;align-items:center!important;gap:14px!important;margin:0!important;padding:22px 26px!important;list-style:none}
.editor-drawer .form-section-summary:after{content:'+';margin-inline-start:auto;color:#648096;font-size:22px}
.editor-drawer .form-section[open]>.form-section-summary:after{content:'−'}
.editor-drawer .form-section-number{display:grid;place-items:center;background:#eaf3fa;color:#255a80;border-radius:12px;width:40px;height:40px;flex:none;font-weight:700}
.editor-drawer .form-section-name{display:flex;flex-direction:column;gap:5px}
.editor-drawer .form-section-name strong{font-size:17px;color:#193c58}
.editor-drawer .form-section-name small{font-size:13px;font-weight:400;color:#748798}
.editor-drawer .form-section-meta{font-size:12px;font-weight:400;color:#647b8e;margin-inline-start:auto;white-space:nowrap}
.editor-drawer .form-section>.form-grid{padding:6px 28px 30px!important;gap:28px 30px!important}
.editor-drawer .field{padding:0!important;background:transparent!important;border:0!important;min-width:0}
.editor-drawer .field>label:first-child{display:flex!important;flex-direction:column!important;align-items:flex-start;gap:5px!important;margin:0 0 10px!important;font-size:14px!important;line-height:1.5}
.editor-drawer .field>label:first-child>.muted{font-size:12px!important;font-weight:400!important;color:#698093!important}
.editor-drawer .field input:not([type=checkbox]),.editor-drawer .field textarea,.editor-drawer .field select{background:#f9fbfd!important;border:1px solid #cad9e5!important;box-shadow:none!important;border-radius:10px!important;min-height:49px!important;padding:12px 14px!important;font-size:15px!important;line-height:1.6!important;box-sizing:border-box}
.editor-drawer .field textarea{min-height:125px!important;resize:vertical}
.editor-drawer .field input:focus,.editor-drawer .field textarea:focus,.editor-drawer .field select:focus{background:#fff!important;outline:3px solid #d9eaf7!important;border-color:#3d7dac!important}
.editor-drawer .field-guidance{margin-top:7px!important}
.editor-drawer .field-help summary{font-size:12px;color:#52738e;cursor:pointer;padding:3px 0;font-weight:400}
.editor-drawer .field-help .field-description{background:#f1f6fa;border-radius:8px;padding:12px;margin:8px 0;line-height:1.7}
.editor-drawer .char-counter{color:#7f919f;font-size:11px;margin-top:4px;text-align:end}
.editor-drawer .required-empty{box-shadow:none!important}
.form-section-nav{display:flex;gap:8px;flex-wrap:wrap;padding:18px 0 2px;align-items:center}
.form-section-nav>span{font-size:12px;color:#748999;margin-inline-end:8px}
.form-section-nav button{border:1px solid #d9e4ed;border-radius:20px;background:#fff;color:#365f7c;font-size:12px;padding:8px 13px;cursor:pointer;min-height:36px}
.form-section-nav button:hover,.form-section-nav button:focus{background:#eaf3fa;border-color:#749ab5}
.editor-drawer [data-form-section]{scroll-margin-top:calc(var(--app-header-height,72px) + 110px)}
.editor-drawer .repeat-wrap{margin-top:4px;padding:0!important;border:0!important;background:transparent!important}
.editor-drawer .repeat-item{padding:0!important;border:1px solid #dbe5ed!important;border-radius:12px!important;background:#fbfcfe!important;margin:16px 0!important}
.editor-drawer .repeat-item-head{padding:16px 18px!important;margin:0!important;cursor:pointer;display:flex;align-items:center;gap:12px}
.editor-drawer .repeat-item-head:before{content:'▸';color:#65839a}.editor-drawer .repeat-item[open]>.repeat-item-head:before{content:'▾'}
.editor-drawer .repeat-item-head>b{font-size:14px}.editor-drawer .repeat-item-head>span{font-size:12px;color:#778e9f;margin-inline-start:auto;white-space:nowrap}
.repeat-entry-body{padding:0 20px 24px}.repeat-entry-tools{display:flex;justify-content:flex-end;margin-bottom:16px}.repeat-entry-tools .btn{font-size:12px!important}
.editor-drawer .repeat-entry-body .form-grid{gap:24px!important}
.editor-drawer .context-value{background:#eef3f7;padding:14px;border-radius:10px;font-size:14px}
@media(max-width:700px){
 .editor-drawer .form-section-summary{padding:18px 16px!important;gap:10px!important}
 .editor-drawer .form-section>.form-grid{padding:6px 18px 24px!important;gap:26px!important}
 .editor-drawer .form-section-name strong{font-size:15px}.editor-drawer .form-section-meta{font-size:10px}
 .editor-drawer .form-section-number{width:32px;height:32px;border-radius:9px}
 .form-section-nav{flex-wrap:nowrap;overflow:auto;padding:12px 0}.form-section-nav>span{display:none}.form-section-nav button{flex:none}
 .repeat-entry-body{padding:0 14px 20px}
}
/* Focused editing header and restrained field treatment. */
body:has(.editor-drawer) #sidebar,body:has(.pf) #sidebar{display:none!important}
body:has(.editor-drawer) .main,body:has(.pf) .main{padding-top:0!important;padding-bottom:30px!important}
body:has(.editor-drawer) .topbar,body:has(.pf) .topbar{display:none!important}
body:has(.editor-drawer) #content,body:has(.pf) #content{padding-top:0!important}
body:has(.editor-drawer) .editor-drawer,body:has(.pf) .pf{padding-top:calc(var(--editing-header-height,104px) + 22px)!important;padding-bottom:30px!important}
body:has(.editor-drawer) .editor-head,body:has(.pf) .pf-head{
 position:fixed!important;top:0!important;left:var(--form-bar-left,20px)!important;
 width:var(--form-bar-width,calc(100% - 40px))!important;box-sizing:border-box;z-index:75!important;
 display:grid!important;grid-template-columns:minmax(160px,1fr) auto auto!important;align-items:center!important;gap:12px 20px!important;
 background:#fff!important;color:#15364f!important;border:1px solid #e0e6ec!important;border-top:0!important;
 border-radius:0 0 14px 14px!important;padding:14px 20px!important;margin:0!important;box-shadow:0 3px 14px #193c5809!important
}
body:has(.pf) .pf-head{grid-template-columns:minmax(160px,1fr) auto auto auto!important}
.pf-head>div>small,.pf-head>div>p{display:none}
body:has(.pf) .pf-head h2{font-size:20px;margin:0 0 5px;color:#173951}
.editor-head h2{font-size:20px!important;margin:0!important}
.editor-head p{font-size:12px!important;margin:4px 0!important;color:#688092}
.editing-save-status{font-size:11px!important;color:#6c7d89;display:block;margin-top:3px}
.form-header-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin:0!important}
.form-header-actions .btn{min-height:42px!important;font-size:13px!important;padding:10px 14px!important;white-space:nowrap}
.editor-head .form-close{order:3}
.form-header-actions .editing-more{position:relative}
.editing-more>summary{list-style:none;font-size:23px;line-height:20px;text-align:center;padding:10px;min-width:20px;cursor:pointer;border:1px solid #dce4eb;border-radius:9px}
.editing-more>summary::-webkit-details-marker{display:none}
.editing-more[open]>div{position:absolute;top:calc(100% + 8px);bottom:auto;inset-inline-end:0;min-width:180px;display:grid;gap:8px;padding:12px;border:1px solid #dae4ec;background:#fff;border-radius:12px;box-shadow:0 10px 24px #183b5918;z-index:80}
body.editing-navigation #sidebar{display:flex!important;position:fixed!important;top:calc(var(--editing-header-height,104px) + 8px)!important;left:16px!important;right:16px!important;width:auto!important;height:auto!important;max-height:65vh;overflow:auto!important;padding:18px!important;flex-direction:column!important;background:#fff!important;z-index:85!important;border:1px solid #dce6ed;border-radius:14px;box-shadow:0 12px 40px #15395126}
body.editing-navigation #sidebar #nav{display:flex!important;flex-wrap:wrap!important;width:100%!important;max-height:none!important;overflow:visible!important}
body.editing-navigation #sidebar .brand,body.editing-navigation #sidebar .side-foot,body.editing-navigation #sidebar #menuBtn{display:none!important}
body:has(.editor-drawer) .toast-host,body:has(.pf) .toast-host{bottom:18px!important}
.editor-drawer .field input:not([type=checkbox]),.editor-drawer .field textarea,.editor-drawer .field select{background:#fff!important;color:#334c60!important;font-weight:400!important;border-color:#d6dee5!important;box-shadow:none!important}
.editor-drawer .field input:focus,.editor-drawer .field textarea:focus,.editor-drawer .field select:focus{outline:1px solid #688da9!important;outline-offset:1px!important;border-color:#688da9!important;box-shadow:none!important;background:#fff!important}
.editor-drawer .field textarea{min-height:0!important;height:auto!important;line-height:1.65!important}
.editor-drawer .field .smart{border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.editor-drawer .field .smart-selected{background:#fff!important;border:1px solid #d6dee5!important;border-radius:10px!important;padding:4px!important}
.editor-drawer .field .smart-selected input{border:0!important;outline-offset:0!important}
.editor-drawer .field .chip{background:#f0f3f5!important;color:#465d70!important;border:0!important;font-weight:400!important}
.field-label-row{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;position:relative}
.field-label-row>label{display:flex!important;flex-direction:column;gap:4px;flex:1;margin:0!important;font-size:14px!important;line-height:1.5}
.field-label-row>label .muted{font-size:13px!important;font-weight:400!important;color:#657787!important}
.field-label-row .field-help{position:relative;flex:none}
.editor-drawer .field-label-row .field-help>summary{display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;padding:0;border:1px solid #b9c7d2;border-radius:50%;font-size:12px;font-weight:600;list-style:none;color:#6b8293}
.field-help>summary::-webkit-details-marker{display:none}
.field-label-row .field-help[open] .field-description{position:absolute;top:22px;inset-inline-end:0;width:min(290px,72vw);z-index:15;border:1px solid #dbe4ec;background:#fff!important;box-shadow:0 6px 22px #23465e14}
.editor-drawer .field>label:first-child>.muted{font-size:13px!important;color:#657787!important}
.editor-drawer .field-guidance:empty{display:none}
.editor-drawer .char-counter{font-size:11px!important;color:#798792!important;font-weight:400!important;padding:0!important;background:transparent!important}
.editor-drawer .char-counter.at-limit,.editor-drawer .char-counter.near-limit{color:#8c571c!important}
.editor-drawer .field .actions>[data-action=quick-master],.editor-drawer .field>[data-action=quick-master]{background:transparent!important;color:#567286!important;font-size:11px!important;font-weight:400!important;border:0!important;min-height:32px!important;padding:5px 8px!important}
.editor-drawer [data-form-section]{scroll-margin-top:calc(var(--editing-header-height,104px) + 16px)!important}
.editor-drawer .form-section>.form-grid{gap:22px 28px!important}
.pf textarea{background:#fff!important;line-height:1.65!important;font-weight:400}
.pf-text-counter{font-weight:400;color:#7a8994;text-align:end;font-size:11px}
.pf-definition{background:#f8fafb!important;border:1px solid #e5ebef}
.pf input[readonly]{background:#f7f9fa!important;font-weight:400!important}
@media(max-width:700px){
 body:has(.editor-drawer) .editor-head,body:has(.pf) .pf-head{grid-template-columns:minmax(0,1fr) auto!important;padding:10px 12px!important;gap:9px 8px!important;border-radius:0 0 12px 12px!important}
 .editor-head>div:first-child{min-width:0}.editor-head h2,body:has(.pf) .pf-head h2{font-size:17px!important}
 .editor-head p{font-size:11px!important;line-height:1.4!important}.editing-save-status{font-size:10px!important}
 .editor-head .form-close{order:0;grid-column:2;grid-row:1;gap:5px}.editor-head .form-close .btn{padding:7px 9px!important;min-height:34px!important;font-size:11px}
 .form-header-actions{grid-column:1/-1;grid-row:2;gap:7px!important;justify-content:stretch}
 .form-header-actions>.btn{flex:1;min-width:0;padding:10px 9px!important;font-size:12px!important;min-height:42px!important}
 .editing-more>summary{padding:10px 7px;min-width:24px}
 .pf-head>.form-header-actions{grid-row:3}.pf-head>[data-editing-menu]{grid-row:2;grid-column:2;font-size:11px;min-height:32px}
 .pf-head>[data-pf=language]{grid-row:1;grid-column:2;font-size:11px;min-height:32px}
 .editor-drawer .form-section>.form-grid{gap:22px!important}
}
.editor-drawer input,.editor-drawer textarea,.editor-drawer select,.pf input,.pf textarea,.pf select{scroll-margin-top:calc(var(--editing-header-height,104px) + 18px);scroll-margin-bottom:20px}
